Fix JEM assembly, preliminary version of jem_throwException()
[jamvm-avr32-jem.git] / configure
blob30473a7c76aab8a38dab6fd7fd0f511cf08e3dc2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="src/jam.c"
734 ac_default_prefix=/usr/local/jamvm
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 build
831 build_cpu
832 build_vendor
833 build_os
834 host
835 host_cpu
836 host_vendor
837 host_os
838 arch
840 interp_cflags
841 COMPILE_TIME_RELOC_CHECKS_TRUE
842 COMPILE_TIME_RELOC_CHECKS_FALSE
843 AVR32_JAVA_EXTENSION_SUPPORT_TRUE
844 AVR32_JAVA_EXTENSION_SUPPORT_FALSE
845 with_classpath_install_dir
847 CFLAGS
848 LDFLAGS
849 CPPFLAGS
850 ac_ct_CC
851 EXEEXT
852 OBJEXT
853 DEPDIR
854 am__include
855 am__quote
856 AMDEP_TRUE
857 AMDEP_FALSE
858 AMDEPBACKSLASH
859 CCDEPMODE
860 am__fastdepCC_TRUE
861 am__fastdepCC_FALSE
863 GREP
864 EGREP
865 LN_S
866 ECHO
868 RANLIB
871 CXXFLAGS
872 ac_ct_CXX
873 CXXDEPMODE
874 am__fastdepCXX_TRUE
875 am__fastdepCXX_FALSE
876 CXXCPP
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 CCAS
882 CCASFLAGS
883 CCASDEPMODE
884 am__fastdepCCAS_TRUE
885 am__fastdepCCAS_FALSE
886 JAVAC
887 use_zip_yes
888 use_zip_no
889 ALLOCA
890 MAINTAINER_MODE_TRUE
891 MAINTAINER_MODE_FALSE
892 MAINT
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
906 CXXFLAGS
908 CXXCPP
910 FFLAGS
911 CCAS
912 CCASFLAGS'
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
961 ac_prev=
962 ac_dashdash=
963 for ac_option
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\$ac_option
968 ac_prev=
969 continue
972 case $ac_option in
973 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 *) ac_optarg=yes ;;
975 esac
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
981 ac_dashdash=yes ;;
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039 { (exit 1); exit 1; }; }
1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041 eval enable_$ac_feature=\$ac_optarg ;;
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
1104 | --localstate | --localstat | --localsta | --localst | --locals)
1105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108 localstatedir=$ac_optarg ;;
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1231 -with-* | --with-*)
1232 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 { echo "$as_me: error: invalid package name: $ac_package" >&2
1245 { (exit 1); exit 1; }; }
1246 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247 eval with_$ac_package=no ;;
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258 x_includes=$ac_optarg ;;
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265 x_libraries=$ac_optarg ;;
1267 -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269 { (exit 1); exit 1; }; }
1272 *=*)
1273 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277 { (exit 1); exit 1; }; }
1278 eval $ac_envvar=\$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 esac
1290 done
1292 if test -n "$ac_prev"; then
1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294 { echo "$as_me: error: missing argument to $ac_option" >&2
1295 { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1327 cross_compiling=yes
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { echo "$as_me: error: Working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$0" : 'X\(//\)[^/]' \| \
1354 X"$0" : 'X\(//\)$' \| \
1355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1470 cat <<\_ACEOF
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1483 if test -n "$ac_init_help"; then
1485 cat <<\_ACEOF
1487 Optional Features:
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-tracegc add gc tracing (for debugging)
1491 --enable-tracealloc add object allocation tracing (for debugging)
1492 --enable-tracefnlz add object finalisation tracing (for debugging)
1493 --enable-tracedll add library loading/lookup tracing (for debugging)
1494 --enable-tracelock add object locking tracing (for debugging)
1495 --enable-tracethread add thread creation tracing (for debugging)
1496 --enable-tracecompact add GC compaction phase tracing (for debugging)
1497 --enable-tracedirect add interpreter direct-mode tracing (for debugging)
1498 --enable-traceinlining add interpreter inlining tracing (for debugging)
1499 --enable-trace add all tracing (for debugging)
1500 --enable-int-threading enable threaded version of the interpreter (default
1501 enabled)
1502 --enable-int-direct enable direct threaded version of the interpreter
1503 (default enabled)
1504 --enable-int-caching enable stack-caching version of the interpreter
1505 (disabled by default on x86-64, enabled otherwise)
1506 --enable-int-prefetch enable prefetching version of the interpreter (by
1507 default enabled on powerpc, disabled otherwise)
1508 --enable-runtime-reloc-checks
1509 compute relocatability at runtime (inlining
1510 interpreter)
1511 --enable-int-inlining enable inline threaded version of the interpreter
1512 (by default enabled on x86_64, i386 and powerpc,
1513 disabled otherwise)
1514 --enable-ffi use libffi to call native methods
1515 --disable-zip turn-off zip support in the bootstrap loader
1516 --enable-static[=PKGS] build static libraries [default=no]
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-dependency-tracking speeds up one-time build
1521 --enable-dependency-tracking do not reject slow dependency extractors
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --enable-maintainer-mode enable make rules and dependencies not useful
1524 (and sometimes confusing) to the casual installer
1526 Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-classpath-install-dir=<dir>
1530 installation directory of GNU classpath (default
1531 /usr/local/classpath)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1534 both]
1535 --with-tags[=TAGS] include additional configurations [automatic]
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 F77 Fortran 77 compiler command
1550 FFLAGS Fortran 77 compiler flags
1551 CCAS assembler compiler command (defaults to CC)
1552 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 _ACEOF
1558 ac_status=$?
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" || continue
1565 ac_builddir=.
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 configure
1618 generated by GNU Autoconf 2.61
1620 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1621 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625 exit
1627 cat >config.log <<_ACEOF
1628 This file contains any messages produced by compilers while
1629 running configure, to aid debugging if configure makes a mistake.
1631 It was created by $as_me, which was
1632 generated by GNU Autoconf 2.61. Invocation command line was
1634 $ $0 $@
1636 _ACEOF
1637 exec 5>>config.log
1639 cat <<_ASUNAME
1640 ## --------- ##
1641 ## Platform. ##
1642 ## --------- ##
1644 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1645 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1646 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1647 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1648 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1650 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1651 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1653 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1654 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1655 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1656 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1657 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1658 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1659 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1661 _ASUNAME
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 echo "PATH: $as_dir"
1669 done
1670 IFS=$as_save_IFS
1672 } >&5
1674 cat >&5 <<_ACEOF
1677 ## ----------- ##
1678 ## Core tests. ##
1679 ## ----------- ##
1681 _ACEOF
1684 # Keep a trace of the command line.
1685 # Strip out --no-create and --no-recursion so they do not pile up.
1686 # Strip out --silent because we don't want to record it for future runs.
1687 # Also quote any args containing shell meta-characters.
1688 # Make two passes to allow for proper duplicate-argument suppression.
1689 ac_configure_args=
1690 ac_configure_args0=
1691 ac_configure_args1=
1692 ac_must_keep_next=false
1693 for ac_pass in 1 2
1695 for ac_arg
1697 case $ac_arg in
1698 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1700 | -silent | --silent | --silen | --sile | --sil)
1701 continue ;;
1702 *\'*)
1703 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1704 esac
1705 case $ac_pass in
1706 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1708 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1709 if test $ac_must_keep_next = true; then
1710 ac_must_keep_next=false # Got value, back to normal.
1711 else
1712 case $ac_arg in
1713 *=* | --config-cache | -C | -disable-* | --disable-* \
1714 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1715 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1716 | -with-* | --with-* | -without-* | --without-* | --x)
1717 case "$ac_configure_args0 " in
1718 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719 esac
1721 -* ) ac_must_keep_next=true ;;
1722 esac
1724 ac_configure_args="$ac_configure_args '$ac_arg'"
1726 esac
1727 done
1728 done
1729 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1730 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1732 # When interrupted or exit'd, cleanup temporary files, and complete
1733 # config.log. We remove comments because anyway the quotes in there
1734 # would cause problems or look ugly.
1735 # WARNING: Use '\'' to represent an apostrophe within the trap.
1736 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1737 trap 'exit_status=$?
1738 # Save into config.log some information that might help in debugging.
1740 echo
1742 cat <<\_ASBOX
1743 ## ---------------- ##
1744 ## Cache variables. ##
1745 ## ---------------- ##
1746 _ASBOX
1747 echo
1748 # The following way of writing the cache mishandles newlines in values,
1750 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1751 eval ac_val=\$$ac_var
1752 case $ac_val in #(
1753 *${as_nl}*)
1754 case $ac_var in #(
1755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1756 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1757 esac
1758 case $ac_var in #(
1759 _ | IFS | as_nl) ;; #(
1760 *) $as_unset $ac_var ;;
1761 esac ;;
1762 esac
1763 done
1764 (set) 2>&1 |
1765 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1766 *${as_nl}ac_space=\ *)
1767 sed -n \
1768 "s/'\''/'\''\\\\'\'''\''/g;
1769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770 ;; #(
1772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1774 esac |
1775 sort
1777 echo
1779 cat <<\_ASBOX
1780 ## ----------------- ##
1781 ## Output variables. ##
1782 ## ----------------- ##
1783 _ASBOX
1784 echo
1785 for ac_var in $ac_subst_vars
1787 eval ac_val=\$$ac_var
1788 case $ac_val in
1789 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 esac
1791 echo "$ac_var='\''$ac_val'\''"
1792 done | sort
1793 echo
1795 if test -n "$ac_subst_files"; then
1796 cat <<\_ASBOX
1797 ## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##
1800 _ASBOX
1801 echo
1802 for ac_var in $ac_subst_files
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1813 if test -s confdefs.h; then
1814 cat <<\_ASBOX
1815 ## ----------- ##
1816 ## confdefs.h. ##
1817 ## ----------- ##
1818 _ASBOX
1819 echo
1820 cat confdefs.h
1821 echo
1823 test "$ac_signal" != 0 &&
1824 echo "$as_me: caught signal $ac_signal"
1825 echo "$as_me: exit $exit_status"
1826 } >&5
1827 rm -f core *.core core.conftest.* &&
1828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 exit $exit_status
1831 for ac_signal in 1 2 13 15; do
1832 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1833 done
1834 ac_signal=0
1836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 rm -f -r conftest* confdefs.h
1839 # Predefined preprocessor variables.
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_NAME "$PACKAGE_NAME"
1843 _ACEOF
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1848 _ACEOF
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1853 _ACEOF
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_STRING "$PACKAGE_STRING"
1858 _ACEOF
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1863 _ACEOF
1866 # Let the site file select an alternate cache file if it wants to.
1867 # Prefer explicitly selected file to automatically selected ones.
1868 if test -n "$CONFIG_SITE"; then
1869 set x "$CONFIG_SITE"
1870 elif test "x$prefix" != xNONE; then
1871 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872 else
1873 set x "$ac_default_prefix/share/config.site" \
1874 "$ac_default_prefix/etc/config.site"
1876 shift
1877 for ac_site_file
1879 if test -r "$ac_site_file"; then
1880 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1881 echo "$as_me: loading site script $ac_site_file" >&6;}
1882 sed 's/^/| /' "$ac_site_file" >&5
1883 . "$ac_site_file"
1885 done
1887 if test -r "$cache_file"; then
1888 # Some versions of bash will fail to source /dev/null (special
1889 # files actually), so we avoid doing that.
1890 if test -f "$cache_file"; then
1891 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1892 echo "$as_me: loading cache $cache_file" >&6;}
1893 case $cache_file in
1894 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1895 *) . "./$cache_file";;
1896 esac
1898 else
1899 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1900 echo "$as_me: creating cache $cache_file" >&6;}
1901 >$cache_file
1904 # Check that the precious variables saved in the cache have kept the same
1905 # value.
1906 ac_cache_corrupted=false
1907 for ac_var in $ac_precious_vars; do
1908 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1909 eval ac_new_set=\$ac_env_${ac_var}_set
1910 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1911 eval ac_new_val=\$ac_env_${ac_var}_value
1912 case $ac_old_set,$ac_new_set in
1913 set,)
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,set)
1918 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1919 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1920 ac_cache_corrupted=: ;;
1921 ,);;
1923 if test "x$ac_old_val" != "x$ac_new_val"; then
1924 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1925 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1927 echo "$as_me: former value: $ac_old_val" >&2;}
1928 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1929 echo "$as_me: current value: $ac_new_val" >&2;}
1930 ac_cache_corrupted=:
1931 fi;;
1932 esac
1933 # Pass precious variables to config.status.
1934 if test "$ac_new_set" = set; then
1935 case $ac_new_val in
1936 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 *) ac_arg=$ac_var=$ac_new_val ;;
1938 esac
1939 case " $ac_configure_args " in
1940 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1941 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1942 esac
1944 done
1945 if $ac_cache_corrupted; then
1946 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1950 { (exit 1); exit 1; }; }
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 am__api_version='1.10'
1978 ac_aux_dir=
1979 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1980 if test -f "$ac_dir/install-sh"; then
1981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install-sh -c"
1983 break
1984 elif test -f "$ac_dir/install.sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install.sh -c"
1987 break
1988 elif test -f "$ac_dir/shtool"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/shtool install -c"
1991 break
1993 done
1994 if test -z "$ac_aux_dir"; then
1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1996 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1997 { (exit 1); exit 1; }; }
2000 # These three variables are undocumented and unsupported,
2001 # and are intended to be withdrawn in a future Autoconf release.
2002 # They can cause serious problems if a builder's source tree is in a directory
2003 # whose full name contains unusual characters.
2004 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2005 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2006 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009 # Find a good install program. We prefer a C program (faster),
2010 # so one script is as good as another. But avoid the broken or
2011 # incompatible versions:
2012 # SysV /etc/install, /usr/sbin/install
2013 # SunOS /usr/etc/install
2014 # IRIX /sbin/install
2015 # AIX /bin/install
2016 # AmigaOS /C/install, which installs bootblocks on floppy discs
2017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2020 # OS/2's system install, which has a completely different semantic
2021 # ./install, which can be erroneously created by make from ./install.sh.
2022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2024 if test -z "$INSTALL"; then
2025 if test "${ac_cv_path_install+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 # Account for people who put trailing slashes in PATH elements.
2034 case $as_dir/ in
2035 ./ | .// | /cC/* | \
2036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2038 /usr/ucb/* ) ;;
2040 # OSF1 and SCO ODT 3.0 have their own names for install.
2041 # Don't use installbsd from OSF since it installs stuff as root
2042 # by default.
2043 for ac_prog in ginstall scoinst install; do
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2046 if test $ac_prog = install &&
2047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048 # AIX install. It has an incompatible calling convention.
2050 elif test $ac_prog = install &&
2051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052 # program-specific install script used by HP pwplus--don't use.
2054 else
2055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2056 break 3
2059 done
2060 done
2062 esac
2063 done
2064 IFS=$as_save_IFS
2068 if test "${ac_cv_path_install+set}" = set; then
2069 INSTALL=$ac_cv_path_install
2070 else
2071 # As a last resort, use the slow shell script. Don't cache a
2072 # value for INSTALL within a source directory, because that will
2073 # break other packages using the cache if that directory is
2074 # removed, or if the value is a relative name.
2075 INSTALL=$ac_install_sh
2078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2079 echo "${ECHO_T}$INSTALL" >&6; }
2081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2082 # It thinks the first close brace ends the variable substitution.
2083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2090 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2091 # Just in case
2092 sleep 1
2093 echo timestamp > conftest.file
2094 # Do `set' in a subshell so we don't clobber the current shell's
2095 # arguments. Must try -L first in case configure is actually a
2096 # symlink; some systems play weird games with the mod time of symlinks
2097 # (eg FreeBSD returns the mod time of the symlink's containing
2098 # directory).
2099 if (
2100 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2101 if test "$*" = "X"; then
2102 # -L didn't work.
2103 set X `ls -t $srcdir/configure conftest.file`
2105 rm -f conftest.file
2106 if test "$*" != "X $srcdir/configure conftest.file" \
2107 && test "$*" != "X conftest.file $srcdir/configure"; then
2109 # If neither matched, then we have a broken ls. This can happen
2110 # if, for instance, CONFIG_SHELL is bash and it inherits a
2111 # broken ls alias from the environment. This has actually
2112 # happened. Such a system could not be considered "sane".
2113 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&5
2115 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2116 alias in your environment" >&2;}
2117 { (exit 1); exit 1; }; }
2120 test "$2" = conftest.file
2122 then
2123 # Ok.
2125 else
2126 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2127 Check your system clock" >&5
2128 echo "$as_me: error: newly created file is older than distributed files!
2129 Check your system clock" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6; }
2134 test "$program_prefix" != NONE &&
2135 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2136 # Use a double $ so make ignores it.
2137 test "$program_suffix" != NONE &&
2138 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2139 # Double any \ or $. echo might interpret backslashes.
2140 # By default was `s,x,x', remove it if useless.
2141 cat <<\_ACEOF >conftest.sed
2142 s/[\\$]/&&/g;s/;s,x,x,$//
2143 _ACEOF
2144 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2145 rm -f conftest.sed
2147 # expand $ac_aux_dir to an absolute path
2148 am_aux_dir=`cd $ac_aux_dir && pwd`
2150 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2151 # Use eval to expand $SHELL
2152 if eval "$MISSING --run true"; then
2153 am_missing_run="$MISSING --run "
2154 else
2155 am_missing_run=
2156 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2157 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2160 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2161 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2162 if test -z "$MKDIR_P"; then
2163 if test "${ac_cv_path_mkdir+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_prog in mkdir gmkdir; do
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2174 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2175 'mkdir (GNU coreutils) '* | \
2176 'mkdir (coreutils) '* | \
2177 'mkdir (fileutils) '4.1*)
2178 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2179 break 3;;
2180 esac
2181 done
2182 done
2183 done
2184 IFS=$as_save_IFS
2188 if test "${ac_cv_path_mkdir+set}" = set; then
2189 MKDIR_P="$ac_cv_path_mkdir -p"
2190 else
2191 # As a last resort, use the slow shell script. Don't cache a
2192 # value for MKDIR_P within a source directory, because that will
2193 # break other packages using the cache if that directory is
2194 # removed, or if the value is a relative name.
2195 test -d ./--version && rmdir ./--version
2196 MKDIR_P="$ac_install_sh -d"
2199 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2200 echo "${ECHO_T}$MKDIR_P" >&6; }
2202 mkdir_p="$MKDIR_P"
2203 case $mkdir_p in
2204 [\\/$]* | ?:[\\/]*) ;;
2205 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2206 esac
2208 for ac_prog in gawk mawk nawk awk
2210 # Extract the first word of "$ac_prog", so it can be a program name with args.
2211 set dummy $ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_AWK+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 if test -n "$AWK"; then
2218 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_AWK="$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2231 done
2232 done
2233 IFS=$as_save_IFS
2237 AWK=$ac_cv_prog_AWK
2238 if test -n "$AWK"; then
2239 { echo "$as_me:$LINENO: result: $AWK" >&5
2240 echo "${ECHO_T}$AWK" >&6; }
2241 else
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2247 test -n "$AWK" && break
2248 done
2250 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2251 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2252 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2253 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.make <<\_ACEOF
2257 SHELL = /bin/sh
2258 all:
2259 @echo '@@@%%%=$(MAKE)=@@@%%%'
2260 _ACEOF
2261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2262 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2263 *@@@%%%=?*=@@@%%%*)
2264 eval ac_cv_prog_make_${ac_make}_set=yes;;
2266 eval ac_cv_prog_make_${ac_make}_set=no;;
2267 esac
2268 rm -f conftest.make
2270 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2271 { echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6; }
2273 SET_MAKE=
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 SET_MAKE="MAKE=${MAKE-make}"
2280 rm -rf .tst 2>/dev/null
2281 mkdir .tst 2>/dev/null
2282 if test -d .tst; then
2283 am__leading_dot=.
2284 else
2285 am__leading_dot=_
2287 rmdir .tst 2>/dev/null
2289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2291 # is not polluted with repeated "-I."
2292 am__isrc=' -I$(srcdir)'
2293 # test to see if srcdir already configured
2294 if test -f $srcdir/config.status; then
2295 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2296 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2297 { (exit 1); exit 1; }; }
2301 # test whether we have cygpath
2302 if test -z "$CYGPATH_W"; then
2303 if (cygpath --version) >/dev/null 2>/dev/null; then
2304 CYGPATH_W='cygpath -w'
2305 else
2306 CYGPATH_W=echo
2311 # Define the identity of the package.
2312 PACKAGE=jamvm
2313 VERSION=1.5.0
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE "$PACKAGE"
2318 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define VERSION "$VERSION"
2323 _ACEOF
2325 # Some tools Automake needs.
2327 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2330 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2333 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2336 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2339 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2341 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2343 # Installed binaries are usually stripped using `strip' when the user
2344 # run `make install-strip'. However `strip' might not be the right
2345 # tool to use in cross-compilation environments, therefore Automake
2346 # will honor the `STRIP' environment variable to overrule this program.
2347 if test "$cross_compiling" != no; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}strip; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_STRIP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 if test -n "$STRIP"; then
2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2370 done
2371 done
2372 IFS=$as_save_IFS
2376 STRIP=$ac_cv_prog_STRIP
2377 if test -n "$STRIP"; then
2378 { echo "$as_me:$LINENO: result: $STRIP" >&5
2379 echo "${ECHO_T}$STRIP" >&6; }
2380 else
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2387 if test -z "$ac_cv_prog_STRIP"; then
2388 ac_ct_STRIP=$STRIP
2389 # Extract the first word of "strip", so it can be a program name with args.
2390 set dummy strip; ac_word=$2
2391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396 if test -n "$ac_ct_STRIP"; then
2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_ac_ct_STRIP="strip"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2410 done
2411 done
2412 IFS=$as_save_IFS
2416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2417 if test -n "$ac_ct_STRIP"; then
2418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2419 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2420 else
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2425 if test "x$ac_ct_STRIP" = x; then
2426 STRIP=":"
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429 yes:)
2430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&5
2433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2436 ac_tool_warned=yes ;;
2437 esac
2438 STRIP=$ac_ct_STRIP
2440 else
2441 STRIP="$ac_cv_prog_STRIP"
2445 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2447 # We need awk for the "check" target. The system "awk" is bad on
2448 # some platforms.
2449 # Always define AMTAR for backward compatibility.
2451 AMTAR=${AMTAR-"${am_missing_run}tar"}
2453 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2459 ac_config_headers="$ac_config_headers src/config.h"
2463 # Make sure we can run config.sub.
2464 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2465 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2466 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2467 { (exit 1); exit 1; }; }
2469 { echo "$as_me:$LINENO: checking build system type" >&5
2470 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2471 if test "${ac_cv_build+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474 ac_build_alias=$build_alias
2475 test "x$ac_build_alias" = x &&
2476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2477 test "x$ac_build_alias" = x &&
2478 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2479 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2480 { (exit 1); exit 1; }; }
2481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2484 { (exit 1); exit 1; }; }
2487 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2488 echo "${ECHO_T}$ac_cv_build" >&6; }
2489 case $ac_cv_build in
2490 *-*-*) ;;
2491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2492 echo "$as_me: error: invalid value of canonical build" >&2;}
2493 { (exit 1); exit 1; }; };;
2494 esac
2495 build=$ac_cv_build
2496 ac_save_IFS=$IFS; IFS='-'
2497 set x $ac_cv_build
2498 shift
2499 build_cpu=$1
2500 build_vendor=$2
2501 shift; shift
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2504 build_os=$*
2505 IFS=$ac_save_IFS
2506 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2509 { echo "$as_me:$LINENO: checking host system type" >&5
2510 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2511 if test "${ac_cv_host+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 if test "x$host_alias" = x; then
2515 ac_cv_host=$ac_cv_build
2516 else
2517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2520 { (exit 1); exit 1; }; }
2524 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2525 echo "${ECHO_T}$ac_cv_host" >&6; }
2526 case $ac_cv_host in
2527 *-*-*) ;;
2528 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2529 echo "$as_me: error: invalid value of canonical host" >&2;}
2530 { (exit 1); exit 1; }; };;
2531 esac
2532 host=$ac_cv_host
2533 ac_save_IFS=$IFS; IFS='-'
2534 set x $ac_cv_host
2535 shift
2536 host_cpu=$1
2537 host_vendor=$2
2538 shift; shift
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2541 host_os=$*
2542 IFS=$ac_save_IFS
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2547 case "$host" in
2548 i[3456]86-*-linux*) host_cpu=i386 host_os=linux ;;
2549 i[3456]86-*-kfreebsd*) host_cpu=i386 host_os=linux ;;
2550 i[3456]86-*-darwin*) host_cpu=i386 host_os=darwin ;;
2551 i386-*-openbsd*) host_os=bsd libdl_needed=no ;;
2552 i386-*-freebsd*) host_os=bsd libdl_needed=no ;;
2553 x86_64-*-linux*) host_os=linux ;;
2554 hppa*-*-linux*) host_cpu=parisc host_os=linux ;;
2555 avr32*-*-linux*) host_cpu=avr32 host_os=linux ;;
2556 mipsel-*-linux*) host_cpu=mips host_os=linux ;;
2557 amd64-*-openbsd*) host_os=bsd libdl_needed=no ;;
2558 amd64-*-freebsd*) host_os=bsd libdl_needed=no ;;
2559 arm*-*-linux*) host_cpu=arm host_os=linux ;;
2560 arm*-*-openbsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
2561 arm*-*-freebsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
2562 powerpc*-*-linux*) host_cpu=powerpc host_os=linux ;;
2563 powerpc*-*-openbsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
2564 powerpc*-*-freebsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
2565 powerpc-*-darwin*) host_os=darwin ;;
2566 *) { { echo "$as_me:$LINENO: error: $host not supported" >&5
2567 echo "$as_me: error: $host not supported" >&2;}
2568 { (exit 1); exit 1; }; } ;;
2569 esac
2571 arch=$host_cpu
2572 os=$host_os
2576 # Check whether --enable-tracegc was given.
2577 if test "${enable_tracegc+set}" = set; then
2578 enableval=$enable_tracegc; if test "$enableval" != no; then
2580 cat >>confdefs.h <<\_ACEOF
2581 #define TRACEGC 1
2582 _ACEOF
2588 # Check whether --enable-tracealloc was given.
2589 if test "${enable_tracealloc+set}" = set; then
2590 enableval=$enable_tracealloc; if test "$enableval" != no; then
2592 cat >>confdefs.h <<\_ACEOF
2593 #define TRACEALLOC 1
2594 _ACEOF
2600 # Check whether --enable-tracefnlz was given.
2601 if test "${enable_tracefnlz+set}" = set; then
2602 enableval=$enable_tracefnlz; if test "$enableval" != no; then
2604 cat >>confdefs.h <<\_ACEOF
2605 #define TRACEFNLZ 1
2606 _ACEOF
2612 # Check whether --enable-tracedll was given.
2613 if test "${enable_tracedll+set}" = set; then
2614 enableval=$enable_tracedll; if test "$enableval" != no; then
2616 cat >>confdefs.h <<\_ACEOF
2617 #define TRACEDLL 1
2618 _ACEOF
2624 # Check whether --enable-tracelock was given.
2625 if test "${enable_tracelock+set}" = set; then
2626 enableval=$enable_tracelock; if test "$enableval" != no; then
2628 cat >>confdefs.h <<\_ACEOF
2629 #define TRACELOCK 1
2630 _ACEOF
2636 # Check whether --enable-tracethread was given.
2637 if test "${enable_tracethread+set}" = set; then
2638 enableval=$enable_tracethread; if test "$enableval" != no; then
2640 cat >>confdefs.h <<\_ACEOF
2641 #define TRACETHREAD 1
2642 _ACEOF
2648 # Check whether --enable-tracecompact was given.
2649 if test "${enable_tracecompact+set}" = set; then
2650 enableval=$enable_tracecompact; if test "$enableval" != no; then
2652 cat >>confdefs.h <<\_ACEOF
2653 #define TRACECOMPACT 1
2654 _ACEOF
2660 # Check whether --enable-tracedirect was given.
2661 if test "${enable_tracedirect+set}" = set; then
2662 enableval=$enable_tracedirect; if test "$enableval" != no; then
2664 cat >>confdefs.h <<\_ACEOF
2665 #define TRACEDIRECT 1
2666 _ACEOF
2672 # Check whether --enable-traceinlining was given.
2673 if test "${enable_traceinlining+set}" = set; then
2674 enableval=$enable_traceinlining; if test "$enableval" != no; then
2676 cat >>confdefs.h <<\_ACEOF
2677 #define TRACEINLINING 1
2678 _ACEOF
2684 # Check whether --enable-trace was given.
2685 if test "${enable_trace+set}" = set; then
2686 enableval=$enable_trace; if test "$enableval" != no; then
2688 cat >>confdefs.h <<\_ACEOF
2689 #define TRACEGC 1
2690 _ACEOF
2693 cat >>confdefs.h <<\_ACEOF
2694 #define TRACEALLOC 1
2695 _ACEOF
2698 cat >>confdefs.h <<\_ACEOF
2699 #define TRACEFNLZ 1
2700 _ACEOF
2703 cat >>confdefs.h <<\_ACEOF
2704 #define TRACEDLL 1
2705 _ACEOF
2708 cat >>confdefs.h <<\_ACEOF
2709 #define TRACELOCK 1
2710 _ACEOF
2713 cat >>confdefs.h <<\_ACEOF
2714 #define TRACETHREAD 1
2715 _ACEOF
2718 cat >>confdefs.h <<\_ACEOF
2719 #define TRACECOMPACT 1
2720 _ACEOF
2723 cat >>confdefs.h <<\_ACEOF
2724 #define TRACEDIRECT 1
2725 _ACEOF
2728 cat >>confdefs.h <<\_ACEOF
2729 #define TRACEINLINING 1
2730 _ACEOF
2736 # Check whether --enable-int-threading was given.
2737 if test "${enable_int_threading+set}" = set; then
2738 enableval=$enable_int_threading;
2742 # Check whether --enable-int-direct was given.
2743 if test "${enable_int_direct+set}" = set; then
2744 enableval=$enable_int_direct;
2748 # Check whether --enable-int-caching was given.
2749 if test "${enable_int_caching+set}" = set; then
2750 enableval=$enable_int_caching;
2751 else
2752 if test "$host_cpu" = x86_64; then
2753 enable_int_caching=no
2758 # Check whether --enable-int-prefetch was given.
2759 if test "${enable_int_prefetch+set}" = set; then
2760 enableval=$enable_int_prefetch;
2761 else
2762 if test "$host_cpu" != powerpc; then
2763 enable_int_prefetch=no
2768 # Check whether --enable-runtime-reloc-checks was given.
2769 if test "${enable_runtime_reloc_checks+set}" = set; then
2770 enableval=$enable_runtime_reloc_checks;
2771 else
2772 enable_runtime_reloc_checks=no
2776 # Check whether --enable-int-inlining was given.
2777 if test "${enable_int_inlining+set}" = set; then
2778 enableval=$enable_int_inlining;
2779 else
2780 if test "$host_cpu" = x86_64 -o "$host_cpu" = i386 -o "$host_cpu" = powerpc && \
2781 test "$cross_compiling" = no -o "$enable_runtime_reloc_checks" != no; then
2782 enable_int_inlining=yes
2783 else
2784 enable_int_inlining=no
2789 if test "$enable_int_threading" != no; then
2791 cat >>confdefs.h <<\_ACEOF
2792 #define THREADED 1
2793 _ACEOF
2796 if test "$enable_int_caching" != no; then
2798 cat >>confdefs.h <<\_ACEOF
2799 #define USE_CACHE 1
2800 _ACEOF
2804 if test "$enable_int_direct" != no; then
2806 cat >>confdefs.h <<\_ACEOF
2807 #define DIRECT 1
2808 _ACEOF
2811 if test "$enable_int_prefetch" != no; then
2813 cat >>confdefs.h <<\_ACEOF
2814 #define PREFETCH 1
2815 _ACEOF
2819 if test "$enable_int_inlining" != no; then
2821 cat >>confdefs.h <<\_ACEOF
2822 #define INLINING 1
2823 _ACEOF
2825 interp_cflags=-fno-reorder-blocks
2827 if test "$enable_runtime_reloc_checks" != no; then
2829 cat >>confdefs.h <<\_ACEOF
2830 #define RUNTIME_RELOC_CHECKS 1
2831 _ACEOF
2833 else
2834 compile_time_reloc_checks=yes
2841 if test "$compile_time_reloc_checks" = yes; then
2842 COMPILE_TIME_RELOC_CHECKS_TRUE=
2843 COMPILE_TIME_RELOC_CHECKS_FALSE='#'
2844 else
2845 COMPILE_TIME_RELOC_CHECKS_TRUE='#'
2846 COMPILE_TIME_RELOC_CHECKS_FALSE=
2849 # Automatically enable JEM support
2850 AVR32_JAVA_EXTENSION_SUPPORT_TRUE=
2851 AVR32_JAVA_EXTENSION_SUPPORT_FALSE='#'
2854 # Check whether --enable-ffi was given.
2855 if test "${enable_ffi+set}" = set; then
2856 enableval=$enable_ffi;
2857 else
2858 if test "$host_cpu" != x86_64 -a "$host_cpu" != parisc; then
2859 enable_ffi=no
2865 # Check whether --with-classpath-install-dir was given.
2866 if test "${with_classpath_install_dir+set}" = set; then
2867 withval=$with_classpath_install_dir;
2868 else
2869 with_classpath_install_dir=/usr/local/classpath
2874 cat >>confdefs.h <<_ACEOF
2875 #define CLASSPATH_INSTALL_DIR "$with_classpath_install_dir"
2876 _ACEOF
2878 #JEM
2879 cat >>confdefs.h <<_ACEOF
2880 #define JEM 1
2881 _ACEOF
2887 if test "$prefix" = "NONE"; then
2888 install_dir=$ac_default_prefix
2889 else
2890 install_dir=$prefix
2893 cat >>confdefs.h <<_ACEOF
2894 #define INSTALL_DIR "$install_dir"
2895 _ACEOF
2898 # Check whether --enable-zip was given.
2899 if test "${enable_zip+set}" = set; then
2900 enableval=$enable_zip;
2904 # Check whether --enable-static was given.
2905 if test "${enable_static+set}" = set; then
2906 enableval=$enable_static; p=${PACKAGE-default}
2907 case $enableval in
2908 yes) enable_static=yes ;;
2909 no) enable_static=no ;;
2911 enable_static=no
2912 # Look at the argument we got. We use all the common list separators.
2913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2914 for pkg in $enableval; do
2915 IFS="$lt_save_ifs"
2916 if test "X$pkg" = "X$p"; then
2917 enable_static=yes
2919 done
2920 IFS="$lt_save_ifs"
2922 esac
2923 else
2924 enable_static=no
2929 # Check whether --enable-shared was given.
2930 if test "${enable_shared+set}" = set; then
2931 enableval=$enable_shared; p=${PACKAGE-default}
2932 case $enableval in
2933 yes) enable_shared=yes ;;
2934 no) enable_shared=no ;;
2936 enable_shared=no
2937 # Look at the argument we got. We use all the common list separators.
2938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2939 for pkg in $enableval; do
2940 IFS="$lt_save_ifs"
2941 if test "X$pkg" = "X$p"; then
2942 enable_shared=yes
2944 done
2945 IFS="$lt_save_ifs"
2947 esac
2948 else
2949 enable_shared=yes
2953 # Check whether --enable-fast-install was given.
2954 if test "${enable_fast_install+set}" = set; then
2955 enableval=$enable_fast_install; p=${PACKAGE-default}
2956 case $enableval in
2957 yes) enable_fast_install=yes ;;
2958 no) enable_fast_install=no ;;
2960 enable_fast_install=no
2961 # Look at the argument we got. We use all the common list separators.
2962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2963 for pkg in $enableval; do
2964 IFS="$lt_save_ifs"
2965 if test "X$pkg" = "X$p"; then
2966 enable_fast_install=yes
2968 done
2969 IFS="$lt_save_ifs"
2971 esac
2972 else
2973 enable_fast_install=yes
2977 DEPDIR="${am__leading_dot}deps"
2979 ac_config_commands="$ac_config_commands depfiles"
2982 am_make=${MAKE-make}
2983 cat > confinc << 'END'
2984 am__doit:
2985 @echo done
2986 .PHONY: am__doit
2988 # If we don't find an include directive, just comment out the code.
2989 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2990 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2991 am__include="#"
2992 am__quote=
2993 _am_result=none
2994 # First try GNU make style include.
2995 echo "include confinc" > confmf
2996 # We grep out `Entering directory' and `Leaving directory'
2997 # messages which can occur if `w' ends up in MAKEFLAGS.
2998 # In particular we don't look at `^make:' because GNU make might
2999 # be invoked under some other name (usually "gmake"), in which
3000 # case it prints its new name instead of `make'.
3001 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3002 am__include=include
3003 am__quote=
3004 _am_result=GNU
3006 # Now try BSD make style include.
3007 if test "$am__include" = "#"; then
3008 echo '.include "confinc"' > confmf
3009 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3010 am__include=.include
3011 am__quote="\""
3012 _am_result=BSD
3017 { echo "$as_me:$LINENO: result: $_am_result" >&5
3018 echo "${ECHO_T}$_am_result" >&6; }
3019 rm -f confinc confmf
3021 # Check whether --enable-dependency-tracking was given.
3022 if test "${enable_dependency_tracking+set}" = set; then
3023 enableval=$enable_dependency_tracking;
3026 if test "x$enable_dependency_tracking" != xno; then
3027 am_depcomp="$ac_aux_dir/depcomp"
3028 AMDEPBACKSLASH='\'
3030 if test "x$enable_dependency_tracking" != xno; then
3031 AMDEP_TRUE=
3032 AMDEP_FALSE='#'
3033 else
3034 AMDEP_TRUE='#'
3035 AMDEP_FALSE=
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3066 done
3067 done
3068 IFS=$as_save_IFS
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { echo "$as_me:$LINENO: result: $CC" >&5
3075 echo "${ECHO_T}$CC" >&6; }
3076 else
3077 { echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6; }
3083 if test -z "$ac_cv_prog_CC"; then
3084 ac_ct_CC=$CC
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086 set dummy gcc; ac_word=$2
3087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="gcc"
3103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115 echo "${ECHO_T}$ac_ct_CC" >&6; }
3116 else
3117 { echo "$as_me:$LINENO: result: no" >&5
3118 echo "${ECHO_T}no" >&6; }
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3127 whose name does not start with the host triplet. If you think this
3128 configuration is useful to you, please write to autoconf@gnu.org." >&5
3129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3130 whose name does not start with the host triplet. If you think this
3131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3132 ac_tool_warned=yes ;;
3133 esac
3134 CC=$ac_ct_CC
3136 else
3137 CC="$ac_cv_prog_CC"
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}cc; ac_word=$2
3144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="${ac_tool_prefix}cc"
3160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3163 done
3164 done
3165 IFS=$as_save_IFS
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171 { echo "$as_me:$LINENO: result: $CC" >&5
3172 echo "${ECHO_T}$CC" >&6; }
3173 else
3174 { echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6; }
3181 if test -z "$CC"; then
3182 # Extract the first word of "cc", so it can be a program name with args.
3183 set dummy cc; ac_word=$2
3184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 ac_prog_rejected=no
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3201 ac_prog_rejected=yes
3202 continue
3204 ac_cv_prog_CC="cc"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3212 if test $ac_prog_rejected = yes; then
3213 # We found a bogon in the path, so make sure we never use it.
3214 set dummy $ac_cv_prog_CC
3215 shift
3216 if test $# != 0; then
3217 # We chose a different compiler from the bogus one.
3218 # However, it has the same basename, so the bogon will be chosen
3219 # first if we set CC to just the basename; use the full file name.
3220 shift
3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 { echo "$as_me:$LINENO: result: $CC" >&5
3229 echo "${ECHO_T}$CC" >&6; }
3230 else
3231 { echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6; }
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 for ac_prog in cl.exe
3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { echo "$as_me:$LINENO: result: $CC" >&5
3271 echo "${ECHO_T}$CC" >&6; }
3272 else
3273 { echo "$as_me:$LINENO: result: no" >&5
3274 echo "${ECHO_T}no" >&6; }
3278 test -n "$CC" && break
3279 done
3281 if test -z "$CC"; then
3282 ac_ct_CC=$CC
3283 for ac_prog in cl.exe
3285 # Extract the first word of "$ac_prog", so it can be a program name with args.
3286 set dummy $ac_prog; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="$ac_prog"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3306 done
3307 done
3308 IFS=$as_save_IFS
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3315 echo "${ECHO_T}$ac_ct_CC" >&6; }
3316 else
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3322 test -n "$ac_ct_CC" && break
3323 done
3325 if test "x$ac_ct_CC" = x; then
3326 CC=""
3327 else
3328 case $cross_compiling:$ac_tool_warned in
3329 yes:)
3330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3331 whose name does not start with the host triplet. If you think this
3332 configuration is useful to you, please write to autoconf@gnu.org." >&5
3333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3334 whose name does not start with the host triplet. If you think this
3335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }
3351 # Provide some information about the compiler.
3352 echo "$as_me:$LINENO: checking for C compiler version" >&5
3353 ac_compiler=`set X $ac_compile; echo $2`
3354 { (ac_try="$ac_compiler --version >&5"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compiler --version >&5") 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }
3364 { (ac_try="$ac_compiler -v >&5"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_compiler -v >&5") 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }
3374 { (ac_try="$ac_compiler -V >&5"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compiler -V >&5") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3393 main ()
3397 return 0;
3399 _ACEOF
3400 ac_clean_files_save=$ac_clean_files
3401 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3402 # Try to create an executable without -o first, disregard a.out.
3403 # It will help us diagnose broken compilers, and finding out an intuition
3404 # of exeext.
3405 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3406 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3407 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3409 # List of possible output files, starting from the most likely.
3410 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3411 # only as a last resort. b.out is created by i960 compilers.
3412 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3414 # The IRIX 6 linker writes into existing files which may not be
3415 # executable, retaining their permissions. Remove them first so a
3416 # subsequent execution test works.
3417 ac_rmfiles=
3418 for ac_file in $ac_files
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3423 esac
3424 done
3425 rm -f $ac_rmfiles
3427 if { (ac_try="$ac_link_default"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3469 else
3470 ac_file=''
3473 { echo "$as_me:$LINENO: result: $ac_file" >&5
3474 echo "${ECHO_T}$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&2;}
3483 { (exit 77); exit 77; }; }
3486 ac_exeext=$ac_cv_exeext
3488 # Check that the compiler produces executables we can run. If not, either
3489 # the compiler is broken, or we cross compile.
3490 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3491 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3492 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3493 # If not cross compiling, check that we can run a simple program.
3494 if test "$cross_compiling" != yes; then
3495 if { ac_try='./$ac_file'
3496 { (case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_try") 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 cross_compiling=no
3506 else
3507 if test "$cross_compiling" = maybe; then
3508 cross_compiling=yes
3509 else
3510 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details." >&5
3513 echo "$as_me: error: cannot run C compiled programs.
3514 If you meant to cross compile, use \`--host'.
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }
3520 { echo "$as_me:$LINENO: result: yes" >&5
3521 echo "${ECHO_T}yes" >&6; }
3523 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3524 ac_clean_files=$ac_clean_files_save
3525 # Check that the compiler produces executables we can run. If not, either
3526 # the compiler is broken, or we cross compile.
3527 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3528 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3529 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3530 echo "${ECHO_T}$cross_compiling" >&6; }
3532 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3533 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3534 if { (ac_try="$ac_link"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; then
3544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3546 # work properly (i.e., refer to `conftest.exe'), while it won't with
3547 # `rm'.
3548 for ac_file in conftest.exe conftest conftest.*; do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 break;;
3554 * ) break;;
3555 esac
3556 done
3557 else
3558 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }
3565 rm -f conftest$ac_cv_exeext
3566 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3567 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3569 rm -f conftest.$ac_ext
3570 EXEEXT=$ac_cv_exeext
3571 ac_exeext=$EXEEXT
3572 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3573 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3574 if test "${ac_cv_objext+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.o conftest.obj
3593 if { (ac_try="$ac_compile"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compile") 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; then
3603 for ac_file in conftest.o conftest.obj conftest.*; do
3604 test -f "$ac_file" || continue;
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608 break;;
3609 esac
3610 done
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3616 See \`config.log' for more details." >&5
3617 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3618 See \`config.log' for more details." >&2;}
3619 { (exit 1); exit 1; }; }
3622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3624 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3625 echo "${ECHO_T}$ac_cv_objext" >&6; }
3626 OBJEXT=$ac_cv_objext
3627 ac_objext=$OBJEXT
3628 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3629 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3630 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h. */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3641 main ()
3643 #ifndef __GNUC__
3644 choke me
3645 #endif
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && {
3665 test -z "$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 } && test -s conftest.$ac_objext; then
3668 ac_compiler_gnu=yes
3669 else
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 ac_compiler_gnu=no
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3682 GCC=`test $ac_compiler_gnu = yes && echo yes`
3683 ac_test_CFLAGS=${CFLAGS+set}
3684 ac_save_CFLAGS=$CFLAGS
3685 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_cc_g+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 ac_save_c_werror_flag=$ac_c_werror_flag
3691 ac_c_werror_flag=yes
3692 ac_cv_prog_cc_g=no
3693 CFLAGS="-g"
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_prog_cc_g=yes
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 CFLAGS=""
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3770 CFLAGS="-g"
3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h. */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3779 main ()
3783 return 0;
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3803 ac_cv_prog_cc_g=yes
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3820 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823 CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825 if test "$GCC" = yes; then
3826 CFLAGS="-g -O2"
3827 else
3828 CFLAGS="-g"
3830 else
3831 if test "$GCC" = yes; then
3832 CFLAGS="-O2"
3833 else
3834 CFLAGS=
3837 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3838 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 ac_cv_prog_cc_c89=no
3843 ac_save_CC=$CC
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <stdarg.h>
3851 #include <stdio.h>
3852 #include <sys/types.h>
3853 #include <sys/stat.h>
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3858 char **p;
3859 int i;
3861 return p[i];
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3865 char *s;
3866 va_list v;
3867 va_start (v,p);
3868 s = g (p, va_arg (v,int));
3869 va_end (v);
3870 return s;
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3874 function prototypes and stuff, but not '\xHH' hex character constants.
3875 These don't provoke an error unfortunately, instead are silently treated
3876 as 'x'. The following induces an error, until -std is added to get
3877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3878 array size at least. It's necessary to write '\x00'==0 to get something
3879 that's true only with -std. */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883 inside strings and character constants. */
3884 #define FOO(x) 'x'
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3894 main ()
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 return 0;
3900 _ACEOF
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 CC="$ac_save_CC $ac_arg"
3905 rm -f conftest.$ac_objext
3906 if { (ac_try="$ac_compile"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_compile") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest.$ac_objext; then
3922 ac_cv_prog_cc_c89=$ac_arg
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3930 rm -f core conftest.err conftest.$ac_objext
3931 test "x$ac_cv_prog_cc_c89" != "xno" && break
3932 done
3933 rm -f conftest.$ac_ext
3934 CC=$ac_save_CC
3937 # AC_CACHE_VAL
3938 case "x$ac_cv_prog_cc_c89" in
3940 { echo "$as_me:$LINENO: result: none needed" >&5
3941 echo "${ECHO_T}none needed" >&6; } ;;
3942 xno)
3943 { echo "$as_me:$LINENO: result: unsupported" >&5
3944 echo "${ECHO_T}unsupported" >&6; } ;;
3946 CC="$CC $ac_cv_prog_cc_c89"
3947 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3948 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3949 esac
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 depcc="$CC" am_compiler_list=
3960 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3966 # We make a subdir and do the tests there. Otherwise we can end up
3967 # making bogus files that we don't know about and never remove. For
3968 # instance it was reported that on HP-UX the gcc test will end up
3969 # making a dummy file named `D' -- because `-MD' means `put the output
3970 # in D'.
3971 mkdir conftest.dir
3972 # Copy depcomp to subdir because otherwise we won't find it if we're
3973 # using a relative directory.
3974 cp "$am_depcomp" conftest.dir
3975 cd conftest.dir
3976 # We will build objects and dependencies in a subdirectory because
3977 # it helps to detect inapplicable dependency modes. For instance
3978 # both Tru64's cc and ICC support -MD to output dependencies as a
3979 # side effect of compilation, but ICC will put the dependencies in
3980 # the current directory while Tru64 will put them in the object
3981 # directory.
3982 mkdir sub
3984 am_cv_CC_dependencies_compiler_type=none
3985 if test "$am_compiler_list" = ""; then
3986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988 for depmode in $am_compiler_list; do
3989 # Setup a source with many dependencies, because some compilers
3990 # like to wrap large dependency lists on column 80 (with \), and
3991 # we should not choose a depcomp mode which is confused by this.
3993 # We need to recreate these files for each test, as the compiler may
3994 # overwrite some of them when testing with obscure command lines.
3995 # This happens at least with the AIX C compiler.
3996 : > sub/conftest.c
3997 for i in 1 2 3 4 5 6; do
3998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4000 # Solaris 8's {/usr,}/bin/sh.
4001 touch sub/conftst$i.h
4002 done
4003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4005 case $depmode in
4006 nosideeffect)
4007 # after this tag, mechanisms are not by side-effect, so they'll
4008 # only be used when explicitly requested
4009 if test "x$enable_dependency_tracking" = xyes; then
4010 continue
4011 else
4012 break
4015 none) break ;;
4016 esac
4017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4018 # mode. It turns out that the SunPro C++ compiler does not properly
4019 # handle `-M -o', and we need to detect this.
4020 if depmode=$depmode \
4021 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4024 >/dev/null 2>conftest.err &&
4025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029 # icc doesn't choke on unknown options, it will just issue warnings
4030 # or remarks (even with -Werror). So we grep stderr for any message
4031 # that says an option was ignored or not supported.
4032 # When given -MP, icc 7.0 and 7.1 complain thusly:
4033 # icc: Command line warning: ignoring option '-M'; no argument required
4034 # The diagnosis changed in icc 8.0:
4035 # icc: Command line remark: option '-MP' not supported
4036 if (grep 'ignoring option' conftest.err ||
4037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038 am_cv_CC_dependencies_compiler_type=$depmode
4039 break
4042 done
4044 cd ..
4045 rm -rf conftest.dir
4046 else
4047 am_cv_CC_dependencies_compiler_type=none
4051 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4052 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4056 test "x$enable_dependency_tracking" != xno \
4057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4058 am__fastdepCC_TRUE=
4059 am__fastdepCC_FALSE='#'
4060 else
4061 am__fastdepCC_TRUE='#'
4062 am__fastdepCC_FALSE=
4066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4068 if test "${lt_cv_path_SED+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 # Loop through the user's path and test for sed and gsed.
4072 # Then use that list of sed's as ones to test for truncation.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for lt_ac_prog in sed gsed; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4081 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4083 done
4084 done
4085 done
4086 IFS=$as_save_IFS
4087 lt_ac_max=0
4088 lt_ac_count=0
4089 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4090 # along with /bin/sed that truncates output.
4091 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4092 test ! -f $lt_ac_sed && continue
4093 cat /dev/null > conftest.in
4094 lt_ac_count=0
4095 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4096 # Check for GNU sed and select it if it is found.
4097 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4098 lt_cv_path_SED=$lt_ac_sed
4099 break
4101 while true; do
4102 cat conftest.in conftest.in >conftest.tmp
4103 mv conftest.tmp conftest.in
4104 cp conftest.in conftest.nl
4105 echo >>conftest.nl
4106 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4107 cmp -s conftest.out conftest.nl || break
4108 # 10000 chars as input seems more than enough
4109 test $lt_ac_count -gt 10 && break
4110 lt_ac_count=`expr $lt_ac_count + 1`
4111 if test $lt_ac_count -gt $lt_ac_max; then
4112 lt_ac_max=$lt_ac_count
4113 lt_cv_path_SED=$lt_ac_sed
4115 done
4116 done
4120 SED=$lt_cv_path_SED
4122 { echo "$as_me:$LINENO: result: $SED" >&5
4123 echo "${ECHO_T}$SED" >&6; }
4125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_GREP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 # Extract the first word of "grep ggrep" to use in msg output
4131 if test -z "$GREP"; then
4132 set dummy grep ggrep; ac_prog_name=$2
4133 if test "${ac_cv_path_GREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_path_GREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in grep ggrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4147 # Check for GNU ac_path_GREP and select it if it is found.
4148 # Check for GNU $ac_path_GREP
4149 case `"$ac_path_GREP" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4153 ac_count=0
4154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4155 while :
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 echo 'GREP' >> "conftest.nl"
4161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 ac_count=`expr $ac_count + 1`
4164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_GREP="$ac_path_GREP"
4167 ac_path_GREP_max=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4176 $ac_path_GREP_found && break 3
4177 done
4178 done
4180 done
4181 IFS=$as_save_IFS
4186 GREP="$ac_cv_path_GREP"
4187 if test -z "$GREP"; then
4188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4190 { (exit 1); exit 1; }; }
4193 else
4194 ac_cv_path_GREP=$GREP
4199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4204 { echo "$as_me:$LINENO: checking for egrep" >&5
4205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_EGREP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 # Extract the first word of "egrep" to use in msg output
4213 if test -z "$EGREP"; then
4214 set dummy egrep; ac_prog_name=$2
4215 if test "${ac_cv_path_EGREP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_path_EGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in egrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 ac_count=0
4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4237 while :
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP="$ac_path_EGREP"
4249 ac_path_EGREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4262 done
4263 IFS=$as_save_IFS
4268 EGREP="$ac_cv_path_EGREP"
4269 if test -z "$EGREP"; then
4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4272 { (exit 1); exit 1; }; }
4275 else
4276 ac_cv_path_EGREP=$EGREP
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4284 EGREP="$ac_cv_path_EGREP"
4288 # Check whether --with-gnu-ld was given.
4289 if test "${with_gnu_ld+set}" = set; then
4290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4291 else
4292 with_gnu_ld=no
4295 ac_prog=ld
4296 if test "$GCC" = yes; then
4297 # Check if gcc -print-prog-name=ld gives a path.
4298 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4300 case $host in
4301 *-*-mingw*)
4302 # gcc leaves a trailing carriage return which upsets mingw
4303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4306 esac
4307 case $ac_prog in
4308 # Accept absolute paths.
4309 [\\/]* | ?:[\\/]*)
4310 re_direlt='/[^/][^/]*/\.\./'
4311 # Canonicalize the pathname of ld
4312 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4313 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4314 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4315 done
4316 test -z "$LD" && LD="$ac_prog"
4319 # If it fails, then pretend we aren't using GCC.
4320 ac_prog=ld
4323 # If it is relative, then search for the first ld in PATH.
4324 with_gnu_ld=unknown
4326 esac
4327 elif test "$with_gnu_ld" = yes; then
4328 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4330 else
4331 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4334 if test "${lt_cv_path_LD+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 if test -z "$LD"; then
4338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4339 for ac_dir in $PATH; do
4340 IFS="$lt_save_ifs"
4341 test -z "$ac_dir" && ac_dir=.
4342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4343 lt_cv_path_LD="$ac_dir/$ac_prog"
4344 # Check to see if the program is GNU ld. I'd rather use --version,
4345 # but apparently some variants of GNU ld only accept -v.
4346 # Break only if it was the GNU/non-GNU ld that we prefer.
4347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4348 *GNU* | *'with BFD'*)
4349 test "$with_gnu_ld" != no && break
4352 test "$with_gnu_ld" != yes && break
4354 esac
4356 done
4357 IFS="$lt_save_ifs"
4358 else
4359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4363 LD="$lt_cv_path_LD"
4364 if test -n "$LD"; then
4365 { echo "$as_me:$LINENO: result: $LD" >&5
4366 echo "${ECHO_T}$LD" >&6; }
4367 else
4368 { echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6; }
4371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4373 { (exit 1); exit 1; }; }
4374 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4380 case `$LD -v 2>&1 </dev/null` in
4381 *GNU* | *'with BFD'*)
4382 lt_cv_prog_gnu_ld=yes
4385 lt_cv_prog_gnu_ld=no
4387 esac
4389 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4391 with_gnu_ld=$lt_cv_prog_gnu_ld
4394 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4395 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4396 if test "${lt_cv_ld_reload_flag+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 lt_cv_ld_reload_flag='-r'
4401 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4402 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4403 reload_flag=$lt_cv_ld_reload_flag
4404 case $reload_flag in
4405 "" | " "*) ;;
4406 *) reload_flag=" $reload_flag" ;;
4407 esac
4408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4409 case $host_os in
4410 darwin*)
4411 if test "$GCC" = yes; then
4412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4413 else
4414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4417 esac
4419 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4421 if test "${lt_cv_path_NM+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 if test -n "$NM"; then
4425 # Let the user override the test.
4426 lt_cv_path_NM="$NM"
4427 else
4428 lt_nm_to_check="${ac_tool_prefix}nm"
4429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4430 lt_nm_to_check="$lt_nm_to_check nm"
4432 for lt_tmp_nm in $lt_nm_to_check; do
4433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4435 IFS="$lt_save_ifs"
4436 test -z "$ac_dir" && ac_dir=.
4437 tmp_nm="$ac_dir/$lt_tmp_nm"
4438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4439 # Check to see if the nm accepts a BSD-compat flag.
4440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4441 # nm: unknown option "B" ignored
4442 # Tru64's nm complains that /dev/null is an invalid object file
4443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4444 */dev/null* | *'Invalid file or object type'*)
4445 lt_cv_path_NM="$tmp_nm -B"
4446 break
4449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4450 */dev/null*)
4451 lt_cv_path_NM="$tmp_nm -p"
4452 break
4455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4456 continue # so that we can try to find one that supports BSD flags
4458 esac
4460 esac
4462 done
4463 IFS="$lt_save_ifs"
4464 done
4465 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4468 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4469 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4470 NM="$lt_cv_path_NM"
4472 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4473 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4474 LN_S=$as_ln_s
4475 if test "$LN_S" = "ln -s"; then
4476 { echo "$as_me:$LINENO: result: yes" >&5
4477 echo "${ECHO_T}yes" >&6; }
4478 else
4479 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4480 echo "${ECHO_T}no, using $LN_S" >&6; }
4483 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4484 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4485 if test "${lt_cv_deplibs_check_method+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 lt_cv_file_magic_cmd='$MAGIC_CMD'
4489 lt_cv_file_magic_test_file=
4490 lt_cv_deplibs_check_method='unknown'
4491 # Need to set the preceding variable on all platforms that support
4492 # interlibrary dependencies.
4493 # 'none' -- dependencies not supported.
4494 # `unknown' -- same as none, but documents that we really don't know.
4495 # 'pass_all' -- all dependencies passed with no checks.
4496 # 'test_compile' -- check by making test program.
4497 # 'file_magic [[regex]]' -- check by looking for files in library path
4498 # which responds to the $file_magic_cmd with a given extended regex.
4499 # If you have `file' or equivalent on your system and you're not sure
4500 # whether `pass_all' will *always* work, you probably want this one.
4502 case $host_os in
4503 aix4* | aix5*)
4504 lt_cv_deplibs_check_method=pass_all
4507 beos*)
4508 lt_cv_deplibs_check_method=pass_all
4511 bsdi[45]*)
4512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4513 lt_cv_file_magic_cmd='/usr/bin/file -L'
4514 lt_cv_file_magic_test_file=/shlib/libc.so
4517 cygwin*)
4518 # func_win32_libid is a shell function defined in ltmain.sh
4519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4520 lt_cv_file_magic_cmd='func_win32_libid'
4523 mingw* | pw32*)
4524 # Base MSYS/MinGW do not provide the 'file' command needed by
4525 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4526 # unless we find 'file', for example because we are cross-compiling.
4527 if ( file / ) >/dev/null 2>&1; then
4528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4529 lt_cv_file_magic_cmd='func_win32_libid'
4530 else
4531 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4532 lt_cv_file_magic_cmd='$OBJDUMP -f'
4536 darwin* | rhapsody*)
4537 lt_cv_deplibs_check_method=pass_all
4540 freebsd* | dragonfly*)
4541 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4542 case $host_cpu in
4543 i*86 )
4544 # Not sure whether the presence of OpenBSD here was a mistake.
4545 # Let's accept both of them until this is cleared up.
4546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4547 lt_cv_file_magic_cmd=/usr/bin/file
4548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4550 esac
4551 else
4552 lt_cv_deplibs_check_method=pass_all
4556 gnu*)
4557 lt_cv_deplibs_check_method=pass_all
4560 hpux10.20* | hpux11*)
4561 lt_cv_file_magic_cmd=/usr/bin/file
4562 case $host_cpu in
4563 ia64*)
4564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4567 hppa*64*)
4568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4573 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4575 esac
4578 interix[3-9]*)
4579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4583 irix5* | irix6* | nonstopux*)
4584 case $LD in
4585 *-32|*"-32 ") libmagic=32-bit;;
4586 *-n32|*"-n32 ") libmagic=N32;;
4587 *-64|*"-64 ") libmagic=64-bit;;
4588 *) libmagic=never-match;;
4589 esac
4590 lt_cv_deplibs_check_method=pass_all
4593 # This must be Linux ELF.
4594 linux* | k*bsd*-gnu)
4595 lt_cv_deplibs_check_method=pass_all
4598 netbsd* | netbsdelf*-gnu)
4599 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4601 else
4602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4606 newos6*)
4607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4608 lt_cv_file_magic_cmd=/usr/bin/file
4609 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4612 nto-qnx*)
4613 lt_cv_deplibs_check_method=unknown
4616 openbsd*)
4617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4619 else
4620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4624 osf3* | osf4* | osf5*)
4625 lt_cv_deplibs_check_method=pass_all
4628 rdos*)
4629 lt_cv_deplibs_check_method=pass_all
4632 solaris*)
4633 lt_cv_deplibs_check_method=pass_all
4636 sysv4 | sysv4.3*)
4637 case $host_vendor in
4638 motorola)
4639 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]'
4640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4642 ncr)
4643 lt_cv_deplibs_check_method=pass_all
4645 sequent)
4646 lt_cv_file_magic_cmd='/bin/file'
4647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4649 sni)
4650 lt_cv_file_magic_cmd='/bin/file'
4651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4652 lt_cv_file_magic_test_file=/lib/libc.so
4654 siemens)
4655 lt_cv_deplibs_check_method=pass_all
4658 lt_cv_deplibs_check_method=pass_all
4660 esac
4663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4664 lt_cv_deplibs_check_method=pass_all
4666 esac
4669 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4671 file_magic_cmd=$lt_cv_file_magic_cmd
4672 deplibs_check_method=$lt_cv_deplibs_check_method
4673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4678 # If no C compiler was specified, use CC.
4679 LTCC=${LTCC-"$CC"}
4681 # If no C compiler flags were specified, use CFLAGS.
4682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4684 # Allow CC to be a program name with arguments.
4685 compiler=$CC
4688 # Check whether --enable-libtool-lock was given.
4689 if test "${enable_libtool_lock+set}" = set; then
4690 enableval=$enable_libtool_lock;
4693 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4695 # Some flags need to be propagated to the compiler or linker for good
4696 # libtool support.
4697 case $host in
4698 ia64-*-hpux*)
4699 # Find out which ABI we are using.
4700 echo 'int i;' > conftest.$ac_ext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; then
4706 case `/usr/bin/file conftest.$ac_objext` in
4707 *ELF-32*)
4708 HPUX_IA64_MODE="32"
4710 *ELF-64*)
4711 HPUX_IA64_MODE="64"
4713 esac
4715 rm -rf conftest*
4717 *-*-irix6*)
4718 # Find out which ABI we are using.
4719 echo '#line 4706 "configure"' > conftest.$ac_ext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; then
4725 if test "$lt_cv_prog_gnu_ld" = yes; then
4726 case `/usr/bin/file conftest.$ac_objext` in
4727 *32-bit*)
4728 LD="${LD-ld} -melf32bsmip"
4730 *N32*)
4731 LD="${LD-ld} -melf32bmipn32"
4733 *64-bit*)
4734 LD="${LD-ld} -melf64bmip"
4736 esac
4737 else
4738 case `/usr/bin/file conftest.$ac_objext` in
4739 *32-bit*)
4740 LD="${LD-ld} -32"
4742 *N32*)
4743 LD="${LD-ld} -n32"
4745 *64-bit*)
4746 LD="${LD-ld} -64"
4748 esac
4751 rm -rf conftest*
4754 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4755 s390*-*linux*|sparc*-*linux*)
4756 # Find out which ABI we are using.
4757 echo 'int i;' > conftest.$ac_ext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; then
4763 case `/usr/bin/file conftest.o` in
4764 *32-bit*)
4765 case $host in
4766 x86_64-*kfreebsd*-gnu)
4767 LD="${LD-ld} -m elf_i386_fbsd"
4769 x86_64-*linux*)
4770 LD="${LD-ld} -m elf_i386"
4772 ppc64-*linux*|powerpc64-*linux*)
4773 LD="${LD-ld} -m elf32ppclinux"
4775 s390x-*linux*)
4776 LD="${LD-ld} -m elf_s390"
4778 sparc64-*linux*)
4779 LD="${LD-ld} -m elf32_sparc"
4781 esac
4783 *64-bit*)
4784 case $host in
4785 x86_64-*kfreebsd*-gnu)
4786 LD="${LD-ld} -m elf_x86_64_fbsd"
4788 x86_64-*linux*)
4789 LD="${LD-ld} -m elf_x86_64"
4791 ppc*-*linux*|powerpc*-*linux*)
4792 LD="${LD-ld} -m elf64ppc"
4794 s390*-*linux*)
4795 LD="${LD-ld} -m elf64_s390"
4797 sparc*-*linux*)
4798 LD="${LD-ld} -m elf64_sparc"
4800 esac
4802 esac
4804 rm -rf conftest*
4807 *-*-sco3.2v5*)
4808 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4809 SAVE_CFLAGS="$CFLAGS"
4810 CFLAGS="$CFLAGS -belf"
4811 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4812 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4813 if test "${lt_cv_cc_needs_belf+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 ac_ext=c
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4830 main ()
4834 return 0;
4836 _ACEOF
4837 rm -f conftest.$ac_objext conftest$ac_exeext
4838 if { (ac_try="$ac_link"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_link") 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } && {
4851 test -z "$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4853 } && test -s conftest$ac_exeext &&
4854 $as_test_x conftest$ac_exeext; then
4855 lt_cv_cc_needs_belf=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 lt_cv_cc_needs_belf=no
4863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4864 conftest$ac_exeext conftest.$ac_ext
4865 ac_ext=c
4866 ac_cpp='$CPP $CPPFLAGS'
4867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4873 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4876 CFLAGS="$SAVE_CFLAGS"
4879 sparc*-*solaris*)
4880 # Find out which ABI we are using.
4881 echo 'int i;' > conftest.$ac_ext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; then
4887 case `/usr/bin/file conftest.o` in
4888 *64-bit*)
4889 case $lt_cv_prog_gnu_ld in
4890 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4891 *) LD="${LD-ld} -64" ;;
4892 esac
4894 esac
4896 rm -rf conftest*
4900 esac
4902 need_locks="$enable_libtool_lock"
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4914 CPP=
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h. */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943 Syntax error
4944 _ACEOF
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 }; then
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 # Broken: fails on valid input.
4967 continue
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if { (ac_try="$ac_cpp conftest.$ac_ext"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null && {
4995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 }; then
4998 # Broken: success on invalid input.
4999 continue
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5009 rm -f conftest.err conftest.$ac_ext
5011 done
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then
5015 break
5018 done
5019 ac_cv_prog_CPP=$CPP
5022 CPP=$ac_cv_prog_CPP
5023 else
5024 ac_cv_prog_CPP=$CPP
5026 { echo "$as_me:$LINENO: result: $CPP" >&5
5027 echo "${ECHO_T}$CPP" >&6; }
5028 ac_preproc_ok=false
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048 Syntax error
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 }; then
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5072 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null && {
5100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 }; then
5103 # Broken: success on invalid input.
5104 continue
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5114 rm -f conftest.err conftest.$ac_ext
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5121 else
5122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5138 if test "${ac_cv_header_stdc+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <stdlib.h>
5148 #include <stdarg.h>
5149 #include <string.h>
5150 #include <float.h>
5153 main ()
5157 return 0;
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest.$ac_objext; then
5177 ac_cv_header_stdc=yes
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_header_stdc=no
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 if test $ac_cv_header_stdc = yes; then
5188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <string.h>
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "memchr" >/dev/null 2>&1; then
5201 else
5202 ac_cv_header_stdc=no
5204 rm -f conftest*
5208 if test $ac_cv_header_stdc = yes; then
5209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <stdlib.h>
5218 _ACEOF
5219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220 $EGREP "free" >/dev/null 2>&1; then
5222 else
5223 ac_cv_header_stdc=no
5225 rm -f conftest*
5229 if test $ac_cv_header_stdc = yes; then
5230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5231 if test "$cross_compiling" = yes; then
5233 else
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ctype.h>
5241 #include <stdlib.h>
5242 #if ((' ' & 0x0FF) == 0x020)
5243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5245 #else
5246 # define ISLOWER(c) \
5247 (('a' <= (c) && (c) <= 'i') \
5248 || ('j' <= (c) && (c) <= 'r') \
5249 || ('s' <= (c) && (c) <= 'z'))
5250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #endif
5253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5255 main ()
5257 int i;
5258 for (i = 0; i < 256; i++)
5259 if (XOR (islower (i), ISLOWER (i))
5260 || toupper (i) != TOUPPER (i))
5261 return 2;
5262 return 0;
5264 _ACEOF
5265 rm -f conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276 { (case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_try") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5286 else
5287 echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ( exit $ac_status )
5292 ac_cv_header_stdc=no
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5302 if test $ac_cv_header_stdc = yes; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define STDC_HEADERS 1
5306 _ACEOF
5310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5321 inttypes.h stdint.h unistd.h
5323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5337 #include <$ac_header>
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 eval "$as_ac_Header=yes"
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 eval "$as_ac_Header=no"
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 ac_res=`eval echo '${'$as_ac_Header'}'`
5367 { echo "$as_me:$LINENO: result: $ac_res" >&5
5368 echo "${ECHO_T}$ac_res" >&6; }
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 _ACEOF
5376 done
5380 for ac_header in dlfcn.h
5382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 ac_res=`eval echo '${'$as_ac_Header'}'`
5390 { echo "$as_me:$LINENO: result: $ac_res" >&5
5391 echo "${ECHO_T}$ac_res" >&6; }
5392 else
5393 # Is the header compilable?
5394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5403 #include <$ac_header>
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_header_compiler=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_header_compiler=no
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5432 echo "${ECHO_T}$ac_header_compiler" >&6; }
5434 # Is the header present?
5435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <$ac_header>
5444 _ACEOF
5445 if { (ac_try="$ac_cpp conftest.$ac_ext"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null && {
5458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 }; then
5461 ac_header_preproc=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_preproc=no
5469 rm -f conftest.err conftest.$ac_ext
5470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5471 echo "${ECHO_T}$ac_header_preproc" >&6; }
5473 # So? What about this header?
5474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5475 yes:no: )
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5480 ac_header_preproc=yes
5482 no:yes:* )
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497 esac
5498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 eval "$as_ac_Header=\$ac_header_preproc"
5505 ac_res=`eval echo '${'$as_ac_Header'}'`
5506 { echo "$as_me:$LINENO: result: $ac_res" >&5
5507 echo "${ECHO_T}$ac_res" >&6; }
5510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5511 cat >>confdefs.h <<_ACEOF
5512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5513 _ACEOF
5517 done
5519 ac_ext=cpp
5520 ac_cpp='$CXXCPP $CPPFLAGS'
5521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5524 if test -z "$CXX"; then
5525 if test -n "$CCC"; then
5526 CXX=$CCC
5527 else
5528 if test -n "$ac_tool_prefix"; then
5529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535 if test "${ac_cv_prog_CXX+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -n "$CXX"; then
5539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 CXX=$ac_cv_prog_CXX
5559 if test -n "$CXX"; then
5560 { echo "$as_me:$LINENO: result: $CXX" >&5
5561 echo "${ECHO_T}$CXX" >&6; }
5562 else
5563 { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5568 test -n "$CXX" && break
5569 done
5571 if test -z "$CXX"; then
5572 ac_ct_CXX=$CXX
5573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -n "$ac_ct_CXX"; then
5583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_CXX="$ac_prog"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5603 if test -n "$ac_ct_CXX"; then
5604 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5605 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5606 else
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5612 test -n "$ac_ct_CXX" && break
5613 done
5615 if test "x$ac_ct_CXX" = x; then
5616 CXX="g++"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5621 whose name does not start with the host triplet. If you think this
5622 configuration is useful to you, please write to autoconf@gnu.org." >&5
5623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5624 whose name does not start with the host triplet. If you think this
5625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628 CXX=$ac_ct_CXX
5634 # Provide some information about the compiler.
5635 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5636 ac_compiler=`set X $ac_compile; echo $2`
5637 { (ac_try="$ac_compiler --version >&5"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compiler --version >&5") 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }
5647 { (ac_try="$ac_compiler -v >&5"
5648 case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compiler -v >&5") 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }
5657 { (ac_try="$ac_compiler -V >&5"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compiler -V >&5") 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }
5668 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5669 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5670 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5681 main ()
5683 #ifndef __GNUC__
5684 choke me
5685 #endif
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_compiler_gnu=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_compiler_gnu=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5720 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5721 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5722 GXX=`test $ac_compiler_gnu = yes && echo yes`
5723 ac_test_CXXFLAGS=${CXXFLAGS+set}
5724 ac_save_CXXFLAGS=$CXXFLAGS
5725 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5726 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5727 if test "${ac_cv_prog_cxx_g+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5731 ac_cxx_werror_flag=yes
5732 ac_cv_prog_cxx_g=no
5733 CXXFLAGS="-g"
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5742 main ()
5746 return 0;
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 ac_cv_prog_cxx_g=yes
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 CXXFLAGS=""
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5780 main ()
5784 return 0;
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_cxx_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5810 CXXFLAGS="-g"
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5819 main ()
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_cxx_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_prog_cxx_g=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5860 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5861 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5862 if test "$ac_test_CXXFLAGS" = set; then
5863 CXXFLAGS=$ac_save_CXXFLAGS
5864 elif test $ac_cv_prog_cxx_g = yes; then
5865 if test "$GXX" = yes; then
5866 CXXFLAGS="-g -O2"
5867 else
5868 CXXFLAGS="-g"
5870 else
5871 if test "$GXX" = yes; then
5872 CXXFLAGS="-O2"
5873 else
5874 CXXFLAGS=
5877 ac_ext=cpp
5878 ac_cpp='$CXXCPP $CPPFLAGS'
5879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 depcc="$CXX" am_compiler_list=
5885 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5886 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5887 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5891 # We make a subdir and do the tests there. Otherwise we can end up
5892 # making bogus files that we don't know about and never remove. For
5893 # instance it was reported that on HP-UX the gcc test will end up
5894 # making a dummy file named `D' -- because `-MD' means `put the output
5895 # in D'.
5896 mkdir conftest.dir
5897 # Copy depcomp to subdir because otherwise we won't find it if we're
5898 # using a relative directory.
5899 cp "$am_depcomp" conftest.dir
5900 cd conftest.dir
5901 # We will build objects and dependencies in a subdirectory because
5902 # it helps to detect inapplicable dependency modes. For instance
5903 # both Tru64's cc and ICC support -MD to output dependencies as a
5904 # side effect of compilation, but ICC will put the dependencies in
5905 # the current directory while Tru64 will put them in the object
5906 # directory.
5907 mkdir sub
5909 am_cv_CXX_dependencies_compiler_type=none
5910 if test "$am_compiler_list" = ""; then
5911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5913 for depmode in $am_compiler_list; do
5914 # Setup a source with many dependencies, because some compilers
5915 # like to wrap large dependency lists on column 80 (with \), and
5916 # we should not choose a depcomp mode which is confused by this.
5918 # We need to recreate these files for each test, as the compiler may
5919 # overwrite some of them when testing with obscure command lines.
5920 # This happens at least with the AIX C compiler.
5921 : > sub/conftest.c
5922 for i in 1 2 3 4 5 6; do
5923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5924 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5925 # Solaris 8's {/usr,}/bin/sh.
5926 touch sub/conftst$i.h
5927 done
5928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5930 case $depmode in
5931 nosideeffect)
5932 # after this tag, mechanisms are not by side-effect, so they'll
5933 # only be used when explicitly requested
5934 if test "x$enable_dependency_tracking" = xyes; then
5935 continue
5936 else
5937 break
5940 none) break ;;
5941 esac
5942 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5943 # mode. It turns out that the SunPro C++ compiler does not properly
5944 # handle `-M -o', and we need to detect this.
5945 if depmode=$depmode \
5946 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5948 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5949 >/dev/null 2>conftest.err &&
5950 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5951 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5952 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5953 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5954 # icc doesn't choke on unknown options, it will just issue warnings
5955 # or remarks (even with -Werror). So we grep stderr for any message
5956 # that says an option was ignored or not supported.
5957 # When given -MP, icc 7.0 and 7.1 complain thusly:
5958 # icc: Command line warning: ignoring option '-M'; no argument required
5959 # The diagnosis changed in icc 8.0:
5960 # icc: Command line remark: option '-MP' not supported
5961 if (grep 'ignoring option' conftest.err ||
5962 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5963 am_cv_CXX_dependencies_compiler_type=$depmode
5964 break
5967 done
5969 cd ..
5970 rm -rf conftest.dir
5971 else
5972 am_cv_CXX_dependencies_compiler_type=none
5976 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5977 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5978 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5981 test "x$enable_dependency_tracking" != xno \
5982 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5983 am__fastdepCXX_TRUE=
5984 am__fastdepCXX_FALSE='#'
5985 else
5986 am__fastdepCXX_TRUE='#'
5987 am__fastdepCXX_FALSE=
5993 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5994 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5995 (test "X$CXX" != "Xg++"))) ; then
5996 ac_ext=cpp
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6002 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6003 if test -z "$CXXCPP"; then
6004 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 # Double quotes because CXXCPP needs to be expanded
6008 for CXXCPP in "$CXX -E" "/lib/cpp"
6010 ac_preproc_ok=false
6011 for ac_cxx_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6030 Syntax error
6031 _ACEOF
6032 if { (ac_try="$ac_cpp conftest.$ac_ext"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } >/dev/null && {
6045 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046 test ! -s conftest.err
6047 }; then
6049 else
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 # Broken: fails on valid input.
6054 continue
6057 rm -f conftest.err conftest.$ac_ext
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 #include <ac_nonexistent.h>
6068 _ACEOF
6069 if { (ac_try="$ac_cpp conftest.$ac_ext"
6070 case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } >/dev/null && {
6082 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6083 test ! -s conftest.err
6084 }; then
6085 # Broken: success on invalid input.
6086 continue
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 # Passes both tests.
6092 ac_preproc_ok=:
6093 break
6096 rm -f conftest.err conftest.$ac_ext
6098 done
6099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6100 rm -f conftest.err conftest.$ac_ext
6101 if $ac_preproc_ok; then
6102 break
6105 done
6106 ac_cv_prog_CXXCPP=$CXXCPP
6109 CXXCPP=$ac_cv_prog_CXXCPP
6110 else
6111 ac_cv_prog_CXXCPP=$CXXCPP
6113 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6114 echo "${ECHO_T}$CXXCPP" >&6; }
6115 ac_preproc_ok=false
6116 for ac_cxx_preproc_warn_flag in '' yes
6118 # Use a header file that comes with gcc, so configuring glibc
6119 # with a fresh cross-compiler works.
6120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6121 # <limits.h> exists even on freestanding compilers.
6122 # On the NeXT, cc -E runs the code through the compiler's parser,
6123 # not just through cpp. "Syntax error" is here to catch this case.
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #ifdef __STDC__
6131 # include <limits.h>
6132 #else
6133 # include <assert.h>
6134 #endif
6135 Syntax error
6136 _ACEOF
6137 if { (ac_try="$ac_cpp conftest.$ac_ext"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null && {
6150 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6151 test ! -s conftest.err
6152 }; then
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Broken: fails on valid input.
6159 continue
6162 rm -f conftest.err conftest.$ac_ext
6164 # OK, works on sane cases. Now check whether nonexistent headers
6165 # can be detected and how.
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 #include <ac_nonexistent.h>
6173 _ACEOF
6174 if { (ac_try="$ac_cpp conftest.$ac_ext"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } >/dev/null && {
6187 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6188 test ! -s conftest.err
6189 }; then
6190 # Broken: success on invalid input.
6191 continue
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 # Passes both tests.
6197 ac_preproc_ok=:
6198 break
6201 rm -f conftest.err conftest.$ac_ext
6203 done
6204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205 rm -f conftest.err conftest.$ac_ext
6206 if $ac_preproc_ok; then
6208 else
6209 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6210 See \`config.log' for more details." >&5
6211 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6212 See \`config.log' for more details." >&2;}
6213 { (exit 1); exit 1; }; }
6216 ac_ext=cpp
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6225 ac_ext=f
6226 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6227 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6229 if test -n "$ac_tool_prefix"; then
6230 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_F77+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 if test -n "$F77"; then
6240 ac_cv_prog_F77="$F77" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6255 IFS=$as_save_IFS
6259 F77=$ac_cv_prog_F77
6260 if test -n "$F77"; then
6261 { echo "$as_me:$LINENO: result: $F77" >&5
6262 echo "${ECHO_T}$F77" >&6; }
6263 else
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 test -n "$F77" && break
6270 done
6272 if test -z "$F77"; then
6273 ac_ct_F77=$F77
6274 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6276 # Extract the first word of "$ac_prog", so it can be a program name with args.
6277 set dummy $ac_prog; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 if test -n "$ac_ct_F77"; then
6284 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_F77="$ac_prog"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6297 done
6298 done
6299 IFS=$as_save_IFS
6303 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6304 if test -n "$ac_ct_F77"; then
6305 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6306 echo "${ECHO_T}$ac_ct_F77" >&6; }
6307 else
6308 { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6313 test -n "$ac_ct_F77" && break
6314 done
6316 if test "x$ac_ct_F77" = x; then
6317 F77=""
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet. If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&5
6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 F77=$ac_ct_F77
6334 # Provide some information about the compiler.
6335 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6336 ac_compiler=`set X $ac_compile; echo $2`
6337 { (ac_try="$ac_compiler --version >&5"
6338 case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341 esac
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler --version >&5") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
6347 { (ac_try="$ac_compiler -v >&5"
6348 case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_compiler -v >&5") 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }
6357 { (ac_try="$ac_compiler -V >&5"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363 (eval "$ac_compiler -V >&5") 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }
6367 rm -f a.out
6369 # If we don't use `.F' as extension, the preprocessor is not run on the
6370 # input file. (Note that this only needs to work for GNU compilers.)
6371 ac_save_ext=$ac_ext
6372 ac_ext=F
6373 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6374 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6375 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 cat >conftest.$ac_ext <<_ACEOF
6379 program main
6380 #ifndef __GNUC__
6381 choke me
6382 #endif
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_f77_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.$ac_objext; then
6403 ac_compiler_gnu=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 ac_compiler_gnu=no
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6415 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6416 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6417 ac_ext=$ac_save_ext
6418 ac_test_FFLAGS=${FFLAGS+set}
6419 ac_save_FFLAGS=$FFLAGS
6420 FFLAGS=
6421 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6422 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_f77_g+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 FFLAGS=-g
6427 cat >conftest.$ac_ext <<_ACEOF
6428 program main
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_f77_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 ac_cv_prog_f77_g=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_cv_prog_f77_g=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6461 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6462 if test "$ac_test_FFLAGS" = set; then
6463 FFLAGS=$ac_save_FFLAGS
6464 elif test $ac_cv_prog_f77_g = yes; then
6465 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6466 FFLAGS="-g -O2"
6467 else
6468 FFLAGS="-g"
6470 else
6471 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6472 FFLAGS="-O2"
6473 else
6474 FFLAGS=
6478 G77=`test $ac_compiler_gnu = yes && echo yes`
6479 ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6489 # find the maximum length of command line arguments
6490 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6491 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6496 teststring="ABCD"
6498 case $build_os in
6499 msdosdjgpp*)
6500 # On DJGPP, this test can blow up pretty badly due to problems in libc
6501 # (any single argument exceeding 2000 bytes causes a buffer overrun
6502 # during glob expansion). Even if it were fixed, the result of this
6503 # check would be larger than it should be.
6504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6507 gnu*)
6508 # Under GNU Hurd, this test is not required because there is
6509 # no limit to the length of command line arguments.
6510 # Libtool will interpret -1 as no limit whatsoever
6511 lt_cv_sys_max_cmd_len=-1;
6514 cygwin* | mingw*)
6515 # On Win9x/ME, this test blows up -- it succeeds, but takes
6516 # about 5 minutes as the teststring grows exponentially.
6517 # Worse, since 9x/ME are not pre-emptively multitasking,
6518 # you end up with a "frozen" computer, even though with patience
6519 # the test eventually succeeds (with a max line length of 256k).
6520 # Instead, let's just punt: use the minimum linelength reported by
6521 # all of the supported platforms: 8192 (on NT/2K/XP).
6522 lt_cv_sys_max_cmd_len=8192;
6525 amigaos*)
6526 # On AmigaOS with pdksh, this test takes hours, literally.
6527 # So we just punt and use a minimum line length of 8192.
6528 lt_cv_sys_max_cmd_len=8192;
6531 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6532 # This has been around since 386BSD, at least. Likely further.
6533 if test -x /sbin/sysctl; then
6534 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6535 elif test -x /usr/sbin/sysctl; then
6536 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6537 else
6538 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6540 # And add a safety zone
6541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6545 interix*)
6546 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6547 lt_cv_sys_max_cmd_len=196608
6550 osf*)
6551 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6552 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6553 # nice to cause kernel panics so lets avoid the loop below.
6554 # First set a reasonable default.
6555 lt_cv_sys_max_cmd_len=16384
6557 if test -x /sbin/sysconfig; then
6558 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6559 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6560 esac
6563 sco3.2v5*)
6564 lt_cv_sys_max_cmd_len=102400
6566 sysv5* | sco5v6* | sysv4.2uw2*)
6567 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6568 if test -n "$kargmax"; then
6569 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6570 else
6571 lt_cv_sys_max_cmd_len=32768
6575 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6576 if test -n "$lt_cv_sys_max_cmd_len"; then
6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6579 else
6580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6581 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6582 = "XX$teststring") >/dev/null 2>&1 &&
6583 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6584 lt_cv_sys_max_cmd_len=$new_result &&
6585 test $i != 17 # 1/2 MB should be enough
6587 i=`expr $i + 1`
6588 teststring=$teststring$teststring
6589 done
6590 teststring=
6591 # Add a significant safety factor because C++ compilers can tack on massive
6592 # amounts of additional arguments before passing them to the linker.
6593 # It appears as though 1/2 is a usable value.
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6597 esac
6601 if test -n $lt_cv_sys_max_cmd_len ; then
6602 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6603 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6604 else
6605 { echo "$as_me:$LINENO: result: none" >&5
6606 echo "${ECHO_T}none" >&6; }
6613 # Check for command to grab the raw symbol name followed by C symbol from nm.
6614 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6615 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6616 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6620 # These are sane defaults that work on at least a few old systems.
6621 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6623 # Character class describing NM global symbol codes.
6624 symcode='[BCDEGRST]'
6626 # Regexp to match symbols that can be accessed directly from C.
6627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6629 # Transform an extracted symbol line into a proper C declaration
6630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6632 # Transform an extracted symbol line into symbol name and symbol address
6633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6635 # Define system-specific variables.
6636 case $host_os in
6637 aix*)
6638 symcode='[BCDT]'
6640 cygwin* | mingw* | pw32*)
6641 symcode='[ABCDGISTW]'
6643 hpux*) # Its linker distinguishes data from code symbols
6644 if test "$host_cpu" = ia64; then
6645 symcode='[ABCDEGRST]'
6647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6648 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6650 linux* | k*bsd*-gnu)
6651 if test "$host_cpu" = ia64; then
6652 symcode='[ABCDGIRSTW]'
6653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6657 irix* | nonstopux*)
6658 symcode='[BCDEGRST]'
6660 osf*)
6661 symcode='[BCDEGQRST]'
6663 solaris*)
6664 symcode='[BDRT]'
6666 sco3.2v5*)
6667 symcode='[DT]'
6669 sysv4.2uw2*)
6670 symcode='[DT]'
6672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6673 symcode='[ABDT]'
6675 sysv4)
6676 symcode='[DFNSTU]'
6678 esac
6680 # Handle CRLF in mingw tool chain
6681 opt_cr=
6682 case $build_os in
6683 mingw*)
6684 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6686 esac
6688 # If we're using GNU nm, then use its standard symbol codes.
6689 case `$NM -V 2>&1` in
6690 *GNU* | *'with BFD'*)
6691 symcode='[ABCDGIRSTW]' ;;
6692 esac
6694 # Try without a prefix undercore, then with it.
6695 for ac_symprfx in "" "_"; do
6697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6698 symxfrm="\\1 $ac_symprfx\\2 \\2"
6700 # Write the raw and C identifiers.
6701 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6703 # Check to see that the pipe works correctly.
6704 pipe_works=no
6706 rm -f conftest*
6707 cat > conftest.$ac_ext <<EOF
6708 #ifdef __cplusplus
6709 extern "C" {
6710 #endif
6711 char nm_test_var;
6712 void nm_test_func(){}
6713 #ifdef __cplusplus
6715 #endif
6716 int main(){nm_test_var='a';nm_test_func();return(0);}
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720 (eval $ac_compile) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; then
6724 # Now try to grab the symbols.
6725 nlist=conftest.nm
6726 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6727 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && test -s "$nlist"; then
6731 # Try sorting and uniquifying the output.
6732 if sort "$nlist" | uniq > "$nlist"T; then
6733 mv -f "$nlist"T "$nlist"
6734 else
6735 rm -f "$nlist"T
6738 # Make sure that we snagged all the symbols we need.
6739 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6740 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6741 cat <<EOF > conftest.$ac_ext
6742 #ifdef __cplusplus
6743 extern "C" {
6744 #endif
6747 # Now generate the symbol file.
6748 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6750 cat <<EOF >> conftest.$ac_ext
6751 #if defined (__STDC__) && __STDC__
6752 # define lt_ptr_t void *
6753 #else
6754 # define lt_ptr_t char *
6755 # define const
6756 #endif
6758 /* The mapping between symbol names and symbols. */
6759 const struct {
6760 const char *name;
6761 lt_ptr_t address;
6763 lt_preloaded_symbols[] =
6766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6767 cat <<\EOF >> conftest.$ac_ext
6768 {0, (lt_ptr_t) 0}
6771 #ifdef __cplusplus
6773 #endif
6775 # Now try linking the two files.
6776 mv conftest.$ac_objext conftstm.$ac_objext
6777 lt_save_LIBS="$LIBS"
6778 lt_save_CFLAGS="$CFLAGS"
6779 LIBS="conftstm.$ac_objext"
6780 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6786 pipe_works=yes
6788 LIBS="$lt_save_LIBS"
6789 CFLAGS="$lt_save_CFLAGS"
6790 else
6791 echo "cannot find nm_test_func in $nlist" >&5
6793 else
6794 echo "cannot find nm_test_var in $nlist" >&5
6796 else
6797 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6799 else
6800 echo "$progname: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 rm -f conftest* conftst*
6805 # Do not use the global_symbol_pipe unless it works.
6806 if test "$pipe_works" = yes; then
6807 break
6808 else
6809 lt_cv_sys_global_symbol_pipe=
6811 done
6815 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6816 lt_cv_sys_global_symbol_to_cdecl=
6818 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6819 { echo "$as_me:$LINENO: result: failed" >&5
6820 echo "${ECHO_T}failed" >&6; }
6821 else
6822 { echo "$as_me:$LINENO: result: ok" >&5
6823 echo "${ECHO_T}ok" >&6; }
6826 { echo "$as_me:$LINENO: checking for objdir" >&5
6827 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6828 if test "${lt_cv_objdir+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 rm -f .libs 2>/dev/null
6832 mkdir .libs 2>/dev/null
6833 if test -d .libs; then
6834 lt_cv_objdir=.libs
6835 else
6836 # MS-DOS does not allow filenames that begin with a dot.
6837 lt_cv_objdir=_libs
6839 rmdir .libs 2>/dev/null
6841 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6842 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6843 objdir=$lt_cv_objdir
6849 case $host_os in
6850 aix3*)
6851 # AIX sometimes has problems with the GCC collect2 program. For some
6852 # reason, if we set the COLLECT_NAMES environment variable, the problems
6853 # vanish in a puff of smoke.
6854 if test "X${COLLECT_NAMES+set}" != Xset; then
6855 COLLECT_NAMES=
6856 export COLLECT_NAMES
6859 esac
6861 # Sed substitution that helps us do robust quoting. It backslashifies
6862 # metacharacters that are still active within double-quoted strings.
6863 Xsed='sed -e 1s/^X//'
6864 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6866 # Same as above, but do not quote variable references.
6867 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6869 # Sed substitution to delay expansion of an escaped shell variable in a
6870 # double_quote_subst'ed string.
6871 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6873 # Sed substitution to avoid accidental globbing in evaled expressions
6874 no_glob_subst='s/\*/\\\*/g'
6876 # Constants:
6877 rm="rm -f"
6879 # Global variables:
6880 default_ofile=libtool
6881 can_build_shared=yes
6883 # All known linkers require a `.a' archive for static linking (except MSVC,
6884 # which needs '.lib').
6885 libext=a
6886 ltmain="$ac_aux_dir/ltmain.sh"
6887 ofile="$default_ofile"
6888 with_gnu_ld="$lt_cv_prog_gnu_ld"
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}ar; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_AR+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 if test -n "$AR"; then
6899 ac_cv_prog_AR="$AR" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_AR="${ac_tool_prefix}ar"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6912 done
6913 done
6914 IFS=$as_save_IFS
6918 AR=$ac_cv_prog_AR
6919 if test -n "$AR"; then
6920 { echo "$as_me:$LINENO: result: $AR" >&5
6921 echo "${ECHO_T}$AR" >&6; }
6922 else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6929 if test -z "$ac_cv_prog_AR"; then
6930 ac_ct_AR=$AR
6931 # Extract the first word of "ar", so it can be a program name with args.
6932 set dummy ar; ac_word=$2
6933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 if test -n "$ac_ct_AR"; then
6939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_ac_ct_AR="ar"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6959 if test -n "$ac_ct_AR"; then
6960 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6961 echo "${ECHO_T}$ac_ct_AR" >&6; }
6962 else
6963 { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6967 if test "x$ac_ct_AR" = x; then
6968 AR="false"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6973 whose name does not start with the host triplet. If you think this
6974 configuration is useful to you, please write to autoconf@gnu.org." >&5
6975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6976 whose name does not start with the host triplet. If you think this
6977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6978 ac_tool_warned=yes ;;
6979 esac
6980 AR=$ac_ct_AR
6982 else
6983 AR="$ac_cv_prog_AR"
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_prog_RANLIB+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 if test -n "$RANLIB"; then
6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7008 done
7009 done
7010 IFS=$as_save_IFS
7014 RANLIB=$ac_cv_prog_RANLIB
7015 if test -n "$RANLIB"; then
7016 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7017 echo "${ECHO_T}$RANLIB" >&6; }
7018 else
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7025 if test -z "$ac_cv_prog_RANLIB"; then
7026 ac_ct_RANLIB=$RANLIB
7027 # Extract the first word of "ranlib", so it can be a program name with args.
7028 set dummy ranlib; ac_word=$2
7029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_ac_ct_RANLIB="ranlib"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7055 if test -n "$ac_ct_RANLIB"; then
7056 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7057 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7058 else
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7063 if test "x$ac_ct_RANLIB" = x; then
7064 RANLIB=":"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069 whose name does not start with the host triplet. If you think this
7070 configuration is useful to you, please write to autoconf@gnu.org." >&5
7071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072 whose name does not start with the host triplet. If you think this
7073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 RANLIB=$ac_ct_RANLIB
7078 else
7079 RANLIB="$ac_cv_prog_RANLIB"
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}strip; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_prog_STRIP+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 if test -n "$STRIP"; then
7091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7104 done
7105 done
7106 IFS=$as_save_IFS
7110 STRIP=$ac_cv_prog_STRIP
7111 if test -n "$STRIP"; then
7112 { echo "$as_me:$LINENO: result: $STRIP" >&5
7113 echo "${ECHO_T}$STRIP" >&6; }
7114 else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7121 if test -z "$ac_cv_prog_STRIP"; then
7122 ac_ct_STRIP=$STRIP
7123 # Extract the first word of "strip", so it can be a program name with args.
7124 set dummy strip; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 if test -n "$ac_ct_STRIP"; then
7131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_ac_ct_STRIP="strip"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7151 if test -n "$ac_ct_STRIP"; then
7152 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7153 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7154 else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7159 if test "x$ac_ct_STRIP" = x; then
7160 STRIP=":"
7161 else
7162 case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet. If you think this
7166 configuration is useful to you, please write to autoconf@gnu.org." >&5
7167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7168 whose name does not start with the host triplet. If you think this
7169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 STRIP=$ac_ct_STRIP
7174 else
7175 STRIP="$ac_cv_prog_STRIP"
7179 old_CC="$CC"
7180 old_CFLAGS="$CFLAGS"
7182 # Set sane defaults for various variables
7183 test -z "$AR" && AR=ar
7184 test -z "$AR_FLAGS" && AR_FLAGS=cru
7185 test -z "$AS" && AS=as
7186 test -z "$CC" && CC=cc
7187 test -z "$LTCC" && LTCC=$CC
7188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7189 test -z "$DLLTOOL" && DLLTOOL=dlltool
7190 test -z "$LD" && LD=ld
7191 test -z "$LN_S" && LN_S="ln -s"
7192 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7193 test -z "$NM" && NM=nm
7194 test -z "$SED" && SED=sed
7195 test -z "$OBJDUMP" && OBJDUMP=objdump
7196 test -z "$RANLIB" && RANLIB=:
7197 test -z "$STRIP" && STRIP=:
7198 test -z "$ac_objext" && ac_objext=o
7200 # Determine commands to create old-style static archives.
7201 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7202 old_postinstall_cmds='chmod 644 $oldlib'
7203 old_postuninstall_cmds=
7205 if test -n "$RANLIB"; then
7206 case $host_os in
7207 openbsd*)
7208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7213 esac
7214 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7217 for cc_temp in $compiler""; do
7218 case $cc_temp in
7219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7221 \-*) ;;
7222 *) break;;
7223 esac
7224 done
7225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7228 # Only perform the check for file, if the check method requires it
7229 case $deplibs_check_method in
7230 file_magic*)
7231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7232 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7233 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 case $MAGIC_CMD in
7238 [\\/*] | ?:[\\/]*)
7239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7242 lt_save_MAGIC_CMD="$MAGIC_CMD"
7243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7245 for ac_dir in $ac_dummy; do
7246 IFS="$lt_save_ifs"
7247 test -z "$ac_dir" && ac_dir=.
7248 if test -f $ac_dir/${ac_tool_prefix}file; then
7249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7250 if test -n "$file_magic_test_file"; then
7251 case $deplibs_check_method in
7252 "file_magic "*)
7253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7256 $EGREP "$file_magic_regex" > /dev/null; then
7258 else
7259 cat <<EOF 1>&2
7261 *** Warning: the command libtool uses to detect shared libraries,
7262 *** $file_magic_cmd, produces output that libtool cannot recognize.
7263 *** The result is that libtool may fail to recognize shared libraries
7264 *** as such. This will affect the creation of libtool libraries that
7265 *** depend on shared libraries, but programs linked with such libtool
7266 *** libraries will work regardless of this problem. Nevertheless, you
7267 *** may want to report the problem to your system manager and/or to
7268 *** bug-libtool@gnu.org
7271 fi ;;
7272 esac
7274 break
7276 done
7277 IFS="$lt_save_ifs"
7278 MAGIC_CMD="$lt_save_MAGIC_CMD"
7280 esac
7283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284 if test -n "$MAGIC_CMD"; then
7285 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7286 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7287 else
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7292 if test -z "$lt_cv_path_MAGIC_CMD"; then
7293 if test -n "$ac_tool_prefix"; then
7294 { echo "$as_me:$LINENO: checking for file" >&5
7295 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299 case $MAGIC_CMD in
7300 [\\/*] | ?:[\\/]*)
7301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7304 lt_save_MAGIC_CMD="$MAGIC_CMD"
7305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7307 for ac_dir in $ac_dummy; do
7308 IFS="$lt_save_ifs"
7309 test -z "$ac_dir" && ac_dir=.
7310 if test -f $ac_dir/file; then
7311 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7312 if test -n "$file_magic_test_file"; then
7313 case $deplibs_check_method in
7314 "file_magic "*)
7315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7318 $EGREP "$file_magic_regex" > /dev/null; then
7320 else
7321 cat <<EOF 1>&2
7323 *** Warning: the command libtool uses to detect shared libraries,
7324 *** $file_magic_cmd, produces output that libtool cannot recognize.
7325 *** The result is that libtool may fail to recognize shared libraries
7326 *** as such. This will affect the creation of libtool libraries that
7327 *** depend on shared libraries, but programs linked with such libtool
7328 *** libraries will work regardless of this problem. Nevertheless, you
7329 *** may want to report the problem to your system manager and/or to
7330 *** bug-libtool@gnu.org
7333 fi ;;
7334 esac
7336 break
7338 done
7339 IFS="$lt_save_ifs"
7340 MAGIC_CMD="$lt_save_MAGIC_CMD"
7342 esac
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if test -n "$MAGIC_CMD"; then
7347 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7348 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7349 else
7350 { echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6; }
7354 else
7355 MAGIC_CMD=:
7361 esac
7363 enable_dlopen=no
7364 enable_win32_dll=no
7366 # Check whether --enable-libtool-lock was given.
7367 if test "${enable_libtool_lock+set}" = set; then
7368 enableval=$enable_libtool_lock;
7371 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7374 # Check whether --with-pic was given.
7375 if test "${with_pic+set}" = set; then
7376 withval=$with_pic; pic_mode="$withval"
7377 else
7378 pic_mode=default
7381 test -z "$pic_mode" && pic_mode=default
7383 # Use C for the default configuration in the libtool script
7384 tagname=
7385 lt_save_CC="$CC"
7386 ac_ext=c
7387 ac_cpp='$CPP $CPPFLAGS'
7388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393 # Source file extension for C test sources.
7394 ac_ext=c
7396 # Object file extension for compiled C test sources.
7397 objext=o
7398 objext=$objext
7400 # Code to be used in simple compile tests
7401 lt_simple_compile_test_code="int some_variable = 0;"
7403 # Code to be used in simple link tests
7404 lt_simple_link_test_code='int main(){return(0);}'
7407 # If no C compiler was specified, use CC.
7408 LTCC=${LTCC-"$CC"}
7410 # If no C compiler flags were specified, use CFLAGS.
7411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7413 # Allow CC to be a program name with arguments.
7414 compiler=$CC
7417 # save warnings/boilerplate of simple test code
7418 ac_outfile=conftest.$ac_objext
7419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7421 _lt_compiler_boilerplate=`cat conftest.err`
7422 $rm conftest*
7424 ac_outfile=conftest.$ac_objext
7425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7427 _lt_linker_boilerplate=`cat conftest.err`
7428 $rm conftest*
7432 lt_prog_compiler_no_builtin_flag=
7434 if test "$GCC" = yes; then
7435 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7438 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7439 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7440 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 lt_cv_prog_compiler_rtti_exceptions=no
7444 ac_outfile=conftest.$ac_objext
7445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7446 lt_compiler_flag="-fno-rtti -fno-exceptions"
7447 # Insert the option either (1) after the last *FLAGS variable, or
7448 # (2) before a word containing "conftest.", or (3) at the end.
7449 # Note that $ac_compile itself does not contain backslashes and begins
7450 # with a dollar sign (not a hyphen), so the echo should work correctly.
7451 # The option is referenced via a variable to avoid confusing sed.
7452 lt_compile=`echo "$ac_compile" | $SED \
7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7455 -e 's:$: $lt_compiler_flag:'`
7456 (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7457 (eval "$lt_compile" 2>conftest.err)
7458 ac_status=$?
7459 cat conftest.err >&5
7460 echo "$as_me:7447: \$? = $ac_status" >&5
7461 if (exit $ac_status) && test -s "$ac_outfile"; then
7462 # The compiler can only warn and ignore the option if not recognized
7463 # So say no if there are warnings other than the usual output.
7464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7467 lt_cv_prog_compiler_rtti_exceptions=yes
7470 $rm conftest*
7473 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7474 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7476 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7478 else
7484 lt_prog_compiler_wl=
7485 lt_prog_compiler_pic=
7486 lt_prog_compiler_static=
7488 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7489 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7491 if test "$GCC" = yes; then
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_static='-static'
7495 case $host_os in
7496 aix*)
7497 # All AIX code is PIC.
7498 if test "$host_cpu" = ia64; then
7499 # AIX 5 now supports IA64 processor
7500 lt_prog_compiler_static='-Bstatic'
7504 amigaos*)
7505 # FIXME: we need at least 68020 code to build shared libraries, but
7506 # adding the `-m68020' flag to GCC prevents building anything better,
7507 # like `-m68040'.
7508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7512 # PIC is the default for these OSes.
7515 mingw* | cygwin* | pw32* | os2*)
7516 # This hack is so that the source file can tell whether it is being
7517 # built for inclusion in a dll (and should export symbols for example).
7518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7519 # (--disable-auto-import) libraries
7520 lt_prog_compiler_pic='-DDLL_EXPORT'
7523 darwin* | rhapsody*)
7524 # PIC is the default on this platform
7525 # Common symbols not allowed in MH_DYLIB files
7526 lt_prog_compiler_pic='-fno-common'
7529 interix[3-9]*)
7530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7531 # Instead, we relocate shared libraries at runtime.
7534 msdosdjgpp*)
7535 # Just because we use GCC doesn't mean we suddenly get shared libraries
7536 # on systems that don't support them.
7537 lt_prog_compiler_can_build_shared=no
7538 enable_shared=no
7541 sysv4*MP*)
7542 if test -d /usr/nec; then
7543 lt_prog_compiler_pic=-Kconform_pic
7547 hpux*)
7548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7549 # not for PA HP-UX.
7550 case $host_cpu in
7551 hppa*64*|ia64*)
7552 # +Z the default
7555 lt_prog_compiler_pic='-fPIC'
7557 esac
7561 lt_prog_compiler_pic='-fPIC'
7563 esac
7564 else
7565 # PORTME Check for flag to pass linker flags through the system compiler.
7566 case $host_os in
7567 aix*)
7568 lt_prog_compiler_wl='-Wl,'
7569 if test "$host_cpu" = ia64; then
7570 # AIX 5 now supports IA64 processor
7571 lt_prog_compiler_static='-Bstatic'
7572 else
7573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7576 darwin*)
7577 # PIC is the default on this platform
7578 # Common symbols not allowed in MH_DYLIB files
7579 case $cc_basename in
7580 xlc*)
7581 lt_prog_compiler_pic='-qnocommon'
7582 lt_prog_compiler_wl='-Wl,'
7584 esac
7587 mingw* | cygwin* | pw32* | os2*)
7588 # This hack is so that the source file can tell whether it is being
7589 # built for inclusion in a dll (and should export symbols for example).
7590 lt_prog_compiler_pic='-DDLL_EXPORT'
7593 hpux9* | hpux10* | hpux11*)
7594 lt_prog_compiler_wl='-Wl,'
7595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7596 # not for PA HP-UX.
7597 case $host_cpu in
7598 hppa*64*|ia64*)
7599 # +Z the default
7602 lt_prog_compiler_pic='+Z'
7604 esac
7605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7606 lt_prog_compiler_static='${wl}-a ${wl}archive'
7609 irix5* | irix6* | nonstopux*)
7610 lt_prog_compiler_wl='-Wl,'
7611 # PIC (with -KPIC) is the default.
7612 lt_prog_compiler_static='-non_shared'
7615 newsos6)
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7620 linux* | k*bsd*-gnu)
7621 case $cc_basename in
7622 icc* | ecc*)
7623 lt_prog_compiler_wl='-Wl,'
7624 lt_prog_compiler_pic='-KPIC'
7625 lt_prog_compiler_static='-static'
7627 pgcc* | pgf77* | pgf90* | pgf95*)
7628 # Portland Group compilers (*not* the Pentium gcc compiler,
7629 # which looks to be a dead project)
7630 lt_prog_compiler_wl='-Wl,'
7631 lt_prog_compiler_pic='-fpic'
7632 lt_prog_compiler_static='-Bstatic'
7634 ccc*)
7635 lt_prog_compiler_wl='-Wl,'
7636 # All Alpha code is PIC.
7637 lt_prog_compiler_static='-non_shared'
7640 case `$CC -V 2>&1 | sed 5q` in
7641 *Sun\ C*)
7642 # Sun C 5.9
7643 lt_prog_compiler_pic='-KPIC'
7644 lt_prog_compiler_static='-Bstatic'
7645 lt_prog_compiler_wl='-Wl,'
7647 *Sun\ F*)
7648 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7649 lt_prog_compiler_pic='-KPIC'
7650 lt_prog_compiler_static='-Bstatic'
7651 lt_prog_compiler_wl=''
7653 esac
7655 esac
7658 osf3* | osf4* | osf5*)
7659 lt_prog_compiler_wl='-Wl,'
7660 # All OSF/1 code is PIC.
7661 lt_prog_compiler_static='-non_shared'
7664 rdos*)
7665 lt_prog_compiler_static='-non_shared'
7668 solaris*)
7669 lt_prog_compiler_pic='-KPIC'
7670 lt_prog_compiler_static='-Bstatic'
7671 case $cc_basename in
7672 f77* | f90* | f95*)
7673 lt_prog_compiler_wl='-Qoption ld ';;
7675 lt_prog_compiler_wl='-Wl,';;
7676 esac
7679 sunos4*)
7680 lt_prog_compiler_wl='-Qoption ld '
7681 lt_prog_compiler_pic='-PIC'
7682 lt_prog_compiler_static='-Bstatic'
7685 sysv4 | sysv4.2uw2* | sysv4.3*)
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-Bstatic'
7691 sysv4*MP*)
7692 if test -d /usr/nec ;then
7693 lt_prog_compiler_pic='-Kconform_pic'
7694 lt_prog_compiler_static='-Bstatic'
7698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='-KPIC'
7701 lt_prog_compiler_static='-Bstatic'
7704 unicos*)
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_can_build_shared=no
7709 uts4*)
7710 lt_prog_compiler_pic='-pic'
7711 lt_prog_compiler_static='-Bstatic'
7715 lt_prog_compiler_can_build_shared=no
7717 esac
7720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7721 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7724 # Check to make sure the PIC flag actually works.
7726 if test -n "$lt_prog_compiler_pic"; then
7728 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7729 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7730 if test "${lt_prog_compiler_pic_works+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733 lt_prog_compiler_pic_works=no
7734 ac_outfile=conftest.$ac_objext
7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7736 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7737 # Insert the option either (1) after the last *FLAGS variable, or
7738 # (2) before a word containing "conftest.", or (3) at the end.
7739 # Note that $ac_compile itself does not contain backslashes and begins
7740 # with a dollar sign (not a hyphen), so the echo should work correctly.
7741 # The option is referenced via a variable to avoid confusing sed.
7742 lt_compile=`echo "$ac_compile" | $SED \
7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7745 -e 's:$: $lt_compiler_flag:'`
7746 (eval echo "\"\$as_me:7733: $lt_compile\"" >&5)
7747 (eval "$lt_compile" 2>conftest.err)
7748 ac_status=$?
7749 cat conftest.err >&5
7750 echo "$as_me:7737: \$? = $ac_status" >&5
7751 if (exit $ac_status) && test -s "$ac_outfile"; then
7752 # The compiler can only warn and ignore the option if not recognized
7753 # So say no if there are warnings other than the usual output.
7754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7757 lt_prog_compiler_pic_works=yes
7760 $rm conftest*
7763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7764 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7766 if test x"$lt_prog_compiler_pic_works" = xyes; then
7767 case $lt_prog_compiler_pic in
7768 "" | " "*) ;;
7769 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7770 esac
7771 else
7772 lt_prog_compiler_pic=
7773 lt_prog_compiler_can_build_shared=no
7777 case $host_os in
7778 # For platforms which do not support PIC, -DPIC is meaningless:
7779 *djgpp*)
7780 lt_prog_compiler_pic=
7783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7785 esac
7788 # Check to make sure the static flag actually works.
7790 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7791 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7792 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7793 if test "${lt_prog_compiler_static_works+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796 lt_prog_compiler_static_works=no
7797 save_LDFLAGS="$LDFLAGS"
7798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7799 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7801 # The linker can only warn and ignore the option if not recognized
7802 # So say no if there are warnings
7803 if test -s conftest.err; then
7804 # Append any errors to the config.log.
7805 cat conftest.err 1>&5
7806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808 if diff conftest.exp conftest.er2 >/dev/null; then
7809 lt_prog_compiler_static_works=yes
7811 else
7812 lt_prog_compiler_static_works=yes
7815 $rm conftest*
7816 LDFLAGS="$save_LDFLAGS"
7819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7820 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7822 if test x"$lt_prog_compiler_static_works" = xyes; then
7824 else
7825 lt_prog_compiler_static=
7829 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7830 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7831 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 lt_cv_prog_compiler_c_o=no
7835 $rm -r conftest 2>/dev/null
7836 mkdir conftest
7837 cd conftest
7838 mkdir out
7839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841 lt_compiler_flag="-o out/conftest2.$ac_objext"
7842 # Insert the option either (1) after the last *FLAGS variable, or
7843 # (2) before a word containing "conftest.", or (3) at the end.
7844 # Note that $ac_compile itself does not contain backslashes and begins
7845 # with a dollar sign (not a hyphen), so the echo should work correctly.
7846 lt_compile=`echo "$ac_compile" | $SED \
7847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849 -e 's:$: $lt_compiler_flag:'`
7850 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7851 (eval "$lt_compile" 2>out/conftest.err)
7852 ac_status=$?
7853 cat out/conftest.err >&5
7854 echo "$as_me:7841: \$? = $ac_status" >&5
7855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7856 then
7857 # The compiler can only warn and ignore the option if not recognized
7858 # So say no if there are warnings
7859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7862 lt_cv_prog_compiler_c_o=yes
7865 chmod u+w . 2>&5
7866 $rm conftest*
7867 # SGI C++ compiler will create directory out/ii_files/ for
7868 # template instantiation
7869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7870 $rm out/* && rmdir out
7871 cd ..
7872 rmdir conftest
7873 $rm conftest*
7876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7880 hard_links="nottested"
7881 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7882 # do not overwrite the value of need_locks provided by the user
7883 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7885 hard_links=yes
7886 $rm conftest*
7887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7888 touch conftest.a
7889 ln conftest.a conftest.b 2>&5 || hard_links=no
7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891 { echo "$as_me:$LINENO: result: $hard_links" >&5
7892 echo "${ECHO_T}$hard_links" >&6; }
7893 if test "$hard_links" = no; then
7894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7896 need_locks=warn
7898 else
7899 need_locks=no
7902 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7905 runpath_var=
7906 allow_undefined_flag=
7907 enable_shared_with_static_runtimes=no
7908 archive_cmds=
7909 archive_expsym_cmds=
7910 old_archive_From_new_cmds=
7911 old_archive_from_expsyms_cmds=
7912 export_dynamic_flag_spec=
7913 whole_archive_flag_spec=
7914 thread_safe_flag_spec=
7915 hardcode_libdir_flag_spec=
7916 hardcode_libdir_flag_spec_ld=
7917 hardcode_libdir_separator=
7918 hardcode_direct=no
7919 hardcode_minus_L=no
7920 hardcode_shlibpath_var=unsupported
7921 link_all_deplibs=unknown
7922 hardcode_automatic=no
7923 module_cmds=
7924 module_expsym_cmds=
7925 always_export_symbols=no
7926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7927 # include_expsyms should be a list of space-separated symbols to be *always*
7928 # included in the symbol list
7929 include_expsyms=
7930 # exclude_expsyms can be an extended regexp of symbols to exclude
7931 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7933 # as well as any symbol that contains `d'.
7934 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7936 # platforms (ab)use it in PIC code, but their linkers get confused if
7937 # the symbol is explicitly referenced. Since portable code cannot
7938 # rely on this symbol name, it's probably fine to never include it in
7939 # preloaded symbol tables.
7940 extract_expsyms_cmds=
7941 # Just being paranoid about ensuring that cc_basename is set.
7942 for cc_temp in $compiler""; do
7943 case $cc_temp in
7944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7946 \-*) ;;
7947 *) break;;
7948 esac
7949 done
7950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7952 case $host_os in
7953 cygwin* | mingw* | pw32*)
7954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7955 # When not using gcc, we currently assume that we are using
7956 # Microsoft Visual C++.
7957 if test "$GCC" != yes; then
7958 with_gnu_ld=no
7961 interix*)
7962 # we just hope/assume this is gcc and not c89 (= MSVC++)
7963 with_gnu_ld=yes
7965 openbsd*)
7966 with_gnu_ld=no
7968 esac
7970 ld_shlibs=yes
7971 if test "$with_gnu_ld" = yes; then
7972 # If archive_cmds runs LD, not CC, wlarc should be empty
7973 wlarc='${wl}'
7975 # Set some defaults for GNU ld with shared library support. These
7976 # are reset later if shared libraries are not supported. Putting them
7977 # here allows them to be overridden if necessary.
7978 runpath_var=LD_RUN_PATH
7979 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7980 export_dynamic_flag_spec='${wl}--export-dynamic'
7981 # ancient GNU ld didn't support --whole-archive et. al.
7982 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7983 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7984 else
7985 whole_archive_flag_spec=
7987 supports_anon_versioning=no
7988 case `$LD -v 2>/dev/null` in
7989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7992 *\ 2.11.*) ;; # other 2.11 versions
7993 *) supports_anon_versioning=yes ;;
7994 esac
7996 # See if GNU ld supports shared libraries.
7997 case $host_os in
7998 aix3* | aix4* | aix5*)
7999 # On AIX/PPC, the GNU linker is very broken
8000 if test "$host_cpu" != ia64; then
8001 ld_shlibs=no
8002 cat <<EOF 1>&2
8004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8005 *** to be unable to reliably create shared libraries on AIX.
8006 *** Therefore, libtool is disabling shared libraries support. If you
8007 *** really care for shared libraries, you may want to modify your PATH
8008 *** so that a non-GNU linker is found, and then restart.
8014 amigaos*)
8015 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)'
8016 hardcode_libdir_flag_spec='-L$libdir'
8017 hardcode_minus_L=yes
8019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8020 # that the semantics of dynamic libraries on AmigaOS, at least up
8021 # to version 4, is to share data among multiple programs linked
8022 # with the same dynamic library. Since this doesn't match the
8023 # behavior of shared libraries on other platforms, we can't use
8024 # them.
8025 ld_shlibs=no
8028 beos*)
8029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8030 allow_undefined_flag=unsupported
8031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8032 # support --undefined. This deserves some investigation. FIXME
8033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034 else
8035 ld_shlibs=no
8039 cygwin* | mingw* | pw32*)
8040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8041 # as there is no search path for DLLs.
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 allow_undefined_flag=unsupported
8044 always_export_symbols=no
8045 enable_shared_with_static_runtimes=yes
8046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8050 # If the export-symbols file already is a .def file (1st line
8051 # is EXPORTS), use it as is; otherwise, prepend...
8052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8053 cp $export_symbols $output_objdir/$soname.def;
8054 else
8055 echo EXPORTS > $output_objdir/$soname.def;
8056 cat $export_symbols >> $output_objdir/$soname.def;
8058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8059 else
8060 ld_shlibs=no
8064 interix[3-9]*)
8065 hardcode_direct=no
8066 hardcode_shlibpath_var=no
8067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8068 export_dynamic_flag_spec='${wl}-E'
8069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8070 # Instead, shared libraries are loaded at an image base (0x10000000 by
8071 # default) and relocated if they conflict, which is a slow very memory
8072 # consuming and fragmenting process. To avoid this, we pick a random,
8073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8076 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'
8079 gnu* | linux* | k*bsd*-gnu)
8080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8081 tmp_addflag=
8082 case $cc_basename,$host_cpu in
8083 pgcc*) # Portland Group C compiler
8084 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8085 tmp_addflag=' $pic_flag'
8087 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8088 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8089 tmp_addflag=' $pic_flag -Mnomain' ;;
8090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8091 tmp_addflag=' -i_dynamic' ;;
8092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8093 tmp_addflag=' -i_dynamic -nofor_main' ;;
8094 ifc* | ifort*) # Intel Fortran compiler
8095 tmp_addflag=' -nofor_main' ;;
8096 esac
8097 case `$CC -V 2>&1 | sed 5q` in
8098 *Sun\ C*) # Sun C 5.9
8099 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8100 tmp_sharedflag='-G' ;;
8101 *Sun\ F*) # Sun Fortran 8.3
8102 tmp_sharedflag='-G' ;;
8104 tmp_sharedflag='-shared' ;;
8105 esac
8106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 if test $supports_anon_versioning = yes; then
8109 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8111 $echo "local: *; };" >> $output_objdir/$libname.ver~
8112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8114 link_all_deplibs=no
8115 else
8116 ld_shlibs=no
8120 netbsd* | netbsdelf*-gnu)
8121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8122 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8123 wlarc=
8124 else
8125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130 solaris*)
8131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8132 ld_shlibs=no
8133 cat <<EOF 1>&2
8135 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8136 *** create shared libraries on Solaris systems. Therefore, libtool
8137 *** is disabling shared libraries support. We urge you to upgrade GNU
8138 *** binutils to release 2.9.1 or newer. Another option is to modify
8139 *** your PATH or compiler configuration so that the native linker is
8140 *** used, and then restart.
8143 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8146 else
8147 ld_shlibs=no
8151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8152 case `$LD -v 2>&1` in
8153 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8154 ld_shlibs=no
8155 cat <<_LT_EOF 1>&2
8157 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8158 *** reliably create shared libraries on SCO systems. Therefore, libtool
8159 *** is disabling shared libraries support. We urge you to upgrade GNU
8160 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8161 *** your PATH or compiler configuration so that the native linker is
8162 *** used, and then restart.
8164 _LT_EOF
8167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8171 else
8172 ld_shlibs=no
8175 esac
8178 sunos4*)
8179 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8180 wlarc=
8181 hardcode_direct=yes
8182 hardcode_shlibpath_var=no
8186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189 else
8190 ld_shlibs=no
8193 esac
8195 if test "$ld_shlibs" = no; then
8196 runpath_var=
8197 hardcode_libdir_flag_spec=
8198 export_dynamic_flag_spec=
8199 whole_archive_flag_spec=
8201 else
8202 # PORTME fill in a description of your system's linker (not GNU ld)
8203 case $host_os in
8204 aix3*)
8205 allow_undefined_flag=unsupported
8206 always_export_symbols=yes
8207 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'
8208 # Note: this linker hardcodes the directories in LIBPATH if there
8209 # are no directories specified by -L.
8210 hardcode_minus_L=yes
8211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8212 # Neither direct hardcoding nor static linking is supported with a
8213 # broken collect2.
8214 hardcode_direct=unsupported
8218 aix4* | aix5*)
8219 if test "$host_cpu" = ia64; then
8220 # On IA64, the linker does run time linking by default, so we don't
8221 # have to do anything special.
8222 aix_use_runtimelinking=no
8223 exp_sym_flag='-Bexport'
8224 no_entry_flag=""
8225 else
8226 # If we're using GNU nm, then we don't want the "-C" option.
8227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8228 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8229 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8230 else
8231 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'
8233 aix_use_runtimelinking=no
8235 # Test if we are trying to use run time linking or normal
8236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8237 # need to do runtime linking.
8238 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8239 for ld_flag in $LDFLAGS; do
8240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8241 aix_use_runtimelinking=yes
8242 break
8244 done
8246 esac
8248 exp_sym_flag='-bexport'
8249 no_entry_flag='-bnoentry'
8252 # When large executables or shared objects are built, AIX ld can
8253 # have problems creating the table of contents. If linking a library
8254 # or program results in "error TOC overflow" add -mminimal-toc to
8255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8258 archive_cmds=''
8259 hardcode_direct=yes
8260 hardcode_libdir_separator=':'
8261 link_all_deplibs=yes
8263 if test "$GCC" = yes; then
8264 case $host_os in aix4.[012]|aix4.[012].*)
8265 # We only want to do this on AIX 4.2 and lower, the check
8266 # below for broken collect2 doesn't work under 4.3+
8267 collect2name=`${CC} -print-prog-name=collect2`
8268 if test -f "$collect2name" && \
8269 strings "$collect2name" | grep resolve_lib_name >/dev/null
8270 then
8271 # We have reworked collect2
8273 else
8274 # We have old collect2
8275 hardcode_direct=unsupported
8276 # It fails to find uninstalled libraries when the uninstalled
8277 # path is not listed in the libpath. Setting hardcode_minus_L
8278 # to unsupported forces relinking
8279 hardcode_minus_L=yes
8280 hardcode_libdir_flag_spec='-L$libdir'
8281 hardcode_libdir_separator=
8284 esac
8285 shared_flag='-shared'
8286 if test "$aix_use_runtimelinking" = yes; then
8287 shared_flag="$shared_flag "'${wl}-G'
8289 else
8290 # not using gcc
8291 if test "$host_cpu" = ia64; then
8292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8293 # chokes on -Wl,-G. The following line is correct:
8294 shared_flag='-G'
8295 else
8296 if test "$aix_use_runtimelinking" = yes; then
8297 shared_flag='${wl}-G'
8298 else
8299 shared_flag='${wl}-bM:SRE'
8304 # It seems that -bexpall does not export symbols beginning with
8305 # underscore (_), so it is better to generate a list of symbols to export.
8306 always_export_symbols=yes
8307 if test "$aix_use_runtimelinking" = yes; then
8308 # Warning - without using the other runtime loading flags (-brtl),
8309 # -berok will link without error, but may produce a broken library.
8310 allow_undefined_flag='-berok'
8311 # Determine the default libpath from the value encoded in an empty executable.
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8320 main ()
8324 return 0;
8326 _ACEOF
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (ac_try="$ac_link"
8329 case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_link") 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest$ac_exeext &&
8344 $as_test_x conftest$ac_exeext; then
8346 lt_aix_libpath_sed='
8347 /Import File Strings/,/^$/ {
8348 /^0/ {
8349 s/^0 *\(.*\)$/\1/
8353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354 # Check for a 64-bit object if we didn't find anything.
8355 if test -z "$aix_libpath"; then
8356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366 conftest$ac_exeext conftest.$ac_ext
8367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8369 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8370 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8371 else
8372 if test "$host_cpu" = ia64; then
8373 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8374 allow_undefined_flag="-z nodefs"
8375 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"
8376 else
8377 # Determine the default libpath from the value encoded in an empty executable.
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8386 main ()
8390 return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest$ac_exeext &&
8410 $as_test_x conftest$ac_exeext; then
8412 lt_aix_libpath_sed='
8413 /Import File Strings/,/^$/ {
8414 /^0/ {
8415 s/^0 *\(.*\)$/\1/
8419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8420 # Check for a 64-bit object if we didn't find anything.
8421 if test -z "$aix_libpath"; then
8422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424 else
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8432 conftest$ac_exeext conftest.$ac_ext
8433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8436 # Warning - without using the other run time loading flags,
8437 # -berok will link without error, but may produce a broken library.
8438 no_undefined_flag=' ${wl}-bernotok'
8439 allow_undefined_flag=' ${wl}-berok'
8440 # Exported symbols can be pulled into shared objects from archives
8441 whole_archive_flag_spec='$convenience'
8442 archive_cmds_need_lc=yes
8443 # This is similar to how AIX traditionally builds its shared libraries.
8444 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'
8449 amigaos*)
8450 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)'
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_minus_L=yes
8453 # see comment about different semantics on the GNU ld section
8454 ld_shlibs=no
8457 bsdi[45]*)
8458 export_dynamic_flag_spec=-rdynamic
8461 cygwin* | mingw* | pw32*)
8462 # When not using gcc, we currently assume that we are using
8463 # Microsoft Visual C++.
8464 # hardcode_libdir_flag_spec is actually meaningless, as there is
8465 # no search path for DLLs.
8466 hardcode_libdir_flag_spec=' '
8467 allow_undefined_flag=unsupported
8468 # Tell ltmain to make .lib files, not .a files.
8469 libext=lib
8470 # Tell ltmain to make .dll files, not .so files.
8471 shrext_cmds=".dll"
8472 # FIXME: Setting linknames here is a bad hack.
8473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8474 # The linker will automatically build a .lib file if we build a DLL.
8475 old_archive_From_new_cmds='true'
8476 # FIXME: Should let the user specify the lib program.
8477 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8478 fix_srcfile_path='`cygpath -w "$srcfile"`'
8479 enable_shared_with_static_runtimes=yes
8482 darwin* | rhapsody*)
8483 case $host_os in
8484 rhapsody* | darwin1.[012])
8485 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8487 *) # Darwin 1.3 on
8488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8490 else
8491 case ${MACOSX_DEPLOYMENT_TARGET} in
8492 10.[012])
8493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8495 10.*)
8496 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8498 esac
8501 esac
8502 archive_cmds_need_lc=no
8503 hardcode_direct=no
8504 hardcode_automatic=yes
8505 hardcode_shlibpath_var=unsupported
8506 whole_archive_flag_spec=''
8507 link_all_deplibs=yes
8508 if test "$GCC" = yes ; then
8509 output_verbose_link_cmd='echo'
8510 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8511 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8513 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8514 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8515 else
8516 case $cc_basename in
8517 xlc*)
8518 output_verbose_link_cmd='echo'
8519 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8522 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8523 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8526 ld_shlibs=no
8528 esac
8532 dgux*)
8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534 hardcode_libdir_flag_spec='-L$libdir'
8535 hardcode_shlibpath_var=no
8538 freebsd1*)
8539 ld_shlibs=no
8542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8543 # support. Future versions do this automatically, but an explicit c++rt0.o
8544 # does not break anything, and helps significantly (at the cost of a little
8545 # extra space).
8546 freebsd2.2*)
8547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8548 hardcode_libdir_flag_spec='-R$libdir'
8549 hardcode_direct=yes
8550 hardcode_shlibpath_var=no
8553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8554 freebsd2*)
8555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8556 hardcode_direct=yes
8557 hardcode_minus_L=yes
8558 hardcode_shlibpath_var=no
8561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8562 freebsd* | dragonfly*)
8563 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8564 hardcode_libdir_flag_spec='-R$libdir'
8565 hardcode_direct=yes
8566 hardcode_shlibpath_var=no
8569 hpux9*)
8570 if test "$GCC" = yes; then
8571 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'
8572 else
8573 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'
8575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576 hardcode_libdir_separator=:
8577 hardcode_direct=yes
8579 # hardcode_minus_L: Not really in the search PATH,
8580 # but as the default location of the library.
8581 hardcode_minus_L=yes
8582 export_dynamic_flag_spec='${wl}-E'
8585 hpux10*)
8586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8588 else
8589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8591 if test "$with_gnu_ld" = no; then
8592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8593 hardcode_libdir_separator=:
8595 hardcode_direct=yes
8596 export_dynamic_flag_spec='${wl}-E'
8598 # hardcode_minus_L: Not really in the search PATH,
8599 # but as the default location of the library.
8600 hardcode_minus_L=yes
8604 hpux11*)
8605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8606 case $host_cpu in
8607 hppa*64*)
8608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 ia64*)
8611 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8616 esac
8617 else
8618 case $host_cpu in
8619 hppa*64*)
8620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8622 ia64*)
8623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8628 esac
8630 if test "$with_gnu_ld" = no; then
8631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8632 hardcode_libdir_separator=:
8634 case $host_cpu in
8635 hppa*64*|ia64*)
8636 hardcode_libdir_flag_spec_ld='+b $libdir'
8637 hardcode_direct=no
8638 hardcode_shlibpath_var=no
8641 hardcode_direct=yes
8642 export_dynamic_flag_spec='${wl}-E'
8644 # hardcode_minus_L: Not really in the search PATH,
8645 # but as the default location of the library.
8646 hardcode_minus_L=yes
8648 esac
8652 irix5* | irix6* | nonstopux*)
8653 if test "$GCC" = yes; then
8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8655 else
8656 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8657 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 hardcode_libdir_separator=:
8661 link_all_deplibs=yes
8664 netbsd* | netbsdelf*-gnu)
8665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8667 else
8668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 hardcode_direct=yes
8672 hardcode_shlibpath_var=no
8675 newsos6)
8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_direct=yes
8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8679 hardcode_libdir_separator=:
8680 hardcode_shlibpath_var=no
8683 openbsd*)
8684 if test -f /usr/libexec/ld.so; then
8685 hardcode_direct=yes
8686 hardcode_shlibpath_var=no
8687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8691 export_dynamic_flag_spec='${wl}-E'
8692 else
8693 case $host_os in
8694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_libdir_flag_spec='-R$libdir'
8699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702 esac
8704 else
8705 ld_shlibs=no
8709 os2*)
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_minus_L=yes
8712 allow_undefined_flag=unsupported
8713 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'
8714 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8717 osf3*)
8718 if test "$GCC" = yes; then
8719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8720 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8721 else
8722 allow_undefined_flag=' -expect_unresolved \*'
8723 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726 hardcode_libdir_separator=:
8729 osf4* | osf5*) # as osf3* with the addition of -msym flag
8730 if test "$GCC" = yes; then
8731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8732 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8734 else
8735 allow_undefined_flag=' -expect_unresolved \*'
8736 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8737 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8738 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8740 # Both c and cxx compiler support -rpath directly
8741 hardcode_libdir_flag_spec='-rpath $libdir'
8743 hardcode_libdir_separator=:
8746 solaris*)
8747 no_undefined_flag=' -z text'
8748 if test "$GCC" = yes; then
8749 wlarc='${wl}'
8750 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8752 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8753 else
8754 wlarc=''
8755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8757 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_shlibpath_var=no
8761 case $host_os in
8762 solaris2.[0-5] | solaris2.[0-5].*) ;;
8764 # The compiler driver will combine and reorder linker options,
8765 # but understands `-z linker_flag'. GCC discards it without `$wl',
8766 # but is careful enough not to reorder.
8767 # Supported since Solaris 2.6 (maybe 2.5.1?)
8768 if test "$GCC" = yes; then
8769 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8770 else
8771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8774 esac
8775 link_all_deplibs=yes
8778 sunos4*)
8779 if test "x$host_vendor" = xsequent; then
8780 # Use $CC to link under sequent, because it throws in some extra .o
8781 # files that make .init and .fini sections work.
8782 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8783 else
8784 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_direct=yes
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8792 sysv4)
8793 case $host_vendor in
8794 sni)
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_direct=yes # is this really true???
8798 siemens)
8799 ## LD is ld it makes a PLAMLIB
8800 ## CC just makes a GrossModule.
8801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8802 reload_cmds='$CC -r -o $output$reload_objs'
8803 hardcode_direct=no
8805 motorola)
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8809 esac
8810 runpath_var='LD_RUN_PATH'
8811 hardcode_shlibpath_var=no
8814 sysv4.3*)
8815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_shlibpath_var=no
8817 export_dynamic_flag_spec='-Bexport'
8820 sysv4*MP*)
8821 if test -d /usr/nec; then
8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_shlibpath_var=no
8824 runpath_var=LD_RUN_PATH
8825 hardcode_runpath_var=yes
8826 ld_shlibs=yes
8830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8831 no_undefined_flag='${wl}-z,text'
8832 archive_cmds_need_lc=no
8833 hardcode_shlibpath_var=no
8834 runpath_var='LD_RUN_PATH'
8836 if test "$GCC" = yes; then
8837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 else
8840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845 sysv5* | sco3.2v5* | sco5v6*)
8846 # Note: We can NOT use -z defs as we might desire, because we do not
8847 # link with -lc, and that would cause any symbols used from libc to
8848 # always be unresolved, which means just about no library would
8849 # ever link correctly. If we're not using GNU ld we use -z text
8850 # though, which does catch some bad symbols but isn't as heavy-handed
8851 # as -z defs.
8852 no_undefined_flag='${wl}-z,text'
8853 allow_undefined_flag='${wl}-z,nodefs'
8854 archive_cmds_need_lc=no
8855 hardcode_shlibpath_var=no
8856 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8857 hardcode_libdir_separator=':'
8858 link_all_deplibs=yes
8859 export_dynamic_flag_spec='${wl}-Bexport'
8860 runpath_var='LD_RUN_PATH'
8862 if test "$GCC" = yes; then
8863 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865 else
8866 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871 uts4*)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_shlibpath_var=no
8878 ld_shlibs=no
8880 esac
8883 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8884 echo "${ECHO_T}$ld_shlibs" >&6; }
8885 test "$ld_shlibs" = no && can_build_shared=no
8888 # Do we need to explicitly link libc?
8890 case "x$archive_cmds_need_lc" in
8891 x|xyes)
8892 # Assume -lc should be added
8893 archive_cmds_need_lc=yes
8895 if test "$enable_shared" = yes && test "$GCC" = yes; then
8896 case $archive_cmds in
8897 *'~'*)
8898 # FIXME: we may have to deal with multi-command sequences.
8900 '$CC '*)
8901 # Test whether the compiler implicitly links with -lc since on some
8902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8903 # to ld, don't add -lc before -lgcc.
8904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8905 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8906 $rm conftest*
8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } 2>conftest.err; then
8914 soname=conftest
8915 lib=conftest
8916 libobjs=conftest.$ac_objext
8917 deplibs=
8918 wl=$lt_prog_compiler_wl
8919 pic_flag=$lt_prog_compiler_pic
8920 compiler_flags=-v
8921 linker_flags=-v
8922 verstring=
8923 output_objdir=.
8924 libname=conftest
8925 lt_save_allow_undefined_flag=$allow_undefined_flag
8926 allow_undefined_flag=
8927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8928 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }
8932 then
8933 archive_cmds_need_lc=no
8934 else
8935 archive_cmds_need_lc=yes
8937 allow_undefined_flag=$lt_save_allow_undefined_flag
8938 else
8939 cat conftest.err 1>&5
8941 $rm conftest*
8942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8943 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8945 esac
8948 esac
8950 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8951 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8952 library_names_spec=
8953 libname_spec='lib$name'
8954 soname_spec=
8955 shrext_cmds=".so"
8956 postinstall_cmds=
8957 postuninstall_cmds=
8958 finish_cmds=
8959 finish_eval=
8960 shlibpath_var=
8961 shlibpath_overrides_runpath=unknown
8962 version_type=none
8963 dynamic_linker="$host_os ld.so"
8964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8966 if test "$GCC" = yes; then
8967 case $host_os in
8968 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8969 *) lt_awk_arg="/^libraries:/" ;;
8970 esac
8971 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8973 # if the path contains ";" then we assume it to be the separator
8974 # otherwise default to the standard path separator (i.e. ":") - it is
8975 # assumed that no part of a normal pathname contains ";" but that should
8976 # okay in the real world where ";" in dirpaths is itself problematic.
8977 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8978 else
8979 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8981 # Ok, now we have the path, separated by spaces, we can step through it
8982 # and add multilib dir if necessary.
8983 lt_tmp_lt_search_path_spec=
8984 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8985 for lt_sys_path in $lt_search_path_spec; do
8986 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8988 else
8989 test -d "$lt_sys_path" && \
8990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8992 done
8993 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8994 BEGIN {RS=" "; FS="/|\n";} {
8995 lt_foo="";
8996 lt_count=0;
8997 for (lt_i = NF; lt_i > 0; lt_i--) {
8998 if ($lt_i != "" && $lt_i != ".") {
8999 if ($lt_i == "..") {
9000 lt_count++;
9001 } else {
9002 if (lt_count == 0) {
9003 lt_foo="/" $lt_i lt_foo;
9004 } else {
9005 lt_count--;
9010 if (lt_foo != "") { lt_freq[lt_foo]++; }
9011 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9013 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9014 else
9015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9017 need_lib_prefix=unknown
9018 hardcode_into_libs=no
9020 # when you set need_version to no, make sure it does not cause -set_version
9021 # flags to be left without arguments
9022 need_version=unknown
9024 case $host_os in
9025 aix3*)
9026 version_type=linux
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9028 shlibpath_var=LIBPATH
9030 # AIX 3 has no versioning support, so we append a major version to the name.
9031 soname_spec='${libname}${release}${shared_ext}$major'
9034 aix4* | aix5*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 hardcode_into_libs=yes
9039 if test "$host_cpu" = ia64; then
9040 # AIX 5 supports IA64
9041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 else
9044 # With GCC up to 2.95.x, collect2 would create an import file
9045 # for dependence libraries. The import file would start with
9046 # the line `#! .'. This would cause the generated library to
9047 # depend on `.', always an invalid library. This was fixed in
9048 # development snapshots of GCC prior to 3.0.
9049 case $host_os in
9050 aix4 | aix4.[01] | aix4.[01].*)
9051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9052 echo ' yes '
9053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9055 else
9056 can_build_shared=no
9059 esac
9060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9061 # soname into executable. Probably we can add versioning support to
9062 # collect2, so additional links can be useful in future.
9063 if test "$aix_use_runtimelinking" = yes; then
9064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9065 # instead of lib<name>.a to let people know that these are not
9066 # typical AIX shared libraries.
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 else
9069 # We preserve .a as extension for shared libraries through AIX4.2
9070 # and later when we are not doing run time linking.
9071 library_names_spec='${libname}${release}.a $libname.a'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LIBPATH
9078 amigaos*)
9079 library_names_spec='$libname.ixlibrary $libname.a'
9080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9081 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'
9084 beos*)
9085 library_names_spec='${libname}${shared_ext}'
9086 dynamic_linker="$host_os ld.so"
9087 shlibpath_var=LIBRARY_PATH
9090 bsdi[45]*)
9091 version_type=linux
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099 # the default ld.so.conf also contains /usr/contrib/lib and
9100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101 # libtool to hard-code these into programs
9104 cygwin* | mingw* | pw32*)
9105 version_type=windows
9106 shrext_cmds=".dll"
9107 need_version=no
9108 need_lib_prefix=no
9110 case $GCC,$host_os in
9111 yes,cygwin* | yes,mingw* | yes,pw32*)
9112 library_names_spec='$libname.dll.a'
9113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114 postinstall_cmds='base_file=`basename \${file}`~
9115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9116 dldir=$destdir/`dirname \$dlpath`~
9117 test -d \$dldir || mkdir -p \$dldir~
9118 $install_prog $dir/$dlname \$dldir/$dlname~
9119 chmod a+x \$dldir/$dlname'
9120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9121 dlpath=$dir/\$dldll~
9122 $rm \$dlpath'
9123 shlibpath_overrides_runpath=yes
9125 case $host_os in
9126 cygwin*)
9127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9131 mingw*)
9132 # MinGW DLLs use traditional 'lib' prefix
9133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9136 # It is most probably a Windows format PATH printed by
9137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9138 # path with ; separators, and with drive letters. We can handle the
9139 # drive letters (cygwin fileutils understands them), so leave them,
9140 # especially as we might pass files found there to a mingw objdump,
9141 # which wouldn't understand a cygwinified path. Ahh.
9142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9143 else
9144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9147 pw32*)
9148 # pw32 DLLs use 'pw' prefix rather than 'lib'
9149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151 esac
9155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9157 esac
9158 dynamic_linker='Win32 ld.exe'
9159 # FIXME: first we should search . and the directory the executable is in
9160 shlibpath_var=PATH
9163 darwin* | rhapsody*)
9164 dynamic_linker="$host_os dyld"
9165 version_type=darwin
9166 need_lib_prefix=no
9167 need_version=no
9168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9169 soname_spec='${libname}${release}${major}$shared_ext'
9170 shlibpath_overrides_runpath=yes
9171 shlibpath_var=DYLD_LIBRARY_PATH
9172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9178 dgux*)
9179 version_type=linux
9180 need_lib_prefix=no
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9187 freebsd1*)
9188 dynamic_linker=no
9191 freebsd* | dragonfly*)
9192 # DragonFly does not have aout. When/if they implement a new
9193 # versioning mechanism, adjust this.
9194 if test -x /usr/bin/objformat; then
9195 objformat=`/usr/bin/objformat`
9196 else
9197 case $host_os in
9198 freebsd[123]*) objformat=aout ;;
9199 *) objformat=elf ;;
9200 esac
9202 version_type=freebsd-$objformat
9203 case $version_type in
9204 freebsd-elf*)
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206 need_version=no
9207 need_lib_prefix=no
9209 freebsd-*)
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9211 need_version=yes
9213 esac
9214 shlibpath_var=LD_LIBRARY_PATH
9215 case $host_os in
9216 freebsd2*)
9217 shlibpath_overrides_runpath=yes
9219 freebsd3.[01]* | freebsdelf3.[01]*)
9220 shlibpath_overrides_runpath=yes
9221 hardcode_into_libs=yes
9223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9228 *) # from 4.6 on, and DragonFly
9229 shlibpath_overrides_runpath=yes
9230 hardcode_into_libs=yes
9232 esac
9235 gnu*)
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 hardcode_into_libs=yes
9245 hpux9* | hpux10* | hpux11*)
9246 # Give a soname corresponding to the major version so that dld.sl refuses to
9247 # link against other versions.
9248 version_type=sunos
9249 need_lib_prefix=no
9250 need_version=no
9251 case $host_cpu in
9252 ia64*)
9253 shrext_cmds='.so'
9254 hardcode_into_libs=yes
9255 dynamic_linker="$host_os dld.so"
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 if test "X$HPUX_IA64_MODE" = X32; then
9261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9262 else
9263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9267 hppa*64*)
9268 shrext_cmds='.sl'
9269 hardcode_into_libs=yes
9270 dynamic_linker="$host_os dld.sl"
9271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9279 shrext_cmds='.sl'
9280 dynamic_linker="$host_os dld.sl"
9281 shlibpath_var=SHLIB_PATH
9282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9286 esac
9287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9288 postinstall_cmds='chmod 555 $lib'
9291 interix[3-9]*)
9292 version_type=linux
9293 need_lib_prefix=no
9294 need_version=no
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 shlibpath_overrides_runpath=no
9300 hardcode_into_libs=yes
9303 irix5* | irix6* | nonstopux*)
9304 case $host_os in
9305 nonstopux*) version_type=nonstopux ;;
9307 if test "$lt_cv_prog_gnu_ld" = yes; then
9308 version_type=linux
9309 else
9310 version_type=irix
9311 fi ;;
9312 esac
9313 need_lib_prefix=no
9314 need_version=no
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 case $host_os in
9318 irix5* | nonstopux*)
9319 libsuff= shlibsuff=
9322 case $LD in # libtool.m4 will add one of these switches to LD
9323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9324 libsuff= shlibsuff= libmagic=32-bit;;
9325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9326 libsuff=32 shlibsuff=N32 libmagic=N32;;
9327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9329 *) libsuff= shlibsuff= libmagic=never-match;;
9330 esac
9332 esac
9333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9334 shlibpath_overrides_runpath=no
9335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9337 hardcode_into_libs=yes
9340 # No shared lib support for Linux oldld, aout, or coff.
9341 linux*oldld* | linux*aout* | linux*coff*)
9342 dynamic_linker=no
9345 # This must be Linux ELF.
9346 linux* | k*bsd*-gnu)
9347 version_type=linux
9348 need_lib_prefix=no
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=no
9355 # This implies no fast_install, which is unacceptable.
9356 # Some rework will be needed to allow for fast_install
9357 # before this can be enabled.
9358 hardcode_into_libs=yes
9360 # Append ld.so.conf contents to the search path
9361 if test -f /etc/ld.so.conf; then
9362 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;/^$/d' | tr '\n' ' '`
9363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9366 # We used to test for /lib/ld.so.1 and disable shared libraries on
9367 # powerpc, because MkLinux only supported shared libraries with the
9368 # GNU dynamic linker. Since this was broken with cross compilers,
9369 # most powerpc-linux boxes support dynamic linking these days and
9370 # people can always --disable-shared, the test was removed, and we
9371 # assume the GNU/Linux dynamic linker is in use.
9372 dynamic_linker='GNU/Linux ld.so'
9375 netbsdelf*-gnu)
9376 version_type=linux
9377 need_lib_prefix=no
9378 need_version=no
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 shlibpath_overrides_runpath=no
9383 hardcode_into_libs=yes
9384 dynamic_linker='NetBSD ld.elf_so'
9387 netbsd*)
9388 version_type=sunos
9389 need_lib_prefix=no
9390 need_version=no
9391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394 dynamic_linker='NetBSD (a.out) ld.so'
9395 else
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 dynamic_linker='NetBSD ld.elf_so'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9405 newsos6)
9406 version_type=linux
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=yes
9412 nto-qnx*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9422 openbsd*)
9423 version_type=sunos
9424 sys_lib_dlsearch_path_spec="/usr/lib"
9425 need_lib_prefix=no
9426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9427 case $host_os in
9428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9429 *) need_version=no ;;
9430 esac
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9435 case $host_os in
9436 openbsd2.[89] | openbsd2.[89].*)
9437 shlibpath_overrides_runpath=no
9440 shlibpath_overrides_runpath=yes
9442 esac
9443 else
9444 shlibpath_overrides_runpath=yes
9448 os2*)
9449 libname_spec='$name'
9450 shrext_cmds=".dll"
9451 need_lib_prefix=no
9452 library_names_spec='$libname${shared_ext} $libname.a'
9453 dynamic_linker='OS/2 ld.exe'
9454 shlibpath_var=LIBPATH
9457 osf3* | osf4* | osf5*)
9458 version_type=osf
9459 need_lib_prefix=no
9460 need_version=no
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9468 rdos*)
9469 dynamic_linker=no
9472 solaris*)
9473 version_type=linux
9474 need_lib_prefix=no
9475 need_version=no
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=yes
9480 hardcode_into_libs=yes
9481 # ldd complains unless libraries are executable
9482 postinstall_cmds='chmod +x $lib'
9485 sunos4*)
9486 version_type=sunos
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 shlibpath_overrides_runpath=yes
9491 if test "$with_gnu_ld" = yes; then
9492 need_lib_prefix=no
9494 need_version=yes
9497 sysv4 | sysv4.3*)
9498 version_type=linux
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 case $host_vendor in
9503 sni)
9504 shlibpath_overrides_runpath=no
9505 need_lib_prefix=no
9506 export_dynamic_flag_spec='${wl}-Blargedynsym'
9507 runpath_var=LD_RUN_PATH
9509 siemens)
9510 need_lib_prefix=no
9512 motorola)
9513 need_lib_prefix=no
9514 need_version=no
9515 shlibpath_overrides_runpath=no
9516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9518 esac
9521 sysv4*MP*)
9522 if test -d /usr/nec ;then
9523 version_type=linux
9524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9525 soname_spec='$libname${shared_ext}.$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9531 version_type=freebsd-elf
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 hardcode_into_libs=yes
9538 if test "$with_gnu_ld" = yes; then
9539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9540 shlibpath_overrides_runpath=no
9541 else
9542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9543 shlibpath_overrides_runpath=yes
9544 case $host_os in
9545 sco3.2v5*)
9546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9548 esac
9550 sys_lib_dlsearch_path_spec='/usr/lib'
9553 uts4*)
9554 version_type=linux
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 shlibpath_var=LD_LIBRARY_PATH
9561 dynamic_linker=no
9563 esac
9564 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9565 echo "${ECHO_T}$dynamic_linker" >&6; }
9566 test "$dynamic_linker" = no && can_build_shared=no
9568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9569 if test "$GCC" = yes; then
9570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9573 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9575 hardcode_action=
9576 if test -n "$hardcode_libdir_flag_spec" || \
9577 test -n "$runpath_var" || \
9578 test "X$hardcode_automatic" = "Xyes" ; then
9580 # We can hardcode non-existant directories.
9581 if test "$hardcode_direct" != no &&
9582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9583 # have to relink, otherwise we might link with an installed library
9584 # when we should be linking with a yet-to-be-installed one
9585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9586 test "$hardcode_minus_L" != no; then
9587 # Linking always hardcodes the temporary library directory.
9588 hardcode_action=relink
9589 else
9590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9591 hardcode_action=immediate
9593 else
9594 # We cannot hardcode anything, or else we can only hardcode existing
9595 # directories.
9596 hardcode_action=unsupported
9598 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9599 echo "${ECHO_T}$hardcode_action" >&6; }
9601 if test "$hardcode_action" = relink; then
9602 # Fast installation is not supported
9603 enable_fast_install=no
9604 elif test "$shlibpath_overrides_runpath" = yes ||
9605 test "$enable_shared" = no; then
9606 # Fast installation is not necessary
9607 enable_fast_install=needless
9610 striplib=
9611 old_striplib=
9612 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9613 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9614 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9617 { echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6; }
9619 else
9620 # FIXME - insert some real tests, host_os isn't really good enough
9621 case $host_os in
9622 darwin*)
9623 if test -n "$STRIP" ; then
9624 striplib="$STRIP -x"
9625 old_striplib="$STRIP -S"
9626 { echo "$as_me:$LINENO: result: yes" >&5
9627 echo "${ECHO_T}yes" >&6; }
9628 else
9629 { echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6; }
9634 { echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6; }
9637 esac
9640 if test "x$enable_dlopen" != xyes; then
9641 enable_dlopen=unknown
9642 enable_dlopen_self=unknown
9643 enable_dlopen_self_static=unknown
9644 else
9645 lt_cv_dlopen=no
9646 lt_cv_dlopen_libs=
9648 case $host_os in
9649 beos*)
9650 lt_cv_dlopen="load_add_on"
9651 lt_cv_dlopen_libs=
9652 lt_cv_dlopen_self=yes
9655 mingw* | pw32*)
9656 lt_cv_dlopen="LoadLibrary"
9657 lt_cv_dlopen_libs=
9660 cygwin*)
9661 lt_cv_dlopen="dlopen"
9662 lt_cv_dlopen_libs=
9665 darwin*)
9666 # if libdl is installed we need to link against it
9667 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9668 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 ac_check_lib_save_LIBS=$LIBS
9673 LIBS="-ldl $LIBS"
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 char dlopen ();
9689 main ()
9691 return dlopen ();
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9698 case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest$ac_exeext &&
9713 $as_test_x conftest$ac_exeext; then
9714 ac_cv_lib_dl_dlopen=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_dl_dlopen=no
9722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723 conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9726 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9727 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9728 if test $ac_cv_lib_dl_dlopen = yes; then
9729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9730 else
9732 lt_cv_dlopen="dyld"
9733 lt_cv_dlopen_libs=
9734 lt_cv_dlopen_self=yes
9741 { echo "$as_me:$LINENO: checking for shl_load" >&5
9742 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9743 if test "${ac_cv_func_shl_load+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9754 #define shl_load innocuous_shl_load
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char shl_load (); below.
9758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759 <limits.h> exists even on freestanding compilers. */
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9767 #undef shl_load
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char shl_load ();
9776 /* The GNU C library defines this for functions which it implements
9777 to always fail with ENOSYS. Some functions are actually named
9778 something starting with __ and the normal name is an alias. */
9779 #if defined __stub_shl_load || defined __stub___shl_load
9780 choke me
9781 #endif
9784 main ()
9786 return shl_load ();
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest$ac_exeext &&
9808 $as_test_x conftest$ac_exeext; then
9809 ac_cv_func_shl_load=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_func_shl_load=no
9817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818 conftest$ac_exeext conftest.$ac_ext
9820 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9821 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9822 if test $ac_cv_func_shl_load = yes; then
9823 lt_cv_dlopen="shl_load"
9824 else
9825 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldld $LIBS"
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char shl_load ();
9847 main ()
9849 return shl_load ();
9851 return 0;
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9856 case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest$ac_exeext &&
9871 $as_test_x conftest$ac_exeext; then
9872 ac_cv_lib_dld_shl_load=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_lib_dld_shl_load=no
9880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9885 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9886 if test $ac_cv_lib_dld_shl_load = yes; then
9887 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9888 else
9889 { echo "$as_me:$LINENO: checking for dlopen" >&5
9890 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9891 if test "${ac_cv_func_dlopen+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h. */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902 #define dlopen innocuous_dlopen
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char dlopen (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9909 #ifdef __STDC__
9910 # include <limits.h>
9911 #else
9912 # include <assert.h>
9913 #endif
9915 #undef dlopen
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dlopen ();
9924 /* The GNU C library defines this for functions which it implements
9925 to always fail with ENOSYS. Some functions are actually named
9926 something starting with __ and the normal name is an alias. */
9927 #if defined __stub_dlopen || defined __stub___dlopen
9928 choke me
9929 #endif
9932 main ()
9934 return dlopen ();
9936 return 0;
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext &&
9956 $as_test_x conftest$ac_exeext; then
9957 ac_cv_func_dlopen=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_func_dlopen=no
9965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966 conftest$ac_exeext conftest.$ac_ext
9968 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9970 if test $ac_cv_func_dlopen = yes; then
9971 lt_cv_dlopen="dlopen"
9972 else
9973 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-ldl $LIBS"
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 char dlopen ();
9995 main ()
9997 return dlopen ();
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 ac_cv_lib_dl_dlopen=yes
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_cv_lib_dl_dlopen=no
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034 if test $ac_cv_lib_dl_dlopen = yes; then
10035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10036 else
10037 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10038 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10039 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 ac_check_lib_save_LIBS=$LIBS
10043 LIBS="-lsvld $LIBS"
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 /* Override any GCC internal prototype to avoid an error.
10052 Use char because int might match the return type of a GCC
10053 builtin and then its argument prototype would still apply. */
10054 #ifdef __cplusplus
10055 extern "C"
10056 #endif
10057 char dlopen ();
10059 main ()
10061 return dlopen ();
10063 return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext &&
10083 $as_test_x conftest$ac_exeext; then
10084 ac_cv_lib_svld_dlopen=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_lib_svld_dlopen=no
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10097 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10098 if test $ac_cv_lib_svld_dlopen = yes; then
10099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10100 else
10101 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10102 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10103 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-ldld $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char dld_link ();
10123 main ()
10125 return dld_link ();
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (ac_try="$ac_link"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_link") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest$ac_exeext &&
10147 $as_test_x conftest$ac_exeext; then
10148 ac_cv_lib_dld_dld_link=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_dld_dld_link=no
10156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10161 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10162 if test $ac_cv_lib_dld_dld_link = yes; then
10163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10182 esac
10184 if test "x$lt_cv_dlopen" != xno; then
10185 enable_dlopen=yes
10186 else
10187 enable_dlopen=no
10190 case $lt_cv_dlopen in
10191 dlopen)
10192 save_CPPFLAGS="$CPPFLAGS"
10193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10195 save_LDFLAGS="$LDFLAGS"
10196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10198 save_LIBS="$LIBS"
10199 LIBS="$lt_cv_dlopen_libs $LIBS"
10201 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10202 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10203 if test "${lt_cv_dlopen_self+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 if test "$cross_compiling" = yes; then :
10207 lt_cv_dlopen_self=cross
10208 else
10209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10210 lt_status=$lt_dlunknown
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10199 "configure"
10213 #include "confdefs.h"
10215 #if HAVE_DLFCN_H
10216 #include <dlfcn.h>
10217 #endif
10219 #include <stdio.h>
10221 #ifdef RTLD_GLOBAL
10222 # define LT_DLGLOBAL RTLD_GLOBAL
10223 #else
10224 # ifdef DL_GLOBAL
10225 # define LT_DLGLOBAL DL_GLOBAL
10226 # else
10227 # define LT_DLGLOBAL 0
10228 # endif
10229 #endif
10231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10232 find out it does not work in some platform. */
10233 #ifndef LT_DLLAZY_OR_NOW
10234 # ifdef RTLD_LAZY
10235 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10236 # else
10237 # ifdef DL_LAZY
10238 # define LT_DLLAZY_OR_NOW DL_LAZY
10239 # else
10240 # ifdef RTLD_NOW
10241 # define LT_DLLAZY_OR_NOW RTLD_NOW
10242 # else
10243 # ifdef DL_NOW
10244 # define LT_DLLAZY_OR_NOW DL_NOW
10245 # else
10246 # define LT_DLLAZY_OR_NOW 0
10247 # endif
10248 # endif
10249 # endif
10250 # endif
10251 #endif
10253 #ifdef __cplusplus
10254 extern "C" void exit (int);
10255 #endif
10257 void fnord() { int i=42;}
10258 int main ()
10260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10261 int status = $lt_dlunknown;
10263 if (self)
10265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10267 /* dlclose (self); */
10269 else
10270 puts (dlerror ());
10272 exit (status);
10275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276 (eval $ac_link) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10280 (./conftest; exit; ) >&5 2>/dev/null
10281 lt_status=$?
10282 case x$lt_status in
10283 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10284 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10285 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10286 esac
10287 else :
10288 # compilation failed
10289 lt_cv_dlopen_self=no
10292 rm -fr conftest*
10296 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10297 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10299 if test "x$lt_cv_dlopen_self" = xyes; then
10300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10301 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10302 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10303 if test "${lt_cv_dlopen_self_static+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 if test "$cross_compiling" = yes; then :
10307 lt_cv_dlopen_self_static=cross
10308 else
10309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10310 lt_status=$lt_dlunknown
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10299 "configure"
10313 #include "confdefs.h"
10315 #if HAVE_DLFCN_H
10316 #include <dlfcn.h>
10317 #endif
10319 #include <stdio.h>
10321 #ifdef RTLD_GLOBAL
10322 # define LT_DLGLOBAL RTLD_GLOBAL
10323 #else
10324 # ifdef DL_GLOBAL
10325 # define LT_DLGLOBAL DL_GLOBAL
10326 # else
10327 # define LT_DLGLOBAL 0
10328 # endif
10329 #endif
10331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10332 find out it does not work in some platform. */
10333 #ifndef LT_DLLAZY_OR_NOW
10334 # ifdef RTLD_LAZY
10335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # else
10337 # ifdef DL_LAZY
10338 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # else
10340 # ifdef RTLD_NOW
10341 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # else
10343 # ifdef DL_NOW
10344 # define LT_DLLAZY_OR_NOW DL_NOW
10345 # else
10346 # define LT_DLLAZY_OR_NOW 0
10347 # endif
10348 # endif
10349 # endif
10350 # endif
10351 #endif
10353 #ifdef __cplusplus
10354 extern "C" void exit (int);
10355 #endif
10357 void fnord() { int i=42;}
10358 int main ()
10360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10361 int status = $lt_dlunknown;
10363 if (self)
10365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10367 /* dlclose (self); */
10369 else
10370 puts (dlerror ());
10372 exit (status);
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10380 (./conftest; exit; ) >&5 2>/dev/null
10381 lt_status=$?
10382 case x$lt_status in
10383 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10384 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10385 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10386 esac
10387 else :
10388 # compilation failed
10389 lt_cv_dlopen_self_static=no
10392 rm -fr conftest*
10396 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10397 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10400 CPPFLAGS="$save_CPPFLAGS"
10401 LDFLAGS="$save_LDFLAGS"
10402 LIBS="$save_LIBS"
10404 esac
10406 case $lt_cv_dlopen_self in
10407 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10408 *) enable_dlopen_self=unknown ;;
10409 esac
10411 case $lt_cv_dlopen_self_static in
10412 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10413 *) enable_dlopen_self_static=unknown ;;
10414 esac
10418 # Report which library types will actually be built
10419 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10420 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10421 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10422 echo "${ECHO_T}$can_build_shared" >&6; }
10424 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10425 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10426 test "$can_build_shared" = "no" && enable_shared=no
10428 # On AIX, shared libraries and static libraries use the same namespace, and
10429 # are all built from PIC.
10430 case $host_os in
10431 aix3*)
10432 test "$enable_shared" = yes && enable_static=no
10433 if test -n "$RANLIB"; then
10434 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10435 postinstall_cmds='$RANLIB $lib'
10439 aix4* | aix5*)
10440 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10441 test "$enable_shared" = yes && enable_static=no
10444 esac
10445 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10446 echo "${ECHO_T}$enable_shared" >&6; }
10448 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10449 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10450 # Make sure either enable_shared or enable_static is yes.
10451 test "$enable_shared" = yes || enable_static=yes
10452 { echo "$as_me:$LINENO: result: $enable_static" >&5
10453 echo "${ECHO_T}$enable_static" >&6; }
10455 # The else clause should only fire when bootstrapping the
10456 # libtool distribution, otherwise you forgot to ship ltmain.sh
10457 # with your package, and you will get complaints that there are
10458 # no rules to generate ltmain.sh.
10459 if test -f "$ltmain"; then
10460 # See if we are running on zsh, and set the options which allow our commands through
10461 # without removal of \ escapes.
10462 if test -n "${ZSH_VERSION+set}" ; then
10463 setopt NO_GLOB_SUBST
10465 # Now quote all the things that may contain metacharacters while being
10466 # careful not to overquote the AC_SUBSTed values. We take copies of the
10467 # variables and quote the copies for generation of the libtool script.
10468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10469 SED SHELL STRIP \
10470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10472 deplibs_check_method reload_flag reload_cmds need_locks \
10473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10474 lt_cv_sys_global_symbol_to_c_name_address \
10475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10476 old_postinstall_cmds old_postuninstall_cmds \
10477 compiler \
10478 CC \
10479 LD \
10480 lt_prog_compiler_wl \
10481 lt_prog_compiler_pic \
10482 lt_prog_compiler_static \
10483 lt_prog_compiler_no_builtin_flag \
10484 export_dynamic_flag_spec \
10485 thread_safe_flag_spec \
10486 whole_archive_flag_spec \
10487 enable_shared_with_static_runtimes \
10488 old_archive_cmds \
10489 old_archive_from_new_cmds \
10490 predep_objects \
10491 postdep_objects \
10492 predeps \
10493 postdeps \
10494 compiler_lib_search_path \
10495 archive_cmds \
10496 archive_expsym_cmds \
10497 postinstall_cmds \
10498 postuninstall_cmds \
10499 old_archive_from_expsyms_cmds \
10500 allow_undefined_flag \
10501 no_undefined_flag \
10502 export_symbols_cmds \
10503 hardcode_libdir_flag_spec \
10504 hardcode_libdir_flag_spec_ld \
10505 hardcode_libdir_separator \
10506 hardcode_automatic \
10507 module_cmds \
10508 module_expsym_cmds \
10509 lt_cv_prog_compiler_c_o \
10510 fix_srcfile_path \
10511 exclude_expsyms \
10512 include_expsyms; do
10514 case $var in
10515 old_archive_cmds | \
10516 old_archive_from_new_cmds | \
10517 archive_cmds | \
10518 archive_expsym_cmds | \
10519 module_cmds | \
10520 module_expsym_cmds | \
10521 old_archive_from_expsyms_cmds | \
10522 export_symbols_cmds | \
10523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524 postinstall_cmds | postuninstall_cmds | \
10525 old_postinstall_cmds | old_postuninstall_cmds | \
10526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527 # Double-quote double-evaled strings.
10528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10533 esac
10534 done
10536 case $lt_echo in
10537 *'\$0 --fallback-echo"')
10538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10540 esac
10542 cfgfile="${ofile}T"
10543 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544 $rm -f "$cfgfile"
10545 { echo "$as_me:$LINENO: creating $ofile" >&5
10546 echo "$as_me: creating $ofile" >&6;}
10548 cat <<__EOF__ >> "$cfgfile"
10549 #! $SHELL
10551 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10556 # Free Software Foundation, Inc.
10558 # This file is part of GNU Libtool:
10559 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10561 # This program is free software; you can redistribute it and/or modify
10562 # it under the terms of the GNU General Public License as published by
10563 # the Free Software Foundation; either version 2 of the License, or
10564 # (at your option) any later version.
10566 # This program is distributed in the hope that it will be useful, but
10567 # WITHOUT ANY WARRANTY; without even the implied warranty of
10568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10569 # General Public License for more details.
10571 # You should have received a copy of the GNU General Public License
10572 # along with this program; if not, write to the Free Software
10573 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10575 # As a special exception to the GNU General Public License, if you
10576 # distribute this file as part of a program that contains a
10577 # configuration script generated by Autoconf, you may include it under
10578 # the same distribution terms that you use for the rest of that program.
10580 # A sed program that does not truncate output.
10581 SED=$lt_SED
10583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10584 Xsed="$SED -e 1s/^X//"
10586 # The HP-UX ksh and POSIX shell print the target directory to stdout
10587 # if CDPATH is set.
10588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10590 # The names of the tagged configurations supported by this script.
10591 available_tags=
10593 # ### BEGIN LIBTOOL CONFIG
10595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10597 # Shell to use when invoking shell scripts.
10598 SHELL=$lt_SHELL
10600 # Whether or not to build shared libraries.
10601 build_libtool_libs=$enable_shared
10603 # Whether or not to build static libraries.
10604 build_old_libs=$enable_static
10606 # Whether or not to add -lc for building shared libraries.
10607 build_libtool_need_lc=$archive_cmds_need_lc
10609 # Whether or not to disallow shared libs when runtime libs are static
10610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10612 # Whether or not to optimize for fast installation.
10613 fast_install=$enable_fast_install
10615 # The host system.
10616 host_alias=$host_alias
10617 host=$host
10618 host_os=$host_os
10620 # The build system.
10621 build_alias=$build_alias
10622 build=$build
10623 build_os=$build_os
10625 # An echo program that does not interpret backslashes.
10626 echo=$lt_echo
10628 # The archiver.
10629 AR=$lt_AR
10630 AR_FLAGS=$lt_AR_FLAGS
10632 # A C compiler.
10633 LTCC=$lt_LTCC
10635 # LTCC compiler flags.
10636 LTCFLAGS=$lt_LTCFLAGS
10638 # A language-specific compiler.
10639 CC=$lt_compiler
10641 # Is the compiler the GNU C compiler?
10642 with_gcc=$GCC
10644 # An ERE matcher.
10645 EGREP=$lt_EGREP
10647 # The linker used to build libraries.
10648 LD=$lt_LD
10650 # Whether we need hard or soft links.
10651 LN_S=$lt_LN_S
10653 # A BSD-compatible nm program.
10654 NM=$lt_NM
10656 # A symbol stripping program
10657 STRIP=$lt_STRIP
10659 # Used to examine libraries when file_magic_cmd begins "file"
10660 MAGIC_CMD=$MAGIC_CMD
10662 # Used on cygwin: DLL creation program.
10663 DLLTOOL="$DLLTOOL"
10665 # Used on cygwin: object dumper.
10666 OBJDUMP="$OBJDUMP"
10668 # Used on cygwin: assembler.
10669 AS="$AS"
10671 # The name of the directory that contains temporary libtool files.
10672 objdir=$objdir
10674 # How to create reloadable object files.
10675 reload_flag=$lt_reload_flag
10676 reload_cmds=$lt_reload_cmds
10678 # How to pass a linker flag through the compiler.
10679 wl=$lt_lt_prog_compiler_wl
10681 # Object file suffix (normally "o").
10682 objext="$ac_objext"
10684 # Old archive suffix (normally "a").
10685 libext="$libext"
10687 # Shared library suffix (normally ".so").
10688 shrext_cmds='$shrext_cmds'
10690 # Executable file suffix (normally "").
10691 exeext="$exeext"
10693 # Additional compiler flags for building library objects.
10694 pic_flag=$lt_lt_prog_compiler_pic
10695 pic_mode=$pic_mode
10697 # What is the maximum length of a command?
10698 max_cmd_len=$lt_cv_sys_max_cmd_len
10700 # Does compiler simultaneously support -c and -o options?
10701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10703 # Must we lock files when doing compilation?
10704 need_locks=$lt_need_locks
10706 # Do we need the lib prefix for modules?
10707 need_lib_prefix=$need_lib_prefix
10709 # Do we need a version for libraries?
10710 need_version=$need_version
10712 # Whether dlopen is supported.
10713 dlopen_support=$enable_dlopen
10715 # Whether dlopen of programs is supported.
10716 dlopen_self=$enable_dlopen_self
10718 # Whether dlopen of statically linked programs is supported.
10719 dlopen_self_static=$enable_dlopen_self_static
10721 # Compiler flag to prevent dynamic linking.
10722 link_static_flag=$lt_lt_prog_compiler_static
10724 # Compiler flag to turn off builtin functions.
10725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10727 # Compiler flag to allow reflexive dlopens.
10728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10730 # Compiler flag to generate shared objects directly from archives.
10731 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10733 # Compiler flag to generate thread-safe objects.
10734 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10736 # Library versioning type.
10737 version_type=$version_type
10739 # Format of library name prefix.
10740 libname_spec=$lt_libname_spec
10742 # List of archive names. First name is the real one, the rest are links.
10743 # The last name is the one that the linker finds with -lNAME.
10744 library_names_spec=$lt_library_names_spec
10746 # The coded name of the library, if different from the real name.
10747 soname_spec=$lt_soname_spec
10749 # Commands used to build and install an old-style archive.
10750 RANLIB=$lt_RANLIB
10751 old_archive_cmds=$lt_old_archive_cmds
10752 old_postinstall_cmds=$lt_old_postinstall_cmds
10753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10755 # Create an old-style archive from a shared archive.
10756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10758 # Create a temporary old-style archive to link instead of a shared archive.
10759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10761 # Commands used to build and install a shared archive.
10762 archive_cmds=$lt_archive_cmds
10763 archive_expsym_cmds=$lt_archive_expsym_cmds
10764 postinstall_cmds=$lt_postinstall_cmds
10765 postuninstall_cmds=$lt_postuninstall_cmds
10767 # Commands used to build a loadable module (assumed same as above if empty)
10768 module_cmds=$lt_module_cmds
10769 module_expsym_cmds=$lt_module_expsym_cmds
10771 # Commands to strip libraries.
10772 old_striplib=$lt_old_striplib
10773 striplib=$lt_striplib
10775 # Dependencies to place before the objects being linked to create a
10776 # shared library.
10777 predep_objects=$lt_predep_objects
10779 # Dependencies to place after the objects being linked to create a
10780 # shared library.
10781 postdep_objects=$lt_postdep_objects
10783 # Dependencies to place before the objects being linked to create a
10784 # shared library.
10785 predeps=$lt_predeps
10787 # Dependencies to place after the objects being linked to create a
10788 # shared library.
10789 postdeps=$lt_postdeps
10791 # The library search path used internally by the compiler when linking
10792 # a shared library.
10793 compiler_lib_search_path=$lt_compiler_lib_search_path
10795 # Method to check whether dependent libraries are shared objects.
10796 deplibs_check_method=$lt_deplibs_check_method
10798 # Command to use when deplibs_check_method == file_magic.
10799 file_magic_cmd=$lt_file_magic_cmd
10801 # Flag that allows shared libraries with undefined symbols to be built.
10802 allow_undefined_flag=$lt_allow_undefined_flag
10804 # Flag that forces no undefined symbols.
10805 no_undefined_flag=$lt_no_undefined_flag
10807 # Commands used to finish a libtool library installation in a directory.
10808 finish_cmds=$lt_finish_cmds
10810 # Same as above, but a single script fragment to be evaled but not shown.
10811 finish_eval=$lt_finish_eval
10813 # Take the output of nm and produce a listing of raw symbols and C names.
10814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10816 # Transform the output of nm in a proper C declaration
10817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10819 # Transform the output of nm in a C name address pair
10820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10822 # This is the shared library runtime path variable.
10823 runpath_var=$runpath_var
10825 # This is the shared library path variable.
10826 shlibpath_var=$shlibpath_var
10828 # Is shlibpath searched before the hard-coded library search path?
10829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10831 # How to hardcode a shared library path into an executable.
10832 hardcode_action=$hardcode_action
10834 # Whether we should hardcode library paths into libraries.
10835 hardcode_into_libs=$hardcode_into_libs
10837 # Flag to hardcode \$libdir into a binary during linking.
10838 # This must work even if \$libdir does not exist.
10839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10841 # If ld is used when linking, flag to hardcode \$libdir into
10842 # a binary during linking. This must work even if \$libdir does
10843 # not exist.
10844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10846 # Whether we need a single -rpath flag with a separated argument.
10847 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10850 # resulting binary.
10851 hardcode_direct=$hardcode_direct
10853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10854 # resulting binary.
10855 hardcode_minus_L=$hardcode_minus_L
10857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10858 # the resulting binary.
10859 hardcode_shlibpath_var=$hardcode_shlibpath_var
10861 # Set to yes if building a shared library automatically hardcodes DIR into the library
10862 # and all subsequent libraries and executables linked against it.
10863 hardcode_automatic=$hardcode_automatic
10865 # Variables whose values should be saved in libtool wrapper scripts and
10866 # restored at relink time.
10867 variables_saved_for_relink="$variables_saved_for_relink"
10869 # Whether libtool must link a program against all its dependency libraries.
10870 link_all_deplibs=$link_all_deplibs
10872 # Compile-time system search path for libraries
10873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10875 # Run-time system search path for libraries
10876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10878 # Fix the shell variable \$srcfile for the compiler.
10879 fix_srcfile_path=$lt_fix_srcfile_path
10881 # Set to yes if exported symbols are required.
10882 always_export_symbols=$always_export_symbols
10884 # The commands to list exported symbols.
10885 export_symbols_cmds=$lt_export_symbols_cmds
10887 # The commands to extract the exported symbol list from a shared archive.
10888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10890 # Symbols that should not be listed in the preloaded symbols.
10891 exclude_expsyms=$lt_exclude_expsyms
10893 # Symbols that must always be exported.
10894 include_expsyms=$lt_include_expsyms
10896 # ### END LIBTOOL CONFIG
10898 __EOF__
10901 case $host_os in
10902 aix3*)
10903 cat <<\EOF >> "$cfgfile"
10905 # AIX sometimes has problems with the GCC collect2 program. For some
10906 # reason, if we set the COLLECT_NAMES environment variable, the problems
10907 # vanish in a puff of smoke.
10908 if test "X${COLLECT_NAMES+set}" != Xset; then
10909 COLLECT_NAMES=
10910 export COLLECT_NAMES
10914 esac
10916 # We use sed instead of cat because bash on DJGPP gets confused if
10917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10918 # text mode, it properly converts lines to CR/LF. This bash problem
10919 # is reportedly fixed, but why not run on old versions too?
10920 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10922 mv -f "$cfgfile" "$ofile" || \
10923 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10924 chmod +x "$ofile"
10926 else
10927 # If there is no Makefile yet, we rely on a make rule to execute
10928 # `config.status --recheck' to rerun these tests and create the
10929 # libtool script then.
10930 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10931 if test -f "$ltmain_in"; then
10932 test -f Makefile && make "$ltmain"
10937 ac_ext=c
10938 ac_cpp='$CPP $CPPFLAGS'
10939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943 CC="$lt_save_CC"
10946 # Check whether --with-tags was given.
10947 if test "${with_tags+set}" = set; then
10948 withval=$with_tags; tagnames="$withval"
10952 if test -f "$ltmain" && test -n "$tagnames"; then
10953 if test ! -f "${ofile}"; then
10954 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10955 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10958 if test -z "$LTCC"; then
10959 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10960 if test -z "$LTCC"; then
10961 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10962 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10963 else
10964 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10965 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10968 if test -z "$LTCFLAGS"; then
10969 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10972 # Extract list of available tagged configurations in $ofile.
10973 # Note that this assumes the entire list is on one line.
10974 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10977 for tagname in $tagnames; do
10978 IFS="$lt_save_ifs"
10979 # Check whether tagname contains only valid characters
10980 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10981 "") ;;
10982 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10983 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10984 { (exit 1); exit 1; }; }
10986 esac
10988 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10989 then
10990 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10991 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10992 { (exit 1); exit 1; }; }
10995 # Update the list of available tags.
10996 if test -n "$tagname"; then
10997 echo appending configuration tag \"$tagname\" to $ofile
10999 case $tagname in
11000 CXX)
11001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11003 (test "X$CXX" != "Xg++"))) ; then
11004 ac_ext=cpp
11005 ac_cpp='$CXXCPP $CPPFLAGS'
11006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11013 archive_cmds_need_lc_CXX=no
11014 allow_undefined_flag_CXX=
11015 always_export_symbols_CXX=no
11016 archive_expsym_cmds_CXX=
11017 export_dynamic_flag_spec_CXX=
11018 hardcode_direct_CXX=no
11019 hardcode_libdir_flag_spec_CXX=
11020 hardcode_libdir_flag_spec_ld_CXX=
11021 hardcode_libdir_separator_CXX=
11022 hardcode_minus_L_CXX=no
11023 hardcode_shlibpath_var_CXX=unsupported
11024 hardcode_automatic_CXX=no
11025 module_cmds_CXX=
11026 module_expsym_cmds_CXX=
11027 link_all_deplibs_CXX=unknown
11028 old_archive_cmds_CXX=$old_archive_cmds
11029 no_undefined_flag_CXX=
11030 whole_archive_flag_spec_CXX=
11031 enable_shared_with_static_runtimes_CXX=no
11033 # Dependencies to place before and after the object being linked:
11034 predep_objects_CXX=
11035 postdep_objects_CXX=
11036 predeps_CXX=
11037 postdeps_CXX=
11038 compiler_lib_search_path_CXX=
11040 # Source file extension for C++ test sources.
11041 ac_ext=cpp
11043 # Object file extension for compiled C++ test sources.
11044 objext=o
11045 objext_CXX=$objext
11047 # Code to be used in simple compile tests
11048 lt_simple_compile_test_code="int some_variable = 0;"
11050 # Code to be used in simple link tests
11051 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11055 # If no C compiler was specified, use CC.
11056 LTCC=${LTCC-"$CC"}
11058 # If no C compiler flags were specified, use CFLAGS.
11059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11061 # Allow CC to be a program name with arguments.
11062 compiler=$CC
11065 # save warnings/boilerplate of simple test code
11066 ac_outfile=conftest.$ac_objext
11067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11069 _lt_compiler_boilerplate=`cat conftest.err`
11070 $rm conftest*
11072 ac_outfile=conftest.$ac_objext
11073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11075 _lt_linker_boilerplate=`cat conftest.err`
11076 $rm conftest*
11079 # Allow CC to be a program name with arguments.
11080 lt_save_CC=$CC
11081 lt_save_LD=$LD
11082 lt_save_GCC=$GCC
11083 GCC=$GXX
11084 lt_save_with_gnu_ld=$with_gnu_ld
11085 lt_save_path_LD=$lt_cv_path_LD
11086 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11088 else
11089 $as_unset lt_cv_prog_gnu_ld
11091 if test -n "${lt_cv_path_LDCXX+set}"; then
11092 lt_cv_path_LD=$lt_cv_path_LDCXX
11093 else
11094 $as_unset lt_cv_path_LD
11096 test -z "${LDCXX+set}" || LD=$LDCXX
11097 CC=${CXX-"c++"}
11098 compiler=$CC
11099 compiler_CXX=$CC
11100 for cc_temp in $compiler""; do
11101 case $cc_temp in
11102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11104 \-*) ;;
11105 *) break;;
11106 esac
11107 done
11108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11111 # We don't want -fno-exception wen compiling C++ code, so set the
11112 # no_builtin_flag separately
11113 if test "$GXX" = yes; then
11114 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11115 else
11116 lt_prog_compiler_no_builtin_flag_CXX=
11119 if test "$GXX" = yes; then
11120 # Set up default GNU C++ configuration
11123 # Check whether --with-gnu-ld was given.
11124 if test "${with_gnu_ld+set}" = set; then
11125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11126 else
11127 with_gnu_ld=no
11130 ac_prog=ld
11131 if test "$GCC" = yes; then
11132 # Check if gcc -print-prog-name=ld gives a path.
11133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11135 case $host in
11136 *-*-mingw*)
11137 # gcc leaves a trailing carriage return which upsets mingw
11138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11141 esac
11142 case $ac_prog in
11143 # Accept absolute paths.
11144 [\\/]* | ?:[\\/]*)
11145 re_direlt='/[^/][^/]*/\.\./'
11146 # Canonicalize the pathname of ld
11147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11150 done
11151 test -z "$LD" && LD="$ac_prog"
11154 # If it fails, then pretend we aren't using GCC.
11155 ac_prog=ld
11158 # If it is relative, then search for the first ld in PATH.
11159 with_gnu_ld=unknown
11161 esac
11162 elif test "$with_gnu_ld" = yes; then
11163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11165 else
11166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11169 if test "${lt_cv_path_LD+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 if test -z "$LD"; then
11173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11174 for ac_dir in $PATH; do
11175 IFS="$lt_save_ifs"
11176 test -z "$ac_dir" && ac_dir=.
11177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11178 lt_cv_path_LD="$ac_dir/$ac_prog"
11179 # Check to see if the program is GNU ld. I'd rather use --version,
11180 # but apparently some variants of GNU ld only accept -v.
11181 # Break only if it was the GNU/non-GNU ld that we prefer.
11182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11183 *GNU* | *'with BFD'*)
11184 test "$with_gnu_ld" != no && break
11187 test "$with_gnu_ld" != yes && break
11189 esac
11191 done
11192 IFS="$lt_save_ifs"
11193 else
11194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11198 LD="$lt_cv_path_LD"
11199 if test -n "$LD"; then
11200 { echo "$as_me:$LINENO: result: $LD" >&5
11201 echo "${ECHO_T}$LD" >&6; }
11202 else
11203 { echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6; }
11206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11208 { (exit 1); exit 1; }; }
11209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11215 case `$LD -v 2>&1 </dev/null` in
11216 *GNU* | *'with BFD'*)
11217 lt_cv_prog_gnu_ld=yes
11220 lt_cv_prog_gnu_ld=no
11222 esac
11224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11226 with_gnu_ld=$lt_cv_prog_gnu_ld
11230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11231 # archiving commands below assume that GNU ld is being used.
11232 if test "$with_gnu_ld" = yes; then
11233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 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'
11236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11239 # If archive_cmds runs LD, not CC, wlarc should be empty
11240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11241 # investigate it a little bit more. (MM)
11242 wlarc='${wl}'
11244 # ancient GNU ld didn't support --whole-archive et. al.
11245 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11246 grep 'no-whole-archive' > /dev/null; then
11247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11248 else
11249 whole_archive_flag_spec_CXX=
11251 else
11252 with_gnu_ld=no
11253 wlarc=
11255 # A generic and very simple default shared library creation
11256 # command for GNU C++ for the case where it uses the native
11257 # linker, instead of GNU ld. If possible, this setting should
11258 # overridden to take advantage of the native linker features on
11259 # the platform it is being used on.
11260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11263 # Commands to make compiler produce verbose output that lists
11264 # what "hidden" libraries, object files and flags are used when
11265 # linking a shared library.
11266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11268 else
11269 GXX=no
11270 with_gnu_ld=no
11271 wlarc=
11274 # PORTME: fill in a description of your system's C++ link characteristics
11275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11277 ld_shlibs_CXX=yes
11278 case $host_os in
11279 aix3*)
11280 # FIXME: insert proper C++ library support
11281 ld_shlibs_CXX=no
11283 aix4* | aix5*)
11284 if test "$host_cpu" = ia64; then
11285 # On IA64, the linker does run time linking by default, so we don't
11286 # have to do anything special.
11287 aix_use_runtimelinking=no
11288 exp_sym_flag='-Bexport'
11289 no_entry_flag=""
11290 else
11291 aix_use_runtimelinking=no
11293 # Test if we are trying to use run time linking or normal
11294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295 # need to do runtime linking.
11296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11297 for ld_flag in $LDFLAGS; do
11298 case $ld_flag in
11299 *-brtl*)
11300 aix_use_runtimelinking=yes
11301 break
11303 esac
11304 done
11306 esac
11308 exp_sym_flag='-bexport'
11309 no_entry_flag='-bnoentry'
11312 # When large executables or shared objects are built, AIX ld can
11313 # have problems creating the table of contents. If linking a library
11314 # or program results in "error TOC overflow" add -mminimal-toc to
11315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11318 archive_cmds_CXX=''
11319 hardcode_direct_CXX=yes
11320 hardcode_libdir_separator_CXX=':'
11321 link_all_deplibs_CXX=yes
11323 if test "$GXX" = yes; then
11324 case $host_os in aix4.[012]|aix4.[012].*)
11325 # We only want to do this on AIX 4.2 and lower, the check
11326 # below for broken collect2 doesn't work under 4.3+
11327 collect2name=`${CC} -print-prog-name=collect2`
11328 if test -f "$collect2name" && \
11329 strings "$collect2name" | grep resolve_lib_name >/dev/null
11330 then
11331 # We have reworked collect2
11333 else
11334 # We have old collect2
11335 hardcode_direct_CXX=unsupported
11336 # It fails to find uninstalled libraries when the uninstalled
11337 # path is not listed in the libpath. Setting hardcode_minus_L
11338 # to unsupported forces relinking
11339 hardcode_minus_L_CXX=yes
11340 hardcode_libdir_flag_spec_CXX='-L$libdir'
11341 hardcode_libdir_separator_CXX=
11344 esac
11345 shared_flag='-shared'
11346 if test "$aix_use_runtimelinking" = yes; then
11347 shared_flag="$shared_flag "'${wl}-G'
11349 else
11350 # not using gcc
11351 if test "$host_cpu" = ia64; then
11352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353 # chokes on -Wl,-G. The following line is correct:
11354 shared_flag='-G'
11355 else
11356 if test "$aix_use_runtimelinking" = yes; then
11357 shared_flag='${wl}-G'
11358 else
11359 shared_flag='${wl}-bM:SRE'
11364 # It seems that -bexpall does not export symbols beginning with
11365 # underscore (_), so it is better to generate a list of symbols to export.
11366 always_export_symbols_CXX=yes
11367 if test "$aix_use_runtimelinking" = yes; then
11368 # Warning - without using the other runtime loading flags (-brtl),
11369 # -berok will link without error, but may produce a broken library.
11370 allow_undefined_flag_CXX='-berok'
11371 # Determine the default libpath from the value encoded in an empty executable.
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11380 main ()
11384 return 0;
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (ac_try="$ac_link"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_link") 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && {
11401 test -z "$ac_cxx_werror_flag" ||
11402 test ! -s conftest.err
11403 } && test -s conftest$ac_exeext &&
11404 $as_test_x conftest$ac_exeext; then
11406 lt_aix_libpath_sed='
11407 /Import File Strings/,/^$/ {
11408 /^0/ {
11409 s/^0 *\(.*\)$/\1/
11413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414 # Check for a 64-bit object if we didn't find anything.
11415 if test -z "$aix_libpath"; then
11416 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418 else
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426 conftest$ac_exeext conftest.$ac_ext
11427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11429 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11431 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11432 else
11433 if test "$host_cpu" = ia64; then
11434 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11435 allow_undefined_flag_CXX="-z nodefs"
11436 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"
11437 else
11438 # Determine the default libpath from the value encoded in an empty executable.
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11447 main ()
11451 return 0;
11453 _ACEOF
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (ac_try="$ac_link"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_link") 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } && {
11468 test -z "$ac_cxx_werror_flag" ||
11469 test ! -s conftest.err
11470 } && test -s conftest$ac_exeext &&
11471 $as_test_x conftest$ac_exeext; then
11473 lt_aix_libpath_sed='
11474 /Import File Strings/,/^$/ {
11475 /^0/ {
11476 s/^0 *\(.*\)$/\1/
11480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 # Check for a 64-bit object if we didn't find anything.
11482 if test -z "$aix_libpath"; then
11483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493 conftest$ac_exeext conftest.$ac_ext
11494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11497 # Warning - without using the other run time loading flags,
11498 # -berok will link without error, but may produce a broken library.
11499 no_undefined_flag_CXX=' ${wl}-bernotok'
11500 allow_undefined_flag_CXX=' ${wl}-berok'
11501 # Exported symbols can be pulled into shared objects from archives
11502 whole_archive_flag_spec_CXX='$convenience'
11503 archive_cmds_need_lc_CXX=yes
11504 # This is similar to how AIX traditionally builds its shared libraries.
11505 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'
11510 beos*)
11511 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11512 allow_undefined_flag_CXX=unsupported
11513 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11514 # support --undefined. This deserves some investigation. FIXME
11515 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516 else
11517 ld_shlibs_CXX=no
11521 chorus*)
11522 case $cc_basename in
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11527 esac
11530 cygwin* | mingw* | pw32*)
11531 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11532 # as there is no search path for DLLs.
11533 hardcode_libdir_flag_spec_CXX='-L$libdir'
11534 allow_undefined_flag_CXX=unsupported
11535 always_export_symbols_CXX=no
11536 enable_shared_with_static_runtimes_CXX=yes
11538 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11539 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'
11540 # If the export-symbols file already is a .def file (1st line
11541 # is EXPORTS), use it as is; otherwise, prepend...
11542 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11543 cp $export_symbols $output_objdir/$soname.def;
11544 else
11545 echo EXPORTS > $output_objdir/$soname.def;
11546 cat $export_symbols >> $output_objdir/$soname.def;
11548 $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'
11549 else
11550 ld_shlibs_CXX=no
11553 darwin* | rhapsody*)
11554 case $host_os in
11555 rhapsody* | darwin1.[012])
11556 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11558 *) # Darwin 1.3 on
11559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11560 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11561 else
11562 case ${MACOSX_DEPLOYMENT_TARGET} in
11563 10.[012])
11564 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11566 10.*)
11567 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11569 esac
11572 esac
11573 archive_cmds_need_lc_CXX=no
11574 hardcode_direct_CXX=no
11575 hardcode_automatic_CXX=yes
11576 hardcode_shlibpath_var_CXX=unsupported
11577 whole_archive_flag_spec_CXX=''
11578 link_all_deplibs_CXX=yes
11580 if test "$GXX" = yes ; then
11581 lt_int_apple_cc_single_mod=no
11582 output_verbose_link_cmd='echo'
11583 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11584 lt_int_apple_cc_single_mod=yes
11586 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11587 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11588 else
11589 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'
11591 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11593 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11594 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11595 else
11596 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11598 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11599 else
11600 case $cc_basename in
11601 xlc*)
11602 output_verbose_link_cmd='echo'
11603 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11604 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11606 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11607 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11610 ld_shlibs_CXX=no
11612 esac
11616 dgux*)
11617 case $cc_basename in
11618 ec++*)
11619 # FIXME: insert proper C++ library support
11620 ld_shlibs_CXX=no
11622 ghcx*)
11623 # Green Hills C++ Compiler
11624 # FIXME: insert proper C++ library support
11625 ld_shlibs_CXX=no
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11631 esac
11633 freebsd[12]*)
11634 # C++ shared libraries reported to be fairly broken before switch to ELF
11635 ld_shlibs_CXX=no
11637 freebsd-elf*)
11638 archive_cmds_need_lc_CXX=no
11640 freebsd* | dragonfly*)
11641 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11642 # conventions
11643 ld_shlibs_CXX=yes
11645 gnu*)
11647 hpux9*)
11648 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11649 hardcode_libdir_separator_CXX=:
11650 export_dynamic_flag_spec_CXX='${wl}-E'
11651 hardcode_direct_CXX=yes
11652 hardcode_minus_L_CXX=yes # Not in the search PATH,
11653 # but as the default
11654 # location of the library.
11656 case $cc_basename in
11657 CC*)
11658 # FIXME: insert proper C++ library support
11659 ld_shlibs_CXX=no
11661 aCC*)
11662 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'
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 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; echo $list'
11674 if test "$GXX" = yes; then
11675 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'
11676 else
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11681 esac
11683 hpux10*|hpux11*)
11684 if test $with_gnu_ld = no; then
11685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11686 hardcode_libdir_separator_CXX=:
11688 case $host_cpu in
11689 hppa*64*|ia64*) ;;
11691 export_dynamic_flag_spec_CXX='${wl}-E'
11693 esac
11695 case $host_cpu in
11696 hppa*64*|ia64*)
11697 hardcode_direct_CXX=no
11698 hardcode_shlibpath_var_CXX=no
11701 hardcode_direct_CXX=yes
11702 hardcode_minus_L_CXX=yes # Not in the search PATH,
11703 # but as the default
11704 # location of the library.
11706 esac
11708 case $cc_basename in
11709 CC*)
11710 # FIXME: insert proper C++ library support
11711 ld_shlibs_CXX=no
11713 aCC*)
11714 case $host_cpu in
11715 hppa*64*)
11716 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718 ia64*)
11719 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724 esac
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11729 # There doesn't appear to be a way to prevent this compiler from
11730 # explicitly linking system object files so we need to strip them
11731 # from the output so that they don't get included in the library
11732 # dependencies.
11733 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; echo $list'
11736 if test "$GXX" = yes; then
11737 if test $with_gnu_ld = no; then
11738 case $host_cpu in
11739 hppa*64*)
11740 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742 ia64*)
11743 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11746 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'
11748 esac
11750 else
11751 # FIXME: insert proper C++ library support
11752 ld_shlibs_CXX=no
11755 esac
11757 interix[3-9]*)
11758 hardcode_direct_CXX=no
11759 hardcode_shlibpath_var_CXX=no
11760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11761 export_dynamic_flag_spec_CXX='${wl}-E'
11762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11763 # Instead, shared libraries are loaded at an image base (0x10000000 by
11764 # default) and relocated if they conflict, which is a slow very memory
11765 # consuming and fragmenting process. To avoid this, we pick a random,
11766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11768 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'
11769 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'
11771 irix5* | irix6*)
11772 case $cc_basename in
11773 CC*)
11774 # SGI C++
11775 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11777 # Archives containing C++ object files must be created using
11778 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11779 # necessary to make sure instantiated templates are included
11780 # in the archive.
11781 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11784 if test "$GXX" = yes; then
11785 if test "$with_gnu_ld" = no; then
11786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11787 else
11788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11791 link_all_deplibs_CXX=yes
11793 esac
11794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11795 hardcode_libdir_separator_CXX=:
11797 linux* | k*bsd*-gnu)
11798 case $cc_basename in
11799 KCC*)
11800 # Kuck and Associates, Inc. (KAI) C++ Compiler
11802 # KCC will only create a shared library if the output file
11803 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11804 # to its proper name (with version) after linking.
11805 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'
11806 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'
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11814 # dependencies.
11815 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; echo $list'
11817 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11820 # Archives containing C++ object files must be created using
11821 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11822 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824 icpc*)
11825 # Intel C++
11826 with_gnu_ld=yes
11827 # version 8.0 and above of icpc choke on multiply defined symbols
11828 # if we add $predep_objects and $postdep_objects, however 7.1 and
11829 # earlier do not add the objects themselves.
11830 case `$CC -V 2>&1` in
11831 *"Version 7."*)
11832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11833 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'
11835 *) # Version 8.0 or newer
11836 tmp_idyn=
11837 case $host_cpu in
11838 ia64*) tmp_idyn=' -i_dynamic';;
11839 esac
11840 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11841 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'
11843 esac
11844 archive_cmds_need_lc_CXX=no
11845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11847 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11849 pgCC*)
11850 # Portland Group C++ compiler
11851 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11852 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'
11854 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11855 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11856 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11858 cxx*)
11859 # Compaq C++
11860 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11861 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'
11863 runpath_var=LD_RUN_PATH
11864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11865 hardcode_libdir_separator_CXX=:
11867 # Commands to make compiler produce verbose output that lists
11868 # what "hidden" libraries, object files and flags are used when
11869 # linking a shared library.
11871 # There doesn't appear to be a way to prevent this compiler from
11872 # explicitly linking system object files so we need to strip them
11873 # from the output so that they don't get included in the library
11874 # dependencies.
11875 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11878 case `$CC -V 2>&1 | sed 5q` in
11879 *Sun\ C*)
11880 # Sun C++ 5.9
11881 no_undefined_flag_CXX=' -zdefs'
11882 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11883 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'
11884 hardcode_libdir_flag_spec_CXX='-R$libdir'
11885 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11887 # Not sure whether something based on
11888 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11889 # would be better.
11890 output_verbose_link_cmd='echo'
11892 # Archives containing C++ object files must be created using
11893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11894 # necessary to make sure instantiated templates are included
11895 # in the archive.
11896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11898 esac
11900 esac
11902 lynxos*)
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11906 m88k*)
11907 # FIXME: insert proper C++ library support
11908 ld_shlibs_CXX=no
11910 mvs*)
11911 case $cc_basename in
11912 cxx*)
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11920 esac
11922 netbsd* | netbsdelf*-gnu)
11923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11924 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11925 wlarc=
11926 hardcode_libdir_flag_spec_CXX='-R$libdir'
11927 hardcode_direct_CXX=yes
11928 hardcode_shlibpath_var_CXX=no
11930 # Workaround some broken pre-1.5 toolchains
11931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11933 openbsd2*)
11934 # C++ shared libraries are fairly broken
11935 ld_shlibs_CXX=no
11937 openbsd*)
11938 if test -f /usr/libexec/ld.so; then
11939 hardcode_direct_CXX=yes
11940 hardcode_shlibpath_var_CXX=no
11941 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11944 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11945 export_dynamic_flag_spec_CXX='${wl}-E'
11946 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11948 output_verbose_link_cmd='echo'
11949 else
11950 ld_shlibs_CXX=no
11953 osf3*)
11954 case $cc_basename in
11955 KCC*)
11956 # Kuck and Associates, Inc. (KAI) C++ Compiler
11958 # KCC will only create a shared library if the output file
11959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11960 # to its proper name (with version) after linking.
11961 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'
11963 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964 hardcode_libdir_separator_CXX=:
11966 # Archives containing C++ object files must be created using
11967 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11968 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11971 RCC*)
11972 # Rational C++ 2.4.1
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11976 cxx*)
11977 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11978 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11981 hardcode_libdir_separator_CXX=:
11983 # Commands to make compiler produce verbose output that lists
11984 # what "hidden" libraries, object files and flags are used when
11985 # linking a shared library.
11987 # There doesn't appear to be a way to prevent this compiler from
11988 # explicitly linking system object files so we need to strip them
11989 # from the output so that they don't get included in the library
11990 # dependencies.
11991 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11995 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11996 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11999 hardcode_libdir_separator_CXX=:
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12006 else
12007 # FIXME: insert proper C++ library support
12008 ld_shlibs_CXX=no
12011 esac
12013 osf4* | osf5*)
12014 case $cc_basename in
12015 KCC*)
12016 # Kuck and Associates, Inc. (KAI) C++ Compiler
12018 # KCC will only create a shared library if the output file
12019 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12020 # to its proper name (with version) after linking.
12021 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'
12023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12024 hardcode_libdir_separator_CXX=:
12026 # Archives containing C++ object files must be created using
12027 # the KAI C++ compiler.
12028 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12030 RCC*)
12031 # Rational C++ 2.4.1
12032 # FIXME: insert proper C++ library support
12033 ld_shlibs_CXX=no
12035 cxx*)
12036 allow_undefined_flag_CXX=' -expect_unresolved \*'
12037 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12038 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12039 echo "-hidden">> $lib.exp~
12040 $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~
12041 $rm $lib.exp'
12043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12044 hardcode_libdir_separator_CXX=:
12046 # Commands to make compiler produce verbose output that lists
12047 # what "hidden" libraries, object files and flags are used when
12048 # linking a shared library.
12050 # There doesn't appear to be a way to prevent this compiler from
12051 # explicitly linking system object files so we need to strip them
12052 # from the output so that they don't get included in the library
12053 # dependencies.
12054 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12057 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12058 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12059 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12062 hardcode_libdir_separator_CXX=:
12064 # Commands to make compiler produce verbose output that lists
12065 # what "hidden" libraries, object files and flags are used when
12066 # linking a shared library.
12067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12069 else
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12074 esac
12076 psos*)
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12080 sunos4*)
12081 case $cc_basename in
12082 CC*)
12083 # Sun C++ 4.x
12084 # FIXME: insert proper C++ library support
12085 ld_shlibs_CXX=no
12087 lcc*)
12088 # Lucid
12089 # FIXME: insert proper C++ library support
12090 ld_shlibs_CXX=no
12093 # FIXME: insert proper C++ library support
12094 ld_shlibs_CXX=no
12096 esac
12098 solaris*)
12099 case $cc_basename in
12100 CC*)
12101 # Sun C++ 4.2, 5.x and Centerline C++
12102 archive_cmds_need_lc_CXX=yes
12103 no_undefined_flag_CXX=' -zdefs'
12104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12105 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12106 $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'
12108 hardcode_libdir_flag_spec_CXX='-R$libdir'
12109 hardcode_shlibpath_var_CXX=no
12110 case $host_os in
12111 solaris2.[0-5] | solaris2.[0-5].*) ;;
12113 # The compiler driver will combine and reorder linker options,
12114 # but understands `-z linker_flag'.
12115 # Supported since Solaris 2.6 (maybe 2.5.1?)
12116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12118 esac
12119 link_all_deplibs_CXX=yes
12121 output_verbose_link_cmd='echo'
12123 # Archives containing C++ object files must be created using
12124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12125 # necessary to make sure instantiated templates are included
12126 # in the archive.
12127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12129 gcx*)
12130 # Green Hills C++ Compiler
12131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12133 # The C++ compiler must be used to create the archive.
12134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12137 # GNU C++ compiler with Solaris linker
12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12140 if $CC --version | grep -v '^2\.7' > /dev/null; then
12141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12145 # Commands to make compiler produce verbose output that lists
12146 # what "hidden" libraries, object files and flags are used when
12147 # linking a shared library.
12148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12149 else
12150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12151 # platform.
12152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12156 # Commands to make compiler produce verbose output that lists
12157 # what "hidden" libraries, object files and flags are used when
12158 # linking a shared library.
12159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12163 case $host_os in
12164 solaris2.[0-5] | solaris2.[0-5].*) ;;
12166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12168 esac
12171 esac
12173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12174 no_undefined_flag_CXX='${wl}-z,text'
12175 archive_cmds_need_lc_CXX=no
12176 hardcode_shlibpath_var_CXX=no
12177 runpath_var='LD_RUN_PATH'
12179 case $cc_basename in
12180 CC*)
12181 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12182 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 esac
12190 sysv5* | sco3.2v5* | sco5v6*)
12191 # Note: We can NOT use -z defs as we might desire, because we do not
12192 # link with -lc, and that would cause any symbols used from libc to
12193 # always be unresolved, which means just about no library would
12194 # ever link correctly. If we're not using GNU ld we use -z text
12195 # though, which does catch some bad symbols but isn't as heavy-handed
12196 # as -z defs.
12197 # For security reasons, it is highly recommended that you always
12198 # use absolute paths for naming shared libraries, and exclude the
12199 # DT_RUNPATH tag from executables and libraries. But doing so
12200 # requires that you compile everything twice, which is a pain.
12201 # So that behaviour is only enabled if SCOABSPATH is set to a
12202 # non-empty value in the environment. Most likely only useful for
12203 # creating official distributions of packages.
12204 # This is a hack until libtool officially supports absolute path
12205 # names for shared libraries.
12206 no_undefined_flag_CXX='${wl}-z,text'
12207 allow_undefined_flag_CXX='${wl}-z,nodefs'
12208 archive_cmds_need_lc_CXX=no
12209 hardcode_shlibpath_var_CXX=no
12210 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12211 hardcode_libdir_separator_CXX=':'
12212 link_all_deplibs_CXX=yes
12213 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12214 runpath_var='LD_RUN_PATH'
12216 case $cc_basename in
12217 CC*)
12218 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12219 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12223 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12225 esac
12227 tandem*)
12228 case $cc_basename in
12229 NCC*)
12230 # NonStop-UX NCC 3.20
12231 # FIXME: insert proper C++ library support
12232 ld_shlibs_CXX=no
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12238 esac
12240 vxworks*)
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12248 esac
12249 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12250 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12251 test "$ld_shlibs_CXX" = no && can_build_shared=no
12253 GCC_CXX="$GXX"
12254 LD_CXX="$LD"
12257 cat > conftest.$ac_ext <<EOF
12258 class Foo
12260 public:
12261 Foo (void) { a = 0; }
12262 private:
12263 int a;
12267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; then
12272 # Parse the compiler output and extract the necessary
12273 # objects, libraries and library flags.
12275 # Sentinel used to keep track of whether or not we are before
12276 # the conftest object file.
12277 pre_test_object_deps_done=no
12279 # The `*' in the case matches for architectures that use `case' in
12280 # $output_verbose_cmd can trigger glob expansion during the loop
12281 # eval without this substitution.
12282 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12284 for p in `eval $output_verbose_link_cmd`; do
12285 case $p in
12287 -L* | -R* | -l*)
12288 # Some compilers place space between "-{L,R}" and the path.
12289 # Remove the space.
12290 if test $p = "-L" \
12291 || test $p = "-R"; then
12292 prev=$p
12293 continue
12294 else
12295 prev=
12298 if test "$pre_test_object_deps_done" = no; then
12299 case $p in
12300 -L* | -R*)
12301 # Internal compiler library paths should come after those
12302 # provided the user. The postdeps already come after the
12303 # user supplied libs so there is no need to process them.
12304 if test -z "$compiler_lib_search_path_CXX"; then
12305 compiler_lib_search_path_CXX="${prev}${p}"
12306 else
12307 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12310 # The "-l" case would never come before the object being
12311 # linked, so don't bother handling this case.
12312 esac
12313 else
12314 if test -z "$postdeps_CXX"; then
12315 postdeps_CXX="${prev}${p}"
12316 else
12317 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12322 *.$objext)
12323 # This assumes that the test object file only shows up
12324 # once in the compiler output.
12325 if test "$p" = "conftest.$objext"; then
12326 pre_test_object_deps_done=yes
12327 continue
12330 if test "$pre_test_object_deps_done" = no; then
12331 if test -z "$predep_objects_CXX"; then
12332 predep_objects_CXX="$p"
12333 else
12334 predep_objects_CXX="$predep_objects_CXX $p"
12336 else
12337 if test -z "$postdep_objects_CXX"; then
12338 postdep_objects_CXX="$p"
12339 else
12340 postdep_objects_CXX="$postdep_objects_CXX $p"
12345 *) ;; # Ignore the rest.
12347 esac
12348 done
12350 # Clean up.
12351 rm -f a.out a.exe
12352 else
12353 echo "libtool.m4: error: problem compiling CXX test program"
12356 $rm -f confest.$objext
12358 # PORTME: override above test on systems where it is broken
12359 case $host_os in
12360 interix[3-9]*)
12361 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12362 # hack all around it, let's just trust "g++" to DTRT.
12363 predep_objects_CXX=
12364 postdep_objects_CXX=
12365 postdeps_CXX=
12368 linux*)
12369 case `$CC -V 2>&1 | sed 5q` in
12370 *Sun\ C*)
12371 # Sun C++ 5.9
12373 # The more standards-conforming stlport4 library is
12374 # incompatible with the Cstd library. Avoid specifying
12375 # it if it's in CXXFLAGS. Ignore libCrun as
12376 # -library=stlport4 depends on it.
12377 case " $CXX $CXXFLAGS " in
12378 *" -library=stlport4 "*)
12379 solaris_use_stlport4=yes
12381 esac
12382 if test "$solaris_use_stlport4" != yes; then
12383 postdeps_CXX='-library=Cstd -library=Crun'
12386 esac
12389 solaris*)
12390 case $cc_basename in
12391 CC*)
12392 # The more standards-conforming stlport4 library is
12393 # incompatible with the Cstd library. Avoid specifying
12394 # it if it's in CXXFLAGS. Ignore libCrun as
12395 # -library=stlport4 depends on it.
12396 case " $CXX $CXXFLAGS " in
12397 *" -library=stlport4 "*)
12398 solaris_use_stlport4=yes
12400 esac
12402 # Adding this requires a known-good setup of shared libraries for
12403 # Sun compiler versions before 5.6, else PIC objects from an old
12404 # archive will be linked into the output, leading to subtle bugs.
12405 if test "$solaris_use_stlport4" != yes; then
12406 postdeps_CXX='-library=Cstd -library=Crun'
12409 esac
12411 esac
12414 case " $postdeps_CXX " in
12415 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12416 esac
12418 lt_prog_compiler_wl_CXX=
12419 lt_prog_compiler_pic_CXX=
12420 lt_prog_compiler_static_CXX=
12422 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12425 # C++ specific cases for pic, static, wl, etc.
12426 if test "$GXX" = yes; then
12427 lt_prog_compiler_wl_CXX='-Wl,'
12428 lt_prog_compiler_static_CXX='-static'
12430 case $host_os in
12431 aix*)
12432 # All AIX code is PIC.
12433 if test "$host_cpu" = ia64; then
12434 # AIX 5 now supports IA64 processor
12435 lt_prog_compiler_static_CXX='-Bstatic'
12438 amigaos*)
12439 # FIXME: we need at least 68020 code to build shared libraries, but
12440 # adding the `-m68020' flag to GCC prevents building anything better,
12441 # like `-m68040'.
12442 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12445 # PIC is the default for these OSes.
12447 mingw* | cygwin* | os2* | pw32*)
12448 # This hack is so that the source file can tell whether it is being
12449 # built for inclusion in a dll (and should export symbols for example).
12450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12451 # (--disable-auto-import) libraries
12452 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12454 darwin* | rhapsody*)
12455 # PIC is the default on this platform
12456 # Common symbols not allowed in MH_DYLIB files
12457 lt_prog_compiler_pic_CXX='-fno-common'
12459 *djgpp*)
12460 # DJGPP does not support shared libraries at all
12461 lt_prog_compiler_pic_CXX=
12463 interix[3-9]*)
12464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12465 # Instead, we relocate shared libraries at runtime.
12467 sysv4*MP*)
12468 if test -d /usr/nec; then
12469 lt_prog_compiler_pic_CXX=-Kconform_pic
12472 hpux*)
12473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12474 # not for PA HP-UX.
12475 case $host_cpu in
12476 hppa*64*|ia64*)
12479 lt_prog_compiler_pic_CXX='-fPIC'
12481 esac
12484 lt_prog_compiler_pic_CXX='-fPIC'
12486 esac
12487 else
12488 case $host_os in
12489 aix4* | aix5*)
12490 # All AIX code is PIC.
12491 if test "$host_cpu" = ia64; then
12492 # AIX 5 now supports IA64 processor
12493 lt_prog_compiler_static_CXX='-Bstatic'
12494 else
12495 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12498 chorus*)
12499 case $cc_basename in
12500 cxch68*)
12501 # Green Hills C++ Compiler
12502 # _LT_AC_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"
12504 esac
12506 darwin*)
12507 # PIC is the default on this platform
12508 # Common symbols not allowed in MH_DYLIB files
12509 case $cc_basename in
12510 xlc*)
12511 lt_prog_compiler_pic_CXX='-qnocommon'
12512 lt_prog_compiler_wl_CXX='-Wl,'
12514 esac
12516 dgux*)
12517 case $cc_basename in
12518 ec++*)
12519 lt_prog_compiler_pic_CXX='-KPIC'
12521 ghcx*)
12522 # Green Hills C++ Compiler
12523 lt_prog_compiler_pic_CXX='-pic'
12527 esac
12529 freebsd* | dragonfly*)
12530 # FreeBSD uses GNU C++
12532 hpux9* | hpux10* | hpux11*)
12533 case $cc_basename in
12534 CC*)
12535 lt_prog_compiler_wl_CXX='-Wl,'
12536 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12537 if test "$host_cpu" != ia64; then
12538 lt_prog_compiler_pic_CXX='+Z'
12541 aCC*)
12542 lt_prog_compiler_wl_CXX='-Wl,'
12543 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12544 case $host_cpu in
12545 hppa*64*|ia64*)
12546 # +Z the default
12549 lt_prog_compiler_pic_CXX='+Z'
12551 esac
12555 esac
12557 interix*)
12558 # This is c89, which is MS Visual C++ (no shared libs)
12559 # Anyone wants to do a port?
12561 irix5* | irix6* | nonstopux*)
12562 case $cc_basename in
12563 CC*)
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_static_CXX='-non_shared'
12566 # CC pic flag -KPIC is the default.
12570 esac
12572 linux* | k*bsd*-gnu)
12573 case $cc_basename in
12574 KCC*)
12575 # KAI C++ Compiler
12576 lt_prog_compiler_wl_CXX='--backend -Wl,'
12577 lt_prog_compiler_pic_CXX='-fPIC'
12579 icpc* | ecpc*)
12580 # Intel C++
12581 lt_prog_compiler_wl_CXX='-Wl,'
12582 lt_prog_compiler_pic_CXX='-KPIC'
12583 lt_prog_compiler_static_CXX='-static'
12585 pgCC*)
12586 # Portland Group C++ compiler.
12587 lt_prog_compiler_wl_CXX='-Wl,'
12588 lt_prog_compiler_pic_CXX='-fpic'
12589 lt_prog_compiler_static_CXX='-Bstatic'
12591 cxx*)
12592 # Compaq C++
12593 # Make sure the PIC flag is empty. It appears that all Alpha
12594 # Linux and Compaq Tru64 Unix objects are PIC.
12595 lt_prog_compiler_pic_CXX=
12596 lt_prog_compiler_static_CXX='-non_shared'
12599 case `$CC -V 2>&1 | sed 5q` in
12600 *Sun\ C*)
12601 # Sun C++ 5.9
12602 lt_prog_compiler_pic_CXX='-KPIC'
12603 lt_prog_compiler_static_CXX='-Bstatic'
12604 lt_prog_compiler_wl_CXX='-Qoption ld '
12606 esac
12608 esac
12610 lynxos*)
12612 m88k*)
12614 mvs*)
12615 case $cc_basename in
12616 cxx*)
12617 lt_prog_compiler_pic_CXX='-W c,exportall'
12621 esac
12623 netbsd* | netbsdelf*-gnu)
12625 osf3* | osf4* | osf5*)
12626 case $cc_basename in
12627 KCC*)
12628 lt_prog_compiler_wl_CXX='--backend -Wl,'
12630 RCC*)
12631 # Rational C++ 2.4.1
12632 lt_prog_compiler_pic_CXX='-pic'
12634 cxx*)
12635 # Digital/Compaq C++
12636 lt_prog_compiler_wl_CXX='-Wl,'
12637 # Make sure the PIC flag is empty. It appears that all Alpha
12638 # Linux and Compaq Tru64 Unix objects are PIC.
12639 lt_prog_compiler_pic_CXX=
12640 lt_prog_compiler_static_CXX='-non_shared'
12644 esac
12646 psos*)
12648 solaris*)
12649 case $cc_basename in
12650 CC*)
12651 # Sun C++ 4.2, 5.x and Centerline C++
12652 lt_prog_compiler_pic_CXX='-KPIC'
12653 lt_prog_compiler_static_CXX='-Bstatic'
12654 lt_prog_compiler_wl_CXX='-Qoption ld '
12656 gcx*)
12657 # Green Hills C++ Compiler
12658 lt_prog_compiler_pic_CXX='-PIC'
12662 esac
12664 sunos4*)
12665 case $cc_basename in
12666 CC*)
12667 # Sun C++ 4.x
12668 lt_prog_compiler_pic_CXX='-pic'
12669 lt_prog_compiler_static_CXX='-Bstatic'
12671 lcc*)
12672 # Lucid
12673 lt_prog_compiler_pic_CXX='-pic'
12677 esac
12679 tandem*)
12680 case $cc_basename in
12681 NCC*)
12682 # NonStop-UX NCC 3.20
12683 lt_prog_compiler_pic_CXX='-KPIC'
12687 esac
12689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12690 case $cc_basename in
12691 CC*)
12692 lt_prog_compiler_wl_CXX='-Wl,'
12693 lt_prog_compiler_pic_CXX='-KPIC'
12694 lt_prog_compiler_static_CXX='-Bstatic'
12696 esac
12698 vxworks*)
12701 lt_prog_compiler_can_build_shared_CXX=no
12703 esac
12706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12707 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12710 # Check to make sure the PIC flag actually works.
12712 if test -n "$lt_prog_compiler_pic_CXX"; then
12714 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12715 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12716 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719 lt_prog_compiler_pic_works_CXX=no
12720 ac_outfile=conftest.$ac_objext
12721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12723 # Insert the option either (1) after the last *FLAGS variable, or
12724 # (2) before a word containing "conftest.", or (3) at the end.
12725 # Note that $ac_compile itself does not contain backslashes and begins
12726 # with a dollar sign (not a hyphen), so the echo should work correctly.
12727 # The option is referenced via a variable to avoid confusing sed.
12728 lt_compile=`echo "$ac_compile" | $SED \
12729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12731 -e 's:$: $lt_compiler_flag:'`
12732 (eval echo "\"\$as_me:12719: $lt_compile\"" >&5)
12733 (eval "$lt_compile" 2>conftest.err)
12734 ac_status=$?
12735 cat conftest.err >&5
12736 echo "$as_me:12723: \$? = $ac_status" >&5
12737 if (exit $ac_status) && test -s "$ac_outfile"; then
12738 # The compiler can only warn and ignore the option if not recognized
12739 # So say no if there are warnings other than the usual output.
12740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12743 lt_prog_compiler_pic_works_CXX=yes
12746 $rm conftest*
12749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12750 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12752 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12753 case $lt_prog_compiler_pic_CXX in
12754 "" | " "*) ;;
12755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12756 esac
12757 else
12758 lt_prog_compiler_pic_CXX=
12759 lt_prog_compiler_can_build_shared_CXX=no
12763 case $host_os in
12764 # For platforms which do not support PIC, -DPIC is meaningless:
12765 *djgpp*)
12766 lt_prog_compiler_pic_CXX=
12769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12771 esac
12774 # Check to make sure the static flag actually works.
12776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12779 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 lt_prog_compiler_static_works_CXX=no
12783 save_LDFLAGS="$LDFLAGS"
12784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12787 # The linker can only warn and ignore the option if not recognized
12788 # So say no if there are warnings
12789 if test -s conftest.err; then
12790 # Append any errors to the config.log.
12791 cat conftest.err 1>&5
12792 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12794 if diff conftest.exp conftest.er2 >/dev/null; then
12795 lt_prog_compiler_static_works_CXX=yes
12797 else
12798 lt_prog_compiler_static_works_CXX=yes
12801 $rm conftest*
12802 LDFLAGS="$save_LDFLAGS"
12805 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12806 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12808 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12810 else
12811 lt_prog_compiler_static_CXX=
12815 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12817 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820 lt_cv_prog_compiler_c_o_CXX=no
12821 $rm -r conftest 2>/dev/null
12822 mkdir conftest
12823 cd conftest
12824 mkdir out
12825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12827 lt_compiler_flag="-o out/conftest2.$ac_objext"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 lt_compile=`echo "$ac_compile" | $SED \
12833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12835 -e 's:$: $lt_compiler_flag:'`
12836 (eval echo "\"\$as_me:12823: $lt_compile\"" >&5)
12837 (eval "$lt_compile" 2>out/conftest.err)
12838 ac_status=$?
12839 cat out/conftest.err >&5
12840 echo "$as_me:12827: \$? = $ac_status" >&5
12841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12842 then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings
12845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12848 lt_cv_prog_compiler_c_o_CXX=yes
12851 chmod u+w . 2>&5
12852 $rm conftest*
12853 # SGI C++ compiler will create directory out/ii_files/ for
12854 # template instantiation
12855 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12856 $rm out/* && rmdir out
12857 cd ..
12858 rmdir conftest
12859 $rm conftest*
12862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12866 hard_links="nottested"
12867 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12868 # do not overwrite the value of need_locks provided by the user
12869 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12870 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12871 hard_links=yes
12872 $rm conftest*
12873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12874 touch conftest.a
12875 ln conftest.a conftest.b 2>&5 || hard_links=no
12876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12877 { echo "$as_me:$LINENO: result: $hard_links" >&5
12878 echo "${ECHO_T}$hard_links" >&6; }
12879 if test "$hard_links" = no; then
12880 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12881 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12882 need_locks=warn
12884 else
12885 need_locks=no
12888 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12889 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12891 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12892 case $host_os in
12893 aix4* | aix5*)
12894 # If we're using GNU nm, then we don't want the "-C" option.
12895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12897 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12898 else
12899 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'
12902 pw32*)
12903 export_symbols_cmds_CXX="$ltdll_cmds"
12905 cygwin* | mingw*)
12906 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'
12908 linux* | k*bsd*-gnu)
12909 link_all_deplibs_CXX=no
12912 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12914 esac
12916 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12917 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12918 test "$ld_shlibs_CXX" = no && can_build_shared=no
12921 # Do we need to explicitly link libc?
12923 case "x$archive_cmds_need_lc_CXX" in
12924 x|xyes)
12925 # Assume -lc should be added
12926 archive_cmds_need_lc_CXX=yes
12928 if test "$enable_shared" = yes && test "$GCC" = yes; then
12929 case $archive_cmds_CXX in
12930 *'~'*)
12931 # FIXME: we may have to deal with multi-command sequences.
12933 '$CC '*)
12934 # Test whether the compiler implicitly links with -lc since on some
12935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12936 # to ld, don't add -lc before -lgcc.
12937 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12938 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12939 $rm conftest*
12940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } 2>conftest.err; then
12947 soname=conftest
12948 lib=conftest
12949 libobjs=conftest.$ac_objext
12950 deplibs=
12951 wl=$lt_prog_compiler_wl_CXX
12952 pic_flag=$lt_prog_compiler_pic_CXX
12953 compiler_flags=-v
12954 linker_flags=-v
12955 verstring=
12956 output_objdir=.
12957 libname=conftest
12958 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12959 allow_undefined_flag_CXX=
12960 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12961 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }
12965 then
12966 archive_cmds_need_lc_CXX=no
12967 else
12968 archive_cmds_need_lc_CXX=yes
12970 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12971 else
12972 cat conftest.err 1>&5
12974 $rm conftest*
12975 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12976 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12978 esac
12981 esac
12983 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12984 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12985 library_names_spec=
12986 libname_spec='lib$name'
12987 soname_spec=
12988 shrext_cmds=".so"
12989 postinstall_cmds=
12990 postuninstall_cmds=
12991 finish_cmds=
12992 finish_eval=
12993 shlibpath_var=
12994 shlibpath_overrides_runpath=unknown
12995 version_type=none
12996 dynamic_linker="$host_os ld.so"
12997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12999 need_lib_prefix=unknown
13000 hardcode_into_libs=no
13002 # when you set need_version to no, make sure it does not cause -set_version
13003 # flags to be left without arguments
13004 need_version=unknown
13006 case $host_os in
13007 aix3*)
13008 version_type=linux
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13010 shlibpath_var=LIBPATH
13012 # AIX 3 has no versioning support, so we append a major version to the name.
13013 soname_spec='${libname}${release}${shared_ext}$major'
13016 aix4* | aix5*)
13017 version_type=linux
13018 need_lib_prefix=no
13019 need_version=no
13020 hardcode_into_libs=yes
13021 if test "$host_cpu" = ia64; then
13022 # AIX 5 supports IA64
13023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 else
13026 # With GCC up to 2.95.x, collect2 would create an import file
13027 # for dependence libraries. The import file would start with
13028 # the line `#! .'. This would cause the generated library to
13029 # depend on `.', always an invalid library. This was fixed in
13030 # development snapshots of GCC prior to 3.0.
13031 case $host_os in
13032 aix4 | aix4.[01] | aix4.[01].*)
13033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13034 echo ' yes '
13035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13037 else
13038 can_build_shared=no
13041 esac
13042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13043 # soname into executable. Probably we can add versioning support to
13044 # collect2, so additional links can be useful in future.
13045 if test "$aix_use_runtimelinking" = yes; then
13046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13047 # instead of lib<name>.a to let people know that these are not
13048 # typical AIX shared libraries.
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 else
13051 # We preserve .a as extension for shared libraries through AIX4.2
13052 # and later when we are not doing run time linking.
13053 library_names_spec='${libname}${release}.a $libname.a'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LIBPATH
13060 amigaos*)
13061 library_names_spec='$libname.ixlibrary $libname.a'
13062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13063 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'
13066 beos*)
13067 library_names_spec='${libname}${shared_ext}'
13068 dynamic_linker="$host_os ld.so"
13069 shlibpath_var=LIBRARY_PATH
13072 bsdi[45]*)
13073 version_type=linux
13074 need_version=no
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13078 shlibpath_var=LD_LIBRARY_PATH
13079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13081 # the default ld.so.conf also contains /usr/contrib/lib and
13082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13083 # libtool to hard-code these into programs
13086 cygwin* | mingw* | pw32*)
13087 version_type=windows
13088 shrext_cmds=".dll"
13089 need_version=no
13090 need_lib_prefix=no
13092 case $GCC,$host_os in
13093 yes,cygwin* | yes,mingw* | yes,pw32*)
13094 library_names_spec='$libname.dll.a'
13095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13096 postinstall_cmds='base_file=`basename \${file}`~
13097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13098 dldir=$destdir/`dirname \$dlpath`~
13099 test -d \$dldir || mkdir -p \$dldir~
13100 $install_prog $dir/$dlname \$dldir/$dlname~
13101 chmod a+x \$dldir/$dlname'
13102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13103 dlpath=$dir/\$dldll~
13104 $rm \$dlpath'
13105 shlibpath_overrides_runpath=yes
13107 case $host_os in
13108 cygwin*)
13109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13113 mingw*)
13114 # MinGW DLLs use traditional 'lib' prefix
13115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13118 # It is most probably a Windows format PATH printed by
13119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13120 # path with ; separators, and with drive letters. We can handle the
13121 # drive letters (cygwin fileutils understands them), so leave them,
13122 # especially as we might pass files found there to a mingw objdump,
13123 # which wouldn't understand a cygwinified path. Ahh.
13124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13125 else
13126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13129 pw32*)
13130 # pw32 DLLs use 'pw' prefix rather than 'lib'
13131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13133 esac
13137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13139 esac
13140 dynamic_linker='Win32 ld.exe'
13141 # FIXME: first we should search . and the directory the executable is in
13142 shlibpath_var=PATH
13145 darwin* | rhapsody*)
13146 dynamic_linker="$host_os dyld"
13147 version_type=darwin
13148 need_lib_prefix=no
13149 need_version=no
13150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13151 soname_spec='${libname}${release}${major}$shared_ext'
13152 shlibpath_overrides_runpath=yes
13153 shlibpath_var=DYLD_LIBRARY_PATH
13154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13159 dgux*)
13160 version_type=linux
13161 need_lib_prefix=no
13162 need_version=no
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13164 soname_spec='${libname}${release}${shared_ext}$major'
13165 shlibpath_var=LD_LIBRARY_PATH
13168 freebsd1*)
13169 dynamic_linker=no
13172 freebsd* | dragonfly*)
13173 # DragonFly does not have aout. When/if they implement a new
13174 # versioning mechanism, adjust this.
13175 if test -x /usr/bin/objformat; then
13176 objformat=`/usr/bin/objformat`
13177 else
13178 case $host_os in
13179 freebsd[123]*) objformat=aout ;;
13180 *) objformat=elf ;;
13181 esac
13183 version_type=freebsd-$objformat
13184 case $version_type in
13185 freebsd-elf*)
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13187 need_version=no
13188 need_lib_prefix=no
13190 freebsd-*)
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13192 need_version=yes
13194 esac
13195 shlibpath_var=LD_LIBRARY_PATH
13196 case $host_os in
13197 freebsd2*)
13198 shlibpath_overrides_runpath=yes
13200 freebsd3.[01]* | freebsdelf3.[01]*)
13201 shlibpath_overrides_runpath=yes
13202 hardcode_into_libs=yes
13204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13206 shlibpath_overrides_runpath=no
13207 hardcode_into_libs=yes
13209 *) # from 4.6 on, and DragonFly
13210 shlibpath_overrides_runpath=yes
13211 hardcode_into_libs=yes
13213 esac
13216 gnu*)
13217 version_type=linux
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 hardcode_into_libs=yes
13226 hpux9* | hpux10* | hpux11*)
13227 # Give a soname corresponding to the major version so that dld.sl refuses to
13228 # link against other versions.
13229 version_type=sunos
13230 need_lib_prefix=no
13231 need_version=no
13232 case $host_cpu in
13233 ia64*)
13234 shrext_cmds='.so'
13235 hardcode_into_libs=yes
13236 dynamic_linker="$host_os dld.so"
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 if test "X$HPUX_IA64_MODE" = X32; then
13242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13243 else
13244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13248 hppa*64*)
13249 shrext_cmds='.sl'
13250 hardcode_into_libs=yes
13251 dynamic_linker="$host_os dld.sl"
13252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13260 shrext_cmds='.sl'
13261 dynamic_linker="$host_os dld.sl"
13262 shlibpath_var=SHLIB_PATH
13263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13267 esac
13268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13269 postinstall_cmds='chmod 555 $lib'
13272 interix[3-9]*)
13273 version_type=linux
13274 need_lib_prefix=no
13275 need_version=no
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13279 shlibpath_var=LD_LIBRARY_PATH
13280 shlibpath_overrides_runpath=no
13281 hardcode_into_libs=yes
13284 irix5* | irix6* | nonstopux*)
13285 case $host_os in
13286 nonstopux*) version_type=nonstopux ;;
13288 if test "$lt_cv_prog_gnu_ld" = yes; then
13289 version_type=linux
13290 else
13291 version_type=irix
13292 fi ;;
13293 esac
13294 need_lib_prefix=no
13295 need_version=no
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13298 case $host_os in
13299 irix5* | nonstopux*)
13300 libsuff= shlibsuff=
13303 case $LD in # libtool.m4 will add one of these switches to LD
13304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13305 libsuff= shlibsuff= libmagic=32-bit;;
13306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13307 libsuff=32 shlibsuff=N32 libmagic=N32;;
13308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13310 *) libsuff= shlibsuff= libmagic=never-match;;
13311 esac
13313 esac
13314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13315 shlibpath_overrides_runpath=no
13316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13318 hardcode_into_libs=yes
13321 # No shared lib support for Linux oldld, aout, or coff.
13322 linux*oldld* | linux*aout* | linux*coff*)
13323 dynamic_linker=no
13326 # This must be Linux ELF.
13327 linux* | k*bsd*-gnu)
13328 version_type=linux
13329 need_lib_prefix=no
13330 need_version=no
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 shlibpath_overrides_runpath=no
13336 # This implies no fast_install, which is unacceptable.
13337 # Some rework will be needed to allow for fast_install
13338 # before this can be enabled.
13339 hardcode_into_libs=yes
13341 # Append ld.so.conf contents to the search path
13342 if test -f /etc/ld.so.conf; then
13343 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;/^$/d' | tr '\n' ' '`
13344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13347 # We used to test for /lib/ld.so.1 and disable shared libraries on
13348 # powerpc, because MkLinux only supported shared libraries with the
13349 # GNU dynamic linker. Since this was broken with cross compilers,
13350 # most powerpc-linux boxes support dynamic linking these days and
13351 # people can always --disable-shared, the test was removed, and we
13352 # assume the GNU/Linux dynamic linker is in use.
13353 dynamic_linker='GNU/Linux ld.so'
13356 netbsdelf*-gnu)
13357 version_type=linux
13358 need_lib_prefix=no
13359 need_version=no
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=no
13364 hardcode_into_libs=yes
13365 dynamic_linker='NetBSD ld.elf_so'
13368 netbsd*)
13369 version_type=sunos
13370 need_lib_prefix=no
13371 need_version=no
13372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 dynamic_linker='NetBSD (a.out) ld.so'
13376 else
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 dynamic_linker='NetBSD ld.elf_so'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath=yes
13383 hardcode_into_libs=yes
13386 newsos6)
13387 version_type=linux
13388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=yes
13393 nto-qnx*)
13394 version_type=linux
13395 need_lib_prefix=no
13396 need_version=no
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 soname_spec='${libname}${release}${shared_ext}$major'
13399 shlibpath_var=LD_LIBRARY_PATH
13400 shlibpath_overrides_runpath=yes
13403 openbsd*)
13404 version_type=sunos
13405 sys_lib_dlsearch_path_spec="/usr/lib"
13406 need_lib_prefix=no
13407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13408 case $host_os in
13409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13410 *) need_version=no ;;
13411 esac
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13416 case $host_os in
13417 openbsd2.[89] | openbsd2.[89].*)
13418 shlibpath_overrides_runpath=no
13421 shlibpath_overrides_runpath=yes
13423 esac
13424 else
13425 shlibpath_overrides_runpath=yes
13429 os2*)
13430 libname_spec='$name'
13431 shrext_cmds=".dll"
13432 need_lib_prefix=no
13433 library_names_spec='$libname${shared_ext} $libname.a'
13434 dynamic_linker='OS/2 ld.exe'
13435 shlibpath_var=LIBPATH
13438 osf3* | osf4* | osf5*)
13439 version_type=osf
13440 need_lib_prefix=no
13441 need_version=no
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13449 rdos*)
13450 dynamic_linker=no
13453 solaris*)
13454 version_type=linux
13455 need_lib_prefix=no
13456 need_version=no
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes
13461 hardcode_into_libs=yes
13462 # ldd complains unless libraries are executable
13463 postinstall_cmds='chmod +x $lib'
13466 sunos4*)
13467 version_type=sunos
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13470 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13472 if test "$with_gnu_ld" = yes; then
13473 need_lib_prefix=no
13475 need_version=yes
13478 sysv4 | sysv4.3*)
13479 version_type=linux
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 soname_spec='${libname}${release}${shared_ext}$major'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 case $host_vendor in
13484 sni)
13485 shlibpath_overrides_runpath=no
13486 need_lib_prefix=no
13487 export_dynamic_flag_spec='${wl}-Blargedynsym'
13488 runpath_var=LD_RUN_PATH
13490 siemens)
13491 need_lib_prefix=no
13493 motorola)
13494 need_lib_prefix=no
13495 need_version=no
13496 shlibpath_overrides_runpath=no
13497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13499 esac
13502 sysv4*MP*)
13503 if test -d /usr/nec ;then
13504 version_type=linux
13505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13506 soname_spec='$libname${shared_ext}.$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13512 version_type=freebsd-elf
13513 need_lib_prefix=no
13514 need_version=no
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13516 soname_spec='${libname}${release}${shared_ext}$major'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 hardcode_into_libs=yes
13519 if test "$with_gnu_ld" = yes; then
13520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13521 shlibpath_overrides_runpath=no
13522 else
13523 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13524 shlibpath_overrides_runpath=yes
13525 case $host_os in
13526 sco3.2v5*)
13527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13529 esac
13531 sys_lib_dlsearch_path_spec='/usr/lib'
13534 uts4*)
13535 version_type=linux
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
13538 shlibpath_var=LD_LIBRARY_PATH
13542 dynamic_linker=no
13544 esac
13545 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13546 echo "${ECHO_T}$dynamic_linker" >&6; }
13547 test "$dynamic_linker" = no && can_build_shared=no
13549 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13550 if test "$GCC" = yes; then
13551 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13554 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13555 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13556 hardcode_action_CXX=
13557 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13558 test -n "$runpath_var_CXX" || \
13559 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13561 # We can hardcode non-existant directories.
13562 if test "$hardcode_direct_CXX" != no &&
13563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13564 # have to relink, otherwise we might link with an installed library
13565 # when we should be linking with a yet-to-be-installed one
13566 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13567 test "$hardcode_minus_L_CXX" != no; then
13568 # Linking always hardcodes the temporary library directory.
13569 hardcode_action_CXX=relink
13570 else
13571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13572 hardcode_action_CXX=immediate
13574 else
13575 # We cannot hardcode anything, or else we can only hardcode existing
13576 # directories.
13577 hardcode_action_CXX=unsupported
13579 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13580 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13582 if test "$hardcode_action_CXX" = relink; then
13583 # Fast installation is not supported
13584 enable_fast_install=no
13585 elif test "$shlibpath_overrides_runpath" = yes ||
13586 test "$enable_shared" = no; then
13587 # Fast installation is not necessary
13588 enable_fast_install=needless
13592 # The else clause should only fire when bootstrapping the
13593 # libtool distribution, otherwise you forgot to ship ltmain.sh
13594 # with your package, and you will get complaints that there are
13595 # no rules to generate ltmain.sh.
13596 if test -f "$ltmain"; then
13597 # See if we are running on zsh, and set the options which allow our commands through
13598 # without removal of \ escapes.
13599 if test -n "${ZSH_VERSION+set}" ; then
13600 setopt NO_GLOB_SUBST
13602 # Now quote all the things that may contain metacharacters while being
13603 # careful not to overquote the AC_SUBSTed values. We take copies of the
13604 # variables and quote the copies for generation of the libtool script.
13605 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13606 SED SHELL STRIP \
13607 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13608 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13609 deplibs_check_method reload_flag reload_cmds need_locks \
13610 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13611 lt_cv_sys_global_symbol_to_c_name_address \
13612 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13613 old_postinstall_cmds old_postuninstall_cmds \
13614 compiler_CXX \
13615 CC_CXX \
13616 LD_CXX \
13617 lt_prog_compiler_wl_CXX \
13618 lt_prog_compiler_pic_CXX \
13619 lt_prog_compiler_static_CXX \
13620 lt_prog_compiler_no_builtin_flag_CXX \
13621 export_dynamic_flag_spec_CXX \
13622 thread_safe_flag_spec_CXX \
13623 whole_archive_flag_spec_CXX \
13624 enable_shared_with_static_runtimes_CXX \
13625 old_archive_cmds_CXX \
13626 old_archive_from_new_cmds_CXX \
13627 predep_objects_CXX \
13628 postdep_objects_CXX \
13629 predeps_CXX \
13630 postdeps_CXX \
13631 compiler_lib_search_path_CXX \
13632 archive_cmds_CXX \
13633 archive_expsym_cmds_CXX \
13634 postinstall_cmds_CXX \
13635 postuninstall_cmds_CXX \
13636 old_archive_from_expsyms_cmds_CXX \
13637 allow_undefined_flag_CXX \
13638 no_undefined_flag_CXX \
13639 export_symbols_cmds_CXX \
13640 hardcode_libdir_flag_spec_CXX \
13641 hardcode_libdir_flag_spec_ld_CXX \
13642 hardcode_libdir_separator_CXX \
13643 hardcode_automatic_CXX \
13644 module_cmds_CXX \
13645 module_expsym_cmds_CXX \
13646 lt_cv_prog_compiler_c_o_CXX \
13647 fix_srcfile_path_CXX \
13648 exclude_expsyms_CXX \
13649 include_expsyms_CXX; do
13651 case $var in
13652 old_archive_cmds_CXX | \
13653 old_archive_from_new_cmds_CXX | \
13654 archive_cmds_CXX | \
13655 archive_expsym_cmds_CXX | \
13656 module_cmds_CXX | \
13657 module_expsym_cmds_CXX | \
13658 old_archive_from_expsyms_cmds_CXX | \
13659 export_symbols_cmds_CXX | \
13660 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13661 postinstall_cmds | postuninstall_cmds | \
13662 old_postinstall_cmds | old_postuninstall_cmds | \
13663 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13664 # Double-quote double-evaled strings.
13665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13670 esac
13671 done
13673 case $lt_echo in
13674 *'\$0 --fallback-echo"')
13675 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13677 esac
13679 cfgfile="$ofile"
13681 cat <<__EOF__ >> "$cfgfile"
13682 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13686 # Shell to use when invoking shell scripts.
13687 SHELL=$lt_SHELL
13689 # Whether or not to build shared libraries.
13690 build_libtool_libs=$enable_shared
13692 # Whether or not to build static libraries.
13693 build_old_libs=$enable_static
13695 # Whether or not to add -lc for building shared libraries.
13696 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13698 # Whether or not to disallow shared libs when runtime libs are static
13699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13701 # Whether or not to optimize for fast installation.
13702 fast_install=$enable_fast_install
13704 # The host system.
13705 host_alias=$host_alias
13706 host=$host
13707 host_os=$host_os
13709 # The build system.
13710 build_alias=$build_alias
13711 build=$build
13712 build_os=$build_os
13714 # An echo program that does not interpret backslashes.
13715 echo=$lt_echo
13717 # The archiver.
13718 AR=$lt_AR
13719 AR_FLAGS=$lt_AR_FLAGS
13721 # A C compiler.
13722 LTCC=$lt_LTCC
13724 # LTCC compiler flags.
13725 LTCFLAGS=$lt_LTCFLAGS
13727 # A language-specific compiler.
13728 CC=$lt_compiler_CXX
13730 # Is the compiler the GNU C compiler?
13731 with_gcc=$GCC_CXX
13733 # An ERE matcher.
13734 EGREP=$lt_EGREP
13736 # The linker used to build libraries.
13737 LD=$lt_LD_CXX
13739 # Whether we need hard or soft links.
13740 LN_S=$lt_LN_S
13742 # A BSD-compatible nm program.
13743 NM=$lt_NM
13745 # A symbol stripping program
13746 STRIP=$lt_STRIP
13748 # Used to examine libraries when file_magic_cmd begins "file"
13749 MAGIC_CMD=$MAGIC_CMD
13751 # Used on cygwin: DLL creation program.
13752 DLLTOOL="$DLLTOOL"
13754 # Used on cygwin: object dumper.
13755 OBJDUMP="$OBJDUMP"
13757 # Used on cygwin: assembler.
13758 AS="$AS"
13760 # The name of the directory that contains temporary libtool files.
13761 objdir=$objdir
13763 # How to create reloadable object files.
13764 reload_flag=$lt_reload_flag
13765 reload_cmds=$lt_reload_cmds
13767 # How to pass a linker flag through the compiler.
13768 wl=$lt_lt_prog_compiler_wl_CXX
13770 # Object file suffix (normally "o").
13771 objext="$ac_objext"
13773 # Old archive suffix (normally "a").
13774 libext="$libext"
13776 # Shared library suffix (normally ".so").
13777 shrext_cmds='$shrext_cmds'
13779 # Executable file suffix (normally "").
13780 exeext="$exeext"
13782 # Additional compiler flags for building library objects.
13783 pic_flag=$lt_lt_prog_compiler_pic_CXX
13784 pic_mode=$pic_mode
13786 # What is the maximum length of a command?
13787 max_cmd_len=$lt_cv_sys_max_cmd_len
13789 # Does compiler simultaneously support -c and -o options?
13790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13792 # Must we lock files when doing compilation?
13793 need_locks=$lt_need_locks
13795 # Do we need the lib prefix for modules?
13796 need_lib_prefix=$need_lib_prefix
13798 # Do we need a version for libraries?
13799 need_version=$need_version
13801 # Whether dlopen is supported.
13802 dlopen_support=$enable_dlopen
13804 # Whether dlopen of programs is supported.
13805 dlopen_self=$enable_dlopen_self
13807 # Whether dlopen of statically linked programs is supported.
13808 dlopen_self_static=$enable_dlopen_self_static
13810 # Compiler flag to prevent dynamic linking.
13811 link_static_flag=$lt_lt_prog_compiler_static_CXX
13813 # Compiler flag to turn off builtin functions.
13814 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13816 # Compiler flag to allow reflexive dlopens.
13817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13819 # Compiler flag to generate shared objects directly from archives.
13820 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13822 # Compiler flag to generate thread-safe objects.
13823 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13825 # Library versioning type.
13826 version_type=$version_type
13828 # Format of library name prefix.
13829 libname_spec=$lt_libname_spec
13831 # List of archive names. First name is the real one, the rest are links.
13832 # The last name is the one that the linker finds with -lNAME.
13833 library_names_spec=$lt_library_names_spec
13835 # The coded name of the library, if different from the real name.
13836 soname_spec=$lt_soname_spec
13838 # Commands used to build and install an old-style archive.
13839 RANLIB=$lt_RANLIB
13840 old_archive_cmds=$lt_old_archive_cmds_CXX
13841 old_postinstall_cmds=$lt_old_postinstall_cmds
13842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13844 # Create an old-style archive from a shared archive.
13845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13847 # Create a temporary old-style archive to link instead of a shared archive.
13848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13850 # Commands used to build and install a shared archive.
13851 archive_cmds=$lt_archive_cmds_CXX
13852 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13853 postinstall_cmds=$lt_postinstall_cmds
13854 postuninstall_cmds=$lt_postuninstall_cmds
13856 # Commands used to build a loadable module (assumed same as above if empty)
13857 module_cmds=$lt_module_cmds_CXX
13858 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13860 # Commands to strip libraries.
13861 old_striplib=$lt_old_striplib
13862 striplib=$lt_striplib
13864 # Dependencies to place before the objects being linked to create a
13865 # shared library.
13866 predep_objects=$lt_predep_objects_CXX
13868 # Dependencies to place after the objects being linked to create a
13869 # shared library.
13870 postdep_objects=$lt_postdep_objects_CXX
13872 # Dependencies to place before the objects being linked to create a
13873 # shared library.
13874 predeps=$lt_predeps_CXX
13876 # Dependencies to place after the objects being linked to create a
13877 # shared library.
13878 postdeps=$lt_postdeps_CXX
13880 # The library search path used internally by the compiler when linking
13881 # a shared library.
13882 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13884 # Method to check whether dependent libraries are shared objects.
13885 deplibs_check_method=$lt_deplibs_check_method
13887 # Command to use when deplibs_check_method == file_magic.
13888 file_magic_cmd=$lt_file_magic_cmd
13890 # Flag that allows shared libraries with undefined symbols to be built.
13891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13893 # Flag that forces no undefined symbols.
13894 no_undefined_flag=$lt_no_undefined_flag_CXX
13896 # Commands used to finish a libtool library installation in a directory.
13897 finish_cmds=$lt_finish_cmds
13899 # Same as above, but a single script fragment to be evaled but not shown.
13900 finish_eval=$lt_finish_eval
13902 # Take the output of nm and produce a listing of raw symbols and C names.
13903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13905 # Transform the output of nm in a proper C declaration
13906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13908 # Transform the output of nm in a C name address pair
13909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13911 # This is the shared library runtime path variable.
13912 runpath_var=$runpath_var
13914 # This is the shared library path variable.
13915 shlibpath_var=$shlibpath_var
13917 # Is shlibpath searched before the hard-coded library search path?
13918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13920 # How to hardcode a shared library path into an executable.
13921 hardcode_action=$hardcode_action_CXX
13923 # Whether we should hardcode library paths into libraries.
13924 hardcode_into_libs=$hardcode_into_libs
13926 # Flag to hardcode \$libdir into a binary during linking.
13927 # This must work even if \$libdir does not exist.
13928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13930 # If ld is used when linking, flag to hardcode \$libdir into
13931 # a binary during linking. This must work even if \$libdir does
13932 # not exist.
13933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13935 # Whether we need a single -rpath flag with a separated argument.
13936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13939 # resulting binary.
13940 hardcode_direct=$hardcode_direct_CXX
13942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13943 # resulting binary.
13944 hardcode_minus_L=$hardcode_minus_L_CXX
13946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13947 # the resulting binary.
13948 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13950 # Set to yes if building a shared library automatically hardcodes DIR into the library
13951 # and all subsequent libraries and executables linked against it.
13952 hardcode_automatic=$hardcode_automatic_CXX
13954 # Variables whose values should be saved in libtool wrapper scripts and
13955 # restored at relink time.
13956 variables_saved_for_relink="$variables_saved_for_relink"
13958 # Whether libtool must link a program against all its dependency libraries.
13959 link_all_deplibs=$link_all_deplibs_CXX
13961 # Compile-time system search path for libraries
13962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13964 # Run-time system search path for libraries
13965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13967 # Fix the shell variable \$srcfile for the compiler.
13968 fix_srcfile_path=$lt_fix_srcfile_path
13970 # Set to yes if exported symbols are required.
13971 always_export_symbols=$always_export_symbols_CXX
13973 # The commands to list exported symbols.
13974 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13976 # The commands to extract the exported symbol list from a shared archive.
13977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13979 # Symbols that should not be listed in the preloaded symbols.
13980 exclude_expsyms=$lt_exclude_expsyms_CXX
13982 # Symbols that must always be exported.
13983 include_expsyms=$lt_include_expsyms_CXX
13985 # ### END LIBTOOL TAG CONFIG: $tagname
13987 __EOF__
13990 else
13991 # If there is no Makefile yet, we rely on a make rule to execute
13992 # `config.status --recheck' to rerun these tests and create the
13993 # libtool script then.
13994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13995 if test -f "$ltmain_in"; then
13996 test -f Makefile && make "$ltmain"
14001 ac_ext=c
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007 CC=$lt_save_CC
14008 LDCXX=$LD
14009 LD=$lt_save_LD
14010 GCC=$lt_save_GCC
14011 with_gnu_ldcxx=$with_gnu_ld
14012 with_gnu_ld=$lt_save_with_gnu_ld
14013 lt_cv_path_LDCXX=$lt_cv_path_LD
14014 lt_cv_path_LD=$lt_save_path_LD
14015 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14016 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14018 else
14019 tagname=""
14023 F77)
14024 if test -n "$F77" && test "X$F77" != "Xno"; then
14026 ac_ext=f
14027 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14028 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14032 archive_cmds_need_lc_F77=no
14033 allow_undefined_flag_F77=
14034 always_export_symbols_F77=no
14035 archive_expsym_cmds_F77=
14036 export_dynamic_flag_spec_F77=
14037 hardcode_direct_F77=no
14038 hardcode_libdir_flag_spec_F77=
14039 hardcode_libdir_flag_spec_ld_F77=
14040 hardcode_libdir_separator_F77=
14041 hardcode_minus_L_F77=no
14042 hardcode_automatic_F77=no
14043 module_cmds_F77=
14044 module_expsym_cmds_F77=
14045 link_all_deplibs_F77=unknown
14046 old_archive_cmds_F77=$old_archive_cmds
14047 no_undefined_flag_F77=
14048 whole_archive_flag_spec_F77=
14049 enable_shared_with_static_runtimes_F77=no
14051 # Source file extension for f77 test sources.
14052 ac_ext=f
14054 # Object file extension for compiled f77 test sources.
14055 objext=o
14056 objext_F77=$objext
14058 # Code to be used in simple compile tests
14059 lt_simple_compile_test_code="\
14060 subroutine t
14061 return
14065 # Code to be used in simple link tests
14066 lt_simple_link_test_code="\
14067 program t
14071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14073 # If no C compiler was specified, use CC.
14074 LTCC=${LTCC-"$CC"}
14076 # If no C compiler flags were specified, use CFLAGS.
14077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14079 # Allow CC to be a program name with arguments.
14080 compiler=$CC
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14088 $rm conftest*
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14094 $rm conftest*
14097 # Allow CC to be a program name with arguments.
14098 lt_save_CC="$CC"
14099 CC=${F77-"f77"}
14100 compiler=$CC
14101 compiler_F77=$CC
14102 for cc_temp in $compiler""; do
14103 case $cc_temp in
14104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106 \-*) ;;
14107 *) break;;
14108 esac
14109 done
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14113 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14115 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14116 echo "${ECHO_T}$can_build_shared" >&6; }
14118 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14120 test "$can_build_shared" = "no" && enable_shared=no
14122 # On AIX, shared libraries and static libraries use the same namespace, and
14123 # are all built from PIC.
14124 case $host_os in
14125 aix3*)
14126 test "$enable_shared" = yes && enable_static=no
14127 if test -n "$RANLIB"; then
14128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14129 postinstall_cmds='$RANLIB $lib'
14132 aix4* | aix5*)
14133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14134 test "$enable_shared" = yes && enable_static=no
14137 esac
14138 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14139 echo "${ECHO_T}$enable_shared" >&6; }
14141 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14143 # Make sure either enable_shared or enable_static is yes.
14144 test "$enable_shared" = yes || enable_static=yes
14145 { echo "$as_me:$LINENO: result: $enable_static" >&5
14146 echo "${ECHO_T}$enable_static" >&6; }
14148 GCC_F77="$G77"
14149 LD_F77="$LD"
14151 lt_prog_compiler_wl_F77=
14152 lt_prog_compiler_pic_F77=
14153 lt_prog_compiler_static_F77=
14155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14158 if test "$GCC" = yes; then
14159 lt_prog_compiler_wl_F77='-Wl,'
14160 lt_prog_compiler_static_F77='-static'
14162 case $host_os in
14163 aix*)
14164 # All AIX code is PIC.
14165 if test "$host_cpu" = ia64; then
14166 # AIX 5 now supports IA64 processor
14167 lt_prog_compiler_static_F77='-Bstatic'
14171 amigaos*)
14172 # FIXME: we need at least 68020 code to build shared libraries, but
14173 # adding the `-m68020' flag to GCC prevents building anything better,
14174 # like `-m68040'.
14175 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179 # PIC is the default for these OSes.
14182 mingw* | cygwin* | pw32* | os2*)
14183 # This hack is so that the source file can tell whether it is being
14184 # built for inclusion in a dll (and should export symbols for example).
14185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14186 # (--disable-auto-import) libraries
14187 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14190 darwin* | rhapsody*)
14191 # PIC is the default on this platform
14192 # Common symbols not allowed in MH_DYLIB files
14193 lt_prog_compiler_pic_F77='-fno-common'
14196 interix[3-9]*)
14197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198 # Instead, we relocate shared libraries at runtime.
14201 msdosdjgpp*)
14202 # Just because we use GCC doesn't mean we suddenly get shared libraries
14203 # on systems that don't support them.
14204 lt_prog_compiler_can_build_shared_F77=no
14205 enable_shared=no
14208 sysv4*MP*)
14209 if test -d /usr/nec; then
14210 lt_prog_compiler_pic_F77=-Kconform_pic
14214 hpux*)
14215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14216 # not for PA HP-UX.
14217 case $host_cpu in
14218 hppa*64*|ia64*)
14219 # +Z the default
14222 lt_prog_compiler_pic_F77='-fPIC'
14224 esac
14228 lt_prog_compiler_pic_F77='-fPIC'
14230 esac
14231 else
14232 # PORTME Check for flag to pass linker flags through the system compiler.
14233 case $host_os in
14234 aix*)
14235 lt_prog_compiler_wl_F77='-Wl,'
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_F77='-Bstatic'
14239 else
14240 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14243 darwin*)
14244 # PIC is the default on this platform
14245 # Common symbols not allowed in MH_DYLIB files
14246 case $cc_basename in
14247 xlc*)
14248 lt_prog_compiler_pic_F77='-qnocommon'
14249 lt_prog_compiler_wl_F77='-Wl,'
14251 esac
14254 mingw* | cygwin* | pw32* | os2*)
14255 # This hack is so that the source file can tell whether it is being
14256 # built for inclusion in a dll (and should export symbols for example).
14257 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14260 hpux9* | hpux10* | hpux11*)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14263 # not for PA HP-UX.
14264 case $host_cpu in
14265 hppa*64*|ia64*)
14266 # +Z the default
14269 lt_prog_compiler_pic_F77='+Z'
14271 esac
14272 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14273 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14276 irix5* | irix6* | nonstopux*)
14277 lt_prog_compiler_wl_F77='-Wl,'
14278 # PIC (with -KPIC) is the default.
14279 lt_prog_compiler_static_F77='-non_shared'
14282 newsos6)
14283 lt_prog_compiler_pic_F77='-KPIC'
14284 lt_prog_compiler_static_F77='-Bstatic'
14287 linux* | k*bsd*-gnu)
14288 case $cc_basename in
14289 icc* | ecc*)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 lt_prog_compiler_pic_F77='-KPIC'
14292 lt_prog_compiler_static_F77='-static'
14294 pgcc* | pgf77* | pgf90* | pgf95*)
14295 # Portland Group compilers (*not* the Pentium gcc compiler,
14296 # which looks to be a dead project)
14297 lt_prog_compiler_wl_F77='-Wl,'
14298 lt_prog_compiler_pic_F77='-fpic'
14299 lt_prog_compiler_static_F77='-Bstatic'
14301 ccc*)
14302 lt_prog_compiler_wl_F77='-Wl,'
14303 # All Alpha code is PIC.
14304 lt_prog_compiler_static_F77='-non_shared'
14307 case `$CC -V 2>&1 | sed 5q` in
14308 *Sun\ C*)
14309 # Sun C 5.9
14310 lt_prog_compiler_pic_F77='-KPIC'
14311 lt_prog_compiler_static_F77='-Bstatic'
14312 lt_prog_compiler_wl_F77='-Wl,'
14314 *Sun\ F*)
14315 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14316 lt_prog_compiler_pic_F77='-KPIC'
14317 lt_prog_compiler_static_F77='-Bstatic'
14318 lt_prog_compiler_wl_F77=''
14320 esac
14322 esac
14325 osf3* | osf4* | osf5*)
14326 lt_prog_compiler_wl_F77='-Wl,'
14327 # All OSF/1 code is PIC.
14328 lt_prog_compiler_static_F77='-non_shared'
14331 rdos*)
14332 lt_prog_compiler_static_F77='-non_shared'
14335 solaris*)
14336 lt_prog_compiler_pic_F77='-KPIC'
14337 lt_prog_compiler_static_F77='-Bstatic'
14338 case $cc_basename in
14339 f77* | f90* | f95*)
14340 lt_prog_compiler_wl_F77='-Qoption ld ';;
14342 lt_prog_compiler_wl_F77='-Wl,';;
14343 esac
14346 sunos4*)
14347 lt_prog_compiler_wl_F77='-Qoption ld '
14348 lt_prog_compiler_pic_F77='-PIC'
14349 lt_prog_compiler_static_F77='-Bstatic'
14352 sysv4 | sysv4.2uw2* | sysv4.3*)
14353 lt_prog_compiler_wl_F77='-Wl,'
14354 lt_prog_compiler_pic_F77='-KPIC'
14355 lt_prog_compiler_static_F77='-Bstatic'
14358 sysv4*MP*)
14359 if test -d /usr/nec ;then
14360 lt_prog_compiler_pic_F77='-Kconform_pic'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14366 lt_prog_compiler_wl_F77='-Wl,'
14367 lt_prog_compiler_pic_F77='-KPIC'
14368 lt_prog_compiler_static_F77='-Bstatic'
14371 unicos*)
14372 lt_prog_compiler_wl_F77='-Wl,'
14373 lt_prog_compiler_can_build_shared_F77=no
14376 uts4*)
14377 lt_prog_compiler_pic_F77='-pic'
14378 lt_prog_compiler_static_F77='-Bstatic'
14382 lt_prog_compiler_can_build_shared_F77=no
14384 esac
14387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14388 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14391 # Check to make sure the PIC flag actually works.
14393 if test -n "$lt_prog_compiler_pic_F77"; then
14395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14397 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400 lt_prog_compiler_pic_works_F77=no
14401 ac_outfile=conftest.$ac_objext
14402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14404 # Insert the option either (1) after the last *FLAGS variable, or
14405 # (2) before a word containing "conftest.", or (3) at the end.
14406 # Note that $ac_compile itself does not contain backslashes and begins
14407 # with a dollar sign (not a hyphen), so the echo should work correctly.
14408 # The option is referenced via a variable to avoid confusing sed.
14409 lt_compile=`echo "$ac_compile" | $SED \
14410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412 -e 's:$: $lt_compiler_flag:'`
14413 (eval echo "\"\$as_me:14400: $lt_compile\"" >&5)
14414 (eval "$lt_compile" 2>conftest.err)
14415 ac_status=$?
14416 cat conftest.err >&5
14417 echo "$as_me:14404: \$? = $ac_status" >&5
14418 if (exit $ac_status) && test -s "$ac_outfile"; then
14419 # The compiler can only warn and ignore the option if not recognized
14420 # So say no if there are warnings other than the usual output.
14421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14424 lt_prog_compiler_pic_works_F77=yes
14427 $rm conftest*
14430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14431 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14433 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14434 case $lt_prog_compiler_pic_F77 in
14435 "" | " "*) ;;
14436 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14437 esac
14438 else
14439 lt_prog_compiler_pic_F77=
14440 lt_prog_compiler_can_build_shared_F77=no
14444 case $host_os in
14445 # For platforms which do not support PIC, -DPIC is meaningless:
14446 *djgpp*)
14447 lt_prog_compiler_pic_F77=
14450 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14452 esac
14455 # Check to make sure the static flag actually works.
14457 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14460 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463 lt_prog_compiler_static_works_F77=no
14464 save_LDFLAGS="$LDFLAGS"
14465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14468 # The linker can only warn and ignore the option if not recognized
14469 # So say no if there are warnings
14470 if test -s conftest.err; then
14471 # Append any errors to the config.log.
14472 cat conftest.err 1>&5
14473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14475 if diff conftest.exp conftest.er2 >/dev/null; then
14476 lt_prog_compiler_static_works_F77=yes
14478 else
14479 lt_prog_compiler_static_works_F77=yes
14482 $rm conftest*
14483 LDFLAGS="$save_LDFLAGS"
14486 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14487 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14489 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14491 else
14492 lt_prog_compiler_static_F77=
14496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14498 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501 lt_cv_prog_compiler_c_o_F77=no
14502 $rm -r conftest 2>/dev/null
14503 mkdir conftest
14504 cd conftest
14505 mkdir out
14506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14508 lt_compiler_flag="-o out/conftest2.$ac_objext"
14509 # Insert the option either (1) after the last *FLAGS variable, or
14510 # (2) before a word containing "conftest.", or (3) at the end.
14511 # Note that $ac_compile itself does not contain backslashes and begins
14512 # with a dollar sign (not a hyphen), so the echo should work correctly.
14513 lt_compile=`echo "$ac_compile" | $SED \
14514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14516 -e 's:$: $lt_compiler_flag:'`
14517 (eval echo "\"\$as_me:14504: $lt_compile\"" >&5)
14518 (eval "$lt_compile" 2>out/conftest.err)
14519 ac_status=$?
14520 cat out/conftest.err >&5
14521 echo "$as_me:14508: \$? = $ac_status" >&5
14522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14523 then
14524 # The compiler can only warn and ignore the option if not recognized
14525 # So say no if there are warnings
14526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14529 lt_cv_prog_compiler_c_o_F77=yes
14532 chmod u+w . 2>&5
14533 $rm conftest*
14534 # SGI C++ compiler will create directory out/ii_files/ for
14535 # template instantiation
14536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14537 $rm out/* && rmdir out
14538 cd ..
14539 rmdir conftest
14540 $rm conftest*
14543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14547 hard_links="nottested"
14548 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14549 # do not overwrite the value of need_locks provided by the user
14550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14552 hard_links=yes
14553 $rm conftest*
14554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14555 touch conftest.a
14556 ln conftest.a conftest.b 2>&5 || hard_links=no
14557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14558 { echo "$as_me:$LINENO: result: $hard_links" >&5
14559 echo "${ECHO_T}$hard_links" >&6; }
14560 if test "$hard_links" = no; then
14561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14563 need_locks=warn
14565 else
14566 need_locks=no
14569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14572 runpath_var=
14573 allow_undefined_flag_F77=
14574 enable_shared_with_static_runtimes_F77=no
14575 archive_cmds_F77=
14576 archive_expsym_cmds_F77=
14577 old_archive_From_new_cmds_F77=
14578 old_archive_from_expsyms_cmds_F77=
14579 export_dynamic_flag_spec_F77=
14580 whole_archive_flag_spec_F77=
14581 thread_safe_flag_spec_F77=
14582 hardcode_libdir_flag_spec_F77=
14583 hardcode_libdir_flag_spec_ld_F77=
14584 hardcode_libdir_separator_F77=
14585 hardcode_direct_F77=no
14586 hardcode_minus_L_F77=no
14587 hardcode_shlibpath_var_F77=unsupported
14588 link_all_deplibs_F77=unknown
14589 hardcode_automatic_F77=no
14590 module_cmds_F77=
14591 module_expsym_cmds_F77=
14592 always_export_symbols_F77=no
14593 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14594 # include_expsyms should be a list of space-separated symbols to be *always*
14595 # included in the symbol list
14596 include_expsyms_F77=
14597 # exclude_expsyms can be an extended regexp of symbols to exclude
14598 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14599 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14600 # as well as any symbol that contains `d'.
14601 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14603 # platforms (ab)use it in PIC code, but their linkers get confused if
14604 # the symbol is explicitly referenced. Since portable code cannot
14605 # rely on this symbol name, it's probably fine to never include it in
14606 # preloaded symbol tables.
14607 extract_expsyms_cmds=
14608 # Just being paranoid about ensuring that cc_basename is set.
14609 for cc_temp in $compiler""; do
14610 case $cc_temp in
14611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14613 \-*) ;;
14614 *) break;;
14615 esac
14616 done
14617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14619 case $host_os in
14620 cygwin* | mingw* | pw32*)
14621 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14622 # When not using gcc, we currently assume that we are using
14623 # Microsoft Visual C++.
14624 if test "$GCC" != yes; then
14625 with_gnu_ld=no
14628 interix*)
14629 # we just hope/assume this is gcc and not c89 (= MSVC++)
14630 with_gnu_ld=yes
14632 openbsd*)
14633 with_gnu_ld=no
14635 esac
14637 ld_shlibs_F77=yes
14638 if test "$with_gnu_ld" = yes; then
14639 # If archive_cmds runs LD, not CC, wlarc should be empty
14640 wlarc='${wl}'
14642 # Set some defaults for GNU ld with shared library support. These
14643 # are reset later if shared libraries are not supported. Putting them
14644 # here allows them to be overridden if necessary.
14645 runpath_var=LD_RUN_PATH
14646 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14647 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14648 # ancient GNU ld didn't support --whole-archive et. al.
14649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14650 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14651 else
14652 whole_archive_flag_spec_F77=
14654 supports_anon_versioning=no
14655 case `$LD -v 2>/dev/null` in
14656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14659 *\ 2.11.*) ;; # other 2.11 versions
14660 *) supports_anon_versioning=yes ;;
14661 esac
14663 # See if GNU ld supports shared libraries.
14664 case $host_os in
14665 aix3* | aix4* | aix5*)
14666 # On AIX/PPC, the GNU linker is very broken
14667 if test "$host_cpu" != ia64; then
14668 ld_shlibs_F77=no
14669 cat <<EOF 1>&2
14671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14672 *** to be unable to reliably create shared libraries on AIX.
14673 *** Therefore, libtool is disabling shared libraries support. If you
14674 *** really care for shared libraries, you may want to modify your PATH
14675 *** so that a non-GNU linker is found, and then restart.
14681 amigaos*)
14682 archive_cmds_F77='$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)'
14683 hardcode_libdir_flag_spec_F77='-L$libdir'
14684 hardcode_minus_L_F77=yes
14686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14687 # that the semantics of dynamic libraries on AmigaOS, at least up
14688 # to version 4, is to share data among multiple programs linked
14689 # with the same dynamic library. Since this doesn't match the
14690 # behavior of shared libraries on other platforms, we can't use
14691 # them.
14692 ld_shlibs_F77=no
14695 beos*)
14696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14697 allow_undefined_flag_F77=unsupported
14698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14699 # support --undefined. This deserves some investigation. FIXME
14700 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14701 else
14702 ld_shlibs_F77=no
14706 cygwin* | mingw* | pw32*)
14707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14708 # as there is no search path for DLLs.
14709 hardcode_libdir_flag_spec_F77='-L$libdir'
14710 allow_undefined_flag_F77=unsupported
14711 always_export_symbols_F77=no
14712 enable_shared_with_static_runtimes_F77=yes
14713 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14716 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14717 # If the export-symbols file already is a .def file (1st line
14718 # is EXPORTS), use it as is; otherwise, prepend...
14719 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14720 cp $export_symbols $output_objdir/$soname.def;
14721 else
14722 echo EXPORTS > $output_objdir/$soname.def;
14723 cat $export_symbols >> $output_objdir/$soname.def;
14725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14726 else
14727 ld_shlibs_F77=no
14731 interix[3-9]*)
14732 hardcode_direct_F77=no
14733 hardcode_shlibpath_var_F77=no
14734 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14735 export_dynamic_flag_spec_F77='${wl}-E'
14736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14737 # Instead, shared libraries are loaded at an image base (0x10000000 by
14738 # default) and relocated if they conflict, which is a slow very memory
14739 # consuming and fragmenting process. To avoid this, we pick a random,
14740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14742 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14743 archive_expsym_cmds_F77='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'
14746 gnu* | linux* | k*bsd*-gnu)
14747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14748 tmp_addflag=
14749 case $cc_basename,$host_cpu in
14750 pgcc*) # Portland Group C compiler
14751 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14752 tmp_addflag=' $pic_flag'
14754 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14755 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14756 tmp_addflag=' $pic_flag -Mnomain' ;;
14757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14758 tmp_addflag=' -i_dynamic' ;;
14759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14760 tmp_addflag=' -i_dynamic -nofor_main' ;;
14761 ifc* | ifort*) # Intel Fortran compiler
14762 tmp_addflag=' -nofor_main' ;;
14763 esac
14764 case `$CC -V 2>&1 | sed 5q` in
14765 *Sun\ C*) # Sun C 5.9
14766 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14767 tmp_sharedflag='-G' ;;
14768 *Sun\ F*) # Sun Fortran 8.3
14769 tmp_sharedflag='-G' ;;
14771 tmp_sharedflag='-shared' ;;
14772 esac
14773 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 if test $supports_anon_versioning = yes; then
14776 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14777 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14778 $echo "local: *; };" >> $output_objdir/$libname.ver~
14779 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14781 link_all_deplibs_F77=no
14782 else
14783 ld_shlibs_F77=no
14787 netbsd* | netbsdelf*-gnu)
14788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14789 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14790 wlarc=
14791 else
14792 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14793 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14797 solaris*)
14798 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14799 ld_shlibs_F77=no
14800 cat <<EOF 1>&2
14802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14803 *** create shared libraries on Solaris systems. Therefore, libtool
14804 *** is disabling shared libraries support. We urge you to upgrade GNU
14805 *** binutils to release 2.9.1 or newer. Another option is to modify
14806 *** your PATH or compiler configuration so that the native linker is
14807 *** used, and then restart.
14810 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813 else
14814 ld_shlibs_F77=no
14818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14819 case `$LD -v 2>&1` in
14820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14821 ld_shlibs_F77=no
14822 cat <<_LT_EOF 1>&2
14824 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14825 *** reliably create shared libraries on SCO systems. Therefore, libtool
14826 *** is disabling shared libraries support. We urge you to upgrade GNU
14827 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14828 *** your PATH or compiler configuration so that the native linker is
14829 *** used, and then restart.
14831 _LT_EOF
14834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14836 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14837 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14838 else
14839 ld_shlibs_F77=no
14842 esac
14845 sunos4*)
14846 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14847 wlarc=
14848 hardcode_direct_F77=yes
14849 hardcode_shlibpath_var_F77=no
14853 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14854 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14855 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14856 else
14857 ld_shlibs_F77=no
14860 esac
14862 if test "$ld_shlibs_F77" = no; then
14863 runpath_var=
14864 hardcode_libdir_flag_spec_F77=
14865 export_dynamic_flag_spec_F77=
14866 whole_archive_flag_spec_F77=
14868 else
14869 # PORTME fill in a description of your system's linker (not GNU ld)
14870 case $host_os in
14871 aix3*)
14872 allow_undefined_flag_F77=unsupported
14873 always_export_symbols_F77=yes
14874 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14875 # Note: this linker hardcodes the directories in LIBPATH if there
14876 # are no directories specified by -L.
14877 hardcode_minus_L_F77=yes
14878 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14879 # Neither direct hardcoding nor static linking is supported with a
14880 # broken collect2.
14881 hardcode_direct_F77=unsupported
14885 aix4* | aix5*)
14886 if test "$host_cpu" = ia64; then
14887 # On IA64, the linker does run time linking by default, so we don't
14888 # have to do anything special.
14889 aix_use_runtimelinking=no
14890 exp_sym_flag='-Bexport'
14891 no_entry_flag=""
14892 else
14893 # If we're using GNU nm, then we don't want the "-C" option.
14894 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14895 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14896 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14897 else
14898 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14900 aix_use_runtimelinking=no
14902 # Test if we are trying to use run time linking or normal
14903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14904 # need to do runtime linking.
14905 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14906 for ld_flag in $LDFLAGS; do
14907 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14908 aix_use_runtimelinking=yes
14909 break
14911 done
14913 esac
14915 exp_sym_flag='-bexport'
14916 no_entry_flag='-bnoentry'
14919 # When large executables or shared objects are built, AIX ld can
14920 # have problems creating the table of contents. If linking a library
14921 # or program results in "error TOC overflow" add -mminimal-toc to
14922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14925 archive_cmds_F77=''
14926 hardcode_direct_F77=yes
14927 hardcode_libdir_separator_F77=':'
14928 link_all_deplibs_F77=yes
14930 if test "$GCC" = yes; then
14931 case $host_os in aix4.[012]|aix4.[012].*)
14932 # We only want to do this on AIX 4.2 and lower, the check
14933 # below for broken collect2 doesn't work under 4.3+
14934 collect2name=`${CC} -print-prog-name=collect2`
14935 if test -f "$collect2name" && \
14936 strings "$collect2name" | grep resolve_lib_name >/dev/null
14937 then
14938 # We have reworked collect2
14940 else
14941 # We have old collect2
14942 hardcode_direct_F77=unsupported
14943 # It fails to find uninstalled libraries when the uninstalled
14944 # path is not listed in the libpath. Setting hardcode_minus_L
14945 # to unsupported forces relinking
14946 hardcode_minus_L_F77=yes
14947 hardcode_libdir_flag_spec_F77='-L$libdir'
14948 hardcode_libdir_separator_F77=
14951 esac
14952 shared_flag='-shared'
14953 if test "$aix_use_runtimelinking" = yes; then
14954 shared_flag="$shared_flag "'${wl}-G'
14956 else
14957 # not using gcc
14958 if test "$host_cpu" = ia64; then
14959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14960 # chokes on -Wl,-G. The following line is correct:
14961 shared_flag='-G'
14962 else
14963 if test "$aix_use_runtimelinking" = yes; then
14964 shared_flag='${wl}-G'
14965 else
14966 shared_flag='${wl}-bM:SRE'
14971 # It seems that -bexpall does not export symbols beginning with
14972 # underscore (_), so it is better to generate a list of symbols to export.
14973 always_export_symbols_F77=yes
14974 if test "$aix_use_runtimelinking" = yes; then
14975 # Warning - without using the other runtime loading flags (-brtl),
14976 # -berok will link without error, but may produce a broken library.
14977 allow_undefined_flag_F77='-berok'
14978 # Determine the default libpath from the value encoded in an empty executable.
14979 cat >conftest.$ac_ext <<_ACEOF
14980 program main
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (ac_try="$ac_link"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_link") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_f77_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest$ac_exeext &&
15001 $as_test_x conftest$ac_exeext; then
15003 lt_aix_libpath_sed='
15004 /Import File Strings/,/^$/ {
15005 /^0/ {
15006 s/^0 *\(.*\)$/\1/
15010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15011 # Check for a 64-bit object if we didn't find anything.
15012 if test -z "$aix_libpath"; then
15013 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15023 conftest$ac_exeext conftest.$ac_ext
15024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15026 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15027 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15028 else
15029 if test "$host_cpu" = ia64; then
15030 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15031 allow_undefined_flag_F77="-z nodefs"
15032 archive_expsym_cmds_F77="\$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"
15033 else
15034 # Determine the default libpath from the value encoded in an empty executable.
15035 cat >conftest.$ac_ext <<_ACEOF
15036 program main
15039 _ACEOF
15040 rm -f conftest.$ac_objext conftest$ac_exeext
15041 if { (ac_try="$ac_link"
15042 case "(($ac_try" in
15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044 *) ac_try_echo=$ac_try;;
15045 esac
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_link") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_f77_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest$ac_exeext &&
15057 $as_test_x conftest$ac_exeext; then
15059 lt_aix_libpath_sed='
15060 /Import File Strings/,/^$/ {
15061 /^0/ {
15062 s/^0 *\(.*\)$/\1/
15066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15067 # Check for a 64-bit object if we didn't find anything.
15068 if test -z "$aix_libpath"; then
15069 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079 conftest$ac_exeext conftest.$ac_ext
15080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15083 # Warning - without using the other run time loading flags,
15084 # -berok will link without error, but may produce a broken library.
15085 no_undefined_flag_F77=' ${wl}-bernotok'
15086 allow_undefined_flag_F77=' ${wl}-berok'
15087 # Exported symbols can be pulled into shared objects from archives
15088 whole_archive_flag_spec_F77='$convenience'
15089 archive_cmds_need_lc_F77=yes
15090 # This is similar to how AIX traditionally builds its shared libraries.
15091 archive_expsym_cmds_F77="\$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'
15096 amigaos*)
15097 archive_cmds_F77='$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)'
15098 hardcode_libdir_flag_spec_F77='-L$libdir'
15099 hardcode_minus_L_F77=yes
15100 # see comment about different semantics on the GNU ld section
15101 ld_shlibs_F77=no
15104 bsdi[45]*)
15105 export_dynamic_flag_spec_F77=-rdynamic
15108 cygwin* | mingw* | pw32*)
15109 # When not using gcc, we currently assume that we are using
15110 # Microsoft Visual C++.
15111 # hardcode_libdir_flag_spec is actually meaningless, as there is
15112 # no search path for DLLs.
15113 hardcode_libdir_flag_spec_F77=' '
15114 allow_undefined_flag_F77=unsupported
15115 # Tell ltmain to make .lib files, not .a files.
15116 libext=lib
15117 # Tell ltmain to make .dll files, not .so files.
15118 shrext_cmds=".dll"
15119 # FIXME: Setting linknames here is a bad hack.
15120 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15121 # The linker will automatically build a .lib file if we build a DLL.
15122 old_archive_From_new_cmds_F77='true'
15123 # FIXME: Should let the user specify the lib program.
15124 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15125 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15126 enable_shared_with_static_runtimes_F77=yes
15129 darwin* | rhapsody*)
15130 case $host_os in
15131 rhapsody* | darwin1.[012])
15132 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15134 *) # Darwin 1.3 on
15135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15136 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15137 else
15138 case ${MACOSX_DEPLOYMENT_TARGET} in
15139 10.[012])
15140 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15142 10.*)
15143 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15145 esac
15148 esac
15149 archive_cmds_need_lc_F77=no
15150 hardcode_direct_F77=no
15151 hardcode_automatic_F77=yes
15152 hardcode_shlibpath_var_F77=unsupported
15153 whole_archive_flag_spec_F77=''
15154 link_all_deplibs_F77=yes
15155 if test "$GCC" = yes ; then
15156 output_verbose_link_cmd='echo'
15157 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15158 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15160 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15161 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15162 else
15163 case $cc_basename in
15164 xlc*)
15165 output_verbose_link_cmd='echo'
15166 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15167 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15169 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15170 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15173 ld_shlibs_F77=no
15175 esac
15179 dgux*)
15180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_libdir_flag_spec_F77='-L$libdir'
15182 hardcode_shlibpath_var_F77=no
15185 freebsd1*)
15186 ld_shlibs_F77=no
15189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15190 # support. Future versions do this automatically, but an explicit c++rt0.o
15191 # does not break anything, and helps significantly (at the cost of a little
15192 # extra space).
15193 freebsd2.2*)
15194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15195 hardcode_libdir_flag_spec_F77='-R$libdir'
15196 hardcode_direct_F77=yes
15197 hardcode_shlibpath_var_F77=no
15200 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15201 freebsd2*)
15202 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_direct_F77=yes
15204 hardcode_minus_L_F77=yes
15205 hardcode_shlibpath_var_F77=no
15208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15209 freebsd* | dragonfly*)
15210 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15211 hardcode_libdir_flag_spec_F77='-R$libdir'
15212 hardcode_direct_F77=yes
15213 hardcode_shlibpath_var_F77=no
15216 hpux9*)
15217 if test "$GCC" = yes; then
15218 archive_cmds_F77='$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'
15219 else
15220 archive_cmds_F77='$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'
15222 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15223 hardcode_libdir_separator_F77=:
15224 hardcode_direct_F77=yes
15226 # hardcode_minus_L: Not really in the search PATH,
15227 # but as the default location of the library.
15228 hardcode_minus_L_F77=yes
15229 export_dynamic_flag_spec_F77='${wl}-E'
15232 hpux10*)
15233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15234 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15235 else
15236 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15238 if test "$with_gnu_ld" = no; then
15239 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15240 hardcode_libdir_separator_F77=:
15242 hardcode_direct_F77=yes
15243 export_dynamic_flag_spec_F77='${wl}-E'
15245 # hardcode_minus_L: Not really in the search PATH,
15246 # but as the default location of the library.
15247 hardcode_minus_L_F77=yes
15251 hpux11*)
15252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15253 case $host_cpu in
15254 hppa*64*)
15255 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257 ia64*)
15258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15263 esac
15264 else
15265 case $host_cpu in
15266 hppa*64*)
15267 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 ia64*)
15270 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15275 esac
15277 if test "$with_gnu_ld" = no; then
15278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15279 hardcode_libdir_separator_F77=:
15281 case $host_cpu in
15282 hppa*64*|ia64*)
15283 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15284 hardcode_direct_F77=no
15285 hardcode_shlibpath_var_F77=no
15288 hardcode_direct_F77=yes
15289 export_dynamic_flag_spec_F77='${wl}-E'
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L_F77=yes
15295 esac
15299 irix5* | irix6* | nonstopux*)
15300 if test "$GCC" = yes; then
15301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15302 else
15303 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15304 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307 hardcode_libdir_separator_F77=:
15308 link_all_deplibs_F77=yes
15311 netbsd* | netbsdelf*-gnu)
15312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15313 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15314 else
15315 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15317 hardcode_libdir_flag_spec_F77='-R$libdir'
15318 hardcode_direct_F77=yes
15319 hardcode_shlibpath_var_F77=no
15322 newsos6)
15323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15324 hardcode_direct_F77=yes
15325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326 hardcode_libdir_separator_F77=:
15327 hardcode_shlibpath_var_F77=no
15330 openbsd*)
15331 if test -f /usr/libexec/ld.so; then
15332 hardcode_direct_F77=yes
15333 hardcode_shlibpath_var_F77=no
15334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15335 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15336 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15338 export_dynamic_flag_spec_F77='${wl}-E'
15339 else
15340 case $host_os in
15341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_libdir_flag_spec_F77='-R$libdir'
15346 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15347 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15349 esac
15351 else
15352 ld_shlibs_F77=no
15356 os2*)
15357 hardcode_libdir_flag_spec_F77='-L$libdir'
15358 hardcode_minus_L_F77=yes
15359 allow_undefined_flag_F77=unsupported
15360 archive_cmds_F77='$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'
15361 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15364 osf3*)
15365 if test "$GCC" = yes; then
15366 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15367 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15368 else
15369 allow_undefined_flag_F77=' -expect_unresolved \*'
15370 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15373 hardcode_libdir_separator_F77=:
15376 osf4* | osf5*) # as osf3* with the addition of -msym flag
15377 if test "$GCC" = yes; then
15378 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15379 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15380 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15381 else
15382 allow_undefined_flag_F77=' -expect_unresolved \*'
15383 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15384 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15385 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15387 # Both c and cxx compiler support -rpath directly
15388 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15390 hardcode_libdir_separator_F77=:
15393 solaris*)
15394 no_undefined_flag_F77=' -z text'
15395 if test "$GCC" = yes; then
15396 wlarc='${wl}'
15397 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15400 else
15401 wlarc=''
15402 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15406 hardcode_libdir_flag_spec_F77='-R$libdir'
15407 hardcode_shlibpath_var_F77=no
15408 case $host_os in
15409 solaris2.[0-5] | solaris2.[0-5].*) ;;
15411 # The compiler driver will combine and reorder linker options,
15412 # but understands `-z linker_flag'. GCC discards it without `$wl',
15413 # but is careful enough not to reorder.
15414 # Supported since Solaris 2.6 (maybe 2.5.1?)
15415 if test "$GCC" = yes; then
15416 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15417 else
15418 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15421 esac
15422 link_all_deplibs_F77=yes
15425 sunos4*)
15426 if test "x$host_vendor" = xsequent; then
15427 # Use $CC to link under sequent, because it throws in some extra .o
15428 # files that make .init and .fini sections work.
15429 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15430 else
15431 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_libdir_flag_spec_F77='-L$libdir'
15434 hardcode_direct_F77=yes
15435 hardcode_minus_L_F77=yes
15436 hardcode_shlibpath_var_F77=no
15439 sysv4)
15440 case $host_vendor in
15441 sni)
15442 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443 hardcode_direct_F77=yes # is this really true???
15445 siemens)
15446 ## LD is ld it makes a PLAMLIB
15447 ## CC just makes a GrossModule.
15448 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15449 reload_cmds_F77='$CC -r -o $output$reload_objs'
15450 hardcode_direct_F77=no
15452 motorola)
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15456 esac
15457 runpath_var='LD_RUN_PATH'
15458 hardcode_shlibpath_var_F77=no
15461 sysv4.3*)
15462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_shlibpath_var_F77=no
15464 export_dynamic_flag_spec_F77='-Bexport'
15467 sysv4*MP*)
15468 if test -d /usr/nec; then
15469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470 hardcode_shlibpath_var_F77=no
15471 runpath_var=LD_RUN_PATH
15472 hardcode_runpath_var=yes
15473 ld_shlibs_F77=yes
15477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15478 no_undefined_flag_F77='${wl}-z,text'
15479 archive_cmds_need_lc_F77=no
15480 hardcode_shlibpath_var_F77=no
15481 runpath_var='LD_RUN_PATH'
15483 if test "$GCC" = yes; then
15484 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15486 else
15487 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15492 sysv5* | sco3.2v5* | sco5v6*)
15493 # Note: We can NOT use -z defs as we might desire, because we do not
15494 # link with -lc, and that would cause any symbols used from libc to
15495 # always be unresolved, which means just about no library would
15496 # ever link correctly. If we're not using GNU ld we use -z text
15497 # though, which does catch some bad symbols but isn't as heavy-handed
15498 # as -z defs.
15499 no_undefined_flag_F77='${wl}-z,text'
15500 allow_undefined_flag_F77='${wl}-z,nodefs'
15501 archive_cmds_need_lc_F77=no
15502 hardcode_shlibpath_var_F77=no
15503 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15504 hardcode_libdir_separator_F77=':'
15505 link_all_deplibs_F77=yes
15506 export_dynamic_flag_spec_F77='${wl}-Bexport'
15507 runpath_var='LD_RUN_PATH'
15509 if test "$GCC" = yes; then
15510 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512 else
15513 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 uts4*)
15519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_libdir_flag_spec_F77='-L$libdir'
15521 hardcode_shlibpath_var_F77=no
15525 ld_shlibs_F77=no
15527 esac
15530 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15531 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15532 test "$ld_shlibs_F77" = no && can_build_shared=no
15535 # Do we need to explicitly link libc?
15537 case "x$archive_cmds_need_lc_F77" in
15538 x|xyes)
15539 # Assume -lc should be added
15540 archive_cmds_need_lc_F77=yes
15542 if test "$enable_shared" = yes && test "$GCC" = yes; then
15543 case $archive_cmds_F77 in
15544 *'~'*)
15545 # FIXME: we may have to deal with multi-command sequences.
15547 '$CC '*)
15548 # Test whether the compiler implicitly links with -lc since on some
15549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15550 # to ld, don't add -lc before -lgcc.
15551 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15553 $rm conftest*
15554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } 2>conftest.err; then
15561 soname=conftest
15562 lib=conftest
15563 libobjs=conftest.$ac_objext
15564 deplibs=
15565 wl=$lt_prog_compiler_wl_F77
15566 pic_flag=$lt_prog_compiler_pic_F77
15567 compiler_flags=-v
15568 linker_flags=-v
15569 verstring=
15570 output_objdir=.
15571 libname=conftest
15572 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15573 allow_undefined_flag_F77=
15574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15575 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }
15579 then
15580 archive_cmds_need_lc_F77=no
15581 else
15582 archive_cmds_need_lc_F77=yes
15584 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15585 else
15586 cat conftest.err 1>&5
15588 $rm conftest*
15589 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15590 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15592 esac
15595 esac
15597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15599 library_names_spec=
15600 libname_spec='lib$name'
15601 soname_spec=
15602 shrext_cmds=".so"
15603 postinstall_cmds=
15604 postuninstall_cmds=
15605 finish_cmds=
15606 finish_eval=
15607 shlibpath_var=
15608 shlibpath_overrides_runpath=unknown
15609 version_type=none
15610 dynamic_linker="$host_os ld.so"
15611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15613 need_lib_prefix=unknown
15614 hardcode_into_libs=no
15616 # when you set need_version to no, make sure it does not cause -set_version
15617 # flags to be left without arguments
15618 need_version=unknown
15620 case $host_os in
15621 aix3*)
15622 version_type=linux
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15624 shlibpath_var=LIBPATH
15626 # AIX 3 has no versioning support, so we append a major version to the name.
15627 soname_spec='${libname}${release}${shared_ext}$major'
15630 aix4* | aix5*)
15631 version_type=linux
15632 need_lib_prefix=no
15633 need_version=no
15634 hardcode_into_libs=yes
15635 if test "$host_cpu" = ia64; then
15636 # AIX 5 supports IA64
15637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 else
15640 # With GCC up to 2.95.x, collect2 would create an import file
15641 # for dependence libraries. The import file would start with
15642 # the line `#! .'. This would cause the generated library to
15643 # depend on `.', always an invalid library. This was fixed in
15644 # development snapshots of GCC prior to 3.0.
15645 case $host_os in
15646 aix4 | aix4.[01] | aix4.[01].*)
15647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15648 echo ' yes '
15649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15651 else
15652 can_build_shared=no
15655 esac
15656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15657 # soname into executable. Probably we can add versioning support to
15658 # collect2, so additional links can be useful in future.
15659 if test "$aix_use_runtimelinking" = yes; then
15660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15661 # instead of lib<name>.a to let people know that these are not
15662 # typical AIX shared libraries.
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 else
15665 # We preserve .a as extension for shared libraries through AIX4.2
15666 # and later when we are not doing run time linking.
15667 library_names_spec='${libname}${release}.a $libname.a'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LIBPATH
15674 amigaos*)
15675 library_names_spec='$libname.ixlibrary $libname.a'
15676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677 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'
15680 beos*)
15681 library_names_spec='${libname}${shared_ext}'
15682 dynamic_linker="$host_os ld.so"
15683 shlibpath_var=LIBRARY_PATH
15686 bsdi[45]*)
15687 version_type=linux
15688 need_version=no
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15695 # the default ld.so.conf also contains /usr/contrib/lib and
15696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15697 # libtool to hard-code these into programs
15700 cygwin* | mingw* | pw32*)
15701 version_type=windows
15702 shrext_cmds=".dll"
15703 need_version=no
15704 need_lib_prefix=no
15706 case $GCC,$host_os in
15707 yes,cygwin* | yes,mingw* | yes,pw32*)
15708 library_names_spec='$libname.dll.a'
15709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15710 postinstall_cmds='base_file=`basename \${file}`~
15711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15712 dldir=$destdir/`dirname \$dlpath`~
15713 test -d \$dldir || mkdir -p \$dldir~
15714 $install_prog $dir/$dlname \$dldir/$dlname~
15715 chmod a+x \$dldir/$dlname'
15716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15717 dlpath=$dir/\$dldll~
15718 $rm \$dlpath'
15719 shlibpath_overrides_runpath=yes
15721 case $host_os in
15722 cygwin*)
15723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15727 mingw*)
15728 # MinGW DLLs use traditional 'lib' prefix
15729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15732 # It is most probably a Windows format PATH printed by
15733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15734 # path with ; separators, and with drive letters. We can handle the
15735 # drive letters (cygwin fileutils understands them), so leave them,
15736 # especially as we might pass files found there to a mingw objdump,
15737 # which wouldn't understand a cygwinified path. Ahh.
15738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15739 else
15740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15743 pw32*)
15744 # pw32 DLLs use 'pw' prefix rather than 'lib'
15745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15747 esac
15751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15753 esac
15754 dynamic_linker='Win32 ld.exe'
15755 # FIXME: first we should search . and the directory the executable is in
15756 shlibpath_var=PATH
15759 darwin* | rhapsody*)
15760 dynamic_linker="$host_os dyld"
15761 version_type=darwin
15762 need_lib_prefix=no
15763 need_version=no
15764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15765 soname_spec='${libname}${release}${major}$shared_ext'
15766 shlibpath_overrides_runpath=yes
15767 shlibpath_var=DYLD_LIBRARY_PATH
15768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15773 dgux*)
15774 version_type=linux
15775 need_lib_prefix=no
15776 need_version=no
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15782 freebsd1*)
15783 dynamic_linker=no
15786 freebsd* | dragonfly*)
15787 # DragonFly does not have aout. When/if they implement a new
15788 # versioning mechanism, adjust this.
15789 if test -x /usr/bin/objformat; then
15790 objformat=`/usr/bin/objformat`
15791 else
15792 case $host_os in
15793 freebsd[123]*) objformat=aout ;;
15794 *) objformat=elf ;;
15795 esac
15797 version_type=freebsd-$objformat
15798 case $version_type in
15799 freebsd-elf*)
15800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15801 need_version=no
15802 need_lib_prefix=no
15804 freebsd-*)
15805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15806 need_version=yes
15808 esac
15809 shlibpath_var=LD_LIBRARY_PATH
15810 case $host_os in
15811 freebsd2*)
15812 shlibpath_overrides_runpath=yes
15814 freebsd3.[01]* | freebsdelf3.[01]*)
15815 shlibpath_overrides_runpath=yes
15816 hardcode_into_libs=yes
15818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15820 shlibpath_overrides_runpath=no
15821 hardcode_into_libs=yes
15823 *) # from 4.6 on, and DragonFly
15824 shlibpath_overrides_runpath=yes
15825 hardcode_into_libs=yes
15827 esac
15830 gnu*)
15831 version_type=linux
15832 need_lib_prefix=no
15833 need_version=no
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 hardcode_into_libs=yes
15840 hpux9* | hpux10* | hpux11*)
15841 # Give a soname corresponding to the major version so that dld.sl refuses to
15842 # link against other versions.
15843 version_type=sunos
15844 need_lib_prefix=no
15845 need_version=no
15846 case $host_cpu in
15847 ia64*)
15848 shrext_cmds='.so'
15849 hardcode_into_libs=yes
15850 dynamic_linker="$host_os dld.so"
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 if test "X$HPUX_IA64_MODE" = X32; then
15856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15857 else
15858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15862 hppa*64*)
15863 shrext_cmds='.sl'
15864 hardcode_into_libs=yes
15865 dynamic_linker="$host_os dld.sl"
15866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869 soname_spec='${libname}${release}${shared_ext}$major'
15870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15874 shrext_cmds='.sl'
15875 dynamic_linker="$host_os dld.sl"
15876 shlibpath_var=SHLIB_PATH
15877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15881 esac
15882 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15883 postinstall_cmds='chmod 555 $lib'
15886 interix[3-9]*)
15887 version_type=linux
15888 need_lib_prefix=no
15889 need_version=no
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=no
15895 hardcode_into_libs=yes
15898 irix5* | irix6* | nonstopux*)
15899 case $host_os in
15900 nonstopux*) version_type=nonstopux ;;
15902 if test "$lt_cv_prog_gnu_ld" = yes; then
15903 version_type=linux
15904 else
15905 version_type=irix
15906 fi ;;
15907 esac
15908 need_lib_prefix=no
15909 need_version=no
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15912 case $host_os in
15913 irix5* | nonstopux*)
15914 libsuff= shlibsuff=
15917 case $LD in # libtool.m4 will add one of these switches to LD
15918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15919 libsuff= shlibsuff= libmagic=32-bit;;
15920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15921 libsuff=32 shlibsuff=N32 libmagic=N32;;
15922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15924 *) libsuff= shlibsuff= libmagic=never-match;;
15925 esac
15927 esac
15928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15929 shlibpath_overrides_runpath=no
15930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15932 hardcode_into_libs=yes
15935 # No shared lib support for Linux oldld, aout, or coff.
15936 linux*oldld* | linux*aout* | linux*coff*)
15937 dynamic_linker=no
15940 # This must be Linux ELF.
15941 linux* | k*bsd*-gnu)
15942 version_type=linux
15943 need_lib_prefix=no
15944 need_version=no
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 soname_spec='${libname}${release}${shared_ext}$major'
15947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=no
15950 # This implies no fast_install, which is unacceptable.
15951 # Some rework will be needed to allow for fast_install
15952 # before this can be enabled.
15953 hardcode_into_libs=yes
15955 # Append ld.so.conf contents to the search path
15956 if test -f /etc/ld.so.conf; then
15957 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;/^$/d' | tr '\n' ' '`
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15961 # We used to test for /lib/ld.so.1 and disable shared libraries on
15962 # powerpc, because MkLinux only supported shared libraries with the
15963 # GNU dynamic linker. Since this was broken with cross compilers,
15964 # most powerpc-linux boxes support dynamic linking these days and
15965 # people can always --disable-shared, the test was removed, and we
15966 # assume the GNU/Linux dynamic linker is in use.
15967 dynamic_linker='GNU/Linux ld.so'
15970 netbsdelf*-gnu)
15971 version_type=linux
15972 need_lib_prefix=no
15973 need_version=no
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15976 shlibpath_var=LD_LIBRARY_PATH
15977 shlibpath_overrides_runpath=no
15978 hardcode_into_libs=yes
15979 dynamic_linker='NetBSD ld.elf_so'
15982 netbsd*)
15983 version_type=sunos
15984 need_lib_prefix=no
15985 need_version=no
15986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15989 dynamic_linker='NetBSD (a.out) ld.so'
15990 else
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 dynamic_linker='NetBSD ld.elf_so'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes
15997 hardcode_into_libs=yes
16000 newsos6)
16001 version_type=linux
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 shlibpath_overrides_runpath=yes
16007 nto-qnx*)
16008 version_type=linux
16009 need_lib_prefix=no
16010 need_version=no
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 shlibpath_var=LD_LIBRARY_PATH
16014 shlibpath_overrides_runpath=yes
16017 openbsd*)
16018 version_type=sunos
16019 sys_lib_dlsearch_path_spec="/usr/lib"
16020 need_lib_prefix=no
16021 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16022 case $host_os in
16023 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16024 *) need_version=no ;;
16025 esac
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16030 case $host_os in
16031 openbsd2.[89] | openbsd2.[89].*)
16032 shlibpath_overrides_runpath=no
16035 shlibpath_overrides_runpath=yes
16037 esac
16038 else
16039 shlibpath_overrides_runpath=yes
16043 os2*)
16044 libname_spec='$name'
16045 shrext_cmds=".dll"
16046 need_lib_prefix=no
16047 library_names_spec='$libname${shared_ext} $libname.a'
16048 dynamic_linker='OS/2 ld.exe'
16049 shlibpath_var=LIBPATH
16052 osf3* | osf4* | osf5*)
16053 version_type=osf
16054 need_lib_prefix=no
16055 need_version=no
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16060 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16063 rdos*)
16064 dynamic_linker=no
16067 solaris*)
16068 version_type=linux
16069 need_lib_prefix=no
16070 need_version=no
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16075 hardcode_into_libs=yes
16076 # ldd complains unless libraries are executable
16077 postinstall_cmds='chmod +x $lib'
16080 sunos4*)
16081 version_type=sunos
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16086 if test "$with_gnu_ld" = yes; then
16087 need_lib_prefix=no
16089 need_version=yes
16092 sysv4 | sysv4.3*)
16093 version_type=linux
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 case $host_vendor in
16098 sni)
16099 shlibpath_overrides_runpath=no
16100 need_lib_prefix=no
16101 export_dynamic_flag_spec='${wl}-Blargedynsym'
16102 runpath_var=LD_RUN_PATH
16104 siemens)
16105 need_lib_prefix=no
16107 motorola)
16108 need_lib_prefix=no
16109 need_version=no
16110 shlibpath_overrides_runpath=no
16111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16113 esac
16116 sysv4*MP*)
16117 if test -d /usr/nec ;then
16118 version_type=linux
16119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16120 soname_spec='$libname${shared_ext}.$major'
16121 shlibpath_var=LD_LIBRARY_PATH
16125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16126 version_type=freebsd-elf
16127 need_lib_prefix=no
16128 need_version=no
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 hardcode_into_libs=yes
16133 if test "$with_gnu_ld" = yes; then
16134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16135 shlibpath_overrides_runpath=no
16136 else
16137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16138 shlibpath_overrides_runpath=yes
16139 case $host_os in
16140 sco3.2v5*)
16141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16143 esac
16145 sys_lib_dlsearch_path_spec='/usr/lib'
16148 uts4*)
16149 version_type=linux
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16156 dynamic_linker=no
16158 esac
16159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16160 echo "${ECHO_T}$dynamic_linker" >&6; }
16161 test "$dynamic_linker" = no && can_build_shared=no
16163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16164 if test "$GCC" = yes; then
16165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16168 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16170 hardcode_action_F77=
16171 if test -n "$hardcode_libdir_flag_spec_F77" || \
16172 test -n "$runpath_var_F77" || \
16173 test "X$hardcode_automatic_F77" = "Xyes" ; then
16175 # We can hardcode non-existant directories.
16176 if test "$hardcode_direct_F77" != no &&
16177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16178 # have to relink, otherwise we might link with an installed library
16179 # when we should be linking with a yet-to-be-installed one
16180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16181 test "$hardcode_minus_L_F77" != no; then
16182 # Linking always hardcodes the temporary library directory.
16183 hardcode_action_F77=relink
16184 else
16185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16186 hardcode_action_F77=immediate
16188 else
16189 # We cannot hardcode anything, or else we can only hardcode existing
16190 # directories.
16191 hardcode_action_F77=unsupported
16193 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16194 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16196 if test "$hardcode_action_F77" = relink; then
16197 # Fast installation is not supported
16198 enable_fast_install=no
16199 elif test "$shlibpath_overrides_runpath" = yes ||
16200 test "$enable_shared" = no; then
16201 # Fast installation is not necessary
16202 enable_fast_install=needless
16206 # The else clause should only fire when bootstrapping the
16207 # libtool distribution, otherwise you forgot to ship ltmain.sh
16208 # with your package, and you will get complaints that there are
16209 # no rules to generate ltmain.sh.
16210 if test -f "$ltmain"; then
16211 # See if we are running on zsh, and set the options which allow our commands through
16212 # without removal of \ escapes.
16213 if test -n "${ZSH_VERSION+set}" ; then
16214 setopt NO_GLOB_SUBST
16216 # Now quote all the things that may contain metacharacters while being
16217 # careful not to overquote the AC_SUBSTed values. We take copies of the
16218 # variables and quote the copies for generation of the libtool script.
16219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16220 SED SHELL STRIP \
16221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16223 deplibs_check_method reload_flag reload_cmds need_locks \
16224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16225 lt_cv_sys_global_symbol_to_c_name_address \
16226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16227 old_postinstall_cmds old_postuninstall_cmds \
16228 compiler_F77 \
16229 CC_F77 \
16230 LD_F77 \
16231 lt_prog_compiler_wl_F77 \
16232 lt_prog_compiler_pic_F77 \
16233 lt_prog_compiler_static_F77 \
16234 lt_prog_compiler_no_builtin_flag_F77 \
16235 export_dynamic_flag_spec_F77 \
16236 thread_safe_flag_spec_F77 \
16237 whole_archive_flag_spec_F77 \
16238 enable_shared_with_static_runtimes_F77 \
16239 old_archive_cmds_F77 \
16240 old_archive_from_new_cmds_F77 \
16241 predep_objects_F77 \
16242 postdep_objects_F77 \
16243 predeps_F77 \
16244 postdeps_F77 \
16245 compiler_lib_search_path_F77 \
16246 archive_cmds_F77 \
16247 archive_expsym_cmds_F77 \
16248 postinstall_cmds_F77 \
16249 postuninstall_cmds_F77 \
16250 old_archive_from_expsyms_cmds_F77 \
16251 allow_undefined_flag_F77 \
16252 no_undefined_flag_F77 \
16253 export_symbols_cmds_F77 \
16254 hardcode_libdir_flag_spec_F77 \
16255 hardcode_libdir_flag_spec_ld_F77 \
16256 hardcode_libdir_separator_F77 \
16257 hardcode_automatic_F77 \
16258 module_cmds_F77 \
16259 module_expsym_cmds_F77 \
16260 lt_cv_prog_compiler_c_o_F77 \
16261 fix_srcfile_path_F77 \
16262 exclude_expsyms_F77 \
16263 include_expsyms_F77; do
16265 case $var in
16266 old_archive_cmds_F77 | \
16267 old_archive_from_new_cmds_F77 | \
16268 archive_cmds_F77 | \
16269 archive_expsym_cmds_F77 | \
16270 module_cmds_F77 | \
16271 module_expsym_cmds_F77 | \
16272 old_archive_from_expsyms_cmds_F77 | \
16273 export_symbols_cmds_F77 | \
16274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16275 postinstall_cmds | postuninstall_cmds | \
16276 old_postinstall_cmds | old_postuninstall_cmds | \
16277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16278 # Double-quote double-evaled strings.
16279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16284 esac
16285 done
16287 case $lt_echo in
16288 *'\$0 --fallback-echo"')
16289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16291 esac
16293 cfgfile="$ofile"
16295 cat <<__EOF__ >> "$cfgfile"
16296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16300 # Shell to use when invoking shell scripts.
16301 SHELL=$lt_SHELL
16303 # Whether or not to build shared libraries.
16304 build_libtool_libs=$enable_shared
16306 # Whether or not to build static libraries.
16307 build_old_libs=$enable_static
16309 # Whether or not to add -lc for building shared libraries.
16310 build_libtool_need_lc=$archive_cmds_need_lc_F77
16312 # Whether or not to disallow shared libs when runtime libs are static
16313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16315 # Whether or not to optimize for fast installation.
16316 fast_install=$enable_fast_install
16318 # The host system.
16319 host_alias=$host_alias
16320 host=$host
16321 host_os=$host_os
16323 # The build system.
16324 build_alias=$build_alias
16325 build=$build
16326 build_os=$build_os
16328 # An echo program that does not interpret backslashes.
16329 echo=$lt_echo
16331 # The archiver.
16332 AR=$lt_AR
16333 AR_FLAGS=$lt_AR_FLAGS
16335 # A C compiler.
16336 LTCC=$lt_LTCC
16338 # LTCC compiler flags.
16339 LTCFLAGS=$lt_LTCFLAGS
16341 # A language-specific compiler.
16342 CC=$lt_compiler_F77
16344 # Is the compiler the GNU C compiler?
16345 with_gcc=$GCC_F77
16347 # An ERE matcher.
16348 EGREP=$lt_EGREP
16350 # The linker used to build libraries.
16351 LD=$lt_LD_F77
16353 # Whether we need hard or soft links.
16354 LN_S=$lt_LN_S
16356 # A BSD-compatible nm program.
16357 NM=$lt_NM
16359 # A symbol stripping program
16360 STRIP=$lt_STRIP
16362 # Used to examine libraries when file_magic_cmd begins "file"
16363 MAGIC_CMD=$MAGIC_CMD
16365 # Used on cygwin: DLL creation program.
16366 DLLTOOL="$DLLTOOL"
16368 # Used on cygwin: object dumper.
16369 OBJDUMP="$OBJDUMP"
16371 # Used on cygwin: assembler.
16372 AS="$AS"
16374 # The name of the directory that contains temporary libtool files.
16375 objdir=$objdir
16377 # How to create reloadable object files.
16378 reload_flag=$lt_reload_flag
16379 reload_cmds=$lt_reload_cmds
16381 # How to pass a linker flag through the compiler.
16382 wl=$lt_lt_prog_compiler_wl_F77
16384 # Object file suffix (normally "o").
16385 objext="$ac_objext"
16387 # Old archive suffix (normally "a").
16388 libext="$libext"
16390 # Shared library suffix (normally ".so").
16391 shrext_cmds='$shrext_cmds'
16393 # Executable file suffix (normally "").
16394 exeext="$exeext"
16396 # Additional compiler flags for building library objects.
16397 pic_flag=$lt_lt_prog_compiler_pic_F77
16398 pic_mode=$pic_mode
16400 # What is the maximum length of a command?
16401 max_cmd_len=$lt_cv_sys_max_cmd_len
16403 # Does compiler simultaneously support -c and -o options?
16404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16406 # Must we lock files when doing compilation?
16407 need_locks=$lt_need_locks
16409 # Do we need the lib prefix for modules?
16410 need_lib_prefix=$need_lib_prefix
16412 # Do we need a version for libraries?
16413 need_version=$need_version
16415 # Whether dlopen is supported.
16416 dlopen_support=$enable_dlopen
16418 # Whether dlopen of programs is supported.
16419 dlopen_self=$enable_dlopen_self
16421 # Whether dlopen of statically linked programs is supported.
16422 dlopen_self_static=$enable_dlopen_self_static
16424 # Compiler flag to prevent dynamic linking.
16425 link_static_flag=$lt_lt_prog_compiler_static_F77
16427 # Compiler flag to turn off builtin functions.
16428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16430 # Compiler flag to allow reflexive dlopens.
16431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16433 # Compiler flag to generate shared objects directly from archives.
16434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16436 # Compiler flag to generate thread-safe objects.
16437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16439 # Library versioning type.
16440 version_type=$version_type
16442 # Format of library name prefix.
16443 libname_spec=$lt_libname_spec
16445 # List of archive names. First name is the real one, the rest are links.
16446 # The last name is the one that the linker finds with -lNAME.
16447 library_names_spec=$lt_library_names_spec
16449 # The coded name of the library, if different from the real name.
16450 soname_spec=$lt_soname_spec
16452 # Commands used to build and install an old-style archive.
16453 RANLIB=$lt_RANLIB
16454 old_archive_cmds=$lt_old_archive_cmds_F77
16455 old_postinstall_cmds=$lt_old_postinstall_cmds
16456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16458 # Create an old-style archive from a shared archive.
16459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16461 # Create a temporary old-style archive to link instead of a shared archive.
16462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16464 # Commands used to build and install a shared archive.
16465 archive_cmds=$lt_archive_cmds_F77
16466 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16467 postinstall_cmds=$lt_postinstall_cmds
16468 postuninstall_cmds=$lt_postuninstall_cmds
16470 # Commands used to build a loadable module (assumed same as above if empty)
16471 module_cmds=$lt_module_cmds_F77
16472 module_expsym_cmds=$lt_module_expsym_cmds_F77
16474 # Commands to strip libraries.
16475 old_striplib=$lt_old_striplib
16476 striplib=$lt_striplib
16478 # Dependencies to place before the objects being linked to create a
16479 # shared library.
16480 predep_objects=$lt_predep_objects_F77
16482 # Dependencies to place after the objects being linked to create a
16483 # shared library.
16484 postdep_objects=$lt_postdep_objects_F77
16486 # Dependencies to place before the objects being linked to create a
16487 # shared library.
16488 predeps=$lt_predeps_F77
16490 # Dependencies to place after the objects being linked to create a
16491 # shared library.
16492 postdeps=$lt_postdeps_F77
16494 # The library search path used internally by the compiler when linking
16495 # a shared library.
16496 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16498 # Method to check whether dependent libraries are shared objects.
16499 deplibs_check_method=$lt_deplibs_check_method
16501 # Command to use when deplibs_check_method == file_magic.
16502 file_magic_cmd=$lt_file_magic_cmd
16504 # Flag that allows shared libraries with undefined symbols to be built.
16505 allow_undefined_flag=$lt_allow_undefined_flag_F77
16507 # Flag that forces no undefined symbols.
16508 no_undefined_flag=$lt_no_undefined_flag_F77
16510 # Commands used to finish a libtool library installation in a directory.
16511 finish_cmds=$lt_finish_cmds
16513 # Same as above, but a single script fragment to be evaled but not shown.
16514 finish_eval=$lt_finish_eval
16516 # Take the output of nm and produce a listing of raw symbols and C names.
16517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16519 # Transform the output of nm in a proper C declaration
16520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16522 # Transform the output of nm in a C name address pair
16523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16525 # This is the shared library runtime path variable.
16526 runpath_var=$runpath_var
16528 # This is the shared library path variable.
16529 shlibpath_var=$shlibpath_var
16531 # Is shlibpath searched before the hard-coded library search path?
16532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16534 # How to hardcode a shared library path into an executable.
16535 hardcode_action=$hardcode_action_F77
16537 # Whether we should hardcode library paths into libraries.
16538 hardcode_into_libs=$hardcode_into_libs
16540 # Flag to hardcode \$libdir into a binary during linking.
16541 # This must work even if \$libdir does not exist.
16542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16544 # If ld is used when linking, flag to hardcode \$libdir into
16545 # a binary during linking. This must work even if \$libdir does
16546 # not exist.
16547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16549 # Whether we need a single -rpath flag with a separated argument.
16550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16553 # resulting binary.
16554 hardcode_direct=$hardcode_direct_F77
16556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16557 # resulting binary.
16558 hardcode_minus_L=$hardcode_minus_L_F77
16560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16561 # the resulting binary.
16562 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16564 # Set to yes if building a shared library automatically hardcodes DIR into the library
16565 # and all subsequent libraries and executables linked against it.
16566 hardcode_automatic=$hardcode_automatic_F77
16568 # Variables whose values should be saved in libtool wrapper scripts and
16569 # restored at relink time.
16570 variables_saved_for_relink="$variables_saved_for_relink"
16572 # Whether libtool must link a program against all its dependency libraries.
16573 link_all_deplibs=$link_all_deplibs_F77
16575 # Compile-time system search path for libraries
16576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16578 # Run-time system search path for libraries
16579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16581 # Fix the shell variable \$srcfile for the compiler.
16582 fix_srcfile_path=$lt_fix_srcfile_path
16584 # Set to yes if exported symbols are required.
16585 always_export_symbols=$always_export_symbols_F77
16587 # The commands to list exported symbols.
16588 export_symbols_cmds=$lt_export_symbols_cmds_F77
16590 # The commands to extract the exported symbol list from a shared archive.
16591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16593 # Symbols that should not be listed in the preloaded symbols.
16594 exclude_expsyms=$lt_exclude_expsyms_F77
16596 # Symbols that must always be exported.
16597 include_expsyms=$lt_include_expsyms_F77
16599 # ### END LIBTOOL TAG CONFIG: $tagname
16601 __EOF__
16604 else
16605 # If there is no Makefile yet, we rely on a make rule to execute
16606 # `config.status --recheck' to rerun these tests and create the
16607 # libtool script then.
16608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16609 if test -f "$ltmain_in"; then
16610 test -f Makefile && make "$ltmain"
16615 ac_ext=c
16616 ac_cpp='$CPP $CPPFLAGS'
16617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621 CC="$lt_save_CC"
16623 else
16624 tagname=""
16628 GCJ)
16629 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16632 # Source file extension for Java test sources.
16633 ac_ext=java
16635 # Object file extension for compiled Java test sources.
16636 objext=o
16637 objext_GCJ=$objext
16639 # Code to be used in simple compile tests
16640 lt_simple_compile_test_code="class foo {}"
16642 # Code to be used in simple link tests
16643 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16647 # If no C compiler was specified, use CC.
16648 LTCC=${LTCC-"$CC"}
16650 # If no C compiler flags were specified, use CFLAGS.
16651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16653 # Allow CC to be a program name with arguments.
16654 compiler=$CC
16657 # save warnings/boilerplate of simple test code
16658 ac_outfile=conftest.$ac_objext
16659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16661 _lt_compiler_boilerplate=`cat conftest.err`
16662 $rm conftest*
16664 ac_outfile=conftest.$ac_objext
16665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16667 _lt_linker_boilerplate=`cat conftest.err`
16668 $rm conftest*
16671 # Allow CC to be a program name with arguments.
16672 lt_save_CC="$CC"
16673 CC=${GCJ-"gcj"}
16674 compiler=$CC
16675 compiler_GCJ=$CC
16676 for cc_temp in $compiler""; do
16677 case $cc_temp in
16678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16680 \-*) ;;
16681 *) break;;
16682 esac
16683 done
16684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16687 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16688 archive_cmds_need_lc_GCJ=no
16690 old_archive_cmds_GCJ=$old_archive_cmds
16693 lt_prog_compiler_no_builtin_flag_GCJ=
16695 if test "$GCC" = yes; then
16696 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16699 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16700 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16701 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704 lt_cv_prog_compiler_rtti_exceptions=no
16705 ac_outfile=conftest.$ac_objext
16706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16707 lt_compiler_flag="-fno-rtti -fno-exceptions"
16708 # Insert the option either (1) after the last *FLAGS variable, or
16709 # (2) before a word containing "conftest.", or (3) at the end.
16710 # Note that $ac_compile itself does not contain backslashes and begins
16711 # with a dollar sign (not a hyphen), so the echo should work correctly.
16712 # The option is referenced via a variable to avoid confusing sed.
16713 lt_compile=`echo "$ac_compile" | $SED \
16714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16716 -e 's:$: $lt_compiler_flag:'`
16717 (eval echo "\"\$as_me:16704: $lt_compile\"" >&5)
16718 (eval "$lt_compile" 2>conftest.err)
16719 ac_status=$?
16720 cat conftest.err >&5
16721 echo "$as_me:16708: \$? = $ac_status" >&5
16722 if (exit $ac_status) && test -s "$ac_outfile"; then
16723 # The compiler can only warn and ignore the option if not recognized
16724 # So say no if there are warnings other than the usual output.
16725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16728 lt_cv_prog_compiler_rtti_exceptions=yes
16731 $rm conftest*
16734 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16735 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16737 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16738 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16739 else
16745 lt_prog_compiler_wl_GCJ=
16746 lt_prog_compiler_pic_GCJ=
16747 lt_prog_compiler_static_GCJ=
16749 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16750 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16752 if test "$GCC" = yes; then
16753 lt_prog_compiler_wl_GCJ='-Wl,'
16754 lt_prog_compiler_static_GCJ='-static'
16756 case $host_os in
16757 aix*)
16758 # All AIX code is PIC.
16759 if test "$host_cpu" = ia64; then
16760 # AIX 5 now supports IA64 processor
16761 lt_prog_compiler_static_GCJ='-Bstatic'
16765 amigaos*)
16766 # FIXME: we need at least 68020 code to build shared libraries, but
16767 # adding the `-m68020' flag to GCC prevents building anything better,
16768 # like `-m68040'.
16769 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16773 # PIC is the default for these OSes.
16776 mingw* | cygwin* | pw32* | os2*)
16777 # This hack is so that the source file can tell whether it is being
16778 # built for inclusion in a dll (and should export symbols for example).
16779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16780 # (--disable-auto-import) libraries
16781 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16784 darwin* | rhapsody*)
16785 # PIC is the default on this platform
16786 # Common symbols not allowed in MH_DYLIB files
16787 lt_prog_compiler_pic_GCJ='-fno-common'
16790 interix[3-9]*)
16791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16792 # Instead, we relocate shared libraries at runtime.
16795 msdosdjgpp*)
16796 # Just because we use GCC doesn't mean we suddenly get shared libraries
16797 # on systems that don't support them.
16798 lt_prog_compiler_can_build_shared_GCJ=no
16799 enable_shared=no
16802 sysv4*MP*)
16803 if test -d /usr/nec; then
16804 lt_prog_compiler_pic_GCJ=-Kconform_pic
16808 hpux*)
16809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16810 # not for PA HP-UX.
16811 case $host_cpu in
16812 hppa*64*|ia64*)
16813 # +Z the default
16816 lt_prog_compiler_pic_GCJ='-fPIC'
16818 esac
16822 lt_prog_compiler_pic_GCJ='-fPIC'
16824 esac
16825 else
16826 # PORTME Check for flag to pass linker flags through the system compiler.
16827 case $host_os in
16828 aix*)
16829 lt_prog_compiler_wl_GCJ='-Wl,'
16830 if test "$host_cpu" = ia64; then
16831 # AIX 5 now supports IA64 processor
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16833 else
16834 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16837 darwin*)
16838 # PIC is the default on this platform
16839 # Common symbols not allowed in MH_DYLIB files
16840 case $cc_basename in
16841 xlc*)
16842 lt_prog_compiler_pic_GCJ='-qnocommon'
16843 lt_prog_compiler_wl_GCJ='-Wl,'
16845 esac
16848 mingw* | cygwin* | pw32* | os2*)
16849 # This hack is so that the source file can tell whether it is being
16850 # built for inclusion in a dll (and should export symbols for example).
16851 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16854 hpux9* | hpux10* | hpux11*)
16855 lt_prog_compiler_wl_GCJ='-Wl,'
16856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16857 # not for PA HP-UX.
16858 case $host_cpu in
16859 hppa*64*|ia64*)
16860 # +Z the default
16863 lt_prog_compiler_pic_GCJ='+Z'
16865 esac
16866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16867 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16870 irix5* | irix6* | nonstopux*)
16871 lt_prog_compiler_wl_GCJ='-Wl,'
16872 # PIC (with -KPIC) is the default.
16873 lt_prog_compiler_static_GCJ='-non_shared'
16876 newsos6)
16877 lt_prog_compiler_pic_GCJ='-KPIC'
16878 lt_prog_compiler_static_GCJ='-Bstatic'
16881 linux* | k*bsd*-gnu)
16882 case $cc_basename in
16883 icc* | ecc*)
16884 lt_prog_compiler_wl_GCJ='-Wl,'
16885 lt_prog_compiler_pic_GCJ='-KPIC'
16886 lt_prog_compiler_static_GCJ='-static'
16888 pgcc* | pgf77* | pgf90* | pgf95*)
16889 # Portland Group compilers (*not* the Pentium gcc compiler,
16890 # which looks to be a dead project)
16891 lt_prog_compiler_wl_GCJ='-Wl,'
16892 lt_prog_compiler_pic_GCJ='-fpic'
16893 lt_prog_compiler_static_GCJ='-Bstatic'
16895 ccc*)
16896 lt_prog_compiler_wl_GCJ='-Wl,'
16897 # All Alpha code is PIC.
16898 lt_prog_compiler_static_GCJ='-non_shared'
16901 case `$CC -V 2>&1 | sed 5q` in
16902 *Sun\ C*)
16903 # Sun C 5.9
16904 lt_prog_compiler_pic_GCJ='-KPIC'
16905 lt_prog_compiler_static_GCJ='-Bstatic'
16906 lt_prog_compiler_wl_GCJ='-Wl,'
16908 *Sun\ F*)
16909 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16910 lt_prog_compiler_pic_GCJ='-KPIC'
16911 lt_prog_compiler_static_GCJ='-Bstatic'
16912 lt_prog_compiler_wl_GCJ=''
16914 esac
16916 esac
16919 osf3* | osf4* | osf5*)
16920 lt_prog_compiler_wl_GCJ='-Wl,'
16921 # All OSF/1 code is PIC.
16922 lt_prog_compiler_static_GCJ='-non_shared'
16925 rdos*)
16926 lt_prog_compiler_static_GCJ='-non_shared'
16929 solaris*)
16930 lt_prog_compiler_pic_GCJ='-KPIC'
16931 lt_prog_compiler_static_GCJ='-Bstatic'
16932 case $cc_basename in
16933 f77* | f90* | f95*)
16934 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16936 lt_prog_compiler_wl_GCJ='-Wl,';;
16937 esac
16940 sunos4*)
16941 lt_prog_compiler_wl_GCJ='-Qoption ld '
16942 lt_prog_compiler_pic_GCJ='-PIC'
16943 lt_prog_compiler_static_GCJ='-Bstatic'
16946 sysv4 | sysv4.2uw2* | sysv4.3*)
16947 lt_prog_compiler_wl_GCJ='-Wl,'
16948 lt_prog_compiler_pic_GCJ='-KPIC'
16949 lt_prog_compiler_static_GCJ='-Bstatic'
16952 sysv4*MP*)
16953 if test -d /usr/nec ;then
16954 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16955 lt_prog_compiler_static_GCJ='-Bstatic'
16959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16960 lt_prog_compiler_wl_GCJ='-Wl,'
16961 lt_prog_compiler_pic_GCJ='-KPIC'
16962 lt_prog_compiler_static_GCJ='-Bstatic'
16965 unicos*)
16966 lt_prog_compiler_wl_GCJ='-Wl,'
16967 lt_prog_compiler_can_build_shared_GCJ=no
16970 uts4*)
16971 lt_prog_compiler_pic_GCJ='-pic'
16972 lt_prog_compiler_static_GCJ='-Bstatic'
16976 lt_prog_compiler_can_build_shared_GCJ=no
16978 esac
16981 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16982 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16985 # Check to make sure the PIC flag actually works.
16987 if test -n "$lt_prog_compiler_pic_GCJ"; then
16989 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16990 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16991 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994 lt_prog_compiler_pic_works_GCJ=no
16995 ac_outfile=conftest.$ac_objext
16996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16997 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16998 # Insert the option either (1) after the last *FLAGS variable, or
16999 # (2) before a word containing "conftest.", or (3) at the end.
17000 # Note that $ac_compile itself does not contain backslashes and begins
17001 # with a dollar sign (not a hyphen), so the echo should work correctly.
17002 # The option is referenced via a variable to avoid confusing sed.
17003 lt_compile=`echo "$ac_compile" | $SED \
17004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17006 -e 's:$: $lt_compiler_flag:'`
17007 (eval echo "\"\$as_me:16994: $lt_compile\"" >&5)
17008 (eval "$lt_compile" 2>conftest.err)
17009 ac_status=$?
17010 cat conftest.err >&5
17011 echo "$as_me:16998: \$? = $ac_status" >&5
17012 if (exit $ac_status) && test -s "$ac_outfile"; then
17013 # The compiler can only warn and ignore the option if not recognized
17014 # So say no if there are warnings other than the usual output.
17015 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17018 lt_prog_compiler_pic_works_GCJ=yes
17021 $rm conftest*
17024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17025 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17027 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17028 case $lt_prog_compiler_pic_GCJ in
17029 "" | " "*) ;;
17030 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17031 esac
17032 else
17033 lt_prog_compiler_pic_GCJ=
17034 lt_prog_compiler_can_build_shared_GCJ=no
17038 case $host_os in
17039 # For platforms which do not support PIC, -DPIC is meaningless:
17040 *djgpp*)
17041 lt_prog_compiler_pic_GCJ=
17044 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17046 esac
17049 # Check to make sure the static flag actually works.
17051 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17052 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17053 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17054 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057 lt_prog_compiler_static_works_GCJ=no
17058 save_LDFLAGS="$LDFLAGS"
17059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17062 # The linker can only warn and ignore the option if not recognized
17063 # So say no if there are warnings
17064 if test -s conftest.err; then
17065 # Append any errors to the config.log.
17066 cat conftest.err 1>&5
17067 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17069 if diff conftest.exp conftest.er2 >/dev/null; then
17070 lt_prog_compiler_static_works_GCJ=yes
17072 else
17073 lt_prog_compiler_static_works_GCJ=yes
17076 $rm conftest*
17077 LDFLAGS="$save_LDFLAGS"
17080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17081 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17083 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17085 else
17086 lt_prog_compiler_static_GCJ=
17090 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17091 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17092 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095 lt_cv_prog_compiler_c_o_GCJ=no
17096 $rm -r conftest 2>/dev/null
17097 mkdir conftest
17098 cd conftest
17099 mkdir out
17100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17102 lt_compiler_flag="-o out/conftest2.$ac_objext"
17103 # Insert the option either (1) after the last *FLAGS variable, or
17104 # (2) before a word containing "conftest.", or (3) at the end.
17105 # Note that $ac_compile itself does not contain backslashes and begins
17106 # with a dollar sign (not a hyphen), so the echo should work correctly.
17107 lt_compile=`echo "$ac_compile" | $SED \
17108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17110 -e 's:$: $lt_compiler_flag:'`
17111 (eval echo "\"\$as_me:17098: $lt_compile\"" >&5)
17112 (eval "$lt_compile" 2>out/conftest.err)
17113 ac_status=$?
17114 cat out/conftest.err >&5
17115 echo "$as_me:17102: \$? = $ac_status" >&5
17116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17117 then
17118 # The compiler can only warn and ignore the option if not recognized
17119 # So say no if there are warnings
17120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17123 lt_cv_prog_compiler_c_o_GCJ=yes
17126 chmod u+w . 2>&5
17127 $rm conftest*
17128 # SGI C++ compiler will create directory out/ii_files/ for
17129 # template instantiation
17130 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17131 $rm out/* && rmdir out
17132 cd ..
17133 rmdir conftest
17134 $rm conftest*
17137 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17138 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17141 hard_links="nottested"
17142 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17143 # do not overwrite the value of need_locks provided by the user
17144 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17145 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17146 hard_links=yes
17147 $rm conftest*
17148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17149 touch conftest.a
17150 ln conftest.a conftest.b 2>&5 || hard_links=no
17151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17152 { echo "$as_me:$LINENO: result: $hard_links" >&5
17153 echo "${ECHO_T}$hard_links" >&6; }
17154 if test "$hard_links" = no; then
17155 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17156 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17157 need_locks=warn
17159 else
17160 need_locks=no
17163 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17164 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17166 runpath_var=
17167 allow_undefined_flag_GCJ=
17168 enable_shared_with_static_runtimes_GCJ=no
17169 archive_cmds_GCJ=
17170 archive_expsym_cmds_GCJ=
17171 old_archive_From_new_cmds_GCJ=
17172 old_archive_from_expsyms_cmds_GCJ=
17173 export_dynamic_flag_spec_GCJ=
17174 whole_archive_flag_spec_GCJ=
17175 thread_safe_flag_spec_GCJ=
17176 hardcode_libdir_flag_spec_GCJ=
17177 hardcode_libdir_flag_spec_ld_GCJ=
17178 hardcode_libdir_separator_GCJ=
17179 hardcode_direct_GCJ=no
17180 hardcode_minus_L_GCJ=no
17181 hardcode_shlibpath_var_GCJ=unsupported
17182 link_all_deplibs_GCJ=unknown
17183 hardcode_automatic_GCJ=no
17184 module_cmds_GCJ=
17185 module_expsym_cmds_GCJ=
17186 always_export_symbols_GCJ=no
17187 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17188 # include_expsyms should be a list of space-separated symbols to be *always*
17189 # included in the symbol list
17190 include_expsyms_GCJ=
17191 # exclude_expsyms can be an extended regexp of symbols to exclude
17192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17194 # as well as any symbol that contains `d'.
17195 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17197 # platforms (ab)use it in PIC code, but their linkers get confused if
17198 # the symbol is explicitly referenced. Since portable code cannot
17199 # rely on this symbol name, it's probably fine to never include it in
17200 # preloaded symbol tables.
17201 extract_expsyms_cmds=
17202 # Just being paranoid about ensuring that cc_basename is set.
17203 for cc_temp in $compiler""; do
17204 case $cc_temp in
17205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17207 \-*) ;;
17208 *) break;;
17209 esac
17210 done
17211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17213 case $host_os in
17214 cygwin* | mingw* | pw32*)
17215 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17216 # When not using gcc, we currently assume that we are using
17217 # Microsoft Visual C++.
17218 if test "$GCC" != yes; then
17219 with_gnu_ld=no
17222 interix*)
17223 # we just hope/assume this is gcc and not c89 (= MSVC++)
17224 with_gnu_ld=yes
17226 openbsd*)
17227 with_gnu_ld=no
17229 esac
17231 ld_shlibs_GCJ=yes
17232 if test "$with_gnu_ld" = yes; then
17233 # If archive_cmds runs LD, not CC, wlarc should be empty
17234 wlarc='${wl}'
17236 # Set some defaults for GNU ld with shared library support. These
17237 # are reset later if shared libraries are not supported. Putting them
17238 # here allows them to be overridden if necessary.
17239 runpath_var=LD_RUN_PATH
17240 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17241 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17242 # ancient GNU ld didn't support --whole-archive et. al.
17243 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17244 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17245 else
17246 whole_archive_flag_spec_GCJ=
17248 supports_anon_versioning=no
17249 case `$LD -v 2>/dev/null` in
17250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17253 *\ 2.11.*) ;; # other 2.11 versions
17254 *) supports_anon_versioning=yes ;;
17255 esac
17257 # See if GNU ld supports shared libraries.
17258 case $host_os in
17259 aix3* | aix4* | aix5*)
17260 # On AIX/PPC, the GNU linker is very broken
17261 if test "$host_cpu" != ia64; then
17262 ld_shlibs_GCJ=no
17263 cat <<EOF 1>&2
17265 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17266 *** to be unable to reliably create shared libraries on AIX.
17267 *** Therefore, libtool is disabling shared libraries support. If you
17268 *** really care for shared libraries, you may want to modify your PATH
17269 *** so that a non-GNU linker is found, and then restart.
17275 amigaos*)
17276 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)'
17277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17278 hardcode_minus_L_GCJ=yes
17280 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17281 # that the semantics of dynamic libraries on AmigaOS, at least up
17282 # to version 4, is to share data among multiple programs linked
17283 # with the same dynamic library. Since this doesn't match the
17284 # behavior of shared libraries on other platforms, we can't use
17285 # them.
17286 ld_shlibs_GCJ=no
17289 beos*)
17290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17291 allow_undefined_flag_GCJ=unsupported
17292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17293 # support --undefined. This deserves some investigation. FIXME
17294 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295 else
17296 ld_shlibs_GCJ=no
17300 cygwin* | mingw* | pw32*)
17301 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17302 # as there is no search path for DLLs.
17303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17304 allow_undefined_flag_GCJ=unsupported
17305 always_export_symbols_GCJ=no
17306 enable_shared_with_static_runtimes_GCJ=yes
17307 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17309 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17310 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17311 # If the export-symbols file already is a .def file (1st line
17312 # is EXPORTS), use it as is; otherwise, prepend...
17313 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17314 cp $export_symbols $output_objdir/$soname.def;
17315 else
17316 echo EXPORTS > $output_objdir/$soname.def;
17317 cat $export_symbols >> $output_objdir/$soname.def;
17319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17320 else
17321 ld_shlibs_GCJ=no
17325 interix[3-9]*)
17326 hardcode_direct_GCJ=no
17327 hardcode_shlibpath_var_GCJ=no
17328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17329 export_dynamic_flag_spec_GCJ='${wl}-E'
17330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17331 # Instead, shared libraries are loaded at an image base (0x10000000 by
17332 # default) and relocated if they conflict, which is a slow very memory
17333 # consuming and fragmenting process. To avoid this, we pick a random,
17334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17336 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'
17337 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'
17340 gnu* | linux* | k*bsd*-gnu)
17341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342 tmp_addflag=
17343 case $cc_basename,$host_cpu in
17344 pgcc*) # Portland Group C compiler
17345 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17346 tmp_addflag=' $pic_flag'
17348 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17349 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17350 tmp_addflag=' $pic_flag -Mnomain' ;;
17351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17352 tmp_addflag=' -i_dynamic' ;;
17353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17354 tmp_addflag=' -i_dynamic -nofor_main' ;;
17355 ifc* | ifort*) # Intel Fortran compiler
17356 tmp_addflag=' -nofor_main' ;;
17357 esac
17358 case `$CC -V 2>&1 | sed 5q` in
17359 *Sun\ C*) # Sun C 5.9
17360 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17361 tmp_sharedflag='-G' ;;
17362 *Sun\ F*) # Sun Fortran 8.3
17363 tmp_sharedflag='-G' ;;
17365 tmp_sharedflag='-shared' ;;
17366 esac
17367 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17369 if test $supports_anon_versioning = yes; then
17370 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17372 $echo "local: *; };" >> $output_objdir/$libname.ver~
17373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17375 link_all_deplibs_GCJ=no
17376 else
17377 ld_shlibs_GCJ=no
17381 netbsd* | netbsdelf*-gnu)
17382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17383 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17384 wlarc=
17385 else
17386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17391 solaris*)
17392 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17393 ld_shlibs_GCJ=no
17394 cat <<EOF 1>&2
17396 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17397 *** create shared libraries on Solaris systems. Therefore, libtool
17398 *** is disabling shared libraries support. We urge you to upgrade GNU
17399 *** binutils to release 2.9.1 or newer. Another option is to modify
17400 *** your PATH or compiler configuration so that the native linker is
17401 *** used, and then restart.
17404 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17405 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17406 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17407 else
17408 ld_shlibs_GCJ=no
17412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17413 case `$LD -v 2>&1` in
17414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17415 ld_shlibs_GCJ=no
17416 cat <<_LT_EOF 1>&2
17418 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17419 *** reliably create shared libraries on SCO systems. Therefore, libtool
17420 *** is disabling shared libraries support. We urge you to upgrade GNU
17421 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17422 *** your PATH or compiler configuration so that the native linker is
17423 *** used, and then restart.
17425 _LT_EOF
17428 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17429 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17431 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17432 else
17433 ld_shlibs_GCJ=no
17436 esac
17439 sunos4*)
17440 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17441 wlarc=
17442 hardcode_direct_GCJ=yes
17443 hardcode_shlibpath_var_GCJ=no
17447 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17449 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17450 else
17451 ld_shlibs_GCJ=no
17454 esac
17456 if test "$ld_shlibs_GCJ" = no; then
17457 runpath_var=
17458 hardcode_libdir_flag_spec_GCJ=
17459 export_dynamic_flag_spec_GCJ=
17460 whole_archive_flag_spec_GCJ=
17462 else
17463 # PORTME fill in a description of your system's linker (not GNU ld)
17464 case $host_os in
17465 aix3*)
17466 allow_undefined_flag_GCJ=unsupported
17467 always_export_symbols_GCJ=yes
17468 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'
17469 # Note: this linker hardcodes the directories in LIBPATH if there
17470 # are no directories specified by -L.
17471 hardcode_minus_L_GCJ=yes
17472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17473 # Neither direct hardcoding nor static linking is supported with a
17474 # broken collect2.
17475 hardcode_direct_GCJ=unsupported
17479 aix4* | aix5*)
17480 if test "$host_cpu" = ia64; then
17481 # On IA64, the linker does run time linking by default, so we don't
17482 # have to do anything special.
17483 aix_use_runtimelinking=no
17484 exp_sym_flag='-Bexport'
17485 no_entry_flag=""
17486 else
17487 # If we're using GNU nm, then we don't want the "-C" option.
17488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17489 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17490 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17491 else
17492 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'
17494 aix_use_runtimelinking=no
17496 # Test if we are trying to use run time linking or normal
17497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17498 # need to do runtime linking.
17499 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17500 for ld_flag in $LDFLAGS; do
17501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17502 aix_use_runtimelinking=yes
17503 break
17505 done
17507 esac
17509 exp_sym_flag='-bexport'
17510 no_entry_flag='-bnoentry'
17513 # When large executables or shared objects are built, AIX ld can
17514 # have problems creating the table of contents. If linking a library
17515 # or program results in "error TOC overflow" add -mminimal-toc to
17516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17519 archive_cmds_GCJ=''
17520 hardcode_direct_GCJ=yes
17521 hardcode_libdir_separator_GCJ=':'
17522 link_all_deplibs_GCJ=yes
17524 if test "$GCC" = yes; then
17525 case $host_os in aix4.[012]|aix4.[012].*)
17526 # We only want to do this on AIX 4.2 and lower, the check
17527 # below for broken collect2 doesn't work under 4.3+
17528 collect2name=`${CC} -print-prog-name=collect2`
17529 if test -f "$collect2name" && \
17530 strings "$collect2name" | grep resolve_lib_name >/dev/null
17531 then
17532 # We have reworked collect2
17534 else
17535 # We have old collect2
17536 hardcode_direct_GCJ=unsupported
17537 # It fails to find uninstalled libraries when the uninstalled
17538 # path is not listed in the libpath. Setting hardcode_minus_L
17539 # to unsupported forces relinking
17540 hardcode_minus_L_GCJ=yes
17541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17542 hardcode_libdir_separator_GCJ=
17545 esac
17546 shared_flag='-shared'
17547 if test "$aix_use_runtimelinking" = yes; then
17548 shared_flag="$shared_flag "'${wl}-G'
17550 else
17551 # not using gcc
17552 if test "$host_cpu" = ia64; then
17553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17554 # chokes on -Wl,-G. The following line is correct:
17555 shared_flag='-G'
17556 else
17557 if test "$aix_use_runtimelinking" = yes; then
17558 shared_flag='${wl}-G'
17559 else
17560 shared_flag='${wl}-bM:SRE'
17565 # It seems that -bexpall does not export symbols beginning with
17566 # underscore (_), so it is better to generate a list of symbols to export.
17567 always_export_symbols_GCJ=yes
17568 if test "$aix_use_runtimelinking" = yes; then
17569 # Warning - without using the other runtime loading flags (-brtl),
17570 # -berok will link without error, but may produce a broken library.
17571 allow_undefined_flag_GCJ='-berok'
17572 # Determine the default libpath from the value encoded in an empty executable.
17573 cat >conftest.$ac_ext <<_ACEOF
17574 /* confdefs.h. */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17581 main ()
17585 return 0;
17587 _ACEOF
17588 rm -f conftest.$ac_objext conftest$ac_exeext
17589 if { (ac_try="$ac_link"
17590 case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_link") 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } && {
17602 test -z "$ac_c_werror_flag" ||
17603 test ! -s conftest.err
17604 } && test -s conftest$ac_exeext &&
17605 $as_test_x conftest$ac_exeext; then
17607 lt_aix_libpath_sed='
17608 /Import File Strings/,/^$/ {
17609 /^0/ {
17610 s/^0 *\(.*\)$/\1/
17614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17615 # Check for a 64-bit object if we didn't find anything.
17616 if test -z "$aix_libpath"; then
17617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17619 else
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627 conftest$ac_exeext conftest.$ac_ext
17628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17630 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17631 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17632 else
17633 if test "$host_cpu" = ia64; then
17634 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17635 allow_undefined_flag_GCJ="-z nodefs"
17636 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"
17637 else
17638 # Determine the default libpath from the value encoded in an empty executable.
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17647 main ()
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17673 lt_aix_libpath_sed='
17674 /Import File Strings/,/^$/ {
17675 /^0/ {
17676 s/^0 *\(.*\)$/\1/
17680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17681 # Check for a 64-bit object if we didn't find anything.
17682 if test -z "$aix_libpath"; then
17683 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17685 else
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17693 conftest$ac_exeext conftest.$ac_ext
17694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17696 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17697 # Warning - without using the other run time loading flags,
17698 # -berok will link without error, but may produce a broken library.
17699 no_undefined_flag_GCJ=' ${wl}-bernotok'
17700 allow_undefined_flag_GCJ=' ${wl}-berok'
17701 # Exported symbols can be pulled into shared objects from archives
17702 whole_archive_flag_spec_GCJ='$convenience'
17703 archive_cmds_need_lc_GCJ=yes
17704 # This is similar to how AIX traditionally builds its shared libraries.
17705 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'
17710 amigaos*)
17711 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)'
17712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17713 hardcode_minus_L_GCJ=yes
17714 # see comment about different semantics on the GNU ld section
17715 ld_shlibs_GCJ=no
17718 bsdi[45]*)
17719 export_dynamic_flag_spec_GCJ=-rdynamic
17722 cygwin* | mingw* | pw32*)
17723 # When not using gcc, we currently assume that we are using
17724 # Microsoft Visual C++.
17725 # hardcode_libdir_flag_spec is actually meaningless, as there is
17726 # no search path for DLLs.
17727 hardcode_libdir_flag_spec_GCJ=' '
17728 allow_undefined_flag_GCJ=unsupported
17729 # Tell ltmain to make .lib files, not .a files.
17730 libext=lib
17731 # Tell ltmain to make .dll files, not .so files.
17732 shrext_cmds=".dll"
17733 # FIXME: Setting linknames here is a bad hack.
17734 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17735 # The linker will automatically build a .lib file if we build a DLL.
17736 old_archive_From_new_cmds_GCJ='true'
17737 # FIXME: Should let the user specify the lib program.
17738 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17739 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17740 enable_shared_with_static_runtimes_GCJ=yes
17743 darwin* | rhapsody*)
17744 case $host_os in
17745 rhapsody* | darwin1.[012])
17746 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17748 *) # Darwin 1.3 on
17749 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17750 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17751 else
17752 case ${MACOSX_DEPLOYMENT_TARGET} in
17753 10.[012])
17754 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17756 10.*)
17757 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17759 esac
17762 esac
17763 archive_cmds_need_lc_GCJ=no
17764 hardcode_direct_GCJ=no
17765 hardcode_automatic_GCJ=yes
17766 hardcode_shlibpath_var_GCJ=unsupported
17767 whole_archive_flag_spec_GCJ=''
17768 link_all_deplibs_GCJ=yes
17769 if test "$GCC" = yes ; then
17770 output_verbose_link_cmd='echo'
17771 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17772 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17773 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17774 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17775 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17776 else
17777 case $cc_basename in
17778 xlc*)
17779 output_verbose_link_cmd='echo'
17780 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17781 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17782 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17783 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17784 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17787 ld_shlibs_GCJ=no
17789 esac
17793 dgux*)
17794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17796 hardcode_shlibpath_var_GCJ=no
17799 freebsd1*)
17800 ld_shlibs_GCJ=no
17803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17804 # support. Future versions do this automatically, but an explicit c++rt0.o
17805 # does not break anything, and helps significantly (at the cost of a little
17806 # extra space).
17807 freebsd2.2*)
17808 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17810 hardcode_direct_GCJ=yes
17811 hardcode_shlibpath_var_GCJ=no
17814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17815 freebsd2*)
17816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17817 hardcode_direct_GCJ=yes
17818 hardcode_minus_L_GCJ=yes
17819 hardcode_shlibpath_var_GCJ=no
17822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17823 freebsd* | dragonfly*)
17824 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17826 hardcode_direct_GCJ=yes
17827 hardcode_shlibpath_var_GCJ=no
17830 hpux9*)
17831 if test "$GCC" = yes; then
17832 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'
17833 else
17834 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'
17836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17837 hardcode_libdir_separator_GCJ=:
17838 hardcode_direct_GCJ=yes
17840 # hardcode_minus_L: Not really in the search PATH,
17841 # but as the default location of the library.
17842 hardcode_minus_L_GCJ=yes
17843 export_dynamic_flag_spec_GCJ='${wl}-E'
17846 hpux10*)
17847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17848 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17849 else
17850 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17852 if test "$with_gnu_ld" = no; then
17853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17854 hardcode_libdir_separator_GCJ=:
17856 hardcode_direct_GCJ=yes
17857 export_dynamic_flag_spec_GCJ='${wl}-E'
17859 # hardcode_minus_L: Not really in the search PATH,
17860 # but as the default location of the library.
17861 hardcode_minus_L_GCJ=yes
17865 hpux11*)
17866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17867 case $host_cpu in
17868 hppa*64*)
17869 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17871 ia64*)
17872 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17875 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17877 esac
17878 else
17879 case $host_cpu in
17880 hppa*64*)
17881 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883 ia64*)
17884 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889 esac
17891 if test "$with_gnu_ld" = no; then
17892 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17893 hardcode_libdir_separator_GCJ=:
17895 case $host_cpu in
17896 hppa*64*|ia64*)
17897 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17898 hardcode_direct_GCJ=no
17899 hardcode_shlibpath_var_GCJ=no
17902 hardcode_direct_GCJ=yes
17903 export_dynamic_flag_spec_GCJ='${wl}-E'
17905 # hardcode_minus_L: Not really in the search PATH,
17906 # but as the default location of the library.
17907 hardcode_minus_L_GCJ=yes
17909 esac
17913 irix5* | irix6* | nonstopux*)
17914 if test "$GCC" = yes; then
17915 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17916 else
17917 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17918 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17920 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17921 hardcode_libdir_separator_GCJ=:
17922 link_all_deplibs_GCJ=yes
17925 netbsd* | netbsdelf*-gnu)
17926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17928 else
17929 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17931 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17932 hardcode_direct_GCJ=yes
17933 hardcode_shlibpath_var_GCJ=no
17936 newsos6)
17937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct_GCJ=yes
17939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17940 hardcode_libdir_separator_GCJ=:
17941 hardcode_shlibpath_var_GCJ=no
17944 openbsd*)
17945 if test -f /usr/libexec/ld.so; then
17946 hardcode_direct_GCJ=yes
17947 hardcode_shlibpath_var_GCJ=no
17948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17949 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17950 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17952 export_dynamic_flag_spec_GCJ='${wl}-E'
17953 else
17954 case $host_os in
17955 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17957 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17960 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17961 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17963 esac
17965 else
17966 ld_shlibs_GCJ=no
17970 os2*)
17971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17972 hardcode_minus_L_GCJ=yes
17973 allow_undefined_flag_GCJ=unsupported
17974 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'
17975 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17978 osf3*)
17979 if test "$GCC" = yes; then
17980 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17981 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17982 else
17983 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17984 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17987 hardcode_libdir_separator_GCJ=:
17990 osf4* | osf5*) # as osf3* with the addition of -msym flag
17991 if test "$GCC" = yes; then
17992 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17993 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17995 else
17996 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17998 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17999 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18001 # Both c and cxx compiler support -rpath directly
18002 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18004 hardcode_libdir_separator_GCJ=:
18007 solaris*)
18008 no_undefined_flag_GCJ=' -z text'
18009 if test "$GCC" = yes; then
18010 wlarc='${wl}'
18011 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18013 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18014 else
18015 wlarc=''
18016 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18021 hardcode_shlibpath_var_GCJ=no
18022 case $host_os in
18023 solaris2.[0-5] | solaris2.[0-5].*) ;;
18025 # The compiler driver will combine and reorder linker options,
18026 # but understands `-z linker_flag'. GCC discards it without `$wl',
18027 # but is careful enough not to reorder.
18028 # Supported since Solaris 2.6 (maybe 2.5.1?)
18029 if test "$GCC" = yes; then
18030 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18031 else
18032 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18035 esac
18036 link_all_deplibs_GCJ=yes
18039 sunos4*)
18040 if test "x$host_vendor" = xsequent; then
18041 # Use $CC to link under sequent, because it throws in some extra .o
18042 # files that make .init and .fini sections work.
18043 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18044 else
18045 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18048 hardcode_direct_GCJ=yes
18049 hardcode_minus_L_GCJ=yes
18050 hardcode_shlibpath_var_GCJ=no
18053 sysv4)
18054 case $host_vendor in
18055 sni)
18056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057 hardcode_direct_GCJ=yes # is this really true???
18059 siemens)
18060 ## LD is ld it makes a PLAMLIB
18061 ## CC just makes a GrossModule.
18062 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18063 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18064 hardcode_direct_GCJ=no
18066 motorola)
18067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18068 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18070 esac
18071 runpath_var='LD_RUN_PATH'
18072 hardcode_shlibpath_var_GCJ=no
18075 sysv4.3*)
18076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_shlibpath_var_GCJ=no
18078 export_dynamic_flag_spec_GCJ='-Bexport'
18081 sysv4*MP*)
18082 if test -d /usr/nec; then
18083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084 hardcode_shlibpath_var_GCJ=no
18085 runpath_var=LD_RUN_PATH
18086 hardcode_runpath_var=yes
18087 ld_shlibs_GCJ=yes
18091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18092 no_undefined_flag_GCJ='${wl}-z,text'
18093 archive_cmds_need_lc_GCJ=no
18094 hardcode_shlibpath_var_GCJ=no
18095 runpath_var='LD_RUN_PATH'
18097 if test "$GCC" = yes; then
18098 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 else
18101 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 sysv5* | sco3.2v5* | sco5v6*)
18107 # Note: We can NOT use -z defs as we might desire, because we do not
18108 # link with -lc, and that would cause any symbols used from libc to
18109 # always be unresolved, which means just about no library would
18110 # ever link correctly. If we're not using GNU ld we use -z text
18111 # though, which does catch some bad symbols but isn't as heavy-handed
18112 # as -z defs.
18113 no_undefined_flag_GCJ='${wl}-z,text'
18114 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18115 archive_cmds_need_lc_GCJ=no
18116 hardcode_shlibpath_var_GCJ=no
18117 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18118 hardcode_libdir_separator_GCJ=':'
18119 link_all_deplibs_GCJ=yes
18120 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18121 runpath_var='LD_RUN_PATH'
18123 if test "$GCC" = yes; then
18124 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18125 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 else
18127 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 uts4*)
18133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18135 hardcode_shlibpath_var_GCJ=no
18139 ld_shlibs_GCJ=no
18141 esac
18144 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18145 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18146 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18149 # Do we need to explicitly link libc?
18151 case "x$archive_cmds_need_lc_GCJ" in
18152 x|xyes)
18153 # Assume -lc should be added
18154 archive_cmds_need_lc_GCJ=yes
18156 if test "$enable_shared" = yes && test "$GCC" = yes; then
18157 case $archive_cmds_GCJ in
18158 *'~'*)
18159 # FIXME: we may have to deal with multi-command sequences.
18161 '$CC '*)
18162 # Test whether the compiler implicitly links with -lc since on some
18163 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18164 # to ld, don't add -lc before -lgcc.
18165 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18166 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18167 $rm conftest*
18168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18171 (eval $ac_compile) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } 2>conftest.err; then
18175 soname=conftest
18176 lib=conftest
18177 libobjs=conftest.$ac_objext
18178 deplibs=
18179 wl=$lt_prog_compiler_wl_GCJ
18180 pic_flag=$lt_prog_compiler_pic_GCJ
18181 compiler_flags=-v
18182 linker_flags=-v
18183 verstring=
18184 output_objdir=.
18185 libname=conftest
18186 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18187 allow_undefined_flag_GCJ=
18188 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18189 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }
18193 then
18194 archive_cmds_need_lc_GCJ=no
18195 else
18196 archive_cmds_need_lc_GCJ=yes
18198 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18199 else
18200 cat conftest.err 1>&5
18202 $rm conftest*
18203 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18204 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18206 esac
18209 esac
18211 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18212 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18213 library_names_spec=
18214 libname_spec='lib$name'
18215 soname_spec=
18216 shrext_cmds=".so"
18217 postinstall_cmds=
18218 postuninstall_cmds=
18219 finish_cmds=
18220 finish_eval=
18221 shlibpath_var=
18222 shlibpath_overrides_runpath=unknown
18223 version_type=none
18224 dynamic_linker="$host_os ld.so"
18225 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18227 need_lib_prefix=unknown
18228 hardcode_into_libs=no
18230 # when you set need_version to no, make sure it does not cause -set_version
18231 # flags to be left without arguments
18232 need_version=unknown
18234 case $host_os in
18235 aix3*)
18236 version_type=linux
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18238 shlibpath_var=LIBPATH
18240 # AIX 3 has no versioning support, so we append a major version to the name.
18241 soname_spec='${libname}${release}${shared_ext}$major'
18244 aix4* | aix5*)
18245 version_type=linux
18246 need_lib_prefix=no
18247 need_version=no
18248 hardcode_into_libs=yes
18249 if test "$host_cpu" = ia64; then
18250 # AIX 5 supports IA64
18251 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 else
18254 # With GCC up to 2.95.x, collect2 would create an import file
18255 # for dependence libraries. The import file would start with
18256 # the line `#! .'. This would cause the generated library to
18257 # depend on `.', always an invalid library. This was fixed in
18258 # development snapshots of GCC prior to 3.0.
18259 case $host_os in
18260 aix4 | aix4.[01] | aix4.[01].*)
18261 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18262 echo ' yes '
18263 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18265 else
18266 can_build_shared=no
18269 esac
18270 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18271 # soname into executable. Probably we can add versioning support to
18272 # collect2, so additional links can be useful in future.
18273 if test "$aix_use_runtimelinking" = yes; then
18274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18275 # instead of lib<name>.a to let people know that these are not
18276 # typical AIX shared libraries.
18277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278 else
18279 # We preserve .a as extension for shared libraries through AIX4.2
18280 # and later when we are not doing run time linking.
18281 library_names_spec='${libname}${release}.a $libname.a'
18282 soname_spec='${libname}${release}${shared_ext}$major'
18284 shlibpath_var=LIBPATH
18288 amigaos*)
18289 library_names_spec='$libname.ixlibrary $libname.a'
18290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18291 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'
18294 beos*)
18295 library_names_spec='${libname}${shared_ext}'
18296 dynamic_linker="$host_os ld.so"
18297 shlibpath_var=LIBRARY_PATH
18300 bsdi[45]*)
18301 version_type=linux
18302 need_version=no
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18309 # the default ld.so.conf also contains /usr/contrib/lib and
18310 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18311 # libtool to hard-code these into programs
18314 cygwin* | mingw* | pw32*)
18315 version_type=windows
18316 shrext_cmds=".dll"
18317 need_version=no
18318 need_lib_prefix=no
18320 case $GCC,$host_os in
18321 yes,cygwin* | yes,mingw* | yes,pw32*)
18322 library_names_spec='$libname.dll.a'
18323 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18324 postinstall_cmds='base_file=`basename \${file}`~
18325 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18326 dldir=$destdir/`dirname \$dlpath`~
18327 test -d \$dldir || mkdir -p \$dldir~
18328 $install_prog $dir/$dlname \$dldir/$dlname~
18329 chmod a+x \$dldir/$dlname'
18330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18331 dlpath=$dir/\$dldll~
18332 $rm \$dlpath'
18333 shlibpath_overrides_runpath=yes
18335 case $host_os in
18336 cygwin*)
18337 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18338 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18339 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18341 mingw*)
18342 # MinGW DLLs use traditional 'lib' prefix
18343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18345 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18346 # It is most probably a Windows format PATH printed by
18347 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18348 # path with ; separators, and with drive letters. We can handle the
18349 # drive letters (cygwin fileutils understands them), so leave them,
18350 # especially as we might pass files found there to a mingw objdump,
18351 # which wouldn't understand a cygwinified path. Ahh.
18352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18353 else
18354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18357 pw32*)
18358 # pw32 DLLs use 'pw' prefix rather than 'lib'
18359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18361 esac
18365 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18367 esac
18368 dynamic_linker='Win32 ld.exe'
18369 # FIXME: first we should search . and the directory the executable is in
18370 shlibpath_var=PATH
18373 darwin* | rhapsody*)
18374 dynamic_linker="$host_os dyld"
18375 version_type=darwin
18376 need_lib_prefix=no
18377 need_version=no
18378 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18379 soname_spec='${libname}${release}${major}$shared_ext'
18380 shlibpath_overrides_runpath=yes
18381 shlibpath_var=DYLD_LIBRARY_PATH
18382 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18387 dgux*)
18388 version_type=linux
18389 need_lib_prefix=no
18390 need_version=no
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 shlibpath_var=LD_LIBRARY_PATH
18396 freebsd1*)
18397 dynamic_linker=no
18400 freebsd* | dragonfly*)
18401 # DragonFly does not have aout. When/if they implement a new
18402 # versioning mechanism, adjust this.
18403 if test -x /usr/bin/objformat; then
18404 objformat=`/usr/bin/objformat`
18405 else
18406 case $host_os in
18407 freebsd[123]*) objformat=aout ;;
18408 *) objformat=elf ;;
18409 esac
18411 version_type=freebsd-$objformat
18412 case $version_type in
18413 freebsd-elf*)
18414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18415 need_version=no
18416 need_lib_prefix=no
18418 freebsd-*)
18419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18420 need_version=yes
18422 esac
18423 shlibpath_var=LD_LIBRARY_PATH
18424 case $host_os in
18425 freebsd2*)
18426 shlibpath_overrides_runpath=yes
18428 freebsd3.[01]* | freebsdelf3.[01]*)
18429 shlibpath_overrides_runpath=yes
18430 hardcode_into_libs=yes
18432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18434 shlibpath_overrides_runpath=no
18435 hardcode_into_libs=yes
18437 *) # from 4.6 on, and DragonFly
18438 shlibpath_overrides_runpath=yes
18439 hardcode_into_libs=yes
18441 esac
18444 gnu*)
18445 version_type=linux
18446 need_lib_prefix=no
18447 need_version=no
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 shlibpath_var=LD_LIBRARY_PATH
18451 hardcode_into_libs=yes
18454 hpux9* | hpux10* | hpux11*)
18455 # Give a soname corresponding to the major version so that dld.sl refuses to
18456 # link against other versions.
18457 version_type=sunos
18458 need_lib_prefix=no
18459 need_version=no
18460 case $host_cpu in
18461 ia64*)
18462 shrext_cmds='.so'
18463 hardcode_into_libs=yes
18464 dynamic_linker="$host_os dld.so"
18465 shlibpath_var=LD_LIBRARY_PATH
18466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18468 soname_spec='${libname}${release}${shared_ext}$major'
18469 if test "X$HPUX_IA64_MODE" = X32; then
18470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18471 else
18472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18476 hppa*64*)
18477 shrext_cmds='.sl'
18478 hardcode_into_libs=yes
18479 dynamic_linker="$host_os dld.sl"
18480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18488 shrext_cmds='.sl'
18489 dynamic_linker="$host_os dld.sl"
18490 shlibpath_var=SHLIB_PATH
18491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18495 esac
18496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18497 postinstall_cmds='chmod 555 $lib'
18500 interix[3-9]*)
18501 version_type=linux
18502 need_lib_prefix=no
18503 need_version=no
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18505 soname_spec='${libname}${release}${shared_ext}$major'
18506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18507 shlibpath_var=LD_LIBRARY_PATH
18508 shlibpath_overrides_runpath=no
18509 hardcode_into_libs=yes
18512 irix5* | irix6* | nonstopux*)
18513 case $host_os in
18514 nonstopux*) version_type=nonstopux ;;
18516 if test "$lt_cv_prog_gnu_ld" = yes; then
18517 version_type=linux
18518 else
18519 version_type=irix
18520 fi ;;
18521 esac
18522 need_lib_prefix=no
18523 need_version=no
18524 soname_spec='${libname}${release}${shared_ext}$major'
18525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18526 case $host_os in
18527 irix5* | nonstopux*)
18528 libsuff= shlibsuff=
18531 case $LD in # libtool.m4 will add one of these switches to LD
18532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18533 libsuff= shlibsuff= libmagic=32-bit;;
18534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18535 libsuff=32 shlibsuff=N32 libmagic=N32;;
18536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18538 *) libsuff= shlibsuff= libmagic=never-match;;
18539 esac
18541 esac
18542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18543 shlibpath_overrides_runpath=no
18544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18546 hardcode_into_libs=yes
18549 # No shared lib support for Linux oldld, aout, or coff.
18550 linux*oldld* | linux*aout* | linux*coff*)
18551 dynamic_linker=no
18554 # This must be Linux ELF.
18555 linux* | k*bsd*-gnu)
18556 version_type=linux
18557 need_lib_prefix=no
18558 need_version=no
18559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560 soname_spec='${libname}${release}${shared_ext}$major'
18561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18562 shlibpath_var=LD_LIBRARY_PATH
18563 shlibpath_overrides_runpath=no
18564 # This implies no fast_install, which is unacceptable.
18565 # Some rework will be needed to allow for fast_install
18566 # before this can be enabled.
18567 hardcode_into_libs=yes
18569 # Append ld.so.conf contents to the search path
18570 if test -f /etc/ld.so.conf; then
18571 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;/^$/d' | tr '\n' ' '`
18572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18575 # We used to test for /lib/ld.so.1 and disable shared libraries on
18576 # powerpc, because MkLinux only supported shared libraries with the
18577 # GNU dynamic linker. Since this was broken with cross compilers,
18578 # most powerpc-linux boxes support dynamic linking these days and
18579 # people can always --disable-shared, the test was removed, and we
18580 # assume the GNU/Linux dynamic linker is in use.
18581 dynamic_linker='GNU/Linux ld.so'
18584 netbsdelf*-gnu)
18585 version_type=linux
18586 need_lib_prefix=no
18587 need_version=no
18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18589 soname_spec='${libname}${release}${shared_ext}$major'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 shlibpath_overrides_runpath=no
18592 hardcode_into_libs=yes
18593 dynamic_linker='NetBSD ld.elf_so'
18596 netbsd*)
18597 version_type=sunos
18598 need_lib_prefix=no
18599 need_version=no
18600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18603 dynamic_linker='NetBSD (a.out) ld.so'
18604 else
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18606 soname_spec='${libname}${release}${shared_ext}$major'
18607 dynamic_linker='NetBSD ld.elf_so'
18609 shlibpath_var=LD_LIBRARY_PATH
18610 shlibpath_overrides_runpath=yes
18611 hardcode_into_libs=yes
18614 newsos6)
18615 version_type=linux
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617 shlibpath_var=LD_LIBRARY_PATH
18618 shlibpath_overrides_runpath=yes
18621 nto-qnx*)
18622 version_type=linux
18623 need_lib_prefix=no
18624 need_version=no
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 shlibpath_overrides_runpath=yes
18631 openbsd*)
18632 version_type=sunos
18633 sys_lib_dlsearch_path_spec="/usr/lib"
18634 need_lib_prefix=no
18635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18636 case $host_os in
18637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18638 *) need_version=no ;;
18639 esac
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18644 case $host_os in
18645 openbsd2.[89] | openbsd2.[89].*)
18646 shlibpath_overrides_runpath=no
18649 shlibpath_overrides_runpath=yes
18651 esac
18652 else
18653 shlibpath_overrides_runpath=yes
18657 os2*)
18658 libname_spec='$name'
18659 shrext_cmds=".dll"
18660 need_lib_prefix=no
18661 library_names_spec='$libname${shared_ext} $libname.a'
18662 dynamic_linker='OS/2 ld.exe'
18663 shlibpath_var=LIBPATH
18666 osf3* | osf4* | osf5*)
18667 version_type=osf
18668 need_lib_prefix=no
18669 need_version=no
18670 soname_spec='${libname}${release}${shared_ext}$major'
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 shlibpath_var=LD_LIBRARY_PATH
18673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18677 rdos*)
18678 dynamic_linker=no
18681 solaris*)
18682 version_type=linux
18683 need_lib_prefix=no
18684 need_version=no
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 soname_spec='${libname}${release}${shared_ext}$major'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18689 hardcode_into_libs=yes
18690 # ldd complains unless libraries are executable
18691 postinstall_cmds='chmod +x $lib'
18694 sunos4*)
18695 version_type=sunos
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18698 shlibpath_var=LD_LIBRARY_PATH
18699 shlibpath_overrides_runpath=yes
18700 if test "$with_gnu_ld" = yes; then
18701 need_lib_prefix=no
18703 need_version=yes
18706 sysv4 | sysv4.3*)
18707 version_type=linux
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 case $host_vendor in
18712 sni)
18713 shlibpath_overrides_runpath=no
18714 need_lib_prefix=no
18715 export_dynamic_flag_spec='${wl}-Blargedynsym'
18716 runpath_var=LD_RUN_PATH
18718 siemens)
18719 need_lib_prefix=no
18721 motorola)
18722 need_lib_prefix=no
18723 need_version=no
18724 shlibpath_overrides_runpath=no
18725 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18727 esac
18730 sysv4*MP*)
18731 if test -d /usr/nec ;then
18732 version_type=linux
18733 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18734 soname_spec='$libname${shared_ext}.$major'
18735 shlibpath_var=LD_LIBRARY_PATH
18739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18740 version_type=freebsd-elf
18741 need_lib_prefix=no
18742 need_version=no
18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 hardcode_into_libs=yes
18747 if test "$with_gnu_ld" = yes; then
18748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18749 shlibpath_overrides_runpath=no
18750 else
18751 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18752 shlibpath_overrides_runpath=yes
18753 case $host_os in
18754 sco3.2v5*)
18755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18757 esac
18759 sys_lib_dlsearch_path_spec='/usr/lib'
18762 uts4*)
18763 version_type=linux
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 shlibpath_var=LD_LIBRARY_PATH
18770 dynamic_linker=no
18772 esac
18773 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18774 echo "${ECHO_T}$dynamic_linker" >&6; }
18775 test "$dynamic_linker" = no && can_build_shared=no
18777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18778 if test "$GCC" = yes; then
18779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18782 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18784 hardcode_action_GCJ=
18785 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18786 test -n "$runpath_var_GCJ" || \
18787 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18789 # We can hardcode non-existant directories.
18790 if test "$hardcode_direct_GCJ" != no &&
18791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18792 # have to relink, otherwise we might link with an installed library
18793 # when we should be linking with a yet-to-be-installed one
18794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18795 test "$hardcode_minus_L_GCJ" != no; then
18796 # Linking always hardcodes the temporary library directory.
18797 hardcode_action_GCJ=relink
18798 else
18799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18800 hardcode_action_GCJ=immediate
18802 else
18803 # We cannot hardcode anything, or else we can only hardcode existing
18804 # directories.
18805 hardcode_action_GCJ=unsupported
18807 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18808 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18810 if test "$hardcode_action_GCJ" = relink; then
18811 # Fast installation is not supported
18812 enable_fast_install=no
18813 elif test "$shlibpath_overrides_runpath" = yes ||
18814 test "$enable_shared" = no; then
18815 # Fast installation is not necessary
18816 enable_fast_install=needless
18820 # The else clause should only fire when bootstrapping the
18821 # libtool distribution, otherwise you forgot to ship ltmain.sh
18822 # with your package, and you will get complaints that there are
18823 # no rules to generate ltmain.sh.
18824 if test -f "$ltmain"; then
18825 # See if we are running on zsh, and set the options which allow our commands through
18826 # without removal of \ escapes.
18827 if test -n "${ZSH_VERSION+set}" ; then
18828 setopt NO_GLOB_SUBST
18830 # Now quote all the things that may contain metacharacters while being
18831 # careful not to overquote the AC_SUBSTed values. We take copies of the
18832 # variables and quote the copies for generation of the libtool script.
18833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18834 SED SHELL STRIP \
18835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18837 deplibs_check_method reload_flag reload_cmds need_locks \
18838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18839 lt_cv_sys_global_symbol_to_c_name_address \
18840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18841 old_postinstall_cmds old_postuninstall_cmds \
18842 compiler_GCJ \
18843 CC_GCJ \
18844 LD_GCJ \
18845 lt_prog_compiler_wl_GCJ \
18846 lt_prog_compiler_pic_GCJ \
18847 lt_prog_compiler_static_GCJ \
18848 lt_prog_compiler_no_builtin_flag_GCJ \
18849 export_dynamic_flag_spec_GCJ \
18850 thread_safe_flag_spec_GCJ \
18851 whole_archive_flag_spec_GCJ \
18852 enable_shared_with_static_runtimes_GCJ \
18853 old_archive_cmds_GCJ \
18854 old_archive_from_new_cmds_GCJ \
18855 predep_objects_GCJ \
18856 postdep_objects_GCJ \
18857 predeps_GCJ \
18858 postdeps_GCJ \
18859 compiler_lib_search_path_GCJ \
18860 archive_cmds_GCJ \
18861 archive_expsym_cmds_GCJ \
18862 postinstall_cmds_GCJ \
18863 postuninstall_cmds_GCJ \
18864 old_archive_from_expsyms_cmds_GCJ \
18865 allow_undefined_flag_GCJ \
18866 no_undefined_flag_GCJ \
18867 export_symbols_cmds_GCJ \
18868 hardcode_libdir_flag_spec_GCJ \
18869 hardcode_libdir_flag_spec_ld_GCJ \
18870 hardcode_libdir_separator_GCJ \
18871 hardcode_automatic_GCJ \
18872 module_cmds_GCJ \
18873 module_expsym_cmds_GCJ \
18874 lt_cv_prog_compiler_c_o_GCJ \
18875 fix_srcfile_path_GCJ \
18876 exclude_expsyms_GCJ \
18877 include_expsyms_GCJ; do
18879 case $var in
18880 old_archive_cmds_GCJ | \
18881 old_archive_from_new_cmds_GCJ | \
18882 archive_cmds_GCJ | \
18883 archive_expsym_cmds_GCJ | \
18884 module_cmds_GCJ | \
18885 module_expsym_cmds_GCJ | \
18886 old_archive_from_expsyms_cmds_GCJ | \
18887 export_symbols_cmds_GCJ | \
18888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18889 postinstall_cmds | postuninstall_cmds | \
18890 old_postinstall_cmds | old_postuninstall_cmds | \
18891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18892 # Double-quote double-evaled strings.
18893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18898 esac
18899 done
18901 case $lt_echo in
18902 *'\$0 --fallback-echo"')
18903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18905 esac
18907 cfgfile="$ofile"
18909 cat <<__EOF__ >> "$cfgfile"
18910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18914 # Shell to use when invoking shell scripts.
18915 SHELL=$lt_SHELL
18917 # Whether or not to build shared libraries.
18918 build_libtool_libs=$enable_shared
18920 # Whether or not to build static libraries.
18921 build_old_libs=$enable_static
18923 # Whether or not to add -lc for building shared libraries.
18924 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18926 # Whether or not to disallow shared libs when runtime libs are static
18927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18929 # Whether or not to optimize for fast installation.
18930 fast_install=$enable_fast_install
18932 # The host system.
18933 host_alias=$host_alias
18934 host=$host
18935 host_os=$host_os
18937 # The build system.
18938 build_alias=$build_alias
18939 build=$build
18940 build_os=$build_os
18942 # An echo program that does not interpret backslashes.
18943 echo=$lt_echo
18945 # The archiver.
18946 AR=$lt_AR
18947 AR_FLAGS=$lt_AR_FLAGS
18949 # A C compiler.
18950 LTCC=$lt_LTCC
18952 # LTCC compiler flags.
18953 LTCFLAGS=$lt_LTCFLAGS
18955 # A language-specific compiler.
18956 CC=$lt_compiler_GCJ
18958 # Is the compiler the GNU C compiler?
18959 with_gcc=$GCC_GCJ
18961 # An ERE matcher.
18962 EGREP=$lt_EGREP
18964 # The linker used to build libraries.
18965 LD=$lt_LD_GCJ
18967 # Whether we need hard or soft links.
18968 LN_S=$lt_LN_S
18970 # A BSD-compatible nm program.
18971 NM=$lt_NM
18973 # A symbol stripping program
18974 STRIP=$lt_STRIP
18976 # Used to examine libraries when file_magic_cmd begins "file"
18977 MAGIC_CMD=$MAGIC_CMD
18979 # Used on cygwin: DLL creation program.
18980 DLLTOOL="$DLLTOOL"
18982 # Used on cygwin: object dumper.
18983 OBJDUMP="$OBJDUMP"
18985 # Used on cygwin: assembler.
18986 AS="$AS"
18988 # The name of the directory that contains temporary libtool files.
18989 objdir=$objdir
18991 # How to create reloadable object files.
18992 reload_flag=$lt_reload_flag
18993 reload_cmds=$lt_reload_cmds
18995 # How to pass a linker flag through the compiler.
18996 wl=$lt_lt_prog_compiler_wl_GCJ
18998 # Object file suffix (normally "o").
18999 objext="$ac_objext"
19001 # Old archive suffix (normally "a").
19002 libext="$libext"
19004 # Shared library suffix (normally ".so").
19005 shrext_cmds='$shrext_cmds'
19007 # Executable file suffix (normally "").
19008 exeext="$exeext"
19010 # Additional compiler flags for building library objects.
19011 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19012 pic_mode=$pic_mode
19014 # What is the maximum length of a command?
19015 max_cmd_len=$lt_cv_sys_max_cmd_len
19017 # Does compiler simultaneously support -c and -o options?
19018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19020 # Must we lock files when doing compilation?
19021 need_locks=$lt_need_locks
19023 # Do we need the lib prefix for modules?
19024 need_lib_prefix=$need_lib_prefix
19026 # Do we need a version for libraries?
19027 need_version=$need_version
19029 # Whether dlopen is supported.
19030 dlopen_support=$enable_dlopen
19032 # Whether dlopen of programs is supported.
19033 dlopen_self=$enable_dlopen_self
19035 # Whether dlopen of statically linked programs is supported.
19036 dlopen_self_static=$enable_dlopen_self_static
19038 # Compiler flag to prevent dynamic linking.
19039 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19041 # Compiler flag to turn off builtin functions.
19042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19044 # Compiler flag to allow reflexive dlopens.
19045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19047 # Compiler flag to generate shared objects directly from archives.
19048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19050 # Compiler flag to generate thread-safe objects.
19051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19053 # Library versioning type.
19054 version_type=$version_type
19056 # Format of library name prefix.
19057 libname_spec=$lt_libname_spec
19059 # List of archive names. First name is the real one, the rest are links.
19060 # The last name is the one that the linker finds with -lNAME.
19061 library_names_spec=$lt_library_names_spec
19063 # The coded name of the library, if different from the real name.
19064 soname_spec=$lt_soname_spec
19066 # Commands used to build and install an old-style archive.
19067 RANLIB=$lt_RANLIB
19068 old_archive_cmds=$lt_old_archive_cmds_GCJ
19069 old_postinstall_cmds=$lt_old_postinstall_cmds
19070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19072 # Create an old-style archive from a shared archive.
19073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19075 # Create a temporary old-style archive to link instead of a shared archive.
19076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19078 # Commands used to build and install a shared archive.
19079 archive_cmds=$lt_archive_cmds_GCJ
19080 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19081 postinstall_cmds=$lt_postinstall_cmds
19082 postuninstall_cmds=$lt_postuninstall_cmds
19084 # Commands used to build a loadable module (assumed same as above if empty)
19085 module_cmds=$lt_module_cmds_GCJ
19086 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19088 # Commands to strip libraries.
19089 old_striplib=$lt_old_striplib
19090 striplib=$lt_striplib
19092 # Dependencies to place before the objects being linked to create a
19093 # shared library.
19094 predep_objects=$lt_predep_objects_GCJ
19096 # Dependencies to place after the objects being linked to create a
19097 # shared library.
19098 postdep_objects=$lt_postdep_objects_GCJ
19100 # Dependencies to place before the objects being linked to create a
19101 # shared library.
19102 predeps=$lt_predeps_GCJ
19104 # Dependencies to place after the objects being linked to create a
19105 # shared library.
19106 postdeps=$lt_postdeps_GCJ
19108 # The library search path used internally by the compiler when linking
19109 # a shared library.
19110 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19112 # Method to check whether dependent libraries are shared objects.
19113 deplibs_check_method=$lt_deplibs_check_method
19115 # Command to use when deplibs_check_method == file_magic.
19116 file_magic_cmd=$lt_file_magic_cmd
19118 # Flag that allows shared libraries with undefined symbols to be built.
19119 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19121 # Flag that forces no undefined symbols.
19122 no_undefined_flag=$lt_no_undefined_flag_GCJ
19124 # Commands used to finish a libtool library installation in a directory.
19125 finish_cmds=$lt_finish_cmds
19127 # Same as above, but a single script fragment to be evaled but not shown.
19128 finish_eval=$lt_finish_eval
19130 # Take the output of nm and produce a listing of raw symbols and C names.
19131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19133 # Transform the output of nm in a proper C declaration
19134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19136 # Transform the output of nm in a C name address pair
19137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19139 # This is the shared library runtime path variable.
19140 runpath_var=$runpath_var
19142 # This is the shared library path variable.
19143 shlibpath_var=$shlibpath_var
19145 # Is shlibpath searched before the hard-coded library search path?
19146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19148 # How to hardcode a shared library path into an executable.
19149 hardcode_action=$hardcode_action_GCJ
19151 # Whether we should hardcode library paths into libraries.
19152 hardcode_into_libs=$hardcode_into_libs
19154 # Flag to hardcode \$libdir into a binary during linking.
19155 # This must work even if \$libdir does not exist.
19156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19158 # If ld is used when linking, flag to hardcode \$libdir into
19159 # a binary during linking. This must work even if \$libdir does
19160 # not exist.
19161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19163 # Whether we need a single -rpath flag with a separated argument.
19164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19167 # resulting binary.
19168 hardcode_direct=$hardcode_direct_GCJ
19170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19171 # resulting binary.
19172 hardcode_minus_L=$hardcode_minus_L_GCJ
19174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19175 # the resulting binary.
19176 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19178 # Set to yes if building a shared library automatically hardcodes DIR into the library
19179 # and all subsequent libraries and executables linked against it.
19180 hardcode_automatic=$hardcode_automatic_GCJ
19182 # Variables whose values should be saved in libtool wrapper scripts and
19183 # restored at relink time.
19184 variables_saved_for_relink="$variables_saved_for_relink"
19186 # Whether libtool must link a program against all its dependency libraries.
19187 link_all_deplibs=$link_all_deplibs_GCJ
19189 # Compile-time system search path for libraries
19190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19192 # Run-time system search path for libraries
19193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19195 # Fix the shell variable \$srcfile for the compiler.
19196 fix_srcfile_path=$lt_fix_srcfile_path
19198 # Set to yes if exported symbols are required.
19199 always_export_symbols=$always_export_symbols_GCJ
19201 # The commands to list exported symbols.
19202 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19204 # The commands to extract the exported symbol list from a shared archive.
19205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19207 # Symbols that should not be listed in the preloaded symbols.
19208 exclude_expsyms=$lt_exclude_expsyms_GCJ
19210 # Symbols that must always be exported.
19211 include_expsyms=$lt_include_expsyms_GCJ
19213 # ### END LIBTOOL TAG CONFIG: $tagname
19215 __EOF__
19218 else
19219 # If there is no Makefile yet, we rely on a make rule to execute
19220 # `config.status --recheck' to rerun these tests and create the
19221 # libtool script then.
19222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19223 if test -f "$ltmain_in"; then
19224 test -f Makefile && make "$ltmain"
19229 ac_ext=c
19230 ac_cpp='$CPP $CPPFLAGS'
19231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19235 CC="$lt_save_CC"
19237 else
19238 tagname=""
19245 # Source file extension for RC test sources.
19246 ac_ext=rc
19248 # Object file extension for compiled RC test sources.
19249 objext=o
19250 objext_RC=$objext
19252 # Code to be used in simple compile tests
19253 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19255 # Code to be used in simple link tests
19256 lt_simple_link_test_code="$lt_simple_compile_test_code"
19258 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19260 # If no C compiler was specified, use CC.
19261 LTCC=${LTCC-"$CC"}
19263 # If no C compiler flags were specified, use CFLAGS.
19264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19266 # Allow CC to be a program name with arguments.
19267 compiler=$CC
19270 # save warnings/boilerplate of simple test code
19271 ac_outfile=conftest.$ac_objext
19272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19274 _lt_compiler_boilerplate=`cat conftest.err`
19275 $rm conftest*
19277 ac_outfile=conftest.$ac_objext
19278 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19280 _lt_linker_boilerplate=`cat conftest.err`
19281 $rm conftest*
19284 # Allow CC to be a program name with arguments.
19285 lt_save_CC="$CC"
19286 CC=${RC-"windres"}
19287 compiler=$CC
19288 compiler_RC=$CC
19289 for cc_temp in $compiler""; do
19290 case $cc_temp in
19291 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19292 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19293 \-*) ;;
19294 *) break;;
19295 esac
19296 done
19297 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19299 lt_cv_prog_compiler_c_o_RC=yes
19301 # The else clause should only fire when bootstrapping the
19302 # libtool distribution, otherwise you forgot to ship ltmain.sh
19303 # with your package, and you will get complaints that there are
19304 # no rules to generate ltmain.sh.
19305 if test -f "$ltmain"; then
19306 # See if we are running on zsh, and set the options which allow our commands through
19307 # without removal of \ escapes.
19308 if test -n "${ZSH_VERSION+set}" ; then
19309 setopt NO_GLOB_SUBST
19311 # Now quote all the things that may contain metacharacters while being
19312 # careful not to overquote the AC_SUBSTed values. We take copies of the
19313 # variables and quote the copies for generation of the libtool script.
19314 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19315 SED SHELL STRIP \
19316 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19317 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19318 deplibs_check_method reload_flag reload_cmds need_locks \
19319 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19320 lt_cv_sys_global_symbol_to_c_name_address \
19321 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19322 old_postinstall_cmds old_postuninstall_cmds \
19323 compiler_RC \
19324 CC_RC \
19325 LD_RC \
19326 lt_prog_compiler_wl_RC \
19327 lt_prog_compiler_pic_RC \
19328 lt_prog_compiler_static_RC \
19329 lt_prog_compiler_no_builtin_flag_RC \
19330 export_dynamic_flag_spec_RC \
19331 thread_safe_flag_spec_RC \
19332 whole_archive_flag_spec_RC \
19333 enable_shared_with_static_runtimes_RC \
19334 old_archive_cmds_RC \
19335 old_archive_from_new_cmds_RC \
19336 predep_objects_RC \
19337 postdep_objects_RC \
19338 predeps_RC \
19339 postdeps_RC \
19340 compiler_lib_search_path_RC \
19341 archive_cmds_RC \
19342 archive_expsym_cmds_RC \
19343 postinstall_cmds_RC \
19344 postuninstall_cmds_RC \
19345 old_archive_from_expsyms_cmds_RC \
19346 allow_undefined_flag_RC \
19347 no_undefined_flag_RC \
19348 export_symbols_cmds_RC \
19349 hardcode_libdir_flag_spec_RC \
19350 hardcode_libdir_flag_spec_ld_RC \
19351 hardcode_libdir_separator_RC \
19352 hardcode_automatic_RC \
19353 module_cmds_RC \
19354 module_expsym_cmds_RC \
19355 lt_cv_prog_compiler_c_o_RC \
19356 fix_srcfile_path_RC \
19357 exclude_expsyms_RC \
19358 include_expsyms_RC; do
19360 case $var in
19361 old_archive_cmds_RC | \
19362 old_archive_from_new_cmds_RC | \
19363 archive_cmds_RC | \
19364 archive_expsym_cmds_RC | \
19365 module_cmds_RC | \
19366 module_expsym_cmds_RC | \
19367 old_archive_from_expsyms_cmds_RC | \
19368 export_symbols_cmds_RC | \
19369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19370 postinstall_cmds | postuninstall_cmds | \
19371 old_postinstall_cmds | old_postuninstall_cmds | \
19372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19373 # Double-quote double-evaled strings.
19374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19379 esac
19380 done
19382 case $lt_echo in
19383 *'\$0 --fallback-echo"')
19384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19386 esac
19388 cfgfile="$ofile"
19390 cat <<__EOF__ >> "$cfgfile"
19391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19395 # Shell to use when invoking shell scripts.
19396 SHELL=$lt_SHELL
19398 # Whether or not to build shared libraries.
19399 build_libtool_libs=$enable_shared
19401 # Whether or not to build static libraries.
19402 build_old_libs=$enable_static
19404 # Whether or not to add -lc for building shared libraries.
19405 build_libtool_need_lc=$archive_cmds_need_lc_RC
19407 # Whether or not to disallow shared libs when runtime libs are static
19408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19410 # Whether or not to optimize for fast installation.
19411 fast_install=$enable_fast_install
19413 # The host system.
19414 host_alias=$host_alias
19415 host=$host
19416 host_os=$host_os
19418 # The build system.
19419 build_alias=$build_alias
19420 build=$build
19421 build_os=$build_os
19423 # An echo program that does not interpret backslashes.
19424 echo=$lt_echo
19426 # The archiver.
19427 AR=$lt_AR
19428 AR_FLAGS=$lt_AR_FLAGS
19430 # A C compiler.
19431 LTCC=$lt_LTCC
19433 # LTCC compiler flags.
19434 LTCFLAGS=$lt_LTCFLAGS
19436 # A language-specific compiler.
19437 CC=$lt_compiler_RC
19439 # Is the compiler the GNU C compiler?
19440 with_gcc=$GCC_RC
19442 # An ERE matcher.
19443 EGREP=$lt_EGREP
19445 # The linker used to build libraries.
19446 LD=$lt_LD_RC
19448 # Whether we need hard or soft links.
19449 LN_S=$lt_LN_S
19451 # A BSD-compatible nm program.
19452 NM=$lt_NM
19454 # A symbol stripping program
19455 STRIP=$lt_STRIP
19457 # Used to examine libraries when file_magic_cmd begins "file"
19458 MAGIC_CMD=$MAGIC_CMD
19460 # Used on cygwin: DLL creation program.
19461 DLLTOOL="$DLLTOOL"
19463 # Used on cygwin: object dumper.
19464 OBJDUMP="$OBJDUMP"
19466 # Used on cygwin: assembler.
19467 AS="$AS"
19469 # The name of the directory that contains temporary libtool files.
19470 objdir=$objdir
19472 # How to create reloadable object files.
19473 reload_flag=$lt_reload_flag
19474 reload_cmds=$lt_reload_cmds
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_RC
19479 # Object file suffix (normally "o").
19480 objext="$ac_objext"
19482 # Old archive suffix (normally "a").
19483 libext="$libext"
19485 # Shared library suffix (normally ".so").
19486 shrext_cmds='$shrext_cmds'
19488 # Executable file suffix (normally "").
19489 exeext="$exeext"
19491 # Additional compiler flags for building library objects.
19492 pic_flag=$lt_lt_prog_compiler_pic_RC
19493 pic_mode=$pic_mode
19495 # What is the maximum length of a command?
19496 max_cmd_len=$lt_cv_sys_max_cmd_len
19498 # Does compiler simultaneously support -c and -o options?
19499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19501 # Must we lock files when doing compilation?
19502 need_locks=$lt_need_locks
19504 # Do we need the lib prefix for modules?
19505 need_lib_prefix=$need_lib_prefix
19507 # Do we need a version for libraries?
19508 need_version=$need_version
19510 # Whether dlopen is supported.
19511 dlopen_support=$enable_dlopen
19513 # Whether dlopen of programs is supported.
19514 dlopen_self=$enable_dlopen_self
19516 # Whether dlopen of statically linked programs is supported.
19517 dlopen_self_static=$enable_dlopen_self_static
19519 # Compiler flag to prevent dynamic linking.
19520 link_static_flag=$lt_lt_prog_compiler_static_RC
19522 # Compiler flag to turn off builtin functions.
19523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19525 # Compiler flag to allow reflexive dlopens.
19526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19528 # Compiler flag to generate shared objects directly from archives.
19529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19531 # Compiler flag to generate thread-safe objects.
19532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19534 # Library versioning type.
19535 version_type=$version_type
19537 # Format of library name prefix.
19538 libname_spec=$lt_libname_spec
19540 # List of archive names. First name is the real one, the rest are links.
19541 # The last name is the one that the linker finds with -lNAME.
19542 library_names_spec=$lt_library_names_spec
19544 # The coded name of the library, if different from the real name.
19545 soname_spec=$lt_soname_spec
19547 # Commands used to build and install an old-style archive.
19548 RANLIB=$lt_RANLIB
19549 old_archive_cmds=$lt_old_archive_cmds_RC
19550 old_postinstall_cmds=$lt_old_postinstall_cmds
19551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19553 # Create an old-style archive from a shared archive.
19554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19556 # Create a temporary old-style archive to link instead of a shared archive.
19557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19559 # Commands used to build and install a shared archive.
19560 archive_cmds=$lt_archive_cmds_RC
19561 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19562 postinstall_cmds=$lt_postinstall_cmds
19563 postuninstall_cmds=$lt_postuninstall_cmds
19565 # Commands used to build a loadable module (assumed same as above if empty)
19566 module_cmds=$lt_module_cmds_RC
19567 module_expsym_cmds=$lt_module_expsym_cmds_RC
19569 # Commands to strip libraries.
19570 old_striplib=$lt_old_striplib
19571 striplib=$lt_striplib
19573 # Dependencies to place before the objects being linked to create a
19574 # shared library.
19575 predep_objects=$lt_predep_objects_RC
19577 # Dependencies to place after the objects being linked to create a
19578 # shared library.
19579 postdep_objects=$lt_postdep_objects_RC
19581 # Dependencies to place before the objects being linked to create a
19582 # shared library.
19583 predeps=$lt_predeps_RC
19585 # Dependencies to place after the objects being linked to create a
19586 # shared library.
19587 postdeps=$lt_postdeps_RC
19589 # The library search path used internally by the compiler when linking
19590 # a shared library.
19591 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19593 # Method to check whether dependent libraries are shared objects.
19594 deplibs_check_method=$lt_deplibs_check_method
19596 # Command to use when deplibs_check_method == file_magic.
19597 file_magic_cmd=$lt_file_magic_cmd
19599 # Flag that allows shared libraries with undefined symbols to be built.
19600 allow_undefined_flag=$lt_allow_undefined_flag_RC
19602 # Flag that forces no undefined symbols.
19603 no_undefined_flag=$lt_no_undefined_flag_RC
19605 # Commands used to finish a libtool library installation in a directory.
19606 finish_cmds=$lt_finish_cmds
19608 # Same as above, but a single script fragment to be evaled but not shown.
19609 finish_eval=$lt_finish_eval
19611 # Take the output of nm and produce a listing of raw symbols and C names.
19612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19614 # Transform the output of nm in a proper C declaration
19615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19617 # Transform the output of nm in a C name address pair
19618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19620 # This is the shared library runtime path variable.
19621 runpath_var=$runpath_var
19623 # This is the shared library path variable.
19624 shlibpath_var=$shlibpath_var
19626 # Is shlibpath searched before the hard-coded library search path?
19627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19629 # How to hardcode a shared library path into an executable.
19630 hardcode_action=$hardcode_action_RC
19632 # Whether we should hardcode library paths into libraries.
19633 hardcode_into_libs=$hardcode_into_libs
19635 # Flag to hardcode \$libdir into a binary during linking.
19636 # This must work even if \$libdir does not exist.
19637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19639 # If ld is used when linking, flag to hardcode \$libdir into
19640 # a binary during linking. This must work even if \$libdir does
19641 # not exist.
19642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19644 # Whether we need a single -rpath flag with a separated argument.
19645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19648 # resulting binary.
19649 hardcode_direct=$hardcode_direct_RC
19651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19652 # resulting binary.
19653 hardcode_minus_L=$hardcode_minus_L_RC
19655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19656 # the resulting binary.
19657 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19659 # Set to yes if building a shared library automatically hardcodes DIR into the library
19660 # and all subsequent libraries and executables linked against it.
19661 hardcode_automatic=$hardcode_automatic_RC
19663 # Variables whose values should be saved in libtool wrapper scripts and
19664 # restored at relink time.
19665 variables_saved_for_relink="$variables_saved_for_relink"
19667 # Whether libtool must link a program against all its dependency libraries.
19668 link_all_deplibs=$link_all_deplibs_RC
19670 # Compile-time system search path for libraries
19671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19673 # Run-time system search path for libraries
19674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19676 # Fix the shell variable \$srcfile for the compiler.
19677 fix_srcfile_path=$lt_fix_srcfile_path
19679 # Set to yes if exported symbols are required.
19680 always_export_symbols=$always_export_symbols_RC
19682 # The commands to list exported symbols.
19683 export_symbols_cmds=$lt_export_symbols_cmds_RC
19685 # The commands to extract the exported symbol list from a shared archive.
19686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19688 # Symbols that should not be listed in the preloaded symbols.
19689 exclude_expsyms=$lt_exclude_expsyms_RC
19691 # Symbols that must always be exported.
19692 include_expsyms=$lt_include_expsyms_RC
19694 # ### END LIBTOOL TAG CONFIG: $tagname
19696 __EOF__
19699 else
19700 # If there is no Makefile yet, we rely on a make rule to execute
19701 # `config.status --recheck' to rerun these tests and create the
19702 # libtool script then.
19703 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19704 if test -f "$ltmain_in"; then
19705 test -f Makefile && make "$ltmain"
19710 ac_ext=c
19711 ac_cpp='$CPP $CPPFLAGS'
19712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19716 CC="$lt_save_CC"
19721 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19722 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19723 { (exit 1); exit 1; }; }
19725 esac
19727 # Append the new tag name to the list of available tags.
19728 if test -n "$tagname" ; then
19729 available_tags="$available_tags $tagname"
19732 done
19733 IFS="$lt_save_ifs"
19735 # Now substitute the updated list of available tags.
19736 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19737 mv "${ofile}T" "$ofile"
19738 chmod +x "$ofile"
19739 else
19740 rm -f "${ofile}T"
19741 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19742 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19743 { (exit 1); exit 1; }; }
19749 # This can be used to rebuild libtool when needed
19750 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19752 # Always use our own libtool.
19753 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19755 # Prevent multiple expansion
19777 ac_ext=c
19778 ac_cpp='$CPP $CPPFLAGS'
19779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782 if test -n "$ac_tool_prefix"; then
19783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19787 if test "${ac_cv_prog_CC+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 if test -n "$CC"; then
19791 ac_cv_prog_CC="$CC" # Let the user override the test.
19792 else
19793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19794 for as_dir in $PATH
19796 IFS=$as_save_IFS
19797 test -z "$as_dir" && as_dir=.
19798 for ac_exec_ext in '' $ac_executable_extensions; do
19799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19802 break 2
19804 done
19805 done
19806 IFS=$as_save_IFS
19810 CC=$ac_cv_prog_CC
19811 if test -n "$CC"; then
19812 { echo "$as_me:$LINENO: result: $CC" >&5
19813 echo "${ECHO_T}$CC" >&6; }
19814 else
19815 { echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6; }
19821 if test -z "$ac_cv_prog_CC"; then
19822 ac_ct_CC=$CC
19823 # Extract the first word of "gcc", so it can be a program name with args.
19824 set dummy gcc; ac_word=$2
19825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830 if test -n "$ac_ct_CC"; then
19831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19832 else
19833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19834 for as_dir in $PATH
19836 IFS=$as_save_IFS
19837 test -z "$as_dir" && as_dir=.
19838 for ac_exec_ext in '' $ac_executable_extensions; do
19839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19840 ac_cv_prog_ac_ct_CC="gcc"
19841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19842 break 2
19844 done
19845 done
19846 IFS=$as_save_IFS
19850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19851 if test -n "$ac_ct_CC"; then
19852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19853 echo "${ECHO_T}$ac_ct_CC" >&6; }
19854 else
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19859 if test "x$ac_ct_CC" = x; then
19860 CC=""
19861 else
19862 case $cross_compiling:$ac_tool_warned in
19863 yes:)
19864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19865 whose name does not start with the host triplet. If you think this
19866 configuration is useful to you, please write to autoconf@gnu.org." >&5
19867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19868 whose name does not start with the host triplet. If you think this
19869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19870 ac_tool_warned=yes ;;
19871 esac
19872 CC=$ac_ct_CC
19874 else
19875 CC="$ac_cv_prog_CC"
19878 if test -z "$CC"; then
19879 if test -n "$ac_tool_prefix"; then
19880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19881 set dummy ${ac_tool_prefix}cc; ac_word=$2
19882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19884 if test "${ac_cv_prog_CC+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 if test -n "$CC"; then
19888 ac_cv_prog_CC="$CC" # Let the user override the test.
19889 else
19890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19891 for as_dir in $PATH
19893 IFS=$as_save_IFS
19894 test -z "$as_dir" && as_dir=.
19895 for ac_exec_ext in '' $ac_executable_extensions; do
19896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19897 ac_cv_prog_CC="${ac_tool_prefix}cc"
19898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19899 break 2
19901 done
19902 done
19903 IFS=$as_save_IFS
19907 CC=$ac_cv_prog_CC
19908 if test -n "$CC"; then
19909 { echo "$as_me:$LINENO: result: $CC" >&5
19910 echo "${ECHO_T}$CC" >&6; }
19911 else
19912 { echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6; }
19919 if test -z "$CC"; then
19920 # Extract the first word of "cc", so it can be a program name with args.
19921 set dummy cc; ac_word=$2
19922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19924 if test "${ac_cv_prog_CC+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 if test -n "$CC"; then
19928 ac_cv_prog_CC="$CC" # Let the user override the test.
19929 else
19930 ac_prog_rejected=no
19931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19932 for as_dir in $PATH
19934 IFS=$as_save_IFS
19935 test -z "$as_dir" && as_dir=.
19936 for ac_exec_ext in '' $ac_executable_extensions; do
19937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19939 ac_prog_rejected=yes
19940 continue
19942 ac_cv_prog_CC="cc"
19943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19944 break 2
19946 done
19947 done
19948 IFS=$as_save_IFS
19950 if test $ac_prog_rejected = yes; then
19951 # We found a bogon in the path, so make sure we never use it.
19952 set dummy $ac_cv_prog_CC
19953 shift
19954 if test $# != 0; then
19955 # We chose a different compiler from the bogus one.
19956 # However, it has the same basename, so the bogon will be chosen
19957 # first if we set CC to just the basename; use the full file name.
19958 shift
19959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19964 CC=$ac_cv_prog_CC
19965 if test -n "$CC"; then
19966 { echo "$as_me:$LINENO: result: $CC" >&5
19967 echo "${ECHO_T}$CC" >&6; }
19968 else
19969 { echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6; }
19975 if test -z "$CC"; then
19976 if test -n "$ac_tool_prefix"; then
19977 for ac_prog in cl.exe
19979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19983 if test "${ac_cv_prog_CC+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 if test -n "$CC"; then
19987 ac_cv_prog_CC="$CC" # Let the user override the test.
19988 else
19989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990 for as_dir in $PATH
19992 IFS=$as_save_IFS
19993 test -z "$as_dir" && as_dir=.
19994 for ac_exec_ext in '' $ac_executable_extensions; do
19995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998 break 2
20000 done
20001 done
20002 IFS=$as_save_IFS
20006 CC=$ac_cv_prog_CC
20007 if test -n "$CC"; then
20008 { echo "$as_me:$LINENO: result: $CC" >&5
20009 echo "${ECHO_T}$CC" >&6; }
20010 else
20011 { echo "$as_me:$LINENO: result: no" >&5
20012 echo "${ECHO_T}no" >&6; }
20016 test -n "$CC" && break
20017 done
20019 if test -z "$CC"; then
20020 ac_ct_CC=$CC
20021 for ac_prog in cl.exe
20023 # Extract the first word of "$ac_prog", so it can be a program name with args.
20024 set dummy $ac_prog; ac_word=$2
20025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 if test -n "$ac_ct_CC"; then
20031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20032 else
20033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20034 for as_dir in $PATH
20036 IFS=$as_save_IFS
20037 test -z "$as_dir" && as_dir=.
20038 for ac_exec_ext in '' $ac_executable_extensions; do
20039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20040 ac_cv_prog_ac_ct_CC="$ac_prog"
20041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042 break 2
20044 done
20045 done
20046 IFS=$as_save_IFS
20050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20051 if test -n "$ac_ct_CC"; then
20052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20053 echo "${ECHO_T}$ac_ct_CC" >&6; }
20054 else
20055 { echo "$as_me:$LINENO: result: no" >&5
20056 echo "${ECHO_T}no" >&6; }
20060 test -n "$ac_ct_CC" && break
20061 done
20063 if test "x$ac_ct_CC" = x; then
20064 CC=""
20065 else
20066 case $cross_compiling:$ac_tool_warned in
20067 yes:)
20068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20069 whose name does not start with the host triplet. If you think this
20070 configuration is useful to you, please write to autoconf@gnu.org." >&5
20071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20072 whose name does not start with the host triplet. If you think this
20073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20074 ac_tool_warned=yes ;;
20075 esac
20076 CC=$ac_ct_CC
20083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20084 See \`config.log' for more details." >&5
20085 echo "$as_me: error: no acceptable C compiler found in \$PATH
20086 See \`config.log' for more details." >&2;}
20087 { (exit 1); exit 1; }; }
20089 # Provide some information about the compiler.
20090 echo "$as_me:$LINENO: checking for C compiler version" >&5
20091 ac_compiler=`set X $ac_compile; echo $2`
20092 { (ac_try="$ac_compiler --version >&5"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_compiler --version >&5") 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }
20102 { (ac_try="$ac_compiler -v >&5"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compiler -v >&5") 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }
20112 { (ac_try="$ac_compiler -V >&5"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compiler -V >&5") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }
20123 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20124 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20125 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128 cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h. */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20136 main ()
20138 #ifndef __GNUC__
20139 choke me
20140 #endif
20143 return 0;
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (ac_try="$ac_compile"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 ac_compiler_gnu=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_compiler_gnu=no
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20175 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20177 GCC=`test $ac_compiler_gnu = yes && echo yes`
20178 ac_test_CFLAGS=${CFLAGS+set}
20179 ac_save_CFLAGS=$CFLAGS
20180 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20181 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20182 if test "${ac_cv_prog_cc_g+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185 ac_save_c_werror_flag=$ac_c_werror_flag
20186 ac_c_werror_flag=yes
20187 ac_cv_prog_cc_g=no
20188 CFLAGS="-g"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20197 main ()
20201 return 0;
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20212 ac_status=$?
20213 grep -v '^ *+' conftest.er1 >conftest.err
20214 rm -f conftest.er1
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest.$ac_objext; then
20221 ac_cv_prog_cc_g=yes
20222 else
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 CFLAGS=""
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20235 main ()
20239 return 0;
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (ac_try="$ac_compile"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest.$ac_objext; then
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_c_werror_flag=$ac_save_c_werror_flag
20265 CFLAGS="-g"
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20274 main ()
20278 return 0;
20280 _ACEOF
20281 rm -f conftest.$ac_objext
20282 if { (ac_try="$ac_compile"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_compile") 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest.$ac_objext; then
20298 ac_cv_prog_cc_g=yes
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 ac_c_werror_flag=$ac_save_c_werror_flag
20315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20316 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20317 if test "$ac_test_CFLAGS" = set; then
20318 CFLAGS=$ac_save_CFLAGS
20319 elif test $ac_cv_prog_cc_g = yes; then
20320 if test "$GCC" = yes; then
20321 CFLAGS="-g -O2"
20322 else
20323 CFLAGS="-g"
20325 else
20326 if test "$GCC" = yes; then
20327 CFLAGS="-O2"
20328 else
20329 CFLAGS=
20332 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20333 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20334 if test "${ac_cv_prog_cc_c89+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 ac_cv_prog_cc_c89=no
20338 ac_save_CC=$CC
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <stdarg.h>
20346 #include <stdio.h>
20347 #include <sys/types.h>
20348 #include <sys/stat.h>
20349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20350 struct buf { int x; };
20351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20352 static char *e (p, i)
20353 char **p;
20354 int i;
20356 return p[i];
20358 static char *f (char * (*g) (char **, int), char **p, ...)
20360 char *s;
20361 va_list v;
20362 va_start (v,p);
20363 s = g (p, va_arg (v,int));
20364 va_end (v);
20365 return s;
20368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20369 function prototypes and stuff, but not '\xHH' hex character constants.
20370 These don't provoke an error unfortunately, instead are silently treated
20371 as 'x'. The following induces an error, until -std is added to get
20372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20373 array size at least. It's necessary to write '\x00'==0 to get something
20374 that's true only with -std. */
20375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20378 inside strings and character constants. */
20379 #define FOO(x) 'x'
20380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20382 int test (int i, double x);
20383 struct s1 {int (*f) (int a);};
20384 struct s2 {int (*f) (double a);};
20385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20386 int argc;
20387 char **argv;
20389 main ()
20391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20393 return 0;
20395 _ACEOF
20396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20399 CC="$ac_save_CC $ac_arg"
20400 rm -f conftest.$ac_objext
20401 if { (ac_try="$ac_compile"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_compile") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest.$ac_objext; then
20417 ac_cv_prog_cc_c89=$ac_arg
20418 else
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20425 rm -f core conftest.err conftest.$ac_objext
20426 test "x$ac_cv_prog_cc_c89" != "xno" && break
20427 done
20428 rm -f conftest.$ac_ext
20429 CC=$ac_save_CC
20432 # AC_CACHE_VAL
20433 case "x$ac_cv_prog_cc_c89" in
20435 { echo "$as_me:$LINENO: result: none needed" >&5
20436 echo "${ECHO_T}none needed" >&6; } ;;
20437 xno)
20438 { echo "$as_me:$LINENO: result: unsupported" >&5
20439 echo "${ECHO_T}unsupported" >&6; } ;;
20441 CC="$CC $ac_cv_prog_cc_c89"
20442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20443 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20444 esac
20447 ac_ext=c
20448 ac_cpp='$CPP $CPPFLAGS'
20449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453 depcc="$CC" am_compiler_list=
20455 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20456 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20457 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20461 # We make a subdir and do the tests there. Otherwise we can end up
20462 # making bogus files that we don't know about and never remove. For
20463 # instance it was reported that on HP-UX the gcc test will end up
20464 # making a dummy file named `D' -- because `-MD' means `put the output
20465 # in D'.
20466 mkdir conftest.dir
20467 # Copy depcomp to subdir because otherwise we won't find it if we're
20468 # using a relative directory.
20469 cp "$am_depcomp" conftest.dir
20470 cd conftest.dir
20471 # We will build objects and dependencies in a subdirectory because
20472 # it helps to detect inapplicable dependency modes. For instance
20473 # both Tru64's cc and ICC support -MD to output dependencies as a
20474 # side effect of compilation, but ICC will put the dependencies in
20475 # the current directory while Tru64 will put them in the object
20476 # directory.
20477 mkdir sub
20479 am_cv_CC_dependencies_compiler_type=none
20480 if test "$am_compiler_list" = ""; then
20481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20483 for depmode in $am_compiler_list; do
20484 # Setup a source with many dependencies, because some compilers
20485 # like to wrap large dependency lists on column 80 (with \), and
20486 # we should not choose a depcomp mode which is confused by this.
20488 # We need to recreate these files for each test, as the compiler may
20489 # overwrite some of them when testing with obscure command lines.
20490 # This happens at least with the AIX C compiler.
20491 : > sub/conftest.c
20492 for i in 1 2 3 4 5 6; do
20493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20495 # Solaris 8's {/usr,}/bin/sh.
20496 touch sub/conftst$i.h
20497 done
20498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20500 case $depmode in
20501 nosideeffect)
20502 # after this tag, mechanisms are not by side-effect, so they'll
20503 # only be used when explicitly requested
20504 if test "x$enable_dependency_tracking" = xyes; then
20505 continue
20506 else
20507 break
20510 none) break ;;
20511 esac
20512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20513 # mode. It turns out that the SunPro C++ compiler does not properly
20514 # handle `-M -o', and we need to detect this.
20515 if depmode=$depmode \
20516 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20518 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20519 >/dev/null 2>conftest.err &&
20520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20524 # icc doesn't choke on unknown options, it will just issue warnings
20525 # or remarks (even with -Werror). So we grep stderr for any message
20526 # that says an option was ignored or not supported.
20527 # When given -MP, icc 7.0 and 7.1 complain thusly:
20528 # icc: Command line warning: ignoring option '-M'; no argument required
20529 # The diagnosis changed in icc 8.0:
20530 # icc: Command line remark: option '-MP' not supported
20531 if (grep 'ignoring option' conftest.err ||
20532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20533 am_cv_CC_dependencies_compiler_type=$depmode
20534 break
20537 done
20539 cd ..
20540 rm -rf conftest.dir
20541 else
20542 am_cv_CC_dependencies_compiler_type=none
20546 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20547 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20551 test "x$enable_dependency_tracking" != xno \
20552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20553 am__fastdepCC_TRUE=
20554 am__fastdepCC_FALSE='#'
20555 else
20556 am__fastdepCC_TRUE='#'
20557 am__fastdepCC_FALSE=
20561 # By default we simply use the C compiler to build assembly code.
20563 test "${CCAS+set}" = set || CCAS=$CC
20564 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
20568 depcc="$CCAS" am_compiler_list=
20570 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20571 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20572 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20576 # We make a subdir and do the tests there. Otherwise we can end up
20577 # making bogus files that we don't know about and never remove. For
20578 # instance it was reported that on HP-UX the gcc test will end up
20579 # making a dummy file named `D' -- because `-MD' means `put the output
20580 # in D'.
20581 mkdir conftest.dir
20582 # Copy depcomp to subdir because otherwise we won't find it if we're
20583 # using a relative directory.
20584 cp "$am_depcomp" conftest.dir
20585 cd conftest.dir
20586 # We will build objects and dependencies in a subdirectory because
20587 # it helps to detect inapplicable dependency modes. For instance
20588 # both Tru64's cc and ICC support -MD to output dependencies as a
20589 # side effect of compilation, but ICC will put the dependencies in
20590 # the current directory while Tru64 will put them in the object
20591 # directory.
20592 mkdir sub
20594 am_cv_CCAS_dependencies_compiler_type=none
20595 if test "$am_compiler_list" = ""; then
20596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20598 for depmode in $am_compiler_list; do
20599 # Setup a source with many dependencies, because some compilers
20600 # like to wrap large dependency lists on column 80 (with \), and
20601 # we should not choose a depcomp mode which is confused by this.
20603 # We need to recreate these files for each test, as the compiler may
20604 # overwrite some of them when testing with obscure command lines.
20605 # This happens at least with the AIX C compiler.
20606 : > sub/conftest.c
20607 for i in 1 2 3 4 5 6; do
20608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20610 # Solaris 8's {/usr,}/bin/sh.
20611 touch sub/conftst$i.h
20612 done
20613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20615 case $depmode in
20616 nosideeffect)
20617 # after this tag, mechanisms are not by side-effect, so they'll
20618 # only be used when explicitly requested
20619 if test "x$enable_dependency_tracking" = xyes; then
20620 continue
20621 else
20622 break
20625 none) break ;;
20626 esac
20627 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20628 # mode. It turns out that the SunPro C++ compiler does not properly
20629 # handle `-M -o', and we need to detect this.
20630 if depmode=$depmode \
20631 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20632 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20633 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20634 >/dev/null 2>conftest.err &&
20635 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20637 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20639 # icc doesn't choke on unknown options, it will just issue warnings
20640 # or remarks (even with -Werror). So we grep stderr for any message
20641 # that says an option was ignored or not supported.
20642 # When given -MP, icc 7.0 and 7.1 complain thusly:
20643 # icc: Command line warning: ignoring option '-M'; no argument required
20644 # The diagnosis changed in icc 8.0:
20645 # icc: Command line remark: option '-MP' not supported
20646 if (grep 'ignoring option' conftest.err ||
20647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20648 am_cv_CCAS_dependencies_compiler_type=$depmode
20649 break
20652 done
20654 cd ..
20655 rm -rf conftest.dir
20656 else
20657 am_cv_CCAS_dependencies_compiler_type=none
20661 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
20662 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
20663 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
20666 test "x$enable_dependency_tracking" != xno \
20667 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
20668 am__fastdepCCAS_TRUE=
20669 am__fastdepCCAS_FALSE='#'
20670 else
20671 am__fastdepCCAS_TRUE='#'
20672 am__fastdepCCAS_FALSE=
20677 for ac_prog in ecj jikes "gcj -C" javac
20679 # Extract the first word of "$ac_prog", so it can be a program name with args.
20680 set dummy $ac_prog; ac_word=$2
20681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20683 if test "${ac_cv_prog_JAVAC+set}" = set; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686 if test -n "$JAVAC"; then
20687 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
20688 else
20689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20690 for as_dir in $PATH
20692 IFS=$as_save_IFS
20693 test -z "$as_dir" && as_dir=.
20694 for ac_exec_ext in '' $ac_executable_extensions; do
20695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20696 ac_cv_prog_JAVAC="$ac_prog"
20697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20698 break 2
20700 done
20701 done
20702 IFS=$as_save_IFS
20706 JAVAC=$ac_cv_prog_JAVAC
20707 if test -n "$JAVAC"; then
20708 { echo "$as_me:$LINENO: result: $JAVAC" >&5
20709 echo "${ECHO_T}$JAVAC" >&6; }
20710 else
20711 { echo "$as_me:$LINENO: result: no" >&5
20712 echo "${ECHO_T}no" >&6; }
20716 test -n "$JAVAC" && break
20717 done
20722 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
20723 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
20724 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 ac_check_lib_save_LIBS=$LIBS
20728 LIBS="-lpthread $LIBS"
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20736 /* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 char pthread_self ();
20744 main ()
20746 return pthread_self ();
20748 return 0;
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_link") 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest$ac_exeext &&
20768 $as_test_x conftest$ac_exeext; then
20769 ac_cv_lib_pthread_pthread_self=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_cv_lib_pthread_pthread_self=no
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
20782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
20783 if test $ac_cv_lib_pthread_pthread_self = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_LIBPTHREAD 1
20786 _ACEOF
20788 LIBS="-lpthread $LIBS"
20790 else
20791 { { echo "$as_me:$LINENO: error: libpthread is missing" >&5
20792 echo "$as_me: error: libpthread is missing" >&2;}
20793 { (exit 1); exit 1; }; }
20797 { echo "$as_me:$LINENO: checking for fmod in -lm" >&5
20798 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
20799 if test "${ac_cv_lib_m_fmod+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 ac_check_lib_save_LIBS=$LIBS
20803 LIBS="-lm $LIBS"
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20811 /* Override any GCC internal prototype to avoid an error.
20812 Use char because int might match the return type of a GCC
20813 builtin and then its argument prototype would still apply. */
20814 #ifdef __cplusplus
20815 extern "C"
20816 #endif
20817 char fmod ();
20819 main ()
20821 return fmod ();
20823 return 0;
20825 _ACEOF
20826 rm -f conftest.$ac_objext conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest$ac_exeext &&
20843 $as_test_x conftest$ac_exeext; then
20844 ac_cv_lib_m_fmod=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_lib_m_fmod=no
20852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20853 conftest$ac_exeext conftest.$ac_ext
20854 LIBS=$ac_check_lib_save_LIBS
20856 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
20857 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
20858 if test $ac_cv_lib_m_fmod = yes; then
20859 cat >>confdefs.h <<_ACEOF
20860 #define HAVE_LIBM 1
20861 _ACEOF
20863 LIBS="-lm $LIBS"
20865 else
20866 { { echo "$as_me:$LINENO: error: libm is missing" >&5
20867 echo "$as_me: error: libm is missing" >&2;}
20868 { (exit 1); exit 1; }; }
20872 if test "$libdl_needed" != no; then
20874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 else
20879 ac_check_lib_save_LIBS=$LIBS
20880 LIBS="-ldl $LIBS"
20881 cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h. */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20888 /* Override any GCC internal prototype to avoid an error.
20889 Use char because int might match the return type of a GCC
20890 builtin and then its argument prototype would still apply. */
20891 #ifdef __cplusplus
20892 extern "C"
20893 #endif
20894 char dlopen ();
20896 main ()
20898 return dlopen ();
20900 return 0;
20902 _ACEOF
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (ac_try="$ac_link"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20908 esac
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_link") 2>conftest.er1
20911 ac_status=$?
20912 grep -v '^ *+' conftest.er1 >conftest.err
20913 rm -f conftest.er1
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest$ac_exeext &&
20920 $as_test_x conftest$ac_exeext; then
20921 ac_cv_lib_dl_dlopen=yes
20922 else
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 ac_cv_lib_dl_dlopen=no
20929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20930 conftest$ac_exeext conftest.$ac_ext
20931 LIBS=$ac_check_lib_save_LIBS
20933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20935 if test $ac_cv_lib_dl_dlopen = yes; then
20936 cat >>confdefs.h <<_ACEOF
20937 #define HAVE_LIBDL 1
20938 _ACEOF
20940 LIBS="-ldl $LIBS"
20942 else
20943 { { echo "$as_me:$LINENO: error: libdl is missing" >&5
20944 echo "$as_me: error: libdl is missing" >&2;}
20945 { (exit 1); exit 1; }; }
20951 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
20952 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_z_inflate+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956 ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-lz $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20968 #ifdef __cplusplus
20969 extern "C"
20970 #endif
20971 char inflate ();
20973 main ()
20975 return inflate ();
20977 return 0;
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_link") 2>conftest.er1
20988 ac_status=$?
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest$ac_exeext &&
20997 $as_test_x conftest$ac_exeext; then
20998 ac_cv_lib_z_inflate=yes
20999 else
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_cv_lib_z_inflate=no
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007 conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21010 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
21011 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
21012 if test $ac_cv_lib_z_inflate = yes; then
21013 cat >>confdefs.h <<_ACEOF
21014 #define HAVE_LIBZ 1
21015 _ACEOF
21017 LIBS="-lz $LIBS"
21019 else
21020 if test "$enable_zip" != no; then
21021 { echo "$as_me:$LINENO: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&5
21022 echo "$as_me: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&2;}
21023 enable_zip=no
21029 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
21030 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
21031 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034 ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-lffi $LIBS"
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 /* Override any GCC internal prototype to avoid an error.
21044 Use char because int might match the return type of a GCC
21045 builtin and then its argument prototype would still apply. */
21046 #ifdef __cplusplus
21047 extern "C"
21048 #endif
21049 char ffi_call ();
21051 main ()
21053 return ffi_call ();
21055 return 0;
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_link") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest$ac_exeext &&
21075 $as_test_x conftest$ac_exeext; then
21076 ac_cv_lib_ffi_ffi_call=yes
21077 else
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_ffi_ffi_call=no
21084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21085 conftest$ac_exeext conftest.$ac_ext
21086 LIBS=$ac_check_lib_save_LIBS
21088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
21089 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
21090 if test $ac_cv_lib_ffi_ffi_call = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092 #define HAVE_LIBFFI 1
21093 _ACEOF
21095 LIBS="-lffi $LIBS"
21097 else
21098 if test "$enable_ffi" != no; then
21099 { { echo "$as_me:$LINENO: error: cannot find libffi" >&5
21100 echo "$as_me: error: cannot find libffi" >&2;}
21101 { (exit 1); exit 1; }; }
21106 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21108 if test "${ac_cv_header_stdc+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h. */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 #include <stdlib.h>
21118 #include <stdarg.h>
21119 #include <string.h>
21120 #include <float.h>
21123 main ()
21127 return 0;
21129 _ACEOF
21130 rm -f conftest.$ac_objext
21131 if { (ac_try="$ac_compile"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_compile") 2>conftest.er1
21138 ac_status=$?
21139 grep -v '^ *+' conftest.er1 >conftest.err
21140 rm -f conftest.er1
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } && {
21144 test -z "$ac_c_werror_flag" ||
21145 test ! -s conftest.err
21146 } && test -s conftest.$ac_objext; then
21147 ac_cv_header_stdc=yes
21148 else
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ac_cv_header_stdc=no
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 if test $ac_cv_header_stdc = yes; then
21158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <string.h>
21167 _ACEOF
21168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21169 $EGREP "memchr" >/dev/null 2>&1; then
21171 else
21172 ac_cv_header_stdc=no
21174 rm -f conftest*
21178 if test $ac_cv_header_stdc = yes; then
21179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <stdlib.h>
21188 _ACEOF
21189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21190 $EGREP "free" >/dev/null 2>&1; then
21192 else
21193 ac_cv_header_stdc=no
21195 rm -f conftest*
21199 if test $ac_cv_header_stdc = yes; then
21200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21201 if test "$cross_compiling" = yes; then
21203 else
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h. */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 #include <ctype.h>
21211 #include <stdlib.h>
21212 #if ((' ' & 0x0FF) == 0x020)
21213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21215 #else
21216 # define ISLOWER(c) \
21217 (('a' <= (c) && (c) <= 'i') \
21218 || ('j' <= (c) && (c) <= 'r') \
21219 || ('s' <= (c) && (c) <= 'z'))
21220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21221 #endif
21223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21225 main ()
21227 int i;
21228 for (i = 0; i < 256; i++)
21229 if (XOR (islower (i), ISLOWER (i))
21230 || toupper (i) != TOUPPER (i))
21231 return 2;
21232 return 0;
21234 _ACEOF
21235 rm -f conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_link") 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21256 else
21257 echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ( exit $ac_status )
21262 ac_cv_header_stdc=no
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21272 if test $ac_cv_header_stdc = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define STDC_HEADERS 1
21276 _ACEOF
21281 if test "${ac_cv_header_zlib_h+set}" = set; then
21282 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21283 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21284 if test "${ac_cv_header_zlib_h+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21287 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21288 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21289 else
21290 # Is the header compilable?
21291 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
21292 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h. */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 $ac_includes_default
21300 #include <zlib.h>
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_compile") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest.$ac_objext; then
21319 ac_header_compiler=yes
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_compiler=no
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21329 echo "${ECHO_T}$ac_header_compiler" >&6; }
21331 # Is the header present?
21332 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
21333 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <zlib.h>
21341 _ACEOF
21342 if { (ac_try="$ac_cpp conftest.$ac_ext"
21343 case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } >/dev/null && {
21355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 }; then
21358 ac_header_preproc=yes
21359 else
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_header_preproc=no
21366 rm -f conftest.err conftest.$ac_ext
21367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6; }
21370 # So? What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21372 yes:no: )
21373 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
21379 no:yes:* )
21380 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
21394 esac
21395 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21396 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21397 if test "${ac_cv_header_zlib_h+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400 ac_cv_header_zlib_h=$ac_header_preproc
21402 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21403 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21406 if test $ac_cv_header_zlib_h = yes; then
21408 else
21409 if test "$enable_zip" != no; then
21410 { echo "$as_me:$LINENO: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&5
21411 echo "$as_me: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&2;}
21412 enable_zip=no
21418 if test "${ac_cv_header_ffi_h+set}" = set; then
21419 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21420 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21421 if test "${ac_cv_header_ffi_h+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21425 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21426 else
21427 # Is the header compilable?
21428 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
21429 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h. */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 $ac_includes_default
21437 #include <ffi.h>
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_compile") 2>conftest.er1
21447 ac_status=$?
21448 grep -v '^ *+' conftest.er1 >conftest.err
21449 rm -f conftest.er1
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest.$ac_objext; then
21456 ac_header_compiler=yes
21457 else
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_header_compiler=no
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466 echo "${ECHO_T}$ac_header_compiler" >&6; }
21468 # Is the header present?
21469 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
21470 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h. */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <ffi.h>
21478 _ACEOF
21479 if { (ac_try="$ac_cpp conftest.$ac_ext"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } >/dev/null && {
21492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 }; then
21495 ac_header_preproc=yes
21496 else
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_header_preproc=no
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21507 # So? What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509 yes:no: )
21510 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21516 no:yes:* )
21517 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
21531 esac
21532 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21533 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21534 if test "${ac_cv_header_ffi_h+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537 ac_cv_header_ffi_h=$ac_header_preproc
21539 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21540 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21543 if test $ac_cv_header_ffi_h = yes; then
21545 else
21546 if test "$enable_ffi" != no; then
21547 { { echo "$as_me:$LINENO: error: cannot find ffi.h" >&5
21548 echo "$as_me: error: cannot find ffi.h" >&2;}
21549 { (exit 1); exit 1; }; }
21555 if test "$enable_zip" != no; then
21557 cat >>confdefs.h <<\_ACEOF
21558 #define USE_ZIP 1
21559 _ACEOF
21561 use_zip_yes=
21562 use_zip_no='#'
21563 else
21564 use_zip_yes='#'
21565 use_zip_no=
21571 if test "$enable_ffi" != no; then
21573 cat >>confdefs.h <<\_ACEOF
21574 #define USE_FFI 1
21575 _ACEOF
21584 for ac_header in sys/time.h unistd.h endian.h sys/param.h locale.h
21586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 ac_res=`eval echo '${'$as_ac_Header'}'`
21594 { echo "$as_me:$LINENO: result: $ac_res" >&5
21595 echo "${ECHO_T}$ac_res" >&6; }
21596 else
21597 # Is the header compilable?
21598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21600 cat >conftest.$ac_ext <<_ACEOF
21601 /* confdefs.h. */
21602 _ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 $ac_includes_default
21607 #include <$ac_header>
21608 _ACEOF
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21617 ac_status=$?
21618 grep -v '^ *+' conftest.er1 >conftest.err
21619 rm -f conftest.er1
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest.$ac_objext; then
21626 ac_header_compiler=yes
21627 else
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_header_compiler=no
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21636 echo "${ECHO_T}$ac_header_compiler" >&6; }
21638 # Is the header present?
21639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h. */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <$ac_header>
21648 _ACEOF
21649 if { (ac_try="$ac_cpp conftest.$ac_ext"
21650 case "(($ac_try" in
21651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652 *) ac_try_echo=$ac_try;;
21653 esac
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } >/dev/null && {
21662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21663 test ! -s conftest.err
21664 }; then
21665 ac_header_preproc=yes
21666 else
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ac_header_preproc=no
21673 rm -f conftest.err conftest.$ac_ext
21674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21675 echo "${ECHO_T}$ac_header_preproc" >&6; }
21677 # So? What about this header?
21678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21679 yes:no: )
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21684 ac_header_preproc=yes
21686 no:yes:* )
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21701 esac
21702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707 eval "$as_ac_Header=\$ac_header_preproc"
21709 ac_res=`eval echo '${'$as_ac_Header'}'`
21710 { echo "$as_me:$LINENO: result: $ac_res" >&5
21711 echo "${ECHO_T}$ac_res" >&6; }
21714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21715 cat >>confdefs.h <<_ACEOF
21716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21717 _ACEOF
21721 done
21724 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21725 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21726 if test "${ac_cv_c_const+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 else
21729 cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h. */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21737 main ()
21739 /* FIXME: Include the comments suggested by Paul. */
21740 #ifndef __cplusplus
21741 /* Ultrix mips cc rejects this. */
21742 typedef int charset[2];
21743 const charset cs;
21744 /* SunOS 4.1.1 cc rejects this. */
21745 char const *const *pcpcc;
21746 char **ppc;
21747 /* NEC SVR4.0.2 mips cc rejects this. */
21748 struct point {int x, y;};
21749 static struct point const zero = {0,0};
21750 /* AIX XL C 1.02.0.0 rejects this.
21751 It does not let you subtract one const X* pointer from another in
21752 an arm of an if-expression whose if-part is not a constant
21753 expression */
21754 const char *g = "string";
21755 pcpcc = &g + (g ? g-g : 0);
21756 /* HPUX 7.0 cc rejects these. */
21757 ++pcpcc;
21758 ppc = (char**) pcpcc;
21759 pcpcc = (char const *const *) ppc;
21760 { /* SCO 3.2v4 cc rejects this. */
21761 char *t;
21762 char const *s = 0 ? (char *) 0 : (char const *) 0;
21764 *t++ = 0;
21765 if (s) return 0;
21767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21768 int x[] = {25, 17};
21769 const int *foo = &x[0];
21770 ++foo;
21772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21773 typedef const int *iptr;
21774 iptr p = 0;
21775 ++p;
21777 { /* AIX XL C 1.02.0.0 rejects this saying
21778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21779 struct s { int j; const int *ap[3]; };
21780 struct s *b; b->j = 5;
21782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21783 const int foo = 10;
21784 if (!foo) return 0;
21786 return !cs[0] && !zero.x;
21787 #endif
21790 return 0;
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21810 ac_cv_c_const=yes
21811 else
21812 echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21815 ac_cv_c_const=no
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21821 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21822 if test $ac_cv_c_const = no; then
21824 cat >>confdefs.h <<\_ACEOF
21825 #define const
21826 _ACEOF
21830 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21831 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21832 if test "${ac_cv_header_time+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 #include <sys/types.h>
21842 #include <sys/time.h>
21843 #include <time.h>
21846 main ()
21848 if ((struct tm *) 0)
21849 return 0;
21851 return 0;
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_cv_header_time=yes
21872 else
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_cv_header_time=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21882 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21883 if test $ac_cv_header_time = yes; then
21885 cat >>confdefs.h <<\_ACEOF
21886 #define TIME_WITH_SYS_TIME 1
21887 _ACEOF
21892 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21893 # for constant arguments. Useless!
21894 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21895 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21896 if test "${ac_cv_working_alloca_h+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 #include <alloca.h>
21907 main ()
21909 char *p = (char *) alloca (2 * sizeof (int));
21910 if (p) return 0;
21912 return 0;
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (ac_try="$ac_link"
21917 case "(($ac_try" in
21918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919 *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922 (eval "$ac_link") 2>conftest.er1
21923 ac_status=$?
21924 grep -v '^ *+' conftest.er1 >conftest.err
21925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest$ac_exeext &&
21932 $as_test_x conftest$ac_exeext; then
21933 ac_cv_working_alloca_h=yes
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21938 ac_cv_working_alloca_h=no
21941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21942 conftest$ac_exeext conftest.$ac_ext
21944 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21945 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21946 if test $ac_cv_working_alloca_h = yes; then
21948 cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_ALLOCA_H 1
21950 _ACEOF
21954 { echo "$as_me:$LINENO: checking for alloca" >&5
21955 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21956 if test "${ac_cv_func_alloca_works+set}" = set; then
21957 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #ifdef __GNUC__
21966 # define alloca __builtin_alloca
21967 #else
21968 # ifdef _MSC_VER
21969 # include <malloc.h>
21970 # define alloca _alloca
21971 # else
21972 # ifdef HAVE_ALLOCA_H
21973 # include <alloca.h>
21974 # else
21975 # ifdef _AIX
21976 #pragma alloca
21977 # else
21978 # ifndef alloca /* predefined by HP cc +Olibcalls */
21979 char *alloca ();
21980 # endif
21981 # endif
21982 # endif
21983 # endif
21984 #endif
21987 main ()
21989 char *p = (char *) alloca (1);
21990 if (p) return 0;
21992 return 0;
21994 _ACEOF
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (ac_try="$ac_link"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_link") 2>conftest.er1
22003 ac_status=$?
22004 grep -v '^ *+' conftest.er1 >conftest.err
22005 rm -f conftest.er1
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest$ac_exeext &&
22012 $as_test_x conftest$ac_exeext; then
22013 ac_cv_func_alloca_works=yes
22014 else
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_func_alloca_works=no
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22024 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22025 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22027 if test $ac_cv_func_alloca_works = yes; then
22029 cat >>confdefs.h <<\_ACEOF
22030 #define HAVE_ALLOCA 1
22031 _ACEOF
22033 else
22034 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22035 # that cause trouble. Some versions do not even contain alloca or
22036 # contain a buggy version. If you still want to use their alloca,
22037 # use ar to extract alloca.o from them instead of compiling alloca.c.
22039 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22041 cat >>confdefs.h <<\_ACEOF
22042 #define C_ALLOCA 1
22043 _ACEOF
22046 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22047 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22048 if test "${ac_cv_os_cray+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 #if defined CRAY && ! defined CRAY2
22058 webecray
22059 #else
22060 wenotbecray
22061 #endif
22063 _ACEOF
22064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22065 $EGREP "webecray" >/dev/null 2>&1; then
22066 ac_cv_os_cray=yes
22067 else
22068 ac_cv_os_cray=no
22070 rm -f conftest*
22073 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22074 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22075 if test $ac_cv_os_cray = yes; then
22076 for ac_func in _getb67 GETB67 getb67; do
22077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 else
22083 cat >conftest.$ac_ext <<_ACEOF
22084 /* confdefs.h. */
22085 _ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22091 #define $ac_func innocuous_$ac_func
22093 /* System header to define __stub macros and hopefully few prototypes,
22094 which can conflict with char $ac_func (); below.
22095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22096 <limits.h> exists even on freestanding compilers. */
22098 #ifdef __STDC__
22099 # include <limits.h>
22100 #else
22101 # include <assert.h>
22102 #endif
22104 #undef $ac_func
22106 /* Override any GCC internal prototype to avoid an error.
22107 Use char because int might match the return type of a GCC
22108 builtin and then its argument prototype would still apply. */
22109 #ifdef __cplusplus
22110 extern "C"
22111 #endif
22112 char $ac_func ();
22113 /* The GNU C library defines this for functions which it implements
22114 to always fail with ENOSYS. Some functions are actually named
22115 something starting with __ and the normal name is an alias. */
22116 #if defined __stub_$ac_func || defined __stub___$ac_func
22117 choke me
22118 #endif
22121 main ()
22123 return $ac_func ();
22125 return 0;
22127 _ACEOF
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest$ac_exeext &&
22145 $as_test_x conftest$ac_exeext; then
22146 eval "$as_ac_var=yes"
22147 else
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 eval "$as_ac_var=no"
22154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22155 conftest$ac_exeext conftest.$ac_ext
22157 ac_res=`eval echo '${'$as_ac_var'}'`
22158 { echo "$as_me:$LINENO: result: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22160 if test `eval echo '${'$as_ac_var'}'` = yes; then
22162 cat >>confdefs.h <<_ACEOF
22163 #define CRAY_STACKSEG_END $ac_func
22164 _ACEOF
22166 break
22169 done
22172 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22173 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22174 if test "${ac_cv_c_stack_direction+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 if test "$cross_compiling" = yes; then
22178 ac_cv_c_stack_direction=0
22179 else
22180 cat >conftest.$ac_ext <<_ACEOF
22181 /* confdefs.h. */
22182 _ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 $ac_includes_default
22188 find_stack_direction ()
22190 static char *addr = 0;
22191 auto char dummy;
22192 if (addr == 0)
22194 addr = &dummy;
22195 return find_stack_direction ();
22197 else
22198 return (&dummy > addr) ? 1 : -1;
22202 main ()
22204 return find_stack_direction () < 0;
22206 _ACEOF
22207 rm -f conftest$ac_exeext
22208 if { (ac_try="$ac_link"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_link") 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22218 { (case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22221 esac
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_try") 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; }; then
22227 ac_cv_c_stack_direction=1
22228 else
22229 echo "$as_me: program exited with status $ac_status" >&5
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 ( exit $ac_status )
22234 ac_cv_c_stack_direction=-1
22236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22242 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22244 cat >>confdefs.h <<_ACEOF
22245 #define STACK_DIRECTION $ac_cv_c_stack_direction
22246 _ACEOF
22253 for ac_header in stdlib.h unistd.h
22255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 ac_res=`eval echo '${'$as_ac_Header'}'`
22263 { echo "$as_me:$LINENO: result: $ac_res" >&5
22264 echo "${ECHO_T}$ac_res" >&6; }
22265 else
22266 # Is the header compilable?
22267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h. */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 $ac_includes_default
22276 #include <$ac_header>
22277 _ACEOF
22278 rm -f conftest.$ac_objext
22279 if { (ac_try="$ac_compile"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest.$ac_objext; then
22295 ac_header_compiler=yes
22296 else
22297 echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_header_compiler=no
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22305 echo "${ECHO_T}$ac_header_compiler" >&6; }
22307 # Is the header present?
22308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22310 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h. */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 #include <$ac_header>
22317 _ACEOF
22318 if { (ac_try="$ac_cpp conftest.$ac_ext"
22319 case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22322 esac
22323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22325 ac_status=$?
22326 grep -v '^ *+' conftest.er1 >conftest.err
22327 rm -f conftest.er1
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } >/dev/null && {
22331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22332 test ! -s conftest.err
22333 }; then
22334 ac_header_preproc=yes
22335 else
22336 echo "$as_me: failed program was:" >&5
22337 sed 's/^/| /' conftest.$ac_ext >&5
22339 ac_header_preproc=no
22342 rm -f conftest.err conftest.$ac_ext
22343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22344 echo "${ECHO_T}$ac_header_preproc" >&6; }
22346 # So? What about this header?
22347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22348 yes:no: )
22349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22353 ac_header_preproc=yes
22355 no:yes:* )
22356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22370 esac
22371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376 eval "$as_ac_Header=\$ac_header_preproc"
22378 ac_res=`eval echo '${'$as_ac_Header'}'`
22379 { echo "$as_me:$LINENO: result: $ac_res" >&5
22380 echo "${ECHO_T}$ac_res" >&6; }
22383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22384 cat >>confdefs.h <<_ACEOF
22385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22386 _ACEOF
22390 done
22393 for ac_func in getpagesize
22395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22409 #define $ac_func innocuous_$ac_func
22411 /* System header to define __stub macros and hopefully few prototypes,
22412 which can conflict with char $ac_func (); below.
22413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22414 <limits.h> exists even on freestanding compilers. */
22416 #ifdef __STDC__
22417 # include <limits.h>
22418 #else
22419 # include <assert.h>
22420 #endif
22422 #undef $ac_func
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char $ac_func ();
22431 /* The GNU C library defines this for functions which it implements
22432 to always fail with ENOSYS. Some functions are actually named
22433 something starting with __ and the normal name is an alias. */
22434 #if defined __stub_$ac_func || defined __stub___$ac_func
22435 choke me
22436 #endif
22439 main ()
22441 return $ac_func ();
22443 return 0;
22445 _ACEOF
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (ac_try="$ac_link"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_link") 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext &&
22463 $as_test_x conftest$ac_exeext; then
22464 eval "$as_ac_var=yes"
22465 else
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 eval "$as_ac_var=no"
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22475 ac_res=`eval echo '${'$as_ac_var'}'`
22476 { echo "$as_me:$LINENO: result: $ac_res" >&5
22477 echo "${ECHO_T}$ac_res" >&6; }
22478 if test `eval echo '${'$as_ac_var'}'` = yes; then
22479 cat >>confdefs.h <<_ACEOF
22480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22481 _ACEOF
22484 done
22486 { echo "$as_me:$LINENO: checking for working mmap" >&5
22487 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22488 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491 if test "$cross_compiling" = yes; then
22492 ac_cv_func_mmap_fixed_mapped=no
22493 else
22494 cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h. */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22500 $ac_includes_default
22501 /* malloc might have been renamed as rpl_malloc. */
22502 #undef malloc
22504 /* Thanks to Mike Haertel and Jim Avera for this test.
22505 Here is a matrix of mmap possibilities:
22506 mmap private not fixed
22507 mmap private fixed at somewhere currently unmapped
22508 mmap private fixed at somewhere already mapped
22509 mmap shared not fixed
22510 mmap shared fixed at somewhere currently unmapped
22511 mmap shared fixed at somewhere already mapped
22512 For private mappings, we should verify that changes cannot be read()
22513 back from the file, nor mmap's back from the file at a different
22514 address. (There have been systems where private was not correctly
22515 implemented like the infamous i386 svr4.0, and systems where the
22516 VM page cache was not coherent with the file system buffer cache
22517 like early versions of FreeBSD and possibly contemporary NetBSD.)
22518 For shared mappings, we should conversely verify that changes get
22519 propagated back to all the places they're supposed to be.
22521 Grep wants private fixed already mapped.
22522 The main things grep needs to know about mmap are:
22523 * does it exist and is it safe to write into the mmap'd area
22524 * how to use it (BSD variants) */
22526 #include <fcntl.h>
22527 #include <sys/mman.h>
22529 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22530 char *malloc ();
22531 #endif
22533 /* This mess was copied from the GNU getpagesize.h. */
22534 #ifndef HAVE_GETPAGESIZE
22535 /* Assume that all systems that can run configure have sys/param.h. */
22536 # ifndef HAVE_SYS_PARAM_H
22537 # define HAVE_SYS_PARAM_H 1
22538 # endif
22540 # ifdef _SC_PAGESIZE
22541 # define getpagesize() sysconf(_SC_PAGESIZE)
22542 # else /* no _SC_PAGESIZE */
22543 # ifdef HAVE_SYS_PARAM_H
22544 # include <sys/param.h>
22545 # ifdef EXEC_PAGESIZE
22546 # define getpagesize() EXEC_PAGESIZE
22547 # else /* no EXEC_PAGESIZE */
22548 # ifdef NBPG
22549 # define getpagesize() NBPG * CLSIZE
22550 # ifndef CLSIZE
22551 # define CLSIZE 1
22552 # endif /* no CLSIZE */
22553 # else /* no NBPG */
22554 # ifdef NBPC
22555 # define getpagesize() NBPC
22556 # else /* no NBPC */
22557 # ifdef PAGESIZE
22558 # define getpagesize() PAGESIZE
22559 # endif /* PAGESIZE */
22560 # endif /* no NBPC */
22561 # endif /* no NBPG */
22562 # endif /* no EXEC_PAGESIZE */
22563 # else /* no HAVE_SYS_PARAM_H */
22564 # define getpagesize() 8192 /* punt totally */
22565 # endif /* no HAVE_SYS_PARAM_H */
22566 # endif /* no _SC_PAGESIZE */
22568 #endif /* no HAVE_GETPAGESIZE */
22571 main ()
22573 char *data, *data2, *data3;
22574 int i, pagesize;
22575 int fd;
22577 pagesize = getpagesize ();
22579 /* First, make a file with some known garbage in it. */
22580 data = (char *) malloc (pagesize);
22581 if (!data)
22582 return 1;
22583 for (i = 0; i < pagesize; ++i)
22584 *(data + i) = rand ();
22585 umask (0);
22586 fd = creat ("conftest.mmap", 0600);
22587 if (fd < 0)
22588 return 1;
22589 if (write (fd, data, pagesize) != pagesize)
22590 return 1;
22591 close (fd);
22593 /* Next, try to mmap the file at a fixed address which already has
22594 something else allocated at it. If we can, also make sure that
22595 we see the same garbage. */
22596 fd = open ("conftest.mmap", O_RDWR);
22597 if (fd < 0)
22598 return 1;
22599 data2 = (char *) malloc (2 * pagesize);
22600 if (!data2)
22601 return 1;
22602 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22605 return 1;
22606 for (i = 0; i < pagesize; ++i)
22607 if (*(data + i) != *(data2 + i))
22608 return 1;
22610 /* Finally, make sure that changes to the mapped area do not
22611 percolate back to the file as seen by read(). (This is a bug on
22612 some variants of i386 svr4.0.) */
22613 for (i = 0; i < pagesize; ++i)
22614 *(data2 + i) = *(data2 + i) + 1;
22615 data3 = (char *) malloc (pagesize);
22616 if (!data3)
22617 return 1;
22618 if (read (fd, data3, pagesize) != pagesize)
22619 return 1;
22620 for (i = 0; i < pagesize; ++i)
22621 if (*(data + i) != *(data3 + i))
22622 return 1;
22623 close (fd);
22624 return 0;
22626 _ACEOF
22627 rm -f conftest$ac_exeext
22628 if { (ac_try="$ac_link"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_link") 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22638 { (case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_try") 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; }; then
22647 ac_cv_func_mmap_fixed_mapped=yes
22648 else
22649 echo "$as_me: program exited with status $ac_status" >&5
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ( exit $ac_status )
22654 ac_cv_func_mmap_fixed_mapped=no
22656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22662 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22663 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22665 cat >>confdefs.h <<\_ACEOF
22666 #define HAVE_MMAP 1
22667 _ACEOF
22670 rm -f conftest.mmap
22675 for ac_func in gettimeofday strtol setlocale
22677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 else
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h. */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22691 #define $ac_func innocuous_$ac_func
22693 /* System header to define __stub macros and hopefully few prototypes,
22694 which can conflict with char $ac_func (); below.
22695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22696 <limits.h> exists even on freestanding compilers. */
22698 #ifdef __STDC__
22699 # include <limits.h>
22700 #else
22701 # include <assert.h>
22702 #endif
22704 #undef $ac_func
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22709 #ifdef __cplusplus
22710 extern "C"
22711 #endif
22712 char $ac_func ();
22713 /* The GNU C library defines this for functions which it implements
22714 to always fail with ENOSYS. Some functions are actually named
22715 something starting with __ and the normal name is an alias. */
22716 #if defined __stub_$ac_func || defined __stub___$ac_func
22717 choke me
22718 #endif
22721 main ()
22723 return $ac_func ();
22725 return 0;
22727 _ACEOF
22728 rm -f conftest.$ac_objext conftest$ac_exeext
22729 if { (ac_try="$ac_link"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_link") 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest$ac_exeext &&
22745 $as_test_x conftest$ac_exeext; then
22746 eval "$as_ac_var=yes"
22747 else
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 eval "$as_ac_var=no"
22754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22755 conftest$ac_exeext conftest.$ac_ext
22757 ac_res=`eval echo '${'$as_ac_var'}'`
22758 { echo "$as_me:$LINENO: result: $ac_res" >&5
22759 echo "${ECHO_T}$ac_res" >&6; }
22760 if test `eval echo '${'$as_ac_var'}'` = yes; then
22761 cat >>confdefs.h <<_ACEOF
22762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22763 _ACEOF
22766 done
22768 if test $ac_cv_header_locale_h = yes; then
22769 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22770 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22771 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774 cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h. */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 #include <locale.h>
22782 main ()
22784 return LC_MESSAGES
22786 return 0;
22788 _ACEOF
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_link") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest$ac_exeext &&
22806 $as_test_x conftest$ac_exeext; then
22807 am_cv_val_LC_MESSAGES=yes
22808 else
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 am_cv_val_LC_MESSAGES=no
22815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22816 conftest$ac_exeext conftest.$ac_ext
22818 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22819 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22820 if test $am_cv_val_LC_MESSAGES = yes; then
22822 cat >>confdefs.h <<\_ACEOF
22823 #define HAVE_LC_MESSAGES 1
22824 _ACEOF
22829 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22830 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
22831 # Check whether --enable-maintainer-mode was given.
22832 if test "${enable_maintainer_mode+set}" = set; then
22833 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22834 else
22835 USE_MAINTAINER_MODE=no
22838 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22839 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
22840 if test $USE_MAINTAINER_MODE = yes; then
22841 MAINTAINER_MODE_TRUE=
22842 MAINTAINER_MODE_FALSE='#'
22843 else
22844 MAINTAINER_MODE_TRUE='#'
22845 MAINTAINER_MODE_FALSE=
22848 MAINT=$MAINTAINER_MODE_TRUE
22852 ac_config_links="$ac_config_links src/arch.h:src/arch/$arch.h"
22855 ac_config_files="$ac_config_files Makefile src/Makefile src/interp/Makefile src/interp/engine/Makefile src/arch/Makefile src/os/Makefile src/os/linux/Makefile src/os/darwin/Makefile src/os/bsd/Makefile src/os/linux/powerpc/Makefile src/os/linux/arm/Makefile src/os/linux/i386/Makefile src/os/linux/x86_64/Makefile src/os/linux/avr32/Makefile src/os/linux/parisc/Makefile src/os/linux/mips/Makefile src/os/darwin/i386/Makefile src/os/darwin/powerpc/Makefile src/os/bsd/powerpc/Makefile src/os/bsd/arm/Makefile src/os/bsd/i386/Makefile src/os/bsd/x86_64/Makefile lib/Makefile lib/java/Makefile lib/java/lang/Makefile lib/jamvm/Makefile lib/jamvm/java/Makefile lib/jamvm/java/lang/Makefile lib/java/lang/reflect/Makefile lib/java/security/Makefile lib/gnu/Makefile lib/sun/reflect/annotation/Makefile lib/sun/reflect//Makefile lib/sun/Makefile lib/gnu/classpath/Makefile"
22858 cat >confcache <<\_ACEOF
22859 # This file is a shell script that caches the results of configure
22860 # tests run on this system so they can be shared between configure
22861 # scripts and configure runs, see configure's option --config-cache.
22862 # It is not useful on other systems. If it contains results you don't
22863 # want to keep, you may remove or edit it.
22865 # config.status only pays attention to the cache file if you give it
22866 # the --recheck option to rerun configure.
22868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22870 # following values.
22872 _ACEOF
22874 # The following way of writing the cache mishandles newlines in values,
22875 # but we know of no workaround that is simple, portable, and efficient.
22876 # So, we kill variables containing newlines.
22877 # Ultrix sh set writes to stderr and can't be redirected directly,
22878 # and sets the high bit in the cache file unless we assign to the vars.
22880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22881 eval ac_val=\$$ac_var
22882 case $ac_val in #(
22883 *${as_nl}*)
22884 case $ac_var in #(
22885 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22886 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22887 esac
22888 case $ac_var in #(
22889 _ | IFS | as_nl) ;; #(
22890 *) $as_unset $ac_var ;;
22891 esac ;;
22892 esac
22893 done
22895 (set) 2>&1 |
22896 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22897 *${as_nl}ac_space=\ *)
22898 # `set' does not quote correctly, so add quotes (double-quote
22899 # substitution turns \\\\ into \\, and sed turns \\ into \).
22900 sed -n \
22901 "s/'/'\\\\''/g;
22902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22903 ;; #(
22905 # `set' quotes correctly as required by POSIX, so do not add quotes.
22906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22908 esac |
22909 sort
22911 sed '
22912 /^ac_cv_env_/b end
22913 t clear
22914 :clear
22915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22916 t end
22917 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22918 :end' >>confcache
22919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22920 if test -w "$cache_file"; then
22921 test "x$cache_file" != "x/dev/null" &&
22922 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22923 echo "$as_me: updating cache $cache_file" >&6;}
22924 cat confcache >$cache_file
22925 else
22926 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22927 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22930 rm -f confcache
22932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22933 # Let make expand exec_prefix.
22934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22936 DEFS=-DHAVE_CONFIG_H
22938 ac_libobjs=
22939 ac_ltlibobjs=
22940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22941 # 1. Remove the extension, and $U if already installed.
22942 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22943 ac_i=`echo "$ac_i" | sed "$ac_script"`
22944 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22945 # will be set to the directory where LIBOBJS objects are built.
22946 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22947 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22948 done
22949 LIBOBJS=$ac_libobjs
22951 LTLIBOBJS=$ac_ltlibobjs
22954 if test -z "${COMPILE_TIME_RELOC_CHECKS_TRUE}" && test -z "${COMPILE_TIME_RELOC_CHECKS_FALSE}"; then
22955 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22956 Usually this means the macro was only invoked conditionally." >&5
22957 echo "$as_me: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22958 Usually this means the macro was only invoked conditionally." >&2;}
22959 { (exit 1); exit 1; }; }
22961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22962 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22963 Usually this means the macro was only invoked conditionally." >&5
22964 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22965 Usually this means the macro was only invoked conditionally." >&2;}
22966 { (exit 1); exit 1; }; }
22968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22969 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22970 Usually this means the macro was only invoked conditionally." >&5
22971 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22972 Usually this means the macro was only invoked conditionally." >&2;}
22973 { (exit 1); exit 1; }; }
22975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22976 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22977 Usually this means the macro was only invoked conditionally." >&5
22978 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22979 Usually this means the macro was only invoked conditionally." >&2;}
22980 { (exit 1); exit 1; }; }
22982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22983 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22984 Usually this means the macro was only invoked conditionally." >&5
22985 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22986 Usually this means the macro was only invoked conditionally." >&2;}
22987 { (exit 1); exit 1; }; }
22989 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22990 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22991 Usually this means the macro was only invoked conditionally." >&5
22992 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22993 Usually this means the macro was only invoked conditionally." >&2;}
22994 { (exit 1); exit 1; }; }
22996 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22997 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22998 Usually this means the macro was only invoked conditionally." >&5
22999 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23000 Usually this means the macro was only invoked conditionally." >&2;}
23001 { (exit 1); exit 1; }; }
23004 : ${CONFIG_STATUS=./config.status}
23005 ac_clean_files_save=$ac_clean_files
23006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23007 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23008 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23009 cat >$CONFIG_STATUS <<_ACEOF
23010 #! $SHELL
23011 # Generated by $as_me.
23012 # Run this file to recreate the current configuration.
23013 # Compiler output produced by configure, useful for debugging
23014 # configure, is in config.log if it exists.
23016 debug=false
23017 ac_cs_recheck=false
23018 ac_cs_silent=false
23019 SHELL=\${CONFIG_SHELL-$SHELL}
23020 _ACEOF
23022 cat >>$CONFIG_STATUS <<\_ACEOF
23023 ## --------------------- ##
23024 ## M4sh Initialization. ##
23025 ## --------------------- ##
23027 # Be more Bourne compatible
23028 DUALCASE=1; export DUALCASE # for MKS sh
23029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23030 emulate sh
23031 NULLCMD=:
23032 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23033 # is contrary to our usage. Disable this feature.
23034 alias -g '${1+"$@"}'='"$@"'
23035 setopt NO_GLOB_SUBST
23036 else
23037 case `(set -o) 2>/dev/null` in
23038 *posix*) set -o posix ;;
23039 esac
23046 # PATH needs CR
23047 # Avoid depending upon Character Ranges.
23048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23051 as_cr_digits='0123456789'
23052 as_cr_alnum=$as_cr_Letters$as_cr_digits
23054 # The user is always right.
23055 if test "${PATH_SEPARATOR+set}" != set; then
23056 echo "#! /bin/sh" >conf$$.sh
23057 echo "exit 0" >>conf$$.sh
23058 chmod +x conf$$.sh
23059 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23060 PATH_SEPARATOR=';'
23061 else
23062 PATH_SEPARATOR=:
23064 rm -f conf$$.sh
23067 # Support unset when possible.
23068 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23069 as_unset=unset
23070 else
23071 as_unset=false
23075 # IFS
23076 # We need space, tab and new line, in precisely that order. Quoting is
23077 # there to prevent editors from complaining about space-tab.
23078 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23079 # splitting by setting IFS to empty value.)
23080 as_nl='
23082 IFS=" "" $as_nl"
23084 # Find who we are. Look in the path if we contain no directory separator.
23085 case $0 in
23086 *[\\/]* ) as_myself=$0 ;;
23087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23088 for as_dir in $PATH
23090 IFS=$as_save_IFS
23091 test -z "$as_dir" && as_dir=.
23092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23093 done
23094 IFS=$as_save_IFS
23097 esac
23098 # We did not find ourselves, most probably we were run as `sh COMMAND'
23099 # in which case we are not to be found in the path.
23100 if test "x$as_myself" = x; then
23101 as_myself=$0
23103 if test ! -f "$as_myself"; then
23104 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23105 { (exit 1); exit 1; }
23108 # Work around bugs in pre-3.0 UWIN ksh.
23109 for as_var in ENV MAIL MAILPATH
23110 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23111 done
23112 PS1='$ '
23113 PS2='> '
23114 PS4='+ '
23116 # NLS nuisances.
23117 for as_var in \
23118 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23119 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23120 LC_TELEPHONE LC_TIME
23122 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23123 eval $as_var=C; export $as_var
23124 else
23125 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23127 done
23129 # Required to use basename.
23130 if expr a : '\(a\)' >/dev/null 2>&1 &&
23131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23132 as_expr=expr
23133 else
23134 as_expr=false
23137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23138 as_basename=basename
23139 else
23140 as_basename=false
23144 # Name of the executable.
23145 as_me=`$as_basename -- "$0" ||
23146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23147 X"$0" : 'X\(//\)$' \| \
23148 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23149 echo X/"$0" |
23150 sed '/^.*\/\([^/][^/]*\)\/*$/{
23151 s//\1/
23154 /^X\/\(\/\/\)$/{
23155 s//\1/
23158 /^X\/\(\/\).*/{
23159 s//\1/
23162 s/.*/./; q'`
23164 # CDPATH.
23165 $as_unset CDPATH
23169 as_lineno_1=$LINENO
23170 as_lineno_2=$LINENO
23171 test "x$as_lineno_1" != "x$as_lineno_2" &&
23172 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23175 # uniformly replaced by the line number. The first 'sed' inserts a
23176 # line-number line after each line using $LINENO; the second 'sed'
23177 # does the real work. The second script uses 'N' to pair each
23178 # line-number line with the line containing $LINENO, and appends
23179 # trailing '-' during substitution so that $LINENO is not a special
23180 # case at line end.
23181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23182 # scripts with optimization help from Paolo Bonzini. Blame Lee
23183 # E. McMahon (1931-1989) for sed's syntax. :-)
23184 sed -n '
23186 /[$]LINENO/=
23187 ' <$as_myself |
23188 sed '
23189 s/[$]LINENO.*/&-/
23190 t lineno
23192 :lineno
23194 :loop
23195 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23196 t loop
23197 s/-\n.*//
23198 ' >$as_me.lineno &&
23199 chmod +x "$as_me.lineno" ||
23200 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23201 { (exit 1); exit 1; }; }
23203 # Don't try to exec as it changes $[0], causing all sort of problems
23204 # (the dirname of $[0] is not the place where we might find the
23205 # original and so on. Autoconf is especially sensitive to this).
23206 . "./$as_me.lineno"
23207 # Exit status is that of the last command.
23208 exit
23212 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23213 as_dirname=dirname
23214 else
23215 as_dirname=false
23218 ECHO_C= ECHO_N= ECHO_T=
23219 case `echo -n x` in
23220 -n*)
23221 case `echo 'x\c'` in
23222 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23223 *) ECHO_C='\c';;
23224 esac;;
23226 ECHO_N='-n';;
23227 esac
23229 if expr a : '\(a\)' >/dev/null 2>&1 &&
23230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23231 as_expr=expr
23232 else
23233 as_expr=false
23236 rm -f conf$$ conf$$.exe conf$$.file
23237 if test -d conf$$.dir; then
23238 rm -f conf$$.dir/conf$$.file
23239 else
23240 rm -f conf$$.dir
23241 mkdir conf$$.dir
23243 echo >conf$$.file
23244 if ln -s conf$$.file conf$$ 2>/dev/null; then
23245 as_ln_s='ln -s'
23246 # ... but there are two gotchas:
23247 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23248 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23249 # In both cases, we have to default to `cp -p'.
23250 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23251 as_ln_s='cp -p'
23252 elif ln conf$$.file conf$$ 2>/dev/null; then
23253 as_ln_s=ln
23254 else
23255 as_ln_s='cp -p'
23257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23258 rmdir conf$$.dir 2>/dev/null
23260 if mkdir -p . 2>/dev/null; then
23261 as_mkdir_p=:
23262 else
23263 test -d ./-p && rmdir ./-p
23264 as_mkdir_p=false
23267 if test -x / >/dev/null 2>&1; then
23268 as_test_x='test -x'
23269 else
23270 if ls -dL / >/dev/null 2>&1; then
23271 as_ls_L_option=L
23272 else
23273 as_ls_L_option=
23275 as_test_x='
23276 eval sh -c '\''
23277 if test -d "$1"; then
23278 test -d "$1/.";
23279 else
23280 case $1 in
23281 -*)set "./$1";;
23282 esac;
23283 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23284 ???[sx]*):;;*)false;;esac;fi
23285 '\'' sh
23288 as_executable_p=$as_test_x
23290 # Sed expression to map a string onto a valid CPP name.
23291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23293 # Sed expression to map a string onto a valid variable name.
23294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23297 exec 6>&1
23299 # Save the log message, to keep $[0] and so on meaningful, and to
23300 # report actual input values of CONFIG_FILES etc. instead of their
23301 # values after options handling.
23302 ac_log="
23303 This file was extended by $as_me, which was
23304 generated by GNU Autoconf 2.61. Invocation command line was
23306 CONFIG_FILES = $CONFIG_FILES
23307 CONFIG_HEADERS = $CONFIG_HEADERS
23308 CONFIG_LINKS = $CONFIG_LINKS
23309 CONFIG_COMMANDS = $CONFIG_COMMANDS
23310 $ $0 $@
23312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23315 _ACEOF
23317 cat >>$CONFIG_STATUS <<_ACEOF
23318 # Files that config.status was made for.
23319 config_files="$ac_config_files"
23320 config_headers="$ac_config_headers"
23321 config_links="$ac_config_links"
23322 config_commands="$ac_config_commands"
23324 _ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23327 ac_cs_usage="\
23328 \`$as_me' instantiates files from templates according to the
23329 current configuration.
23331 Usage: $0 [OPTIONS] [FILE]...
23333 -h, --help print this help, then exit
23334 -V, --version print version number and configuration settings, then exit
23335 -q, --quiet do not print progress messages
23336 -d, --debug don't remove temporary files
23337 --recheck update $as_me by reconfiguring in the same conditions
23338 --file=FILE[:TEMPLATE]
23339 instantiate the configuration file FILE
23340 --header=FILE[:TEMPLATE]
23341 instantiate the configuration header FILE
23343 Configuration files:
23344 $config_files
23346 Configuration headers:
23347 $config_headers
23349 Configuration links:
23350 $config_links
23352 Configuration commands:
23353 $config_commands
23355 Report bugs to <bug-autoconf@gnu.org>."
23357 _ACEOF
23358 cat >>$CONFIG_STATUS <<_ACEOF
23359 ac_cs_version="\\
23360 config.status
23361 configured by $0, generated by GNU Autoconf 2.61,
23362 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23364 Copyright (C) 2006 Free Software Foundation, Inc.
23365 This config.status script is free software; the Free Software Foundation
23366 gives unlimited permission to copy, distribute and modify it."
23368 ac_pwd='$ac_pwd'
23369 srcdir='$srcdir'
23370 INSTALL='$INSTALL'
23371 MKDIR_P='$MKDIR_P'
23372 _ACEOF
23374 cat >>$CONFIG_STATUS <<\_ACEOF
23375 # If no file are specified by the user, then we need to provide default
23376 # value. By we need to know if files were specified by the user.
23377 ac_need_defaults=:
23378 while test $# != 0
23380 case $1 in
23381 --*=*)
23382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23384 ac_shift=:
23387 ac_option=$1
23388 ac_optarg=$2
23389 ac_shift=shift
23391 esac
23393 case $ac_option in
23394 # Handling of the options.
23395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23396 ac_cs_recheck=: ;;
23397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23398 echo "$ac_cs_version"; exit ;;
23399 --debug | --debu | --deb | --de | --d | -d )
23400 debug=: ;;
23401 --file | --fil | --fi | --f )
23402 $ac_shift
23403 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23404 ac_need_defaults=false;;
23405 --header | --heade | --head | --hea )
23406 $ac_shift
23407 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23408 ac_need_defaults=false;;
23409 --he | --h)
23410 # Conflict between --help and --header
23411 { echo "$as_me: error: ambiguous option: $1
23412 Try \`$0 --help' for more information." >&2
23413 { (exit 1); exit 1; }; };;
23414 --help | --hel | -h )
23415 echo "$ac_cs_usage"; exit ;;
23416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23418 ac_cs_silent=: ;;
23420 # This is an error.
23421 -*) { echo "$as_me: error: unrecognized option: $1
23422 Try \`$0 --help' for more information." >&2
23423 { (exit 1); exit 1; }; } ;;
23425 *) ac_config_targets="$ac_config_targets $1"
23426 ac_need_defaults=false ;;
23428 esac
23429 shift
23430 done
23432 ac_configure_extra_args=
23434 if $ac_cs_silent; then
23435 exec 6>/dev/null
23436 ac_configure_extra_args="$ac_configure_extra_args --silent"
23439 _ACEOF
23440 cat >>$CONFIG_STATUS <<_ACEOF
23441 if \$ac_cs_recheck; then
23442 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23443 CONFIG_SHELL=$SHELL
23444 export CONFIG_SHELL
23445 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23448 _ACEOF
23449 cat >>$CONFIG_STATUS <<\_ACEOF
23450 exec 5>>config.log
23452 echo
23453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23454 ## Running $as_me. ##
23455 _ASBOX
23456 echo "$ac_log"
23457 } >&5
23459 _ACEOF
23460 cat >>$CONFIG_STATUS <<_ACEOF
23462 # INIT-COMMANDS
23464 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23466 _ACEOF
23468 cat >>$CONFIG_STATUS <<\_ACEOF
23470 # Handling of arguments.
23471 for ac_config_target in $ac_config_targets
23473 case $ac_config_target in
23474 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23475 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23476 "src/arch.h") CONFIG_LINKS="$CONFIG_LINKS src/arch.h:src/arch/$arch.h" ;;
23477 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23478 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23479 "src/interp/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/Makefile" ;;
23480 "src/interp/engine/Makefile") CONFIG_FILES="$CONFIG_FILES src/interp/engine/Makefile" ;;
23481 "src/arch/Makefile") CONFIG_FILES="$CONFIG_FILES src/arch/Makefile" ;;
23482 "src/os/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/Makefile" ;;
23483 "src/os/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/Makefile" ;;
23484 "src/os/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/Makefile" ;;
23485 "src/os/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/Makefile" ;;
23486 "src/os/linux/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/powerpc/Makefile" ;;
23487 "src/os/linux/arm/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/arm/Makefile" ;;
23488 "src/os/linux/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/i386/Makefile" ;;
23489 "src/os/linux/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/x86_64/Makefile" ;;
23490 "src/os/linux/parisc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/parisc/Makefile" ;;
23491 "src/os/linux/avr32/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/avr32/Makefile" ;;
23492 "src/os/linux/mips/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/linux/mips/Makefile" ;;
23493 "src/os/darwin/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/i386/Makefile" ;;
23494 "src/os/darwin/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/darwin/powerpc/Makefile" ;;
23495 "src/os/bsd/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/powerpc/Makefile" ;;
23496 "src/os/bsd/arm/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/arm/Makefile" ;;
23497 "src/os/bsd/i386/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/i386/Makefile" ;;
23498 "src/os/bsd/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/bsd/x86_64/Makefile" ;;
23499 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23500 "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
23501 "lib/java/lang/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/lang/Makefile" ;;
23502 "lib/jamvm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/Makefile" ;;
23503 "lib/jamvm/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/java/Makefile" ;;
23504 "lib/jamvm/java/lang/Makefile") CONFIG_FILES="$CONFIG_FILES lib/jamvm/java/lang/Makefile" ;;
23505 "lib/java/lang/reflect/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/lang/reflect/Makefile" ;;
23506 "lib/java/security/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/security/Makefile" ;;
23507 "lib/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gnu/Makefile" ;;
23508 "lib/sun/reflect/annotation/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/reflect/annotation/Makefile" ;;
23509 "lib/sun/reflect//Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/reflect//Makefile" ;;
23510 "lib/sun/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sun/Makefile" ;;
23511 "lib/gnu/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gnu/classpath/Makefile" ;;
23513 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23514 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23515 { (exit 1); exit 1; }; };;
23516 esac
23517 done
23520 # If the user did not use the arguments to specify the items to instantiate,
23521 # then the envvar interface is used. Set only those that are not.
23522 # We use the long form for the default assignment because of an extremely
23523 # bizarre bug on SunOS 4.1.3.
23524 if $ac_need_defaults; then
23525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23527 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23528 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23531 # Have a temporary directory for convenience. Make it in the build tree
23532 # simply because there is no reason against having it here, and in addition,
23533 # creating and moving files from /tmp can sometimes cause problems.
23534 # Hook for its removal unless debugging.
23535 # Note that there is a small window in which the directory will not be cleaned:
23536 # after its creation but before its name has been assigned to `$tmp'.
23537 $debug ||
23539 tmp=
23540 trap 'exit_status=$?
23541 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23543 trap '{ (exit 1); exit 1; }' 1 2 13 15
23545 # Create a (secure) tmp directory for tmp files.
23548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23549 test -n "$tmp" && test -d "$tmp"
23550 } ||
23552 tmp=./conf$$-$RANDOM
23553 (umask 077 && mkdir "$tmp")
23554 } ||
23556 echo "$me: cannot create a temporary directory in ." >&2
23557 { (exit 1); exit 1; }
23561 # Set up the sed scripts for CONFIG_FILES section.
23564 # No need to generate the scripts if there are no CONFIG_FILES.
23565 # This happens for instance when ./config.status config.h
23566 if test -n "$CONFIG_FILES"; then
23568 _ACEOF
23572 ac_delim='%!_!# '
23573 for ac_last_try in false false false false false :; do
23574 cat >conf$$subs.sed <<_ACEOF
23575 SHELL!$SHELL$ac_delim
23576 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23577 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23578 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23579 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23580 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23581 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23582 exec_prefix!$exec_prefix$ac_delim
23583 prefix!$prefix$ac_delim
23584 program_transform_name!$program_transform_name$ac_delim
23585 bindir!$bindir$ac_delim
23586 sbindir!$sbindir$ac_delim
23587 libexecdir!$libexecdir$ac_delim
23588 datarootdir!$datarootdir$ac_delim
23589 datadir!$datadir$ac_delim
23590 sysconfdir!$sysconfdir$ac_delim
23591 sharedstatedir!$sharedstatedir$ac_delim
23592 localstatedir!$localstatedir$ac_delim
23593 includedir!$includedir$ac_delim
23594 oldincludedir!$oldincludedir$ac_delim
23595 docdir!$docdir$ac_delim
23596 infodir!$infodir$ac_delim
23597 htmldir!$htmldir$ac_delim
23598 dvidir!$dvidir$ac_delim
23599 pdfdir!$pdfdir$ac_delim
23600 psdir!$psdir$ac_delim
23601 libdir!$libdir$ac_delim
23602 localedir!$localedir$ac_delim
23603 mandir!$mandir$ac_delim
23604 DEFS!$DEFS$ac_delim
23605 ECHO_C!$ECHO_C$ac_delim
23606 ECHO_N!$ECHO_N$ac_delim
23607 ECHO_T!$ECHO_T$ac_delim
23608 LIBS!$LIBS$ac_delim
23609 build_alias!$build_alias$ac_delim
23610 host_alias!$host_alias$ac_delim
23611 target_alias!$target_alias$ac_delim
23612 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23613 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23614 INSTALL_DATA!$INSTALL_DATA$ac_delim
23615 am__isrc!$am__isrc$ac_delim
23616 CYGPATH_W!$CYGPATH_W$ac_delim
23617 PACKAGE!$PACKAGE$ac_delim
23618 VERSION!$VERSION$ac_delim
23619 ACLOCAL!$ACLOCAL$ac_delim
23620 AUTOCONF!$AUTOCONF$ac_delim
23621 AUTOMAKE!$AUTOMAKE$ac_delim
23622 AUTOHEADER!$AUTOHEADER$ac_delim
23623 MAKEINFO!$MAKEINFO$ac_delim
23624 install_sh!$install_sh$ac_delim
23625 STRIP!$STRIP$ac_delim
23626 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23627 mkdir_p!$mkdir_p$ac_delim
23628 AWK!$AWK$ac_delim
23629 SET_MAKE!$SET_MAKE$ac_delim
23630 am__leading_dot!$am__leading_dot$ac_delim
23631 AMTAR!$AMTAR$ac_delim
23632 am__tar!$am__tar$ac_delim
23633 am__untar!$am__untar$ac_delim
23634 build!$build$ac_delim
23635 build_cpu!$build_cpu$ac_delim
23636 build_vendor!$build_vendor$ac_delim
23637 build_os!$build_os$ac_delim
23638 host!$host$ac_delim
23639 host_cpu!$host_cpu$ac_delim
23640 host_vendor!$host_vendor$ac_delim
23641 host_os!$host_os$ac_delim
23642 arch!$arch$ac_delim
23643 os!$os$ac_delim
23644 interp_cflags!$interp_cflags$ac_delim
23645 COMPILE_TIME_RELOC_CHECKS_TRUE!$COMPILE_TIME_RELOC_CHECKS_TRUE$ac_delim
23646 COMPILE_TIME_RELOC_CHECKS_FALSE!$COMPILE_TIME_RELOC_CHECKS_FALSE$ac_delim
23647 AVR32_JAVA_EXTENSION_SUPPORT_TRUE!$AVR32_JAVA_EXTENSION_SUPPORT_TRUE$ac_delim
23648 AVR32_JAVA_EXTENSION_SUPPORT_FALSE!$AVR32_JAVA_EXTENSION_SUPPORT_FALSE$ac_delim
23649 with_classpath_install_dir!$with_classpath_install_dir$ac_delim
23650 CC!$CC$ac_delim
23651 CFLAGS!$CFLAGS$ac_delim
23652 LDFLAGS!$LDFLAGS$ac_delim
23653 CPPFLAGS!$CPPFLAGS$ac_delim
23654 ac_ct_CC!$ac_ct_CC$ac_delim
23655 EXEEXT!$EXEEXT$ac_delim
23656 OBJEXT!$OBJEXT$ac_delim
23657 DEPDIR!$DEPDIR$ac_delim
23658 am__include!$am__include$ac_delim
23659 am__quote!$am__quote$ac_delim
23660 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23661 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23662 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23663 CCDEPMODE!$CCDEPMODE$ac_delim
23664 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23665 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23666 SED!$SED$ac_delim
23667 GREP!$GREP$ac_delim
23668 EGREP!$EGREP$ac_delim
23669 LN_S!$LN_S$ac_delim
23670 ECHO!$ECHO$ac_delim
23671 AR!$AR$ac_delim
23672 RANLIB!$RANLIB$ac_delim
23673 CPP!$CPP$ac_delim
23674 _ACEOF
23676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 99; then
23677 break
23678 elif $ac_last_try; then
23679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23680 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23681 { (exit 1); exit 1; }; }
23682 else
23683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23685 done
23687 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23688 if test -n "$ac_eof"; then
23689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23690 ac_eof=`expr $ac_eof + 1`
23693 cat >>$CONFIG_STATUS <<_ACEOF
23694 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23696 _ACEOF
23697 sed '
23698 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23699 s/^/s,@/; s/!/@,|#_!!_#|/
23702 s/'"$ac_delim"'$/,g/; t
23703 s/$/\\/; p
23704 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23705 ' >>$CONFIG_STATUS <conf$$subs.sed
23706 rm -f conf$$subs.sed
23707 cat >>$CONFIG_STATUS <<_ACEOF
23708 CEOF$ac_eof
23709 _ACEOF
23712 ac_delim='%!_!# '
23713 for ac_last_try in false false false false false :; do
23714 cat >conf$$subs.sed <<_ACEOF
23715 CXX!$CXX$ac_delim
23716 CXXFLAGS!$CXXFLAGS$ac_delim
23717 ac_ct_CXX!$ac_ct_CXX$ac_delim
23718 CXXDEPMODE!$CXXDEPMODE$ac_delim
23719 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23720 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23721 CXXCPP!$CXXCPP$ac_delim
23722 F77!$F77$ac_delim
23723 FFLAGS!$FFLAGS$ac_delim
23724 ac_ct_F77!$ac_ct_F77$ac_delim
23725 LIBTOOL!$LIBTOOL$ac_delim
23726 CCAS!$CCAS$ac_delim
23727 CCASFLAGS!$CCASFLAGS$ac_delim
23728 CCASDEPMODE!$CCASDEPMODE$ac_delim
23729 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23730 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23731 JAVAC!$JAVAC$ac_delim
23732 use_zip_yes!$use_zip_yes$ac_delim
23733 use_zip_no!$use_zip_no$ac_delim
23734 ALLOCA!$ALLOCA$ac_delim
23735 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23736 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23737 MAINT!$MAINT$ac_delim
23738 LIBOBJS!$LIBOBJS$ac_delim
23739 LTLIBOBJS!$LTLIBOBJS$ac_delim
23740 _ACEOF
23742 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
23743 break
23744 elif $ac_last_try; then
23745 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23746 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23747 { (exit 1); exit 1; }; }
23748 else
23749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23751 done
23753 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23754 if test -n "$ac_eof"; then
23755 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23756 ac_eof=`expr $ac_eof + 1`
23759 cat >>$CONFIG_STATUS <<_ACEOF
23760 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23761 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23762 _ACEOF
23763 sed '
23764 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23765 s/^/s,@/; s/!/@,|#_!!_#|/
23768 s/'"$ac_delim"'$/,g/; t
23769 s/$/\\/; p
23770 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23771 ' >>$CONFIG_STATUS <conf$$subs.sed
23772 rm -f conf$$subs.sed
23773 cat >>$CONFIG_STATUS <<_ACEOF
23774 :end
23775 s/|#_!!_#|//g
23776 CEOF$ac_eof
23777 _ACEOF
23780 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23781 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23782 # trailing colons and then remove the whole line if VPATH becomes empty
23783 # (actually we leave an empty line to preserve line numbers).
23784 if test "x$srcdir" = x.; then
23785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23786 s/:*\$(srcdir):*/:/
23787 s/:*\${srcdir}:*/:/
23788 s/:*@srcdir@:*/:/
23789 s/^\([^=]*=[ ]*\):*/\1/
23790 s/:*$//
23791 s/^[^=]*=[ ]*$//
23795 cat >>$CONFIG_STATUS <<\_ACEOF
23796 fi # test -n "$CONFIG_FILES"
23799 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
23801 case $ac_tag in
23802 :[FHLC]) ac_mode=$ac_tag; continue;;
23803 esac
23804 case $ac_mode$ac_tag in
23805 :[FHL]*:*);;
23806 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23807 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23808 { (exit 1); exit 1; }; };;
23809 :[FH]-) ac_tag=-:-;;
23810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23811 esac
23812 ac_save_IFS=$IFS
23813 IFS=:
23814 set x $ac_tag
23815 IFS=$ac_save_IFS
23816 shift
23817 ac_file=$1
23818 shift
23820 case $ac_mode in
23821 :L) ac_source=$1;;
23822 :[FH])
23823 ac_file_inputs=
23824 for ac_f
23826 case $ac_f in
23827 -) ac_f="$tmp/stdin";;
23828 *) # Look for the file first in the build tree, then in the source tree
23829 # (if the path is not absolute). The absolute path cannot be DOS-style,
23830 # because $ac_f cannot contain `:'.
23831 test -f "$ac_f" ||
23832 case $ac_f in
23833 [\\/$]*) false;;
23834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23835 esac ||
23836 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23837 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23838 { (exit 1); exit 1; }; };;
23839 esac
23840 ac_file_inputs="$ac_file_inputs $ac_f"
23841 done
23843 # Let's still pretend it is `configure' which instantiates (i.e., don't
23844 # use $as_me), people would be surprised to read:
23845 # /* config.h. Generated by config.status. */
23846 configure_input="Generated from "`IFS=:
23847 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23848 if test x"$ac_file" != x-; then
23849 configure_input="$ac_file. $configure_input"
23850 { echo "$as_me:$LINENO: creating $ac_file" >&5
23851 echo "$as_me: creating $ac_file" >&6;}
23854 case $ac_tag in
23855 *:-:* | *:-) cat >"$tmp/stdin";;
23856 esac
23858 esac
23860 ac_dir=`$as_dirname -- "$ac_file" ||
23861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23862 X"$ac_file" : 'X\(//\)[^/]' \| \
23863 X"$ac_file" : 'X\(//\)$' \| \
23864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23865 echo X"$ac_file" |
23866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23867 s//\1/
23870 /^X\(\/\/\)[^/].*/{
23871 s//\1/
23874 /^X\(\/\/\)$/{
23875 s//\1/
23878 /^X\(\/\).*/{
23879 s//\1/
23882 s/.*/./; q'`
23883 { as_dir="$ac_dir"
23884 case $as_dir in #(
23885 -*) as_dir=./$as_dir;;
23886 esac
23887 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23888 as_dirs=
23889 while :; do
23890 case $as_dir in #(
23891 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23892 *) as_qdir=$as_dir;;
23893 esac
23894 as_dirs="'$as_qdir' $as_dirs"
23895 as_dir=`$as_dirname -- "$as_dir" ||
23896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897 X"$as_dir" : 'X\(//\)[^/]' \| \
23898 X"$as_dir" : 'X\(//\)$' \| \
23899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23900 echo X"$as_dir" |
23901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23902 s//\1/
23905 /^X\(\/\/\)[^/].*/{
23906 s//\1/
23909 /^X\(\/\/\)$/{
23910 s//\1/
23913 /^X\(\/\).*/{
23914 s//\1/
23917 s/.*/./; q'`
23918 test -d "$as_dir" && break
23919 done
23920 test -z "$as_dirs" || eval "mkdir $as_dirs"
23921 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23922 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23923 { (exit 1); exit 1; }; }; }
23924 ac_builddir=.
23926 case "$ac_dir" in
23927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23930 # A ".." for each directory in $ac_dir_suffix.
23931 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23932 case $ac_top_builddir_sub in
23933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23935 esac ;;
23936 esac
23937 ac_abs_top_builddir=$ac_pwd
23938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23939 # for backward compatibility:
23940 ac_top_builddir=$ac_top_build_prefix
23942 case $srcdir in
23943 .) # We are building in place.
23944 ac_srcdir=.
23945 ac_top_srcdir=$ac_top_builddir_sub
23946 ac_abs_top_srcdir=$ac_pwd ;;
23947 [\\/]* | ?:[\\/]* ) # Absolute name.
23948 ac_srcdir=$srcdir$ac_dir_suffix;
23949 ac_top_srcdir=$srcdir
23950 ac_abs_top_srcdir=$srcdir ;;
23951 *) # Relative name.
23952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23953 ac_top_srcdir=$ac_top_build_prefix$srcdir
23954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23955 esac
23956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23959 case $ac_mode in
23962 # CONFIG_FILE
23965 case $INSTALL in
23966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23968 esac
23969 ac_MKDIR_P=$MKDIR_P
23970 case $MKDIR_P in
23971 [\\/$]* | ?:[\\/]* ) ;;
23972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23973 esac
23974 _ACEOF
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23977 # If the template does not know about datarootdir, expand it.
23978 # FIXME: This hack should be removed a few years after 2.60.
23979 ac_datarootdir_hack=; ac_datarootdir_seen=
23981 case `sed -n '/datarootdir/ {
23985 /@datadir@/p
23986 /@docdir@/p
23987 /@infodir@/p
23988 /@localedir@/p
23989 /@mandir@/p
23990 ' $ac_file_inputs` in
23991 *datarootdir*) ac_datarootdir_seen=yes;;
23992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23993 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23994 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23995 _ACEOF
23996 cat >>$CONFIG_STATUS <<_ACEOF
23997 ac_datarootdir_hack='
23998 s&@datadir@&$datadir&g
23999 s&@docdir@&$docdir&g
24000 s&@infodir@&$infodir&g
24001 s&@localedir@&$localedir&g
24002 s&@mandir@&$mandir&g
24003 s&\\\${datarootdir}&$datarootdir&g' ;;
24004 esac
24005 _ACEOF
24007 # Neutralize VPATH when `$srcdir' = `.'.
24008 # Shell code in configure.ac might set extrasub.
24009 # FIXME: do we really want to maintain this feature?
24010 cat >>$CONFIG_STATUS <<_ACEOF
24011 sed "$ac_vpsub
24012 $extrasub
24013 _ACEOF
24014 cat >>$CONFIG_STATUS <<\_ACEOF
24016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24017 s&@configure_input@&$configure_input&;t t
24018 s&@top_builddir@&$ac_top_builddir_sub&;t t
24019 s&@srcdir@&$ac_srcdir&;t t
24020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24021 s&@top_srcdir@&$ac_top_srcdir&;t t
24022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24023 s&@builddir@&$ac_builddir&;t t
24024 s&@abs_builddir@&$ac_abs_builddir&;t t
24025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24026 s&@INSTALL@&$ac_INSTALL&;t t
24027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24028 $ac_datarootdir_hack
24029 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24034 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24035 which seems to be undefined. Please make sure it is defined." >&5
24036 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24037 which seems to be undefined. Please make sure it is defined." >&2;}
24039 rm -f "$tmp/stdin"
24040 case $ac_file in
24041 -) cat "$tmp/out"; rm -f "$tmp/out";;
24042 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24043 esac
24047 # CONFIG_HEADER
24049 _ACEOF
24051 # Transform confdefs.h into a sed script `conftest.defines', that
24052 # substitutes the proper values into config.h.in to produce config.h.
24053 rm -f conftest.defines conftest.tail
24054 # First, append a space to every undef/define line, to ease matching.
24055 echo 's/$/ /' >conftest.defines
24056 # Then, protect against being on the right side of a sed subst, or in
24057 # an unquoted here document, in config.status. If some macros were
24058 # called several times there might be several #defines for the same
24059 # symbol, which is useless. But do not sort them, since the last
24060 # AC_DEFINE must be honored.
24061 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24062 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24063 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24064 # PARAMS is the parameter list in the macro definition--in most cases, it's
24065 # just an empty string.
24066 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24067 ac_dB='\\)[ (].*,\\1define\\2'
24068 ac_dC=' '
24069 ac_dD=' ,'
24071 uniq confdefs.h |
24072 sed -n '
24073 t rset
24074 :rset
24075 s/^[ ]*#[ ]*define[ ][ ]*//
24076 t ok
24079 s/[\\&,]/\\&/g
24080 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24081 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24082 ' >>conftest.defines
24084 # Remove the space that was appended to ease matching.
24085 # Then replace #undef with comments. This is necessary, for
24086 # example, in the case of _POSIX_SOURCE, which is predefined and required
24087 # on some systems where configure will not decide to define it.
24088 # (The regexp can be short, since the line contains either #define or #undef.)
24089 echo 's/ $//
24090 s,^[ #]*u.*,/* & */,' >>conftest.defines
24092 # Break up conftest.defines:
24093 ac_max_sed_lines=50
24095 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24096 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24097 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24098 # et cetera.
24099 ac_in='$ac_file_inputs'
24100 ac_out='"$tmp/out1"'
24101 ac_nxt='"$tmp/out2"'
24103 while :
24105 # Write a here document:
24106 cat >>$CONFIG_STATUS <<_ACEOF
24107 # First, check the format of the line:
24108 cat >"\$tmp/defines.sed" <<\\CEOF
24109 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24110 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24112 :def
24113 _ACEOF
24114 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24115 echo 'CEOF
24116 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24117 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24118 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24119 grep . conftest.tail >/dev/null || break
24120 rm -f conftest.defines
24121 mv conftest.tail conftest.defines
24122 done
24123 rm -f conftest.defines conftest.tail
24125 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24126 cat >>$CONFIG_STATUS <<\_ACEOF
24127 if test x"$ac_file" != x-; then
24128 echo "/* $configure_input */" >"$tmp/config.h"
24129 cat "$ac_result" >>"$tmp/config.h"
24130 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24132 echo "$as_me: $ac_file is unchanged" >&6;}
24133 else
24134 rm -f $ac_file
24135 mv "$tmp/config.h" $ac_file
24137 else
24138 echo "/* $configure_input */"
24139 cat "$ac_result"
24141 rm -f "$tmp/out12"
24142 # Compute $ac_file's index in $config_headers.
24143 _am_stamp_count=1
24144 for _am_header in $config_headers :; do
24145 case $_am_header in
24146 $ac_file | $ac_file:* )
24147 break ;;
24149 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24150 esac
24151 done
24152 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24153 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24154 X$ac_file : 'X\(//\)[^/]' \| \
24155 X$ac_file : 'X\(//\)$' \| \
24156 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24157 echo X$ac_file |
24158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24159 s//\1/
24162 /^X\(\/\/\)[^/].*/{
24163 s//\1/
24166 /^X\(\/\/\)$/{
24167 s//\1/
24170 /^X\(\/\).*/{
24171 s//\1/
24174 s/.*/./; q'`/stamp-h$_am_stamp_count
24178 # CONFIG_LINK
24181 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
24182 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
24184 if test ! -r "$srcdir/$ac_source"; then
24185 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24186 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24187 { (exit 1); exit 1; }; }
24189 rm -f "$ac_file"
24191 # Try a relative symlink, then a hard link, then a copy.
24192 case $srcdir in
24193 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24194 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
24195 esac
24196 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
24197 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
24198 cp -p "$srcdir/$ac_source" "$ac_file" ||
24199 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
24200 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
24201 { (exit 1); exit 1; }; }
24203 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24204 echo "$as_me: executing $ac_file commands" >&6;}
24206 esac
24209 case $ac_file$ac_mode in
24210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24211 # Strip MF so we end up with the name of the file.
24212 mf=`echo "$mf" | sed -e 's/:.*$//'`
24213 # Check whether this is an Automake generated Makefile or not.
24214 # We used to match only the files named `Makefile.in', but
24215 # some people rename them; so instead we look at the file content.
24216 # Grep'ing the first line is not enough: some people post-process
24217 # each Makefile.in and add a new line on top of each file to say so.
24218 # Grep'ing the whole file is not good either: AIX grep has a line
24219 # limit of 2048, but all sed's we know have understand at least 4000.
24220 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24221 dirpart=`$as_dirname -- "$mf" ||
24222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24223 X"$mf" : 'X\(//\)[^/]' \| \
24224 X"$mf" : 'X\(//\)$' \| \
24225 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24226 echo X"$mf" |
24227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24228 s//\1/
24231 /^X\(\/\/\)[^/].*/{
24232 s//\1/
24235 /^X\(\/\/\)$/{
24236 s//\1/
24239 /^X\(\/\).*/{
24240 s//\1/
24243 s/.*/./; q'`
24244 else
24245 continue
24247 # Extract the definition of DEPDIR, am__include, and am__quote
24248 # from the Makefile without running `make'.
24249 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24250 test -z "$DEPDIR" && continue
24251 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24252 test -z "am__include" && continue
24253 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24254 # When using ansi2knr, U may be empty or an underscore; expand it
24255 U=`sed -n 's/^U = //p' < "$mf"`
24256 # Find all dependency output files, they are included files with
24257 # $(DEPDIR) in their names. We invoke sed twice because it is the
24258 # simplest approach to changing $(DEPDIR) to its actual value in the
24259 # expansion.
24260 for file in `sed -n "
24261 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24262 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24263 # Make sure the directory exists.
24264 test -f "$dirpart/$file" && continue
24265 fdir=`$as_dirname -- "$file" ||
24266 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24267 X"$file" : 'X\(//\)[^/]' \| \
24268 X"$file" : 'X\(//\)$' \| \
24269 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24270 echo X"$file" |
24271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24272 s//\1/
24275 /^X\(\/\/\)[^/].*/{
24276 s//\1/
24279 /^X\(\/\/\)$/{
24280 s//\1/
24283 /^X\(\/\).*/{
24284 s//\1/
24287 s/.*/./; q'`
24288 { as_dir=$dirpart/$fdir
24289 case $as_dir in #(
24290 -*) as_dir=./$as_dir;;
24291 esac
24292 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24293 as_dirs=
24294 while :; do
24295 case $as_dir in #(
24296 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24297 *) as_qdir=$as_dir;;
24298 esac
24299 as_dirs="'$as_qdir' $as_dirs"
24300 as_dir=`$as_dirname -- "$as_dir" ||
24301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24302 X"$as_dir" : 'X\(//\)[^/]' \| \
24303 X"$as_dir" : 'X\(//\)$' \| \
24304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24305 echo X"$as_dir" |
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24307 s//\1/
24310 /^X\(\/\/\)[^/].*/{
24311 s//\1/
24314 /^X\(\/\/\)$/{
24315 s//\1/
24318 /^X\(\/\).*/{
24319 s//\1/
24322 s/.*/./; q'`
24323 test -d "$as_dir" && break
24324 done
24325 test -z "$as_dirs" || eval "mkdir $as_dirs"
24326 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24327 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24328 { (exit 1); exit 1; }; }; }
24329 # echo "creating $dirpart/$file"
24330 echo '# dummy' > "$dirpart/$file"
24331 done
24332 done
24335 esac
24336 done # for ac_tag
24339 { (exit 0); exit 0; }
24340 _ACEOF
24341 chmod +x $CONFIG_STATUS
24342 ac_clean_files=$ac_clean_files_save
24345 # configure is writing to config.log, and then calls config.status.
24346 # config.status does its own redirection, appending to config.log.
24347 # Unfortunately, on DOS this fails, as config.log is still kept open
24348 # by configure, so config.status won't be able to write to it; its
24349 # output is simply discarded. So we exec the FD to /dev/null,
24350 # effectively closing config.log, so it can be properly (re)opened and
24351 # appended to by config.status. When coming back to configure, we
24352 # need to make the FD available again.
24353 if test "$no_create" != yes; then
24354 ac_cs_success=:
24355 ac_config_status_args=
24356 test "$silent" = yes &&
24357 ac_config_status_args="$ac_config_status_args --quiet"
24358 exec 5>/dev/null
24359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24360 exec 5>>config.log
24361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24362 # would make configure fail if this is the last instruction.
24363 $ac_cs_success || { (exit 1); exit 1; }