Version 0.0.7 for release
[rarfs.git] / rarfs / configure
blob95ebc3b779e5e0b1314289c7f09e13660ea08571
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 echo=${ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621 then
622 break
624 done
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
631 else
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
640 IFS="$lt_save_ifs"
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 echo="$dir/echo"
646 break
648 done
649 IFS="$lt_save_ifs"
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
657 echo='print -r'
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
664 export CONFIG_SHELL
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666 else
667 # Try using printf.
668 echo='printf %s\n'
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 # Cool, printf works
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 export CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
681 export SHELL
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
688 else
689 # maybe with a smaller string...
690 prev=:
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694 then
695 break
697 prev="$cmd"
698 done
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 else
705 # Oops. We lost completely, so just stick with echo.
706 echo=echo
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
716 ECHO=$echo
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
730 # Name of the host.
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736 # Initializations.
738 ac_default_prefix=/usr/local
739 ac_clean_files=
740 ac_config_libobj_dir=.
741 LIBOBJS=
742 cross_compiling=no
743 subdirs=
744 MFLAGS=
745 MAKEFLAGS=
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
749 PACKAGE_NAME=
750 PACKAGE_TARNAME=
751 PACKAGE_VERSION=
752 PACKAGE_STRING=
753 PACKAGE_BUGREPORT=
755 ac_unique_file="src/main.cc"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
758 #include <stdio.h>
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
761 #endif
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
764 #endif
765 #ifdef STDC_HEADERS
766 # include <stdlib.h>
767 # include <stddef.h>
768 #else
769 # ifdef HAVE_STDLIB_H
770 # include <stdlib.h>
771 # endif
772 #endif
773 #ifdef HAVE_STRING_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 # include <memory.h>
776 # endif
777 # include <string.h>
778 #endif
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
781 #endif
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
784 #endif
785 #ifdef HAVE_STDINT_H
786 # include <stdint.h>
787 #endif
788 #ifdef HAVE_UNISTD_H
789 # include <unistd.h>
790 #endif"
792 ac_subst_vars='SHELL
793 PATH_SEPARATOR
794 PACKAGE_NAME
795 PACKAGE_TARNAME
796 PACKAGE_VERSION
797 PACKAGE_STRING
798 PACKAGE_BUGREPORT
799 exec_prefix
800 prefix
801 program_transform_name
802 bindir
803 sbindir
804 libexecdir
805 datarootdir
806 datadir
807 sysconfdir
808 sharedstatedir
809 localstatedir
810 includedir
811 oldincludedir
812 docdir
813 infodir
814 htmldir
815 dvidir
816 pdfdir
817 psdir
818 libdir
819 localedir
820 mandir
821 DEFS
822 ECHO_C
823 ECHO_N
824 ECHO_T
825 LIBS
826 build_alias
827 host_alias
828 target_alias
829 INSTALL_PROGRAM
830 INSTALL_SCRIPT
831 INSTALL_DATA
832 am__isrc
833 CYGPATH_W
834 PACKAGE
835 VERSION
836 ACLOCAL
837 AUTOCONF
838 AUTOMAKE
839 AUTOHEADER
840 MAKEINFO
841 install_sh
842 STRIP
843 INSTALL_STRIP_PROGRAM
844 MKDIR_P
845 mkdir_p
847 SET_MAKE
848 am__leading_dot
849 AMTAR
850 am__tar
851 am__untar
853 CFLAGS
854 LDFLAGS
855 CPPFLAGS
856 ac_ct_CC
857 EXEEXT
858 OBJEXT
859 DEPDIR
860 am__include
861 am__quote
862 AMDEP_TRUE
863 AMDEP_FALSE
864 AMDEPBACKSLASH
865 CCDEPMODE
866 am__fastdepCC_TRUE
867 am__fastdepCC_FALSE
869 CXXFLAGS
870 ac_ct_CXX
871 CXXDEPMODE
872 am__fastdepCXX_TRUE
873 am__fastdepCXX_FALSE
874 build
875 build_cpu
876 build_vendor
877 build_os
878 host
879 host_cpu
880 host_vendor
881 host_os
883 GREP
884 EGREP
885 LN_S
886 ECHO
888 RANLIB
889 DSYMUTIL
890 NMEDIT
892 CXXCPP
894 FFLAGS
895 ac_ct_F77
896 LIBTOOL
897 LIBOBJS
898 LTLIBOBJS'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_dependency_tracking
903 enable_shared
904 enable_static
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_pic
909 with_tags
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
920 CXXFLAGS
923 CXXCPP
925 FFLAGS'
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_libraries=NONE
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
976 ac_prev=
977 ac_dashdash=
978 for ac_option
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
983 ac_prev=
984 continue
987 case $ac_option in
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *) ac_optarg=yes ;;
990 esac
992 # Accept the important Cygnus configure options, so we can diagnose typos.
994 case $ac_dashdash$ac_option in
996 ac_dashdash=yes ;;
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 ac_prev=bindir ;;
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1018 -datadir | --datadir | --datadi | --datad)
1019 ac_prev=datadir ;;
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1030 -disable-* | --disable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=\$ac_optarg ;;
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
1135 | --localstate | --localstat | --localsta | --localst | --locals)
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139 localstatedir=$ac_optarg ;;
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1152 no_create=yes ;;
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1262 -with-* | --with-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1267 { (exit 1); exit 1; }; }
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1314 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 esac
1337 done
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1349 { (exit 1); exit 1; }; } ;;
1350 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 esac
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1362 case $ac_val in
1363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1366 esac
1367 # Be sure to have absolute directory names.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1373 { (exit 1); exit 1; }; }
1374 done
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388 If a cross compiler is detected then cross compile mode will be used." >&2
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397 test "$silent" = yes && exec 6>/dev/null
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1404 { (exit 1); exit 1; }; }
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1407 { (exit 1); exit 1; }; }
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1428 /^X\(\/\/\)$/{
1429 s//\1/
1432 /^X\(\/\).*/{
1433 s//\1/
1436 s/.*/./; q'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1441 else
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1447 { (exit 1); exit 1; }; }
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1452 { (exit 1); exit 1; }; }
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures this package to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1533 cat <<\_ACEOF
1535 Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 _ACEOF
1546 if test -n "$ac_init_help"; then
1548 cat <<\_ACEOF
1550 Optional Features:
1551 --disable-option-checking ignore unrecognized --enable/--with options
1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1554 --disable-dependency-tracking speeds up one-time build
1555 --enable-dependency-tracking do not reject slow dependency extractors
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1562 Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 --with-pic try to use only PIC/non-PIC objects [default=use
1567 both]
1568 --with-tags[=TAGS] include additional configurations [automatic]
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CXX C++ compiler command
1579 CXXFLAGS C++ compiler flags
1580 CPP C preprocessor
1581 CXXCPP C++ preprocessor
1582 F77 Fortran 77 compiler command
1583 FFLAGS Fortran 77 compiler flags
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1588 _ACEOF
1589 ac_status=$?
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 configure
1651 generated by GNU Autoconf 2.62
1653 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1654 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1655 This configure script is free software; the Free Software Foundation
1656 gives unlimited permission to copy, distribute and modify it.
1657 _ACEOF
1658 exit
1660 cat >config.log <<_ACEOF
1661 This file contains any messages produced by compilers while
1662 running configure, to aid debugging if configure makes a mistake.
1664 It was created by $as_me, which was
1665 generated by GNU Autoconf 2.62. Invocation command line was
1667 $ $0 $@
1669 _ACEOF
1670 exec 5>>config.log
1672 cat <<_ASUNAME
1673 ## --------- ##
1674 ## Platform. ##
1675 ## --------- ##
1677 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1678 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1679 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1680 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1681 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1684 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1687 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1688 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1689 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1690 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1691 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1692 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694 _ASUNAME
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 $as_echo "PATH: $as_dir"
1702 done
1703 IFS=$as_save_IFS
1705 } >&5
1707 cat >&5 <<_ACEOF
1710 ## ----------- ##
1711 ## Core tests. ##
1712 ## ----------- ##
1714 _ACEOF
1717 # Keep a trace of the command line.
1718 # Strip out --no-create and --no-recursion so they do not pile up.
1719 # Strip out --silent because we don't want to record it for future runs.
1720 # Also quote any args containing shell meta-characters.
1721 # Make two passes to allow for proper duplicate-argument suppression.
1722 ac_configure_args=
1723 ac_configure_args0=
1724 ac_configure_args1=
1725 ac_must_keep_next=false
1726 for ac_pass in 1 2
1728 for ac_arg
1730 case $ac_arg in
1731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1733 | -silent | --silent | --silen | --sile | --sil)
1734 continue ;;
1735 *\'*)
1736 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1737 esac
1738 case $ac_pass in
1739 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1742 if test $ac_must_keep_next = true; then
1743 ac_must_keep_next=false # Got value, back to normal.
1744 else
1745 case $ac_arg in
1746 *=* | --config-cache | -C | -disable-* | --disable-* \
1747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1749 | -with-* | --with-* | -without-* | --without-* | --x)
1750 case "$ac_configure_args0 " in
1751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1752 esac
1754 -* ) ac_must_keep_next=true ;;
1755 esac
1757 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 esac
1760 done
1761 done
1762 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1763 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765 # When interrupted or exit'd, cleanup temporary files, and complete
1766 # config.log. We remove comments because anyway the quotes in there
1767 # would cause problems or look ugly.
1768 # WARNING: Use '\'' to represent an apostrophe within the trap.
1769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1770 trap 'exit_status=$?
1771 # Save into config.log some information that might help in debugging.
1773 echo
1775 cat <<\_ASBOX
1776 ## ---------------- ##
1777 ## Cache variables. ##
1778 ## ---------------- ##
1779 _ASBOX
1780 echo
1781 # The following way of writing the cache mishandles newlines in values,
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in #(
1786 *${as_nl}*)
1787 case $ac_var in #(
1788 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1789 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1790 esac
1791 case $ac_var in #(
1792 _ | IFS | as_nl) ;; #(
1793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794 *) $as_unset $ac_var ;;
1795 esac ;;
1796 esac
1797 done
1798 (set) 2>&1 |
1799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800 *${as_nl}ac_space=\ *)
1801 sed -n \
1802 "s/'\''/'\''\\\\'\'''\''/g;
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804 ;; #(
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808 esac |
1809 sort
1811 echo
1813 cat <<\_ASBOX
1814 ## ----------------- ##
1815 ## Output variables. ##
1816 ## ----------------- ##
1817 _ASBOX
1818 echo
1819 for ac_var in $ac_subst_vars
1821 eval ac_val=\$$ac_var
1822 case $ac_val in
1823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 esac
1825 $as_echo "$ac_var='\''$ac_val'\''"
1826 done | sort
1827 echo
1829 if test -n "$ac_subst_files"; then
1830 cat <<\_ASBOX
1831 ## ------------------- ##
1832 ## File substitutions. ##
1833 ## ------------------- ##
1834 _ASBOX
1835 echo
1836 for ac_var in $ac_subst_files
1838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 $as_echo "$ac_var='\''$ac_val'\''"
1843 done | sort
1844 echo
1847 if test -s confdefs.h; then
1848 cat <<\_ASBOX
1849 ## ----------- ##
1850 ## confdefs.h. ##
1851 ## ----------- ##
1852 _ASBOX
1853 echo
1854 cat confdefs.h
1855 echo
1857 test "$ac_signal" != 0 &&
1858 $as_echo "$as_me: caught signal $ac_signal"
1859 $as_echo "$as_me: exit $exit_status"
1860 } >&5
1861 rm -f core *.core core.conftest.* &&
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1863 exit $exit_status
1865 for ac_signal in 1 2 13 15; do
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1867 done
1868 ac_signal=0
1870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1871 rm -f -r conftest* confdefs.h
1873 # Predefined preprocessor variables.
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_NAME "$PACKAGE_NAME"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_STRING "$PACKAGE_STRING"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897 _ACEOF
1900 # Let the site file select an alternate cache file if it wants to.
1901 # Prefer an explicitly selected file to automatically selected ones.
1902 ac_site_file1=NONE
1903 ac_site_file2=NONE
1904 if test -n "$CONFIG_SITE"; then
1905 ac_site_file1=$CONFIG_SITE
1906 elif test "x$prefix" != xNONE; then
1907 ac_site_file1=$prefix/share/config.site
1908 ac_site_file2=$prefix/etc/config.site
1909 else
1910 ac_site_file1=$ac_default_prefix/share/config.site
1911 ac_site_file2=$ac_default_prefix/etc/config.site
1913 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915 test "x$ac_site_file" = xNONE && continue
1916 if test -r "$ac_site_file"; then
1917 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1918 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1919 sed 's/^/| /' "$ac_site_file" >&5
1920 . "$ac_site_file"
1922 done
1924 if test -r "$cache_file"; then
1925 # Some versions of bash will fail to source /dev/null (special
1926 # files actually), so we avoid doing that.
1927 if test -f "$cache_file"; then
1928 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1929 $as_echo "$as_me: loading cache $cache_file" >&6;}
1930 case $cache_file in
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1932 *) . "./$cache_file";;
1933 esac
1935 else
1936 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1937 $as_echo "$as_me: creating cache $cache_file" >&6;}
1938 >$cache_file
1941 # Check that the precious variables saved in the cache have kept the same
1942 # value.
1943 ac_cache_corrupted=false
1944 for ac_var in $ac_precious_vars; do
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1946 eval ac_new_set=\$ac_env_${ac_var}_set
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1948 eval ac_new_val=\$ac_env_${ac_var}_value
1949 case $ac_old_set,$ac_new_set in
1950 set,)
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1952 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,set)
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1956 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1957 ac_cache_corrupted=: ;;
1958 ,);;
1960 if test "x$ac_old_val" != "x$ac_new_val"; then
1961 # differences in whitespace do not lead to failure.
1962 ac_old_val_w=`echo x $ac_old_val`
1963 ac_new_val_w=`echo x $ac_new_val`
1964 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967 ac_cache_corrupted=:
1968 else
1969 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1970 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1971 eval $ac_var=\$ac_old_val
1973 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1974 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1975 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1976 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1977 fi;;
1978 esac
1979 # Pass precious variables to config.status.
1980 if test "$ac_new_set" = set; then
1981 case $ac_new_val in
1982 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 *) ac_arg=$ac_var=$ac_new_val ;;
1984 esac
1985 case " $ac_configure_args " in
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 esac
1990 done
1991 if $ac_cache_corrupted; then
1992 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996 { (exit 1); exit 1; }; }
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 am__api_version='1.10'
2024 ac_aux_dir=
2025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2026 if test -f "$ac_dir/install-sh"; then
2027 ac_aux_dir=$ac_dir
2028 ac_install_sh="$ac_aux_dir/install-sh -c"
2029 break
2030 elif test -f "$ac_dir/install.sh"; then
2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install.sh -c"
2033 break
2034 elif test -f "$ac_dir/shtool"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 break
2039 done
2040 if test -z "$ac_aux_dir"; then
2041 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2042 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2043 { (exit 1); exit 1; }; }
2046 # These three variables are undocumented and unsupported,
2047 # and are intended to be withdrawn in a future Autoconf release.
2048 # They can cause serious problems if a builder's source tree is in a directory
2049 # whose full name contains unusual characters.
2050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055 # Find a good install program. We prefer a C program (faster),
2056 # so one script is as good as another. But avoid the broken or
2057 # incompatible versions:
2058 # SysV /etc/install, /usr/sbin/install
2059 # SunOS /usr/etc/install
2060 # IRIX /sbin/install
2061 # AIX /bin/install
2062 # AmigaOS /C/install, which installs bootblocks on floppy discs
2063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2066 # OS/2's system install, which has a completely different semantic
2067 # ./install, which can be erroneously created by make from ./install.sh.
2068 # Reject install programs that cannot install multiple files.
2069 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2071 if test -z "$INSTALL"; then
2072 if test "${ac_cv_path_install+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 # Account for people who put trailing slashes in PATH elements.
2081 case $as_dir/ in
2082 ./ | .// | /cC/* | \
2083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2085 /usr/ucb/* ) ;;
2087 # OSF1 and SCO ODT 3.0 have their own names for install.
2088 # Don't use installbsd from OSF since it installs stuff as root
2089 # by default.
2090 for ac_prog in ginstall scoinst install; do
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2093 if test $ac_prog = install &&
2094 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095 # AIX install. It has an incompatible calling convention.
2097 elif test $ac_prog = install &&
2098 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # program-specific install script used by HP pwplus--don't use.
2101 else
2102 rm -rf conftest.one conftest.two conftest.dir
2103 echo one > conftest.one
2104 echo two > conftest.two
2105 mkdir conftest.dir
2106 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2107 test -s conftest.one && test -s conftest.two &&
2108 test -s conftest.dir/conftest.one &&
2109 test -s conftest.dir/conftest.two
2110 then
2111 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2112 break 3
2116 done
2117 done
2119 esac
2121 done
2122 IFS=$as_save_IFS
2124 rm -rf conftest.one conftest.two conftest.dir
2127 if test "${ac_cv_path_install+set}" = set; then
2128 INSTALL=$ac_cv_path_install
2129 else
2130 # As a last resort, use the slow shell script. Don't cache a
2131 # value for INSTALL within a source directory, because that will
2132 # break other packages using the cache if that directory is
2133 # removed, or if the value is a relative name.
2134 INSTALL=$ac_install_sh
2137 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2138 $as_echo "$INSTALL" >&6; }
2140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2141 # It thinks the first close brace ends the variable substitution.
2142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2148 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2149 $as_echo_n "checking whether build environment is sane... " >&6; }
2150 # Just in case
2151 sleep 1
2152 echo timestamp > conftest.file
2153 # Do `set' in a subshell so we don't clobber the current shell's
2154 # arguments. Must try -L first in case configure is actually a
2155 # symlink; some systems play weird games with the mod time of symlinks
2156 # (eg FreeBSD returns the mod time of the symlink's containing
2157 # directory).
2158 if (
2159 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2160 if test "$*" = "X"; then
2161 # -L didn't work.
2162 set X `ls -t $srcdir/configure conftest.file`
2164 rm -f conftest.file
2165 if test "$*" != "X $srcdir/configure conftest.file" \
2166 && test "$*" != "X conftest.file $srcdir/configure"; then
2168 # If neither matched, then we have a broken ls. This can happen
2169 # if, for instance, CONFIG_SHELL is bash and it inherits a
2170 # broken ls alias from the environment. This has actually
2171 # happened. Such a system could not be considered "sane".
2172 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2173 alias in your environment" >&5
2174 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2175 alias in your environment" >&2;}
2176 { (exit 1); exit 1; }; }
2179 test "$2" = conftest.file
2181 then
2182 # Ok.
2184 else
2185 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2186 Check your system clock" >&5
2187 $as_echo "$as_me: error: newly created file is older than distributed files!
2188 Check your system clock" >&2;}
2189 { (exit 1); exit 1; }; }
2191 { $as_echo "$as_me:$LINENO: result: yes" >&5
2192 $as_echo "yes" >&6; }
2193 test "$program_prefix" != NONE &&
2194 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2195 # Use a double $ so make ignores it.
2196 test "$program_suffix" != NONE &&
2197 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2198 # Double any \ or $.
2199 # By default was `s,x,x', remove it if useless.
2200 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2201 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2203 # expand $ac_aux_dir to an absolute path
2204 am_aux_dir=`cd $ac_aux_dir && pwd`
2206 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2207 # Use eval to expand $SHELL
2208 if eval "$MISSING --run true"; then
2209 am_missing_run="$MISSING --run "
2210 else
2211 am_missing_run=
2212 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2213 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2216 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2218 if test -z "$MKDIR_P"; then
2219 if test "${ac_cv_path_mkdir+set}" = set; then
2220 $as_echo_n "(cached) " >&6
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_prog in mkdir gmkdir; do
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2231 'mkdir (GNU coreutils) '* | \
2232 'mkdir (coreutils) '* | \
2233 'mkdir (fileutils) '4.1*)
2234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2235 break 3;;
2236 esac
2237 done
2238 done
2239 done
2240 IFS=$as_save_IFS
2244 if test "${ac_cv_path_mkdir+set}" = set; then
2245 MKDIR_P="$ac_cv_path_mkdir -p"
2246 else
2247 # As a last resort, use the slow shell script. Don't cache a
2248 # value for MKDIR_P within a source directory, because that will
2249 # break other packages using the cache if that directory is
2250 # removed, or if the value is a relative name.
2251 test -d ./--version && rmdir ./--version
2252 MKDIR_P="$ac_install_sh -d"
2255 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2256 $as_echo "$MKDIR_P" >&6; }
2258 mkdir_p="$MKDIR_P"
2259 case $mkdir_p in
2260 [\\/$]* | ?:[\\/]*) ;;
2261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2262 esac
2264 for ac_prog in gawk mawk nawk awk
2266 # Extract the first word of "$ac_prog", so it can be a program name with args.
2267 set dummy $ac_prog; ac_word=$2
2268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_AWK+set}" = set; then
2271 $as_echo_n "(cached) " >&6
2272 else
2273 if test -n "$AWK"; then
2274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_AWK="$ac_prog"
2284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2287 done
2288 done
2289 IFS=$as_save_IFS
2293 AWK=$ac_cv_prog_AWK
2294 if test -n "$AWK"; then
2295 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2296 $as_echo "$AWK" >&6; }
2297 else
2298 { $as_echo "$as_me:$LINENO: result: no" >&5
2299 $as_echo "no" >&6; }
2303 test -n "$AWK" && break
2304 done
2306 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2308 set x ${MAKE-make}
2309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2310 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2311 $as_echo_n "(cached) " >&6
2312 else
2313 cat >conftest.make <<\_ACEOF
2314 SHELL = /bin/sh
2315 all:
2316 @echo '@@@%%%=$(MAKE)=@@@%%%'
2317 _ACEOF
2318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2320 *@@@%%%=?*=@@@%%%*)
2321 eval ac_cv_prog_make_${ac_make}_set=yes;;
2323 eval ac_cv_prog_make_${ac_make}_set=no;;
2324 esac
2325 rm -f conftest.make
2327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2328 { $as_echo "$as_me:$LINENO: result: yes" >&5
2329 $as_echo "yes" >&6; }
2330 SET_MAKE=
2331 else
2332 { $as_echo "$as_me:$LINENO: result: no" >&5
2333 $as_echo "no" >&6; }
2334 SET_MAKE="MAKE=${MAKE-make}"
2337 rm -rf .tst 2>/dev/null
2338 mkdir .tst 2>/dev/null
2339 if test -d .tst; then
2340 am__leading_dot=.
2341 else
2342 am__leading_dot=_
2344 rmdir .tst 2>/dev/null
2346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2348 # is not polluted with repeated "-I."
2349 am__isrc=' -I$(srcdir)'
2350 # test to see if srcdir already configured
2351 if test -f $srcdir/config.status; then
2352 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2353 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2354 { (exit 1); exit 1; }; }
2358 # test whether we have cygpath
2359 if test -z "$CYGPATH_W"; then
2360 if (cygpath --version) >/dev/null 2>/dev/null; then
2361 CYGPATH_W='cygpath -w'
2362 else
2363 CYGPATH_W=echo
2368 # Define the identity of the package.
2369 PACKAGE=rarfs
2370 VERSION=0.0.7
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE "$PACKAGE"
2375 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define VERSION "$VERSION"
2380 _ACEOF
2382 # Some tools Automake needs.
2384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2398 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2400 # Installed binaries are usually stripped using `strip' when the user
2401 # run `make install-strip'. However `strip' might not be the right
2402 # tool to use in cross-compilation environments, therefore Automake
2403 # will honor the `STRIP' environment variable to overrule this program.
2404 if test "$cross_compiling" != no; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}strip; ac_word=$2
2408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if test "${ac_cv_prog_STRIP+set}" = set; then
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test -n "$STRIP"; then
2414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2427 done
2428 done
2429 IFS=$as_save_IFS
2433 STRIP=$ac_cv_prog_STRIP
2434 if test -n "$STRIP"; then
2435 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2436 $as_echo "$STRIP" >&6; }
2437 else
2438 { $as_echo "$as_me:$LINENO: result: no" >&5
2439 $as_echo "no" >&6; }
2444 if test -z "$ac_cv_prog_STRIP"; then
2445 ac_ct_STRIP=$STRIP
2446 # Extract the first word of "strip", so it can be a program name with args.
2447 set dummy strip; ac_word=$2
2448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$ac_ct_STRIP"; then
2454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_ac_ct_STRIP="strip"
2464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2467 done
2468 done
2469 IFS=$as_save_IFS
2473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2474 if test -n "$ac_ct_STRIP"; then
2475 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2476 $as_echo "$ac_ct_STRIP" >&6; }
2477 else
2478 { $as_echo "$as_me:$LINENO: result: no" >&5
2479 $as_echo "no" >&6; }
2482 if test "x$ac_ct_STRIP" = x; then
2483 STRIP=":"
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486 yes:)
2487 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 STRIP=$ac_ct_STRIP
2497 else
2498 STRIP="$ac_cv_prog_STRIP"
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2504 # We need awk for the "check" target. The system "awk" is bad on
2505 # some platforms.
2506 # Always define AMTAR for backward compatibility.
2508 AMTAR=${AMTAR-"${am_missing_run}tar"}
2510 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2516 ac_config_headers="$ac_config_headers config.h"
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2545 done
2546 done
2547 IFS=$as_save_IFS
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2554 $as_echo "$CC" >&6; }
2555 else
2556 { $as_echo "$as_me:$LINENO: result: no" >&5
2557 $as_echo "no" >&6; }
2562 if test -z "$ac_cv_prog_CC"; then
2563 ac_ct_CC=$CC
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_CC="gcc"
2582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2585 done
2586 done
2587 IFS=$as_save_IFS
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594 $as_echo "$ac_ct_CC" >&6; }
2595 else
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&5
2608 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611 ac_tool_warned=yes ;;
2612 esac
2613 CC=$ac_ct_CC
2615 else
2616 CC="$ac_cv_prog_CC"
2619 if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2622 set dummy ${ac_tool_prefix}cc; ac_word=$2
2623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_CC="${ac_tool_prefix}cc"
2639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 CC=$ac_cv_prog_CC
2649 if test -n "$CC"; then
2650 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2651 $as_echo "$CC" >&6; }
2652 else
2653 { $as_echo "$as_me:$LINENO: result: no" >&5
2654 $as_echo "no" >&6; }
2660 if test -z "$CC"; then
2661 # Extract the first word of "cc", so it can be a program name with args.
2662 set dummy cc; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 ac_prog_rejected=no
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680 ac_prog_rejected=yes
2681 continue
2683 ac_cv_prog_CC="cc"
2684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2689 IFS=$as_save_IFS
2691 if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2694 shift
2695 if test $# != 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2699 shift
2700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2708 $as_echo "$CC" >&6; }
2709 else
2710 { $as_echo "$as_me:$LINENO: result: no" >&5
2711 $as_echo "no" >&6; }
2716 if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 for ac_prog in cl.exe
2720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$CC" && break
2758 done
2760 if test -z "$CC"; then
2761 ac_ct_CC=$CC
2762 for ac_prog in cl.exe
2764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2765 set dummy $ac_prog; ac_word=$2
2766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="$ac_prog"
2782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 $as_echo "$ac_ct_CC" >&6; }
2795 else
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797 $as_echo "no" >&6; }
2801 test -n "$ac_ct_CC" && break
2802 done
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&5
2812 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2824 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details." >&5
2826 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details." >&2;}
2828 { (exit 1); exit 1; }; }
2830 # Provide some information about the compiler.
2831 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2832 set X $ac_compile
2833 ac_compiler=$2
2834 { (ac_try="$ac_compiler --version >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compiler --version >&5") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 { (ac_try="$ac_compiler -v >&5"
2846 case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2851 $as_echo "$ac_try_echo") >&5
2852 (eval "$ac_compiler -v >&5") 2>&5
2853 ac_status=$?
2854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (ac_try="$ac_compiler -V >&5"
2857 case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860 esac
2861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862 $as_echo "$ac_try_echo") >&5
2863 (eval "$ac_compiler -V >&5") 2>&5
2864 ac_status=$?
2865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2876 main ()
2880 return 0;
2882 _ACEOF
2883 ac_clean_files_save=$ac_clean_files
2884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2885 # Try to create an executable without -o first, disregard a.out.
2886 # It will help us diagnose broken compilers, and finding out an intuition
2887 # of exeext.
2888 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2889 $as_echo_n "checking for C compiler default output file name... " >&6; }
2890 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2892 # The possible output files:
2893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2895 ac_rmfiles=
2896 for ac_file in $ac_files
2898 case $ac_file in
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901 esac
2902 done
2903 rm -f $ac_rmfiles
2905 if { (ac_try="$ac_link_default"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911 $as_echo "$ac_try_echo") >&5
2912 (eval "$ac_link_default") 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2917 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2918 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2919 # so that the user can short-circuit this test for compilers unknown to
2920 # Autoconf.
2921 for ac_file in $ac_files ''
2923 test -f "$ac_file" || continue
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2927 [ab].out )
2928 # We found the default executable, but exeext='' is most
2929 # certainly right.
2930 break;;
2931 *.* )
2932 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2933 then :; else
2934 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 # We set ac_cv_exeext here because the later test for it is not
2937 # safe: cross compilers may not add the suffix if given an `-o'
2938 # argument, so we may need to know it at that point already.
2939 # Even if this section looks crufty: it has the advantage of
2940 # actually working.
2941 break;;
2943 break;;
2944 esac
2945 done
2946 test "$ac_cv_exeext" = no && ac_cv_exeext=
2948 else
2949 ac_file=''
2952 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2953 $as_echo "$ac_file" >&6; }
2954 if test -z "$ac_file"; then
2955 $as_echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2959 See \`config.log' for more details." >&5
2960 $as_echo "$as_me: error: C compiler cannot create executables
2961 See \`config.log' for more details." >&2;}
2962 { (exit 77); exit 77; }; }
2965 ac_exeext=$ac_cv_exeext
2967 # Check that the compiler produces executables we can run. If not, either
2968 # the compiler is broken, or we cross compile.
2969 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2970 $as_echo_n "checking whether the C compiler works... " >&6; }
2971 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2972 # If not cross compiling, check that we can run a simple program.
2973 if test "$cross_compiling" != yes; then
2974 if { ac_try='./$ac_file'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980 $as_echo "$ac_try_echo") >&5
2981 (eval "$ac_try") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 cross_compiling=no
2986 else
2987 if test "$cross_compiling" = maybe; then
2988 cross_compiling=yes
2989 else
2990 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'.
2992 See \`config.log' for more details." >&5
2993 $as_echo "$as_me: error: cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
3000 { $as_echo "$as_me:$LINENO: result: yes" >&5
3001 $as_echo "yes" >&6; }
3003 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3004 ac_clean_files=$ac_clean_files_save
3005 # Check that the compiler produces executables we can run. If not, either
3006 # the compiler is broken, or we cross compile.
3007 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3008 $as_echo_n "checking whether we are cross compiling... " >&6; }
3009 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3010 $as_echo "$cross_compiling" >&6; }
3012 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3013 $as_echo_n "checking for suffix of executables... " >&6; }
3014 if { (ac_try="$ac_link"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020 $as_echo "$ac_try_echo") >&5
3021 (eval "$ac_link") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; then
3025 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3026 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3027 # work properly (i.e., refer to `conftest.exe'), while it won't with
3028 # `rm'.
3029 for ac_file in conftest.exe conftest conftest.*; do
3030 test -f "$ac_file" || continue
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 break;;
3035 * ) break;;
3036 esac
3037 done
3038 else
3039 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3040 See \`config.log' for more details." >&5
3041 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3046 rm -f conftest$ac_cv_exeext
3047 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3048 $as_echo "$ac_cv_exeext" >&6; }
3050 rm -f conftest.$ac_ext
3051 EXEEXT=$ac_cv_exeext
3052 ac_exeext=$EXEEXT
3053 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3054 $as_echo_n "checking for suffix of object files... " >&6; }
3055 if test "${ac_cv_objext+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 rm -f conftest.o conftest.obj
3074 if { (ac_try="$ac_compile"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080 $as_echo "$ac_try_echo") >&5
3081 (eval "$ac_compile") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 for ac_file in conftest.o conftest.obj conftest.*; do
3086 test -f "$ac_file" || continue;
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090 break;;
3091 esac
3092 done
3093 else
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3098 See \`config.log' for more details." >&5
3099 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3109 ac_objext=$OBJEXT
3110 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 main ()
3125 #ifndef __GNUC__
3126 choke me
3127 #endif
3130 return 0;
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3140 $as_echo "$ac_try_echo") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3151 ac_compiler_gnu=yes
3152 else
3153 $as_echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_compiler_gnu=no
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3166 GCC=yes
3167 else
3168 GCC=
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if test "${ac_cv_prog_cc_g+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3179 ac_cv_prog_cc_g=no
3180 CFLAGS="-g"
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3189 main ()
3193 return 0;
3195 _ACEOF
3196 rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cc_g=yes
3215 else
3216 $as_echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3219 CFLAGS=""
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 ac_c_werror_flag=$ac_save_c_werror_flag
3259 CFLAGS="-g"
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 ac_cv_prog_cc_g=yes
3294 else
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3311 $as_echo "$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3316 CFLAGS="-g -O2"
3317 else
3318 CFLAGS="-g"
3320 else
3321 if test "$GCC" = yes; then
3322 CFLAGS="-O2"
3323 else
3324 CFLAGS=
3327 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329 if test "${ac_cv_prog_cc_c89+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3331 else
3332 ac_cv_prog_cc_c89=no
3333 ac_save_CC=$CC
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <stdarg.h>
3341 #include <stdio.h>
3342 #include <sys/types.h>
3343 #include <sys/stat.h>
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3351 return p[i];
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374 #define FOO(x) 'x'
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381 int argc;
3382 char **argv;
3384 main ()
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 return 0;
3390 _ACEOF
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 CC="$ac_save_CC $ac_arg"
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_cv_prog_cc_c89=$ac_arg
3414 else
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext
3422 test "x$ac_cv_prog_cc_c89" != "xno" && break
3423 done
3424 rm -f conftest.$ac_ext
3425 CC=$ac_save_CC
3428 # AC_CACHE_VAL
3429 case "x$ac_cv_prog_cc_c89" in
3431 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3432 $as_echo "none needed" >&6; } ;;
3433 xno)
3434 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3435 $as_echo "unsupported" >&6; } ;;
3437 CC="$CC $ac_cv_prog_cc_c89"
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3439 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3440 esac
3443 ac_ext=c
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 DEPDIR="${am__leading_dot}deps"
3450 ac_config_commands="$ac_config_commands depfiles"
3453 am_make=${MAKE-make}
3454 cat > confinc << 'END'
3455 am__doit:
3456 @echo done
3457 .PHONY: am__doit
3459 # If we don't find an include directive, just comment out the code.
3460 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3461 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3462 am__include="#"
3463 am__quote=
3464 _am_result=none
3465 # First try GNU make style include.
3466 echo "include confinc" > confmf
3467 # We grep out `Entering directory' and `Leaving directory'
3468 # messages which can occur if `w' ends up in MAKEFLAGS.
3469 # In particular we don't look at `^make:' because GNU make might
3470 # be invoked under some other name (usually "gmake"), in which
3471 # case it prints its new name instead of `make'.
3472 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3473 am__include=include
3474 am__quote=
3475 _am_result=GNU
3477 # Now try BSD make style include.
3478 if test "$am__include" = "#"; then
3479 echo '.include "confinc"' > confmf
3480 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3481 am__include=.include
3482 am__quote="\""
3483 _am_result=BSD
3488 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3489 $as_echo "$_am_result" >&6; }
3490 rm -f confinc confmf
3492 # Check whether --enable-dependency-tracking was given.
3493 if test "${enable_dependency_tracking+set}" = set; then
3494 enableval=$enable_dependency_tracking;
3497 if test "x$enable_dependency_tracking" != xno; then
3498 am_depcomp="$ac_aux_dir/depcomp"
3499 AMDEPBACKSLASH='\'
3501 if test "x$enable_dependency_tracking" != xno; then
3502 AMDEP_TRUE=
3503 AMDEP_FALSE='#'
3504 else
3505 AMDEP_TRUE='#'
3506 AMDEP_FALSE=
3511 depcc="$CC" am_compiler_list=
3513 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3514 $as_echo_n "checking dependency style of $depcc... " >&6; }
3515 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3519 # We make a subdir and do the tests there. Otherwise we can end up
3520 # making bogus files that we don't know about and never remove. For
3521 # instance it was reported that on HP-UX the gcc test will end up
3522 # making a dummy file named `D' -- because `-MD' means `put the output
3523 # in D'.
3524 mkdir conftest.dir
3525 # Copy depcomp to subdir because otherwise we won't find it if we're
3526 # using a relative directory.
3527 cp "$am_depcomp" conftest.dir
3528 cd conftest.dir
3529 # We will build objects and dependencies in a subdirectory because
3530 # it helps to detect inapplicable dependency modes. For instance
3531 # both Tru64's cc and ICC support -MD to output dependencies as a
3532 # side effect of compilation, but ICC will put the dependencies in
3533 # the current directory while Tru64 will put them in the object
3534 # directory.
3535 mkdir sub
3537 am_cv_CC_dependencies_compiler_type=none
3538 if test "$am_compiler_list" = ""; then
3539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3541 for depmode in $am_compiler_list; do
3542 # Setup a source with many dependencies, because some compilers
3543 # like to wrap large dependency lists on column 80 (with \), and
3544 # we should not choose a depcomp mode which is confused by this.
3546 # We need to recreate these files for each test, as the compiler may
3547 # overwrite some of them when testing with obscure command lines.
3548 # This happens at least with the AIX C compiler.
3549 : > sub/conftest.c
3550 for i in 1 2 3 4 5 6; do
3551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3552 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3553 # Solaris 8's {/usr,}/bin/sh.
3554 touch sub/conftst$i.h
3555 done
3556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3558 case $depmode in
3559 nosideeffect)
3560 # after this tag, mechanisms are not by side-effect, so they'll
3561 # only be used when explicitly requested
3562 if test "x$enable_dependency_tracking" = xyes; then
3563 continue
3564 else
3565 break
3568 none) break ;;
3569 esac
3570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3571 # mode. It turns out that the SunPro C++ compiler does not properly
3572 # handle `-M -o', and we need to detect this.
3573 if depmode=$depmode \
3574 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3576 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3577 >/dev/null 2>conftest.err &&
3578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3580 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3582 # icc doesn't choke on unknown options, it will just issue warnings
3583 # or remarks (even with -Werror). So we grep stderr for any message
3584 # that says an option was ignored or not supported.
3585 # When given -MP, icc 7.0 and 7.1 complain thusly:
3586 # icc: Command line warning: ignoring option '-M'; no argument required
3587 # The diagnosis changed in icc 8.0:
3588 # icc: Command line remark: option '-MP' not supported
3589 if (grep 'ignoring option' conftest.err ||
3590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3591 am_cv_CC_dependencies_compiler_type=$depmode
3592 break
3595 done
3597 cd ..
3598 rm -rf conftest.dir
3599 else
3600 am_cv_CC_dependencies_compiler_type=none
3604 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3605 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3606 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3609 test "x$enable_dependency_tracking" != xno \
3610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3611 am__fastdepCC_TRUE=
3612 am__fastdepCC_FALSE='#'
3613 else
3614 am__fastdepCC_TRUE='#'
3615 am__fastdepCC_FALSE=
3619 ac_ext=cpp
3620 ac_cpp='$CXXCPP $CPPFLAGS'
3621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3624 if test -z "$CXX"; then
3625 if test -n "$CCC"; then
3626 CXX=$CCC
3627 else
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CXX+set}" = set; then
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CXX"; then
3639 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3654 IFS=$as_save_IFS
3658 CXX=$ac_cv_prog_CXX
3659 if test -n "$CXX"; then
3660 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3661 $as_echo "$CXX" >&6; }
3662 else
3663 { $as_echo "$as_me:$LINENO: result: no" >&5
3664 $as_echo "no" >&6; }
3668 test -n "$CXX" && break
3669 done
3671 if test -z "$CXX"; then
3672 ac_ct_CXX=$CXX
3673 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$ac_ct_CXX"; then
3683 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CXX="$ac_prog"
3693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3698 IFS=$as_save_IFS
3702 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3703 if test -n "$ac_ct_CXX"; then
3704 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3705 $as_echo "$ac_ct_CXX" >&6; }
3706 else
3707 { $as_echo "$as_me:$LINENO: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$ac_ct_CXX" && break
3713 done
3715 if test "x$ac_ct_CXX" = x; then
3716 CXX="g++"
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3721 whose name does not start with the host triplet. If you think this
3722 configuration is useful to you, please write to autoconf@gnu.org." >&5
3723 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3724 whose name does not start with the host triplet. If you think this
3725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3726 ac_tool_warned=yes ;;
3727 esac
3728 CXX=$ac_ct_CXX
3734 # Provide some information about the compiler.
3735 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3736 set X $ac_compile
3737 ac_compiler=$2
3738 { (ac_try="$ac_compiler --version >&5"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3744 $as_echo "$ac_try_echo") >&5
3745 (eval "$ac_compiler --version >&5") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }
3749 { (ac_try="$ac_compiler -v >&5"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3755 $as_echo "$ac_try_echo") >&5
3756 (eval "$ac_compiler -v >&5") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
3760 { (ac_try="$ac_compiler -V >&5"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_compiler -V >&5") 2>&5
3768 ac_status=$?
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }
3772 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3774 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3775 $as_echo_n "(cached) " >&6
3776 else
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3785 main ()
3787 #ifndef __GNUC__
3788 choke me
3789 #endif
3792 return 0;
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3802 $as_echo "$ac_try_echo") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_cxx_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.$ac_objext; then
3813 ac_compiler_gnu=yes
3814 else
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 ac_compiler_gnu=no
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3826 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3827 if test $ac_compiler_gnu = yes; then
3828 GXX=yes
3829 else
3830 GXX=
3832 ac_test_CXXFLAGS=${CXXFLAGS+set}
3833 ac_save_CXXFLAGS=$CXXFLAGS
3834 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3835 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3836 if test "${ac_cv_prog_cxx_g+set}" = set; then
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3840 ac_cxx_werror_flag=yes
3841 ac_cv_prog_cxx_g=no
3842 CXXFLAGS="-g"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3851 main ()
3855 return 0;
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (ac_try="$ac_compile"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866 (eval "$ac_compile") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_cxx_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest.$ac_objext; then
3876 ac_cv_prog_cxx_g=yes
3877 else
3878 $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 CXXFLAGS=""
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 rm -f conftest.$ac_objext
3898 if { (ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_compile") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_cxx_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
3916 else
3917 $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 CXXFLAGS="-g"
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 main ()
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3944 $as_echo "$ac_try_echo") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_cxx_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3955 ac_cv_prog_cxx_g=yes
3956 else
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3972 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3973 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3974 if test "$ac_test_CXXFLAGS" = set; then
3975 CXXFLAGS=$ac_save_CXXFLAGS
3976 elif test $ac_cv_prog_cxx_g = yes; then
3977 if test "$GXX" = yes; then
3978 CXXFLAGS="-g -O2"
3979 else
3980 CXXFLAGS="-g"
3982 else
3983 if test "$GXX" = yes; then
3984 CXXFLAGS="-O2"
3985 else
3986 CXXFLAGS=
3989 ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 depcc="$CXX" am_compiler_list=
3997 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3998 $as_echo_n "checking dependency style of $depcc... " >&6; }
3999 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4003 # We make a subdir and do the tests there. Otherwise we can end up
4004 # making bogus files that we don't know about and never remove. For
4005 # instance it was reported that on HP-UX the gcc test will end up
4006 # making a dummy file named `D' -- because `-MD' means `put the output
4007 # in D'.
4008 mkdir conftest.dir
4009 # Copy depcomp to subdir because otherwise we won't find it if we're
4010 # using a relative directory.
4011 cp "$am_depcomp" conftest.dir
4012 cd conftest.dir
4013 # We will build objects and dependencies in a subdirectory because
4014 # it helps to detect inapplicable dependency modes. For instance
4015 # both Tru64's cc and ICC support -MD to output dependencies as a
4016 # side effect of compilation, but ICC will put the dependencies in
4017 # the current directory while Tru64 will put them in the object
4018 # directory.
4019 mkdir sub
4021 am_cv_CXX_dependencies_compiler_type=none
4022 if test "$am_compiler_list" = ""; then
4023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4025 for depmode in $am_compiler_list; do
4026 # Setup a source with many dependencies, because some compilers
4027 # like to wrap large dependency lists on column 80 (with \), and
4028 # we should not choose a depcomp mode which is confused by this.
4030 # We need to recreate these files for each test, as the compiler may
4031 # overwrite some of them when testing with obscure command lines.
4032 # This happens at least with the AIX C compiler.
4033 : > sub/conftest.c
4034 for i in 1 2 3 4 5 6; do
4035 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4036 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4037 # Solaris 8's {/usr,}/bin/sh.
4038 touch sub/conftst$i.h
4039 done
4040 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4042 case $depmode in
4043 nosideeffect)
4044 # after this tag, mechanisms are not by side-effect, so they'll
4045 # only be used when explicitly requested
4046 if test "x$enable_dependency_tracking" = xyes; then
4047 continue
4048 else
4049 break
4052 none) break ;;
4053 esac
4054 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4055 # mode. It turns out that the SunPro C++ compiler does not properly
4056 # handle `-M -o', and we need to detect this.
4057 if depmode=$depmode \
4058 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4060 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4061 >/dev/null 2>conftest.err &&
4062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4066 # icc doesn't choke on unknown options, it will just issue warnings
4067 # or remarks (even with -Werror). So we grep stderr for any message
4068 # that says an option was ignored or not supported.
4069 # When given -MP, icc 7.0 and 7.1 complain thusly:
4070 # icc: Command line warning: ignoring option '-M'; no argument required
4071 # The diagnosis changed in icc 8.0:
4072 # icc: Command line remark: option '-MP' not supported
4073 if (grep 'ignoring option' conftest.err ||
4074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4075 am_cv_CXX_dependencies_compiler_type=$depmode
4076 break
4079 done
4081 cd ..
4082 rm -rf conftest.dir
4083 else
4084 am_cv_CXX_dependencies_compiler_type=none
4088 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4089 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4090 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4093 test "x$enable_dependency_tracking" != xno \
4094 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4095 am__fastdepCXX_TRUE=
4096 am__fastdepCXX_FALSE='#'
4097 else
4098 am__fastdepCXX_TRUE='#'
4099 am__fastdepCXX_FALSE=
4103 # Find a good install program. We prefer a C program (faster),
4104 # so one script is as good as another. But avoid the broken or
4105 # incompatible versions:
4106 # SysV /etc/install, /usr/sbin/install
4107 # SunOS /usr/etc/install
4108 # IRIX /sbin/install
4109 # AIX /bin/install
4110 # AmigaOS /C/install, which installs bootblocks on floppy discs
4111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4114 # OS/2's system install, which has a completely different semantic
4115 # ./install, which can be erroneously created by make from ./install.sh.
4116 # Reject install programs that cannot install multiple files.
4117 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4118 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4119 if test -z "$INSTALL"; then
4120 if test "${ac_cv_path_install+set}" = set; then
4121 $as_echo_n "(cached) " >&6
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 # Account for people who put trailing slashes in PATH elements.
4129 case $as_dir/ in
4130 ./ | .// | /cC/* | \
4131 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4132 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4133 /usr/ucb/* ) ;;
4135 # OSF1 and SCO ODT 3.0 have their own names for install.
4136 # Don't use installbsd from OSF since it installs stuff as root
4137 # by default.
4138 for ac_prog in ginstall scoinst install; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4141 if test $ac_prog = install &&
4142 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4143 # AIX install. It has an incompatible calling convention.
4145 elif test $ac_prog = install &&
4146 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4147 # program-specific install script used by HP pwplus--don't use.
4149 else
4150 rm -rf conftest.one conftest.two conftest.dir
4151 echo one > conftest.one
4152 echo two > conftest.two
4153 mkdir conftest.dir
4154 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4155 test -s conftest.one && test -s conftest.two &&
4156 test -s conftest.dir/conftest.one &&
4157 test -s conftest.dir/conftest.two
4158 then
4159 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4160 break 3
4164 done
4165 done
4167 esac
4169 done
4170 IFS=$as_save_IFS
4172 rm -rf conftest.one conftest.two conftest.dir
4175 if test "${ac_cv_path_install+set}" = set; then
4176 INSTALL=$ac_cv_path_install
4177 else
4178 # As a last resort, use the slow shell script. Don't cache a
4179 # value for INSTALL within a source directory, because that will
4180 # break other packages using the cache if that directory is
4181 # removed, or if the value is a relative name.
4182 INSTALL=$ac_install_sh
4185 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4186 $as_echo "$INSTALL" >&6; }
4188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4189 # It thinks the first close brace ends the variable substitution.
4190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4196 # Check whether --enable-shared was given.
4197 if test "${enable_shared+set}" = set; then
4198 enableval=$enable_shared; p=${PACKAGE-default}
4199 case $enableval in
4200 yes) enable_shared=yes ;;
4201 no) enable_shared=no ;;
4203 enable_shared=no
4204 # Look at the argument we got. We use all the common list separators.
4205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206 for pkg in $enableval; do
4207 IFS="$lt_save_ifs"
4208 if test "X$pkg" = "X$p"; then
4209 enable_shared=yes
4211 done
4212 IFS="$lt_save_ifs"
4214 esac
4215 else
4216 enable_shared=yes
4220 # Check whether --enable-static was given.
4221 if test "${enable_static+set}" = set; then
4222 enableval=$enable_static; p=${PACKAGE-default}
4223 case $enableval in
4224 yes) enable_static=yes ;;
4225 no) enable_static=no ;;
4227 enable_static=no
4228 # Look at the argument we got. We use all the common list separators.
4229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4230 for pkg in $enableval; do
4231 IFS="$lt_save_ifs"
4232 if test "X$pkg" = "X$p"; then
4233 enable_static=yes
4235 done
4236 IFS="$lt_save_ifs"
4238 esac
4239 else
4240 enable_static=yes
4244 # Check whether --enable-fast-install was given.
4245 if test "${enable_fast_install+set}" = set; then
4246 enableval=$enable_fast_install; p=${PACKAGE-default}
4247 case $enableval in
4248 yes) enable_fast_install=yes ;;
4249 no) enable_fast_install=no ;;
4251 enable_fast_install=no
4252 # Look at the argument we got. We use all the common list separators.
4253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4254 for pkg in $enableval; do
4255 IFS="$lt_save_ifs"
4256 if test "X$pkg" = "X$p"; then
4257 enable_fast_install=yes
4259 done
4260 IFS="$lt_save_ifs"
4262 esac
4263 else
4264 enable_fast_install=yes
4268 # Make sure we can run config.sub.
4269 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4270 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4271 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4272 { (exit 1); exit 1; }; }
4274 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4275 $as_echo_n "checking build system type... " >&6; }
4276 if test "${ac_cv_build+set}" = set; then
4277 $as_echo_n "(cached) " >&6
4278 else
4279 ac_build_alias=$build_alias
4280 test "x$ac_build_alias" = x &&
4281 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4282 test "x$ac_build_alias" = x &&
4283 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4284 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4285 { (exit 1); exit 1; }; }
4286 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4287 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4288 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4289 { (exit 1); exit 1; }; }
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4293 $as_echo "$ac_cv_build" >&6; }
4294 case $ac_cv_build in
4295 *-*-*) ;;
4296 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4297 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4298 { (exit 1); exit 1; }; };;
4299 esac
4300 build=$ac_cv_build
4301 ac_save_IFS=$IFS; IFS='-'
4302 set x $ac_cv_build
4303 shift
4304 build_cpu=$1
4305 build_vendor=$2
4306 shift; shift
4307 # Remember, the first character of IFS is used to create $*,
4308 # except with old shells:
4309 build_os=$*
4310 IFS=$ac_save_IFS
4311 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4314 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4315 $as_echo_n "checking host system type... " >&6; }
4316 if test "${ac_cv_host+set}" = set; then
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test "x$host_alias" = x; then
4320 ac_cv_host=$ac_cv_build
4321 else
4322 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4323 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4324 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4325 { (exit 1); exit 1; }; }
4329 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4330 $as_echo "$ac_cv_host" >&6; }
4331 case $ac_cv_host in
4332 *-*-*) ;;
4333 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4334 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4335 { (exit 1); exit 1; }; };;
4336 esac
4337 host=$ac_cv_host
4338 ac_save_IFS=$IFS; IFS='-'
4339 set x $ac_cv_host
4340 shift
4341 host_cpu=$1
4342 host_vendor=$2
4343 shift; shift
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4346 host_os=$*
4347 IFS=$ac_save_IFS
4348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353 if test "${lt_cv_path_SED+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 # Loop through the user's path and test for sed and gsed.
4357 # Then use that list of sed's as ones to test for truncation.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for lt_ac_prog in sed gsed; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4366 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4368 done
4369 done
4370 done
4371 IFS=$as_save_IFS
4372 lt_ac_max=0
4373 lt_ac_count=0
4374 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4375 # along with /bin/sed that truncates output.
4376 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4377 test ! -f $lt_ac_sed && continue
4378 cat /dev/null > conftest.in
4379 lt_ac_count=0
4380 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4381 # Check for GNU sed and select it if it is found.
4382 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4383 lt_cv_path_SED=$lt_ac_sed
4384 break
4386 while true; do
4387 cat conftest.in conftest.in >conftest.tmp
4388 mv conftest.tmp conftest.in
4389 cp conftest.in conftest.nl
4390 echo >>conftest.nl
4391 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4392 cmp -s conftest.out conftest.nl || break
4393 # 10000 chars as input seems more than enough
4394 test $lt_ac_count -gt 10 && break
4395 lt_ac_count=`expr $lt_ac_count + 1`
4396 if test $lt_ac_count -gt $lt_ac_max; then
4397 lt_ac_max=$lt_ac_count
4398 lt_cv_path_SED=$lt_ac_sed
4400 done
4401 done
4405 SED=$lt_cv_path_SED
4407 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4408 $as_echo "$SED" >&6; }
4410 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4411 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4412 if test "${ac_cv_path_GREP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -z "$GREP"; then
4416 ac_path_GREP_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in grep ggrep; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4426 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4427 # Check for GNU ac_path_GREP and select it if it is found.
4428 # Check for GNU $ac_path_GREP
4429 case `"$ac_path_GREP" --version 2>&1` in
4430 *GNU*)
4431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4433 ac_count=0
4434 $as_echo_n 0123456789 >"conftest.in"
4435 while :
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo 'GREP' >> "conftest.nl"
4441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 ac_count=`expr $ac_count + 1`
4444 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_GREP="$ac_path_GREP"
4447 ac_path_GREP_max=$ac_count
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4451 done
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453 esac
4455 $ac_path_GREP_found && break 3
4456 done
4457 done
4458 done
4459 IFS=$as_save_IFS
4460 if test -z "$ac_cv_path_GREP"; then
4461 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4462 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4463 { (exit 1); exit 1; }; }
4465 else
4466 ac_cv_path_GREP=$GREP
4470 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4471 $as_echo "$ac_cv_path_GREP" >&6; }
4472 GREP="$ac_cv_path_GREP"
4475 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4476 $as_echo_n "checking for egrep... " >&6; }
4477 if test "${ac_cv_path_EGREP+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4481 then ac_cv_path_EGREP="$GREP -E"
4482 else
4483 if test -z "$EGREP"; then
4484 ac_path_EGREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in egrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4494 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4495 # Check for GNU ac_path_EGREP and select it if it is found.
4496 # Check for GNU $ac_path_EGREP
4497 case `"$ac_path_EGREP" --version 2>&1` in
4498 *GNU*)
4499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4501 ac_count=0
4502 $as_echo_n 0123456789 >"conftest.in"
4503 while :
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 $as_echo 'EGREP' >> "conftest.nl"
4509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 ac_count=`expr $ac_count + 1`
4512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_EGREP="$ac_path_EGREP"
4515 ac_path_EGREP_max=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4519 done
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521 esac
4523 $ac_path_EGREP_found && break 3
4524 done
4525 done
4526 done
4527 IFS=$as_save_IFS
4528 if test -z "$ac_cv_path_EGREP"; then
4529 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4530 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4531 { (exit 1); exit 1; }; }
4533 else
4534 ac_cv_path_EGREP=$EGREP
4539 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4540 $as_echo "$ac_cv_path_EGREP" >&6; }
4541 EGREP="$ac_cv_path_EGREP"
4545 # Check whether --with-gnu-ld was given.
4546 if test "${with_gnu_ld+set}" = set; then
4547 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4548 else
4549 with_gnu_ld=no
4552 ac_prog=ld
4553 if test "$GCC" = yes; then
4554 # Check if gcc -print-prog-name=ld gives a path.
4555 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4556 $as_echo_n "checking for ld used by $CC... " >&6; }
4557 case $host in
4558 *-*-mingw*)
4559 # gcc leaves a trailing carriage return which upsets mingw
4560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4563 esac
4564 case $ac_prog in
4565 # Accept absolute paths.
4566 [\\/]* | ?:[\\/]*)
4567 re_direlt='/[^/][^/]*/\.\./'
4568 # Canonicalize the pathname of ld
4569 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4570 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4571 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4572 done
4573 test -z "$LD" && LD="$ac_prog"
4576 # If it fails, then pretend we aren't using GCC.
4577 ac_prog=ld
4580 # If it is relative, then search for the first ld in PATH.
4581 with_gnu_ld=unknown
4583 esac
4584 elif test "$with_gnu_ld" = yes; then
4585 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4586 $as_echo_n "checking for GNU ld... " >&6; }
4587 else
4588 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4589 $as_echo_n "checking for non-GNU ld... " >&6; }
4591 if test "${lt_cv_path_LD+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -z "$LD"; then
4595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH; do
4597 IFS="$lt_save_ifs"
4598 test -z "$ac_dir" && ac_dir=.
4599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4600 lt_cv_path_LD="$ac_dir/$ac_prog"
4601 # Check to see if the program is GNU ld. I'd rather use --version,
4602 # but apparently some variants of GNU ld only accept -v.
4603 # Break only if it was the GNU/non-GNU ld that we prefer.
4604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4605 *GNU* | *'with BFD'*)
4606 test "$with_gnu_ld" != no && break
4609 test "$with_gnu_ld" != yes && break
4611 esac
4613 done
4614 IFS="$lt_save_ifs"
4615 else
4616 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4620 LD="$lt_cv_path_LD"
4621 if test -n "$LD"; then
4622 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4623 $as_echo "$LD" >&6; }
4624 else
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4628 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4629 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4630 { (exit 1); exit 1; }; }
4631 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4632 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4634 $as_echo_n "(cached) " >&6
4635 else
4636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4637 case `$LD -v 2>&1 </dev/null` in
4638 *GNU* | *'with BFD'*)
4639 lt_cv_prog_gnu_ld=yes
4642 lt_cv_prog_gnu_ld=no
4644 esac
4646 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4647 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4648 with_gnu_ld=$lt_cv_prog_gnu_ld
4651 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4652 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4653 if test "${lt_cv_ld_reload_flag+set}" = set; then
4654 $as_echo_n "(cached) " >&6
4655 else
4656 lt_cv_ld_reload_flag='-r'
4658 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4660 reload_flag=$lt_cv_ld_reload_flag
4661 case $reload_flag in
4662 "" | " "*) ;;
4663 *) reload_flag=" $reload_flag" ;;
4664 esac
4665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4666 case $host_os in
4667 darwin*)
4668 if test "$GCC" = yes; then
4669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4670 else
4671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4674 esac
4676 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4677 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4678 if test "${lt_cv_path_NM+set}" = set; then
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$NM"; then
4682 # Let the user override the test.
4683 lt_cv_path_NM="$NM"
4684 else
4685 lt_nm_to_check="${ac_tool_prefix}nm"
4686 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4687 lt_nm_to_check="$lt_nm_to_check nm"
4689 for lt_tmp_nm in $lt_nm_to_check; do
4690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4691 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4692 IFS="$lt_save_ifs"
4693 test -z "$ac_dir" && ac_dir=.
4694 tmp_nm="$ac_dir/$lt_tmp_nm"
4695 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4696 # Check to see if the nm accepts a BSD-compat flag.
4697 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4698 # nm: unknown option "B" ignored
4699 # Tru64's nm complains that /dev/null is an invalid object file
4700 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4701 */dev/null* | *'Invalid file or object type'*)
4702 lt_cv_path_NM="$tmp_nm -B"
4703 break
4706 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4707 */dev/null*)
4708 lt_cv_path_NM="$tmp_nm -p"
4709 break
4712 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4713 continue # so that we can try to find one that supports BSD flags
4715 esac
4717 esac
4719 done
4720 IFS="$lt_save_ifs"
4721 done
4722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4725 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4726 $as_echo "$lt_cv_path_NM" >&6; }
4727 NM="$lt_cv_path_NM"
4729 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4730 $as_echo_n "checking whether ln -s works... " >&6; }
4731 LN_S=$as_ln_s
4732 if test "$LN_S" = "ln -s"; then
4733 { $as_echo "$as_me:$LINENO: result: yes" >&5
4734 $as_echo "yes" >&6; }
4735 else
4736 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4737 $as_echo "no, using $LN_S" >&6; }
4740 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4741 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4742 if test "${lt_cv_deplibs_check_method+set}" = set; then
4743 $as_echo_n "(cached) " >&6
4744 else
4745 lt_cv_file_magic_cmd='$MAGIC_CMD'
4746 lt_cv_file_magic_test_file=
4747 lt_cv_deplibs_check_method='unknown'
4748 # Need to set the preceding variable on all platforms that support
4749 # interlibrary dependencies.
4750 # 'none' -- dependencies not supported.
4751 # `unknown' -- same as none, but documents that we really don't know.
4752 # 'pass_all' -- all dependencies passed with no checks.
4753 # 'test_compile' -- check by making test program.
4754 # 'file_magic [[regex]]' -- check by looking for files in library path
4755 # which responds to the $file_magic_cmd with a given extended regex.
4756 # If you have `file' or equivalent on your system and you're not sure
4757 # whether `pass_all' will *always* work, you probably want this one.
4759 case $host_os in
4760 aix[4-9]*)
4761 lt_cv_deplibs_check_method=pass_all
4764 beos*)
4765 lt_cv_deplibs_check_method=pass_all
4768 bsdi[45]*)
4769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4770 lt_cv_file_magic_cmd='/usr/bin/file -L'
4771 lt_cv_file_magic_test_file=/shlib/libc.so
4774 cygwin*)
4775 # func_win32_libid is a shell function defined in ltmain.sh
4776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4777 lt_cv_file_magic_cmd='func_win32_libid'
4780 mingw* | pw32*)
4781 # Base MSYS/MinGW do not provide the 'file' command needed by
4782 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4783 # unless we find 'file', for example because we are cross-compiling.
4784 if ( file / ) >/dev/null 2>&1; then
4785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4786 lt_cv_file_magic_cmd='func_win32_libid'
4787 else
4788 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4789 lt_cv_file_magic_cmd='$OBJDUMP -f'
4793 darwin* | rhapsody*)
4794 lt_cv_deplibs_check_method=pass_all
4797 freebsd* | dragonfly*)
4798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4799 case $host_cpu in
4800 i*86 )
4801 # Not sure whether the presence of OpenBSD here was a mistake.
4802 # Let's accept both of them until this is cleared up.
4803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4804 lt_cv_file_magic_cmd=/usr/bin/file
4805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4807 esac
4808 else
4809 lt_cv_deplibs_check_method=pass_all
4813 gnu*)
4814 lt_cv_deplibs_check_method=pass_all
4817 hpux10.20* | hpux11*)
4818 lt_cv_file_magic_cmd=/usr/bin/file
4819 case $host_cpu in
4820 ia64*)
4821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4822 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4824 hppa*64*)
4825 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]'
4826 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4830 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4832 esac
4835 interix[3-9]*)
4836 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4840 irix5* | irix6* | nonstopux*)
4841 case $LD in
4842 *-32|*"-32 ") libmagic=32-bit;;
4843 *-n32|*"-n32 ") libmagic=N32;;
4844 *-64|*"-64 ") libmagic=64-bit;;
4845 *) libmagic=never-match;;
4846 esac
4847 lt_cv_deplibs_check_method=pass_all
4850 # This must be Linux ELF.
4851 linux* | k*bsd*-gnu)
4852 lt_cv_deplibs_check_method=pass_all
4855 netbsd*)
4856 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4858 else
4859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4863 newos6*)
4864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4865 lt_cv_file_magic_cmd=/usr/bin/file
4866 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4869 nto-qnx*)
4870 lt_cv_deplibs_check_method=unknown
4873 openbsd*)
4874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4876 else
4877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4881 osf3* | osf4* | osf5*)
4882 lt_cv_deplibs_check_method=pass_all
4885 rdos*)
4886 lt_cv_deplibs_check_method=pass_all
4889 solaris*)
4890 lt_cv_deplibs_check_method=pass_all
4893 sysv4 | sysv4.3*)
4894 case $host_vendor in
4895 motorola)
4896 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]'
4897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4899 ncr)
4900 lt_cv_deplibs_check_method=pass_all
4902 sequent)
4903 lt_cv_file_magic_cmd='/bin/file'
4904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4906 sni)
4907 lt_cv_file_magic_cmd='/bin/file'
4908 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4909 lt_cv_file_magic_test_file=/lib/libc.so
4911 siemens)
4912 lt_cv_deplibs_check_method=pass_all
4915 lt_cv_deplibs_check_method=pass_all
4917 esac
4920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4921 lt_cv_deplibs_check_method=pass_all
4923 esac
4926 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4927 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4928 file_magic_cmd=$lt_cv_file_magic_cmd
4929 deplibs_check_method=$lt_cv_deplibs_check_method
4930 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4935 # If no C compiler was specified, use CC.
4936 LTCC=${LTCC-"$CC"}
4938 # If no C compiler flags were specified, use CFLAGS.
4939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4941 # Allow CC to be a program name with arguments.
4942 compiler=$CC
4945 # Check whether --enable-libtool-lock was given.
4946 if test "${enable_libtool_lock+set}" = set; then
4947 enableval=$enable_libtool_lock;
4950 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4952 # Some flags need to be propagated to the compiler or linker for good
4953 # libtool support.
4954 case $host in
4955 ia64-*-hpux*)
4956 # Find out which ABI we are using.
4957 echo 'int i;' > conftest.$ac_ext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4960 ac_status=$?
4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; then
4963 case `/usr/bin/file conftest.$ac_objext` in
4964 *ELF-32*)
4965 HPUX_IA64_MODE="32"
4967 *ELF-64*)
4968 HPUX_IA64_MODE="64"
4970 esac
4972 rm -rf conftest*
4974 *-*-irix6*)
4975 # Find out which ABI we are using.
4976 echo '#line 4976 "configure"' > conftest.$ac_ext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>&5
4979 ac_status=$?
4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; then
4982 if test "$lt_cv_prog_gnu_ld" = yes; then
4983 case `/usr/bin/file conftest.$ac_objext` in
4984 *32-bit*)
4985 LD="${LD-ld} -melf32bsmip"
4987 *N32*)
4988 LD="${LD-ld} -melf32bmipn32"
4990 *64-bit*)
4991 LD="${LD-ld} -melf64bmip"
4993 esac
4994 else
4995 case `/usr/bin/file conftest.$ac_objext` in
4996 *32-bit*)
4997 LD="${LD-ld} -32"
4999 *N32*)
5000 LD="${LD-ld} -n32"
5002 *64-bit*)
5003 LD="${LD-ld} -64"
5005 esac
5008 rm -rf conftest*
5011 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5012 s390*-*linux*|sparc*-*linux*)
5013 # Find out which ABI we are using.
5014 echo 'int i;' > conftest.$ac_ext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>&5
5017 ac_status=$?
5018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; then
5020 case `/usr/bin/file conftest.o` in
5021 *32-bit*)
5022 case $host in
5023 x86_64-*kfreebsd*-gnu)
5024 LD="${LD-ld} -m elf_i386_fbsd"
5026 x86_64-*linux*)
5027 LD="${LD-ld} -m elf_i386"
5029 ppc64-*linux*|powerpc64-*linux*)
5030 LD="${LD-ld} -m elf32ppclinux"
5032 s390x-*linux*)
5033 LD="${LD-ld} -m elf_s390"
5035 sparc64-*linux*)
5036 LD="${LD-ld} -m elf32_sparc"
5038 esac
5040 *64-bit*)
5041 case $host in
5042 x86_64-*kfreebsd*-gnu)
5043 LD="${LD-ld} -m elf_x86_64_fbsd"
5045 x86_64-*linux*)
5046 LD="${LD-ld} -m elf_x86_64"
5048 ppc*-*linux*|powerpc*-*linux*)
5049 LD="${LD-ld} -m elf64ppc"
5051 s390*-*linux*)
5052 LD="${LD-ld} -m elf64_s390"
5054 sparc*-*linux*)
5055 LD="${LD-ld} -m elf64_sparc"
5057 esac
5059 esac
5061 rm -rf conftest*
5064 *-*-sco3.2v5*)
5065 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5066 SAVE_CFLAGS="$CFLAGS"
5067 CFLAGS="$CFLAGS -belf"
5068 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5069 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5070 if test "${lt_cv_cc_needs_belf+set}" = set; then
5071 $as_echo_n "(cached) " >&6
5072 else
5073 ac_ext=c
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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. */
5087 main ()
5091 return 0;
5093 _ACEOF
5094 rm -f conftest.$ac_objext conftest$ac_exeext
5095 if { (ac_try="$ac_link"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101 $as_echo "$ac_try_echo") >&5
5102 (eval "$ac_link") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest$ac_exeext && {
5112 test "$cross_compiling" = yes ||
5113 $as_test_x conftest$ac_exeext
5114 }; then
5115 lt_cv_cc_needs_belf=yes
5116 else
5117 $as_echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 lt_cv_cc_needs_belf=no
5123 rm -rf conftest.dSYM
5124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125 conftest$ac_exeext conftest.$ac_ext
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5134 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5135 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5136 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5137 CFLAGS="$SAVE_CFLAGS"
5140 sparc*-*solaris*)
5141 # Find out which ABI we are using.
5142 echo 'int i;' > conftest.$ac_ext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>&5
5145 ac_status=$?
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; then
5148 case `/usr/bin/file conftest.o` in
5149 *64-bit*)
5150 case $lt_cv_prog_gnu_ld in
5151 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5153 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5154 LD="${LD-ld} -64"
5157 esac
5159 esac
5161 rm -rf conftest*
5165 esac
5167 need_locks="$enable_libtool_lock"
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5176 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5177 # On Suns, sometimes $CPP names a directory.
5178 if test -n "$CPP" && test -d "$CPP"; then
5179 CPP=
5181 if test -z "$CPP"; then
5182 if test "${ac_cv_prog_CPP+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184 else
5185 # Double quotes because CPP needs to be expanded
5186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188 ac_preproc_ok=false
5189 for ac_c_preproc_warn_flag in '' yes
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208 Syntax error
5209 _ACEOF
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214 esac
5215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216 $as_echo "$ac_try_echo") >&5
5217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null && {
5224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 }; then
5228 else
5229 $as_echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 # Broken: fails on valid input.
5233 continue
5236 rm -f conftest.err conftest.$ac_ext
5238 # OK, works on sane cases. Now check whether nonexistent headers
5239 # can be detected and how.
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <ac_nonexistent.h>
5247 _ACEOF
5248 if { (ac_try="$ac_cpp conftest.$ac_ext"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null && {
5262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 }; then
5265 # Broken: success on invalid input.
5266 continue
5267 else
5268 $as_echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 # Passes both tests.
5272 ac_preproc_ok=:
5273 break
5276 rm -f conftest.err conftest.$ac_ext
5278 done
5279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280 rm -f conftest.err conftest.$ac_ext
5281 if $ac_preproc_ok; then
5282 break
5285 done
5286 ac_cv_prog_CPP=$CPP
5289 CPP=$ac_cv_prog_CPP
5290 else
5291 ac_cv_prog_CPP=$CPP
5293 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5294 $as_echo "$CPP" >&6; }
5295 ac_preproc_ok=false
5296 for ac_c_preproc_warn_flag in '' yes
5298 # Use a header file that comes with gcc, so configuring glibc
5299 # with a fresh cross-compiler works.
5300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301 # <limits.h> exists even on freestanding compilers.
5302 # On the NeXT, cc -E runs the code through the compiler's parser,
5303 # not just through cpp. "Syntax error" is here to catch this case.
5304 cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h. */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 #ifdef __STDC__
5311 # include <limits.h>
5312 #else
5313 # include <assert.h>
5314 #endif
5315 Syntax error
5316 _ACEOF
5317 if { (ac_try="$ac_cpp conftest.$ac_ext"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5323 $as_echo "$ac_try_echo") >&5
5324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null && {
5331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 }; then
5335 else
5336 $as_echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 # Broken: fails on valid input.
5340 continue
5343 rm -f conftest.err conftest.$ac_ext
5345 # OK, works on sane cases. Now check whether nonexistent headers
5346 # can be detected and how.
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if { (ac_try="$ac_cpp conftest.$ac_ext"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5361 $as_echo "$ac_try_echo") >&5
5362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null && {
5369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 }; then
5372 # Broken: success on invalid input.
5373 continue
5374 else
5375 $as_echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 # Passes both tests.
5379 ac_preproc_ok=:
5380 break
5383 rm -f conftest.err conftest.$ac_ext
5385 done
5386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5387 rm -f conftest.err conftest.$ac_ext
5388 if $ac_preproc_ok; then
5390 else
5391 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5392 See \`config.log' for more details." >&5
5393 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5394 See \`config.log' for more details." >&2;}
5395 { (exit 1); exit 1; }; }
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5406 $as_echo_n "checking for ANSI C header files... " >&6; }
5407 if test "${ac_cv_header_stdc+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5409 else
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <stdlib.h>
5417 #include <stdarg.h>
5418 #include <string.h>
5419 #include <float.h>
5422 main ()
5426 return 0;
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5431 case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5434 esac
5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5436 $as_echo "$ac_try_echo") >&5
5437 (eval "$ac_compile") 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && {
5444 test -z "$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 } && test -s conftest.$ac_objext; then
5447 ac_cv_header_stdc=yes
5448 else
5449 $as_echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_cv_header_stdc=no
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 if test $ac_cv_header_stdc = yes; then
5458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <string.h>
5467 _ACEOF
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469 $EGREP "memchr" >/dev/null 2>&1; then
5471 else
5472 ac_cv_header_stdc=no
5474 rm -f conftest*
5478 if test $ac_cv_header_stdc = yes; then
5479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <stdlib.h>
5488 _ACEOF
5489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490 $EGREP "free" >/dev/null 2>&1; then
5492 else
5493 ac_cv_header_stdc=no
5495 rm -f conftest*
5499 if test $ac_cv_header_stdc = yes; then
5500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5501 if test "$cross_compiling" = yes; then
5503 else
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <ctype.h>
5511 #include <stdlib.h>
5512 #if ((' ' & 0x0FF) == 0x020)
5513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5515 #else
5516 # define ISLOWER(c) \
5517 (('a' <= (c) && (c) <= 'i') \
5518 || ('j' <= (c) && (c) <= 'r') \
5519 || ('s' <= (c) && (c) <= 'z'))
5520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5521 #endif
5523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5525 main ()
5527 int i;
5528 for (i = 0; i < 256; i++)
5529 if (XOR (islower (i), ISLOWER (i))
5530 || toupper (i) != TOUPPER (i))
5531 return 2;
5532 return 0;
5534 _ACEOF
5535 rm -f conftest$ac_exeext
5536 if { (ac_try="$ac_link"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543 (eval "$ac_link") 2>&5
5544 ac_status=$?
5545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5547 { (case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5552 $as_echo "$ac_try_echo") >&5
5553 (eval "$ac_try") 2>&5
5554 ac_status=$?
5555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5558 else
5559 $as_echo "$as_me: program exited with status $ac_status" >&5
5560 $as_echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ( exit $ac_status )
5564 ac_cv_header_stdc=no
5566 rm -rf conftest.dSYM
5567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5574 $as_echo "$ac_cv_header_stdc" >&6; }
5575 if test $ac_cv_header_stdc = yes; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define STDC_HEADERS 1
5579 _ACEOF
5583 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5594 inttypes.h stdint.h unistd.h
5596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 $as_echo_n "checking for $ac_header... " >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 $as_echo_n "(cached) " >&6
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 $ac_includes_default
5610 #include <$ac_header>
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5614 case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619 $as_echo "$ac_try_echo") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 eval "$as_ac_Header=yes"
5631 else
5632 $as_echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 eval "$as_ac_Header=no"
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 ac_res=`eval 'as_val=${'$as_ac_Header'}
5641 $as_echo "$as_val"'`
5642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5643 $as_echo "$ac_res" >&6; }
5644 if test `eval 'as_val=${'$as_ac_Header'}
5645 $as_echo "$as_val"'` = yes; then
5646 cat >>confdefs.h <<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 _ACEOF
5652 done
5656 for ac_header in dlfcn.h
5658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 $as_echo_n "checking for $ac_header... " >&6; }
5662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5663 $as_echo_n "(cached) " >&6
5665 ac_res=`eval 'as_val=${'$as_ac_Header'}
5666 $as_echo "$as_val"'`
5667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5668 $as_echo "$ac_res" >&6; }
5669 else
5670 # Is the header compilable?
5671 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 $as_echo_n "checking $ac_header usability... " >&6; }
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. */
5679 $ac_includes_default
5680 #include <$ac_header>
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_header_compiler=yes
5701 else
5702 $as_echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_header_compiler=no
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710 $as_echo "$ac_header_compiler" >&6; }
5712 # Is the header present?
5713 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5714 $as_echo_n "checking $ac_header presence... " >&6; }
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <$ac_header>
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 }; then
5740 ac_header_preproc=yes
5741 else
5742 $as_echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_header_preproc=no
5748 rm -f conftest.err conftest.$ac_ext
5749 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5750 $as_echo "$ac_header_preproc" >&6; }
5752 # So? What about this header?
5753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5754 yes:no: )
5755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5756 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5758 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5759 ac_header_preproc=yes
5761 no:yes:* )
5762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5763 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5765 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5767 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5769 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5773 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5776 esac
5777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 $as_echo_n "checking for $ac_header... " >&6; }
5779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 $as_echo_n "(cached) " >&6
5781 else
5782 eval "$as_ac_Header=\$ac_header_preproc"
5784 ac_res=`eval 'as_val=${'$as_ac_Header'}
5785 $as_echo "$as_val"'`
5786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5787 $as_echo "$ac_res" >&6; }
5790 if test `eval 'as_val=${'$as_ac_Header'}
5791 $as_echo "$as_val"'` = yes; then
5792 cat >>confdefs.h <<_ACEOF
5793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 _ACEOF
5798 done
5802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5804 (test "X$CXX" != "Xg++"))) ; then
5805 ac_ext=cpp
5806 ac_cpp='$CXXCPP $CPPFLAGS'
5807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5811 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5812 if test -z "$CXXCPP"; then
5813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5814 $as_echo_n "(cached) " >&6
5815 else
5816 # Double quotes because CXXCPP needs to be expanded
5817 for CXXCPP in "$CXX -E" "/lib/cpp"
5819 ac_preproc_ok=false
5820 for ac_cxx_preproc_warn_flag in '' yes
5822 # Use a header file that comes with gcc, so configuring glibc
5823 # with a fresh cross-compiler works.
5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 # <limits.h> exists even on freestanding compilers.
5826 # On the NeXT, cc -E runs the code through the compiler's parser,
5827 # not just through cpp. "Syntax error" is here to catch this case.
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #ifdef __STDC__
5835 # include <limits.h>
5836 #else
5837 # include <assert.h>
5838 #endif
5839 Syntax error
5840 _ACEOF
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5847 $as_echo "$ac_try_echo") >&5
5848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null && {
5855 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5856 test ! -s conftest.err
5857 }; then
5859 else
5860 $as_echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 # Broken: fails on valid input.
5864 continue
5867 rm -f conftest.err conftest.$ac_ext
5869 # OK, works on sane cases. Now check whether nonexistent headers
5870 # can be detected and how.
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <ac_nonexistent.h>
5878 _ACEOF
5879 if { (ac_try="$ac_cpp conftest.$ac_ext"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null && {
5893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 }; then
5896 # Broken: success on invalid input.
5897 continue
5898 else
5899 $as_echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 # Passes both tests.
5903 ac_preproc_ok=:
5904 break
5907 rm -f conftest.err conftest.$ac_ext
5909 done
5910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911 rm -f conftest.err conftest.$ac_ext
5912 if $ac_preproc_ok; then
5913 break
5916 done
5917 ac_cv_prog_CXXCPP=$CXXCPP
5920 CXXCPP=$ac_cv_prog_CXXCPP
5921 else
5922 ac_cv_prog_CXXCPP=$CXXCPP
5924 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5925 $as_echo "$CXXCPP" >&6; }
5926 ac_preproc_ok=false
5927 for ac_cxx_preproc_warn_flag in '' yes
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #ifdef __STDC__
5942 # include <limits.h>
5943 #else
5944 # include <assert.h>
5945 #endif
5946 Syntax error
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5954 $as_echo "$ac_try_echo") >&5
5955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null && {
5962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5963 test ! -s conftest.err
5964 }; then
5966 else
5967 $as_echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5970 # Broken: fails on valid input.
5971 continue
5974 rm -f conftest.err conftest.$ac_ext
5976 # OK, works on sane cases. Now check whether nonexistent headers
5977 # can be detected and how.
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <ac_nonexistent.h>
5985 _ACEOF
5986 if { (ac_try="$ac_cpp conftest.$ac_ext"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992 $as_echo "$ac_try_echo") >&5
5993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null && {
6000 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6001 test ! -s conftest.err
6002 }; then
6003 # Broken: success on invalid input.
6004 continue
6005 else
6006 $as_echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 # Passes both tests.
6010 ac_preproc_ok=:
6011 break
6014 rm -f conftest.err conftest.$ac_ext
6016 done
6017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018 rm -f conftest.err conftest.$ac_ext
6019 if $ac_preproc_ok; then
6021 else
6022 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6023 See \`config.log' for more details." >&5
6024 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6029 ac_ext=cpp
6030 ac_cpp='$CXXCPP $CPPFLAGS'
6031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038 ac_ext=f
6039 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6040 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6042 if test -n "$ac_tool_prefix"; then
6043 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
6045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if test "${ac_cv_prog_F77+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$F77"; then
6053 ac_cv_prog_F77="$F77" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6066 done
6067 done
6068 IFS=$as_save_IFS
6072 F77=$ac_cv_prog_F77
6073 if test -n "$F77"; then
6074 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6075 $as_echo "$F77" >&6; }
6076 else
6077 { $as_echo "$as_me:$LINENO: result: no" >&5
6078 $as_echo "no" >&6; }
6082 test -n "$F77" && break
6083 done
6085 if test -z "$F77"; then
6086 ac_ct_F77=$F77
6087 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
6089 # Extract the first word of "$ac_prog", so it can be a program name with args.
6090 set dummy $ac_prog; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -n "$ac_ct_F77"; then
6097 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_F77="$ac_prog"
6107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6110 done
6111 done
6112 IFS=$as_save_IFS
6116 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6117 if test -n "$ac_ct_F77"; then
6118 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6119 $as_echo "$ac_ct_F77" >&6; }
6120 else
6121 { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6126 test -n "$ac_ct_F77" && break
6127 done
6129 if test "x$ac_ct_F77" = x; then
6130 F77=""
6131 else
6132 case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6135 whose name does not start with the host triplet. If you think this
6136 configuration is useful to you, please write to autoconf@gnu.org." >&5
6137 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6138 whose name does not start with the host triplet. If you think this
6139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6140 ac_tool_warned=yes ;;
6141 esac
6142 F77=$ac_ct_F77
6147 # Provide some information about the compiler.
6148 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6149 set X $ac_compile
6150 ac_compiler=$2
6151 { (ac_try="$ac_compiler --version >&5"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_compiler --version >&5") 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162 { (ac_try="$ac_compiler -v >&5"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compiler -v >&5") 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }
6173 { (ac_try="$ac_compiler -V >&5"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compiler -V >&5") 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }
6184 rm -f a.out
6186 # If we don't use `.F' as extension, the preprocessor is not run on the
6187 # input file. (Note that this only needs to work for GNU compilers.)
6188 ac_save_ext=$ac_ext
6189 ac_ext=F
6190 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6191 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6192 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6194 else
6195 cat >conftest.$ac_ext <<_ACEOF
6196 program main
6197 #ifndef __GNUC__
6198 choke me
6199 #endif
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_f77_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.$ac_objext; then
6221 ac_compiler_gnu=yes
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_compiler_gnu=no
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6234 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6235 ac_ext=$ac_save_ext
6236 ac_test_FFLAGS=${FFLAGS+set}
6237 ac_save_FFLAGS=$FFLAGS
6238 FFLAGS=
6239 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6240 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6241 if test "${ac_cv_prog_f77_g+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243 else
6244 FFLAGS=-g
6245 cat >conftest.$ac_ext <<_ACEOF
6246 program main
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257 $as_echo "$ac_try_echo") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_f77_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_cv_prog_f77_g=yes
6269 else
6270 $as_echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_prog_f77_g=no
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6280 $as_echo "$ac_cv_prog_f77_g" >&6; }
6281 if test "$ac_test_FFLAGS" = set; then
6282 FFLAGS=$ac_save_FFLAGS
6283 elif test $ac_cv_prog_f77_g = yes; then
6284 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6285 FFLAGS="-g -O2"
6286 else
6287 FFLAGS="-g"
6289 else
6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291 FFLAGS="-O2"
6292 else
6293 FFLAGS=
6297 if test $ac_compiler_gnu = yes; then
6298 G77=yes
6299 else
6300 G77=
6302 ac_ext=c
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6311 # find the maximum length of command line arguments
6312 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6313 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6316 else
6318 teststring="ABCD"
6320 case $build_os in
6321 msdosdjgpp*)
6322 # On DJGPP, this test can blow up pretty badly due to problems in libc
6323 # (any single argument exceeding 2000 bytes causes a buffer overrun
6324 # during glob expansion). Even if it were fixed, the result of this
6325 # check would be larger than it should be.
6326 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6329 gnu*)
6330 # Under GNU Hurd, this test is not required because there is
6331 # no limit to the length of command line arguments.
6332 # Libtool will interpret -1 as no limit whatsoever
6333 lt_cv_sys_max_cmd_len=-1;
6336 cygwin* | mingw*)
6337 # On Win9x/ME, this test blows up -- it succeeds, but takes
6338 # about 5 minutes as the teststring grows exponentially.
6339 # Worse, since 9x/ME are not pre-emptively multitasking,
6340 # you end up with a "frozen" computer, even though with patience
6341 # the test eventually succeeds (with a max line length of 256k).
6342 # Instead, let's just punt: use the minimum linelength reported by
6343 # all of the supported platforms: 8192 (on NT/2K/XP).
6344 lt_cv_sys_max_cmd_len=8192;
6347 amigaos*)
6348 # On AmigaOS with pdksh, this test takes hours, literally.
6349 # So we just punt and use a minimum line length of 8192.
6350 lt_cv_sys_max_cmd_len=8192;
6353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354 # This has been around since 386BSD, at least. Likely further.
6355 if test -x /sbin/sysctl; then
6356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357 elif test -x /usr/sbin/sysctl; then
6358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359 else
6360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6362 # And add a safety zone
6363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6367 interix*)
6368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369 lt_cv_sys_max_cmd_len=196608
6372 osf*)
6373 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375 # nice to cause kernel panics so lets avoid the loop below.
6376 # First set a reasonable default.
6377 lt_cv_sys_max_cmd_len=16384
6379 if test -x /sbin/sysconfig; then
6380 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382 esac
6385 sco3.2v5*)
6386 lt_cv_sys_max_cmd_len=102400
6388 sysv5* | sco5v6* | sysv4.2uw2*)
6389 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390 if test -n "$kargmax"; then
6391 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6392 else
6393 lt_cv_sys_max_cmd_len=32768
6397 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398 if test -n "$lt_cv_sys_max_cmd_len"; then
6399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401 else
6402 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6403 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6404 = "XX$teststring") >/dev/null 2>&1 &&
6405 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6406 lt_cv_sys_max_cmd_len=$new_result &&
6407 test $i != 17 # 1/2 MB should be enough
6409 i=`expr $i + 1`
6410 teststring=$teststring$teststring
6411 done
6412 teststring=
6413 # Add a significant safety factor because C++ compilers can tack on massive
6414 # amounts of additional arguments before passing them to the linker.
6415 # It appears as though 1/2 is a usable value.
6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6419 esac
6423 if test -n $lt_cv_sys_max_cmd_len ; then
6424 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6425 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6426 else
6427 { $as_echo "$as_me:$LINENO: result: none" >&5
6428 $as_echo "none" >&6; }
6435 # Check for command to grab the raw symbol name followed by C symbol from nm.
6436 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6437 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440 else
6442 # These are sane defaults that work on at least a few old systems.
6443 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6445 # Character class describing NM global symbol codes.
6446 symcode='[BCDEGRST]'
6448 # Regexp to match symbols that can be accessed directly from C.
6449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6451 # Transform an extracted symbol line into a proper C declaration
6452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6454 # Transform an extracted symbol line into symbol name and symbol address
6455 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'"
6457 # Define system-specific variables.
6458 case $host_os in
6459 aix*)
6460 symcode='[BCDT]'
6462 cygwin* | mingw* | pw32*)
6463 symcode='[ABCDGISTW]'
6465 hpux*) # Its linker distinguishes data from code symbols
6466 if test "$host_cpu" = ia64; then
6467 symcode='[ABCDEGRST]'
6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470 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'"
6472 linux* | k*bsd*-gnu)
6473 if test "$host_cpu" = ia64; then
6474 symcode='[ABCDGIRSTW]'
6475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476 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'"
6479 irix* | nonstopux*)
6480 symcode='[BCDEGRST]'
6482 osf*)
6483 symcode='[BCDEGQRST]'
6485 solaris*)
6486 symcode='[BDRT]'
6488 sco3.2v5*)
6489 symcode='[DT]'
6491 sysv4.2uw2*)
6492 symcode='[DT]'
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495 symcode='[ABDT]'
6497 sysv4)
6498 symcode='[DFNSTU]'
6500 esac
6502 # Handle CRLF in mingw tool chain
6503 opt_cr=
6504 case $build_os in
6505 mingw*)
6506 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6508 esac
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513 symcode='[ABCDGIRSTW]' ;;
6514 esac
6516 # Try without a prefix undercore, then with it.
6517 for ac_symprfx in "" "_"; do
6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520 symxfrm="\\1 $ac_symprfx\\2 \\2"
6522 # Write the raw and C identifiers.
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6525 # Check to see that the pipe works correctly.
6526 pipe_works=no
6528 rm -f conftest*
6529 cat > conftest.$ac_ext <<EOF
6530 #ifdef __cplusplus
6531 extern "C" {
6532 #endif
6533 char nm_test_var;
6534 void nm_test_func(){}
6535 #ifdef __cplusplus
6537 #endif
6538 int main(){nm_test_var='a';nm_test_func();return(0);}
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; then
6546 # Now try to grab the symbols.
6547 nlist=conftest.nm
6548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6550 ac_status=$?
6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && test -s "$nlist"; then
6553 # Try sorting and uniquifying the output.
6554 if sort "$nlist" | uniq > "$nlist"T; then
6555 mv -f "$nlist"T "$nlist"
6556 else
6557 rm -f "$nlist"T
6560 # Make sure that we snagged all the symbols we need.
6561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563 cat <<EOF > conftest.$ac_ext
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6569 # Now generate the symbol file.
6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6572 cat <<EOF >> conftest.$ac_ext
6573 #if defined (__STDC__) && __STDC__
6574 # define lt_ptr_t void *
6575 #else
6576 # define lt_ptr_t char *
6577 # define const
6578 #endif
6580 /* The mapping between symbol names and symbols. */
6581 const struct {
6582 const char *name;
6583 lt_ptr_t address;
6585 lt_preloaded_symbols[] =
6588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589 cat <<\EOF >> conftest.$ac_ext
6590 {0, (lt_ptr_t) 0}
6593 #ifdef __cplusplus
6595 #endif
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6608 pipe_works=yes
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
6612 else
6613 echo "cannot find nm_test_func in $nlist" >&5
6615 else
6616 echo "cannot find nm_test_var in $nlist" >&5
6618 else
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6621 else
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 rm -rf conftest* conftst*
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6629 break
6630 else
6631 lt_cv_sys_global_symbol_pipe=
6633 done
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { $as_echo "$as_me:$LINENO: result: failed" >&5
6642 $as_echo "failed" >&6; }
6643 else
6644 { $as_echo "$as_me:$LINENO: result: ok" >&5
6645 $as_echo "ok" >&6; }
6648 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6649 $as_echo_n "checking for objdir... " >&6; }
6650 if test "${lt_cv_objdir+set}" = set; then
6651 $as_echo_n "(cached) " >&6
6652 else
6653 rm -f .libs 2>/dev/null
6654 mkdir .libs 2>/dev/null
6655 if test -d .libs; then
6656 lt_cv_objdir=.libs
6657 else
6658 # MS-DOS does not allow filenames that begin with a dot.
6659 lt_cv_objdir=_libs
6661 rmdir .libs 2>/dev/null
6663 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6664 $as_echo "$lt_cv_objdir" >&6; }
6665 objdir=$lt_cv_objdir
6671 case $host_os in
6672 aix3*)
6673 # AIX sometimes has problems with the GCC collect2 program. For some
6674 # reason, if we set the COLLECT_NAMES environment variable, the problems
6675 # vanish in a puff of smoke.
6676 if test "X${COLLECT_NAMES+set}" != Xset; then
6677 COLLECT_NAMES=
6678 export COLLECT_NAMES
6681 esac
6683 # Sed substitution that helps us do robust quoting. It backslashifies
6684 # metacharacters that are still active within double-quoted strings.
6685 Xsed='sed -e 1s/^X//'
6686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6688 # Same as above, but do not quote variable references.
6689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6691 # Sed substitution to delay expansion of an escaped shell variable in a
6692 # double_quote_subst'ed string.
6693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6695 # Sed substitution to avoid accidental globbing in evaled expressions
6696 no_glob_subst='s/\*/\\\*/g'
6698 # Constants:
6699 rm="rm -f"
6701 # Global variables:
6702 default_ofile=libtool
6703 can_build_shared=yes
6705 # All known linkers require a `.a' archive for static linking (except MSVC,
6706 # which needs '.lib').
6707 libext=a
6708 ltmain="$ac_aux_dir/ltmain.sh"
6709 ofile="$default_ofile"
6710 with_gnu_ld="$lt_cv_prog_gnu_ld"
6712 if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714 set dummy ${ac_tool_prefix}ar; ac_word=$2
6715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_AR+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6719 else
6720 if test -n "$AR"; then
6721 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_AR="${ac_tool_prefix}ar"
6731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6734 done
6735 done
6736 IFS=$as_save_IFS
6740 AR=$ac_cv_prog_AR
6741 if test -n "$AR"; then
6742 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743 $as_echo "$AR" >&6; }
6744 else
6745 { $as_echo "$as_me:$LINENO: result: no" >&5
6746 $as_echo "no" >&6; }
6751 if test -z "$ac_cv_prog_AR"; then
6752 ac_ct_AR=$AR
6753 # Extract the first word of "ar", so it can be a program name with args.
6754 set dummy ar; ac_word=$2
6755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$ac_ct_AR"; then
6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_ac_ct_AR="ar"
6771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6774 done
6775 done
6776 IFS=$as_save_IFS
6780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781 if test -n "$ac_ct_AR"; then
6782 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783 $as_echo "$ac_ct_AR" >&6; }
6784 else
6785 { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6789 if test "x$ac_ct_AR" = x; then
6790 AR="false"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6795 whose name does not start with the host triplet. If you think this
6796 configuration is useful to you, please write to autoconf@gnu.org." >&5
6797 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet. If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 AR=$ac_ct_AR
6804 else
6805 AR="$ac_cv_prog_AR"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_RANLIB+set}" = set; then
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$RANLIB"; then
6817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 RANLIB=$ac_cv_prog_RANLIB
6837 if test -n "$RANLIB"; then
6838 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6839 $as_echo "$RANLIB" >&6; }
6840 else
6841 { $as_echo "$as_me:$LINENO: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_RANLIB"; then
6848 ac_ct_RANLIB=$RANLIB
6849 # Extract the first word of "ranlib", so it can be a program name with args.
6850 set dummy ranlib; ac_word=$2
6851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_RANLIB="ranlib"
6867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877 if test -n "$ac_ct_RANLIB"; then
6878 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879 $as_echo "$ac_ct_RANLIB" >&6; }
6880 else
6881 { $as_echo "$as_me:$LINENO: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_RANLIB" = x; then
6886 RANLIB=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet. If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&5
6893 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet. If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 RANLIB=$ac_ct_RANLIB
6900 else
6901 RANLIB="$ac_cv_prog_RANLIB"
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}strip; ac_word=$2
6907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_prog_STRIP+set}" = set; then
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test -n "$STRIP"; then
6913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6926 done
6927 done
6928 IFS=$as_save_IFS
6932 STRIP=$ac_cv_prog_STRIP
6933 if test -n "$STRIP"; then
6934 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6935 $as_echo "$STRIP" >&6; }
6936 else
6937 { $as_echo "$as_me:$LINENO: result: no" >&5
6938 $as_echo "no" >&6; }
6943 if test -z "$ac_cv_prog_STRIP"; then
6944 ac_ct_STRIP=$STRIP
6945 # Extract the first word of "strip", so it can be a program name with args.
6946 set dummy strip; ac_word=$2
6947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$ac_ct_STRIP"; then
6953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_ac_ct_STRIP="strip"
6963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6973 if test -n "$ac_ct_STRIP"; then
6974 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6975 $as_echo "$ac_ct_STRIP" >&6; }
6976 else
6977 { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6981 if test "x$ac_ct_STRIP" = x; then
6982 STRIP=":"
6983 else
6984 case $cross_compiling:$ac_tool_warned in
6985 yes:)
6986 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet. If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&5
6989 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet. If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 STRIP=$ac_ct_STRIP
6996 else
6997 STRIP="$ac_cv_prog_STRIP"
7001 old_CC="$CC"
7002 old_CFLAGS="$CFLAGS"
7004 # Set sane defaults for various variables
7005 test -z "$AR" && AR=ar
7006 test -z "$AR_FLAGS" && AR_FLAGS=cru
7007 test -z "$AS" && AS=as
7008 test -z "$CC" && CC=cc
7009 test -z "$LTCC" && LTCC=$CC
7010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7011 test -z "$DLLTOOL" && DLLTOOL=dlltool
7012 test -z "$LD" && LD=ld
7013 test -z "$LN_S" && LN_S="ln -s"
7014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7015 test -z "$NM" && NM=nm
7016 test -z "$SED" && SED=sed
7017 test -z "$OBJDUMP" && OBJDUMP=objdump
7018 test -z "$RANLIB" && RANLIB=:
7019 test -z "$STRIP" && STRIP=:
7020 test -z "$ac_objext" && ac_objext=o
7022 # Determine commands to create old-style static archives.
7023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7024 old_postinstall_cmds='chmod 644 $oldlib'
7025 old_postuninstall_cmds=
7027 if test -n "$RANLIB"; then
7028 case $host_os in
7029 openbsd*)
7030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7033 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7035 esac
7036 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7039 for cc_temp in $compiler""; do
7040 case $cc_temp in
7041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7043 \-*) ;;
7044 *) break;;
7045 esac
7046 done
7047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7050 # Only perform the check for file, if the check method requires it
7051 case $deplibs_check_method in
7052 file_magic*)
7053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7054 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7055 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7056 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7057 $as_echo_n "(cached) " >&6
7058 else
7059 case $MAGIC_CMD in
7060 [\\/*] | ?:[\\/]*)
7061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7064 lt_save_MAGIC_CMD="$MAGIC_CMD"
7065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7067 for ac_dir in $ac_dummy; do
7068 IFS="$lt_save_ifs"
7069 test -z "$ac_dir" && ac_dir=.
7070 if test -f $ac_dir/${ac_tool_prefix}file; then
7071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7072 if test -n "$file_magic_test_file"; then
7073 case $deplibs_check_method in
7074 "file_magic "*)
7075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7078 $EGREP "$file_magic_regex" > /dev/null; then
7080 else
7081 cat <<EOF 1>&2
7083 *** Warning: the command libtool uses to detect shared libraries,
7084 *** $file_magic_cmd, produces output that libtool cannot recognize.
7085 *** The result is that libtool may fail to recognize shared libraries
7086 *** as such. This will affect the creation of libtool libraries that
7087 *** depend on shared libraries, but programs linked with such libtool
7088 *** libraries will work regardless of this problem. Nevertheless, you
7089 *** may want to report the problem to your system manager and/or to
7090 *** bug-libtool@gnu.org
7093 fi ;;
7094 esac
7096 break
7098 done
7099 IFS="$lt_save_ifs"
7100 MAGIC_CMD="$lt_save_MAGIC_CMD"
7102 esac
7105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7106 if test -n "$MAGIC_CMD"; then
7107 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7108 $as_echo "$MAGIC_CMD" >&6; }
7109 else
7110 { $as_echo "$as_me:$LINENO: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test -z "$lt_cv_path_MAGIC_CMD"; then
7115 if test -n "$ac_tool_prefix"; then
7116 { $as_echo "$as_me:$LINENO: checking for file" >&5
7117 $as_echo_n "checking for file... " >&6; }
7118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7119 $as_echo_n "(cached) " >&6
7120 else
7121 case $MAGIC_CMD in
7122 [\\/*] | ?:[\\/]*)
7123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7126 lt_save_MAGIC_CMD="$MAGIC_CMD"
7127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7129 for ac_dir in $ac_dummy; do
7130 IFS="$lt_save_ifs"
7131 test -z "$ac_dir" && ac_dir=.
7132 if test -f $ac_dir/file; then
7133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7134 if test -n "$file_magic_test_file"; then
7135 case $deplibs_check_method in
7136 "file_magic "*)
7137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7140 $EGREP "$file_magic_regex" > /dev/null; then
7142 else
7143 cat <<EOF 1>&2
7145 *** Warning: the command libtool uses to detect shared libraries,
7146 *** $file_magic_cmd, produces output that libtool cannot recognize.
7147 *** The result is that libtool may fail to recognize shared libraries
7148 *** as such. This will affect the creation of libtool libraries that
7149 *** depend on shared libraries, but programs linked with such libtool
7150 *** libraries will work regardless of this problem. Nevertheless, you
7151 *** may want to report the problem to your system manager and/or to
7152 *** bug-libtool@gnu.org
7155 fi ;;
7156 esac
7158 break
7160 done
7161 IFS="$lt_save_ifs"
7162 MAGIC_CMD="$lt_save_MAGIC_CMD"
7164 esac
7167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168 if test -n "$MAGIC_CMD"; then
7169 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7170 $as_echo "$MAGIC_CMD" >&6; }
7171 else
7172 { $as_echo "$as_me:$LINENO: result: no" >&5
7173 $as_echo "no" >&6; }
7176 else
7177 MAGIC_CMD=:
7183 esac
7186 case $host_os in
7187 rhapsody* | darwin*)
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217 if test -n "$DSYMUTIL"; then
7218 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7219 $as_echo "$DSYMUTIL" >&6; }
7220 else
7221 { $as_echo "$as_me:$LINENO: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_DSYMUTIL"; then
7228 ac_ct_DSYMUTIL=$DSYMUTIL
7229 # Extract the first word of "dsymutil", so it can be a program name with args.
7230 set dummy dsymutil; ac_word=$2
7231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257 if test -n "$ac_ct_DSYMUTIL"; then
7258 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7259 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7260 else
7261 { $as_echo "$as_me:$LINENO: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_DSYMUTIL" = x; then
7266 DSYMUTIL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet. If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet. If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned=yes ;;
7277 esac
7278 DSYMUTIL=$ac_ct_DSYMUTIL
7280 else
7281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$NMEDIT"; then
7293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7308 IFS=$as_save_IFS
7312 NMEDIT=$ac_cv_prog_NMEDIT
7313 if test -n "$NMEDIT"; then
7314 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7315 $as_echo "$NMEDIT" >&6; }
7316 else
7317 { $as_echo "$as_me:$LINENO: result: no" >&5
7318 $as_echo "no" >&6; }
7323 if test -z "$ac_cv_prog_NMEDIT"; then
7324 ac_ct_NMEDIT=$NMEDIT
7325 # Extract the first word of "nmedit", so it can be a program name with args.
7326 set dummy nmedit; ac_word=$2
7327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$ac_ct_NMEDIT"; then
7333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7353 if test -n "$ac_ct_NMEDIT"; then
7354 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7355 $as_echo "$ac_ct_NMEDIT" >&6; }
7356 else
7357 { $as_echo "$as_me:$LINENO: result: no" >&5
7358 $as_echo "no" >&6; }
7361 if test "x$ac_ct_NMEDIT" = x; then
7362 NMEDIT=":"
7363 else
7364 case $cross_compiling:$ac_tool_warned in
7365 yes:)
7366 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7367 whose name does not start with the host triplet. If you think this
7368 configuration is useful to you, please write to autoconf@gnu.org." >&5
7369 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet. If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374 NMEDIT=$ac_ct_NMEDIT
7376 else
7377 NMEDIT="$ac_cv_prog_NMEDIT"
7381 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7382 $as_echo_n "checking for -single_module linker flag... " >&6; }
7383 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7385 else
7386 lt_cv_apple_cc_single_mod=no
7387 if test -z "${LT_MULTI_MODULE}"; then
7388 # By default we will add the -single_module flag. You can override
7389 # by either setting the environment variable LT_MULTI_MODULE
7390 # non-empty at configure time, or by adding -multi_module to the
7391 # link flags.
7392 echo "int foo(void){return 1;}" > conftest.c
7393 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7394 -dynamiclib ${wl}-single_module conftest.c
7395 if test -f libconftest.dylib; then
7396 lt_cv_apple_cc_single_mod=yes
7397 rm -rf libconftest.dylib*
7399 rm conftest.c
7402 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7403 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7404 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7405 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7406 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7407 $as_echo_n "(cached) " >&6
7408 else
7409 lt_cv_ld_exported_symbols_list=no
7410 save_LDFLAGS=$LDFLAGS
7411 echo "_main" > conftest.sym
7412 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7421 main ()
7425 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (ac_try="$ac_link"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435 $as_echo "$ac_try_echo") >&5
7436 (eval "$ac_link") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest$ac_exeext && {
7446 test "$cross_compiling" = yes ||
7447 $as_test_x conftest$ac_exeext
7448 }; then
7449 lt_cv_ld_exported_symbols_list=yes
7450 else
7451 $as_echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 lt_cv_ld_exported_symbols_list=no
7457 rm -rf conftest.dSYM
7458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7459 conftest$ac_exeext conftest.$ac_ext
7460 LDFLAGS="$save_LDFLAGS"
7463 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7465 case $host_os in
7466 rhapsody* | darwin1.[0123])
7467 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7468 darwin1.*)
7469 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7470 darwin*)
7471 # if running on 10.5 or later, the deployment target defaults
7472 # to the OS version, if on x86, and 10.4, the deployment
7473 # target defaults to 10.4. Don't you love it?
7474 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7475 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7476 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7477 10.[012]*)
7478 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7479 10.*)
7480 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7481 esac
7483 esac
7484 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7485 _lt_dar_single_mod='$single_module'
7487 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7488 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7489 else
7490 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7492 if test "$DSYMUTIL" != ":"; then
7493 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7494 else
7495 _lt_dsymutil=
7498 esac
7501 enable_dlopen=no
7502 enable_win32_dll=no
7504 # Check whether --enable-libtool-lock was given.
7505 if test "${enable_libtool_lock+set}" = set; then
7506 enableval=$enable_libtool_lock;
7509 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7512 # Check whether --with-pic was given.
7513 if test "${with_pic+set}" = set; then
7514 withval=$with_pic; pic_mode="$withval"
7515 else
7516 pic_mode=default
7519 test -z "$pic_mode" && pic_mode=default
7521 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7523 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7524 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7525 # calls AC_LIBTOOL_CONFIG and creates libtool.
7527 { $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7528 $as_echo_n "checking for correct ltmain.sh version... " >&6; }
7529 if test "x$ltmain" = "x" ; then
7530 { $as_echo "$as_me:$LINENO: result: no" >&5
7531 $as_echo "no" >&6; }
7532 { { $as_echo "$as_me:$LINENO: error:
7534 *** [Gentoo] sanity check failed! ***
7535 *** \$ltmain is not defined, please check the patch for consistency! ***
7536 " >&5
7537 $as_echo "$as_me: error:
7539 *** [Gentoo] sanity check failed! ***
7540 *** \$ltmain is not defined, please check the patch for consistency! ***
7541 " >&2;}
7542 { (exit 1); exit 1; }; }
7544 gentoo_lt_version="1.5.26"
7545 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7546 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7547 { $as_echo "$as_me:$LINENO: result: no" >&5
7548 $as_echo "no" >&6; }
7549 { { $as_echo "$as_me:$LINENO: error:
7551 *** [Gentoo] sanity check failed! ***
7552 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7553 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7555 Please run:
7557 libtoolize --copy --force
7559 if appropriate, please contact the maintainer of this
7560 package (or your distribution) for help.
7561 " >&5
7562 $as_echo "$as_me: error:
7564 *** [Gentoo] sanity check failed! ***
7565 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7566 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7568 Please run:
7570 libtoolize --copy --force
7572 if appropriate, please contact the maintainer of this
7573 package (or your distribution) for help.
7574 " >&2;}
7575 { (exit 1); exit 1; }; }
7576 else
7577 { $as_echo "$as_me:$LINENO: result: yes" >&5
7578 $as_echo "yes" >&6; }
7582 # Use C for the default configuration in the libtool script
7583 tagname=
7584 lt_save_CC="$CC"
7585 ac_ext=c
7586 ac_cpp='$CPP $CPPFLAGS'
7587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7592 # Source file extension for C test sources.
7593 ac_ext=c
7595 # Object file extension for compiled C test sources.
7596 objext=o
7597 objext=$objext
7599 # Code to be used in simple compile tests
7600 lt_simple_compile_test_code="int some_variable = 0;"
7602 # Code to be used in simple link tests
7603 lt_simple_link_test_code='int main(){return(0);}'
7606 # If no C compiler was specified, use CC.
7607 LTCC=${LTCC-"$CC"}
7609 # If no C compiler flags were specified, use CFLAGS.
7610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7612 # Allow CC to be a program name with arguments.
7613 compiler=$CC
7616 # save warnings/boilerplate of simple test code
7617 ac_outfile=conftest.$ac_objext
7618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620 _lt_compiler_boilerplate=`cat conftest.err`
7621 $rm conftest*
7623 ac_outfile=conftest.$ac_objext
7624 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7626 _lt_linker_boilerplate=`cat conftest.err`
7627 $rm -r conftest*
7631 lt_prog_compiler_no_builtin_flag=
7633 if test "$GCC" = yes; then
7634 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7637 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7638 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7641 else
7642 lt_cv_prog_compiler_rtti_exceptions=no
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7645 lt_compiler_flag="-fno-rtti -fno-exceptions"
7646 # Insert the option either (1) after the last *FLAGS variable, or
7647 # (2) before a word containing "conftest.", or (3) at the end.
7648 # Note that $ac_compile itself does not contain backslashes and begins
7649 # with a dollar sign (not a hyphen), so the echo should work correctly.
7650 # The option is referenced via a variable to avoid confusing sed.
7651 lt_compile=`echo "$ac_compile" | $SED \
7652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654 -e 's:$: $lt_compiler_flag:'`
7655 (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656 (eval "$lt_compile" 2>conftest.err)
7657 ac_status=$?
7658 cat conftest.err >&5
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 if (exit $ac_status) && test -s "$ac_outfile"; then
7661 # The compiler can only warn and ignore the option if not recognized
7662 # So say no if there are warnings other than the usual output.
7663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7666 lt_cv_prog_compiler_rtti_exceptions=yes
7669 $rm conftest*
7672 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7673 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7676 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7677 else
7683 lt_prog_compiler_wl=
7684 lt_prog_compiler_pic=
7685 lt_prog_compiler_static=
7687 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7690 if test "$GCC" = yes; then
7691 lt_prog_compiler_wl='-Wl,'
7692 lt_prog_compiler_static='-static'
7694 case $host_os in
7695 aix*)
7696 # All AIX code is PIC.
7697 if test "$host_cpu" = ia64; then
7698 # AIX 5 now supports IA64 processor
7699 lt_prog_compiler_static='-Bstatic'
7703 amigaos*)
7704 # FIXME: we need at least 68020 code to build shared libraries, but
7705 # adding the `-m68020' flag to GCC prevents building anything better,
7706 # like `-m68040'.
7707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7711 # PIC is the default for these OSes.
7714 mingw* | cygwin* | pw32* | os2*)
7715 # This hack is so that the source file can tell whether it is being
7716 # built for inclusion in a dll (and should export symbols for example).
7717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7718 # (--disable-auto-import) libraries
7719 lt_prog_compiler_pic='-DDLL_EXPORT'
7722 darwin* | rhapsody*)
7723 # PIC is the default on this platform
7724 # Common symbols not allowed in MH_DYLIB files
7725 lt_prog_compiler_pic='-fno-common'
7728 interix[3-9]*)
7729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7730 # Instead, we relocate shared libraries at runtime.
7733 msdosdjgpp*)
7734 # Just because we use GCC doesn't mean we suddenly get shared libraries
7735 # on systems that don't support them.
7736 lt_prog_compiler_can_build_shared=no
7737 enable_shared=no
7740 sysv4*MP*)
7741 if test -d /usr/nec; then
7742 lt_prog_compiler_pic=-Kconform_pic
7746 hpux*)
7747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7748 # not for PA HP-UX.
7749 case $host_cpu in
7750 hppa*64*|ia64*)
7751 # +Z the default
7754 lt_prog_compiler_pic='-fPIC'
7756 esac
7760 lt_prog_compiler_pic='-fPIC'
7762 esac
7763 else
7764 # PORTME Check for flag to pass linker flags through the system compiler.
7765 case $host_os in
7766 aix*)
7767 lt_prog_compiler_wl='-Wl,'
7768 if test "$host_cpu" = ia64; then
7769 # AIX 5 now supports IA64 processor
7770 lt_prog_compiler_static='-Bstatic'
7771 else
7772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7775 darwin*)
7776 # PIC is the default on this platform
7777 # Common symbols not allowed in MH_DYLIB files
7778 case $cc_basename in
7779 xlc*)
7780 lt_prog_compiler_pic='-qnocommon'
7781 lt_prog_compiler_wl='-Wl,'
7783 esac
7786 mingw* | cygwin* | pw32* | os2*)
7787 # This hack is so that the source file can tell whether it is being
7788 # built for inclusion in a dll (and should export symbols for example).
7789 lt_prog_compiler_pic='-DDLL_EXPORT'
7792 hpux9* | hpux10* | hpux11*)
7793 lt_prog_compiler_wl='-Wl,'
7794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795 # not for PA HP-UX.
7796 case $host_cpu in
7797 hppa*64*|ia64*)
7798 # +Z the default
7801 lt_prog_compiler_pic='+Z'
7803 esac
7804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7805 lt_prog_compiler_static='${wl}-a ${wl}archive'
7808 irix5* | irix6* | nonstopux*)
7809 lt_prog_compiler_wl='-Wl,'
7810 # PIC (with -KPIC) is the default.
7811 lt_prog_compiler_static='-non_shared'
7814 newsos6)
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-Bstatic'
7819 linux* | k*bsd*-gnu)
7820 case $cc_basename in
7821 icc* | ecc*)
7822 lt_prog_compiler_wl='-Wl,'
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-static'
7826 pgcc* | pgf77* | pgf90* | pgf95*)
7827 # Portland Group compilers (*not* the Pentium gcc compiler,
7828 # which looks to be a dead project)
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-fpic'
7831 lt_prog_compiler_static='-Bstatic'
7833 ccc*)
7834 lt_prog_compiler_wl='-Wl,'
7835 # All Alpha code is PIC.
7836 lt_prog_compiler_static='-non_shared'
7839 case `$CC -V 2>&1 | sed 5q` in
7840 *Sun\ C*)
7841 # Sun C 5.9
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7844 lt_prog_compiler_wl='-Wl,'
7846 *Sun\ F*)
7847 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7850 lt_prog_compiler_wl=''
7852 esac
7854 esac
7857 osf3* | osf4* | osf5*)
7858 lt_prog_compiler_wl='-Wl,'
7859 # All OSF/1 code is PIC.
7860 lt_prog_compiler_static='-non_shared'
7863 rdos*)
7864 lt_prog_compiler_static='-non_shared'
7867 solaris*)
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7870 case $cc_basename in
7871 f77* | f90* | f95*)
7872 lt_prog_compiler_wl='-Qoption ld ';;
7874 lt_prog_compiler_wl='-Wl,';;
7875 esac
7878 sunos4*)
7879 lt_prog_compiler_wl='-Qoption ld '
7880 lt_prog_compiler_pic='-PIC'
7881 lt_prog_compiler_static='-Bstatic'
7884 sysv4 | sysv4.2uw2* | sysv4.3*)
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-KPIC'
7887 lt_prog_compiler_static='-Bstatic'
7890 sysv4*MP*)
7891 if test -d /usr/nec ;then
7892 lt_prog_compiler_pic='-Kconform_pic'
7893 lt_prog_compiler_static='-Bstatic'
7897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7898 lt_prog_compiler_wl='-Wl,'
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7903 unicos*)
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_can_build_shared=no
7908 uts4*)
7909 lt_prog_compiler_pic='-pic'
7910 lt_prog_compiler_static='-Bstatic'
7914 lt_prog_compiler_can_build_shared=no
7916 esac
7919 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7920 $as_echo "$lt_prog_compiler_pic" >&6; }
7923 # Check to make sure the PIC flag actually works.
7925 if test -n "$lt_prog_compiler_pic"; then
7927 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7928 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7929 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7930 $as_echo_n "(cached) " >&6
7931 else
7932 lt_cv_prog_compiler_pic_works=no
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7935 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7936 # Insert the option either (1) after the last *FLAGS variable, or
7937 # (2) before a word containing "conftest.", or (3) at the end.
7938 # Note that $ac_compile itself does not contain backslashes and begins
7939 # with a dollar sign (not a hyphen), so the echo should work correctly.
7940 # The option is referenced via a variable to avoid confusing sed.
7941 lt_compile=`echo "$ac_compile" | $SED \
7942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7944 -e 's:$: $lt_compiler_flag:'`
7945 (eval echo "\"\$as_me:7945: $lt_compile\"" >&5)
7946 (eval "$lt_compile" 2>conftest.err)
7947 ac_status=$?
7948 cat conftest.err >&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 if (exit $ac_status) && test -s "$ac_outfile"; then
7951 # The compiler can only warn and ignore the option if not recognized
7952 # So say no if there are warnings other than the usual output.
7953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7956 lt_cv_prog_compiler_pic_works=yes
7959 $rm conftest*
7962 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7963 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7965 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7966 case $lt_prog_compiler_pic in
7967 "" | " "*) ;;
7968 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7969 esac
7970 else
7971 lt_prog_compiler_pic=
7972 lt_prog_compiler_can_build_shared=no
7976 case $host_os in
7977 # For platforms which do not support PIC, -DPIC is meaningless:
7978 *djgpp*)
7979 lt_prog_compiler_pic=
7982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7984 esac
7987 # Check to make sure the static flag actually works.
7989 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7990 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7992 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7993 $as_echo_n "(cached) " >&6
7994 else
7995 lt_cv_prog_compiler_static_works=no
7996 save_LDFLAGS="$LDFLAGS"
7997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000 # The linker can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 if test -s conftest.err; then
8003 # Append any errors to the config.log.
8004 cat conftest.err 1>&5
8005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007 if diff conftest.exp conftest.er2 >/dev/null; then
8008 lt_cv_prog_compiler_static_works=yes
8010 else
8011 lt_cv_prog_compiler_static_works=yes
8014 $rm -r conftest*
8015 LDFLAGS="$save_LDFLAGS"
8018 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8019 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8021 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8023 else
8024 lt_prog_compiler_static=
8028 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8030 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8031 $as_echo_n "(cached) " >&6
8032 else
8033 lt_cv_prog_compiler_c_o=no
8034 $rm -r conftest 2>/dev/null
8035 mkdir conftest
8036 cd conftest
8037 mkdir out
8038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8040 lt_compiler_flag="-o out/conftest2.$ac_objext"
8041 # Insert the option either (1) after the last *FLAGS variable, or
8042 # (2) before a word containing "conftest.", or (3) at the end.
8043 # Note that $ac_compile itself does not contain backslashes and begins
8044 # with a dollar sign (not a hyphen), so the echo should work correctly.
8045 lt_compile=`echo "$ac_compile" | $SED \
8046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8048 -e 's:$: $lt_compiler_flag:'`
8049 (eval echo "\"\$as_me:8049: $lt_compile\"" >&5)
8050 (eval "$lt_compile" 2>out/conftest.err)
8051 ac_status=$?
8052 cat out/conftest.err >&5
8053 echo "$as_me:8053: \$? = $ac_status" >&5
8054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8055 then
8056 # The compiler can only warn and ignore the option if not recognized
8057 # So say no if there are warnings
8058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8061 lt_cv_prog_compiler_c_o=yes
8064 chmod u+w . 2>&5
8065 $rm conftest*
8066 # SGI C++ compiler will create directory out/ii_files/ for
8067 # template instantiation
8068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8069 $rm out/* && rmdir out
8070 cd ..
8071 rmdir conftest
8072 $rm conftest*
8075 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8076 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8079 hard_links="nottested"
8080 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8081 # do not overwrite the value of need_locks provided by the user
8082 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8083 $as_echo_n "checking if we can lock with hard links... " >&6; }
8084 hard_links=yes
8085 $rm conftest*
8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087 touch conftest.a
8088 ln conftest.a conftest.b 2>&5 || hard_links=no
8089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8091 $as_echo "$hard_links" >&6; }
8092 if test "$hard_links" = no; then
8093 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8095 need_locks=warn
8097 else
8098 need_locks=no
8101 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8104 runpath_var=
8105 allow_undefined_flag=
8106 enable_shared_with_static_runtimes=no
8107 archive_cmds=
8108 archive_expsym_cmds=
8109 old_archive_From_new_cmds=
8110 old_archive_from_expsyms_cmds=
8111 export_dynamic_flag_spec=
8112 whole_archive_flag_spec=
8113 thread_safe_flag_spec=
8114 hardcode_libdir_flag_spec=
8115 hardcode_libdir_flag_spec_ld=
8116 hardcode_libdir_separator=
8117 hardcode_direct=no
8118 hardcode_minus_L=no
8119 hardcode_shlibpath_var=unsupported
8120 link_all_deplibs=unknown
8121 hardcode_automatic=no
8122 module_cmds=
8123 module_expsym_cmds=
8124 always_export_symbols=no
8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8126 # include_expsyms should be a list of space-separated symbols to be *always*
8127 # included in the symbol list
8128 include_expsyms=
8129 # exclude_expsyms can be an extended regexp of symbols to exclude
8130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8132 # as well as any symbol that contains `d'.
8133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8135 # platforms (ab)use it in PIC code, but their linkers get confused if
8136 # the symbol is explicitly referenced. Since portable code cannot
8137 # rely on this symbol name, it's probably fine to never include it in
8138 # preloaded symbol tables.
8139 # Exclude shared library initialization/finalization symbols.
8140 extract_expsyms_cmds=
8141 # Just being paranoid about ensuring that cc_basename is set.
8142 for cc_temp in $compiler""; do
8143 case $cc_temp in
8144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8146 \-*) ;;
8147 *) break;;
8148 esac
8149 done
8150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8152 case $host_os in
8153 cygwin* | mingw* | pw32*)
8154 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8155 # When not using gcc, we currently assume that we are using
8156 # Microsoft Visual C++.
8157 if test "$GCC" != yes; then
8158 with_gnu_ld=no
8161 interix*)
8162 # we just hope/assume this is gcc and not c89 (= MSVC++)
8163 with_gnu_ld=yes
8165 openbsd*)
8166 with_gnu_ld=no
8168 esac
8170 ld_shlibs=yes
8171 if test "$with_gnu_ld" = yes; then
8172 # If archive_cmds runs LD, not CC, wlarc should be empty
8173 wlarc='${wl}'
8175 # Set some defaults for GNU ld with shared library support. These
8176 # are reset later if shared libraries are not supported. Putting them
8177 # here allows them to be overridden if necessary.
8178 runpath_var=LD_RUN_PATH
8179 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8180 export_dynamic_flag_spec='${wl}--export-dynamic'
8181 # ancient GNU ld didn't support --whole-archive et. al.
8182 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8183 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8184 else
8185 whole_archive_flag_spec=
8187 supports_anon_versioning=no
8188 case `$LD -v 2>/dev/null` in
8189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8192 *\ 2.11.*) ;; # other 2.11 versions
8193 *) supports_anon_versioning=yes ;;
8194 esac
8196 # See if GNU ld supports shared libraries.
8197 case $host_os in
8198 aix[3-9]*)
8199 # On AIX/PPC, the GNU linker is very broken
8200 if test "$host_cpu" != ia64; then
8201 ld_shlibs=no
8202 cat <<EOF 1>&2
8204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8205 *** to be unable to reliably create shared libraries on AIX.
8206 *** Therefore, libtool is disabling shared libraries support. If you
8207 *** really care for shared libraries, you may want to modify your PATH
8208 *** so that a non-GNU linker is found, and then restart.
8214 amigaos*)
8215 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)'
8216 hardcode_libdir_flag_spec='-L$libdir'
8217 hardcode_minus_L=yes
8219 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8220 # that the semantics of dynamic libraries on AmigaOS, at least up
8221 # to version 4, is to share data among multiple programs linked
8222 # with the same dynamic library. Since this doesn't match the
8223 # behavior of shared libraries on other platforms, we can't use
8224 # them.
8225 ld_shlibs=no
8228 beos*)
8229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230 allow_undefined_flag=unsupported
8231 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8232 # support --undefined. This deserves some investigation. FIXME
8233 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8234 else
8235 ld_shlibs=no
8239 cygwin* | mingw* | pw32*)
8240 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8241 # as there is no search path for DLLs.
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 allow_undefined_flag=unsupported
8244 always_export_symbols=no
8245 enable_shared_with_static_runtimes=yes
8246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8248 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8250 # If the export-symbols file already is a .def file (1st line
8251 # is EXPORTS), use it as is; otherwise, prepend...
8252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8253 cp $export_symbols $output_objdir/$soname.def;
8254 else
8255 echo EXPORTS > $output_objdir/$soname.def;
8256 cat $export_symbols >> $output_objdir/$soname.def;
8258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8259 else
8260 ld_shlibs=no
8264 interix[3-9]*)
8265 hardcode_direct=no
8266 hardcode_shlibpath_var=no
8267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268 export_dynamic_flag_spec='${wl}-E'
8269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8270 # Instead, shared libraries are loaded at an image base (0x10000000 by
8271 # default) and relocated if they conflict, which is a slow very memory
8272 # consuming and fragmenting process. To avoid this, we pick a random,
8273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8274 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8276 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'
8279 gnu* | linux* | k*bsd*-gnu)
8280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8281 tmp_addflag=
8282 case $cc_basename,$host_cpu in
8283 pgcc*) # Portland Group C compiler
8284 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'
8285 tmp_addflag=' $pic_flag'
8287 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8288 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'
8289 tmp_addflag=' $pic_flag -Mnomain' ;;
8290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8291 tmp_addflag=' -i_dynamic' ;;
8292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8293 tmp_addflag=' -i_dynamic -nofor_main' ;;
8294 ifc* | ifort*) # Intel Fortran compiler
8295 tmp_addflag=' -nofor_main' ;;
8296 esac
8297 case `$CC -V 2>&1 | sed 5q` in
8298 *Sun\ C*) # Sun C 5.9
8299 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'
8300 tmp_sharedflag='-G' ;;
8301 *Sun\ F*) # Sun Fortran 8.3
8302 tmp_sharedflag='-G' ;;
8304 tmp_sharedflag='-shared' ;;
8305 esac
8306 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308 if test $supports_anon_versioning = yes; then
8309 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8311 $echo "local: *; };" >> $output_objdir/$libname.ver~
8312 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8314 else
8315 ld_shlibs=no
8319 netbsd*)
8320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8322 wlarc=
8323 else
8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329 solaris*)
8330 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8331 ld_shlibs=no
8332 cat <<EOF 1>&2
8334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8335 *** create shared libraries on Solaris systems. Therefore, libtool
8336 *** is disabling shared libraries support. We urge you to upgrade GNU
8337 *** binutils to release 2.9.1 or newer. Another option is to modify
8338 *** your PATH or compiler configuration so that the native linker is
8339 *** used, and then restart.
8342 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345 else
8346 ld_shlibs=no
8350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8351 case `$LD -v 2>&1` in
8352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8353 ld_shlibs=no
8354 cat <<_LT_EOF 1>&2
8356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8357 *** reliably create shared libraries on SCO systems. Therefore, libtool
8358 *** is disabling shared libraries support. We urge you to upgrade GNU
8359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8360 *** your PATH or compiler configuration so that the native linker is
8361 *** used, and then restart.
8363 _LT_EOF
8366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8367 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8370 else
8371 ld_shlibs=no
8374 esac
8377 sunos4*)
8378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379 wlarc=
8380 hardcode_direct=yes
8381 hardcode_shlibpath_var=no
8385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388 else
8389 ld_shlibs=no
8392 esac
8394 if test "$ld_shlibs" = no; then
8395 runpath_var=
8396 hardcode_libdir_flag_spec=
8397 export_dynamic_flag_spec=
8398 whole_archive_flag_spec=
8400 else
8401 # PORTME fill in a description of your system's linker (not GNU ld)
8402 case $host_os in
8403 aix3*)
8404 allow_undefined_flag=unsupported
8405 always_export_symbols=yes
8406 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'
8407 # Note: this linker hardcodes the directories in LIBPATH if there
8408 # are no directories specified by -L.
8409 hardcode_minus_L=yes
8410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8411 # Neither direct hardcoding nor static linking is supported with a
8412 # broken collect2.
8413 hardcode_direct=unsupported
8417 aix[4-9]*)
8418 if test "$host_cpu" = ia64; then
8419 # On IA64, the linker does run time linking by default, so we don't
8420 # have to do anything special.
8421 aix_use_runtimelinking=no
8422 exp_sym_flag='-Bexport'
8423 no_entry_flag=""
8424 else
8425 # If we're using GNU nm, then we don't want the "-C" option.
8426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8428 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'
8429 else
8430 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'
8432 aix_use_runtimelinking=no
8434 # Test if we are trying to use run time linking or normal
8435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8436 # need to do runtime linking.
8437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8438 for ld_flag in $LDFLAGS; do
8439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8440 aix_use_runtimelinking=yes
8441 break
8443 done
8445 esac
8447 exp_sym_flag='-bexport'
8448 no_entry_flag='-bnoentry'
8451 # When large executables or shared objects are built, AIX ld can
8452 # have problems creating the table of contents. If linking a library
8453 # or program results in "error TOC overflow" add -mminimal-toc to
8454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8457 archive_cmds=''
8458 hardcode_direct=yes
8459 hardcode_libdir_separator=':'
8460 link_all_deplibs=yes
8462 if test "$GCC" = yes; then
8463 case $host_os in aix4.[012]|aix4.[012].*)
8464 # We only want to do this on AIX 4.2 and lower, the check
8465 # below for broken collect2 doesn't work under 4.3+
8466 collect2name=`${CC} -print-prog-name=collect2`
8467 if test -f "$collect2name" && \
8468 strings "$collect2name" | grep resolve_lib_name >/dev/null
8469 then
8470 # We have reworked collect2
8472 else
8473 # We have old collect2
8474 hardcode_direct=unsupported
8475 # It fails to find uninstalled libraries when the uninstalled
8476 # path is not listed in the libpath. Setting hardcode_minus_L
8477 # to unsupported forces relinking
8478 hardcode_minus_L=yes
8479 hardcode_libdir_flag_spec='-L$libdir'
8480 hardcode_libdir_separator=
8483 esac
8484 shared_flag='-shared'
8485 if test "$aix_use_runtimelinking" = yes; then
8486 shared_flag="$shared_flag "'${wl}-G'
8488 else
8489 # not using gcc
8490 if test "$host_cpu" = ia64; then
8491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8492 # chokes on -Wl,-G. The following line is correct:
8493 shared_flag='-G'
8494 else
8495 if test "$aix_use_runtimelinking" = yes; then
8496 shared_flag='${wl}-G'
8497 else
8498 shared_flag='${wl}-bM:SRE'
8503 # It seems that -bexpall does not export symbols beginning with
8504 # underscore (_), so it is better to generate a list of symbols to export.
8505 always_export_symbols=yes
8506 if test "$aix_use_runtimelinking" = yes; then
8507 # Warning - without using the other runtime loading flags (-brtl),
8508 # -berok will link without error, but may produce a broken library.
8509 allow_undefined_flag='-berok'
8510 # Determine the default libpath from the value encoded in an empty executable.
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8519 main ()
8523 return 0;
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (ac_try="$ac_link"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_link") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest$ac_exeext && {
8544 test "$cross_compiling" = yes ||
8545 $as_test_x conftest$ac_exeext
8546 }; then
8548 lt_aix_libpath_sed='
8549 /Import File Strings/,/^$/ {
8550 /^0/ {
8551 s/^0 *\(.*\)$/\1/
8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556 # Check for a 64-bit object if we didn't find anything.
8557 if test -z "$aix_libpath"; then
8558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8560 else
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8567 rm -rf conftest.dSYM
8568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8569 conftest$ac_exeext conftest.$ac_ext
8570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573 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"
8574 else
8575 if test "$host_cpu" = ia64; then
8576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577 allow_undefined_flag="-z nodefs"
8578 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"
8579 else
8580 # Determine the default libpath from the value encoded in an empty executable.
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8589 main ()
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_link") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest$ac_exeext && {
8614 test "$cross_compiling" = yes ||
8615 $as_test_x conftest$ac_exeext
8616 }; then
8618 lt_aix_libpath_sed='
8619 /Import File Strings/,/^$/ {
8620 /^0/ {
8621 s/^0 *\(.*\)$/\1/
8625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626 # Check for a 64-bit object if we didn't find anything.
8627 if test -z "$aix_libpath"; then
8628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 else
8631 $as_echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8637 rm -rf conftest.dSYM
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 # Warning - without using the other run time loading flags,
8644 # -berok will link without error, but may produce a broken library.
8645 no_undefined_flag=' ${wl}-bernotok'
8646 allow_undefined_flag=' ${wl}-berok'
8647 # Exported symbols can be pulled into shared objects from archives
8648 whole_archive_flag_spec='$convenience'
8649 archive_cmds_need_lc=yes
8650 # This is similar to how AIX traditionally builds its shared libraries.
8651 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'
8656 amigaos*)
8657 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)'
8658 hardcode_libdir_flag_spec='-L$libdir'
8659 hardcode_minus_L=yes
8660 # see comment about different semantics on the GNU ld section
8661 ld_shlibs=no
8664 bsdi[45]*)
8665 export_dynamic_flag_spec=-rdynamic
8668 cygwin* | mingw* | pw32*)
8669 # When not using gcc, we currently assume that we are using
8670 # Microsoft Visual C++.
8671 # hardcode_libdir_flag_spec is actually meaningless, as there is
8672 # no search path for DLLs.
8673 hardcode_libdir_flag_spec=' '
8674 allow_undefined_flag=unsupported
8675 # Tell ltmain to make .lib files, not .a files.
8676 libext=lib
8677 # Tell ltmain to make .dll files, not .so files.
8678 shrext_cmds=".dll"
8679 # FIXME: Setting linknames here is a bad hack.
8680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8681 # The linker will automatically build a .lib file if we build a DLL.
8682 old_archive_From_new_cmds='true'
8683 # FIXME: Should let the user specify the lib program.
8684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685 fix_srcfile_path='`cygpath -w "$srcfile"`'
8686 enable_shared_with_static_runtimes=yes
8689 darwin* | rhapsody*)
8690 case $host_os in
8691 rhapsody* | darwin1.[012])
8692 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8694 *) # Darwin 1.3 on
8695 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8696 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8697 else
8698 case ${MACOSX_DEPLOYMENT_TARGET} in
8699 10.[012])
8700 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8702 10.*)
8703 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8705 esac
8708 esac
8709 archive_cmds_need_lc=no
8710 hardcode_direct=no
8711 hardcode_automatic=yes
8712 hardcode_shlibpath_var=unsupported
8713 whole_archive_flag_spec=''
8714 link_all_deplibs=yes
8715 if test "$GCC" = yes ; then
8716 output_verbose_link_cmd='echo'
8717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8720 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8721 else
8722 case $cc_basename in
8723 xlc*)
8724 output_verbose_link_cmd='echo'
8725 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8726 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728 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}'
8729 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}'
8732 ld_shlibs=no
8734 esac
8738 dgux*)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='-L$libdir'
8741 hardcode_shlibpath_var=no
8744 freebsd1*)
8745 ld_shlibs=no
8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749 # support. Future versions do this automatically, but an explicit c++rt0.o
8750 # does not break anything, and helps significantly (at the cost of a little
8751 # extra space).
8752 freebsd2.2*)
8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754 hardcode_libdir_flag_spec='-R$libdir'
8755 hardcode_direct=yes
8756 hardcode_shlibpath_var=no
8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8760 freebsd2*)
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_direct=yes
8763 hardcode_minus_L=yes
8764 hardcode_shlibpath_var=no
8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768 freebsd* | dragonfly*)
8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_direct=yes
8772 hardcode_shlibpath_var=no
8775 hpux9*)
8776 if test "$GCC" = yes; then
8777 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'
8778 else
8779 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'
8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 hardcode_direct=yes
8785 # hardcode_minus_L: Not really in the search PATH,
8786 # but as the default location of the library.
8787 hardcode_minus_L=yes
8788 export_dynamic_flag_spec='${wl}-E'
8791 hpux10*)
8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8794 else
8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8797 if test "$with_gnu_ld" = no; then
8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799 hardcode_libdir_separator=:
8801 hardcode_direct=yes
8802 export_dynamic_flag_spec='${wl}-E'
8804 # hardcode_minus_L: Not really in the search PATH,
8805 # but as the default location of the library.
8806 hardcode_minus_L=yes
8810 hpux11*)
8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812 case $host_cpu in
8813 hppa*64*)
8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 ia64*)
8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822 esac
8823 else
8824 case $host_cpu in
8825 hppa*64*)
8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 ia64*)
8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834 esac
8836 if test "$with_gnu_ld" = no; then
8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838 hardcode_libdir_separator=:
8840 case $host_cpu in
8841 hppa*64*|ia64*)
8842 hardcode_libdir_flag_spec_ld='+b $libdir'
8843 hardcode_direct=no
8844 hardcode_shlibpath_var=no
8847 hardcode_direct=yes
8848 export_dynamic_flag_spec='${wl}-E'
8850 # hardcode_minus_L: Not really in the search PATH,
8851 # but as the default location of the library.
8852 hardcode_minus_L=yes
8854 esac
8858 irix5* | irix6* | nonstopux*)
8859 if test "$GCC" = yes; then
8860 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'
8861 else
8862 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'
8863 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 hardcode_libdir_separator=:
8867 link_all_deplibs=yes
8870 netbsd*)
8871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8873 else
8874 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8876 hardcode_libdir_flag_spec='-R$libdir'
8877 hardcode_direct=yes
8878 hardcode_shlibpath_var=no
8881 newsos6)
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_direct=yes
8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885 hardcode_libdir_separator=:
8886 hardcode_shlibpath_var=no
8889 openbsd*)
8890 if test -f /usr/libexec/ld.so; then
8891 hardcode_direct=yes
8892 hardcode_shlibpath_var=no
8893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897 export_dynamic_flag_spec='${wl}-E'
8898 else
8899 case $host_os in
8900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_libdir_flag_spec='-R$libdir'
8905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908 esac
8910 else
8911 ld_shlibs=no
8915 os2*)
8916 hardcode_libdir_flag_spec='-L$libdir'
8917 hardcode_minus_L=yes
8918 allow_undefined_flag=unsupported
8919 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'
8920 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8923 osf3*)
8924 if test "$GCC" = yes; then
8925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8926 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'
8927 else
8928 allow_undefined_flag=' -expect_unresolved \*'
8929 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'
8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932 hardcode_libdir_separator=:
8935 osf4* | osf5*) # as osf3* with the addition of -msym flag
8936 if test "$GCC" = yes; then
8937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938 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'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940 else
8941 allow_undefined_flag=' -expect_unresolved \*'
8942 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'
8943 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8944 $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'
8946 # Both c and cxx compiler support -rpath directly
8947 hardcode_libdir_flag_spec='-rpath $libdir'
8949 hardcode_libdir_separator=:
8952 solaris*)
8953 no_undefined_flag=' -z text'
8954 if test "$GCC" = yes; then
8955 wlarc='${wl}'
8956 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8959 else
8960 wlarc=''
8961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965 hardcode_libdir_flag_spec='-R$libdir'
8966 hardcode_shlibpath_var=no
8967 case $host_os in
8968 solaris2.[0-5] | solaris2.[0-5].*) ;;
8970 # The compiler driver will combine and reorder linker options,
8971 # but understands `-z linker_flag'. GCC discards it without `$wl',
8972 # but is careful enough not to reorder.
8973 # Supported since Solaris 2.6 (maybe 2.5.1?)
8974 if test "$GCC" = yes; then
8975 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976 else
8977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8980 esac
8981 link_all_deplibs=yes
8984 sunos4*)
8985 if test "x$host_vendor" = xsequent; then
8986 # Use $CC to link under sequent, because it throws in some extra .o
8987 # files that make .init and .fini sections work.
8988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989 else
8990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_direct=yes
8994 hardcode_minus_L=yes
8995 hardcode_shlibpath_var=no
8998 sysv4)
8999 case $host_vendor in
9000 sni)
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_direct=yes # is this really true???
9004 siemens)
9005 ## LD is ld it makes a PLAMLIB
9006 ## CC just makes a GrossModule.
9007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 reload_cmds='$CC -r -o $output$reload_objs'
9009 hardcode_direct=no
9011 motorola)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9015 esac
9016 runpath_var='LD_RUN_PATH'
9017 hardcode_shlibpath_var=no
9020 sysv4.3*)
9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022 hardcode_shlibpath_var=no
9023 export_dynamic_flag_spec='-Bexport'
9026 sysv4*MP*)
9027 if test -d /usr/nec; then
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_shlibpath_var=no
9030 runpath_var=LD_RUN_PATH
9031 hardcode_runpath_var=yes
9032 ld_shlibs=yes
9036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037 no_undefined_flag='${wl}-z,text'
9038 archive_cmds_need_lc=no
9039 hardcode_shlibpath_var=no
9040 runpath_var='LD_RUN_PATH'
9042 if test "$GCC" = yes; then
9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 else
9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 sysv5* | sco3.2v5* | sco5v6*)
9052 # Note: We can NOT use -z defs as we might desire, because we do not
9053 # link with -lc, and that would cause any symbols used from libc to
9054 # always be unresolved, which means just about no library would
9055 # ever link correctly. If we're not using GNU ld we use -z text
9056 # though, which does catch some bad symbols but isn't as heavy-handed
9057 # as -z defs.
9058 no_undefined_flag='${wl}-z,text'
9059 allow_undefined_flag='${wl}-z,nodefs'
9060 archive_cmds_need_lc=no
9061 hardcode_shlibpath_var=no
9062 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9063 hardcode_libdir_separator=':'
9064 link_all_deplibs=yes
9065 export_dynamic_flag_spec='${wl}-Bexport'
9066 runpath_var='LD_RUN_PATH'
9068 if test "$GCC" = yes; then
9069 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 else
9072 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 uts4*)
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_shlibpath_var=no
9084 ld_shlibs=no
9086 esac
9089 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9090 $as_echo "$ld_shlibs" >&6; }
9091 test "$ld_shlibs" = no && can_build_shared=no
9094 # Do we need to explicitly link libc?
9096 case "x$archive_cmds_need_lc" in
9097 x|xyes)
9098 # Assume -lc should be added
9099 archive_cmds_need_lc=yes
9101 if test "$enable_shared" = yes && test "$GCC" = yes; then
9102 case $archive_cmds in
9103 *'~'*)
9104 # FIXME: we may have to deal with multi-command sequences.
9106 '$CC '*)
9107 # Test whether the compiler implicitly links with -lc since on some
9108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9109 # to ld, don't add -lc before -lgcc.
9110 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9111 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9112 $rm conftest*
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116 (eval $ac_compile) 2>&5
9117 ac_status=$?
9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } 2>conftest.err; then
9120 soname=conftest
9121 lib=conftest
9122 libobjs=conftest.$ac_objext
9123 deplibs=
9124 wl=$lt_prog_compiler_wl
9125 pic_flag=$lt_prog_compiler_pic
9126 compiler_flags=-v
9127 linker_flags=-v
9128 verstring=
9129 output_objdir=.
9130 libname=conftest
9131 lt_save_allow_undefined_flag=$allow_undefined_flag
9132 allow_undefined_flag=
9133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9134 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9135 ac_status=$?
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }
9138 then
9139 archive_cmds_need_lc=no
9140 else
9141 archive_cmds_need_lc=yes
9143 allow_undefined_flag=$lt_save_allow_undefined_flag
9144 else
9145 cat conftest.err 1>&5
9147 $rm conftest*
9148 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9149 $as_echo "$archive_cmds_need_lc" >&6; }
9151 esac
9154 esac
9156 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9157 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9158 library_names_spec=
9159 libname_spec='lib$name'
9160 soname_spec=
9161 shrext_cmds=".so"
9162 postinstall_cmds=
9163 postuninstall_cmds=
9164 finish_cmds=
9165 finish_eval=
9166 shlibpath_var=
9167 shlibpath_overrides_runpath=unknown
9168 version_type=none
9169 dynamic_linker="$host_os ld.so"
9170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9172 if test "$GCC" = yes; then
9173 case $host_os in
9174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175 *) lt_awk_arg="/^libraries:/" ;;
9176 esac
9177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9179 # if the path contains ";" then we assume it to be the separator
9180 # otherwise default to the standard path separator (i.e. ":") - it is
9181 # assumed that no part of a normal pathname contains ";" but that should
9182 # okay in the real world where ";" in dirpaths is itself problematic.
9183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184 else
9185 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9187 # Ok, now we have the path, separated by spaces, we can step through it
9188 # and add multilib dir if necessary.
9189 lt_tmp_lt_search_path_spec=
9190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191 for lt_sys_path in $lt_search_path_spec; do
9192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194 else
9195 test -d "$lt_sys_path" && \
9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9198 done
9199 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9200 BEGIN {RS=" "; FS="/|\n";} {
9201 lt_foo="";
9202 lt_count=0;
9203 for (lt_i = NF; lt_i > 0; lt_i--) {
9204 if ($lt_i != "" && $lt_i != ".") {
9205 if ($lt_i == "..") {
9206 lt_count++;
9207 } else {
9208 if (lt_count == 0) {
9209 lt_foo="/" $lt_i lt_foo;
9210 } else {
9211 lt_count--;
9216 if (lt_foo != "") { lt_freq[lt_foo]++; }
9217 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9219 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9220 else
9221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9223 need_lib_prefix=unknown
9224 hardcode_into_libs=no
9226 # when you set need_version to no, make sure it does not cause -set_version
9227 # flags to be left without arguments
9228 need_version=unknown
9230 case $host_os in
9231 aix3*)
9232 version_type=linux
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234 shlibpath_var=LIBPATH
9236 # AIX 3 has no versioning support, so we append a major version to the name.
9237 soname_spec='${libname}${release}${shared_ext}$major'
9240 aix[4-9]*)
9241 version_type=linux
9242 need_lib_prefix=no
9243 need_version=no
9244 hardcode_into_libs=yes
9245 if test "$host_cpu" = ia64; then
9246 # AIX 5 supports IA64
9247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 else
9250 # With GCC up to 2.95.x, collect2 would create an import file
9251 # for dependence libraries. The import file would start with
9252 # the line `#! .'. This would cause the generated library to
9253 # depend on `.', always an invalid library. This was fixed in
9254 # development snapshots of GCC prior to 3.0.
9255 case $host_os in
9256 aix4 | aix4.[01] | aix4.[01].*)
9257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9258 echo ' yes '
9259 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9261 else
9262 can_build_shared=no
9265 esac
9266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267 # soname into executable. Probably we can add versioning support to
9268 # collect2, so additional links can be useful in future.
9269 if test "$aix_use_runtimelinking" = yes; then
9270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271 # instead of lib<name>.a to let people know that these are not
9272 # typical AIX shared libraries.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 else
9275 # We preserve .a as extension for shared libraries through AIX4.2
9276 # and later when we are not doing run time linking.
9277 library_names_spec='${libname}${release}.a $libname.a'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9280 shlibpath_var=LIBPATH
9284 amigaos*)
9285 library_names_spec='$libname.ixlibrary $libname.a'
9286 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9287 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'
9290 beos*)
9291 library_names_spec='${libname}${shared_ext}'
9292 dynamic_linker="$host_os ld.so"
9293 shlibpath_var=LIBRARY_PATH
9296 bsdi[45]*)
9297 version_type=linux
9298 need_version=no
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305 # the default ld.so.conf also contains /usr/contrib/lib and
9306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307 # libtool to hard-code these into programs
9310 cygwin* | mingw* | pw32*)
9311 version_type=windows
9312 shrext_cmds=".dll"
9313 need_version=no
9314 need_lib_prefix=no
9316 case $GCC,$host_os in
9317 yes,cygwin* | yes,mingw* | yes,pw32*)
9318 library_names_spec='$libname.dll.a'
9319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320 postinstall_cmds='base_file=`basename \${file}`~
9321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9322 dldir=$destdir/`dirname \$dlpath`~
9323 test -d \$dldir || mkdir -p \$dldir~
9324 $install_prog $dir/$dlname \$dldir/$dlname~
9325 chmod a+x \$dldir/$dlname'
9326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9327 dlpath=$dir/\$dldll~
9328 $rm \$dlpath'
9329 shlibpath_overrides_runpath=yes
9331 case $host_os in
9332 cygwin*)
9333 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9337 mingw*)
9338 # MinGW DLLs use traditional 'lib' prefix
9339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9342 # It is most probably a Windows format PATH printed by
9343 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9344 # path with ; separators, and with drive letters. We can handle the
9345 # drive letters (cygwin fileutils understands them), so leave them,
9346 # especially as we might pass files found there to a mingw objdump,
9347 # which wouldn't understand a cygwinified path. Ahh.
9348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9349 else
9350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9353 pw32*)
9354 # pw32 DLLs use 'pw' prefix rather than 'lib'
9355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9357 esac
9361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9363 esac
9364 dynamic_linker='Win32 ld.exe'
9365 # FIXME: first we should search . and the directory the executable is in
9366 shlibpath_var=PATH
9369 darwin* | rhapsody*)
9370 dynamic_linker="$host_os dyld"
9371 version_type=darwin
9372 need_lib_prefix=no
9373 need_version=no
9374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9375 soname_spec='${libname}${release}${major}$shared_ext'
9376 shlibpath_overrides_runpath=yes
9377 shlibpath_var=DYLD_LIBRARY_PATH
9378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9384 dgux*)
9385 version_type=linux
9386 need_lib_prefix=no
9387 need_version=no
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9393 freebsd1*)
9394 dynamic_linker=no
9397 freebsd* | dragonfly*)
9398 # DragonFly does not have aout. When/if they implement a new
9399 # versioning mechanism, adjust this.
9400 if test -x /usr/bin/objformat; then
9401 objformat=`/usr/bin/objformat`
9402 else
9403 case $host_os in
9404 freebsd[123]*) objformat=aout ;;
9405 *) objformat=elf ;;
9406 esac
9408 # Handle Gentoo/FreeBSD as it was Linux
9409 case $host_vendor in
9410 gentoo)
9411 version_type=linux ;;
9413 version_type=freebsd-$objformat ;;
9414 esac
9416 case $version_type in
9417 freebsd-elf*)
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9419 need_version=no
9420 need_lib_prefix=no
9422 freebsd-*)
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9424 need_version=yes
9426 linux)
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 need_lib_prefix=no
9430 need_version=no
9432 esac
9433 shlibpath_var=LD_LIBRARY_PATH
9434 case $host_os in
9435 freebsd2*)
9436 shlibpath_overrides_runpath=yes
9438 freebsd3.[01]* | freebsdelf3.[01]*)
9439 shlibpath_overrides_runpath=yes
9440 hardcode_into_libs=yes
9442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9444 shlibpath_overrides_runpath=no
9445 hardcode_into_libs=yes
9447 *) # from 4.6 on, and DragonFly
9448 shlibpath_overrides_runpath=yes
9449 hardcode_into_libs=yes
9451 esac
9454 gnu*)
9455 version_type=linux
9456 need_lib_prefix=no
9457 need_version=no
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 shlibpath_var=LD_LIBRARY_PATH
9461 hardcode_into_libs=yes
9464 hpux9* | hpux10* | hpux11*)
9465 # Give a soname corresponding to the major version so that dld.sl refuses to
9466 # link against other versions.
9467 version_type=sunos
9468 need_lib_prefix=no
9469 need_version=no
9470 case $host_cpu in
9471 ia64*)
9472 shrext_cmds='.so'
9473 hardcode_into_libs=yes
9474 dynamic_linker="$host_os dld.so"
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 if test "X$HPUX_IA64_MODE" = X32; then
9480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9481 else
9482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486 hppa*64*)
9487 shrext_cmds='.sl'
9488 hardcode_into_libs=yes
9489 dynamic_linker="$host_os dld.sl"
9490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498 shrext_cmds='.sl'
9499 dynamic_linker="$host_os dld.sl"
9500 shlibpath_var=SHLIB_PATH
9501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9505 esac
9506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9507 postinstall_cmds='chmod 555 $lib'
9510 interix[3-9]*)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=no
9519 hardcode_into_libs=yes
9522 irix5* | irix6* | nonstopux*)
9523 case $host_os in
9524 nonstopux*) version_type=nonstopux ;;
9526 if test "$lt_cv_prog_gnu_ld" = yes; then
9527 version_type=linux
9528 else
9529 version_type=irix
9530 fi ;;
9531 esac
9532 need_lib_prefix=no
9533 need_version=no
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9536 case $host_os in
9537 irix5* | nonstopux*)
9538 libsuff= shlibsuff=
9541 case $LD in # libtool.m4 will add one of these switches to LD
9542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9543 libsuff= shlibsuff= libmagic=32-bit;;
9544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9545 libsuff=32 shlibsuff=N32 libmagic=N32;;
9546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9548 *) libsuff= shlibsuff= libmagic=never-match;;
9549 esac
9551 esac
9552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9553 shlibpath_overrides_runpath=no
9554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9556 hardcode_into_libs=yes
9559 # No shared lib support for Linux oldld, aout, or coff.
9560 linux*oldld* | linux*aout* | linux*coff*)
9561 dynamic_linker=no
9564 # This must be Linux ELF.
9565 linux* | k*bsd*-gnu)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 # This implies no fast_install, which is unacceptable.
9575 # Some rework will be needed to allow for fast_install
9576 # before this can be enabled.
9577 hardcode_into_libs=yes
9579 # Append ld.so.conf contents to the search path
9580 if test -f /etc/ld.so.conf; then
9581 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' ' '`
9582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9585 # We used to test for /lib/ld.so.1 and disable shared libraries on
9586 # powerpc, because MkLinux only supported shared libraries with the
9587 # GNU dynamic linker. Since this was broken with cross compilers,
9588 # most powerpc-linux boxes support dynamic linking these days and
9589 # people can always --disable-shared, the test was removed, and we
9590 # assume the GNU/Linux dynamic linker is in use.
9591 dynamic_linker='GNU/Linux ld.so'
9594 netbsd*)
9595 version_type=sunos
9596 need_lib_prefix=no
9597 need_version=no
9598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9601 dynamic_linker='NetBSD (a.out) ld.so'
9602 else
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 dynamic_linker='NetBSD ld.elf_so'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=yes
9609 hardcode_into_libs=yes
9612 newsos6)
9613 version_type=linux
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 shlibpath_overrides_runpath=yes
9619 nto-qnx*)
9620 version_type=linux
9621 need_lib_prefix=no
9622 need_version=no
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9629 openbsd*)
9630 version_type=sunos
9631 sys_lib_dlsearch_path_spec="/usr/lib"
9632 need_lib_prefix=no
9633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9634 case $host_os in
9635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9636 *) need_version=no ;;
9637 esac
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9642 case $host_os in
9643 openbsd2.[89] | openbsd2.[89].*)
9644 shlibpath_overrides_runpath=no
9647 shlibpath_overrides_runpath=yes
9649 esac
9650 else
9651 shlibpath_overrides_runpath=yes
9655 os2*)
9656 libname_spec='$name'
9657 shrext_cmds=".dll"
9658 need_lib_prefix=no
9659 library_names_spec='$libname${shared_ext} $libname.a'
9660 dynamic_linker='OS/2 ld.exe'
9661 shlibpath_var=LIBPATH
9664 osf3* | osf4* | osf5*)
9665 version_type=osf
9666 need_lib_prefix=no
9667 need_version=no
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9675 rdos*)
9676 dynamic_linker=no
9679 solaris*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 hardcode_into_libs=yes
9688 # ldd complains unless libraries are executable
9689 postinstall_cmds='chmod +x $lib'
9692 sunos4*)
9693 version_type=sunos
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=yes
9698 if test "$with_gnu_ld" = yes; then
9699 need_lib_prefix=no
9701 need_version=yes
9704 sysv4 | sysv4.3*)
9705 version_type=linux
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 case $host_vendor in
9710 sni)
9711 shlibpath_overrides_runpath=no
9712 need_lib_prefix=no
9713 export_dynamic_flag_spec='${wl}-Blargedynsym'
9714 runpath_var=LD_RUN_PATH
9716 siemens)
9717 need_lib_prefix=no
9719 motorola)
9720 need_lib_prefix=no
9721 need_version=no
9722 shlibpath_overrides_runpath=no
9723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9725 esac
9728 sysv4*MP*)
9729 if test -d /usr/nec ;then
9730 version_type=linux
9731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9732 soname_spec='$libname${shared_ext}.$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9738 version_type=freebsd-elf
9739 need_lib_prefix=no
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 hardcode_into_libs=yes
9745 if test "$with_gnu_ld" = yes; then
9746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9747 shlibpath_overrides_runpath=no
9748 else
9749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9750 shlibpath_overrides_runpath=yes
9751 case $host_os in
9752 sco3.2v5*)
9753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9755 esac
9757 sys_lib_dlsearch_path_spec='/usr/lib'
9760 uts4*)
9761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9768 dynamic_linker=no
9770 esac
9771 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9772 $as_echo "$dynamic_linker" >&6; }
9773 test "$dynamic_linker" = no && can_build_shared=no
9775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9777 else
9778 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9783 $as_echo_n "(cached) " >&6
9784 else
9785 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9791 if test "$GCC" = yes; then
9792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9795 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9797 hardcode_action=
9798 if test -n "$hardcode_libdir_flag_spec" || \
9799 test -n "$runpath_var" || \
9800 test "X$hardcode_automatic" = "Xyes" ; then
9802 # We can hardcode non-existant directories.
9803 if test "$hardcode_direct" != no &&
9804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9805 # have to relink, otherwise we might link with an installed library
9806 # when we should be linking with a yet-to-be-installed one
9807 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9808 test "$hardcode_minus_L" != no; then
9809 # Linking always hardcodes the temporary library directory.
9810 hardcode_action=relink
9811 else
9812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9813 hardcode_action=immediate
9815 else
9816 # We cannot hardcode anything, or else we can only hardcode existing
9817 # directories.
9818 hardcode_action=unsupported
9820 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9821 $as_echo "$hardcode_action" >&6; }
9823 if test "$hardcode_action" = relink; then
9824 # Fast installation is not supported
9825 enable_fast_install=no
9826 elif test "$shlibpath_overrides_runpath" = yes ||
9827 test "$enable_shared" = no; then
9828 # Fast installation is not necessary
9829 enable_fast_install=needless
9832 striplib=
9833 old_striplib=
9834 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9836 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9839 { $as_echo "$as_me:$LINENO: result: yes" >&5
9840 $as_echo "yes" >&6; }
9841 else
9842 # FIXME - insert some real tests, host_os isn't really good enough
9843 case $host_os in
9844 darwin*)
9845 if test -n "$STRIP" ; then
9846 striplib="$STRIP -x"
9847 old_striplib="$STRIP -S"
9848 { $as_echo "$as_me:$LINENO: result: yes" >&5
9849 $as_echo "yes" >&6; }
9850 else
9851 { $as_echo "$as_me:$LINENO: result: no" >&5
9852 $as_echo "no" >&6; }
9856 { $as_echo "$as_me:$LINENO: result: no" >&5
9857 $as_echo "no" >&6; }
9859 esac
9862 if test "x$enable_dlopen" != xyes; then
9863 enable_dlopen=unknown
9864 enable_dlopen_self=unknown
9865 enable_dlopen_self_static=unknown
9866 else
9867 lt_cv_dlopen=no
9868 lt_cv_dlopen_libs=
9870 case $host_os in
9871 beos*)
9872 lt_cv_dlopen="load_add_on"
9873 lt_cv_dlopen_libs=
9874 lt_cv_dlopen_self=yes
9877 mingw* | pw32*)
9878 lt_cv_dlopen="LoadLibrary"
9879 lt_cv_dlopen_libs=
9882 cygwin*)
9883 lt_cv_dlopen="dlopen"
9884 lt_cv_dlopen_libs=
9887 darwin*)
9888 # if libdl is installed we need to link against it
9889 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9892 $as_echo_n "(cached) " >&6
9893 else
9894 ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-ldl $LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char dlopen ();
9911 main ()
9913 return dlopen ();
9915 return 0;
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923 esac
9924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9925 $as_echo "$ac_try_echo") >&5
9926 (eval "$ac_link") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext && {
9936 test "$cross_compiling" = yes ||
9937 $as_test_x conftest$ac_exeext
9938 }; then
9939 ac_cv_lib_dl_dlopen=yes
9940 else
9941 $as_echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 ac_cv_lib_dl_dlopen=no
9947 rm -rf conftest.dSYM
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9953 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9954 if test $ac_cv_lib_dl_dlopen = yes; then
9955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9956 else
9958 lt_cv_dlopen="dyld"
9959 lt_cv_dlopen_libs=
9960 lt_cv_dlopen_self=yes
9967 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9968 $as_echo_n "checking for shl_load... " >&6; }
9969 if test "${ac_cv_func_shl_load+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9971 else
9972 cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9980 #define shl_load innocuous_shl_load
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char shl_load (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9987 #ifdef __STDC__
9988 # include <limits.h>
9989 #else
9990 # include <assert.h>
9991 #endif
9993 #undef shl_load
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char shl_load ();
10002 /* The GNU C library defines this for functions which it implements
10003 to always fail with ENOSYS. Some functions are actually named
10004 something starting with __ and the normal name is an alias. */
10005 #if defined __stub_shl_load || defined __stub___shl_load
10006 choke me
10007 #endif
10010 main ()
10012 return shl_load ();
10014 return 0;
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10024 $as_echo "$ac_try_echo") >&5
10025 (eval "$ac_link") 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest$ac_exeext && {
10035 test "$cross_compiling" = yes ||
10036 $as_test_x conftest$ac_exeext
10037 }; then
10038 ac_cv_func_shl_load=yes
10039 else
10040 $as_echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_cv_func_shl_load=no
10046 rm -rf conftest.dSYM
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10050 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10051 $as_echo "$ac_cv_func_shl_load" >&6; }
10052 if test $ac_cv_func_shl_load = yes; then
10053 lt_cv_dlopen="shl_load"
10054 else
10055 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10056 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10058 $as_echo_n "(cached) " >&6
10059 else
10060 ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-ldld $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char shl_load ();
10077 main ()
10079 return shl_load ();
10081 return 0;
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092 (eval "$ac_link") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext && {
10102 test "$cross_compiling" = yes ||
10103 $as_test_x conftest$ac_exeext
10104 }; then
10105 ac_cv_lib_dld_shl_load=yes
10106 else
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 ac_cv_lib_dld_shl_load=no
10113 rm -rf conftest.dSYM
10114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10119 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10120 if test $ac_cv_lib_dld_shl_load = yes; then
10121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10122 else
10123 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10124 $as_echo_n "checking for dlopen... " >&6; }
10125 if test "${ac_cv_func_dlopen+set}" = set; then
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10136 #define dlopen innocuous_dlopen
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char dlopen (); below.
10140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10141 <limits.h> exists even on freestanding compilers. */
10143 #ifdef __STDC__
10144 # include <limits.h>
10145 #else
10146 # include <assert.h>
10147 #endif
10149 #undef dlopen
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dlopen ();
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined __stub_dlopen || defined __stub___dlopen
10162 choke me
10163 #endif
10166 main ()
10168 return dlopen ();
10170 return 0;
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178 esac
10179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10180 $as_echo "$ac_try_echo") >&5
10181 (eval "$ac_link") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest$ac_exeext && {
10191 test "$cross_compiling" = yes ||
10192 $as_test_x conftest$ac_exeext
10193 }; then
10194 ac_cv_func_dlopen=yes
10195 else
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_func_dlopen=no
10202 rm -rf conftest.dSYM
10203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10204 conftest$ac_exeext conftest.$ac_ext
10206 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10207 $as_echo "$ac_cv_func_dlopen" >&6; }
10208 if test $ac_cv_func_dlopen = yes; then
10209 lt_cv_dlopen="dlopen"
10210 else
10211 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-ldl $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char dlopen ();
10233 main ()
10235 return dlopen ();
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247 $as_echo "$ac_try_echo") >&5
10248 (eval "$ac_link") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext && {
10258 test "$cross_compiling" = yes ||
10259 $as_test_x conftest$ac_exeext
10260 }; then
10261 ac_cv_lib_dl_dlopen=yes
10262 else
10263 $as_echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_cv_lib_dl_dlopen=no
10269 rm -rf conftest.dSYM
10270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10276 if test $ac_cv_lib_dl_dlopen = yes; then
10277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278 else
10279 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10280 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10281 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-lsvld $LIBS"
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10301 main ()
10303 return dlopen ();
10305 return 0;
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315 $as_echo "$ac_try_echo") >&5
10316 (eval "$ac_link") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest$ac_exeext && {
10326 test "$cross_compiling" = yes ||
10327 $as_test_x conftest$ac_exeext
10328 }; then
10329 ac_cv_lib_svld_dlopen=yes
10330 else
10331 $as_echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_svld_dlopen=no
10337 rm -rf conftest.dSYM
10338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10344 if test $ac_cv_lib_svld_dlopen = yes; then
10345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10346 else
10347 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10351 else
10352 ac_check_lib_save_LIBS=$LIBS
10353 LIBS="-ldld $LIBS"
10354 cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h. */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char dld_link ();
10369 main ()
10371 return dld_link ();
10373 return 0;
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381 esac
10382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10383 $as_echo "$ac_try_echo") >&5
10384 (eval "$ac_link") 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
10393 } && test -s conftest$ac_exeext && {
10394 test "$cross_compiling" = yes ||
10395 $as_test_x conftest$ac_exeext
10396 }; then
10397 ac_cv_lib_dld_dld_link=yes
10398 else
10399 $as_echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 ac_cv_lib_dld_dld_link=no
10405 rm -rf conftest.dSYM
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10411 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10412 if test $ac_cv_lib_dld_dld_link = yes; then
10413 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10432 esac
10434 if test "x$lt_cv_dlopen" != xno; then
10435 enable_dlopen=yes
10436 else
10437 enable_dlopen=no
10440 case $lt_cv_dlopen in
10441 dlopen)
10442 save_CPPFLAGS="$CPPFLAGS"
10443 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10445 save_LDFLAGS="$LDFLAGS"
10446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10448 save_LIBS="$LIBS"
10449 LIBS="$lt_cv_dlopen_libs $LIBS"
10451 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10452 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10453 if test "${lt_cv_dlopen_self+set}" = set; then
10454 $as_echo_n "(cached) " >&6
10455 else
10456 if test "$cross_compiling" = yes; then :
10457 lt_cv_dlopen_self=cross
10458 else
10459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10460 lt_status=$lt_dlunknown
10461 cat > conftest.$ac_ext <<EOF
10462 #line 10462 "configure"
10463 #include "confdefs.h"
10465 #if HAVE_DLFCN_H
10466 #include <dlfcn.h>
10467 #endif
10469 #include <stdio.h>
10471 #ifdef RTLD_GLOBAL
10472 # define LT_DLGLOBAL RTLD_GLOBAL
10473 #else
10474 # ifdef DL_GLOBAL
10475 # define LT_DLGLOBAL DL_GLOBAL
10476 # else
10477 # define LT_DLGLOBAL 0
10478 # endif
10479 #endif
10481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10482 find out it does not work in some platform. */
10483 #ifndef LT_DLLAZY_OR_NOW
10484 # ifdef RTLD_LAZY
10485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10486 # else
10487 # ifdef DL_LAZY
10488 # define LT_DLLAZY_OR_NOW DL_LAZY
10489 # else
10490 # ifdef RTLD_NOW
10491 # define LT_DLLAZY_OR_NOW RTLD_NOW
10492 # else
10493 # ifdef DL_NOW
10494 # define LT_DLLAZY_OR_NOW DL_NOW
10495 # else
10496 # define LT_DLLAZY_OR_NOW 0
10497 # endif
10498 # endif
10499 # endif
10500 # endif
10501 #endif
10503 #ifdef __cplusplus
10504 extern "C" void exit (int);
10505 #endif
10507 void fnord() { int i=42;}
10508 int main ()
10510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10511 int status = $lt_dlunknown;
10513 if (self)
10515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10517 /* dlclose (self); */
10519 else
10520 puts (dlerror ());
10522 exit (status);
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526 (eval $ac_link) 2>&5
10527 ac_status=$?
10528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10530 (./conftest; exit; ) >&5 2>/dev/null
10531 lt_status=$?
10532 case x$lt_status in
10533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10535 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10536 esac
10537 else :
10538 # compilation failed
10539 lt_cv_dlopen_self=no
10542 rm -fr conftest*
10546 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10547 $as_echo "$lt_cv_dlopen_self" >&6; }
10549 if test "x$lt_cv_dlopen_self" = xyes; then
10550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10551 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10552 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10553 if test "${lt_cv_dlopen_self_static+set}" = set; then
10554 $as_echo_n "(cached) " >&6
10555 else
10556 if test "$cross_compiling" = yes; then :
10557 lt_cv_dlopen_self_static=cross
10558 else
10559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10560 lt_status=$lt_dlunknown
10561 cat > conftest.$ac_ext <<EOF
10562 #line 10562 "configure"
10563 #include "confdefs.h"
10565 #if HAVE_DLFCN_H
10566 #include <dlfcn.h>
10567 #endif
10569 #include <stdio.h>
10571 #ifdef RTLD_GLOBAL
10572 # define LT_DLGLOBAL RTLD_GLOBAL
10573 #else
10574 # ifdef DL_GLOBAL
10575 # define LT_DLGLOBAL DL_GLOBAL
10576 # else
10577 # define LT_DLGLOBAL 0
10578 # endif
10579 #endif
10581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10582 find out it does not work in some platform. */
10583 #ifndef LT_DLLAZY_OR_NOW
10584 # ifdef RTLD_LAZY
10585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10586 # else
10587 # ifdef DL_LAZY
10588 # define LT_DLLAZY_OR_NOW DL_LAZY
10589 # else
10590 # ifdef RTLD_NOW
10591 # define LT_DLLAZY_OR_NOW RTLD_NOW
10592 # else
10593 # ifdef DL_NOW
10594 # define LT_DLLAZY_OR_NOW DL_NOW
10595 # else
10596 # define LT_DLLAZY_OR_NOW 0
10597 # endif
10598 # endif
10599 # endif
10600 # endif
10601 #endif
10603 #ifdef __cplusplus
10604 extern "C" void exit (int);
10605 #endif
10607 void fnord() { int i=42;}
10608 int main ()
10610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10611 int status = $lt_dlunknown;
10613 if (self)
10615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10617 /* dlclose (self); */
10619 else
10620 puts (dlerror ());
10622 exit (status);
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>&5
10627 ac_status=$?
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10630 (./conftest; exit; ) >&5 2>/dev/null
10631 lt_status=$?
10632 case x$lt_status in
10633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10636 esac
10637 else :
10638 # compilation failed
10639 lt_cv_dlopen_self_static=no
10642 rm -fr conftest*
10646 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10647 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10650 CPPFLAGS="$save_CPPFLAGS"
10651 LDFLAGS="$save_LDFLAGS"
10652 LIBS="$save_LIBS"
10654 esac
10656 case $lt_cv_dlopen_self in
10657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10658 *) enable_dlopen_self=unknown ;;
10659 esac
10661 case $lt_cv_dlopen_self_static in
10662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10663 *) enable_dlopen_self_static=unknown ;;
10664 esac
10668 # Report which library types will actually be built
10669 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10670 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10671 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10672 $as_echo "$can_build_shared" >&6; }
10674 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10675 $as_echo_n "checking whether to build shared libraries... " >&6; }
10676 test "$can_build_shared" = "no" && enable_shared=no
10678 # On AIX, shared libraries and static libraries use the same namespace, and
10679 # are all built from PIC.
10680 case $host_os in
10681 aix3*)
10682 test "$enable_shared" = yes && enable_static=no
10683 if test -n "$RANLIB"; then
10684 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10685 postinstall_cmds='$RANLIB $lib'
10689 aix[4-9]*)
10690 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10691 test "$enable_shared" = yes && enable_static=no
10694 esac
10695 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10696 $as_echo "$enable_shared" >&6; }
10698 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10699 $as_echo_n "checking whether to build static libraries... " >&6; }
10700 # Make sure either enable_shared or enable_static is yes.
10701 test "$enable_shared" = yes || enable_static=yes
10702 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10703 $as_echo "$enable_static" >&6; }
10705 # The else clause should only fire when bootstrapping the
10706 # libtool distribution, otherwise you forgot to ship ltmain.sh
10707 # with your package, and you will get complaints that there are
10708 # no rules to generate ltmain.sh.
10709 if test -f "$ltmain"; then
10710 # See if we are running on zsh, and set the options which allow our commands through
10711 # without removal of \ escapes.
10712 if test -n "${ZSH_VERSION+set}" ; then
10713 setopt NO_GLOB_SUBST
10715 # Now quote all the things that may contain metacharacters while being
10716 # careful not to overquote the AC_SUBSTed values. We take copies of the
10717 # variables and quote the copies for generation of the libtool script.
10718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10719 SED SHELL STRIP \
10720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10722 deplibs_check_method reload_flag reload_cmds need_locks \
10723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10724 lt_cv_sys_global_symbol_to_c_name_address \
10725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10726 old_postinstall_cmds old_postuninstall_cmds \
10727 compiler \
10728 CC \
10729 LD \
10730 lt_prog_compiler_wl \
10731 lt_prog_compiler_pic \
10732 lt_prog_compiler_static \
10733 lt_prog_compiler_no_builtin_flag \
10734 export_dynamic_flag_spec \
10735 thread_safe_flag_spec \
10736 whole_archive_flag_spec \
10737 enable_shared_with_static_runtimes \
10738 old_archive_cmds \
10739 old_archive_from_new_cmds \
10740 predep_objects \
10741 postdep_objects \
10742 predeps \
10743 postdeps \
10744 compiler_lib_search_path \
10745 compiler_lib_search_dirs \
10746 archive_cmds \
10747 archive_expsym_cmds \
10748 postinstall_cmds \
10749 postuninstall_cmds \
10750 old_archive_from_expsyms_cmds \
10751 allow_undefined_flag \
10752 no_undefined_flag \
10753 export_symbols_cmds \
10754 hardcode_libdir_flag_spec \
10755 hardcode_libdir_flag_spec_ld \
10756 hardcode_libdir_separator \
10757 hardcode_automatic \
10758 module_cmds \
10759 module_expsym_cmds \
10760 lt_cv_prog_compiler_c_o \
10761 fix_srcfile_path \
10762 exclude_expsyms \
10763 include_expsyms; do
10765 case $var in
10766 old_archive_cmds | \
10767 old_archive_from_new_cmds | \
10768 archive_cmds | \
10769 archive_expsym_cmds | \
10770 module_cmds | \
10771 module_expsym_cmds | \
10772 old_archive_from_expsyms_cmds | \
10773 export_symbols_cmds | \
10774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10775 postinstall_cmds | postuninstall_cmds | \
10776 old_postinstall_cmds | old_postuninstall_cmds | \
10777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10778 # Double-quote double-evaled strings.
10779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10784 esac
10785 done
10787 case $lt_echo in
10788 *'\$0 --fallback-echo"')
10789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10791 esac
10793 cfgfile="${ofile}T"
10794 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10795 $rm -f "$cfgfile"
10796 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10797 $as_echo "$as_me: creating $ofile" >&6;}
10799 cat <<__EOF__ >> "$cfgfile"
10800 #! $SHELL
10802 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10803 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10804 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10806 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10807 # Free Software Foundation, Inc.
10809 # This file is part of GNU Libtool:
10810 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10812 # This program is free software; you can redistribute it and/or modify
10813 # it under the terms of the GNU General Public License as published by
10814 # the Free Software Foundation; either version 2 of the License, or
10815 # (at your option) any later version.
10817 # This program is distributed in the hope that it will be useful, but
10818 # WITHOUT ANY WARRANTY; without even the implied warranty of
10819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10820 # General Public License for more details.
10822 # You should have received a copy of the GNU General Public License
10823 # along with this program; if not, write to the Free Software
10824 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10826 # As a special exception to the GNU General Public License, if you
10827 # distribute this file as part of a program that contains a
10828 # configuration script generated by Autoconf, you may include it under
10829 # the same distribution terms that you use for the rest of that program.
10831 # A sed program that does not truncate output.
10832 SED=$lt_SED
10834 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10835 Xsed="$SED -e 1s/^X//"
10837 # The HP-UX ksh and POSIX shell print the target directory to stdout
10838 # if CDPATH is set.
10839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10841 # The names of the tagged configurations supported by this script.
10842 available_tags=
10844 # ### BEGIN LIBTOOL CONFIG
10846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10848 # Shell to use when invoking shell scripts.
10849 SHELL=$lt_SHELL
10851 # Whether or not to build shared libraries.
10852 build_libtool_libs=$enable_shared
10854 # Whether or not to build static libraries.
10855 build_old_libs=$enable_static
10857 # Whether or not to add -lc for building shared libraries.
10858 build_libtool_need_lc=$archive_cmds_need_lc
10860 # Whether or not to disallow shared libs when runtime libs are static
10861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10863 # Whether or not to optimize for fast installation.
10864 fast_install=$enable_fast_install
10866 # The host system.
10867 host_alias=$host_alias
10868 host=$host
10869 host_os=$host_os
10871 # The build system.
10872 build_alias=$build_alias
10873 build=$build
10874 build_os=$build_os
10876 # An echo program that does not interpret backslashes.
10877 echo=$lt_echo
10879 # The archiver.
10880 AR=$lt_AR
10881 AR_FLAGS=$lt_AR_FLAGS
10883 # A C compiler.
10884 LTCC=$lt_LTCC
10886 # LTCC compiler flags.
10887 LTCFLAGS=$lt_LTCFLAGS
10889 # A language-specific compiler.
10890 CC=$lt_compiler
10892 # Is the compiler the GNU C compiler?
10893 with_gcc=$GCC
10895 # An ERE matcher.
10896 EGREP=$lt_EGREP
10898 # The linker used to build libraries.
10899 LD=$lt_LD
10901 # Whether we need hard or soft links.
10902 LN_S=$lt_LN_S
10904 # A BSD-compatible nm program.
10905 NM=$lt_NM
10907 # A symbol stripping program
10908 STRIP=$lt_STRIP
10910 # Used to examine libraries when file_magic_cmd begins "file"
10911 MAGIC_CMD=$MAGIC_CMD
10913 # Used on cygwin: DLL creation program.
10914 DLLTOOL="$DLLTOOL"
10916 # Used on cygwin: object dumper.
10917 OBJDUMP="$OBJDUMP"
10919 # Used on cygwin: assembler.
10920 AS="$AS"
10922 # The name of the directory that contains temporary libtool files.
10923 objdir=$objdir
10925 # How to create reloadable object files.
10926 reload_flag=$lt_reload_flag
10927 reload_cmds=$lt_reload_cmds
10929 # How to pass a linker flag through the compiler.
10930 wl=$lt_lt_prog_compiler_wl
10932 # Object file suffix (normally "o").
10933 objext="$ac_objext"
10935 # Old archive suffix (normally "a").
10936 libext="$libext"
10938 # Shared library suffix (normally ".so").
10939 shrext_cmds='$shrext_cmds'
10941 # Executable file suffix (normally "").
10942 exeext="$exeext"
10944 # Additional compiler flags for building library objects.
10945 pic_flag=$lt_lt_prog_compiler_pic
10946 pic_mode=$pic_mode
10948 # What is the maximum length of a command?
10949 max_cmd_len=$lt_cv_sys_max_cmd_len
10951 # Does compiler simultaneously support -c and -o options?
10952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10954 # Must we lock files when doing compilation?
10955 need_locks=$lt_need_locks
10957 # Do we need the lib prefix for modules?
10958 need_lib_prefix=$need_lib_prefix
10960 # Do we need a version for libraries?
10961 need_version=$need_version
10963 # Whether dlopen is supported.
10964 dlopen_support=$enable_dlopen
10966 # Whether dlopen of programs is supported.
10967 dlopen_self=$enable_dlopen_self
10969 # Whether dlopen of statically linked programs is supported.
10970 dlopen_self_static=$enable_dlopen_self_static
10972 # Compiler flag to prevent dynamic linking.
10973 link_static_flag=$lt_lt_prog_compiler_static
10975 # Compiler flag to turn off builtin functions.
10976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10978 # Compiler flag to allow reflexive dlopens.
10979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10981 # Compiler flag to generate shared objects directly from archives.
10982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10984 # Compiler flag to generate thread-safe objects.
10985 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10987 # Library versioning type.
10988 version_type=$version_type
10990 # Format of library name prefix.
10991 libname_spec=$lt_libname_spec
10993 # List of archive names. First name is the real one, the rest are links.
10994 # The last name is the one that the linker finds with -lNAME.
10995 library_names_spec=$lt_library_names_spec
10997 # The coded name of the library, if different from the real name.
10998 soname_spec=$lt_soname_spec
11000 # Commands used to build and install an old-style archive.
11001 RANLIB=$lt_RANLIB
11002 old_archive_cmds=$lt_old_archive_cmds
11003 old_postinstall_cmds=$lt_old_postinstall_cmds
11004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11006 # Create an old-style archive from a shared archive.
11007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11009 # Create a temporary old-style archive to link instead of a shared archive.
11010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11012 # Commands used to build and install a shared archive.
11013 archive_cmds=$lt_archive_cmds
11014 archive_expsym_cmds=$lt_archive_expsym_cmds
11015 postinstall_cmds=$lt_postinstall_cmds
11016 postuninstall_cmds=$lt_postuninstall_cmds
11018 # Commands used to build a loadable module (assumed same as above if empty)
11019 module_cmds=$lt_module_cmds
11020 module_expsym_cmds=$lt_module_expsym_cmds
11022 # Commands to strip libraries.
11023 old_striplib=$lt_old_striplib
11024 striplib=$lt_striplib
11026 # Dependencies to place before the objects being linked to create a
11027 # shared library.
11028 predep_objects=$lt_predep_objects
11030 # Dependencies to place after the objects being linked to create a
11031 # shared library.
11032 postdep_objects=$lt_postdep_objects
11034 # Dependencies to place before the objects being linked to create a
11035 # shared library.
11036 predeps=$lt_predeps
11038 # Dependencies to place after the objects being linked to create a
11039 # shared library.
11040 postdeps=$lt_postdeps
11042 # The directories searched by this compiler when creating a shared
11043 # library
11044 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11046 # The library search path used internally by the compiler when linking
11047 # a shared library.
11048 compiler_lib_search_path=$lt_compiler_lib_search_path
11050 # Method to check whether dependent libraries are shared objects.
11051 deplibs_check_method=$lt_deplibs_check_method
11053 # Command to use when deplibs_check_method == file_magic.
11054 file_magic_cmd=$lt_file_magic_cmd
11056 # Flag that allows shared libraries with undefined symbols to be built.
11057 allow_undefined_flag=$lt_allow_undefined_flag
11059 # Flag that forces no undefined symbols.
11060 no_undefined_flag=$lt_no_undefined_flag
11062 # Commands used to finish a libtool library installation in a directory.
11063 finish_cmds=$lt_finish_cmds
11065 # Same as above, but a single script fragment to be evaled but not shown.
11066 finish_eval=$lt_finish_eval
11068 # Take the output of nm and produce a listing of raw symbols and C names.
11069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11071 # Transform the output of nm in a proper C declaration
11072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11074 # Transform the output of nm in a C name address pair
11075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11077 # This is the shared library runtime path variable.
11078 runpath_var=$runpath_var
11080 # This is the shared library path variable.
11081 shlibpath_var=$shlibpath_var
11083 # Is shlibpath searched before the hard-coded library search path?
11084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11086 # How to hardcode a shared library path into an executable.
11087 hardcode_action=$hardcode_action
11089 # Whether we should hardcode library paths into libraries.
11090 hardcode_into_libs=$hardcode_into_libs
11092 # Flag to hardcode \$libdir into a binary during linking.
11093 # This must work even if \$libdir does not exist.
11094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11096 # If ld is used when linking, flag to hardcode \$libdir into
11097 # a binary during linking. This must work even if \$libdir does
11098 # not exist.
11099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11101 # Whether we need a single -rpath flag with a separated argument.
11102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11105 # resulting binary.
11106 hardcode_direct=$hardcode_direct
11108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11109 # resulting binary.
11110 hardcode_minus_L=$hardcode_minus_L
11112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11113 # the resulting binary.
11114 hardcode_shlibpath_var=$hardcode_shlibpath_var
11116 # Set to yes if building a shared library automatically hardcodes DIR into the library
11117 # and all subsequent libraries and executables linked against it.
11118 hardcode_automatic=$hardcode_automatic
11120 # Variables whose values should be saved in libtool wrapper scripts and
11121 # restored at relink time.
11122 variables_saved_for_relink="$variables_saved_for_relink"
11124 # Whether libtool must link a program against all its dependency libraries.
11125 link_all_deplibs=$link_all_deplibs
11127 # Compile-time system search path for libraries
11128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11130 # Run-time system search path for libraries
11131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11133 # Fix the shell variable \$srcfile for the compiler.
11134 fix_srcfile_path=$lt_fix_srcfile_path
11136 # Set to yes if exported symbols are required.
11137 always_export_symbols=$always_export_symbols
11139 # The commands to list exported symbols.
11140 export_symbols_cmds=$lt_export_symbols_cmds
11142 # The commands to extract the exported symbol list from a shared archive.
11143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11145 # Symbols that should not be listed in the preloaded symbols.
11146 exclude_expsyms=$lt_exclude_expsyms
11148 # Symbols that must always be exported.
11149 include_expsyms=$lt_include_expsyms
11151 # ### END LIBTOOL CONFIG
11153 __EOF__
11156 case $host_os in
11157 aix3*)
11158 cat <<\EOF >> "$cfgfile"
11160 # AIX sometimes has problems with the GCC collect2 program. For some
11161 # reason, if we set the COLLECT_NAMES environment variable, the problems
11162 # vanish in a puff of smoke.
11163 if test "X${COLLECT_NAMES+set}" != Xset; then
11164 COLLECT_NAMES=
11165 export COLLECT_NAMES
11169 esac
11171 # We use sed instead of cat because bash on DJGPP gets confused if
11172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11173 # text mode, it properly converts lines to CR/LF. This bash problem
11174 # is reportedly fixed, but why not run on old versions too?
11175 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11177 mv -f "$cfgfile" "$ofile" || \
11178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11179 chmod +x "$ofile"
11181 else
11182 # If there is no Makefile yet, we rely on a make rule to execute
11183 # `config.status --recheck' to rerun these tests and create the
11184 # libtool script then.
11185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11186 if test -f "$ltmain_in"; then
11187 test -f Makefile && make "$ltmain"
11192 ac_ext=c
11193 ac_cpp='$CPP $CPPFLAGS'
11194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198 CC="$lt_save_CC"
11201 # Check whether --with-tags was given.
11202 if test "${with_tags+set}" = set; then
11203 withval=$with_tags; tagnames="$withval"
11207 if test -f "$ltmain" && test -n "$tagnames"; then
11208 if test ! -f "${ofile}"; then
11209 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11210 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11213 if test -z "$LTCC"; then
11214 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11215 if test -z "$LTCC"; then
11216 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11217 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11218 else
11219 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11220 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11223 if test -z "$LTCFLAGS"; then
11224 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11227 # Extract list of available tagged configurations in $ofile.
11228 # Note that this assumes the entire list is on one line.
11229 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11232 for tagname in $tagnames; do
11233 IFS="$lt_save_ifs"
11234 # Check whether tagname contains only valid characters
11235 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11236 "") ;;
11237 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11238 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11239 { (exit 1); exit 1; }; }
11241 esac
11243 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11244 then
11245 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11246 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11247 { (exit 1); exit 1; }; }
11250 # Update the list of available tags.
11251 if test -n "$tagname"; then
11252 echo appending configuration tag \"$tagname\" to $ofile
11254 case $tagname in
11255 CXX)
11256 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11257 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11258 (test "X$CXX" != "Xg++"))) ; then
11259 ac_ext=cpp
11260 ac_cpp='$CXXCPP $CPPFLAGS'
11261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11268 archive_cmds_need_lc_CXX=no
11269 allow_undefined_flag_CXX=
11270 always_export_symbols_CXX=no
11271 archive_expsym_cmds_CXX=
11272 export_dynamic_flag_spec_CXX=
11273 hardcode_direct_CXX=no
11274 hardcode_libdir_flag_spec_CXX=
11275 hardcode_libdir_flag_spec_ld_CXX=
11276 hardcode_libdir_separator_CXX=
11277 hardcode_minus_L_CXX=no
11278 hardcode_shlibpath_var_CXX=unsupported
11279 hardcode_automatic_CXX=no
11280 module_cmds_CXX=
11281 module_expsym_cmds_CXX=
11282 link_all_deplibs_CXX=unknown
11283 old_archive_cmds_CXX=$old_archive_cmds
11284 no_undefined_flag_CXX=
11285 whole_archive_flag_spec_CXX=
11286 enable_shared_with_static_runtimes_CXX=no
11288 # Dependencies to place before and after the object being linked:
11289 predep_objects_CXX=
11290 postdep_objects_CXX=
11291 predeps_CXX=
11292 postdeps_CXX=
11293 compiler_lib_search_path_CXX=
11294 compiler_lib_search_dirs_CXX=
11296 # Source file extension for C++ test sources.
11297 ac_ext=cpp
11299 # Object file extension for compiled C++ test sources.
11300 objext=o
11301 objext_CXX=$objext
11303 # Code to be used in simple compile tests
11304 lt_simple_compile_test_code="int some_variable = 0;"
11306 # Code to be used in simple link tests
11307 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11309 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11311 # If no C compiler was specified, use CC.
11312 LTCC=${LTCC-"$CC"}
11314 # If no C compiler flags were specified, use CFLAGS.
11315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11317 # Allow CC to be a program name with arguments.
11318 compiler=$CC
11321 # save warnings/boilerplate of simple test code
11322 ac_outfile=conftest.$ac_objext
11323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11325 _lt_compiler_boilerplate=`cat conftest.err`
11326 $rm conftest*
11328 ac_outfile=conftest.$ac_objext
11329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11331 _lt_linker_boilerplate=`cat conftest.err`
11332 $rm -r conftest*
11335 # Allow CC to be a program name with arguments.
11336 lt_save_CC=$CC
11337 lt_save_LD=$LD
11338 lt_save_GCC=$GCC
11339 GCC=$GXX
11340 lt_save_with_gnu_ld=$with_gnu_ld
11341 lt_save_path_LD=$lt_cv_path_LD
11342 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11343 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11344 else
11345 $as_unset lt_cv_prog_gnu_ld
11347 if test -n "${lt_cv_path_LDCXX+set}"; then
11348 lt_cv_path_LD=$lt_cv_path_LDCXX
11349 else
11350 $as_unset lt_cv_path_LD
11352 test -z "${LDCXX+set}" || LD=$LDCXX
11353 CC=${CXX-"c++"}
11354 compiler=$CC
11355 compiler_CXX=$CC
11356 for cc_temp in $compiler""; do
11357 case $cc_temp in
11358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11360 \-*) ;;
11361 *) break;;
11362 esac
11363 done
11364 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11367 # We don't want -fno-exception wen compiling C++ code, so set the
11368 # no_builtin_flag separately
11369 if test "$GXX" = yes; then
11370 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11371 else
11372 lt_prog_compiler_no_builtin_flag_CXX=
11375 if test "$GXX" = yes; then
11376 # Set up default GNU C++ configuration
11379 # Check whether --with-gnu-ld was given.
11380 if test "${with_gnu_ld+set}" = set; then
11381 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11382 else
11383 with_gnu_ld=no
11386 ac_prog=ld
11387 if test "$GCC" = yes; then
11388 # Check if gcc -print-prog-name=ld gives a path.
11389 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11390 $as_echo_n "checking for ld used by $CC... " >&6; }
11391 case $host in
11392 *-*-mingw*)
11393 # gcc leaves a trailing carriage return which upsets mingw
11394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11397 esac
11398 case $ac_prog in
11399 # Accept absolute paths.
11400 [\\/]* | ?:[\\/]*)
11401 re_direlt='/[^/][^/]*/\.\./'
11402 # Canonicalize the pathname of ld
11403 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11405 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11406 done
11407 test -z "$LD" && LD="$ac_prog"
11410 # If it fails, then pretend we aren't using GCC.
11411 ac_prog=ld
11414 # If it is relative, then search for the first ld in PATH.
11415 with_gnu_ld=unknown
11417 esac
11418 elif test "$with_gnu_ld" = yes; then
11419 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11420 $as_echo_n "checking for GNU ld... " >&6; }
11421 else
11422 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11423 $as_echo_n "checking for non-GNU ld... " >&6; }
11425 if test "${lt_cv_path_LD+set}" = set; then
11426 $as_echo_n "(cached) " >&6
11427 else
11428 if test -z "$LD"; then
11429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11430 for ac_dir in $PATH; do
11431 IFS="$lt_save_ifs"
11432 test -z "$ac_dir" && ac_dir=.
11433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11434 lt_cv_path_LD="$ac_dir/$ac_prog"
11435 # Check to see if the program is GNU ld. I'd rather use --version,
11436 # but apparently some variants of GNU ld only accept -v.
11437 # Break only if it was the GNU/non-GNU ld that we prefer.
11438 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11439 *GNU* | *'with BFD'*)
11440 test "$with_gnu_ld" != no && break
11443 test "$with_gnu_ld" != yes && break
11445 esac
11447 done
11448 IFS="$lt_save_ifs"
11449 else
11450 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11454 LD="$lt_cv_path_LD"
11455 if test -n "$LD"; then
11456 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11457 $as_echo "$LD" >&6; }
11458 else
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11462 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11463 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11464 { (exit 1); exit 1; }; }
11465 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11467 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11468 $as_echo_n "(cached) " >&6
11469 else
11470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11471 case `$LD -v 2>&1 </dev/null` in
11472 *GNU* | *'with BFD'*)
11473 lt_cv_prog_gnu_ld=yes
11476 lt_cv_prog_gnu_ld=no
11478 esac
11480 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11482 with_gnu_ld=$lt_cv_prog_gnu_ld
11486 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11487 # archiving commands below assume that GNU ld is being used.
11488 if test "$with_gnu_ld" = yes; then
11489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490 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'
11492 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11495 # If archive_cmds runs LD, not CC, wlarc should be empty
11496 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11497 # investigate it a little bit more. (MM)
11498 wlarc='${wl}'
11500 # ancient GNU ld didn't support --whole-archive et. al.
11501 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11502 grep 'no-whole-archive' > /dev/null; then
11503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11504 else
11505 whole_archive_flag_spec_CXX=
11507 else
11508 with_gnu_ld=no
11509 wlarc=
11511 # A generic and very simple default shared library creation
11512 # command for GNU C++ for the case where it uses the native
11513 # linker, instead of GNU ld. If possible, this setting should
11514 # overridden to take advantage of the native linker features on
11515 # the platform it is being used on.
11516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11524 else
11525 GXX=no
11526 with_gnu_ld=no
11527 wlarc=
11530 # PORTME: fill in a description of your system's C++ link characteristics
11531 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11533 ld_shlibs_CXX=yes
11534 case $host_os in
11535 aix3*)
11536 # FIXME: insert proper C++ library support
11537 ld_shlibs_CXX=no
11539 aix[4-9]*)
11540 if test "$host_cpu" = ia64; then
11541 # On IA64, the linker does run time linking by default, so we don't
11542 # have to do anything special.
11543 aix_use_runtimelinking=no
11544 exp_sym_flag='-Bexport'
11545 no_entry_flag=""
11546 else
11547 aix_use_runtimelinking=no
11549 # Test if we are trying to use run time linking or normal
11550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11551 # need to do runtime linking.
11552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11553 for ld_flag in $LDFLAGS; do
11554 case $ld_flag in
11555 *-brtl*)
11556 aix_use_runtimelinking=yes
11557 break
11559 esac
11560 done
11562 esac
11564 exp_sym_flag='-bexport'
11565 no_entry_flag='-bnoentry'
11568 # When large executables or shared objects are built, AIX ld can
11569 # have problems creating the table of contents. If linking a library
11570 # or program results in "error TOC overflow" add -mminimal-toc to
11571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11574 archive_cmds_CXX=''
11575 hardcode_direct_CXX=yes
11576 hardcode_libdir_separator_CXX=':'
11577 link_all_deplibs_CXX=yes
11579 if test "$GXX" = yes; then
11580 case $host_os in aix4.[012]|aix4.[012].*)
11581 # We only want to do this on AIX 4.2 and lower, the check
11582 # below for broken collect2 doesn't work under 4.3+
11583 collect2name=`${CC} -print-prog-name=collect2`
11584 if test -f "$collect2name" && \
11585 strings "$collect2name" | grep resolve_lib_name >/dev/null
11586 then
11587 # We have reworked collect2
11589 else
11590 # We have old collect2
11591 hardcode_direct_CXX=unsupported
11592 # It fails to find uninstalled libraries when the uninstalled
11593 # path is not listed in the libpath. Setting hardcode_minus_L
11594 # to unsupported forces relinking
11595 hardcode_minus_L_CXX=yes
11596 hardcode_libdir_flag_spec_CXX='-L$libdir'
11597 hardcode_libdir_separator_CXX=
11600 esac
11601 shared_flag='-shared'
11602 if test "$aix_use_runtimelinking" = yes; then
11603 shared_flag="$shared_flag "'${wl}-G'
11605 else
11606 # not using gcc
11607 if test "$host_cpu" = ia64; then
11608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11609 # chokes on -Wl,-G. The following line is correct:
11610 shared_flag='-G'
11611 else
11612 if test "$aix_use_runtimelinking" = yes; then
11613 shared_flag='${wl}-G'
11614 else
11615 shared_flag='${wl}-bM:SRE'
11620 # It seems that -bexpall does not export symbols beginning with
11621 # underscore (_), so it is better to generate a list of symbols to export.
11622 always_export_symbols_CXX=yes
11623 if test "$aix_use_runtimelinking" = yes; then
11624 # Warning - without using the other runtime loading flags (-brtl),
11625 # -berok will link without error, but may produce a broken library.
11626 allow_undefined_flag_CXX='-berok'
11627 # Determine the default libpath from the value encoded in an empty executable.
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11636 main ()
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650 $as_echo "$ac_try_echo") >&5
11651 (eval "$ac_link") 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_cxx_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext && {
11661 test "$cross_compiling" = yes ||
11662 $as_test_x conftest$ac_exeext
11663 }; then
11665 lt_aix_libpath_sed='
11666 /Import File Strings/,/^$/ {
11667 /^0/ {
11668 s/^0 *\(.*\)$/\1/
11672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673 # Check for a 64-bit object if we didn't find anything.
11674 if test -z "$aix_libpath"; then
11675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11677 else
11678 $as_echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11684 rm -rf conftest.dSYM
11685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686 conftest$ac_exeext conftest.$ac_ext
11687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11689 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11691 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"
11692 else
11693 if test "$host_cpu" = ia64; then
11694 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11695 allow_undefined_flag_CXX="-z nodefs"
11696 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"
11697 else
11698 # Determine the default libpath from the value encoded in an empty executable.
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11707 main ()
11711 return 0;
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (ac_try="$ac_link"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719 esac
11720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722 (eval "$ac_link") 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } && {
11729 test -z "$ac_cxx_werror_flag" ||
11730 test ! -s conftest.err
11731 } && test -s conftest$ac_exeext && {
11732 test "$cross_compiling" = yes ||
11733 $as_test_x conftest$ac_exeext
11734 }; then
11736 lt_aix_libpath_sed='
11737 /Import File Strings/,/^$/ {
11738 /^0/ {
11739 s/^0 *\(.*\)$/\1/
11743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11744 # Check for a 64-bit object if we didn't find anything.
11745 if test -z "$aix_libpath"; then
11746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 else
11749 $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11755 rm -rf conftest.dSYM
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11761 # Warning - without using the other run time loading flags,
11762 # -berok will link without error, but may produce a broken library.
11763 no_undefined_flag_CXX=' ${wl}-bernotok'
11764 allow_undefined_flag_CXX=' ${wl}-berok'
11765 # Exported symbols can be pulled into shared objects from archives
11766 whole_archive_flag_spec_CXX='$convenience'
11767 archive_cmds_need_lc_CXX=yes
11768 # This is similar to how AIX traditionally builds its shared libraries.
11769 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'
11774 beos*)
11775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11776 allow_undefined_flag_CXX=unsupported
11777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11778 # support --undefined. This deserves some investigation. FIXME
11779 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780 else
11781 ld_shlibs_CXX=no
11785 chorus*)
11786 case $cc_basename in
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11791 esac
11794 cygwin* | mingw* | pw32*)
11795 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11796 # as there is no search path for DLLs.
11797 hardcode_libdir_flag_spec_CXX='-L$libdir'
11798 allow_undefined_flag_CXX=unsupported
11799 always_export_symbols_CXX=no
11800 enable_shared_with_static_runtimes_CXX=yes
11802 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11803 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'
11804 # If the export-symbols file already is a .def file (1st line
11805 # is EXPORTS), use it as is; otherwise, prepend...
11806 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11807 cp $export_symbols $output_objdir/$soname.def;
11808 else
11809 echo EXPORTS > $output_objdir/$soname.def;
11810 cat $export_symbols >> $output_objdir/$soname.def;
11812 $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'
11813 else
11814 ld_shlibs_CXX=no
11817 darwin* | rhapsody*)
11818 archive_cmds_need_lc_CXX=no
11819 hardcode_direct_CXX=no
11820 hardcode_automatic_CXX=yes
11821 hardcode_shlibpath_var_CXX=unsupported
11822 whole_archive_flag_spec_CXX=''
11823 link_all_deplibs_CXX=yes
11824 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11825 if test "$GXX" = yes ; then
11826 output_verbose_link_cmd='echo'
11827 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11828 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11829 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11830 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11831 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11832 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11833 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11835 else
11836 case $cc_basename in
11837 xlc*)
11838 output_verbose_link_cmd='echo'
11839 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'
11840 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11842 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}'
11843 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}'
11846 ld_shlibs_CXX=no
11848 esac
11852 dgux*)
11853 case $cc_basename in
11854 ec++*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11858 ghcx*)
11859 # Green Hills C++ Compiler
11860 # FIXME: insert proper C++ library support
11861 ld_shlibs_CXX=no
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11867 esac
11869 freebsd[12]*)
11870 # C++ shared libraries reported to be fairly broken before switch to ELF
11871 ld_shlibs_CXX=no
11873 freebsd-elf*)
11874 archive_cmds_need_lc_CXX=no
11876 freebsd* | dragonfly*)
11877 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11878 # conventions
11879 ld_shlibs_CXX=yes
11881 gnu*)
11883 hpux9*)
11884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11885 hardcode_libdir_separator_CXX=:
11886 export_dynamic_flag_spec_CXX='${wl}-E'
11887 hardcode_direct_CXX=yes
11888 hardcode_minus_L_CXX=yes # Not in the search PATH,
11889 # but as the default
11890 # location of the library.
11892 case $cc_basename in
11893 CC*)
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11897 aCC*)
11898 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'
11899 # Commands to make compiler produce verbose output that lists
11900 # what "hidden" libraries, object files and flags are used when
11901 # linking a shared library.
11903 # There doesn't appear to be a way to prevent this compiler from
11904 # explicitly linking system object files so we need to strip them
11905 # from the output so that they don't get included in the library
11906 # dependencies.
11907 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'
11910 if test "$GXX" = yes; then
11911 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'
11912 else
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11917 esac
11919 hpux10*|hpux11*)
11920 if test $with_gnu_ld = no; then
11921 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11922 hardcode_libdir_separator_CXX=:
11924 case $host_cpu in
11925 hppa*64*|ia64*) ;;
11927 export_dynamic_flag_spec_CXX='${wl}-E'
11929 esac
11931 case $host_cpu in
11932 hppa*64*|ia64*)
11933 hardcode_direct_CXX=no
11934 hardcode_shlibpath_var_CXX=no
11937 hardcode_direct_CXX=yes
11938 hardcode_minus_L_CXX=yes # Not in the search PATH,
11939 # but as the default
11940 # location of the library.
11942 esac
11944 case $cc_basename in
11945 CC*)
11946 # FIXME: insert proper C++ library support
11947 ld_shlibs_CXX=no
11949 aCC*)
11950 case $host_cpu in
11951 hppa*64*)
11952 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954 ia64*)
11955 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960 esac
11961 # Commands to make compiler produce verbose output that lists
11962 # what "hidden" libraries, object files and flags are used when
11963 # linking a shared library.
11965 # There doesn't appear to be a way to prevent this compiler from
11966 # explicitly linking system object files so we need to strip them
11967 # from the output so that they don't get included in the library
11968 # dependencies.
11969 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'
11972 if test "$GXX" = yes; then
11973 if test $with_gnu_ld = no; then
11974 case $host_cpu in
11975 hppa*64*)
11976 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11978 ia64*)
11979 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11982 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'
11984 esac
11986 else
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11991 esac
11993 interix[3-9]*)
11994 hardcode_direct_CXX=no
11995 hardcode_shlibpath_var_CXX=no
11996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11999 # Instead, shared libraries are loaded at an image base (0x10000000 by
12000 # default) and relocated if they conflict, which is a slow very memory
12001 # consuming and fragmenting process. To avoid this, we pick a random,
12002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12004 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'
12005 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'
12007 irix5* | irix6*)
12008 case $cc_basename in
12009 CC*)
12010 # SGI C++
12011 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'
12013 # Archives containing C++ object files must be created using
12014 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12015 # necessary to make sure instantiated templates are included
12016 # in the archive.
12017 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12020 if test "$GXX" = yes; then
12021 if test "$with_gnu_ld" = no; then
12022 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'
12023 else
12024 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'
12027 link_all_deplibs_CXX=yes
12029 esac
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX=:
12033 linux* | k*bsd*-gnu)
12034 case $cc_basename in
12035 KCC*)
12036 # Kuck and Associates, Inc. (KAI) C++ Compiler
12038 # KCC will only create a shared library if the output file
12039 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12040 # to its proper name (with version) after linking.
12041 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'
12042 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'
12043 # Commands to make compiler produce verbose output that lists
12044 # what "hidden" libraries, object files and flags are used when
12045 # linking a shared library.
12047 # There doesn't appear to be a way to prevent this compiler from
12048 # explicitly linking system object files so we need to strip them
12049 # from the output so that they don't get included in the library
12050 # dependencies.
12051 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'
12053 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12056 # Archives containing C++ object files must be created using
12057 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12058 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12060 icpc*)
12061 # Intel C++
12062 with_gnu_ld=yes
12063 # version 8.0 and above of icpc choke on multiply defined symbols
12064 # if we add $predep_objects and $postdep_objects, however 7.1 and
12065 # earlier do not add the objects themselves.
12066 case `$CC -V 2>&1` in
12067 *"Version 7."*)
12068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12069 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'
12071 *) # Version 8.0 or newer
12072 tmp_idyn=
12073 case $host_cpu in
12074 ia64*) tmp_idyn=' -i_dynamic';;
12075 esac
12076 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12077 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'
12079 esac
12080 archive_cmds_need_lc_CXX=no
12081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12083 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12085 pgCC* | pgcpp*)
12086 # Portland Group C++ compiler
12087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12088 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'
12090 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12092 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'
12094 cxx*)
12095 # Compaq C++
12096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097 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'
12099 runpath_var=LD_RUN_PATH
12100 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12101 hardcode_libdir_separator_CXX=:
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12107 # There doesn't appear to be a way to prevent this compiler from
12108 # explicitly linking system object files so we need to strip them
12109 # from the output so that they don't get included in the library
12110 # dependencies.
12111 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'
12114 case `$CC -V 2>&1 | sed 5q` in
12115 *Sun\ C*)
12116 # Sun C++ 5.9
12117 no_undefined_flag_CXX=' -zdefs'
12118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12119 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'
12120 hardcode_libdir_flag_spec_CXX='-R$libdir'
12121 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'
12123 # Not sure whether something based on
12124 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12125 # would be better.
12126 output_verbose_link_cmd='echo'
12128 # Archives containing C++ object files must be created using
12129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12130 # necessary to make sure instantiated templates are included
12131 # in the archive.
12132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12134 esac
12136 esac
12138 lynxos*)
12139 # FIXME: insert proper C++ library support
12140 ld_shlibs_CXX=no
12142 m88k*)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12146 mvs*)
12147 case $cc_basename in
12148 cxx*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12153 # FIXME: insert proper C++ library support
12154 ld_shlibs_CXX=no
12156 esac
12158 netbsd*)
12159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12160 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12161 wlarc=
12162 hardcode_libdir_flag_spec_CXX='-R$libdir'
12163 hardcode_direct_CXX=yes
12164 hardcode_shlibpath_var_CXX=no
12166 # Workaround some broken pre-1.5 toolchains
12167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12169 openbsd2*)
12170 # C++ shared libraries are fairly broken
12171 ld_shlibs_CXX=no
12173 openbsd*)
12174 if test -f /usr/libexec/ld.so; then
12175 hardcode_direct_CXX=yes
12176 hardcode_shlibpath_var_CXX=no
12177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12181 export_dynamic_flag_spec_CXX='${wl}-E'
12182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12184 output_verbose_link_cmd='echo'
12185 else
12186 ld_shlibs_CXX=no
12189 osf3*)
12190 case $cc_basename in
12191 KCC*)
12192 # Kuck and Associates, Inc. (KAI) C++ Compiler
12194 # KCC will only create a shared library if the output file
12195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12196 # to its proper name (with version) after linking.
12197 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'
12199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12200 hardcode_libdir_separator_CXX=:
12202 # Archives containing C++ object files must be created using
12203 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12204 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12207 RCC*)
12208 # Rational C++ 2.4.1
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12212 cxx*)
12213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214 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'
12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217 hardcode_libdir_separator_CXX=:
12219 # Commands to make compiler produce verbose output that lists
12220 # what "hidden" libraries, object files and flags are used when
12221 # linking a shared library.
12223 # There doesn't appear to be a way to prevent this compiler from
12224 # explicitly linking system object files so we need to strip them
12225 # from the output so that they don't get included in the library
12226 # dependencies.
12227 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'
12230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12232 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'
12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12235 hardcode_libdir_separator_CXX=:
12237 # Commands to make compiler produce verbose output that lists
12238 # what "hidden" libraries, object files and flags are used when
12239 # linking a shared library.
12240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12242 else
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12247 esac
12249 osf4* | osf5*)
12250 case $cc_basename in
12251 KCC*)
12252 # Kuck and Associates, Inc. (KAI) C++ Compiler
12254 # KCC will only create a shared library if the output file
12255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12256 # to its proper name (with version) after linking.
12257 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'
12259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12260 hardcode_libdir_separator_CXX=:
12262 # Archives containing C++ object files must be created using
12263 # the KAI C++ compiler.
12264 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12266 RCC*)
12267 # Rational C++ 2.4.1
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12271 cxx*)
12272 allow_undefined_flag_CXX=' -expect_unresolved \*'
12273 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'
12274 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12275 echo "-hidden">> $lib.exp~
12276 $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~
12277 $rm $lib.exp'
12279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12280 hardcode_libdir_separator_CXX=:
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12286 # There doesn't appear to be a way to prevent this compiler from
12287 # explicitly linking system object files so we need to strip them
12288 # from the output so that they don't get included in the library
12289 # dependencies.
12290 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'
12293 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12294 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12295 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'
12297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12298 hardcode_libdir_separator_CXX=:
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12305 else
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12310 esac
12312 psos*)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12316 sunos4*)
12317 case $cc_basename in
12318 CC*)
12319 # Sun C++ 4.x
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12323 lcc*)
12324 # Lucid
12325 # FIXME: insert proper C++ library support
12326 ld_shlibs_CXX=no
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12332 esac
12334 solaris*)
12335 case $cc_basename in
12336 CC*)
12337 # Sun C++ 4.2, 5.x and Centerline C++
12338 archive_cmds_need_lc_CXX=yes
12339 no_undefined_flag_CXX=' -zdefs'
12340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12341 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12342 $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'
12344 hardcode_libdir_flag_spec_CXX='-R$libdir'
12345 hardcode_shlibpath_var_CXX=no
12346 case $host_os in
12347 solaris2.[0-5] | solaris2.[0-5].*) ;;
12349 # The compiler driver will combine and reorder linker options,
12350 # but understands `-z linker_flag'.
12351 # Supported since Solaris 2.6 (maybe 2.5.1?)
12352 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12354 esac
12355 link_all_deplibs_CXX=yes
12357 output_verbose_link_cmd='echo'
12359 # Archives containing C++ object files must be created using
12360 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12361 # necessary to make sure instantiated templates are included
12362 # in the archive.
12363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12365 gcx*)
12366 # Green Hills C++ Compiler
12367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12369 # The C++ compiler must be used to create the archive.
12370 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12373 # GNU C++ compiler with Solaris linker
12374 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12375 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12376 if $CC --version | grep -v '^2\.7' > /dev/null; then
12377 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12378 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12379 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12381 # Commands to make compiler produce verbose output that lists
12382 # what "hidden" libraries, object files and flags are used when
12383 # linking a shared library.
12384 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12385 else
12386 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12387 # platform.
12388 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12389 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12390 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12392 # Commands to make compiler produce verbose output that lists
12393 # what "hidden" libraries, object files and flags are used when
12394 # linking a shared library.
12395 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12398 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12399 case $host_os in
12400 solaris2.[0-5] | solaris2.[0-5].*) ;;
12402 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12404 esac
12407 esac
12409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12410 no_undefined_flag_CXX='${wl}-z,text'
12411 archive_cmds_need_lc_CXX=no
12412 hardcode_shlibpath_var_CXX=no
12413 runpath_var='LD_RUN_PATH'
12415 case $cc_basename in
12416 CC*)
12417 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 esac
12426 sysv5* | sco3.2v5* | sco5v6*)
12427 # Note: We can NOT use -z defs as we might desire, because we do not
12428 # link with -lc, and that would cause any symbols used from libc to
12429 # always be unresolved, which means just about no library would
12430 # ever link correctly. If we're not using GNU ld we use -z text
12431 # though, which does catch some bad symbols but isn't as heavy-handed
12432 # as -z defs.
12433 # For security reasons, it is highly recommended that you always
12434 # use absolute paths for naming shared libraries, and exclude the
12435 # DT_RUNPATH tag from executables and libraries. But doing so
12436 # requires that you compile everything twice, which is a pain.
12437 # So that behaviour is only enabled if SCOABSPATH is set to a
12438 # non-empty value in the environment. Most likely only useful for
12439 # creating official distributions of packages.
12440 # This is a hack until libtool officially supports absolute path
12441 # names for shared libraries.
12442 no_undefined_flag_CXX='${wl}-z,text'
12443 allow_undefined_flag_CXX='${wl}-z,nodefs'
12444 archive_cmds_need_lc_CXX=no
12445 hardcode_shlibpath_var_CXX=no
12446 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12447 hardcode_libdir_separator_CXX=':'
12448 link_all_deplibs_CXX=yes
12449 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12450 runpath_var='LD_RUN_PATH'
12452 case $cc_basename in
12453 CC*)
12454 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12459 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461 esac
12463 tandem*)
12464 case $cc_basename in
12465 NCC*)
12466 # NonStop-UX NCC 3.20
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12474 esac
12476 vxworks*)
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12484 esac
12485 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486 $as_echo "$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12489 GCC_CXX="$GXX"
12490 LD_CXX="$LD"
12492 cat > conftest.$ac_ext <<EOF
12493 class Foo
12495 public:
12496 Foo (void) { a = 0; }
12497 private:
12498 int a;
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12504 ac_status=$?
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; then
12507 # Parse the compiler output and extract the necessary
12508 # objects, libraries and library flags.
12510 # Sentinel used to keep track of whether or not we are before
12511 # the conftest object file.
12512 pre_test_object_deps_done=no
12514 # The `*' in the case matches for architectures that use `case' in
12515 # $output_verbose_cmd can trigger glob expansion during the loop
12516 # eval without this substitution.
12517 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12519 for p in `eval $output_verbose_link_cmd`; do
12520 case $p in
12522 -L* | -R* | -l*)
12523 # Some compilers place space between "-{L,R}" and the path.
12524 # Remove the space.
12525 if test $p = "-L" \
12526 || test $p = "-R"; then
12527 prev=$p
12528 continue
12529 else
12530 prev=
12533 if test "$pre_test_object_deps_done" = no; then
12534 case $p in
12535 -L* | -R*)
12536 # Internal compiler library paths should come after those
12537 # provided the user. The postdeps already come after the
12538 # user supplied libs so there is no need to process them.
12539 if test -z "$compiler_lib_search_path_CXX"; then
12540 compiler_lib_search_path_CXX="${prev}${p}"
12541 else
12542 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12545 # The "-l" case would never come before the object being
12546 # linked, so don't bother handling this case.
12547 esac
12548 else
12549 if test -z "$postdeps_CXX"; then
12550 postdeps_CXX="${prev}${p}"
12551 else
12552 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12557 *.$objext)
12558 # This assumes that the test object file only shows up
12559 # once in the compiler output.
12560 if test "$p" = "conftest.$objext"; then
12561 pre_test_object_deps_done=yes
12562 continue
12565 if test "$pre_test_object_deps_done" = no; then
12566 if test -z "$predep_objects_CXX"; then
12567 predep_objects_CXX="$p"
12568 else
12569 predep_objects_CXX="$predep_objects_CXX $p"
12571 else
12572 if test -z "$postdep_objects_CXX"; then
12573 postdep_objects_CXX="$p"
12574 else
12575 postdep_objects_CXX="$postdep_objects_CXX $p"
12580 *) ;; # Ignore the rest.
12582 esac
12583 done
12585 # Clean up.
12586 rm -f a.out a.exe
12587 else
12588 echo "libtool.m4: error: problem compiling CXX test program"
12591 $rm -f confest.$objext
12593 compiler_lib_search_dirs_CXX=
12594 if test -n "$compiler_lib_search_path_CXX"; then
12595 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12598 # PORTME: override above test on systems where it is broken
12599 case $host_os in
12600 interix[3-9]*)
12601 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12602 # hack all around it, let's just trust "g++" to DTRT.
12603 predep_objects_CXX=
12604 postdep_objects_CXX=
12605 postdeps_CXX=
12608 linux*)
12609 case `$CC -V 2>&1 | sed 5q` in
12610 *Sun\ C*)
12611 # Sun C++ 5.9
12613 # The more standards-conforming stlport4 library is
12614 # incompatible with the Cstd library. Avoid specifying
12615 # it if it's in CXXFLAGS. Ignore libCrun as
12616 # -library=stlport4 depends on it.
12617 case " $CXX $CXXFLAGS " in
12618 *" -library=stlport4 "*)
12619 solaris_use_stlport4=yes
12621 esac
12622 if test "$solaris_use_stlport4" != yes; then
12623 postdeps_CXX='-library=Cstd -library=Crun'
12626 esac
12629 solaris*)
12630 case $cc_basename in
12631 CC*)
12632 # The more standards-conforming stlport4 library is
12633 # incompatible with the Cstd library. Avoid specifying
12634 # it if it's in CXXFLAGS. Ignore libCrun as
12635 # -library=stlport4 depends on it.
12636 case " $CXX $CXXFLAGS " in
12637 *" -library=stlport4 "*)
12638 solaris_use_stlport4=yes
12640 esac
12642 # Adding this requires a known-good setup of shared libraries for
12643 # Sun compiler versions before 5.6, else PIC objects from an old
12644 # archive will be linked into the output, leading to subtle bugs.
12645 if test "$solaris_use_stlport4" != yes; then
12646 postdeps_CXX='-library=Cstd -library=Crun'
12649 esac
12651 esac
12653 case " $postdeps_CXX " in
12654 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12655 esac
12657 lt_prog_compiler_wl_CXX=
12658 lt_prog_compiler_pic_CXX=
12659 lt_prog_compiler_static_CXX=
12661 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12664 # C++ specific cases for pic, static, wl, etc.
12665 if test "$GXX" = yes; then
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_static_CXX='-static'
12669 case $host_os in
12670 aix*)
12671 # All AIX code is PIC.
12672 if test "$host_cpu" = ia64; then
12673 # AIX 5 now supports IA64 processor
12674 lt_prog_compiler_static_CXX='-Bstatic'
12677 amigaos*)
12678 # FIXME: we need at least 68020 code to build shared libraries, but
12679 # adding the `-m68020' flag to GCC prevents building anything better,
12680 # like `-m68040'.
12681 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12684 # PIC is the default for these OSes.
12686 mingw* | cygwin* | os2* | pw32*)
12687 # This hack is so that the source file can tell whether it is being
12688 # built for inclusion in a dll (and should export symbols for example).
12689 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12690 # (--disable-auto-import) libraries
12691 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12693 darwin* | rhapsody*)
12694 # PIC is the default on this platform
12695 # Common symbols not allowed in MH_DYLIB files
12696 lt_prog_compiler_pic_CXX='-fno-common'
12698 *djgpp*)
12699 # DJGPP does not support shared libraries at all
12700 lt_prog_compiler_pic_CXX=
12702 interix[3-9]*)
12703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12704 # Instead, we relocate shared libraries at runtime.
12706 sysv4*MP*)
12707 if test -d /usr/nec; then
12708 lt_prog_compiler_pic_CXX=-Kconform_pic
12711 hpux*)
12712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12713 # not for PA HP-UX.
12714 case $host_cpu in
12715 hppa*64*|ia64*)
12718 lt_prog_compiler_pic_CXX='-fPIC'
12720 esac
12723 lt_prog_compiler_pic_CXX='-fPIC'
12725 esac
12726 else
12727 case $host_os in
12728 aix[4-9]*)
12729 # All AIX code is PIC.
12730 if test "$host_cpu" = ia64; then
12731 # AIX 5 now supports IA64 processor
12732 lt_prog_compiler_static_CXX='-Bstatic'
12733 else
12734 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12737 chorus*)
12738 case $cc_basename in
12739 cxch68*)
12740 # Green Hills C++ Compiler
12741 # _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"
12743 esac
12745 darwin*)
12746 # PIC is the default on this platform
12747 # Common symbols not allowed in MH_DYLIB files
12748 case $cc_basename in
12749 xlc*)
12750 lt_prog_compiler_pic_CXX='-qnocommon'
12751 lt_prog_compiler_wl_CXX='-Wl,'
12753 esac
12755 dgux*)
12756 case $cc_basename in
12757 ec++*)
12758 lt_prog_compiler_pic_CXX='-KPIC'
12760 ghcx*)
12761 # Green Hills C++ Compiler
12762 lt_prog_compiler_pic_CXX='-pic'
12766 esac
12768 freebsd* | dragonfly*)
12769 # FreeBSD uses GNU C++
12771 hpux9* | hpux10* | hpux11*)
12772 case $cc_basename in
12773 CC*)
12774 lt_prog_compiler_wl_CXX='-Wl,'
12775 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12776 if test "$host_cpu" != ia64; then
12777 lt_prog_compiler_pic_CXX='+Z'
12780 aCC*)
12781 lt_prog_compiler_wl_CXX='-Wl,'
12782 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12783 case $host_cpu in
12784 hppa*64*|ia64*)
12785 # +Z the default
12788 lt_prog_compiler_pic_CXX='+Z'
12790 esac
12794 esac
12796 interix*)
12797 # This is c89, which is MS Visual C++ (no shared libs)
12798 # Anyone wants to do a port?
12800 irix5* | irix6* | nonstopux*)
12801 case $cc_basename in
12802 CC*)
12803 lt_prog_compiler_wl_CXX='-Wl,'
12804 lt_prog_compiler_static_CXX='-non_shared'
12805 # CC pic flag -KPIC is the default.
12809 esac
12811 linux* | k*bsd*-gnu)
12812 case $cc_basename in
12813 KCC*)
12814 # KAI C++ Compiler
12815 lt_prog_compiler_wl_CXX='--backend -Wl,'
12816 lt_prog_compiler_pic_CXX='-fPIC'
12818 icpc* | ecpc*)
12819 # Intel C++
12820 lt_prog_compiler_wl_CXX='-Wl,'
12821 lt_prog_compiler_pic_CXX='-KPIC'
12822 lt_prog_compiler_static_CXX='-static'
12824 pgCC* | pgcpp*)
12825 # Portland Group C++ compiler.
12826 lt_prog_compiler_wl_CXX='-Wl,'
12827 lt_prog_compiler_pic_CXX='-fpic'
12828 lt_prog_compiler_static_CXX='-Bstatic'
12830 cxx*)
12831 # Compaq C++
12832 # Make sure the PIC flag is empty. It appears that all Alpha
12833 # Linux and Compaq Tru64 Unix objects are PIC.
12834 lt_prog_compiler_pic_CXX=
12835 lt_prog_compiler_static_CXX='-non_shared'
12838 case `$CC -V 2>&1 | sed 5q` in
12839 *Sun\ C*)
12840 # Sun C++ 5.9
12841 lt_prog_compiler_pic_CXX='-KPIC'
12842 lt_prog_compiler_static_CXX='-Bstatic'
12843 lt_prog_compiler_wl_CXX='-Qoption ld '
12845 esac
12847 esac
12849 lynxos*)
12851 m88k*)
12853 mvs*)
12854 case $cc_basename in
12855 cxx*)
12856 lt_prog_compiler_pic_CXX='-W c,exportall'
12860 esac
12862 netbsd*)
12864 osf3* | osf4* | osf5*)
12865 case $cc_basename in
12866 KCC*)
12867 lt_prog_compiler_wl_CXX='--backend -Wl,'
12869 RCC*)
12870 # Rational C++ 2.4.1
12871 lt_prog_compiler_pic_CXX='-pic'
12873 cxx*)
12874 # Digital/Compaq C++
12875 lt_prog_compiler_wl_CXX='-Wl,'
12876 # Make sure the PIC flag is empty. It appears that all Alpha
12877 # Linux and Compaq Tru64 Unix objects are PIC.
12878 lt_prog_compiler_pic_CXX=
12879 lt_prog_compiler_static_CXX='-non_shared'
12883 esac
12885 psos*)
12887 solaris*)
12888 case $cc_basename in
12889 CC*)
12890 # Sun C++ 4.2, 5.x and Centerline C++
12891 lt_prog_compiler_pic_CXX='-KPIC'
12892 lt_prog_compiler_static_CXX='-Bstatic'
12893 lt_prog_compiler_wl_CXX='-Qoption ld '
12895 gcx*)
12896 # Green Hills C++ Compiler
12897 lt_prog_compiler_pic_CXX='-PIC'
12901 esac
12903 sunos4*)
12904 case $cc_basename in
12905 CC*)
12906 # Sun C++ 4.x
12907 lt_prog_compiler_pic_CXX='-pic'
12908 lt_prog_compiler_static_CXX='-Bstatic'
12910 lcc*)
12911 # Lucid
12912 lt_prog_compiler_pic_CXX='-pic'
12916 esac
12918 tandem*)
12919 case $cc_basename in
12920 NCC*)
12921 # NonStop-UX NCC 3.20
12922 lt_prog_compiler_pic_CXX='-KPIC'
12926 esac
12928 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12929 case $cc_basename in
12930 CC*)
12931 lt_prog_compiler_wl_CXX='-Wl,'
12932 lt_prog_compiler_pic_CXX='-KPIC'
12933 lt_prog_compiler_static_CXX='-Bstatic'
12935 esac
12937 vxworks*)
12940 lt_prog_compiler_can_build_shared_CXX=no
12942 esac
12945 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12946 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12949 # Check to make sure the PIC flag actually works.
12951 if test -n "$lt_prog_compiler_pic_CXX"; then
12953 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12954 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12955 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12956 $as_echo_n "(cached) " >&6
12957 else
12958 lt_cv_prog_compiler_pic_works_CXX=no
12959 ac_outfile=conftest.$ac_objext
12960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12962 # Insert the option either (1) after the last *FLAGS variable, or
12963 # (2) before a word containing "conftest.", or (3) at the end.
12964 # Note that $ac_compile itself does not contain backslashes and begins
12965 # with a dollar sign (not a hyphen), so the echo should work correctly.
12966 # The option is referenced via a variable to avoid confusing sed.
12967 lt_compile=`echo "$ac_compile" | $SED \
12968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970 -e 's:$: $lt_compiler_flag:'`
12971 (eval echo "\"\$as_me:12971: $lt_compile\"" >&5)
12972 (eval "$lt_compile" 2>conftest.err)
12973 ac_status=$?
12974 cat conftest.err >&5
12975 echo "$as_me:12975: \$? = $ac_status" >&5
12976 if (exit $ac_status) && test -s "$ac_outfile"; then
12977 # The compiler can only warn and ignore the option if not recognized
12978 # So say no if there are warnings other than the usual output.
12979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12982 lt_cv_prog_compiler_pic_works_CXX=yes
12985 $rm conftest*
12988 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12989 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12991 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12992 case $lt_prog_compiler_pic_CXX in
12993 "" | " "*) ;;
12994 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12995 esac
12996 else
12997 lt_prog_compiler_pic_CXX=
12998 lt_prog_compiler_can_build_shared_CXX=no
13002 case $host_os in
13003 # For platforms which do not support PIC, -DPIC is meaningless:
13004 *djgpp*)
13005 lt_prog_compiler_pic_CXX=
13008 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13010 esac
13013 # Check to make sure the static flag actually works.
13015 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13016 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13018 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13019 $as_echo_n "(cached) " >&6
13020 else
13021 lt_cv_prog_compiler_static_works_CXX=no
13022 save_LDFLAGS="$LDFLAGS"
13023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13026 # The linker can only warn and ignore the option if not recognized
13027 # So say no if there are warnings
13028 if test -s conftest.err; then
13029 # Append any errors to the config.log.
13030 cat conftest.err 1>&5
13031 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13033 if diff conftest.exp conftest.er2 >/dev/null; then
13034 lt_cv_prog_compiler_static_works_CXX=yes
13036 else
13037 lt_cv_prog_compiler_static_works_CXX=yes
13040 $rm -r conftest*
13041 LDFLAGS="$save_LDFLAGS"
13044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13045 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13047 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13049 else
13050 lt_prog_compiler_static_CXX=
13054 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13057 $as_echo_n "(cached) " >&6
13058 else
13059 lt_cv_prog_compiler_c_o_CXX=no
13060 $rm -r conftest 2>/dev/null
13061 mkdir conftest
13062 cd conftest
13063 mkdir out
13064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13066 lt_compiler_flag="-o out/conftest2.$ac_objext"
13067 # Insert the option either (1) after the last *FLAGS variable, or
13068 # (2) before a word containing "conftest.", or (3) at the end.
13069 # Note that $ac_compile itself does not contain backslashes and begins
13070 # with a dollar sign (not a hyphen), so the echo should work correctly.
13071 lt_compile=`echo "$ac_compile" | $SED \
13072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13074 -e 's:$: $lt_compiler_flag:'`
13075 (eval echo "\"\$as_me:13075: $lt_compile\"" >&5)
13076 (eval "$lt_compile" 2>out/conftest.err)
13077 ac_status=$?
13078 cat out/conftest.err >&5
13079 echo "$as_me:13079: \$? = $ac_status" >&5
13080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13081 then
13082 # The compiler can only warn and ignore the option if not recognized
13083 # So say no if there are warnings
13084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13087 lt_cv_prog_compiler_c_o_CXX=yes
13090 chmod u+w . 2>&5
13091 $rm conftest*
13092 # SGI C++ compiler will create directory out/ii_files/ for
13093 # template instantiation
13094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13095 $rm out/* && rmdir out
13096 cd ..
13097 rmdir conftest
13098 $rm conftest*
13101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13102 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13105 hard_links="nottested"
13106 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13107 # do not overwrite the value of need_locks provided by the user
13108 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13109 $as_echo_n "checking if we can lock with hard links... " >&6; }
13110 hard_links=yes
13111 $rm conftest*
13112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13113 touch conftest.a
13114 ln conftest.a conftest.b 2>&5 || hard_links=no
13115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13116 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13117 $as_echo "$hard_links" >&6; }
13118 if test "$hard_links" = no; then
13119 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13121 need_locks=warn
13123 else
13124 need_locks=no
13127 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13128 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13131 case $host_os in
13132 aix[4-9]*)
13133 # If we're using GNU nm, then we don't want the "-C" option.
13134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13136 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'
13137 else
13138 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'
13141 pw32*)
13142 export_symbols_cmds_CXX="$ltdll_cmds"
13144 cygwin* | mingw*)
13145 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'
13148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150 esac
13151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13153 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13154 $as_echo "$ld_shlibs_CXX" >&6; }
13155 test "$ld_shlibs_CXX" = no && can_build_shared=no
13158 # Do we need to explicitly link libc?
13160 case "x$archive_cmds_need_lc_CXX" in
13161 x|xyes)
13162 # Assume -lc should be added
13163 archive_cmds_need_lc_CXX=yes
13165 if test "$enable_shared" = yes && test "$GCC" = yes; then
13166 case $archive_cmds_CXX in
13167 *'~'*)
13168 # FIXME: we may have to deal with multi-command sequences.
13170 '$CC '*)
13171 # Test whether the compiler implicitly links with -lc since on some
13172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13173 # to ld, don't add -lc before -lgcc.
13174 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13175 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13176 $rm conftest*
13177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } 2>conftest.err; then
13184 soname=conftest
13185 lib=conftest
13186 libobjs=conftest.$ac_objext
13187 deplibs=
13188 wl=$lt_prog_compiler_wl_CXX
13189 pic_flag=$lt_prog_compiler_pic_CXX
13190 compiler_flags=-v
13191 linker_flags=-v
13192 verstring=
13193 output_objdir=.
13194 libname=conftest
13195 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13196 allow_undefined_flag_CXX=
13197 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13198 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }
13202 then
13203 archive_cmds_need_lc_CXX=no
13204 else
13205 archive_cmds_need_lc_CXX=yes
13207 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13208 else
13209 cat conftest.err 1>&5
13211 $rm conftest*
13212 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13213 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13215 esac
13218 esac
13220 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13221 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13222 library_names_spec=
13223 libname_spec='lib$name'
13224 soname_spec=
13225 shrext_cmds=".so"
13226 postinstall_cmds=
13227 postuninstall_cmds=
13228 finish_cmds=
13229 finish_eval=
13230 shlibpath_var=
13231 shlibpath_overrides_runpath=unknown
13232 version_type=none
13233 dynamic_linker="$host_os ld.so"
13234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13236 need_lib_prefix=unknown
13237 hardcode_into_libs=no
13239 # when you set need_version to no, make sure it does not cause -set_version
13240 # flags to be left without arguments
13241 need_version=unknown
13243 case $host_os in
13244 aix3*)
13245 version_type=linux
13246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13247 shlibpath_var=LIBPATH
13249 # AIX 3 has no versioning support, so we append a major version to the name.
13250 soname_spec='${libname}${release}${shared_ext}$major'
13253 aix[4-9]*)
13254 version_type=linux
13255 need_lib_prefix=no
13256 need_version=no
13257 hardcode_into_libs=yes
13258 if test "$host_cpu" = ia64; then
13259 # AIX 5 supports IA64
13260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13261 shlibpath_var=LD_LIBRARY_PATH
13262 else
13263 # With GCC up to 2.95.x, collect2 would create an import file
13264 # for dependence libraries. The import file would start with
13265 # the line `#! .'. This would cause the generated library to
13266 # depend on `.', always an invalid library. This was fixed in
13267 # development snapshots of GCC prior to 3.0.
13268 case $host_os in
13269 aix4 | aix4.[01] | aix4.[01].*)
13270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13271 echo ' yes '
13272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13274 else
13275 can_build_shared=no
13278 esac
13279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13280 # soname into executable. Probably we can add versioning support to
13281 # collect2, so additional links can be useful in future.
13282 if test "$aix_use_runtimelinking" = yes; then
13283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13284 # instead of lib<name>.a to let people know that these are not
13285 # typical AIX shared libraries.
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 else
13288 # We preserve .a as extension for shared libraries through AIX4.2
13289 # and later when we are not doing run time linking.
13290 library_names_spec='${libname}${release}.a $libname.a'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13293 shlibpath_var=LIBPATH
13297 amigaos*)
13298 library_names_spec='$libname.ixlibrary $libname.a'
13299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13300 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'
13303 beos*)
13304 library_names_spec='${libname}${shared_ext}'
13305 dynamic_linker="$host_os ld.so"
13306 shlibpath_var=LIBRARY_PATH
13309 bsdi[45]*)
13310 version_type=linux
13311 need_version=no
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13318 # the default ld.so.conf also contains /usr/contrib/lib and
13319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13320 # libtool to hard-code these into programs
13323 cygwin* | mingw* | pw32*)
13324 version_type=windows
13325 shrext_cmds=".dll"
13326 need_version=no
13327 need_lib_prefix=no
13329 case $GCC,$host_os in
13330 yes,cygwin* | yes,mingw* | yes,pw32*)
13331 library_names_spec='$libname.dll.a'
13332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13333 postinstall_cmds='base_file=`basename \${file}`~
13334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13335 dldir=$destdir/`dirname \$dlpath`~
13336 test -d \$dldir || mkdir -p \$dldir~
13337 $install_prog $dir/$dlname \$dldir/$dlname~
13338 chmod a+x \$dldir/$dlname'
13339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13340 dlpath=$dir/\$dldll~
13341 $rm \$dlpath'
13342 shlibpath_overrides_runpath=yes
13344 case $host_os in
13345 cygwin*)
13346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13347 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13348 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13350 mingw*)
13351 # MinGW DLLs use traditional 'lib' prefix
13352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13354 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13355 # It is most probably a Windows format PATH printed by
13356 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13357 # path with ; separators, and with drive letters. We can handle the
13358 # drive letters (cygwin fileutils understands them), so leave them,
13359 # especially as we might pass files found there to a mingw objdump,
13360 # which wouldn't understand a cygwinified path. Ahh.
13361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13362 else
13363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13366 pw32*)
13367 # pw32 DLLs use 'pw' prefix rather than 'lib'
13368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13370 esac
13374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13376 esac
13377 dynamic_linker='Win32 ld.exe'
13378 # FIXME: first we should search . and the directory the executable is in
13379 shlibpath_var=PATH
13382 darwin* | rhapsody*)
13383 dynamic_linker="$host_os dyld"
13384 version_type=darwin
13385 need_lib_prefix=no
13386 need_version=no
13387 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13388 soname_spec='${libname}${release}${major}$shared_ext'
13389 shlibpath_overrides_runpath=yes
13390 shlibpath_var=DYLD_LIBRARY_PATH
13391 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13396 dgux*)
13397 version_type=linux
13398 need_lib_prefix=no
13399 need_version=no
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13405 freebsd1*)
13406 dynamic_linker=no
13409 freebsd* | dragonfly*)
13410 # DragonFly does not have aout. When/if they implement a new
13411 # versioning mechanism, adjust this.
13412 if test -x /usr/bin/objformat; then
13413 objformat=`/usr/bin/objformat`
13414 else
13415 case $host_os in
13416 freebsd[123]*) objformat=aout ;;
13417 *) objformat=elf ;;
13418 esac
13420 # Handle Gentoo/FreeBSD as it was Linux
13421 case $host_vendor in
13422 gentoo)
13423 version_type=linux ;;
13425 version_type=freebsd-$objformat ;;
13426 esac
13428 case $version_type in
13429 freebsd-elf*)
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13431 need_version=no
13432 need_lib_prefix=no
13434 freebsd-*)
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13436 need_version=yes
13438 linux)
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13440 soname_spec='${libname}${release}${shared_ext}$major'
13441 need_lib_prefix=no
13442 need_version=no
13444 esac
13445 shlibpath_var=LD_LIBRARY_PATH
13446 case $host_os in
13447 freebsd2*)
13448 shlibpath_overrides_runpath=yes
13450 freebsd3.[01]* | freebsdelf3.[01]*)
13451 shlibpath_overrides_runpath=yes
13452 hardcode_into_libs=yes
13454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13456 shlibpath_overrides_runpath=no
13457 hardcode_into_libs=yes
13459 *) # from 4.6 on, and DragonFly
13460 shlibpath_overrides_runpath=yes
13461 hardcode_into_libs=yes
13463 esac
13466 gnu*)
13467 version_type=linux
13468 need_lib_prefix=no
13469 need_version=no
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13471 soname_spec='${libname}${release}${shared_ext}$major'
13472 shlibpath_var=LD_LIBRARY_PATH
13473 hardcode_into_libs=yes
13476 hpux9* | hpux10* | hpux11*)
13477 # Give a soname corresponding to the major version so that dld.sl refuses to
13478 # link against other versions.
13479 version_type=sunos
13480 need_lib_prefix=no
13481 need_version=no
13482 case $host_cpu in
13483 ia64*)
13484 shrext_cmds='.so'
13485 hardcode_into_libs=yes
13486 dynamic_linker="$host_os dld.so"
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 soname_spec='${libname}${release}${shared_ext}$major'
13491 if test "X$HPUX_IA64_MODE" = X32; then
13492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13493 else
13494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13498 hppa*64*)
13499 shrext_cmds='.sl'
13500 hardcode_into_libs=yes
13501 dynamic_linker="$host_os dld.sl"
13502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
13506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13510 shrext_cmds='.sl'
13511 dynamic_linker="$host_os dld.sl"
13512 shlibpath_var=SHLIB_PATH
13513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13517 esac
13518 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13519 postinstall_cmds='chmod 555 $lib'
13522 interix[3-9]*)
13523 version_type=linux
13524 need_lib_prefix=no
13525 need_version=no
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13529 shlibpath_var=LD_LIBRARY_PATH
13530 shlibpath_overrides_runpath=no
13531 hardcode_into_libs=yes
13534 irix5* | irix6* | nonstopux*)
13535 case $host_os in
13536 nonstopux*) version_type=nonstopux ;;
13538 if test "$lt_cv_prog_gnu_ld" = yes; then
13539 version_type=linux
13540 else
13541 version_type=irix
13542 fi ;;
13543 esac
13544 need_lib_prefix=no
13545 need_version=no
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13548 case $host_os in
13549 irix5* | nonstopux*)
13550 libsuff= shlibsuff=
13553 case $LD in # libtool.m4 will add one of these switches to LD
13554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13555 libsuff= shlibsuff= libmagic=32-bit;;
13556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13557 libsuff=32 shlibsuff=N32 libmagic=N32;;
13558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13560 *) libsuff= shlibsuff= libmagic=never-match;;
13561 esac
13563 esac
13564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13565 shlibpath_overrides_runpath=no
13566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13568 hardcode_into_libs=yes
13571 # No shared lib support for Linux oldld, aout, or coff.
13572 linux*oldld* | linux*aout* | linux*coff*)
13573 dynamic_linker=no
13576 # This must be Linux ELF.
13577 linux* | k*bsd*-gnu)
13578 version_type=linux
13579 need_lib_prefix=no
13580 need_version=no
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13582 soname_spec='${libname}${release}${shared_ext}$major'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=no
13586 # This implies no fast_install, which is unacceptable.
13587 # Some rework will be needed to allow for fast_install
13588 # before this can be enabled.
13589 hardcode_into_libs=yes
13591 # Append ld.so.conf contents to the search path
13592 if test -f /etc/ld.so.conf; then
13593 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' ' '`
13594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13597 # We used to test for /lib/ld.so.1 and disable shared libraries on
13598 # powerpc, because MkLinux only supported shared libraries with the
13599 # GNU dynamic linker. Since this was broken with cross compilers,
13600 # most powerpc-linux boxes support dynamic linking these days and
13601 # people can always --disable-shared, the test was removed, and we
13602 # assume the GNU/Linux dynamic linker is in use.
13603 dynamic_linker='GNU/Linux ld.so'
13606 netbsd*)
13607 version_type=sunos
13608 need_lib_prefix=no
13609 need_version=no
13610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13613 dynamic_linker='NetBSD (a.out) ld.so'
13614 else
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 dynamic_linker='NetBSD ld.elf_so'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 shlibpath_overrides_runpath=yes
13621 hardcode_into_libs=yes
13624 newsos6)
13625 version_type=linux
13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627 shlibpath_var=LD_LIBRARY_PATH
13628 shlibpath_overrides_runpath=yes
13631 nto-qnx*)
13632 version_type=linux
13633 need_lib_prefix=no
13634 need_version=no
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes
13641 openbsd*)
13642 version_type=sunos
13643 sys_lib_dlsearch_path_spec="/usr/lib"
13644 need_lib_prefix=no
13645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13646 case $host_os in
13647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13648 *) need_version=no ;;
13649 esac
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13652 shlibpath_var=LD_LIBRARY_PATH
13653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13654 case $host_os in
13655 openbsd2.[89] | openbsd2.[89].*)
13656 shlibpath_overrides_runpath=no
13659 shlibpath_overrides_runpath=yes
13661 esac
13662 else
13663 shlibpath_overrides_runpath=yes
13667 os2*)
13668 libname_spec='$name'
13669 shrext_cmds=".dll"
13670 need_lib_prefix=no
13671 library_names_spec='$libname${shared_ext} $libname.a'
13672 dynamic_linker='OS/2 ld.exe'
13673 shlibpath_var=LIBPATH
13676 osf3* | osf4* | osf5*)
13677 version_type=osf
13678 need_lib_prefix=no
13679 need_version=no
13680 soname_spec='${libname}${release}${shared_ext}$major'
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682 shlibpath_var=LD_LIBRARY_PATH
13683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13687 rdos*)
13688 dynamic_linker=no
13691 solaris*)
13692 version_type=linux
13693 need_lib_prefix=no
13694 need_version=no
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696 soname_spec='${libname}${release}${shared_ext}$major'
13697 shlibpath_var=LD_LIBRARY_PATH
13698 shlibpath_overrides_runpath=yes
13699 hardcode_into_libs=yes
13700 # ldd complains unless libraries are executable
13701 postinstall_cmds='chmod +x $lib'
13704 sunos4*)
13705 version_type=sunos
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=yes
13710 if test "$with_gnu_ld" = yes; then
13711 need_lib_prefix=no
13713 need_version=yes
13716 sysv4 | sysv4.3*)
13717 version_type=linux
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 case $host_vendor in
13722 sni)
13723 shlibpath_overrides_runpath=no
13724 need_lib_prefix=no
13725 export_dynamic_flag_spec='${wl}-Blargedynsym'
13726 runpath_var=LD_RUN_PATH
13728 siemens)
13729 need_lib_prefix=no
13731 motorola)
13732 need_lib_prefix=no
13733 need_version=no
13734 shlibpath_overrides_runpath=no
13735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13737 esac
13740 sysv4*MP*)
13741 if test -d /usr/nec ;then
13742 version_type=linux
13743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13744 soname_spec='$libname${shared_ext}.$major'
13745 shlibpath_var=LD_LIBRARY_PATH
13749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13750 version_type=freebsd-elf
13751 need_lib_prefix=no
13752 need_version=no
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 hardcode_into_libs=yes
13757 if test "$with_gnu_ld" = yes; then
13758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13759 shlibpath_overrides_runpath=no
13760 else
13761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13762 shlibpath_overrides_runpath=yes
13763 case $host_os in
13764 sco3.2v5*)
13765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13767 esac
13769 sys_lib_dlsearch_path_spec='/usr/lib'
13772 uts4*)
13773 version_type=linux
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 shlibpath_var=LD_LIBRARY_PATH
13780 dynamic_linker=no
13782 esac
13783 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13784 $as_echo "$dynamic_linker" >&6; }
13785 test "$dynamic_linker" = no && can_build_shared=no
13787 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13788 $as_echo_n "(cached) " >&6
13789 else
13790 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13793 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13794 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13795 $as_echo_n "(cached) " >&6
13796 else
13797 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13803 if test "$GCC" = yes; then
13804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13807 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13808 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13809 hardcode_action_CXX=
13810 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13811 test -n "$runpath_var_CXX" || \
13812 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13814 # We can hardcode non-existant directories.
13815 if test "$hardcode_direct_CXX" != no &&
13816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13817 # have to relink, otherwise we might link with an installed library
13818 # when we should be linking with a yet-to-be-installed one
13819 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13820 test "$hardcode_minus_L_CXX" != no; then
13821 # Linking always hardcodes the temporary library directory.
13822 hardcode_action_CXX=relink
13823 else
13824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13825 hardcode_action_CXX=immediate
13827 else
13828 # We cannot hardcode anything, or else we can only hardcode existing
13829 # directories.
13830 hardcode_action_CXX=unsupported
13832 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13833 $as_echo "$hardcode_action_CXX" >&6; }
13835 if test "$hardcode_action_CXX" = relink; then
13836 # Fast installation is not supported
13837 enable_fast_install=no
13838 elif test "$shlibpath_overrides_runpath" = yes ||
13839 test "$enable_shared" = no; then
13840 # Fast installation is not necessary
13841 enable_fast_install=needless
13845 # The else clause should only fire when bootstrapping the
13846 # libtool distribution, otherwise you forgot to ship ltmain.sh
13847 # with your package, and you will get complaints that there are
13848 # no rules to generate ltmain.sh.
13849 if test -f "$ltmain"; then
13850 # See if we are running on zsh, and set the options which allow our commands through
13851 # without removal of \ escapes.
13852 if test -n "${ZSH_VERSION+set}" ; then
13853 setopt NO_GLOB_SUBST
13855 # Now quote all the things that may contain metacharacters while being
13856 # careful not to overquote the AC_SUBSTed values. We take copies of the
13857 # variables and quote the copies for generation of the libtool script.
13858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13859 SED SHELL STRIP \
13860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13862 deplibs_check_method reload_flag reload_cmds need_locks \
13863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13864 lt_cv_sys_global_symbol_to_c_name_address \
13865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13866 old_postinstall_cmds old_postuninstall_cmds \
13867 compiler_CXX \
13868 CC_CXX \
13869 LD_CXX \
13870 lt_prog_compiler_wl_CXX \
13871 lt_prog_compiler_pic_CXX \
13872 lt_prog_compiler_static_CXX \
13873 lt_prog_compiler_no_builtin_flag_CXX \
13874 export_dynamic_flag_spec_CXX \
13875 thread_safe_flag_spec_CXX \
13876 whole_archive_flag_spec_CXX \
13877 enable_shared_with_static_runtimes_CXX \
13878 old_archive_cmds_CXX \
13879 old_archive_from_new_cmds_CXX \
13880 predep_objects_CXX \
13881 postdep_objects_CXX \
13882 predeps_CXX \
13883 postdeps_CXX \
13884 compiler_lib_search_path_CXX \
13885 compiler_lib_search_dirs_CXX \
13886 archive_cmds_CXX \
13887 archive_expsym_cmds_CXX \
13888 postinstall_cmds_CXX \
13889 postuninstall_cmds_CXX \
13890 old_archive_from_expsyms_cmds_CXX \
13891 allow_undefined_flag_CXX \
13892 no_undefined_flag_CXX \
13893 export_symbols_cmds_CXX \
13894 hardcode_libdir_flag_spec_CXX \
13895 hardcode_libdir_flag_spec_ld_CXX \
13896 hardcode_libdir_separator_CXX \
13897 hardcode_automatic_CXX \
13898 module_cmds_CXX \
13899 module_expsym_cmds_CXX \
13900 lt_cv_prog_compiler_c_o_CXX \
13901 fix_srcfile_path_CXX \
13902 exclude_expsyms_CXX \
13903 include_expsyms_CXX; do
13905 case $var in
13906 old_archive_cmds_CXX | \
13907 old_archive_from_new_cmds_CXX | \
13908 archive_cmds_CXX | \
13909 archive_expsym_cmds_CXX | \
13910 module_cmds_CXX | \
13911 module_expsym_cmds_CXX | \
13912 old_archive_from_expsyms_cmds_CXX | \
13913 export_symbols_cmds_CXX | \
13914 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13915 postinstall_cmds | postuninstall_cmds | \
13916 old_postinstall_cmds | old_postuninstall_cmds | \
13917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13918 # Double-quote double-evaled strings.
13919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13924 esac
13925 done
13927 case $lt_echo in
13928 *'\$0 --fallback-echo"')
13929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13931 esac
13933 cfgfile="$ofile"
13935 cat <<__EOF__ >> "$cfgfile"
13936 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13938 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13940 # Shell to use when invoking shell scripts.
13941 SHELL=$lt_SHELL
13943 # Whether or not to build shared libraries.
13944 build_libtool_libs=$enable_shared
13946 # Whether or not to build static libraries.
13947 build_old_libs=$enable_static
13949 # Whether or not to add -lc for building shared libraries.
13950 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13952 # Whether or not to disallow shared libs when runtime libs are static
13953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13955 # Whether or not to optimize for fast installation.
13956 fast_install=$enable_fast_install
13958 # The host system.
13959 host_alias=$host_alias
13960 host=$host
13961 host_os=$host_os
13963 # The build system.
13964 build_alias=$build_alias
13965 build=$build
13966 build_os=$build_os
13968 # An echo program that does not interpret backslashes.
13969 echo=$lt_echo
13971 # The archiver.
13972 AR=$lt_AR
13973 AR_FLAGS=$lt_AR_FLAGS
13975 # A C compiler.
13976 LTCC=$lt_LTCC
13978 # LTCC compiler flags.
13979 LTCFLAGS=$lt_LTCFLAGS
13981 # A language-specific compiler.
13982 CC=$lt_compiler_CXX
13984 # Is the compiler the GNU C compiler?
13985 with_gcc=$GCC_CXX
13987 # An ERE matcher.
13988 EGREP=$lt_EGREP
13990 # The linker used to build libraries.
13991 LD=$lt_LD_CXX
13993 # Whether we need hard or soft links.
13994 LN_S=$lt_LN_S
13996 # A BSD-compatible nm program.
13997 NM=$lt_NM
13999 # A symbol stripping program
14000 STRIP=$lt_STRIP
14002 # Used to examine libraries when file_magic_cmd begins "file"
14003 MAGIC_CMD=$MAGIC_CMD
14005 # Used on cygwin: DLL creation program.
14006 DLLTOOL="$DLLTOOL"
14008 # Used on cygwin: object dumper.
14009 OBJDUMP="$OBJDUMP"
14011 # Used on cygwin: assembler.
14012 AS="$AS"
14014 # The name of the directory that contains temporary libtool files.
14015 objdir=$objdir
14017 # How to create reloadable object files.
14018 reload_flag=$lt_reload_flag
14019 reload_cmds=$lt_reload_cmds
14021 # How to pass a linker flag through the compiler.
14022 wl=$lt_lt_prog_compiler_wl_CXX
14024 # Object file suffix (normally "o").
14025 objext="$ac_objext"
14027 # Old archive suffix (normally "a").
14028 libext="$libext"
14030 # Shared library suffix (normally ".so").
14031 shrext_cmds='$shrext_cmds'
14033 # Executable file suffix (normally "").
14034 exeext="$exeext"
14036 # Additional compiler flags for building library objects.
14037 pic_flag=$lt_lt_prog_compiler_pic_CXX
14038 pic_mode=$pic_mode
14040 # What is the maximum length of a command?
14041 max_cmd_len=$lt_cv_sys_max_cmd_len
14043 # Does compiler simultaneously support -c and -o options?
14044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14046 # Must we lock files when doing compilation?
14047 need_locks=$lt_need_locks
14049 # Do we need the lib prefix for modules?
14050 need_lib_prefix=$need_lib_prefix
14052 # Do we need a version for libraries?
14053 need_version=$need_version
14055 # Whether dlopen is supported.
14056 dlopen_support=$enable_dlopen
14058 # Whether dlopen of programs is supported.
14059 dlopen_self=$enable_dlopen_self
14061 # Whether dlopen of statically linked programs is supported.
14062 dlopen_self_static=$enable_dlopen_self_static
14064 # Compiler flag to prevent dynamic linking.
14065 link_static_flag=$lt_lt_prog_compiler_static_CXX
14067 # Compiler flag to turn off builtin functions.
14068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14070 # Compiler flag to allow reflexive dlopens.
14071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14073 # Compiler flag to generate shared objects directly from archives.
14074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14076 # Compiler flag to generate thread-safe objects.
14077 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14079 # Library versioning type.
14080 version_type=$version_type
14082 # Format of library name prefix.
14083 libname_spec=$lt_libname_spec
14085 # List of archive names. First name is the real one, the rest are links.
14086 # The last name is the one that the linker finds with -lNAME.
14087 library_names_spec=$lt_library_names_spec
14089 # The coded name of the library, if different from the real name.
14090 soname_spec=$lt_soname_spec
14092 # Commands used to build and install an old-style archive.
14093 RANLIB=$lt_RANLIB
14094 old_archive_cmds=$lt_old_archive_cmds_CXX
14095 old_postinstall_cmds=$lt_old_postinstall_cmds
14096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14098 # Create an old-style archive from a shared archive.
14099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14101 # Create a temporary old-style archive to link instead of a shared archive.
14102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14104 # Commands used to build and install a shared archive.
14105 archive_cmds=$lt_archive_cmds_CXX
14106 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14107 postinstall_cmds=$lt_postinstall_cmds
14108 postuninstall_cmds=$lt_postuninstall_cmds
14110 # Commands used to build a loadable module (assumed same as above if empty)
14111 module_cmds=$lt_module_cmds_CXX
14112 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14114 # Commands to strip libraries.
14115 old_striplib=$lt_old_striplib
14116 striplib=$lt_striplib
14118 # Dependencies to place before the objects being linked to create a
14119 # shared library.
14120 predep_objects=$lt_predep_objects_CXX
14122 # Dependencies to place after the objects being linked to create a
14123 # shared library.
14124 postdep_objects=$lt_postdep_objects_CXX
14126 # Dependencies to place before the objects being linked to create a
14127 # shared library.
14128 predeps=$lt_predeps_CXX
14130 # Dependencies to place after the objects being linked to create a
14131 # shared library.
14132 postdeps=$lt_postdeps_CXX
14134 # The directories searched by this compiler when creating a shared
14135 # library
14136 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14138 # The library search path used internally by the compiler when linking
14139 # a shared library.
14140 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14142 # Method to check whether dependent libraries are shared objects.
14143 deplibs_check_method=$lt_deplibs_check_method
14145 # Command to use when deplibs_check_method == file_magic.
14146 file_magic_cmd=$lt_file_magic_cmd
14148 # Flag that allows shared libraries with undefined symbols to be built.
14149 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14151 # Flag that forces no undefined symbols.
14152 no_undefined_flag=$lt_no_undefined_flag_CXX
14154 # Commands used to finish a libtool library installation in a directory.
14155 finish_cmds=$lt_finish_cmds
14157 # Same as above, but a single script fragment to be evaled but not shown.
14158 finish_eval=$lt_finish_eval
14160 # Take the output of nm and produce a listing of raw symbols and C names.
14161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14163 # Transform the output of nm in a proper C declaration
14164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14166 # Transform the output of nm in a C name address pair
14167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14169 # This is the shared library runtime path variable.
14170 runpath_var=$runpath_var
14172 # This is the shared library path variable.
14173 shlibpath_var=$shlibpath_var
14175 # Is shlibpath searched before the hard-coded library search path?
14176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14178 # How to hardcode a shared library path into an executable.
14179 hardcode_action=$hardcode_action_CXX
14181 # Whether we should hardcode library paths into libraries.
14182 hardcode_into_libs=$hardcode_into_libs
14184 # Flag to hardcode \$libdir into a binary during linking.
14185 # This must work even if \$libdir does not exist.
14186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14188 # If ld is used when linking, flag to hardcode \$libdir into
14189 # a binary during linking. This must work even if \$libdir does
14190 # not exist.
14191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14193 # Whether we need a single -rpath flag with a separated argument.
14194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14197 # resulting binary.
14198 hardcode_direct=$hardcode_direct_CXX
14200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14201 # resulting binary.
14202 hardcode_minus_L=$hardcode_minus_L_CXX
14204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14205 # the resulting binary.
14206 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14208 # Set to yes if building a shared library automatically hardcodes DIR into the library
14209 # and all subsequent libraries and executables linked against it.
14210 hardcode_automatic=$hardcode_automatic_CXX
14212 # Variables whose values should be saved in libtool wrapper scripts and
14213 # restored at relink time.
14214 variables_saved_for_relink="$variables_saved_for_relink"
14216 # Whether libtool must link a program against all its dependency libraries.
14217 link_all_deplibs=$link_all_deplibs_CXX
14219 # Compile-time system search path for libraries
14220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14222 # Run-time system search path for libraries
14223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14225 # Fix the shell variable \$srcfile for the compiler.
14226 fix_srcfile_path=$lt_fix_srcfile_path
14228 # Set to yes if exported symbols are required.
14229 always_export_symbols=$always_export_symbols_CXX
14231 # The commands to list exported symbols.
14232 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14234 # The commands to extract the exported symbol list from a shared archive.
14235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14237 # Symbols that should not be listed in the preloaded symbols.
14238 exclude_expsyms=$lt_exclude_expsyms_CXX
14240 # Symbols that must always be exported.
14241 include_expsyms=$lt_include_expsyms_CXX
14243 # ### END LIBTOOL TAG CONFIG: $tagname
14245 __EOF__
14248 else
14249 # If there is no Makefile yet, we rely on a make rule to execute
14250 # `config.status --recheck' to rerun these tests and create the
14251 # libtool script then.
14252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14253 if test -f "$ltmain_in"; then
14254 test -f Makefile && make "$ltmain"
14259 ac_ext=c
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265 CC=$lt_save_CC
14266 LDCXX=$LD
14267 LD=$lt_save_LD
14268 GCC=$lt_save_GCC
14269 with_gnu_ldcxx=$with_gnu_ld
14270 with_gnu_ld=$lt_save_with_gnu_ld
14271 lt_cv_path_LDCXX=$lt_cv_path_LD
14272 lt_cv_path_LD=$lt_save_path_LD
14273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14276 else
14277 tagname=""
14281 F77)
14282 if test -n "$F77" && test "X$F77" != "Xno"; then
14284 ac_ext=f
14285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14290 archive_cmds_need_lc_F77=no
14291 allow_undefined_flag_F77=
14292 always_export_symbols_F77=no
14293 archive_expsym_cmds_F77=
14294 export_dynamic_flag_spec_F77=
14295 hardcode_direct_F77=no
14296 hardcode_libdir_flag_spec_F77=
14297 hardcode_libdir_flag_spec_ld_F77=
14298 hardcode_libdir_separator_F77=
14299 hardcode_minus_L_F77=no
14300 hardcode_automatic_F77=no
14301 module_cmds_F77=
14302 module_expsym_cmds_F77=
14303 link_all_deplibs_F77=unknown
14304 old_archive_cmds_F77=$old_archive_cmds
14305 no_undefined_flag_F77=
14306 whole_archive_flag_spec_F77=
14307 enable_shared_with_static_runtimes_F77=no
14309 # Source file extension for f77 test sources.
14310 ac_ext=f
14312 # Object file extension for compiled f77 test sources.
14313 objext=o
14314 objext_F77=$objext
14316 # Code to be used in simple compile tests
14317 lt_simple_compile_test_code="\
14318 subroutine t
14319 return
14323 # Code to be used in simple link tests
14324 lt_simple_link_test_code="\
14325 program t
14329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14331 # If no C compiler was specified, use CC.
14332 LTCC=${LTCC-"$CC"}
14334 # If no C compiler flags were specified, use CFLAGS.
14335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14337 # Allow CC to be a program name with arguments.
14338 compiler=$CC
14341 # save warnings/boilerplate of simple test code
14342 ac_outfile=conftest.$ac_objext
14343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14345 _lt_compiler_boilerplate=`cat conftest.err`
14346 $rm conftest*
14348 ac_outfile=conftest.$ac_objext
14349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14351 _lt_linker_boilerplate=`cat conftest.err`
14352 $rm -r conftest*
14355 # Allow CC to be a program name with arguments.
14356 lt_save_CC="$CC"
14357 CC=${F77-"f77"}
14358 compiler=$CC
14359 compiler_F77=$CC
14360 for cc_temp in $compiler""; do
14361 case $cc_temp in
14362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14364 \-*) ;;
14365 *) break;;
14366 esac
14367 done
14368 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14371 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14372 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14373 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14374 $as_echo "$can_build_shared" >&6; }
14376 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14377 $as_echo_n "checking whether to build shared libraries... " >&6; }
14378 test "$can_build_shared" = "no" && enable_shared=no
14380 # On AIX, shared libraries and static libraries use the same namespace, and
14381 # are all built from PIC.
14382 case $host_os in
14383 aix3*)
14384 test "$enable_shared" = yes && enable_static=no
14385 if test -n "$RANLIB"; then
14386 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14387 postinstall_cmds='$RANLIB $lib'
14390 aix[4-9]*)
14391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14392 test "$enable_shared" = yes && enable_static=no
14395 esac
14396 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14397 $as_echo "$enable_shared" >&6; }
14399 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14400 $as_echo_n "checking whether to build static libraries... " >&6; }
14401 # Make sure either enable_shared or enable_static is yes.
14402 test "$enable_shared" = yes || enable_static=yes
14403 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14404 $as_echo "$enable_static" >&6; }
14406 GCC_F77="$G77"
14407 LD_F77="$LD"
14409 lt_prog_compiler_wl_F77=
14410 lt_prog_compiler_pic_F77=
14411 lt_prog_compiler_static_F77=
14413 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14414 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14416 if test "$GCC" = yes; then
14417 lt_prog_compiler_wl_F77='-Wl,'
14418 lt_prog_compiler_static_F77='-static'
14420 case $host_os in
14421 aix*)
14422 # All AIX code is PIC.
14423 if test "$host_cpu" = ia64; then
14424 # AIX 5 now supports IA64 processor
14425 lt_prog_compiler_static_F77='-Bstatic'
14429 amigaos*)
14430 # FIXME: we need at least 68020 code to build shared libraries, but
14431 # adding the `-m68020' flag to GCC prevents building anything better,
14432 # like `-m68040'.
14433 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14436 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14437 # PIC is the default for these OSes.
14440 mingw* | cygwin* | pw32* | os2*)
14441 # This hack is so that the source file can tell whether it is being
14442 # built for inclusion in a dll (and should export symbols for example).
14443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14444 # (--disable-auto-import) libraries
14445 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14448 darwin* | rhapsody*)
14449 # PIC is the default on this platform
14450 # Common symbols not allowed in MH_DYLIB files
14451 lt_prog_compiler_pic_F77='-fno-common'
14454 interix[3-9]*)
14455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14456 # Instead, we relocate shared libraries at runtime.
14459 msdosdjgpp*)
14460 # Just because we use GCC doesn't mean we suddenly get shared libraries
14461 # on systems that don't support them.
14462 lt_prog_compiler_can_build_shared_F77=no
14463 enable_shared=no
14466 sysv4*MP*)
14467 if test -d /usr/nec; then
14468 lt_prog_compiler_pic_F77=-Kconform_pic
14472 hpux*)
14473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14474 # not for PA HP-UX.
14475 case $host_cpu in
14476 hppa*64*|ia64*)
14477 # +Z the default
14480 lt_prog_compiler_pic_F77='-fPIC'
14482 esac
14486 lt_prog_compiler_pic_F77='-fPIC'
14488 esac
14489 else
14490 # PORTME Check for flag to pass linker flags through the system compiler.
14491 case $host_os in
14492 aix*)
14493 lt_prog_compiler_wl_F77='-Wl,'
14494 if test "$host_cpu" = ia64; then
14495 # AIX 5 now supports IA64 processor
14496 lt_prog_compiler_static_F77='-Bstatic'
14497 else
14498 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14501 darwin*)
14502 # PIC is the default on this platform
14503 # Common symbols not allowed in MH_DYLIB files
14504 case $cc_basename in
14505 xlc*)
14506 lt_prog_compiler_pic_F77='-qnocommon'
14507 lt_prog_compiler_wl_F77='-Wl,'
14509 esac
14512 mingw* | cygwin* | pw32* | os2*)
14513 # This hack is so that the source file can tell whether it is being
14514 # built for inclusion in a dll (and should export symbols for example).
14515 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14518 hpux9* | hpux10* | hpux11*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14521 # not for PA HP-UX.
14522 case $host_cpu in
14523 hppa*64*|ia64*)
14524 # +Z the default
14527 lt_prog_compiler_pic_F77='+Z'
14529 esac
14530 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14531 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14534 irix5* | irix6* | nonstopux*)
14535 lt_prog_compiler_wl_F77='-Wl,'
14536 # PIC (with -KPIC) is the default.
14537 lt_prog_compiler_static_F77='-non_shared'
14540 newsos6)
14541 lt_prog_compiler_pic_F77='-KPIC'
14542 lt_prog_compiler_static_F77='-Bstatic'
14545 linux* | k*bsd*-gnu)
14546 case $cc_basename in
14547 icc* | ecc*)
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 lt_prog_compiler_pic_F77='-KPIC'
14550 lt_prog_compiler_static_F77='-static'
14552 pgcc* | pgf77* | pgf90* | pgf95*)
14553 # Portland Group compilers (*not* the Pentium gcc compiler,
14554 # which looks to be a dead project)
14555 lt_prog_compiler_wl_F77='-Wl,'
14556 lt_prog_compiler_pic_F77='-fpic'
14557 lt_prog_compiler_static_F77='-Bstatic'
14559 ccc*)
14560 lt_prog_compiler_wl_F77='-Wl,'
14561 # All Alpha code is PIC.
14562 lt_prog_compiler_static_F77='-non_shared'
14565 case `$CC -V 2>&1 | sed 5q` in
14566 *Sun\ C*)
14567 # Sun C 5.9
14568 lt_prog_compiler_pic_F77='-KPIC'
14569 lt_prog_compiler_static_F77='-Bstatic'
14570 lt_prog_compiler_wl_F77='-Wl,'
14572 *Sun\ F*)
14573 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14574 lt_prog_compiler_pic_F77='-KPIC'
14575 lt_prog_compiler_static_F77='-Bstatic'
14576 lt_prog_compiler_wl_F77=''
14578 esac
14580 esac
14583 osf3* | osf4* | osf5*)
14584 lt_prog_compiler_wl_F77='-Wl,'
14585 # All OSF/1 code is PIC.
14586 lt_prog_compiler_static_F77='-non_shared'
14589 rdos*)
14590 lt_prog_compiler_static_F77='-non_shared'
14593 solaris*)
14594 lt_prog_compiler_pic_F77='-KPIC'
14595 lt_prog_compiler_static_F77='-Bstatic'
14596 case $cc_basename in
14597 f77* | f90* | f95*)
14598 lt_prog_compiler_wl_F77='-Qoption ld ';;
14600 lt_prog_compiler_wl_F77='-Wl,';;
14601 esac
14604 sunos4*)
14605 lt_prog_compiler_wl_F77='-Qoption ld '
14606 lt_prog_compiler_pic_F77='-PIC'
14607 lt_prog_compiler_static_F77='-Bstatic'
14610 sysv4 | sysv4.2uw2* | sysv4.3*)
14611 lt_prog_compiler_wl_F77='-Wl,'
14612 lt_prog_compiler_pic_F77='-KPIC'
14613 lt_prog_compiler_static_F77='-Bstatic'
14616 sysv4*MP*)
14617 if test -d /usr/nec ;then
14618 lt_prog_compiler_pic_F77='-Kconform_pic'
14619 lt_prog_compiler_static_F77='-Bstatic'
14623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14624 lt_prog_compiler_wl_F77='-Wl,'
14625 lt_prog_compiler_pic_F77='-KPIC'
14626 lt_prog_compiler_static_F77='-Bstatic'
14629 unicos*)
14630 lt_prog_compiler_wl_F77='-Wl,'
14631 lt_prog_compiler_can_build_shared_F77=no
14634 uts4*)
14635 lt_prog_compiler_pic_F77='-pic'
14636 lt_prog_compiler_static_F77='-Bstatic'
14640 lt_prog_compiler_can_build_shared_F77=no
14642 esac
14645 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14646 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14649 # Check to make sure the PIC flag actually works.
14651 if test -n "$lt_prog_compiler_pic_F77"; then
14653 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14654 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14655 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_pic_works_F77=no
14659 ac_outfile=conftest.$ac_objext
14660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14661 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14662 # Insert the option either (1) after the last *FLAGS variable, or
14663 # (2) before a word containing "conftest.", or (3) at the end.
14664 # Note that $ac_compile itself does not contain backslashes and begins
14665 # with a dollar sign (not a hyphen), so the echo should work correctly.
14666 # The option is referenced via a variable to avoid confusing sed.
14667 lt_compile=`echo "$ac_compile" | $SED \
14668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670 -e 's:$: $lt_compiler_flag:'`
14671 (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672 (eval "$lt_compile" 2>conftest.err)
14673 ac_status=$?
14674 cat conftest.err >&5
14675 echo "$as_me:14675: \$? = $ac_status" >&5
14676 if (exit $ac_status) && test -s "$ac_outfile"; then
14677 # The compiler can only warn and ignore the option if not recognized
14678 # So say no if there are warnings other than the usual output.
14679 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14682 lt_cv_prog_compiler_pic_works_F77=yes
14685 $rm conftest*
14688 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14689 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14691 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14692 case $lt_prog_compiler_pic_F77 in
14693 "" | " "*) ;;
14694 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14695 esac
14696 else
14697 lt_prog_compiler_pic_F77=
14698 lt_prog_compiler_can_build_shared_F77=no
14702 case $host_os in
14703 # For platforms which do not support PIC, -DPIC is meaningless:
14704 *djgpp*)
14705 lt_prog_compiler_pic_F77=
14708 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14710 esac
14713 # Check to make sure the static flag actually works.
14715 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14716 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14718 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14719 $as_echo_n "(cached) " >&6
14720 else
14721 lt_cv_prog_compiler_static_works_F77=no
14722 save_LDFLAGS="$LDFLAGS"
14723 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14724 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14725 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14726 # The linker can only warn and ignore the option if not recognized
14727 # So say no if there are warnings
14728 if test -s conftest.err; then
14729 # Append any errors to the config.log.
14730 cat conftest.err 1>&5
14731 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14733 if diff conftest.exp conftest.er2 >/dev/null; then
14734 lt_cv_prog_compiler_static_works_F77=yes
14736 else
14737 lt_cv_prog_compiler_static_works_F77=yes
14740 $rm -r conftest*
14741 LDFLAGS="$save_LDFLAGS"
14744 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14745 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14747 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14749 else
14750 lt_prog_compiler_static_F77=
14754 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14756 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14758 else
14759 lt_cv_prog_compiler_c_o_F77=no
14760 $rm -r conftest 2>/dev/null
14761 mkdir conftest
14762 cd conftest
14763 mkdir out
14764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14766 lt_compiler_flag="-o out/conftest2.$ac_objext"
14767 # Insert the option either (1) after the last *FLAGS variable, or
14768 # (2) before a word containing "conftest.", or (3) at the end.
14769 # Note that $ac_compile itself does not contain backslashes and begins
14770 # with a dollar sign (not a hyphen), so the echo should work correctly.
14771 lt_compile=`echo "$ac_compile" | $SED \
14772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14774 -e 's:$: $lt_compiler_flag:'`
14775 (eval echo "\"\$as_me:14775: $lt_compile\"" >&5)
14776 (eval "$lt_compile" 2>out/conftest.err)
14777 ac_status=$?
14778 cat out/conftest.err >&5
14779 echo "$as_me:14779: \$? = $ac_status" >&5
14780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14781 then
14782 # The compiler can only warn and ignore the option if not recognized
14783 # So say no if there are warnings
14784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14787 lt_cv_prog_compiler_c_o_F77=yes
14790 chmod u+w . 2>&5
14791 $rm conftest*
14792 # SGI C++ compiler will create directory out/ii_files/ for
14793 # template instantiation
14794 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14795 $rm out/* && rmdir out
14796 cd ..
14797 rmdir conftest
14798 $rm conftest*
14801 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14802 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14805 hard_links="nottested"
14806 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14807 # do not overwrite the value of need_locks provided by the user
14808 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14809 $as_echo_n "checking if we can lock with hard links... " >&6; }
14810 hard_links=yes
14811 $rm conftest*
14812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14813 touch conftest.a
14814 ln conftest.a conftest.b 2>&5 || hard_links=no
14815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14816 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14817 $as_echo "$hard_links" >&6; }
14818 if test "$hard_links" = no; then
14819 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14820 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14821 need_locks=warn
14823 else
14824 need_locks=no
14827 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14828 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14830 runpath_var=
14831 allow_undefined_flag_F77=
14832 enable_shared_with_static_runtimes_F77=no
14833 archive_cmds_F77=
14834 archive_expsym_cmds_F77=
14835 old_archive_From_new_cmds_F77=
14836 old_archive_from_expsyms_cmds_F77=
14837 export_dynamic_flag_spec_F77=
14838 whole_archive_flag_spec_F77=
14839 thread_safe_flag_spec_F77=
14840 hardcode_libdir_flag_spec_F77=
14841 hardcode_libdir_flag_spec_ld_F77=
14842 hardcode_libdir_separator_F77=
14843 hardcode_direct_F77=no
14844 hardcode_minus_L_F77=no
14845 hardcode_shlibpath_var_F77=unsupported
14846 link_all_deplibs_F77=unknown
14847 hardcode_automatic_F77=no
14848 module_cmds_F77=
14849 module_expsym_cmds_F77=
14850 always_export_symbols_F77=no
14851 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14852 # include_expsyms should be a list of space-separated symbols to be *always*
14853 # included in the symbol list
14854 include_expsyms_F77=
14855 # exclude_expsyms can be an extended regexp of symbols to exclude
14856 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14857 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14858 # as well as any symbol that contains `d'.
14859 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14861 # platforms (ab)use it in PIC code, but their linkers get confused if
14862 # the symbol is explicitly referenced. Since portable code cannot
14863 # rely on this symbol name, it's probably fine to never include it in
14864 # preloaded symbol tables.
14865 # Exclude shared library initialization/finalization symbols.
14866 extract_expsyms_cmds=
14867 # Just being paranoid about ensuring that cc_basename is set.
14868 for cc_temp in $compiler""; do
14869 case $cc_temp in
14870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14872 \-*) ;;
14873 *) break;;
14874 esac
14875 done
14876 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14878 case $host_os in
14879 cygwin* | mingw* | pw32*)
14880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14881 # When not using gcc, we currently assume that we are using
14882 # Microsoft Visual C++.
14883 if test "$GCC" != yes; then
14884 with_gnu_ld=no
14887 interix*)
14888 # we just hope/assume this is gcc and not c89 (= MSVC++)
14889 with_gnu_ld=yes
14891 openbsd*)
14892 with_gnu_ld=no
14894 esac
14896 ld_shlibs_F77=yes
14897 if test "$with_gnu_ld" = yes; then
14898 # If archive_cmds runs LD, not CC, wlarc should be empty
14899 wlarc='${wl}'
14901 # Set some defaults for GNU ld with shared library support. These
14902 # are reset later if shared libraries are not supported. Putting them
14903 # here allows them to be overridden if necessary.
14904 runpath_var=LD_RUN_PATH
14905 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14906 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14907 # ancient GNU ld didn't support --whole-archive et. al.
14908 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14909 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14910 else
14911 whole_archive_flag_spec_F77=
14913 supports_anon_versioning=no
14914 case `$LD -v 2>/dev/null` in
14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14916 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14917 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14918 *\ 2.11.*) ;; # other 2.11 versions
14919 *) supports_anon_versioning=yes ;;
14920 esac
14922 # See if GNU ld supports shared libraries.
14923 case $host_os in
14924 aix[3-9]*)
14925 # On AIX/PPC, the GNU linker is very broken
14926 if test "$host_cpu" != ia64; then
14927 ld_shlibs_F77=no
14928 cat <<EOF 1>&2
14930 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14931 *** to be unable to reliably create shared libraries on AIX.
14932 *** Therefore, libtool is disabling shared libraries support. If you
14933 *** really care for shared libraries, you may want to modify your PATH
14934 *** so that a non-GNU linker is found, and then restart.
14940 amigaos*)
14941 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)'
14942 hardcode_libdir_flag_spec_F77='-L$libdir'
14943 hardcode_minus_L_F77=yes
14945 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14946 # that the semantics of dynamic libraries on AmigaOS, at least up
14947 # to version 4, is to share data among multiple programs linked
14948 # with the same dynamic library. Since this doesn't match the
14949 # behavior of shared libraries on other platforms, we can't use
14950 # them.
14951 ld_shlibs_F77=no
14954 beos*)
14955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14956 allow_undefined_flag_F77=unsupported
14957 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14958 # support --undefined. This deserves some investigation. FIXME
14959 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960 else
14961 ld_shlibs_F77=no
14965 cygwin* | mingw* | pw32*)
14966 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14967 # as there is no search path for DLLs.
14968 hardcode_libdir_flag_spec_F77='-L$libdir'
14969 allow_undefined_flag_F77=unsupported
14970 always_export_symbols_F77=no
14971 enable_shared_with_static_runtimes_F77=yes
14972 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14974 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14975 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14976 # If the export-symbols file already is a .def file (1st line
14977 # is EXPORTS), use it as is; otherwise, prepend...
14978 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14979 cp $export_symbols $output_objdir/$soname.def;
14980 else
14981 echo EXPORTS > $output_objdir/$soname.def;
14982 cat $export_symbols >> $output_objdir/$soname.def;
14984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14985 else
14986 ld_shlibs_F77=no
14990 interix[3-9]*)
14991 hardcode_direct_F77=no
14992 hardcode_shlibpath_var_F77=no
14993 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14994 export_dynamic_flag_spec_F77='${wl}-E'
14995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14996 # Instead, shared libraries are loaded at an image base (0x10000000 by
14997 # default) and relocated if they conflict, which is a slow very memory
14998 # consuming and fragmenting process. To avoid this, we pick a random,
14999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15000 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15001 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'
15002 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'
15005 gnu* | linux* | k*bsd*-gnu)
15006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007 tmp_addflag=
15008 case $cc_basename,$host_cpu in
15009 pgcc*) # Portland Group C compiler
15010 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'
15011 tmp_addflag=' $pic_flag'
15013 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15014 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'
15015 tmp_addflag=' $pic_flag -Mnomain' ;;
15016 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15017 tmp_addflag=' -i_dynamic' ;;
15018 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15019 tmp_addflag=' -i_dynamic -nofor_main' ;;
15020 ifc* | ifort*) # Intel Fortran compiler
15021 tmp_addflag=' -nofor_main' ;;
15022 esac
15023 case `$CC -V 2>&1 | sed 5q` in
15024 *Sun\ C*) # Sun C 5.9
15025 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'
15026 tmp_sharedflag='-G' ;;
15027 *Sun\ F*) # Sun Fortran 8.3
15028 tmp_sharedflag='-G' ;;
15030 tmp_sharedflag='-shared' ;;
15031 esac
15032 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034 if test $supports_anon_versioning = yes; then
15035 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15037 $echo "local: *; };" >> $output_objdir/$libname.ver~
15038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15040 else
15041 ld_shlibs_F77=no
15045 netbsd*)
15046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15047 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15048 wlarc=
15049 else
15050 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15055 solaris*)
15056 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15057 ld_shlibs_F77=no
15058 cat <<EOF 1>&2
15060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15061 *** create shared libraries on Solaris systems. Therefore, libtool
15062 *** is disabling shared libraries support. We urge you to upgrade GNU
15063 *** binutils to release 2.9.1 or newer. Another option is to modify
15064 *** your PATH or compiler configuration so that the native linker is
15065 *** used, and then restart.
15068 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15069 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15070 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15071 else
15072 ld_shlibs_F77=no
15076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15077 case `$LD -v 2>&1` in
15078 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15079 ld_shlibs_F77=no
15080 cat <<_LT_EOF 1>&2
15082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15083 *** reliably create shared libraries on SCO systems. Therefore, libtool
15084 *** is disabling shared libraries support. We urge you to upgrade GNU
15085 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15086 *** your PATH or compiler configuration so that the native linker is
15087 *** used, and then restart.
15089 _LT_EOF
15092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15093 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15094 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15095 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15096 else
15097 ld_shlibs_F77=no
15100 esac
15103 sunos4*)
15104 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15105 wlarc=
15106 hardcode_direct_F77=yes
15107 hardcode_shlibpath_var_F77=no
15111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15112 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15114 else
15115 ld_shlibs_F77=no
15118 esac
15120 if test "$ld_shlibs_F77" = no; then
15121 runpath_var=
15122 hardcode_libdir_flag_spec_F77=
15123 export_dynamic_flag_spec_F77=
15124 whole_archive_flag_spec_F77=
15126 else
15127 # PORTME fill in a description of your system's linker (not GNU ld)
15128 case $host_os in
15129 aix3*)
15130 allow_undefined_flag_F77=unsupported
15131 always_export_symbols_F77=yes
15132 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'
15133 # Note: this linker hardcodes the directories in LIBPATH if there
15134 # are no directories specified by -L.
15135 hardcode_minus_L_F77=yes
15136 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15137 # Neither direct hardcoding nor static linking is supported with a
15138 # broken collect2.
15139 hardcode_direct_F77=unsupported
15143 aix[4-9]*)
15144 if test "$host_cpu" = ia64; then
15145 # On IA64, the linker does run time linking by default, so we don't
15146 # have to do anything special.
15147 aix_use_runtimelinking=no
15148 exp_sym_flag='-Bexport'
15149 no_entry_flag=""
15150 else
15151 # If we're using GNU nm, then we don't want the "-C" option.
15152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15154 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'
15155 else
15156 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'
15158 aix_use_runtimelinking=no
15160 # Test if we are trying to use run time linking or normal
15161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15162 # need to do runtime linking.
15163 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15164 for ld_flag in $LDFLAGS; do
15165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15166 aix_use_runtimelinking=yes
15167 break
15169 done
15171 esac
15173 exp_sym_flag='-bexport'
15174 no_entry_flag='-bnoentry'
15177 # When large executables or shared objects are built, AIX ld can
15178 # have problems creating the table of contents. If linking a library
15179 # or program results in "error TOC overflow" add -mminimal-toc to
15180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15183 archive_cmds_F77=''
15184 hardcode_direct_F77=yes
15185 hardcode_libdir_separator_F77=':'
15186 link_all_deplibs_F77=yes
15188 if test "$GCC" = yes; then
15189 case $host_os in aix4.[012]|aix4.[012].*)
15190 # We only want to do this on AIX 4.2 and lower, the check
15191 # below for broken collect2 doesn't work under 4.3+
15192 collect2name=`${CC} -print-prog-name=collect2`
15193 if test -f "$collect2name" && \
15194 strings "$collect2name" | grep resolve_lib_name >/dev/null
15195 then
15196 # We have reworked collect2
15198 else
15199 # We have old collect2
15200 hardcode_direct_F77=unsupported
15201 # It fails to find uninstalled libraries when the uninstalled
15202 # path is not listed in the libpath. Setting hardcode_minus_L
15203 # to unsupported forces relinking
15204 hardcode_minus_L_F77=yes
15205 hardcode_libdir_flag_spec_F77='-L$libdir'
15206 hardcode_libdir_separator_F77=
15209 esac
15210 shared_flag='-shared'
15211 if test "$aix_use_runtimelinking" = yes; then
15212 shared_flag="$shared_flag "'${wl}-G'
15214 else
15215 # not using gcc
15216 if test "$host_cpu" = ia64; then
15217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15218 # chokes on -Wl,-G. The following line is correct:
15219 shared_flag='-G'
15220 else
15221 if test "$aix_use_runtimelinking" = yes; then
15222 shared_flag='${wl}-G'
15223 else
15224 shared_flag='${wl}-bM:SRE'
15229 # It seems that -bexpall does not export symbols beginning with
15230 # underscore (_), so it is better to generate a list of symbols to export.
15231 always_export_symbols_F77=yes
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # Warning - without using the other runtime loading flags (-brtl),
15234 # -berok will link without error, but may produce a broken library.
15235 allow_undefined_flag_F77='-berok'
15236 # Determine the default libpath from the value encoded in an empty executable.
15237 cat >conftest.$ac_ext <<_ACEOF
15238 program main
15241 _ACEOF
15242 rm -f conftest.$ac_objext conftest$ac_exeext
15243 if { (ac_try="$ac_link"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247 esac
15248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15249 $as_echo "$ac_try_echo") >&5
15250 (eval "$ac_link") 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && {
15257 test -z "$ac_f77_werror_flag" ||
15258 test ! -s conftest.err
15259 } && test -s conftest$ac_exeext && {
15260 test "$cross_compiling" = yes ||
15261 $as_test_x conftest$ac_exeext
15262 }; then
15264 lt_aix_libpath_sed='
15265 /Import File Strings/,/^$/ {
15266 /^0/ {
15267 s/^0 *\(.*\)$/\1/
15271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15272 # Check for a 64-bit object if we didn't find anything.
15273 if test -z "$aix_libpath"; then
15274 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15276 else
15277 $as_echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15283 rm -rf conftest.dSYM
15284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15285 conftest$ac_exeext conftest.$ac_ext
15286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15288 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15289 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"
15290 else
15291 if test "$host_cpu" = ia64; then
15292 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15293 allow_undefined_flag_F77="-z nodefs"
15294 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"
15295 else
15296 # Determine the default libpath from the value encoded in an empty executable.
15297 cat >conftest.$ac_ext <<_ACEOF
15298 program main
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307 esac
15308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15309 $as_echo "$ac_try_echo") >&5
15310 (eval "$ac_link") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && {
15317 test -z "$ac_f77_werror_flag" ||
15318 test ! -s conftest.err
15319 } && test -s conftest$ac_exeext && {
15320 test "$cross_compiling" = yes ||
15321 $as_test_x conftest$ac_exeext
15322 }; then
15324 lt_aix_libpath_sed='
15325 /Import File Strings/,/^$/ {
15326 /^0/ {
15327 s/^0 *\(.*\)$/\1/
15331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15332 # Check for a 64-bit object if we didn't find anything.
15333 if test -z "$aix_libpath"; then
15334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15336 else
15337 $as_echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15343 rm -rf conftest.dSYM
15344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15345 conftest$ac_exeext conftest.$ac_ext
15346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15349 # Warning - without using the other run time loading flags,
15350 # -berok will link without error, but may produce a broken library.
15351 no_undefined_flag_F77=' ${wl}-bernotok'
15352 allow_undefined_flag_F77=' ${wl}-berok'
15353 # Exported symbols can be pulled into shared objects from archives
15354 whole_archive_flag_spec_F77='$convenience'
15355 archive_cmds_need_lc_F77=yes
15356 # This is similar to how AIX traditionally builds its shared libraries.
15357 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'
15362 amigaos*)
15363 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)'
15364 hardcode_libdir_flag_spec_F77='-L$libdir'
15365 hardcode_minus_L_F77=yes
15366 # see comment about different semantics on the GNU ld section
15367 ld_shlibs_F77=no
15370 bsdi[45]*)
15371 export_dynamic_flag_spec_F77=-rdynamic
15374 cygwin* | mingw* | pw32*)
15375 # When not using gcc, we currently assume that we are using
15376 # Microsoft Visual C++.
15377 # hardcode_libdir_flag_spec is actually meaningless, as there is
15378 # no search path for DLLs.
15379 hardcode_libdir_flag_spec_F77=' '
15380 allow_undefined_flag_F77=unsupported
15381 # Tell ltmain to make .lib files, not .a files.
15382 libext=lib
15383 # Tell ltmain to make .dll files, not .so files.
15384 shrext_cmds=".dll"
15385 # FIXME: Setting linknames here is a bad hack.
15386 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15387 # The linker will automatically build a .lib file if we build a DLL.
15388 old_archive_From_new_cmds_F77='true'
15389 # FIXME: Should let the user specify the lib program.
15390 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15391 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15392 enable_shared_with_static_runtimes_F77=yes
15395 darwin* | rhapsody*)
15396 case $host_os in
15397 rhapsody* | darwin1.[012])
15398 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15400 *) # Darwin 1.3 on
15401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15402 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15403 else
15404 case ${MACOSX_DEPLOYMENT_TARGET} in
15405 10.[012])
15406 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15408 10.*)
15409 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15411 esac
15414 esac
15415 archive_cmds_need_lc_F77=no
15416 hardcode_direct_F77=no
15417 hardcode_automatic_F77=yes
15418 hardcode_shlibpath_var_F77=unsupported
15419 whole_archive_flag_spec_F77=''
15420 link_all_deplibs_F77=yes
15421 if test "$GCC" = yes ; then
15422 output_verbose_link_cmd='echo'
15423 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15424 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15425 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15426 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15427 else
15428 case $cc_basename in
15429 xlc*)
15430 output_verbose_link_cmd='echo'
15431 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15432 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15434 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}'
15435 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}'
15438 ld_shlibs_F77=no
15440 esac
15444 dgux*)
15445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_libdir_flag_spec_F77='-L$libdir'
15447 hardcode_shlibpath_var_F77=no
15450 freebsd1*)
15451 ld_shlibs_F77=no
15454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15455 # support. Future versions do this automatically, but an explicit c++rt0.o
15456 # does not break anything, and helps significantly (at the cost of a little
15457 # extra space).
15458 freebsd2.2*)
15459 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15460 hardcode_libdir_flag_spec_F77='-R$libdir'
15461 hardcode_direct_F77=yes
15462 hardcode_shlibpath_var_F77=no
15465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15466 freebsd2*)
15467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15468 hardcode_direct_F77=yes
15469 hardcode_minus_L_F77=yes
15470 hardcode_shlibpath_var_F77=no
15473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15474 freebsd* | dragonfly*)
15475 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15476 hardcode_libdir_flag_spec_F77='-R$libdir'
15477 hardcode_direct_F77=yes
15478 hardcode_shlibpath_var_F77=no
15481 hpux9*)
15482 if test "$GCC" = yes; then
15483 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'
15484 else
15485 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'
15487 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488 hardcode_libdir_separator_F77=:
15489 hardcode_direct_F77=yes
15491 # hardcode_minus_L: Not really in the search PATH,
15492 # but as the default location of the library.
15493 hardcode_minus_L_F77=yes
15494 export_dynamic_flag_spec_F77='${wl}-E'
15497 hpux10*)
15498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15499 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15500 else
15501 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15503 if test "$with_gnu_ld" = no; then
15504 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15505 hardcode_libdir_separator_F77=:
15507 hardcode_direct_F77=yes
15508 export_dynamic_flag_spec_F77='${wl}-E'
15510 # hardcode_minus_L: Not really in the search PATH,
15511 # but as the default location of the library.
15512 hardcode_minus_L_F77=yes
15516 hpux11*)
15517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15518 case $host_cpu in
15519 hppa*64*)
15520 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522 ia64*)
15523 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15526 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15528 esac
15529 else
15530 case $host_cpu in
15531 hppa*64*)
15532 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 ia64*)
15535 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15538 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15540 esac
15542 if test "$with_gnu_ld" = no; then
15543 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15544 hardcode_libdir_separator_F77=:
15546 case $host_cpu in
15547 hppa*64*|ia64*)
15548 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15549 hardcode_direct_F77=no
15550 hardcode_shlibpath_var_F77=no
15553 hardcode_direct_F77=yes
15554 export_dynamic_flag_spec_F77='${wl}-E'
15556 # hardcode_minus_L: Not really in the search PATH,
15557 # but as the default location of the library.
15558 hardcode_minus_L_F77=yes
15560 esac
15564 irix5* | irix6* | nonstopux*)
15565 if test "$GCC" = yes; then
15566 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'
15567 else
15568 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'
15569 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15572 hardcode_libdir_separator_F77=:
15573 link_all_deplibs_F77=yes
15576 netbsd*)
15577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15579 else
15580 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15582 hardcode_libdir_flag_spec_F77='-R$libdir'
15583 hardcode_direct_F77=yes
15584 hardcode_shlibpath_var_F77=no
15587 newsos6)
15588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589 hardcode_direct_F77=yes
15590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15591 hardcode_libdir_separator_F77=:
15592 hardcode_shlibpath_var_F77=no
15595 openbsd*)
15596 if test -f /usr/libexec/ld.so; then
15597 hardcode_direct_F77=yes
15598 hardcode_shlibpath_var_F77=no
15599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15600 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15603 export_dynamic_flag_spec_F77='${wl}-E'
15604 else
15605 case $host_os in
15606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_libdir_flag_spec_F77='-R$libdir'
15611 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15612 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15614 esac
15616 else
15617 ld_shlibs_F77=no
15621 os2*)
15622 hardcode_libdir_flag_spec_F77='-L$libdir'
15623 hardcode_minus_L_F77=yes
15624 allow_undefined_flag_F77=unsupported
15625 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'
15626 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15629 osf3*)
15630 if test "$GCC" = yes; then
15631 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15632 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'
15633 else
15634 allow_undefined_flag_F77=' -expect_unresolved \*'
15635 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'
15637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15638 hardcode_libdir_separator_F77=:
15641 osf4* | osf5*) # as osf3* with the addition of -msym flag
15642 if test "$GCC" = yes; then
15643 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15644 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'
15645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15646 else
15647 allow_undefined_flag_F77=' -expect_unresolved \*'
15648 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'
15649 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~
15650 $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'
15652 # Both c and cxx compiler support -rpath directly
15653 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15655 hardcode_libdir_separator_F77=:
15658 solaris*)
15659 no_undefined_flag_F77=' -z text'
15660 if test "$GCC" = yes; then
15661 wlarc='${wl}'
15662 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15665 else
15666 wlarc=''
15667 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15671 hardcode_libdir_flag_spec_F77='-R$libdir'
15672 hardcode_shlibpath_var_F77=no
15673 case $host_os in
15674 solaris2.[0-5] | solaris2.[0-5].*) ;;
15676 # The compiler driver will combine and reorder linker options,
15677 # but understands `-z linker_flag'. GCC discards it without `$wl',
15678 # but is careful enough not to reorder.
15679 # Supported since Solaris 2.6 (maybe 2.5.1?)
15680 if test "$GCC" = yes; then
15681 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15682 else
15683 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15686 esac
15687 link_all_deplibs_F77=yes
15690 sunos4*)
15691 if test "x$host_vendor" = xsequent; then
15692 # Use $CC to link under sequent, because it throws in some extra .o
15693 # files that make .init and .fini sections work.
15694 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15695 else
15696 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_libdir_flag_spec_F77='-L$libdir'
15699 hardcode_direct_F77=yes
15700 hardcode_minus_L_F77=yes
15701 hardcode_shlibpath_var_F77=no
15704 sysv4)
15705 case $host_vendor in
15706 sni)
15707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_direct_F77=yes # is this really true???
15710 siemens)
15711 ## LD is ld it makes a PLAMLIB
15712 ## CC just makes a GrossModule.
15713 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15714 reload_cmds_F77='$CC -r -o $output$reload_objs'
15715 hardcode_direct_F77=no
15717 motorola)
15718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15721 esac
15722 runpath_var='LD_RUN_PATH'
15723 hardcode_shlibpath_var_F77=no
15726 sysv4.3*)
15727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_shlibpath_var_F77=no
15729 export_dynamic_flag_spec_F77='-Bexport'
15732 sysv4*MP*)
15733 if test -d /usr/nec; then
15734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_shlibpath_var_F77=no
15736 runpath_var=LD_RUN_PATH
15737 hardcode_runpath_var=yes
15738 ld_shlibs_F77=yes
15742 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15743 no_undefined_flag_F77='${wl}-z,text'
15744 archive_cmds_need_lc_F77=no
15745 hardcode_shlibpath_var_F77=no
15746 runpath_var='LD_RUN_PATH'
15748 if test "$GCC" = yes; then
15749 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 else
15752 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 sysv5* | sco3.2v5* | sco5v6*)
15758 # Note: We can NOT use -z defs as we might desire, because we do not
15759 # link with -lc, and that would cause any symbols used from libc to
15760 # always be unresolved, which means just about no library would
15761 # ever link correctly. If we're not using GNU ld we use -z text
15762 # though, which does catch some bad symbols but isn't as heavy-handed
15763 # as -z defs.
15764 no_undefined_flag_F77='${wl}-z,text'
15765 allow_undefined_flag_F77='${wl}-z,nodefs'
15766 archive_cmds_need_lc_F77=no
15767 hardcode_shlibpath_var_F77=no
15768 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15769 hardcode_libdir_separator_F77=':'
15770 link_all_deplibs_F77=yes
15771 export_dynamic_flag_spec_F77='${wl}-Bexport'
15772 runpath_var='LD_RUN_PATH'
15774 if test "$GCC" = yes; then
15775 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 else
15778 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 uts4*)
15784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_libdir_flag_spec_F77='-L$libdir'
15786 hardcode_shlibpath_var_F77=no
15790 ld_shlibs_F77=no
15792 esac
15795 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15796 $as_echo "$ld_shlibs_F77" >&6; }
15797 test "$ld_shlibs_F77" = no && can_build_shared=no
15800 # Do we need to explicitly link libc?
15802 case "x$archive_cmds_need_lc_F77" in
15803 x|xyes)
15804 # Assume -lc should be added
15805 archive_cmds_need_lc_F77=yes
15807 if test "$enable_shared" = yes && test "$GCC" = yes; then
15808 case $archive_cmds_F77 in
15809 *'~'*)
15810 # FIXME: we may have to deal with multi-command sequences.
15812 '$CC '*)
15813 # Test whether the compiler implicitly links with -lc since on some
15814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15815 # to ld, don't add -lc before -lgcc.
15816 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15818 $rm conftest*
15819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>&5
15823 ac_status=$?
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } 2>conftest.err; then
15826 soname=conftest
15827 lib=conftest
15828 libobjs=conftest.$ac_objext
15829 deplibs=
15830 wl=$lt_prog_compiler_wl_F77
15831 pic_flag=$lt_prog_compiler_pic_F77
15832 compiler_flags=-v
15833 linker_flags=-v
15834 verstring=
15835 output_objdir=.
15836 libname=conftest
15837 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15838 allow_undefined_flag_F77=
15839 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15840 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15841 ac_status=$?
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }
15844 then
15845 archive_cmds_need_lc_F77=no
15846 else
15847 archive_cmds_need_lc_F77=yes
15849 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15850 else
15851 cat conftest.err 1>&5
15853 $rm conftest*
15854 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15855 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15857 esac
15860 esac
15862 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15864 library_names_spec=
15865 libname_spec='lib$name'
15866 soname_spec=
15867 shrext_cmds=".so"
15868 postinstall_cmds=
15869 postuninstall_cmds=
15870 finish_cmds=
15871 finish_eval=
15872 shlibpath_var=
15873 shlibpath_overrides_runpath=unknown
15874 version_type=none
15875 dynamic_linker="$host_os ld.so"
15876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15878 need_lib_prefix=unknown
15879 hardcode_into_libs=no
15881 # when you set need_version to no, make sure it does not cause -set_version
15882 # flags to be left without arguments
15883 need_version=unknown
15885 case $host_os in
15886 aix3*)
15887 version_type=linux
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15889 shlibpath_var=LIBPATH
15891 # AIX 3 has no versioning support, so we append a major version to the name.
15892 soname_spec='${libname}${release}${shared_ext}$major'
15895 aix[4-9]*)
15896 version_type=linux
15897 need_lib_prefix=no
15898 need_version=no
15899 hardcode_into_libs=yes
15900 if test "$host_cpu" = ia64; then
15901 # AIX 5 supports IA64
15902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 else
15905 # With GCC up to 2.95.x, collect2 would create an import file
15906 # for dependence libraries. The import file would start with
15907 # the line `#! .'. This would cause the generated library to
15908 # depend on `.', always an invalid library. This was fixed in
15909 # development snapshots of GCC prior to 3.0.
15910 case $host_os in
15911 aix4 | aix4.[01] | aix4.[01].*)
15912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15913 echo ' yes '
15914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15916 else
15917 can_build_shared=no
15920 esac
15921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15922 # soname into executable. Probably we can add versioning support to
15923 # collect2, so additional links can be useful in future.
15924 if test "$aix_use_runtimelinking" = yes; then
15925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15926 # instead of lib<name>.a to let people know that these are not
15927 # typical AIX shared libraries.
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 else
15930 # We preserve .a as extension for shared libraries through AIX4.2
15931 # and later when we are not doing run time linking.
15932 library_names_spec='${libname}${release}.a $libname.a'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15935 shlibpath_var=LIBPATH
15939 amigaos*)
15940 library_names_spec='$libname.ixlibrary $libname.a'
15941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15942 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'
15945 beos*)
15946 library_names_spec='${libname}${shared_ext}'
15947 dynamic_linker="$host_os ld.so"
15948 shlibpath_var=LIBRARY_PATH
15951 bsdi[45]*)
15952 version_type=linux
15953 need_version=no
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15960 # the default ld.so.conf also contains /usr/contrib/lib and
15961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15962 # libtool to hard-code these into programs
15965 cygwin* | mingw* | pw32*)
15966 version_type=windows
15967 shrext_cmds=".dll"
15968 need_version=no
15969 need_lib_prefix=no
15971 case $GCC,$host_os in
15972 yes,cygwin* | yes,mingw* | yes,pw32*)
15973 library_names_spec='$libname.dll.a'
15974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15975 postinstall_cmds='base_file=`basename \${file}`~
15976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15977 dldir=$destdir/`dirname \$dlpath`~
15978 test -d \$dldir || mkdir -p \$dldir~
15979 $install_prog $dir/$dlname \$dldir/$dlname~
15980 chmod a+x \$dldir/$dlname'
15981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15982 dlpath=$dir/\$dldll~
15983 $rm \$dlpath'
15984 shlibpath_overrides_runpath=yes
15986 case $host_os in
15987 cygwin*)
15988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15992 mingw*)
15993 # MinGW DLLs use traditional 'lib' prefix
15994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15997 # It is most probably a Windows format PATH printed by
15998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15999 # path with ; separators, and with drive letters. We can handle the
16000 # drive letters (cygwin fileutils understands them), so leave them,
16001 # especially as we might pass files found there to a mingw objdump,
16002 # which wouldn't understand a cygwinified path. Ahh.
16003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16004 else
16005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16008 pw32*)
16009 # pw32 DLLs use 'pw' prefix rather than 'lib'
16010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16012 esac
16016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16018 esac
16019 dynamic_linker='Win32 ld.exe'
16020 # FIXME: first we should search . and the directory the executable is in
16021 shlibpath_var=PATH
16024 darwin* | rhapsody*)
16025 dynamic_linker="$host_os dyld"
16026 version_type=darwin
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16030 soname_spec='${libname}${release}${major}$shared_ext'
16031 shlibpath_overrides_runpath=yes
16032 shlibpath_var=DYLD_LIBRARY_PATH
16033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16038 dgux*)
16039 version_type=linux
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LD_LIBRARY_PATH
16047 freebsd1*)
16048 dynamic_linker=no
16051 freebsd* | dragonfly*)
16052 # DragonFly does not have aout. When/if they implement a new
16053 # versioning mechanism, adjust this.
16054 if test -x /usr/bin/objformat; then
16055 objformat=`/usr/bin/objformat`
16056 else
16057 case $host_os in
16058 freebsd[123]*) objformat=aout ;;
16059 *) objformat=elf ;;
16060 esac
16062 # Handle Gentoo/FreeBSD as it was Linux
16063 case $host_vendor in
16064 gentoo)
16065 version_type=linux ;;
16067 version_type=freebsd-$objformat ;;
16068 esac
16070 case $version_type in
16071 freebsd-elf*)
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16073 need_version=no
16074 need_lib_prefix=no
16076 freebsd-*)
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16078 need_version=yes
16080 linux)
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 need_lib_prefix=no
16084 need_version=no
16086 esac
16087 shlibpath_var=LD_LIBRARY_PATH
16088 case $host_os in
16089 freebsd2*)
16090 shlibpath_overrides_runpath=yes
16092 freebsd3.[01]* | freebsdelf3.[01]*)
16093 shlibpath_overrides_runpath=yes
16094 hardcode_into_libs=yes
16096 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16097 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16098 shlibpath_overrides_runpath=no
16099 hardcode_into_libs=yes
16101 *) # from 4.6 on, and DragonFly
16102 shlibpath_overrides_runpath=yes
16103 hardcode_into_libs=yes
16105 esac
16108 gnu*)
16109 version_type=linux
16110 need_lib_prefix=no
16111 need_version=no
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 hardcode_into_libs=yes
16118 hpux9* | hpux10* | hpux11*)
16119 # Give a soname corresponding to the major version so that dld.sl refuses to
16120 # link against other versions.
16121 version_type=sunos
16122 need_lib_prefix=no
16123 need_version=no
16124 case $host_cpu in
16125 ia64*)
16126 shrext_cmds='.so'
16127 hardcode_into_libs=yes
16128 dynamic_linker="$host_os dld.so"
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 if test "X$HPUX_IA64_MODE" = X32; then
16134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16135 else
16136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16140 hppa*64*)
16141 shrext_cmds='.sl'
16142 hardcode_into_libs=yes
16143 dynamic_linker="$host_os dld.sl"
16144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16152 shrext_cmds='.sl'
16153 dynamic_linker="$host_os dld.sl"
16154 shlibpath_var=SHLIB_PATH
16155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16159 esac
16160 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16161 postinstall_cmds='chmod 555 $lib'
16164 interix[3-9]*)
16165 version_type=linux
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=no
16173 hardcode_into_libs=yes
16176 irix5* | irix6* | nonstopux*)
16177 case $host_os in
16178 nonstopux*) version_type=nonstopux ;;
16180 if test "$lt_cv_prog_gnu_ld" = yes; then
16181 version_type=linux
16182 else
16183 version_type=irix
16184 fi ;;
16185 esac
16186 need_lib_prefix=no
16187 need_version=no
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16190 case $host_os in
16191 irix5* | nonstopux*)
16192 libsuff= shlibsuff=
16195 case $LD in # libtool.m4 will add one of these switches to LD
16196 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16197 libsuff= shlibsuff= libmagic=32-bit;;
16198 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16199 libsuff=32 shlibsuff=N32 libmagic=N32;;
16200 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16201 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16202 *) libsuff= shlibsuff= libmagic=never-match;;
16203 esac
16205 esac
16206 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16207 shlibpath_overrides_runpath=no
16208 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16209 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16210 hardcode_into_libs=yes
16213 # No shared lib support for Linux oldld, aout, or coff.
16214 linux*oldld* | linux*aout* | linux*coff*)
16215 dynamic_linker=no
16218 # This must be Linux ELF.
16219 linux* | k*bsd*-gnu)
16220 version_type=linux
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=no
16228 # This implies no fast_install, which is unacceptable.
16229 # Some rework will be needed to allow for fast_install
16230 # before this can be enabled.
16231 hardcode_into_libs=yes
16233 # Append ld.so.conf contents to the search path
16234 if test -f /etc/ld.so.conf; then
16235 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' ' '`
16236 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16239 # We used to test for /lib/ld.so.1 and disable shared libraries on
16240 # powerpc, because MkLinux only supported shared libraries with the
16241 # GNU dynamic linker. Since this was broken with cross compilers,
16242 # most powerpc-linux boxes support dynamic linking these days and
16243 # people can always --disable-shared, the test was removed, and we
16244 # assume the GNU/Linux dynamic linker is in use.
16245 dynamic_linker='GNU/Linux ld.so'
16248 netbsd*)
16249 version_type=sunos
16250 need_lib_prefix=no
16251 need_version=no
16252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16255 dynamic_linker='NetBSD (a.out) ld.so'
16256 else
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 dynamic_linker='NetBSD ld.elf_so'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes
16263 hardcode_into_libs=yes
16266 newsos6)
16267 version_type=linux
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=yes
16273 nto-qnx*)
16274 version_type=linux
16275 need_lib_prefix=no
16276 need_version=no
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 shlibpath_var=LD_LIBRARY_PATH
16280 shlibpath_overrides_runpath=yes
16283 openbsd*)
16284 version_type=sunos
16285 sys_lib_dlsearch_path_spec="/usr/lib"
16286 need_lib_prefix=no
16287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16288 case $host_os in
16289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16290 *) need_version=no ;;
16291 esac
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16296 case $host_os in
16297 openbsd2.[89] | openbsd2.[89].*)
16298 shlibpath_overrides_runpath=no
16301 shlibpath_overrides_runpath=yes
16303 esac
16304 else
16305 shlibpath_overrides_runpath=yes
16309 os2*)
16310 libname_spec='$name'
16311 shrext_cmds=".dll"
16312 need_lib_prefix=no
16313 library_names_spec='$libname${shared_ext} $libname.a'
16314 dynamic_linker='OS/2 ld.exe'
16315 shlibpath_var=LIBPATH
16318 osf3* | osf4* | osf5*)
16319 version_type=osf
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16329 rdos*)
16330 dynamic_linker=no
16333 solaris*)
16334 version_type=linux
16335 need_lib_prefix=no
16336 need_version=no
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=yes
16341 hardcode_into_libs=yes
16342 # ldd complains unless libraries are executable
16343 postinstall_cmds='chmod +x $lib'
16346 sunos4*)
16347 version_type=sunos
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 shlibpath_overrides_runpath=yes
16352 if test "$with_gnu_ld" = yes; then
16353 need_lib_prefix=no
16355 need_version=yes
16358 sysv4 | sysv4.3*)
16359 version_type=linux
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 case $host_vendor in
16364 sni)
16365 shlibpath_overrides_runpath=no
16366 need_lib_prefix=no
16367 export_dynamic_flag_spec='${wl}-Blargedynsym'
16368 runpath_var=LD_RUN_PATH
16370 siemens)
16371 need_lib_prefix=no
16373 motorola)
16374 need_lib_prefix=no
16375 need_version=no
16376 shlibpath_overrides_runpath=no
16377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16379 esac
16382 sysv4*MP*)
16383 if test -d /usr/nec ;then
16384 version_type=linux
16385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16386 soname_spec='$libname${shared_ext}.$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16392 version_type=freebsd-elf
16393 need_lib_prefix=no
16394 need_version=no
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 hardcode_into_libs=yes
16399 if test "$with_gnu_ld" = yes; then
16400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16401 shlibpath_overrides_runpath=no
16402 else
16403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16404 shlibpath_overrides_runpath=yes
16405 case $host_os in
16406 sco3.2v5*)
16407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16409 esac
16411 sys_lib_dlsearch_path_spec='/usr/lib'
16414 uts4*)
16415 version_type=linux
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16422 dynamic_linker=no
16424 esac
16425 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16426 $as_echo "$dynamic_linker" >&6; }
16427 test "$dynamic_linker" = no && can_build_shared=no
16429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16430 $as_echo_n "(cached) " >&6
16431 else
16432 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16435 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16436 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16437 $as_echo_n "(cached) " >&6
16438 else
16439 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16442 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16445 if test "$GCC" = yes; then
16446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16449 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16450 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16451 hardcode_action_F77=
16452 if test -n "$hardcode_libdir_flag_spec_F77" || \
16453 test -n "$runpath_var_F77" || \
16454 test "X$hardcode_automatic_F77" = "Xyes" ; then
16456 # We can hardcode non-existant directories.
16457 if test "$hardcode_direct_F77" != no &&
16458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16459 # have to relink, otherwise we might link with an installed library
16460 # when we should be linking with a yet-to-be-installed one
16461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16462 test "$hardcode_minus_L_F77" != no; then
16463 # Linking always hardcodes the temporary library directory.
16464 hardcode_action_F77=relink
16465 else
16466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16467 hardcode_action_F77=immediate
16469 else
16470 # We cannot hardcode anything, or else we can only hardcode existing
16471 # directories.
16472 hardcode_action_F77=unsupported
16474 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16475 $as_echo "$hardcode_action_F77" >&6; }
16477 if test "$hardcode_action_F77" = relink; then
16478 # Fast installation is not supported
16479 enable_fast_install=no
16480 elif test "$shlibpath_overrides_runpath" = yes ||
16481 test "$enable_shared" = no; then
16482 # Fast installation is not necessary
16483 enable_fast_install=needless
16487 # The else clause should only fire when bootstrapping the
16488 # libtool distribution, otherwise you forgot to ship ltmain.sh
16489 # with your package, and you will get complaints that there are
16490 # no rules to generate ltmain.sh.
16491 if test -f "$ltmain"; then
16492 # See if we are running on zsh, and set the options which allow our commands through
16493 # without removal of \ escapes.
16494 if test -n "${ZSH_VERSION+set}" ; then
16495 setopt NO_GLOB_SUBST
16497 # Now quote all the things that may contain metacharacters while being
16498 # careful not to overquote the AC_SUBSTed values. We take copies of the
16499 # variables and quote the copies for generation of the libtool script.
16500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16501 SED SHELL STRIP \
16502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16504 deplibs_check_method reload_flag reload_cmds need_locks \
16505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16506 lt_cv_sys_global_symbol_to_c_name_address \
16507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16508 old_postinstall_cmds old_postuninstall_cmds \
16509 compiler_F77 \
16510 CC_F77 \
16511 LD_F77 \
16512 lt_prog_compiler_wl_F77 \
16513 lt_prog_compiler_pic_F77 \
16514 lt_prog_compiler_static_F77 \
16515 lt_prog_compiler_no_builtin_flag_F77 \
16516 export_dynamic_flag_spec_F77 \
16517 thread_safe_flag_spec_F77 \
16518 whole_archive_flag_spec_F77 \
16519 enable_shared_with_static_runtimes_F77 \
16520 old_archive_cmds_F77 \
16521 old_archive_from_new_cmds_F77 \
16522 predep_objects_F77 \
16523 postdep_objects_F77 \
16524 predeps_F77 \
16525 postdeps_F77 \
16526 compiler_lib_search_path_F77 \
16527 compiler_lib_search_dirs_F77 \
16528 archive_cmds_F77 \
16529 archive_expsym_cmds_F77 \
16530 postinstall_cmds_F77 \
16531 postuninstall_cmds_F77 \
16532 old_archive_from_expsyms_cmds_F77 \
16533 allow_undefined_flag_F77 \
16534 no_undefined_flag_F77 \
16535 export_symbols_cmds_F77 \
16536 hardcode_libdir_flag_spec_F77 \
16537 hardcode_libdir_flag_spec_ld_F77 \
16538 hardcode_libdir_separator_F77 \
16539 hardcode_automatic_F77 \
16540 module_cmds_F77 \
16541 module_expsym_cmds_F77 \
16542 lt_cv_prog_compiler_c_o_F77 \
16543 fix_srcfile_path_F77 \
16544 exclude_expsyms_F77 \
16545 include_expsyms_F77; do
16547 case $var in
16548 old_archive_cmds_F77 | \
16549 old_archive_from_new_cmds_F77 | \
16550 archive_cmds_F77 | \
16551 archive_expsym_cmds_F77 | \
16552 module_cmds_F77 | \
16553 module_expsym_cmds_F77 | \
16554 old_archive_from_expsyms_cmds_F77 | \
16555 export_symbols_cmds_F77 | \
16556 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16557 postinstall_cmds | postuninstall_cmds | \
16558 old_postinstall_cmds | old_postuninstall_cmds | \
16559 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16560 # Double-quote double-evaled strings.
16561 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16566 esac
16567 done
16569 case $lt_echo in
16570 *'\$0 --fallback-echo"')
16571 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16573 esac
16575 cfgfile="$ofile"
16577 cat <<__EOF__ >> "$cfgfile"
16578 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16582 # Shell to use when invoking shell scripts.
16583 SHELL=$lt_SHELL
16585 # Whether or not to build shared libraries.
16586 build_libtool_libs=$enable_shared
16588 # Whether or not to build static libraries.
16589 build_old_libs=$enable_static
16591 # Whether or not to add -lc for building shared libraries.
16592 build_libtool_need_lc=$archive_cmds_need_lc_F77
16594 # Whether or not to disallow shared libs when runtime libs are static
16595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16597 # Whether or not to optimize for fast installation.
16598 fast_install=$enable_fast_install
16600 # The host system.
16601 host_alias=$host_alias
16602 host=$host
16603 host_os=$host_os
16605 # The build system.
16606 build_alias=$build_alias
16607 build=$build
16608 build_os=$build_os
16610 # An echo program that does not interpret backslashes.
16611 echo=$lt_echo
16613 # The archiver.
16614 AR=$lt_AR
16615 AR_FLAGS=$lt_AR_FLAGS
16617 # A C compiler.
16618 LTCC=$lt_LTCC
16620 # LTCC compiler flags.
16621 LTCFLAGS=$lt_LTCFLAGS
16623 # A language-specific compiler.
16624 CC=$lt_compiler_F77
16626 # Is the compiler the GNU C compiler?
16627 with_gcc=$GCC_F77
16629 # An ERE matcher.
16630 EGREP=$lt_EGREP
16632 # The linker used to build libraries.
16633 LD=$lt_LD_F77
16635 # Whether we need hard or soft links.
16636 LN_S=$lt_LN_S
16638 # A BSD-compatible nm program.
16639 NM=$lt_NM
16641 # A symbol stripping program
16642 STRIP=$lt_STRIP
16644 # Used to examine libraries when file_magic_cmd begins "file"
16645 MAGIC_CMD=$MAGIC_CMD
16647 # Used on cygwin: DLL creation program.
16648 DLLTOOL="$DLLTOOL"
16650 # Used on cygwin: object dumper.
16651 OBJDUMP="$OBJDUMP"
16653 # Used on cygwin: assembler.
16654 AS="$AS"
16656 # The name of the directory that contains temporary libtool files.
16657 objdir=$objdir
16659 # How to create reloadable object files.
16660 reload_flag=$lt_reload_flag
16661 reload_cmds=$lt_reload_cmds
16663 # How to pass a linker flag through the compiler.
16664 wl=$lt_lt_prog_compiler_wl_F77
16666 # Object file suffix (normally "o").
16667 objext="$ac_objext"
16669 # Old archive suffix (normally "a").
16670 libext="$libext"
16672 # Shared library suffix (normally ".so").
16673 shrext_cmds='$shrext_cmds'
16675 # Executable file suffix (normally "").
16676 exeext="$exeext"
16678 # Additional compiler flags for building library objects.
16679 pic_flag=$lt_lt_prog_compiler_pic_F77
16680 pic_mode=$pic_mode
16682 # What is the maximum length of a command?
16683 max_cmd_len=$lt_cv_sys_max_cmd_len
16685 # Does compiler simultaneously support -c and -o options?
16686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16688 # Must we lock files when doing compilation?
16689 need_locks=$lt_need_locks
16691 # Do we need the lib prefix for modules?
16692 need_lib_prefix=$need_lib_prefix
16694 # Do we need a version for libraries?
16695 need_version=$need_version
16697 # Whether dlopen is supported.
16698 dlopen_support=$enable_dlopen
16700 # Whether dlopen of programs is supported.
16701 dlopen_self=$enable_dlopen_self
16703 # Whether dlopen of statically linked programs is supported.
16704 dlopen_self_static=$enable_dlopen_self_static
16706 # Compiler flag to prevent dynamic linking.
16707 link_static_flag=$lt_lt_prog_compiler_static_F77
16709 # Compiler flag to turn off builtin functions.
16710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16712 # Compiler flag to allow reflexive dlopens.
16713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16715 # Compiler flag to generate shared objects directly from archives.
16716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16718 # Compiler flag to generate thread-safe objects.
16719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16721 # Library versioning type.
16722 version_type=$version_type
16724 # Format of library name prefix.
16725 libname_spec=$lt_libname_spec
16727 # List of archive names. First name is the real one, the rest are links.
16728 # The last name is the one that the linker finds with -lNAME.
16729 library_names_spec=$lt_library_names_spec
16731 # The coded name of the library, if different from the real name.
16732 soname_spec=$lt_soname_spec
16734 # Commands used to build and install an old-style archive.
16735 RANLIB=$lt_RANLIB
16736 old_archive_cmds=$lt_old_archive_cmds_F77
16737 old_postinstall_cmds=$lt_old_postinstall_cmds
16738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16740 # Create an old-style archive from a shared archive.
16741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16743 # Create a temporary old-style archive to link instead of a shared archive.
16744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16746 # Commands used to build and install a shared archive.
16747 archive_cmds=$lt_archive_cmds_F77
16748 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16749 postinstall_cmds=$lt_postinstall_cmds
16750 postuninstall_cmds=$lt_postuninstall_cmds
16752 # Commands used to build a loadable module (assumed same as above if empty)
16753 module_cmds=$lt_module_cmds_F77
16754 module_expsym_cmds=$lt_module_expsym_cmds_F77
16756 # Commands to strip libraries.
16757 old_striplib=$lt_old_striplib
16758 striplib=$lt_striplib
16760 # Dependencies to place before the objects being linked to create a
16761 # shared library.
16762 predep_objects=$lt_predep_objects_F77
16764 # Dependencies to place after the objects being linked to create a
16765 # shared library.
16766 postdep_objects=$lt_postdep_objects_F77
16768 # Dependencies to place before the objects being linked to create a
16769 # shared library.
16770 predeps=$lt_predeps_F77
16772 # Dependencies to place after the objects being linked to create a
16773 # shared library.
16774 postdeps=$lt_postdeps_F77
16776 # The directories searched by this compiler when creating a shared
16777 # library
16778 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16780 # The library search path used internally by the compiler when linking
16781 # a shared library.
16782 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16784 # Method to check whether dependent libraries are shared objects.
16785 deplibs_check_method=$lt_deplibs_check_method
16787 # Command to use when deplibs_check_method == file_magic.
16788 file_magic_cmd=$lt_file_magic_cmd
16790 # Flag that allows shared libraries with undefined symbols to be built.
16791 allow_undefined_flag=$lt_allow_undefined_flag_F77
16793 # Flag that forces no undefined symbols.
16794 no_undefined_flag=$lt_no_undefined_flag_F77
16796 # Commands used to finish a libtool library installation in a directory.
16797 finish_cmds=$lt_finish_cmds
16799 # Same as above, but a single script fragment to be evaled but not shown.
16800 finish_eval=$lt_finish_eval
16802 # Take the output of nm and produce a listing of raw symbols and C names.
16803 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16805 # Transform the output of nm in a proper C declaration
16806 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16808 # Transform the output of nm in a C name address pair
16809 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16811 # This is the shared library runtime path variable.
16812 runpath_var=$runpath_var
16814 # This is the shared library path variable.
16815 shlibpath_var=$shlibpath_var
16817 # Is shlibpath searched before the hard-coded library search path?
16818 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16820 # How to hardcode a shared library path into an executable.
16821 hardcode_action=$hardcode_action_F77
16823 # Whether we should hardcode library paths into libraries.
16824 hardcode_into_libs=$hardcode_into_libs
16826 # Flag to hardcode \$libdir into a binary during linking.
16827 # This must work even if \$libdir does not exist.
16828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16830 # If ld is used when linking, flag to hardcode \$libdir into
16831 # a binary during linking. This must work even if \$libdir does
16832 # not exist.
16833 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16835 # Whether we need a single -rpath flag with a separated argument.
16836 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16838 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16839 # resulting binary.
16840 hardcode_direct=$hardcode_direct_F77
16842 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16843 # resulting binary.
16844 hardcode_minus_L=$hardcode_minus_L_F77
16846 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16847 # the resulting binary.
16848 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16850 # Set to yes if building a shared library automatically hardcodes DIR into the library
16851 # and all subsequent libraries and executables linked against it.
16852 hardcode_automatic=$hardcode_automatic_F77
16854 # Variables whose values should be saved in libtool wrapper scripts and
16855 # restored at relink time.
16856 variables_saved_for_relink="$variables_saved_for_relink"
16858 # Whether libtool must link a program against all its dependency libraries.
16859 link_all_deplibs=$link_all_deplibs_F77
16861 # Compile-time system search path for libraries
16862 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16864 # Run-time system search path for libraries
16865 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16867 # Fix the shell variable \$srcfile for the compiler.
16868 fix_srcfile_path=$lt_fix_srcfile_path
16870 # Set to yes if exported symbols are required.
16871 always_export_symbols=$always_export_symbols_F77
16873 # The commands to list exported symbols.
16874 export_symbols_cmds=$lt_export_symbols_cmds_F77
16876 # The commands to extract the exported symbol list from a shared archive.
16877 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16879 # Symbols that should not be listed in the preloaded symbols.
16880 exclude_expsyms=$lt_exclude_expsyms_F77
16882 # Symbols that must always be exported.
16883 include_expsyms=$lt_include_expsyms_F77
16885 # ### END LIBTOOL TAG CONFIG: $tagname
16887 __EOF__
16890 else
16891 # If there is no Makefile yet, we rely on a make rule to execute
16892 # `config.status --recheck' to rerun these tests and create the
16893 # libtool script then.
16894 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16895 if test -f "$ltmain_in"; then
16896 test -f Makefile && make "$ltmain"
16901 ac_ext=c
16902 ac_cpp='$CPP $CPPFLAGS'
16903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16907 CC="$lt_save_CC"
16909 else
16910 tagname=""
16914 GCJ)
16915 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16918 # Source file extension for Java test sources.
16919 ac_ext=java
16921 # Object file extension for compiled Java test sources.
16922 objext=o
16923 objext_GCJ=$objext
16925 # Code to be used in simple compile tests
16926 lt_simple_compile_test_code="class foo {}"
16928 # Code to be used in simple link tests
16929 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16931 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16933 # If no C compiler was specified, use CC.
16934 LTCC=${LTCC-"$CC"}
16936 # If no C compiler flags were specified, use CFLAGS.
16937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16939 # Allow CC to be a program name with arguments.
16940 compiler=$CC
16943 # save warnings/boilerplate of simple test code
16944 ac_outfile=conftest.$ac_objext
16945 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16946 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16947 _lt_compiler_boilerplate=`cat conftest.err`
16948 $rm conftest*
16950 ac_outfile=conftest.$ac_objext
16951 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16952 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16953 _lt_linker_boilerplate=`cat conftest.err`
16954 $rm -r conftest*
16957 # Allow CC to be a program name with arguments.
16958 lt_save_CC="$CC"
16959 CC=${GCJ-"gcj"}
16960 compiler=$CC
16961 compiler_GCJ=$CC
16962 for cc_temp in $compiler""; do
16963 case $cc_temp in
16964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16966 \-*) ;;
16967 *) break;;
16968 esac
16969 done
16970 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16973 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16974 archive_cmds_need_lc_GCJ=no
16976 old_archive_cmds_GCJ=$old_archive_cmds
16979 lt_prog_compiler_no_builtin_flag_GCJ=
16981 if test "$GCC" = yes; then
16982 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16985 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16986 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16987 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16988 $as_echo_n "(cached) " >&6
16989 else
16990 lt_cv_prog_compiler_rtti_exceptions=no
16991 ac_outfile=conftest.$ac_objext
16992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16993 lt_compiler_flag="-fno-rtti -fno-exceptions"
16994 # Insert the option either (1) after the last *FLAGS variable, or
16995 # (2) before a word containing "conftest.", or (3) at the end.
16996 # Note that $ac_compile itself does not contain backslashes and begins
16997 # with a dollar sign (not a hyphen), so the echo should work correctly.
16998 # The option is referenced via a variable to avoid confusing sed.
16999 lt_compile=`echo "$ac_compile" | $SED \
17000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17002 -e 's:$: $lt_compiler_flag:'`
17003 (eval echo "\"\$as_me:17003: $lt_compile\"" >&5)
17004 (eval "$lt_compile" 2>conftest.err)
17005 ac_status=$?
17006 cat conftest.err >&5
17007 echo "$as_me:17007: \$? = $ac_status" >&5
17008 if (exit $ac_status) && test -s "$ac_outfile"; then
17009 # The compiler can only warn and ignore the option if not recognized
17010 # So say no if there are warnings other than the usual output.
17011 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17014 lt_cv_prog_compiler_rtti_exceptions=yes
17017 $rm conftest*
17020 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17021 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17023 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17024 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17025 else
17031 lt_prog_compiler_wl_GCJ=
17032 lt_prog_compiler_pic_GCJ=
17033 lt_prog_compiler_static_GCJ=
17035 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17036 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17038 if test "$GCC" = yes; then
17039 lt_prog_compiler_wl_GCJ='-Wl,'
17040 lt_prog_compiler_static_GCJ='-static'
17042 case $host_os in
17043 aix*)
17044 # All AIX code is PIC.
17045 if test "$host_cpu" = ia64; then
17046 # AIX 5 now supports IA64 processor
17047 lt_prog_compiler_static_GCJ='-Bstatic'
17051 amigaos*)
17052 # FIXME: we need at least 68020 code to build shared libraries, but
17053 # adding the `-m68020' flag to GCC prevents building anything better,
17054 # like `-m68040'.
17055 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17059 # PIC is the default for these OSes.
17062 mingw* | cygwin* | pw32* | os2*)
17063 # This hack is so that the source file can tell whether it is being
17064 # built for inclusion in a dll (and should export symbols for example).
17065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17066 # (--disable-auto-import) libraries
17070 darwin* | rhapsody*)
17071 # PIC is the default on this platform
17072 # Common symbols not allowed in MH_DYLIB files
17073 lt_prog_compiler_pic_GCJ='-fno-common'
17076 interix[3-9]*)
17077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17078 # Instead, we relocate shared libraries at runtime.
17081 msdosdjgpp*)
17082 # Just because we use GCC doesn't mean we suddenly get shared libraries
17083 # on systems that don't support them.
17084 lt_prog_compiler_can_build_shared_GCJ=no
17085 enable_shared=no
17088 sysv4*MP*)
17089 if test -d /usr/nec; then
17090 lt_prog_compiler_pic_GCJ=-Kconform_pic
17094 hpux*)
17095 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17096 # not for PA HP-UX.
17097 case $host_cpu in
17098 hppa*64*|ia64*)
17099 # +Z the default
17102 lt_prog_compiler_pic_GCJ='-fPIC'
17104 esac
17108 lt_prog_compiler_pic_GCJ='-fPIC'
17110 esac
17111 else
17112 # PORTME Check for flag to pass linker flags through the system compiler.
17113 case $host_os in
17114 aix*)
17115 lt_prog_compiler_wl_GCJ='-Wl,'
17116 if test "$host_cpu" = ia64; then
17117 # AIX 5 now supports IA64 processor
17118 lt_prog_compiler_static_GCJ='-Bstatic'
17119 else
17120 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17123 darwin*)
17124 # PIC is the default on this platform
17125 # Common symbols not allowed in MH_DYLIB files
17126 case $cc_basename in
17127 xlc*)
17128 lt_prog_compiler_pic_GCJ='-qnocommon'
17129 lt_prog_compiler_wl_GCJ='-Wl,'
17131 esac
17134 mingw* | cygwin* | pw32* | os2*)
17135 # This hack is so that the source file can tell whether it is being
17136 # built for inclusion in a dll (and should export symbols for example).
17140 hpux9* | hpux10* | hpux11*)
17141 lt_prog_compiler_wl_GCJ='-Wl,'
17142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17143 # not for PA HP-UX.
17144 case $host_cpu in
17145 hppa*64*|ia64*)
17146 # +Z the default
17149 lt_prog_compiler_pic_GCJ='+Z'
17151 esac
17152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17153 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17156 irix5* | irix6* | nonstopux*)
17157 lt_prog_compiler_wl_GCJ='-Wl,'
17158 # PIC (with -KPIC) is the default.
17159 lt_prog_compiler_static_GCJ='-non_shared'
17162 newsos6)
17163 lt_prog_compiler_pic_GCJ='-KPIC'
17164 lt_prog_compiler_static_GCJ='-Bstatic'
17167 linux* | k*bsd*-gnu)
17168 case $cc_basename in
17169 icc* | ecc*)
17170 lt_prog_compiler_wl_GCJ='-Wl,'
17171 lt_prog_compiler_pic_GCJ='-KPIC'
17172 lt_prog_compiler_static_GCJ='-static'
17174 pgcc* | pgf77* | pgf90* | pgf95*)
17175 # Portland Group compilers (*not* the Pentium gcc compiler,
17176 # which looks to be a dead project)
17177 lt_prog_compiler_wl_GCJ='-Wl,'
17178 lt_prog_compiler_pic_GCJ='-fpic'
17179 lt_prog_compiler_static_GCJ='-Bstatic'
17181 ccc*)
17182 lt_prog_compiler_wl_GCJ='-Wl,'
17183 # All Alpha code is PIC.
17184 lt_prog_compiler_static_GCJ='-non_shared'
17187 case `$CC -V 2>&1 | sed 5q` in
17188 *Sun\ C*)
17189 # Sun C 5.9
17190 lt_prog_compiler_pic_GCJ='-KPIC'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17192 lt_prog_compiler_wl_GCJ='-Wl,'
17194 *Sun\ F*)
17195 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17196 lt_prog_compiler_pic_GCJ='-KPIC'
17197 lt_prog_compiler_static_GCJ='-Bstatic'
17198 lt_prog_compiler_wl_GCJ=''
17200 esac
17202 esac
17205 osf3* | osf4* | osf5*)
17206 lt_prog_compiler_wl_GCJ='-Wl,'
17207 # All OSF/1 code is PIC.
17208 lt_prog_compiler_static_GCJ='-non_shared'
17211 rdos*)
17212 lt_prog_compiler_static_GCJ='-non_shared'
17215 solaris*)
17216 lt_prog_compiler_pic_GCJ='-KPIC'
17217 lt_prog_compiler_static_GCJ='-Bstatic'
17218 case $cc_basename in
17219 f77* | f90* | f95*)
17220 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17222 lt_prog_compiler_wl_GCJ='-Wl,';;
17223 esac
17226 sunos4*)
17227 lt_prog_compiler_wl_GCJ='-Qoption ld '
17228 lt_prog_compiler_pic_GCJ='-PIC'
17229 lt_prog_compiler_static_GCJ='-Bstatic'
17232 sysv4 | sysv4.2uw2* | sysv4.3*)
17233 lt_prog_compiler_wl_GCJ='-Wl,'
17234 lt_prog_compiler_pic_GCJ='-KPIC'
17235 lt_prog_compiler_static_GCJ='-Bstatic'
17238 sysv4*MP*)
17239 if test -d /usr/nec ;then
17240 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17241 lt_prog_compiler_static_GCJ='-Bstatic'
17245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17246 lt_prog_compiler_wl_GCJ='-Wl,'
17247 lt_prog_compiler_pic_GCJ='-KPIC'
17248 lt_prog_compiler_static_GCJ='-Bstatic'
17251 unicos*)
17252 lt_prog_compiler_wl_GCJ='-Wl,'
17253 lt_prog_compiler_can_build_shared_GCJ=no
17256 uts4*)
17257 lt_prog_compiler_pic_GCJ='-pic'
17258 lt_prog_compiler_static_GCJ='-Bstatic'
17262 lt_prog_compiler_can_build_shared_GCJ=no
17264 esac
17267 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17268 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17271 # Check to make sure the PIC flag actually works.
17273 if test -n "$lt_prog_compiler_pic_GCJ"; then
17275 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17277 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17278 $as_echo_n "(cached) " >&6
17279 else
17280 lt_cv_prog_compiler_pic_works_GCJ=no
17281 ac_outfile=conftest.$ac_objext
17282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17283 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17284 # Insert the option either (1) after the last *FLAGS variable, or
17285 # (2) before a word containing "conftest.", or (3) at the end.
17286 # Note that $ac_compile itself does not contain backslashes and begins
17287 # with a dollar sign (not a hyphen), so the echo should work correctly.
17288 # The option is referenced via a variable to avoid confusing sed.
17289 lt_compile=`echo "$ac_compile" | $SED \
17290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17292 -e 's:$: $lt_compiler_flag:'`
17293 (eval echo "\"\$as_me:17293: $lt_compile\"" >&5)
17294 (eval "$lt_compile" 2>conftest.err)
17295 ac_status=$?
17296 cat conftest.err >&5
17297 echo "$as_me:17297: \$? = $ac_status" >&5
17298 if (exit $ac_status) && test -s "$ac_outfile"; then
17299 # The compiler can only warn and ignore the option if not recognized
17300 # So say no if there are warnings other than the usual output.
17301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17304 lt_cv_prog_compiler_pic_works_GCJ=yes
17307 $rm conftest*
17310 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17311 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17313 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17314 case $lt_prog_compiler_pic_GCJ in
17315 "" | " "*) ;;
17316 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17317 esac
17318 else
17319 lt_prog_compiler_pic_GCJ=
17320 lt_prog_compiler_can_build_shared_GCJ=no
17324 case $host_os in
17325 # For platforms which do not support PIC, -DPIC is meaningless:
17326 *djgpp*)
17327 lt_prog_compiler_pic_GCJ=
17330 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17332 esac
17335 # Check to make sure the static flag actually works.
17337 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17338 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17339 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17340 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17341 $as_echo_n "(cached) " >&6
17342 else
17343 lt_cv_prog_compiler_static_works_GCJ=no
17344 save_LDFLAGS="$LDFLAGS"
17345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17348 # The linker can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test -s conftest.err; then
17351 # Append any errors to the config.log.
17352 cat conftest.err 1>&5
17353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17355 if diff conftest.exp conftest.er2 >/dev/null; then
17356 lt_cv_prog_compiler_static_works_GCJ=yes
17358 else
17359 lt_cv_prog_compiler_static_works_GCJ=yes
17362 $rm -r conftest*
17363 LDFLAGS="$save_LDFLAGS"
17366 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17367 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17369 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17371 else
17372 lt_prog_compiler_static_GCJ=
17376 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17378 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17379 $as_echo_n "(cached) " >&6
17380 else
17381 lt_cv_prog_compiler_c_o_GCJ=no
17382 $rm -r conftest 2>/dev/null
17383 mkdir conftest
17384 cd conftest
17385 mkdir out
17386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17388 lt_compiler_flag="-o out/conftest2.$ac_objext"
17389 # Insert the option either (1) after the last *FLAGS variable, or
17390 # (2) before a word containing "conftest.", or (3) at the end.
17391 # Note that $ac_compile itself does not contain backslashes and begins
17392 # with a dollar sign (not a hyphen), so the echo should work correctly.
17393 lt_compile=`echo "$ac_compile" | $SED \
17394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17396 -e 's:$: $lt_compiler_flag:'`
17397 (eval echo "\"\$as_me:17397: $lt_compile\"" >&5)
17398 (eval "$lt_compile" 2>out/conftest.err)
17399 ac_status=$?
17400 cat out/conftest.err >&5
17401 echo "$as_me:17401: \$? = $ac_status" >&5
17402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17403 then
17404 # The compiler can only warn and ignore the option if not recognized
17405 # So say no if there are warnings
17406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17409 lt_cv_prog_compiler_c_o_GCJ=yes
17412 chmod u+w . 2>&5
17413 $rm conftest*
17414 # SGI C++ compiler will create directory out/ii_files/ for
17415 # template instantiation
17416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17417 $rm out/* && rmdir out
17418 cd ..
17419 rmdir conftest
17420 $rm conftest*
17423 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17424 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17427 hard_links="nottested"
17428 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17429 # do not overwrite the value of need_locks provided by the user
17430 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17431 $as_echo_n "checking if we can lock with hard links... " >&6; }
17432 hard_links=yes
17433 $rm conftest*
17434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435 touch conftest.a
17436 ln conftest.a conftest.b 2>&5 || hard_links=no
17437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17438 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17439 $as_echo "$hard_links" >&6; }
17440 if test "$hard_links" = no; then
17441 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17442 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17443 need_locks=warn
17445 else
17446 need_locks=no
17449 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17450 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17452 runpath_var=
17453 allow_undefined_flag_GCJ=
17454 enable_shared_with_static_runtimes_GCJ=no
17455 archive_cmds_GCJ=
17456 archive_expsym_cmds_GCJ=
17457 old_archive_From_new_cmds_GCJ=
17458 old_archive_from_expsyms_cmds_GCJ=
17459 export_dynamic_flag_spec_GCJ=
17460 whole_archive_flag_spec_GCJ=
17461 thread_safe_flag_spec_GCJ=
17462 hardcode_libdir_flag_spec_GCJ=
17463 hardcode_libdir_flag_spec_ld_GCJ=
17464 hardcode_libdir_separator_GCJ=
17465 hardcode_direct_GCJ=no
17466 hardcode_minus_L_GCJ=no
17467 hardcode_shlibpath_var_GCJ=unsupported
17468 link_all_deplibs_GCJ=unknown
17469 hardcode_automatic_GCJ=no
17470 module_cmds_GCJ=
17471 module_expsym_cmds_GCJ=
17472 always_export_symbols_GCJ=no
17473 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17474 # include_expsyms should be a list of space-separated symbols to be *always*
17475 # included in the symbol list
17476 include_expsyms_GCJ=
17477 # exclude_expsyms can be an extended regexp of symbols to exclude
17478 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17480 # as well as any symbol that contains `d'.
17481 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17483 # platforms (ab)use it in PIC code, but their linkers get confused if
17484 # the symbol is explicitly referenced. Since portable code cannot
17485 # rely on this symbol name, it's probably fine to never include it in
17486 # preloaded symbol tables.
17487 # Exclude shared library initialization/finalization symbols.
17488 extract_expsyms_cmds=
17489 # Just being paranoid about ensuring that cc_basename is set.
17490 for cc_temp in $compiler""; do
17491 case $cc_temp in
17492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17494 \-*) ;;
17495 *) break;;
17496 esac
17497 done
17498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17500 case $host_os in
17501 cygwin* | mingw* | pw32*)
17502 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17503 # When not using gcc, we currently assume that we are using
17504 # Microsoft Visual C++.
17505 if test "$GCC" != yes; then
17506 with_gnu_ld=no
17509 interix*)
17510 # we just hope/assume this is gcc and not c89 (= MSVC++)
17511 with_gnu_ld=yes
17513 openbsd*)
17514 with_gnu_ld=no
17516 esac
17518 ld_shlibs_GCJ=yes
17519 if test "$with_gnu_ld" = yes; then
17520 # If archive_cmds runs LD, not CC, wlarc should be empty
17521 wlarc='${wl}'
17523 # Set some defaults for GNU ld with shared library support. These
17524 # are reset later if shared libraries are not supported. Putting them
17525 # here allows them to be overridden if necessary.
17526 runpath_var=LD_RUN_PATH
17527 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17528 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17529 # ancient GNU ld didn't support --whole-archive et. al.
17530 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17531 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17532 else
17533 whole_archive_flag_spec_GCJ=
17535 supports_anon_versioning=no
17536 case `$LD -v 2>/dev/null` in
17537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17540 *\ 2.11.*) ;; # other 2.11 versions
17541 *) supports_anon_versioning=yes ;;
17542 esac
17544 # See if GNU ld supports shared libraries.
17545 case $host_os in
17546 aix[3-9]*)
17547 # On AIX/PPC, the GNU linker is very broken
17548 if test "$host_cpu" != ia64; then
17549 ld_shlibs_GCJ=no
17550 cat <<EOF 1>&2
17552 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17553 *** to be unable to reliably create shared libraries on AIX.
17554 *** Therefore, libtool is disabling shared libraries support. If you
17555 *** really care for shared libraries, you may want to modify your PATH
17556 *** so that a non-GNU linker is found, and then restart.
17562 amigaos*)
17563 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)'
17564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17565 hardcode_minus_L_GCJ=yes
17567 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17568 # that the semantics of dynamic libraries on AmigaOS, at least up
17569 # to version 4, is to share data among multiple programs linked
17570 # with the same dynamic library. Since this doesn't match the
17571 # behavior of shared libraries on other platforms, we can't use
17572 # them.
17573 ld_shlibs_GCJ=no
17576 beos*)
17577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17578 allow_undefined_flag_GCJ=unsupported
17579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17580 # support --undefined. This deserves some investigation. FIXME
17581 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582 else
17583 ld_shlibs_GCJ=no
17587 cygwin* | mingw* | pw32*)
17588 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17589 # as there is no search path for DLLs.
17590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17591 allow_undefined_flag_GCJ=unsupported
17592 always_export_symbols_GCJ=no
17593 enable_shared_with_static_runtimes_GCJ=yes
17594 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17596 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17597 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17598 # If the export-symbols file already is a .def file (1st line
17599 # is EXPORTS), use it as is; otherwise, prepend...
17600 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17601 cp $export_symbols $output_objdir/$soname.def;
17602 else
17603 echo EXPORTS > $output_objdir/$soname.def;
17604 cat $export_symbols >> $output_objdir/$soname.def;
17606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17607 else
17608 ld_shlibs_GCJ=no
17612 interix[3-9]*)
17613 hardcode_direct_GCJ=no
17614 hardcode_shlibpath_var_GCJ=no
17615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17616 export_dynamic_flag_spec_GCJ='${wl}-E'
17617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17618 # Instead, shared libraries are loaded at an image base (0x10000000 by
17619 # default) and relocated if they conflict, which is a slow very memory
17620 # consuming and fragmenting process. To avoid this, we pick a random,
17621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17623 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'
17624 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'
17627 gnu* | linux* | k*bsd*-gnu)
17628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17629 tmp_addflag=
17630 case $cc_basename,$host_cpu in
17631 pgcc*) # Portland Group C compiler
17632 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'
17633 tmp_addflag=' $pic_flag'
17635 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17636 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'
17637 tmp_addflag=' $pic_flag -Mnomain' ;;
17638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17639 tmp_addflag=' -i_dynamic' ;;
17640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17641 tmp_addflag=' -i_dynamic -nofor_main' ;;
17642 ifc* | ifort*) # Intel Fortran compiler
17643 tmp_addflag=' -nofor_main' ;;
17644 esac
17645 case `$CC -V 2>&1 | sed 5q` in
17646 *Sun\ C*) # Sun C 5.9
17647 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'
17648 tmp_sharedflag='-G' ;;
17649 *Sun\ F*) # Sun Fortran 8.3
17650 tmp_sharedflag='-G' ;;
17652 tmp_sharedflag='-shared' ;;
17653 esac
17654 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17656 if test $supports_anon_versioning = yes; then
17657 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17659 $echo "local: *; };" >> $output_objdir/$libname.ver~
17660 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17662 else
17663 ld_shlibs_GCJ=no
17667 netbsd*)
17668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17669 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17670 wlarc=
17671 else
17672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17677 solaris*)
17678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17679 ld_shlibs_GCJ=no
17680 cat <<EOF 1>&2
17682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17683 *** create shared libraries on Solaris systems. Therefore, libtool
17684 *** is disabling shared libraries support. We urge you to upgrade GNU
17685 *** binutils to release 2.9.1 or newer. Another option is to modify
17686 *** your PATH or compiler configuration so that the native linker is
17687 *** used, and then restart.
17690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17693 else
17694 ld_shlibs_GCJ=no
17698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17699 case `$LD -v 2>&1` in
17700 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17701 ld_shlibs_GCJ=no
17702 cat <<_LT_EOF 1>&2
17704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17705 *** reliably create shared libraries on SCO systems. Therefore, libtool
17706 *** is disabling shared libraries support. We urge you to upgrade GNU
17707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17708 *** your PATH or compiler configuration so that the native linker is
17709 *** used, and then restart.
17711 _LT_EOF
17714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17715 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17716 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17717 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17718 else
17719 ld_shlibs_GCJ=no
17722 esac
17725 sunos4*)
17726 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17727 wlarc=
17728 hardcode_direct_GCJ=yes
17729 hardcode_shlibpath_var_GCJ=no
17733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17736 else
17737 ld_shlibs_GCJ=no
17740 esac
17742 if test "$ld_shlibs_GCJ" = no; then
17743 runpath_var=
17744 hardcode_libdir_flag_spec_GCJ=
17745 export_dynamic_flag_spec_GCJ=
17746 whole_archive_flag_spec_GCJ=
17748 else
17749 # PORTME fill in a description of your system's linker (not GNU ld)
17750 case $host_os in
17751 aix3*)
17752 allow_undefined_flag_GCJ=unsupported
17753 always_export_symbols_GCJ=yes
17754 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'
17755 # Note: this linker hardcodes the directories in LIBPATH if there
17756 # are no directories specified by -L.
17757 hardcode_minus_L_GCJ=yes
17758 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17759 # Neither direct hardcoding nor static linking is supported with a
17760 # broken collect2.
17761 hardcode_direct_GCJ=unsupported
17765 aix[4-9]*)
17766 if test "$host_cpu" = ia64; then
17767 # On IA64, the linker does run time linking by default, so we don't
17768 # have to do anything special.
17769 aix_use_runtimelinking=no
17770 exp_sym_flag='-Bexport'
17771 no_entry_flag=""
17772 else
17773 # If we're using GNU nm, then we don't want the "-C" option.
17774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17775 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17776 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'
17777 else
17778 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'
17780 aix_use_runtimelinking=no
17782 # Test if we are trying to use run time linking or normal
17783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17784 # need to do runtime linking.
17785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17786 for ld_flag in $LDFLAGS; do
17787 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17788 aix_use_runtimelinking=yes
17789 break
17791 done
17793 esac
17795 exp_sym_flag='-bexport'
17796 no_entry_flag='-bnoentry'
17799 # When large executables or shared objects are built, AIX ld can
17800 # have problems creating the table of contents. If linking a library
17801 # or program results in "error TOC overflow" add -mminimal-toc to
17802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17805 archive_cmds_GCJ=''
17806 hardcode_direct_GCJ=yes
17807 hardcode_libdir_separator_GCJ=':'
17808 link_all_deplibs_GCJ=yes
17810 if test "$GCC" = yes; then
17811 case $host_os in aix4.[012]|aix4.[012].*)
17812 # We only want to do this on AIX 4.2 and lower, the check
17813 # below for broken collect2 doesn't work under 4.3+
17814 collect2name=`${CC} -print-prog-name=collect2`
17815 if test -f "$collect2name" && \
17816 strings "$collect2name" | grep resolve_lib_name >/dev/null
17817 then
17818 # We have reworked collect2
17820 else
17821 # We have old collect2
17822 hardcode_direct_GCJ=unsupported
17823 # It fails to find uninstalled libraries when the uninstalled
17824 # path is not listed in the libpath. Setting hardcode_minus_L
17825 # to unsupported forces relinking
17826 hardcode_minus_L_GCJ=yes
17827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17828 hardcode_libdir_separator_GCJ=
17831 esac
17832 shared_flag='-shared'
17833 if test "$aix_use_runtimelinking" = yes; then
17834 shared_flag="$shared_flag "'${wl}-G'
17836 else
17837 # not using gcc
17838 if test "$host_cpu" = ia64; then
17839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17840 # chokes on -Wl,-G. The following line is correct:
17841 shared_flag='-G'
17842 else
17843 if test "$aix_use_runtimelinking" = yes; then
17844 shared_flag='${wl}-G'
17845 else
17846 shared_flag='${wl}-bM:SRE'
17851 # It seems that -bexpall does not export symbols beginning with
17852 # underscore (_), so it is better to generate a list of symbols to export.
17853 always_export_symbols_GCJ=yes
17854 if test "$aix_use_runtimelinking" = yes; then
17855 # Warning - without using the other runtime loading flags (-brtl),
17856 # -berok will link without error, but may produce a broken library.
17857 allow_undefined_flag_GCJ='-berok'
17858 # Determine the default libpath from the value encoded in an empty executable.
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17867 main ()
17871 return 0;
17873 _ACEOF
17874 rm -f conftest.$ac_objext conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882 (eval "$ac_link") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext && {
17892 test "$cross_compiling" = yes ||
17893 $as_test_x conftest$ac_exeext
17894 }; then
17896 lt_aix_libpath_sed='
17897 /Import File Strings/,/^$/ {
17898 /^0/ {
17899 s/^0 *\(.*\)$/\1/
17903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17904 # Check for a 64-bit object if we didn't find anything.
17905 if test -z "$aix_libpath"; then
17906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17908 else
17909 $as_echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17915 rm -rf conftest.dSYM
17916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17917 conftest$ac_exeext conftest.$ac_ext
17918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17920 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17921 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"
17922 else
17923 if test "$host_cpu" = ia64; then
17924 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17925 allow_undefined_flag_GCJ="-z nodefs"
17926 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"
17927 else
17928 # Determine the default libpath from the value encoded in an empty executable.
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h. */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17937 main ()
17941 return 0;
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17951 $as_echo "$ac_try_echo") >&5
17952 (eval "$ac_link") 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext && {
17962 test "$cross_compiling" = yes ||
17963 $as_test_x conftest$ac_exeext
17964 }; then
17966 lt_aix_libpath_sed='
17967 /Import File Strings/,/^$/ {
17968 /^0/ {
17969 s/^0 *\(.*\)$/\1/
17973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17974 # Check for a 64-bit object if we didn't find anything.
17975 if test -z "$aix_libpath"; then
17976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17978 else
17979 $as_echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17985 rm -rf conftest.dSYM
17986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17987 conftest$ac_exeext conftest.$ac_ext
17988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17990 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17991 # Warning - without using the other run time loading flags,
17992 # -berok will link without error, but may produce a broken library.
17993 no_undefined_flag_GCJ=' ${wl}-bernotok'
17994 allow_undefined_flag_GCJ=' ${wl}-berok'
17995 # Exported symbols can be pulled into shared objects from archives
17996 whole_archive_flag_spec_GCJ='$convenience'
17997 archive_cmds_need_lc_GCJ=yes
17998 # This is similar to how AIX traditionally builds its shared libraries.
17999 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'
18004 amigaos*)
18005 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)'
18006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18007 hardcode_minus_L_GCJ=yes
18008 # see comment about different semantics on the GNU ld section
18009 ld_shlibs_GCJ=no
18012 bsdi[45]*)
18013 export_dynamic_flag_spec_GCJ=-rdynamic
18016 cygwin* | mingw* | pw32*)
18017 # When not using gcc, we currently assume that we are using
18018 # Microsoft Visual C++.
18019 # hardcode_libdir_flag_spec is actually meaningless, as there is
18020 # no search path for DLLs.
18021 hardcode_libdir_flag_spec_GCJ=' '
18022 allow_undefined_flag_GCJ=unsupported
18023 # Tell ltmain to make .lib files, not .a files.
18024 libext=lib
18025 # Tell ltmain to make .dll files, not .so files.
18026 shrext_cmds=".dll"
18027 # FIXME: Setting linknames here is a bad hack.
18028 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18029 # The linker will automatically build a .lib file if we build a DLL.
18030 old_archive_From_new_cmds_GCJ='true'
18031 # FIXME: Should let the user specify the lib program.
18032 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18033 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18034 enable_shared_with_static_runtimes_GCJ=yes
18037 darwin* | rhapsody*)
18038 case $host_os in
18039 rhapsody* | darwin1.[012])
18040 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18042 *) # Darwin 1.3 on
18043 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18044 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18045 else
18046 case ${MACOSX_DEPLOYMENT_TARGET} in
18047 10.[012])
18048 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18050 10.*)
18051 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18053 esac
18056 esac
18057 archive_cmds_need_lc_GCJ=no
18058 hardcode_direct_GCJ=no
18059 hardcode_automatic_GCJ=yes
18060 hardcode_shlibpath_var_GCJ=unsupported
18061 whole_archive_flag_spec_GCJ=''
18062 link_all_deplibs_GCJ=yes
18063 if test "$GCC" = yes ; then
18064 output_verbose_link_cmd='echo'
18065 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18066 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18067 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18068 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18069 else
18070 case $cc_basename in
18071 xlc*)
18072 output_verbose_link_cmd='echo'
18073 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18074 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18075 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18076 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}'
18077 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}'
18080 ld_shlibs_GCJ=no
18082 esac
18086 dgux*)
18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18089 hardcode_shlibpath_var_GCJ=no
18092 freebsd1*)
18093 ld_shlibs_GCJ=no
18096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18097 # support. Future versions do this automatically, but an explicit c++rt0.o
18098 # does not break anything, and helps significantly (at the cost of a little
18099 # extra space).
18100 freebsd2.2*)
18101 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18103 hardcode_direct_GCJ=yes
18104 hardcode_shlibpath_var_GCJ=no
18107 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18108 freebsd2*)
18109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18110 hardcode_direct_GCJ=yes
18111 hardcode_minus_L_GCJ=yes
18112 hardcode_shlibpath_var_GCJ=no
18115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18116 freebsd* | dragonfly*)
18117 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18119 hardcode_direct_GCJ=yes
18120 hardcode_shlibpath_var_GCJ=no
18123 hpux9*)
18124 if test "$GCC" = yes; then
18125 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'
18126 else
18127 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'
18129 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18130 hardcode_libdir_separator_GCJ=:
18131 hardcode_direct_GCJ=yes
18133 # hardcode_minus_L: Not really in the search PATH,
18134 # but as the default location of the library.
18135 hardcode_minus_L_GCJ=yes
18136 export_dynamic_flag_spec_GCJ='${wl}-E'
18139 hpux10*)
18140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18141 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18142 else
18143 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18145 if test "$with_gnu_ld" = no; then
18146 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18147 hardcode_libdir_separator_GCJ=:
18149 hardcode_direct_GCJ=yes
18150 export_dynamic_flag_spec_GCJ='${wl}-E'
18152 # hardcode_minus_L: Not really in the search PATH,
18153 # but as the default location of the library.
18154 hardcode_minus_L_GCJ=yes
18158 hpux11*)
18159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18160 case $host_cpu in
18161 hppa*64*)
18162 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18164 ia64*)
18165 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18168 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18170 esac
18171 else
18172 case $host_cpu in
18173 hppa*64*)
18174 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18176 ia64*)
18177 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18180 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18182 esac
18184 if test "$with_gnu_ld" = no; then
18185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18186 hardcode_libdir_separator_GCJ=:
18188 case $host_cpu in
18189 hppa*64*|ia64*)
18190 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18191 hardcode_direct_GCJ=no
18192 hardcode_shlibpath_var_GCJ=no
18195 hardcode_direct_GCJ=yes
18196 export_dynamic_flag_spec_GCJ='${wl}-E'
18198 # hardcode_minus_L: Not really in the search PATH,
18199 # but as the default location of the library.
18200 hardcode_minus_L_GCJ=yes
18202 esac
18206 irix5* | irix6* | nonstopux*)
18207 if test "$GCC" = yes; then
18208 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'
18209 else
18210 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'
18211 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18214 hardcode_libdir_separator_GCJ=:
18215 link_all_deplibs_GCJ=yes
18218 netbsd*)
18219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18220 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18221 else
18222 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18225 hardcode_direct_GCJ=yes
18226 hardcode_shlibpath_var_GCJ=no
18229 newsos6)
18230 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231 hardcode_direct_GCJ=yes
18232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18233 hardcode_libdir_separator_GCJ=:
18234 hardcode_shlibpath_var_GCJ=no
18237 openbsd*)
18238 if test -f /usr/libexec/ld.so; then
18239 hardcode_direct_GCJ=yes
18240 hardcode_shlibpath_var_GCJ=no
18241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18245 export_dynamic_flag_spec_GCJ='${wl}-E'
18246 else
18247 case $host_os in
18248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18250 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18253 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18256 esac
18258 else
18259 ld_shlibs_GCJ=no
18263 os2*)
18264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18265 hardcode_minus_L_GCJ=yes
18266 allow_undefined_flag_GCJ=unsupported
18267 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'
18268 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18271 osf3*)
18272 if test "$GCC" = yes; then
18273 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18274 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'
18275 else
18276 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18277 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'
18279 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18280 hardcode_libdir_separator_GCJ=:
18283 osf4* | osf5*) # as osf3* with the addition of -msym flag
18284 if test "$GCC" = yes; then
18285 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18286 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'
18287 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18288 else
18289 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18290 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'
18291 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~
18292 $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'
18294 # Both c and cxx compiler support -rpath directly
18295 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18297 hardcode_libdir_separator_GCJ=:
18300 solaris*)
18301 no_undefined_flag_GCJ=' -z text'
18302 if test "$GCC" = yes; then
18303 wlarc='${wl}'
18304 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18305 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18306 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18307 else
18308 wlarc=''
18309 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18310 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18313 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18314 hardcode_shlibpath_var_GCJ=no
18315 case $host_os in
18316 solaris2.[0-5] | solaris2.[0-5].*) ;;
18318 # The compiler driver will combine and reorder linker options,
18319 # but understands `-z linker_flag'. GCC discards it without `$wl',
18320 # but is careful enough not to reorder.
18321 # Supported since Solaris 2.6 (maybe 2.5.1?)
18322 if test "$GCC" = yes; then
18323 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18324 else
18325 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18328 esac
18329 link_all_deplibs_GCJ=yes
18332 sunos4*)
18333 if test "x$host_vendor" = xsequent; then
18334 # Use $CC to link under sequent, because it throws in some extra .o
18335 # files that make .init and .fini sections work.
18336 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18337 else
18338 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18341 hardcode_direct_GCJ=yes
18342 hardcode_minus_L_GCJ=yes
18343 hardcode_shlibpath_var_GCJ=no
18346 sysv4)
18347 case $host_vendor in
18348 sni)
18349 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18350 hardcode_direct_GCJ=yes # is this really true???
18352 siemens)
18353 ## LD is ld it makes a PLAMLIB
18354 ## CC just makes a GrossModule.
18355 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18356 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18357 hardcode_direct_GCJ=no
18359 motorola)
18360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18361 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18363 esac
18364 runpath_var='LD_RUN_PATH'
18365 hardcode_shlibpath_var_GCJ=no
18368 sysv4.3*)
18369 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18370 hardcode_shlibpath_var_GCJ=no
18371 export_dynamic_flag_spec_GCJ='-Bexport'
18374 sysv4*MP*)
18375 if test -d /usr/nec; then
18376 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377 hardcode_shlibpath_var_GCJ=no
18378 runpath_var=LD_RUN_PATH
18379 hardcode_runpath_var=yes
18380 ld_shlibs_GCJ=yes
18384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18385 no_undefined_flag_GCJ='${wl}-z,text'
18386 archive_cmds_need_lc_GCJ=no
18387 hardcode_shlibpath_var_GCJ=no
18388 runpath_var='LD_RUN_PATH'
18390 if test "$GCC" = yes; then
18391 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18392 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 else
18394 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18395 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 sysv5* | sco3.2v5* | sco5v6*)
18400 # Note: We can NOT use -z defs as we might desire, because we do not
18401 # link with -lc, and that would cause any symbols used from libc to
18402 # always be unresolved, which means just about no library would
18403 # ever link correctly. If we're not using GNU ld we use -z text
18404 # though, which does catch some bad symbols but isn't as heavy-handed
18405 # as -z defs.
18406 no_undefined_flag_GCJ='${wl}-z,text'
18407 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18408 archive_cmds_need_lc_GCJ=no
18409 hardcode_shlibpath_var_GCJ=no
18410 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18411 hardcode_libdir_separator_GCJ=':'
18412 link_all_deplibs_GCJ=yes
18413 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18414 runpath_var='LD_RUN_PATH'
18416 if test "$GCC" = yes; then
18417 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18418 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18419 else
18420 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18421 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18425 uts4*)
18426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18428 hardcode_shlibpath_var_GCJ=no
18432 ld_shlibs_GCJ=no
18434 esac
18437 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18438 $as_echo "$ld_shlibs_GCJ" >&6; }
18439 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18442 # Do we need to explicitly link libc?
18444 case "x$archive_cmds_need_lc_GCJ" in
18445 x|xyes)
18446 # Assume -lc should be added
18447 archive_cmds_need_lc_GCJ=yes
18449 if test "$enable_shared" = yes && test "$GCC" = yes; then
18450 case $archive_cmds_GCJ in
18451 *'~'*)
18452 # FIXME: we may have to deal with multi-command sequences.
18454 '$CC '*)
18455 # Test whether the compiler implicitly links with -lc since on some
18456 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18457 # to ld, don't add -lc before -lgcc.
18458 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18459 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18460 $rm conftest*
18461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>&5
18465 ac_status=$?
18466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } 2>conftest.err; then
18468 soname=conftest
18469 lib=conftest
18470 libobjs=conftest.$ac_objext
18471 deplibs=
18472 wl=$lt_prog_compiler_wl_GCJ
18473 pic_flag=$lt_prog_compiler_pic_GCJ
18474 compiler_flags=-v
18475 linker_flags=-v
18476 verstring=
18477 output_objdir=.
18478 libname=conftest
18479 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18480 allow_undefined_flag_GCJ=
18481 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18482 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18483 ac_status=$?
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }
18486 then
18487 archive_cmds_need_lc_GCJ=no
18488 else
18489 archive_cmds_need_lc_GCJ=yes
18491 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18492 else
18493 cat conftest.err 1>&5
18495 $rm conftest*
18496 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18497 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18499 esac
18502 esac
18504 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18506 library_names_spec=
18507 libname_spec='lib$name'
18508 soname_spec=
18509 shrext_cmds=".so"
18510 postinstall_cmds=
18511 postuninstall_cmds=
18512 finish_cmds=
18513 finish_eval=
18514 shlibpath_var=
18515 shlibpath_overrides_runpath=unknown
18516 version_type=none
18517 dynamic_linker="$host_os ld.so"
18518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18520 need_lib_prefix=unknown
18521 hardcode_into_libs=no
18523 # when you set need_version to no, make sure it does not cause -set_version
18524 # flags to be left without arguments
18525 need_version=unknown
18527 case $host_os in
18528 aix3*)
18529 version_type=linux
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18531 shlibpath_var=LIBPATH
18533 # AIX 3 has no versioning support, so we append a major version to the name.
18534 soname_spec='${libname}${release}${shared_ext}$major'
18537 aix[4-9]*)
18538 version_type=linux
18539 need_lib_prefix=no
18540 need_version=no
18541 hardcode_into_libs=yes
18542 if test "$host_cpu" = ia64; then
18543 # AIX 5 supports IA64
18544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 else
18547 # With GCC up to 2.95.x, collect2 would create an import file
18548 # for dependence libraries. The import file would start with
18549 # the line `#! .'. This would cause the generated library to
18550 # depend on `.', always an invalid library. This was fixed in
18551 # development snapshots of GCC prior to 3.0.
18552 case $host_os in
18553 aix4 | aix4.[01] | aix4.[01].*)
18554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18555 echo ' yes '
18556 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18558 else
18559 can_build_shared=no
18562 esac
18563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18564 # soname into executable. Probably we can add versioning support to
18565 # collect2, so additional links can be useful in future.
18566 if test "$aix_use_runtimelinking" = yes; then
18567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18568 # instead of lib<name>.a to let people know that these are not
18569 # typical AIX shared libraries.
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 else
18572 # We preserve .a as extension for shared libraries through AIX4.2
18573 # and later when we are not doing run time linking.
18574 library_names_spec='${libname}${release}.a $libname.a'
18575 soname_spec='${libname}${release}${shared_ext}$major'
18577 shlibpath_var=LIBPATH
18581 amigaos*)
18582 library_names_spec='$libname.ixlibrary $libname.a'
18583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18584 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'
18587 beos*)
18588 library_names_spec='${libname}${shared_ext}'
18589 dynamic_linker="$host_os ld.so"
18590 shlibpath_var=LIBRARY_PATH
18593 bsdi[45]*)
18594 version_type=linux
18595 need_version=no
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18599 shlibpath_var=LD_LIBRARY_PATH
18600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18602 # the default ld.so.conf also contains /usr/contrib/lib and
18603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18604 # libtool to hard-code these into programs
18607 cygwin* | mingw* | pw32*)
18608 version_type=windows
18609 shrext_cmds=".dll"
18610 need_version=no
18611 need_lib_prefix=no
18613 case $GCC,$host_os in
18614 yes,cygwin* | yes,mingw* | yes,pw32*)
18615 library_names_spec='$libname.dll.a'
18616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18617 postinstall_cmds='base_file=`basename \${file}`~
18618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18619 dldir=$destdir/`dirname \$dlpath`~
18620 test -d \$dldir || mkdir -p \$dldir~
18621 $install_prog $dir/$dlname \$dldir/$dlname~
18622 chmod a+x \$dldir/$dlname'
18623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18624 dlpath=$dir/\$dldll~
18625 $rm \$dlpath'
18626 shlibpath_overrides_runpath=yes
18628 case $host_os in
18629 cygwin*)
18630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18634 mingw*)
18635 # MinGW DLLs use traditional 'lib' prefix
18636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18639 # It is most probably a Windows format PATH printed by
18640 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18641 # path with ; separators, and with drive letters. We can handle the
18642 # drive letters (cygwin fileutils understands them), so leave them,
18643 # especially as we might pass files found there to a mingw objdump,
18644 # which wouldn't understand a cygwinified path. Ahh.
18645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18646 else
18647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18650 pw32*)
18651 # pw32 DLLs use 'pw' prefix rather than 'lib'
18652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18654 esac
18658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18660 esac
18661 dynamic_linker='Win32 ld.exe'
18662 # FIXME: first we should search . and the directory the executable is in
18663 shlibpath_var=PATH
18666 darwin* | rhapsody*)
18667 dynamic_linker="$host_os dyld"
18668 version_type=darwin
18669 need_lib_prefix=no
18670 need_version=no
18671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18672 soname_spec='${libname}${release}${major}$shared_ext'
18673 shlibpath_overrides_runpath=yes
18674 shlibpath_var=DYLD_LIBRARY_PATH
18675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18680 dgux*)
18681 version_type=linux
18682 need_lib_prefix=no
18683 need_version=no
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18685 soname_spec='${libname}${release}${shared_ext}$major'
18686 shlibpath_var=LD_LIBRARY_PATH
18689 freebsd1*)
18690 dynamic_linker=no
18693 freebsd* | dragonfly*)
18694 # DragonFly does not have aout. When/if they implement a new
18695 # versioning mechanism, adjust this.
18696 if test -x /usr/bin/objformat; then
18697 objformat=`/usr/bin/objformat`
18698 else
18699 case $host_os in
18700 freebsd[123]*) objformat=aout ;;
18701 *) objformat=elf ;;
18702 esac
18704 # Handle Gentoo/FreeBSD as it was Linux
18705 case $host_vendor in
18706 gentoo)
18707 version_type=linux ;;
18709 version_type=freebsd-$objformat ;;
18710 esac
18712 case $version_type in
18713 freebsd-elf*)
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18715 need_version=no
18716 need_lib_prefix=no
18718 freebsd-*)
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18720 need_version=yes
18722 linux)
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 need_lib_prefix=no
18726 need_version=no
18728 esac
18729 shlibpath_var=LD_LIBRARY_PATH
18730 case $host_os in
18731 freebsd2*)
18732 shlibpath_overrides_runpath=yes
18734 freebsd3.[01]* | freebsdelf3.[01]*)
18735 shlibpath_overrides_runpath=yes
18736 hardcode_into_libs=yes
18738 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18739 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18740 shlibpath_overrides_runpath=no
18741 hardcode_into_libs=yes
18743 *) # from 4.6 on, and DragonFly
18744 shlibpath_overrides_runpath=yes
18745 hardcode_into_libs=yes
18747 esac
18750 gnu*)
18751 version_type=linux
18752 need_lib_prefix=no
18753 need_version=no
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 hardcode_into_libs=yes
18760 hpux9* | hpux10* | hpux11*)
18761 # Give a soname corresponding to the major version so that dld.sl refuses to
18762 # link against other versions.
18763 version_type=sunos
18764 need_lib_prefix=no
18765 need_version=no
18766 case $host_cpu in
18767 ia64*)
18768 shrext_cmds='.so'
18769 hardcode_into_libs=yes
18770 dynamic_linker="$host_os dld.so"
18771 shlibpath_var=LD_LIBRARY_PATH
18772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 if test "X$HPUX_IA64_MODE" = X32; then
18776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18777 else
18778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18782 hppa*64*)
18783 shrext_cmds='.sl'
18784 hardcode_into_libs=yes
18785 dynamic_linker="$host_os dld.sl"
18786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18794 shrext_cmds='.sl'
18795 dynamic_linker="$host_os dld.sl"
18796 shlibpath_var=SHLIB_PATH
18797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799 soname_spec='${libname}${release}${shared_ext}$major'
18801 esac
18802 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18803 postinstall_cmds='chmod 555 $lib'
18806 interix[3-9]*)
18807 version_type=linux
18808 need_lib_prefix=no
18809 need_version=no
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18811 soname_spec='${libname}${release}${shared_ext}$major'
18812 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18813 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=no
18815 hardcode_into_libs=yes
18818 irix5* | irix6* | nonstopux*)
18819 case $host_os in
18820 nonstopux*) version_type=nonstopux ;;
18822 if test "$lt_cv_prog_gnu_ld" = yes; then
18823 version_type=linux
18824 else
18825 version_type=irix
18826 fi ;;
18827 esac
18828 need_lib_prefix=no
18829 need_version=no
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18832 case $host_os in
18833 irix5* | nonstopux*)
18834 libsuff= shlibsuff=
18837 case $LD in # libtool.m4 will add one of these switches to LD
18838 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18839 libsuff= shlibsuff= libmagic=32-bit;;
18840 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18841 libsuff=32 shlibsuff=N32 libmagic=N32;;
18842 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18843 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18844 *) libsuff= shlibsuff= libmagic=never-match;;
18845 esac
18847 esac
18848 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18849 shlibpath_overrides_runpath=no
18850 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18851 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18852 hardcode_into_libs=yes
18855 # No shared lib support for Linux oldld, aout, or coff.
18856 linux*oldld* | linux*aout* | linux*coff*)
18857 dynamic_linker=no
18860 # This must be Linux ELF.
18861 linux* | k*bsd*-gnu)
18862 version_type=linux
18863 need_lib_prefix=no
18864 need_version=no
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 soname_spec='${libname}${release}${shared_ext}$major'
18867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18868 shlibpath_var=LD_LIBRARY_PATH
18869 shlibpath_overrides_runpath=no
18870 # This implies no fast_install, which is unacceptable.
18871 # Some rework will be needed to allow for fast_install
18872 # before this can be enabled.
18873 hardcode_into_libs=yes
18875 # Append ld.so.conf contents to the search path
18876 if test -f /etc/ld.so.conf; then
18877 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' ' '`
18878 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18881 # We used to test for /lib/ld.so.1 and disable shared libraries on
18882 # powerpc, because MkLinux only supported shared libraries with the
18883 # GNU dynamic linker. Since this was broken with cross compilers,
18884 # most powerpc-linux boxes support dynamic linking these days and
18885 # people can always --disable-shared, the test was removed, and we
18886 # assume the GNU/Linux dynamic linker is in use.
18887 dynamic_linker='GNU/Linux ld.so'
18890 netbsd*)
18891 version_type=sunos
18892 need_lib_prefix=no
18893 need_version=no
18894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18897 dynamic_linker='NetBSD (a.out) ld.so'
18898 else
18899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18900 soname_spec='${libname}${release}${shared_ext}$major'
18901 dynamic_linker='NetBSD ld.elf_so'
18903 shlibpath_var=LD_LIBRARY_PATH
18904 shlibpath_overrides_runpath=yes
18905 hardcode_into_libs=yes
18908 newsos6)
18909 version_type=linux
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911 shlibpath_var=LD_LIBRARY_PATH
18912 shlibpath_overrides_runpath=yes
18915 nto-qnx*)
18916 version_type=linux
18917 need_lib_prefix=no
18918 need_version=no
18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18920 soname_spec='${libname}${release}${shared_ext}$major'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 shlibpath_overrides_runpath=yes
18925 openbsd*)
18926 version_type=sunos
18927 sys_lib_dlsearch_path_spec="/usr/lib"
18928 need_lib_prefix=no
18929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18930 case $host_os in
18931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18932 *) need_version=no ;;
18933 esac
18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18938 case $host_os in
18939 openbsd2.[89] | openbsd2.[89].*)
18940 shlibpath_overrides_runpath=no
18943 shlibpath_overrides_runpath=yes
18945 esac
18946 else
18947 shlibpath_overrides_runpath=yes
18951 os2*)
18952 libname_spec='$name'
18953 shrext_cmds=".dll"
18954 need_lib_prefix=no
18955 library_names_spec='$libname${shared_ext} $libname.a'
18956 dynamic_linker='OS/2 ld.exe'
18957 shlibpath_var=LIBPATH
18960 osf3* | osf4* | osf5*)
18961 version_type=osf
18962 need_lib_prefix=no
18963 need_version=no
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966 shlibpath_var=LD_LIBRARY_PATH
18967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18971 rdos*)
18972 dynamic_linker=no
18975 solaris*)
18976 version_type=linux
18977 need_lib_prefix=no
18978 need_version=no
18979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18980 soname_spec='${libname}${release}${shared_ext}$major'
18981 shlibpath_var=LD_LIBRARY_PATH
18982 shlibpath_overrides_runpath=yes
18983 hardcode_into_libs=yes
18984 # ldd complains unless libraries are executable
18985 postinstall_cmds='chmod +x $lib'
18988 sunos4*)
18989 version_type=sunos
18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18992 shlibpath_var=LD_LIBRARY_PATH
18993 shlibpath_overrides_runpath=yes
18994 if test "$with_gnu_ld" = yes; then
18995 need_lib_prefix=no
18997 need_version=yes
19000 sysv4 | sysv4.3*)
19001 version_type=linux
19002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19003 soname_spec='${libname}${release}${shared_ext}$major'
19004 shlibpath_var=LD_LIBRARY_PATH
19005 case $host_vendor in
19006 sni)
19007 shlibpath_overrides_runpath=no
19008 need_lib_prefix=no
19009 export_dynamic_flag_spec='${wl}-Blargedynsym'
19010 runpath_var=LD_RUN_PATH
19012 siemens)
19013 need_lib_prefix=no
19015 motorola)
19016 need_lib_prefix=no
19017 need_version=no
19018 shlibpath_overrides_runpath=no
19019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19021 esac
19024 sysv4*MP*)
19025 if test -d /usr/nec ;then
19026 version_type=linux
19027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19028 soname_spec='$libname${shared_ext}.$major'
19029 shlibpath_var=LD_LIBRARY_PATH
19033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19034 version_type=freebsd-elf
19035 need_lib_prefix=no
19036 need_version=no
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19038 soname_spec='${libname}${release}${shared_ext}$major'
19039 shlibpath_var=LD_LIBRARY_PATH
19040 hardcode_into_libs=yes
19041 if test "$with_gnu_ld" = yes; then
19042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19043 shlibpath_overrides_runpath=no
19044 else
19045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19046 shlibpath_overrides_runpath=yes
19047 case $host_os in
19048 sco3.2v5*)
19049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19051 esac
19053 sys_lib_dlsearch_path_spec='/usr/lib'
19056 uts4*)
19057 version_type=linux
19058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19059 soname_spec='${libname}${release}${shared_ext}$major'
19060 shlibpath_var=LD_LIBRARY_PATH
19064 dynamic_linker=no
19066 esac
19067 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19068 $as_echo "$dynamic_linker" >&6; }
19069 test "$dynamic_linker" = no && can_build_shared=no
19071 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19072 $as_echo_n "(cached) " >&6
19073 else
19074 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19077 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19079 $as_echo_n "(cached) " >&6
19080 else
19081 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19087 if test "$GCC" = yes; then
19088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19091 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19092 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19093 hardcode_action_GCJ=
19094 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19095 test -n "$runpath_var_GCJ" || \
19096 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19098 # We can hardcode non-existant directories.
19099 if test "$hardcode_direct_GCJ" != no &&
19100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19101 # have to relink, otherwise we might link with an installed library
19102 # when we should be linking with a yet-to-be-installed one
19103 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19104 test "$hardcode_minus_L_GCJ" != no; then
19105 # Linking always hardcodes the temporary library directory.
19106 hardcode_action_GCJ=relink
19107 else
19108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19109 hardcode_action_GCJ=immediate
19111 else
19112 # We cannot hardcode anything, or else we can only hardcode existing
19113 # directories.
19114 hardcode_action_GCJ=unsupported
19116 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19117 $as_echo "$hardcode_action_GCJ" >&6; }
19119 if test "$hardcode_action_GCJ" = relink; then
19120 # Fast installation is not supported
19121 enable_fast_install=no
19122 elif test "$shlibpath_overrides_runpath" = yes ||
19123 test "$enable_shared" = no; then
19124 # Fast installation is not necessary
19125 enable_fast_install=needless
19129 # The else clause should only fire when bootstrapping the
19130 # libtool distribution, otherwise you forgot to ship ltmain.sh
19131 # with your package, and you will get complaints that there are
19132 # no rules to generate ltmain.sh.
19133 if test -f "$ltmain"; then
19134 # See if we are running on zsh, and set the options which allow our commands through
19135 # without removal of \ escapes.
19136 if test -n "${ZSH_VERSION+set}" ; then
19137 setopt NO_GLOB_SUBST
19139 # Now quote all the things that may contain metacharacters while being
19140 # careful not to overquote the AC_SUBSTed values. We take copies of the
19141 # variables and quote the copies for generation of the libtool script.
19142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19143 SED SHELL STRIP \
19144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19146 deplibs_check_method reload_flag reload_cmds need_locks \
19147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19148 lt_cv_sys_global_symbol_to_c_name_address \
19149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19150 old_postinstall_cmds old_postuninstall_cmds \
19151 compiler_GCJ \
19152 CC_GCJ \
19153 LD_GCJ \
19154 lt_prog_compiler_wl_GCJ \
19155 lt_prog_compiler_pic_GCJ \
19156 lt_prog_compiler_static_GCJ \
19157 lt_prog_compiler_no_builtin_flag_GCJ \
19158 export_dynamic_flag_spec_GCJ \
19159 thread_safe_flag_spec_GCJ \
19160 whole_archive_flag_spec_GCJ \
19161 enable_shared_with_static_runtimes_GCJ \
19162 old_archive_cmds_GCJ \
19163 old_archive_from_new_cmds_GCJ \
19164 predep_objects_GCJ \
19165 postdep_objects_GCJ \
19166 predeps_GCJ \
19167 postdeps_GCJ \
19168 compiler_lib_search_path_GCJ \
19169 compiler_lib_search_dirs_GCJ \
19170 archive_cmds_GCJ \
19171 archive_expsym_cmds_GCJ \
19172 postinstall_cmds_GCJ \
19173 postuninstall_cmds_GCJ \
19174 old_archive_from_expsyms_cmds_GCJ \
19175 allow_undefined_flag_GCJ \
19176 no_undefined_flag_GCJ \
19177 export_symbols_cmds_GCJ \
19178 hardcode_libdir_flag_spec_GCJ \
19179 hardcode_libdir_flag_spec_ld_GCJ \
19180 hardcode_libdir_separator_GCJ \
19181 hardcode_automatic_GCJ \
19182 module_cmds_GCJ \
19183 module_expsym_cmds_GCJ \
19184 lt_cv_prog_compiler_c_o_GCJ \
19185 fix_srcfile_path_GCJ \
19186 exclude_expsyms_GCJ \
19187 include_expsyms_GCJ; do
19189 case $var in
19190 old_archive_cmds_GCJ | \
19191 old_archive_from_new_cmds_GCJ | \
19192 archive_cmds_GCJ | \
19193 archive_expsym_cmds_GCJ | \
19194 module_cmds_GCJ | \
19195 module_expsym_cmds_GCJ | \
19196 old_archive_from_expsyms_cmds_GCJ | \
19197 export_symbols_cmds_GCJ | \
19198 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19199 postinstall_cmds | postuninstall_cmds | \
19200 old_postinstall_cmds | old_postuninstall_cmds | \
19201 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19202 # Double-quote double-evaled strings.
19203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19206 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19208 esac
19209 done
19211 case $lt_echo in
19212 *'\$0 --fallback-echo"')
19213 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19215 esac
19217 cfgfile="$ofile"
19219 cat <<__EOF__ >> "$cfgfile"
19220 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19222 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19224 # Shell to use when invoking shell scripts.
19225 SHELL=$lt_SHELL
19227 # Whether or not to build shared libraries.
19228 build_libtool_libs=$enable_shared
19230 # Whether or not to build static libraries.
19231 build_old_libs=$enable_static
19233 # Whether or not to add -lc for building shared libraries.
19234 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19236 # Whether or not to disallow shared libs when runtime libs are static
19237 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19239 # Whether or not to optimize for fast installation.
19240 fast_install=$enable_fast_install
19242 # The host system.
19243 host_alias=$host_alias
19244 host=$host
19245 host_os=$host_os
19247 # The build system.
19248 build_alias=$build_alias
19249 build=$build
19250 build_os=$build_os
19252 # An echo program that does not interpret backslashes.
19253 echo=$lt_echo
19255 # The archiver.
19256 AR=$lt_AR
19257 AR_FLAGS=$lt_AR_FLAGS
19259 # A C compiler.
19260 LTCC=$lt_LTCC
19262 # LTCC compiler flags.
19263 LTCFLAGS=$lt_LTCFLAGS
19265 # A language-specific compiler.
19266 CC=$lt_compiler_GCJ
19268 # Is the compiler the GNU C compiler?
19269 with_gcc=$GCC_GCJ
19271 # An ERE matcher.
19272 EGREP=$lt_EGREP
19274 # The linker used to build libraries.
19275 LD=$lt_LD_GCJ
19277 # Whether we need hard or soft links.
19278 LN_S=$lt_LN_S
19280 # A BSD-compatible nm program.
19281 NM=$lt_NM
19283 # A symbol stripping program
19284 STRIP=$lt_STRIP
19286 # Used to examine libraries when file_magic_cmd begins "file"
19287 MAGIC_CMD=$MAGIC_CMD
19289 # Used on cygwin: DLL creation program.
19290 DLLTOOL="$DLLTOOL"
19292 # Used on cygwin: object dumper.
19293 OBJDUMP="$OBJDUMP"
19295 # Used on cygwin: assembler.
19296 AS="$AS"
19298 # The name of the directory that contains temporary libtool files.
19299 objdir=$objdir
19301 # How to create reloadable object files.
19302 reload_flag=$lt_reload_flag
19303 reload_cmds=$lt_reload_cmds
19305 # How to pass a linker flag through the compiler.
19306 wl=$lt_lt_prog_compiler_wl_GCJ
19308 # Object file suffix (normally "o").
19309 objext="$ac_objext"
19311 # Old archive suffix (normally "a").
19312 libext="$libext"
19314 # Shared library suffix (normally ".so").
19315 shrext_cmds='$shrext_cmds'
19317 # Executable file suffix (normally "").
19318 exeext="$exeext"
19320 # Additional compiler flags for building library objects.
19321 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19322 pic_mode=$pic_mode
19324 # What is the maximum length of a command?
19325 max_cmd_len=$lt_cv_sys_max_cmd_len
19327 # Does compiler simultaneously support -c and -o options?
19328 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19330 # Must we lock files when doing compilation?
19331 need_locks=$lt_need_locks
19333 # Do we need the lib prefix for modules?
19334 need_lib_prefix=$need_lib_prefix
19336 # Do we need a version for libraries?
19337 need_version=$need_version
19339 # Whether dlopen is supported.
19340 dlopen_support=$enable_dlopen
19342 # Whether dlopen of programs is supported.
19343 dlopen_self=$enable_dlopen_self
19345 # Whether dlopen of statically linked programs is supported.
19346 dlopen_self_static=$enable_dlopen_self_static
19348 # Compiler flag to prevent dynamic linking.
19349 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19351 # Compiler flag to turn off builtin functions.
19352 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19354 # Compiler flag to allow reflexive dlopens.
19355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19357 # Compiler flag to generate shared objects directly from archives.
19358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19360 # Compiler flag to generate thread-safe objects.
19361 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19363 # Library versioning type.
19364 version_type=$version_type
19366 # Format of library name prefix.
19367 libname_spec=$lt_libname_spec
19369 # List of archive names. First name is the real one, the rest are links.
19370 # The last name is the one that the linker finds with -lNAME.
19371 library_names_spec=$lt_library_names_spec
19373 # The coded name of the library, if different from the real name.
19374 soname_spec=$lt_soname_spec
19376 # Commands used to build and install an old-style archive.
19377 RANLIB=$lt_RANLIB
19378 old_archive_cmds=$lt_old_archive_cmds_GCJ
19379 old_postinstall_cmds=$lt_old_postinstall_cmds
19380 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19382 # Create an old-style archive from a shared archive.
19383 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19385 # Create a temporary old-style archive to link instead of a shared archive.
19386 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19388 # Commands used to build and install a shared archive.
19389 archive_cmds=$lt_archive_cmds_GCJ
19390 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19391 postinstall_cmds=$lt_postinstall_cmds
19392 postuninstall_cmds=$lt_postuninstall_cmds
19394 # Commands used to build a loadable module (assumed same as above if empty)
19395 module_cmds=$lt_module_cmds_GCJ
19396 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19398 # Commands to strip libraries.
19399 old_striplib=$lt_old_striplib
19400 striplib=$lt_striplib
19402 # Dependencies to place before the objects being linked to create a
19403 # shared library.
19404 predep_objects=$lt_predep_objects_GCJ
19406 # Dependencies to place after the objects being linked to create a
19407 # shared library.
19408 postdep_objects=$lt_postdep_objects_GCJ
19410 # Dependencies to place before the objects being linked to create a
19411 # shared library.
19412 predeps=$lt_predeps_GCJ
19414 # Dependencies to place after the objects being linked to create a
19415 # shared library.
19416 postdeps=$lt_postdeps_GCJ
19418 # The directories searched by this compiler when creating a shared
19419 # library
19420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19422 # The library search path used internally by the compiler when linking
19423 # a shared library.
19424 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19426 # Method to check whether dependent libraries are shared objects.
19427 deplibs_check_method=$lt_deplibs_check_method
19429 # Command to use when deplibs_check_method == file_magic.
19430 file_magic_cmd=$lt_file_magic_cmd
19432 # Flag that allows shared libraries with undefined symbols to be built.
19433 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19435 # Flag that forces no undefined symbols.
19436 no_undefined_flag=$lt_no_undefined_flag_GCJ
19438 # Commands used to finish a libtool library installation in a directory.
19439 finish_cmds=$lt_finish_cmds
19441 # Same as above, but a single script fragment to be evaled but not shown.
19442 finish_eval=$lt_finish_eval
19444 # Take the output of nm and produce a listing of raw symbols and C names.
19445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19447 # Transform the output of nm in a proper C declaration
19448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19450 # Transform the output of nm in a C name address pair
19451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19453 # This is the shared library runtime path variable.
19454 runpath_var=$runpath_var
19456 # This is the shared library path variable.
19457 shlibpath_var=$shlibpath_var
19459 # Is shlibpath searched before the hard-coded library search path?
19460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19462 # How to hardcode a shared library path into an executable.
19463 hardcode_action=$hardcode_action_GCJ
19465 # Whether we should hardcode library paths into libraries.
19466 hardcode_into_libs=$hardcode_into_libs
19468 # Flag to hardcode \$libdir into a binary during linking.
19469 # This must work even if \$libdir does not exist.
19470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19472 # If ld is used when linking, flag to hardcode \$libdir into
19473 # a binary during linking. This must work even if \$libdir does
19474 # not exist.
19475 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19477 # Whether we need a single -rpath flag with a separated argument.
19478 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19480 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19481 # resulting binary.
19482 hardcode_direct=$hardcode_direct_GCJ
19484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19485 # resulting binary.
19486 hardcode_minus_L=$hardcode_minus_L_GCJ
19488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19489 # the resulting binary.
19490 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19492 # Set to yes if building a shared library automatically hardcodes DIR into the library
19493 # and all subsequent libraries and executables linked against it.
19494 hardcode_automatic=$hardcode_automatic_GCJ
19496 # Variables whose values should be saved in libtool wrapper scripts and
19497 # restored at relink time.
19498 variables_saved_for_relink="$variables_saved_for_relink"
19500 # Whether libtool must link a program against all its dependency libraries.
19501 link_all_deplibs=$link_all_deplibs_GCJ
19503 # Compile-time system search path for libraries
19504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19506 # Run-time system search path for libraries
19507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19509 # Fix the shell variable \$srcfile for the compiler.
19510 fix_srcfile_path=$lt_fix_srcfile_path
19512 # Set to yes if exported symbols are required.
19513 always_export_symbols=$always_export_symbols_GCJ
19515 # The commands to list exported symbols.
19516 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19518 # The commands to extract the exported symbol list from a shared archive.
19519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19521 # Symbols that should not be listed in the preloaded symbols.
19522 exclude_expsyms=$lt_exclude_expsyms_GCJ
19524 # Symbols that must always be exported.
19525 include_expsyms=$lt_include_expsyms_GCJ
19527 # ### END LIBTOOL TAG CONFIG: $tagname
19529 __EOF__
19532 else
19533 # If there is no Makefile yet, we rely on a make rule to execute
19534 # `config.status --recheck' to rerun these tests and create the
19535 # libtool script then.
19536 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19537 if test -f "$ltmain_in"; then
19538 test -f Makefile && make "$ltmain"
19543 ac_ext=c
19544 ac_cpp='$CPP $CPPFLAGS'
19545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549 CC="$lt_save_CC"
19551 else
19552 tagname=""
19559 # Source file extension for RC test sources.
19560 ac_ext=rc
19562 # Object file extension for compiled RC test sources.
19563 objext=o
19564 objext_RC=$objext
19566 # Code to be used in simple compile tests
19567 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19569 # Code to be used in simple link tests
19570 lt_simple_link_test_code="$lt_simple_compile_test_code"
19572 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19574 # If no C compiler was specified, use CC.
19575 LTCC=${LTCC-"$CC"}
19577 # If no C compiler flags were specified, use CFLAGS.
19578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19580 # Allow CC to be a program name with arguments.
19581 compiler=$CC
19584 # save warnings/boilerplate of simple test code
19585 ac_outfile=conftest.$ac_objext
19586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19588 _lt_compiler_boilerplate=`cat conftest.err`
19589 $rm conftest*
19591 ac_outfile=conftest.$ac_objext
19592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19594 _lt_linker_boilerplate=`cat conftest.err`
19595 $rm -r conftest*
19598 # Allow CC to be a program name with arguments.
19599 lt_save_CC="$CC"
19600 CC=${RC-"windres"}
19601 compiler=$CC
19602 compiler_RC=$CC
19603 for cc_temp in $compiler""; do
19604 case $cc_temp in
19605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19607 \-*) ;;
19608 *) break;;
19609 esac
19610 done
19611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19613 lt_cv_prog_compiler_c_o_RC=yes
19615 # The else clause should only fire when bootstrapping the
19616 # libtool distribution, otherwise you forgot to ship ltmain.sh
19617 # with your package, and you will get complaints that there are
19618 # no rules to generate ltmain.sh.
19619 if test -f "$ltmain"; then
19620 # See if we are running on zsh, and set the options which allow our commands through
19621 # without removal of \ escapes.
19622 if test -n "${ZSH_VERSION+set}" ; then
19623 setopt NO_GLOB_SUBST
19625 # Now quote all the things that may contain metacharacters while being
19626 # careful not to overquote the AC_SUBSTed values. We take copies of the
19627 # variables and quote the copies for generation of the libtool script.
19628 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19629 SED SHELL STRIP \
19630 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19631 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19632 deplibs_check_method reload_flag reload_cmds need_locks \
19633 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19634 lt_cv_sys_global_symbol_to_c_name_address \
19635 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19636 old_postinstall_cmds old_postuninstall_cmds \
19637 compiler_RC \
19638 CC_RC \
19639 LD_RC \
19640 lt_prog_compiler_wl_RC \
19641 lt_prog_compiler_pic_RC \
19642 lt_prog_compiler_static_RC \
19643 lt_prog_compiler_no_builtin_flag_RC \
19644 export_dynamic_flag_spec_RC \
19645 thread_safe_flag_spec_RC \
19646 whole_archive_flag_spec_RC \
19647 enable_shared_with_static_runtimes_RC \
19648 old_archive_cmds_RC \
19649 old_archive_from_new_cmds_RC \
19650 predep_objects_RC \
19651 postdep_objects_RC \
19652 predeps_RC \
19653 postdeps_RC \
19654 compiler_lib_search_path_RC \
19655 compiler_lib_search_dirs_RC \
19656 archive_cmds_RC \
19657 archive_expsym_cmds_RC \
19658 postinstall_cmds_RC \
19659 postuninstall_cmds_RC \
19660 old_archive_from_expsyms_cmds_RC \
19661 allow_undefined_flag_RC \
19662 no_undefined_flag_RC \
19663 export_symbols_cmds_RC \
19664 hardcode_libdir_flag_spec_RC \
19665 hardcode_libdir_flag_spec_ld_RC \
19666 hardcode_libdir_separator_RC \
19667 hardcode_automatic_RC \
19668 module_cmds_RC \
19669 module_expsym_cmds_RC \
19670 lt_cv_prog_compiler_c_o_RC \
19671 fix_srcfile_path_RC \
19672 exclude_expsyms_RC \
19673 include_expsyms_RC; do
19675 case $var in
19676 old_archive_cmds_RC | \
19677 old_archive_from_new_cmds_RC | \
19678 archive_cmds_RC | \
19679 archive_expsym_cmds_RC | \
19680 module_cmds_RC | \
19681 module_expsym_cmds_RC | \
19682 old_archive_from_expsyms_cmds_RC | \
19683 export_symbols_cmds_RC | \
19684 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19685 postinstall_cmds | postuninstall_cmds | \
19686 old_postinstall_cmds | old_postuninstall_cmds | \
19687 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19688 # Double-quote double-evaled strings.
19689 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19694 esac
19695 done
19697 case $lt_echo in
19698 *'\$0 --fallback-echo"')
19699 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19701 esac
19703 cfgfile="$ofile"
19705 cat <<__EOF__ >> "$cfgfile"
19706 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19710 # Shell to use when invoking shell scripts.
19711 SHELL=$lt_SHELL
19713 # Whether or not to build shared libraries.
19714 build_libtool_libs=$enable_shared
19716 # Whether or not to build static libraries.
19717 build_old_libs=$enable_static
19719 # Whether or not to add -lc for building shared libraries.
19720 build_libtool_need_lc=$archive_cmds_need_lc_RC
19722 # Whether or not to disallow shared libs when runtime libs are static
19723 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19725 # Whether or not to optimize for fast installation.
19726 fast_install=$enable_fast_install
19728 # The host system.
19729 host_alias=$host_alias
19730 host=$host
19731 host_os=$host_os
19733 # The build system.
19734 build_alias=$build_alias
19735 build=$build
19736 build_os=$build_os
19738 # An echo program that does not interpret backslashes.
19739 echo=$lt_echo
19741 # The archiver.
19742 AR=$lt_AR
19743 AR_FLAGS=$lt_AR_FLAGS
19745 # A C compiler.
19746 LTCC=$lt_LTCC
19748 # LTCC compiler flags.
19749 LTCFLAGS=$lt_LTCFLAGS
19751 # A language-specific compiler.
19752 CC=$lt_compiler_RC
19754 # Is the compiler the GNU C compiler?
19755 with_gcc=$GCC_RC
19757 # An ERE matcher.
19758 EGREP=$lt_EGREP
19760 # The linker used to build libraries.
19761 LD=$lt_LD_RC
19763 # Whether we need hard or soft links.
19764 LN_S=$lt_LN_S
19766 # A BSD-compatible nm program.
19767 NM=$lt_NM
19769 # A symbol stripping program
19770 STRIP=$lt_STRIP
19772 # Used to examine libraries when file_magic_cmd begins "file"
19773 MAGIC_CMD=$MAGIC_CMD
19775 # Used on cygwin: DLL creation program.
19776 DLLTOOL="$DLLTOOL"
19778 # Used on cygwin: object dumper.
19779 OBJDUMP="$OBJDUMP"
19781 # Used on cygwin: assembler.
19782 AS="$AS"
19784 # The name of the directory that contains temporary libtool files.
19785 objdir=$objdir
19787 # How to create reloadable object files.
19788 reload_flag=$lt_reload_flag
19789 reload_cmds=$lt_reload_cmds
19791 # How to pass a linker flag through the compiler.
19792 wl=$lt_lt_prog_compiler_wl_RC
19794 # Object file suffix (normally "o").
19795 objext="$ac_objext"
19797 # Old archive suffix (normally "a").
19798 libext="$libext"
19800 # Shared library suffix (normally ".so").
19801 shrext_cmds='$shrext_cmds'
19803 # Executable file suffix (normally "").
19804 exeext="$exeext"
19806 # Additional compiler flags for building library objects.
19807 pic_flag=$lt_lt_prog_compiler_pic_RC
19808 pic_mode=$pic_mode
19810 # What is the maximum length of a command?
19811 max_cmd_len=$lt_cv_sys_max_cmd_len
19813 # Does compiler simultaneously support -c and -o options?
19814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19816 # Must we lock files when doing compilation?
19817 need_locks=$lt_need_locks
19819 # Do we need the lib prefix for modules?
19820 need_lib_prefix=$need_lib_prefix
19822 # Do we need a version for libraries?
19823 need_version=$need_version
19825 # Whether dlopen is supported.
19826 dlopen_support=$enable_dlopen
19828 # Whether dlopen of programs is supported.
19829 dlopen_self=$enable_dlopen_self
19831 # Whether dlopen of statically linked programs is supported.
19832 dlopen_self_static=$enable_dlopen_self_static
19834 # Compiler flag to prevent dynamic linking.
19835 link_static_flag=$lt_lt_prog_compiler_static_RC
19837 # Compiler flag to turn off builtin functions.
19838 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19840 # Compiler flag to allow reflexive dlopens.
19841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19843 # Compiler flag to generate shared objects directly from archives.
19844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19846 # Compiler flag to generate thread-safe objects.
19847 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19849 # Library versioning type.
19850 version_type=$version_type
19852 # Format of library name prefix.
19853 libname_spec=$lt_libname_spec
19855 # List of archive names. First name is the real one, the rest are links.
19856 # The last name is the one that the linker finds with -lNAME.
19857 library_names_spec=$lt_library_names_spec
19859 # The coded name of the library, if different from the real name.
19860 soname_spec=$lt_soname_spec
19862 # Commands used to build and install an old-style archive.
19863 RANLIB=$lt_RANLIB
19864 old_archive_cmds=$lt_old_archive_cmds_RC
19865 old_postinstall_cmds=$lt_old_postinstall_cmds
19866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19868 # Create an old-style archive from a shared archive.
19869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19871 # Create a temporary old-style archive to link instead of a shared archive.
19872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19874 # Commands used to build and install a shared archive.
19875 archive_cmds=$lt_archive_cmds_RC
19876 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19877 postinstall_cmds=$lt_postinstall_cmds
19878 postuninstall_cmds=$lt_postuninstall_cmds
19880 # Commands used to build a loadable module (assumed same as above if empty)
19881 module_cmds=$lt_module_cmds_RC
19882 module_expsym_cmds=$lt_module_expsym_cmds_RC
19884 # Commands to strip libraries.
19885 old_striplib=$lt_old_striplib
19886 striplib=$lt_striplib
19888 # Dependencies to place before the objects being linked to create a
19889 # shared library.
19890 predep_objects=$lt_predep_objects_RC
19892 # Dependencies to place after the objects being linked to create a
19893 # shared library.
19894 postdep_objects=$lt_postdep_objects_RC
19896 # Dependencies to place before the objects being linked to create a
19897 # shared library.
19898 predeps=$lt_predeps_RC
19900 # Dependencies to place after the objects being linked to create a
19901 # shared library.
19902 postdeps=$lt_postdeps_RC
19904 # The directories searched by this compiler when creating a shared
19905 # library
19906 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19908 # The library search path used internally by the compiler when linking
19909 # a shared library.
19910 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19912 # Method to check whether dependent libraries are shared objects.
19913 deplibs_check_method=$lt_deplibs_check_method
19915 # Command to use when deplibs_check_method == file_magic.
19916 file_magic_cmd=$lt_file_magic_cmd
19918 # Flag that allows shared libraries with undefined symbols to be built.
19919 allow_undefined_flag=$lt_allow_undefined_flag_RC
19921 # Flag that forces no undefined symbols.
19922 no_undefined_flag=$lt_no_undefined_flag_RC
19924 # Commands used to finish a libtool library installation in a directory.
19925 finish_cmds=$lt_finish_cmds
19927 # Same as above, but a single script fragment to be evaled but not shown.
19928 finish_eval=$lt_finish_eval
19930 # Take the output of nm and produce a listing of raw symbols and C names.
19931 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19933 # Transform the output of nm in a proper C declaration
19934 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19936 # Transform the output of nm in a C name address pair
19937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19939 # This is the shared library runtime path variable.
19940 runpath_var=$runpath_var
19942 # This is the shared library path variable.
19943 shlibpath_var=$shlibpath_var
19945 # Is shlibpath searched before the hard-coded library search path?
19946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19948 # How to hardcode a shared library path into an executable.
19949 hardcode_action=$hardcode_action_RC
19951 # Whether we should hardcode library paths into libraries.
19952 hardcode_into_libs=$hardcode_into_libs
19954 # Flag to hardcode \$libdir into a binary during linking.
19955 # This must work even if \$libdir does not exist.
19956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19958 # If ld is used when linking, flag to hardcode \$libdir into
19959 # a binary during linking. This must work even if \$libdir does
19960 # not exist.
19961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19963 # Whether we need a single -rpath flag with a separated argument.
19964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19966 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19967 # resulting binary.
19968 hardcode_direct=$hardcode_direct_RC
19970 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19971 # resulting binary.
19972 hardcode_minus_L=$hardcode_minus_L_RC
19974 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19975 # the resulting binary.
19976 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19978 # Set to yes if building a shared library automatically hardcodes DIR into the library
19979 # and all subsequent libraries and executables linked against it.
19980 hardcode_automatic=$hardcode_automatic_RC
19982 # Variables whose values should be saved in libtool wrapper scripts and
19983 # restored at relink time.
19984 variables_saved_for_relink="$variables_saved_for_relink"
19986 # Whether libtool must link a program against all its dependency libraries.
19987 link_all_deplibs=$link_all_deplibs_RC
19989 # Compile-time system search path for libraries
19990 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19992 # Run-time system search path for libraries
19993 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19995 # Fix the shell variable \$srcfile for the compiler.
19996 fix_srcfile_path=$lt_fix_srcfile_path
19998 # Set to yes if exported symbols are required.
19999 always_export_symbols=$always_export_symbols_RC
20001 # The commands to list exported symbols.
20002 export_symbols_cmds=$lt_export_symbols_cmds_RC
20004 # The commands to extract the exported symbol list from a shared archive.
20005 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20007 # Symbols that should not be listed in the preloaded symbols.
20008 exclude_expsyms=$lt_exclude_expsyms_RC
20010 # Symbols that must always be exported.
20011 include_expsyms=$lt_include_expsyms_RC
20013 # ### END LIBTOOL TAG CONFIG: $tagname
20015 __EOF__
20018 else
20019 # If there is no Makefile yet, we rely on a make rule to execute
20020 # `config.status --recheck' to rerun these tests and create the
20021 # libtool script then.
20022 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20023 if test -f "$ltmain_in"; then
20024 test -f Makefile && make "$ltmain"
20029 ac_ext=c
20030 ac_cpp='$CPP $CPPFLAGS'
20031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20035 CC="$lt_save_CC"
20040 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20041 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20042 { (exit 1); exit 1; }; }
20044 esac
20046 # Append the new tag name to the list of available tags.
20047 if test -n "$tagname" ; then
20048 available_tags="$available_tags $tagname"
20051 done
20052 IFS="$lt_save_ifs"
20054 # Now substitute the updated list of available tags.
20055 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20056 mv "${ofile}T" "$ofile"
20057 chmod +x "$ofile"
20058 else
20059 rm -f "${ofile}T"
20060 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20061 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20062 { (exit 1); exit 1; }; }
20068 # This can be used to rebuild libtool when needed
20069 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20071 # Always use our own libtool.
20072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20074 # Prevent multiple expansion
20096 if test "x${prefix}" = "xNONE"; then
20097 prefix=${ac_default_prefix}
20098 #else
20099 # prefix=${prefix}
20103 ac_config_files="$ac_config_files Makefile src/Makefile"
20105 cat >confcache <<\_ACEOF
20106 # This file is a shell script that caches the results of configure
20107 # tests run on this system so they can be shared between configure
20108 # scripts and configure runs, see configure's option --config-cache.
20109 # It is not useful on other systems. If it contains results you don't
20110 # want to keep, you may remove or edit it.
20112 # config.status only pays attention to the cache file if you give it
20113 # the --recheck option to rerun configure.
20115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20117 # following values.
20119 _ACEOF
20121 # The following way of writing the cache mishandles newlines in values,
20122 # but we know of no workaround that is simple, portable, and efficient.
20123 # So, we kill variables containing newlines.
20124 # Ultrix sh set writes to stderr and can't be redirected directly,
20125 # and sets the high bit in the cache file unless we assign to the vars.
20127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20128 eval ac_val=\$$ac_var
20129 case $ac_val in #(
20130 *${as_nl}*)
20131 case $ac_var in #(
20132 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20133 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20134 esac
20135 case $ac_var in #(
20136 _ | IFS | as_nl) ;; #(
20137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20138 *) $as_unset $ac_var ;;
20139 esac ;;
20140 esac
20141 done
20143 (set) 2>&1 |
20144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20145 *${as_nl}ac_space=\ *)
20146 # `set' does not quote correctly, so add quotes (double-quote
20147 # substitution turns \\\\ into \\, and sed turns \\ into \).
20148 sed -n \
20149 "s/'/'\\\\''/g;
20150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20151 ;; #(
20153 # `set' quotes correctly as required by POSIX, so do not add quotes.
20154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20156 esac |
20157 sort
20159 sed '
20160 /^ac_cv_env_/b end
20161 t clear
20162 :clear
20163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20164 t end
20165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20166 :end' >>confcache
20167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20168 if test -w "$cache_file"; then
20169 test "x$cache_file" != "x/dev/null" &&
20170 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20171 $as_echo "$as_me: updating cache $cache_file" >&6;}
20172 cat confcache >$cache_file
20173 else
20174 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20178 rm -f confcache
20180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20181 # Let make expand exec_prefix.
20182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20184 DEFS=-DHAVE_CONFIG_H
20186 ac_libobjs=
20187 ac_ltlibobjs=
20188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20189 # 1. Remove the extension, and $U if already installed.
20190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20191 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20193 # will be set to the directory where LIBOBJS objects are built.
20194 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20195 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20196 done
20197 LIBOBJS=$ac_libobjs
20199 LTLIBOBJS=$ac_ltlibobjs
20202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20203 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20204 Usually this means the macro was only invoked conditionally." >&5
20205 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20206 Usually this means the macro was only invoked conditionally." >&2;}
20207 { (exit 1); exit 1; }; }
20209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20210 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20211 Usually this means the macro was only invoked conditionally." >&5
20212 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20213 Usually this means the macro was only invoked conditionally." >&2;}
20214 { (exit 1); exit 1; }; }
20216 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20217 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20218 Usually this means the macro was only invoked conditionally." >&5
20219 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20220 Usually this means the macro was only invoked conditionally." >&2;}
20221 { (exit 1); exit 1; }; }
20224 : ${CONFIG_STATUS=./config.status}
20225 ac_write_fail=0
20226 ac_clean_files_save=$ac_clean_files
20227 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20228 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20229 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20230 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20231 #! $SHELL
20232 # Generated by $as_me.
20233 # Run this file to recreate the current configuration.
20234 # Compiler output produced by configure, useful for debugging
20235 # configure, is in config.log if it exists.
20237 debug=false
20238 ac_cs_recheck=false
20239 ac_cs_silent=false
20240 SHELL=\${CONFIG_SHELL-$SHELL}
20241 _ACEOF
20243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20244 ## --------------------- ##
20245 ## M4sh Initialization. ##
20246 ## --------------------- ##
20248 # Be more Bourne compatible
20249 DUALCASE=1; export DUALCASE # for MKS sh
20250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20251 emulate sh
20252 NULLCMD=:
20253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20254 # is contrary to our usage. Disable this feature.
20255 alias -g '${1+"$@"}'='"$@"'
20256 setopt NO_GLOB_SUBST
20257 else
20258 case `(set -o) 2>/dev/null` in
20259 *posix*) set -o posix ;;
20260 esac
20267 # PATH needs CR
20268 # Avoid depending upon Character Ranges.
20269 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20270 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20271 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20272 as_cr_digits='0123456789'
20273 as_cr_alnum=$as_cr_Letters$as_cr_digits
20275 as_nl='
20277 export as_nl
20278 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20282 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20283 as_echo='printf %s\n'
20284 as_echo_n='printf %s'
20285 else
20286 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20287 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20288 as_echo_n='/usr/ucb/echo -n'
20289 else
20290 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20291 as_echo_n_body='eval
20292 arg=$1;
20293 case $arg in
20294 *"$as_nl"*)
20295 expr "X$arg" : "X\\(.*\\)$as_nl";
20296 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20297 esac;
20298 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20300 export as_echo_n_body
20301 as_echo_n='sh -c $as_echo_n_body as_echo'
20303 export as_echo_body
20304 as_echo='sh -c $as_echo_body as_echo'
20307 # The user is always right.
20308 if test "${PATH_SEPARATOR+set}" != set; then
20309 PATH_SEPARATOR=:
20310 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20311 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20312 PATH_SEPARATOR=';'
20316 # Support unset when possible.
20317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20318 as_unset=unset
20319 else
20320 as_unset=false
20324 # IFS
20325 # We need space, tab and new line, in precisely that order. Quoting is
20326 # there to prevent editors from complaining about space-tab.
20327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20328 # splitting by setting IFS to empty value.)
20329 IFS=" "" $as_nl"
20331 # Find who we are. Look in the path if we contain no directory separator.
20332 case $0 in
20333 *[\\/]* ) as_myself=$0 ;;
20334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20335 for as_dir in $PATH
20337 IFS=$as_save_IFS
20338 test -z "$as_dir" && as_dir=.
20339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20340 done
20341 IFS=$as_save_IFS
20344 esac
20345 # We did not find ourselves, most probably we were run as `sh COMMAND'
20346 # in which case we are not to be found in the path.
20347 if test "x$as_myself" = x; then
20348 as_myself=$0
20350 if test ! -f "$as_myself"; then
20351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20352 { (exit 1); exit 1; }
20355 # Work around bugs in pre-3.0 UWIN ksh.
20356 for as_var in ENV MAIL MAILPATH
20357 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20358 done
20359 PS1='$ '
20360 PS2='> '
20361 PS4='+ '
20363 # NLS nuisances.
20364 LC_ALL=C
20365 export LC_ALL
20366 LANGUAGE=C
20367 export LANGUAGE
20369 # Required to use basename.
20370 if expr a : '\(a\)' >/dev/null 2>&1 &&
20371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20372 as_expr=expr
20373 else
20374 as_expr=false
20377 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20378 as_basename=basename
20379 else
20380 as_basename=false
20384 # Name of the executable.
20385 as_me=`$as_basename -- "$0" ||
20386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20387 X"$0" : 'X\(//\)$' \| \
20388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20389 $as_echo X/"$0" |
20390 sed '/^.*\/\([^/][^/]*\)\/*$/{
20391 s//\1/
20394 /^X\/\(\/\/\)$/{
20395 s//\1/
20398 /^X\/\(\/\).*/{
20399 s//\1/
20402 s/.*/./; q'`
20404 # CDPATH.
20405 $as_unset CDPATH
20409 as_lineno_1=$LINENO
20410 as_lineno_2=$LINENO
20411 test "x$as_lineno_1" != "x$as_lineno_2" &&
20412 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20414 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20415 # uniformly replaced by the line number. The first 'sed' inserts a
20416 # line-number line after each line using $LINENO; the second 'sed'
20417 # does the real work. The second script uses 'N' to pair each
20418 # line-number line with the line containing $LINENO, and appends
20419 # trailing '-' during substitution so that $LINENO is not a special
20420 # case at line end.
20421 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20422 # scripts with optimization help from Paolo Bonzini. Blame Lee
20423 # E. McMahon (1931-1989) for sed's syntax. :-)
20424 sed -n '
20426 /[$]LINENO/=
20427 ' <$as_myself |
20428 sed '
20429 s/[$]LINENO.*/&-/
20430 t lineno
20432 :lineno
20434 :loop
20435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20436 t loop
20437 s/-\n.*//
20438 ' >$as_me.lineno &&
20439 chmod +x "$as_me.lineno" ||
20440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20441 { (exit 1); exit 1; }; }
20443 # Don't try to exec as it changes $[0], causing all sort of problems
20444 # (the dirname of $[0] is not the place where we might find the
20445 # original and so on. Autoconf is especially sensitive to this).
20446 . "./$as_me.lineno"
20447 # Exit status is that of the last command.
20448 exit
20452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20453 as_dirname=dirname
20454 else
20455 as_dirname=false
20458 ECHO_C= ECHO_N= ECHO_T=
20459 case `echo -n x` in
20460 -n*)
20461 case `echo 'x\c'` in
20462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20463 *) ECHO_C='\c';;
20464 esac;;
20466 ECHO_N='-n';;
20467 esac
20468 if expr a : '\(a\)' >/dev/null 2>&1 &&
20469 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20470 as_expr=expr
20471 else
20472 as_expr=false
20475 rm -f conf$$ conf$$.exe conf$$.file
20476 if test -d conf$$.dir; then
20477 rm -f conf$$.dir/conf$$.file
20478 else
20479 rm -f conf$$.dir
20480 mkdir conf$$.dir 2>/dev/null
20482 if (echo >conf$$.file) 2>/dev/null; then
20483 if ln -s conf$$.file conf$$ 2>/dev/null; then
20484 as_ln_s='ln -s'
20485 # ... but there are two gotchas:
20486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20488 # In both cases, we have to default to `cp -p'.
20489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20490 as_ln_s='cp -p'
20491 elif ln conf$$.file conf$$ 2>/dev/null; then
20492 as_ln_s=ln
20493 else
20494 as_ln_s='cp -p'
20496 else
20497 as_ln_s='cp -p'
20499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20500 rmdir conf$$.dir 2>/dev/null
20502 if mkdir -p . 2>/dev/null; then
20503 as_mkdir_p=:
20504 else
20505 test -d ./-p && rmdir ./-p
20506 as_mkdir_p=false
20509 if test -x / >/dev/null 2>&1; then
20510 as_test_x='test -x'
20511 else
20512 if ls -dL / >/dev/null 2>&1; then
20513 as_ls_L_option=L
20514 else
20515 as_ls_L_option=
20517 as_test_x='
20518 eval sh -c '\''
20519 if test -d "$1"; then
20520 test -d "$1/.";
20521 else
20522 case $1 in
20523 -*)set "./$1";;
20524 esac;
20525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20526 ???[sx]*):;;*)false;;esac;fi
20527 '\'' sh
20530 as_executable_p=$as_test_x
20532 # Sed expression to map a string onto a valid CPP name.
20533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20535 # Sed expression to map a string onto a valid variable name.
20536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20539 exec 6>&1
20541 # Save the log message, to keep $[0] and so on meaningful, and to
20542 # report actual input values of CONFIG_FILES etc. instead of their
20543 # values after options handling.
20544 ac_log="
20545 This file was extended by $as_me, which was
20546 generated by GNU Autoconf 2.62. Invocation command line was
20548 CONFIG_FILES = $CONFIG_FILES
20549 CONFIG_HEADERS = $CONFIG_HEADERS
20550 CONFIG_LINKS = $CONFIG_LINKS
20551 CONFIG_COMMANDS = $CONFIG_COMMANDS
20552 $ $0 $@
20554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20557 _ACEOF
20559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20560 # Files that config.status was made for.
20561 config_files="$ac_config_files"
20562 config_headers="$ac_config_headers"
20563 config_commands="$ac_config_commands"
20565 _ACEOF
20567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20568 ac_cs_usage="\
20569 \`$as_me' instantiates files from templates according to the
20570 current configuration.
20572 Usage: $0 [OPTIONS] [FILE]...
20574 -h, --help print this help, then exit
20575 -V, --version print version number and configuration settings, then exit
20576 -q, --quiet do not print progress messages
20577 -d, --debug don't remove temporary files
20578 --recheck update $as_me by reconfiguring in the same conditions
20579 --file=FILE[:TEMPLATE]
20580 instantiate the configuration file FILE
20581 --header=FILE[:TEMPLATE]
20582 instantiate the configuration header FILE
20584 Configuration files:
20585 $config_files
20587 Configuration headers:
20588 $config_headers
20590 Configuration commands:
20591 $config_commands
20593 Report bugs to <bug-autoconf@gnu.org>."
20595 _ACEOF
20596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20597 ac_cs_version="\\
20598 config.status
20599 configured by $0, generated by GNU Autoconf 2.62,
20600 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20602 Copyright (C) 2008 Free Software Foundation, Inc.
20603 This config.status script is free software; the Free Software Foundation
20604 gives unlimited permission to copy, distribute and modify it."
20606 ac_pwd='$ac_pwd'
20607 srcdir='$srcdir'
20608 INSTALL='$INSTALL'
20609 MKDIR_P='$MKDIR_P'
20610 AWK='$AWK'
20611 test -n "\$AWK" || AWK=awk
20612 _ACEOF
20614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20615 # The default lists apply if the user does not specify any file.
20616 ac_need_defaults=:
20617 while test $# != 0
20619 case $1 in
20620 --*=*)
20621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20623 ac_shift=:
20626 ac_option=$1
20627 ac_optarg=$2
20628 ac_shift=shift
20630 esac
20632 case $ac_option in
20633 # Handling of the options.
20634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20635 ac_cs_recheck=: ;;
20636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20637 $as_echo "$ac_cs_version"; exit ;;
20638 --debug | --debu | --deb | --de | --d | -d )
20639 debug=: ;;
20640 --file | --fil | --fi | --f )
20641 $ac_shift
20642 case $ac_optarg in
20643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20644 esac
20645 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20646 ac_need_defaults=false;;
20647 --header | --heade | --head | --hea )
20648 $ac_shift
20649 case $ac_optarg in
20650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20651 esac
20652 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20653 ac_need_defaults=false;;
20654 --he | --h)
20655 # Conflict between --help and --header
20656 { $as_echo "$as_me: error: ambiguous option: $1
20657 Try \`$0 --help' for more information." >&2
20658 { (exit 1); exit 1; }; };;
20659 --help | --hel | -h )
20660 $as_echo "$ac_cs_usage"; exit ;;
20661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20663 ac_cs_silent=: ;;
20665 # This is an error.
20666 -*) { $as_echo "$as_me: error: unrecognized option: $1
20667 Try \`$0 --help' for more information." >&2
20668 { (exit 1); exit 1; }; } ;;
20670 *) ac_config_targets="$ac_config_targets $1"
20671 ac_need_defaults=false ;;
20673 esac
20674 shift
20675 done
20677 ac_configure_extra_args=
20679 if $ac_cs_silent; then
20680 exec 6>/dev/null
20681 ac_configure_extra_args="$ac_configure_extra_args --silent"
20684 _ACEOF
20685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20686 if \$ac_cs_recheck; then
20687 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20688 shift
20689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20690 CONFIG_SHELL='$SHELL'
20691 export CONFIG_SHELL
20692 exec "\$@"
20695 _ACEOF
20696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20697 exec 5>>config.log
20699 echo
20700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20701 ## Running $as_me. ##
20702 _ASBOX
20703 $as_echo "$ac_log"
20704 } >&5
20706 _ACEOF
20707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20709 # INIT-COMMANDS
20711 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20713 _ACEOF
20715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20717 # Handling of arguments.
20718 for ac_config_target in $ac_config_targets
20720 case $ac_config_target in
20721 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20722 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20724 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20726 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20727 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20728 { (exit 1); exit 1; }; };;
20729 esac
20730 done
20733 # If the user did not use the arguments to specify the items to instantiate,
20734 # then the envvar interface is used. Set only those that are not.
20735 # We use the long form for the default assignment because of an extremely
20736 # bizarre bug on SunOS 4.1.3.
20737 if $ac_need_defaults; then
20738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20743 # Have a temporary directory for convenience. Make it in the build tree
20744 # simply because there is no reason against having it here, and in addition,
20745 # creating and moving files from /tmp can sometimes cause problems.
20746 # Hook for its removal unless debugging.
20747 # Note that there is a small window in which the directory will not be cleaned:
20748 # after its creation but before its name has been assigned to `$tmp'.
20749 $debug ||
20751 tmp=
20752 trap 'exit_status=$?
20753 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20755 trap '{ (exit 1); exit 1; }' 1 2 13 15
20757 # Create a (secure) tmp directory for tmp files.
20760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20761 test -n "$tmp" && test -d "$tmp"
20762 } ||
20764 tmp=./conf$$-$RANDOM
20765 (umask 077 && mkdir "$tmp")
20766 } ||
20768 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20769 { (exit 1); exit 1; }
20772 # Set up the scripts for CONFIG_FILES section.
20773 # No need to generate them if there are no CONFIG_FILES.
20774 # This happens for instance with `./config.status config.h'.
20775 if test -n "$CONFIG_FILES"; then
20778 ac_cr=' '
20779 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20780 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20781 ac_cs_awk_cr='\\r'
20782 else
20783 ac_cs_awk_cr=$ac_cr
20786 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20787 _ACEOF
20791 echo "cat >conf$$subs.awk <<_ACEOF" &&
20792 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20793 echo "_ACEOF"
20794 } >conf$$subs.sh ||
20795 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20796 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20797 { (exit 1); exit 1; }; }
20798 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20799 ac_delim='%!_!# '
20800 for ac_last_try in false false false false false :; do
20801 . ./conf$$subs.sh ||
20802 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20803 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20804 { (exit 1); exit 1; }; }
20806 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
20807 break
20808 elif $ac_last_try; then
20809 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20810 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20811 { (exit 1); exit 1; }; }
20812 else
20813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20815 done
20816 rm -f conf$$subs.sh
20818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20819 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20820 _ACEOF
20821 sed -n '
20823 s/^/S["/; s/!.*/"]=/
20826 s/^[^!]*!//
20827 :repl
20828 t repl
20829 s/'"$ac_delim"'$//
20830 t delim
20833 s/\(.\{148\}\).*/\1/
20834 t more1
20835 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20838 b repl
20839 :more1
20840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20843 s/.\{148\}//
20844 t nl
20845 :delim
20847 s/\(.\{148\}\).*/\1/
20848 t more2
20849 s/["\\]/\\&/g; s/^/"/; s/$/"/
20852 :more2
20853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20856 s/.\{148\}//
20857 t delim
20858 ' <conf$$subs.awk | sed '
20859 /^[^""]/{
20861 s/\n//
20863 ' >>$CONFIG_STATUS || ac_write_fail=1
20864 rm -f conf$$subs.awk
20865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866 _ACAWK
20867 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20868 for (key in S) S_is_set[key] = 1
20869 FS = "\a"
20873 line = $ 0
20874 nfields = split(line, field, "@")
20875 substed = 0
20876 len = length(field[1])
20877 for (i = 2; i < nfields; i++) {
20878 key = field[i]
20879 keylen = length(key)
20880 if (S_is_set[key]) {
20881 value = S[key]
20882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20883 len += length(value) + length(field[++i])
20884 substed = 1
20885 } else
20886 len += 1 + keylen
20889 print line
20892 _ACAWK
20893 _ACEOF
20894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20895 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20896 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20897 else
20899 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20900 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20901 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
20902 { (exit 1); exit 1; }; }
20903 _ACEOF
20905 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20906 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20907 # trailing colons and then remove the whole line if VPATH becomes empty
20908 # (actually we leave an empty line to preserve line numbers).
20909 if test "x$srcdir" = x.; then
20910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20911 s/:*\$(srcdir):*/:/
20912 s/:*\${srcdir}:*/:/
20913 s/:*@srcdir@:*/:/
20914 s/^\([^=]*=[ ]*\):*/\1/
20915 s/:*$//
20916 s/^[^=]*=[ ]*$//
20920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20921 fi # test -n "$CONFIG_FILES"
20923 # Set up the scripts for CONFIG_HEADERS section.
20924 # No need to generate them if there are no CONFIG_HEADERS.
20925 # This happens for instance with `./config.status Makefile'.
20926 if test -n "$CONFIG_HEADERS"; then
20927 cat >"$tmp/defines.awk" <<\_ACAWK ||
20928 BEGIN {
20929 _ACEOF
20931 # Transform confdefs.h into an awk script `defines.awk', embedded as
20932 # here-document in config.status, that substitutes the proper values into
20933 # config.h.in to produce config.h.
20935 # Create a delimiter string that does not exist in confdefs.h, to ease
20936 # handling of long lines.
20937 ac_delim='%!_!# '
20938 for ac_last_try in false false :; do
20939 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20940 if test -z "$ac_t"; then
20941 break
20942 elif $ac_last_try; then
20943 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20944 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20945 { (exit 1); exit 1; }; }
20946 else
20947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20949 done
20951 # For the awk script, D is an array of macro values keyed by name,
20952 # likewise P contains macro parameters if any. Preserve backslash
20953 # newline sequences.
20955 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20956 sed -n '
20957 s/.\{148\}/&'"$ac_delim"'/g
20958 t rset
20959 :rset
20960 s/^[ ]*#[ ]*define[ ][ ]*/ /
20961 t def
20963 :def
20964 s/\\$//
20965 t bsnl
20966 s/["\\]/\\&/g
20967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20968 D["\1"]=" \3"/p
20969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20971 :bsnl
20972 s/["\\]/\\&/g
20973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20974 D["\1"]=" \3\\\\\\n"\\/p
20975 t cont
20976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20977 t cont
20979 :cont
20981 s/.\{148\}/&'"$ac_delim"'/g
20982 t clear
20983 :clear
20984 s/\\$//
20985 t bsnlc
20986 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20988 :bsnlc
20989 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20990 b cont
20991 ' <confdefs.h | sed '
20992 s/'"$ac_delim"'/"\\\
20993 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20996 for (key in D) D_is_set[key] = 1
20997 FS = "\a"
20999 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21000 line = \$ 0
21001 split(line, arg, " ")
21002 if (arg[1] == "#") {
21003 defundef = arg[2]
21004 mac1 = arg[3]
21005 } else {
21006 defundef = substr(arg[1], 2)
21007 mac1 = arg[2]
21009 split(mac1, mac2, "(") #)
21010 macro = mac2[1]
21011 if (D_is_set[macro]) {
21012 # Preserve the white space surrounding the "#".
21013 prefix = substr(line, 1, index(line, defundef) - 1)
21014 print prefix "define", macro P[macro] D[macro]
21015 next
21016 } else {
21017 # Replace #undef with comments. This is necessary, for example,
21018 # in the case of _POSIX_SOURCE, which is predefined and required
21019 # on some systems where configure will not decide to define it.
21020 if (defundef == "undef") {
21021 print "/*", line, "*/"
21022 next
21026 { print }
21027 _ACAWK
21028 _ACEOF
21029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21030 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21031 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21032 { (exit 1); exit 1; }; }
21033 fi # test -n "$CONFIG_HEADERS"
21036 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21037 shift
21038 for ac_tag
21040 case $ac_tag in
21041 :[FHLC]) ac_mode=$ac_tag; continue;;
21042 esac
21043 case $ac_mode$ac_tag in
21044 :[FHL]*:*);;
21045 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21046 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21047 { (exit 1); exit 1; }; };;
21048 :[FH]-) ac_tag=-:-;;
21049 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21050 esac
21051 ac_save_IFS=$IFS
21052 IFS=:
21053 set x $ac_tag
21054 IFS=$ac_save_IFS
21055 shift
21056 ac_file=$1
21057 shift
21059 case $ac_mode in
21060 :L) ac_source=$1;;
21061 :[FH])
21062 ac_file_inputs=
21063 for ac_f
21065 case $ac_f in
21066 -) ac_f="$tmp/stdin";;
21067 *) # Look for the file first in the build tree, then in the source tree
21068 # (if the path is not absolute). The absolute path cannot be DOS-style,
21069 # because $ac_f cannot contain `:'.
21070 test -f "$ac_f" ||
21071 case $ac_f in
21072 [\\/$]*) false;;
21073 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21074 esac ||
21075 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21076 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21077 { (exit 1); exit 1; }; };;
21078 esac
21079 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21080 ac_file_inputs="$ac_file_inputs '$ac_f'"
21081 done
21083 # Let's still pretend it is `configure' which instantiates (i.e., don't
21084 # use $as_me), people would be surprised to read:
21085 # /* config.h. Generated by config.status. */
21086 configure_input='Generated from '`
21087 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21088 `' by configure.'
21089 if test x"$ac_file" != x-; then
21090 configure_input="$ac_file. $configure_input"
21091 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21092 $as_echo "$as_me: creating $ac_file" >&6;}
21094 # Neutralize special characters interpreted by sed in replacement strings.
21095 case $configure_input in #(
21096 *\&* | *\|* | *\\* )
21097 ac_sed_conf_input=`$as_echo "$configure_input" |
21098 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21099 *) ac_sed_conf_input=$configure_input;;
21100 esac
21102 case $ac_tag in
21103 *:-:* | *:-) cat >"$tmp/stdin" \
21104 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21105 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21106 { (exit 1); exit 1; }; } ;;
21107 esac
21109 esac
21111 ac_dir=`$as_dirname -- "$ac_file" ||
21112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113 X"$ac_file" : 'X\(//\)[^/]' \| \
21114 X"$ac_file" : 'X\(//\)$' \| \
21115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21116 $as_echo X"$ac_file" |
21117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21118 s//\1/
21121 /^X\(\/\/\)[^/].*/{
21122 s//\1/
21125 /^X\(\/\/\)$/{
21126 s//\1/
21129 /^X\(\/\).*/{
21130 s//\1/
21133 s/.*/./; q'`
21134 { as_dir="$ac_dir"
21135 case $as_dir in #(
21136 -*) as_dir=./$as_dir;;
21137 esac
21138 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21139 as_dirs=
21140 while :; do
21141 case $as_dir in #(
21142 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21143 *) as_qdir=$as_dir;;
21144 esac
21145 as_dirs="'$as_qdir' $as_dirs"
21146 as_dir=`$as_dirname -- "$as_dir" ||
21147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21148 X"$as_dir" : 'X\(//\)[^/]' \| \
21149 X"$as_dir" : 'X\(//\)$' \| \
21150 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21151 $as_echo X"$as_dir" |
21152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21153 s//\1/
21156 /^X\(\/\/\)[^/].*/{
21157 s//\1/
21160 /^X\(\/\/\)$/{
21161 s//\1/
21164 /^X\(\/\).*/{
21165 s//\1/
21168 s/.*/./; q'`
21169 test -d "$as_dir" && break
21170 done
21171 test -z "$as_dirs" || eval "mkdir $as_dirs"
21172 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21173 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21174 { (exit 1); exit 1; }; }; }
21175 ac_builddir=.
21177 case "$ac_dir" in
21178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21181 # A ".." for each directory in $ac_dir_suffix.
21182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21183 case $ac_top_builddir_sub in
21184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21186 esac ;;
21187 esac
21188 ac_abs_top_builddir=$ac_pwd
21189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21190 # for backward compatibility:
21191 ac_top_builddir=$ac_top_build_prefix
21193 case $srcdir in
21194 .) # We are building in place.
21195 ac_srcdir=.
21196 ac_top_srcdir=$ac_top_builddir_sub
21197 ac_abs_top_srcdir=$ac_pwd ;;
21198 [\\/]* | ?:[\\/]* ) # Absolute name.
21199 ac_srcdir=$srcdir$ac_dir_suffix;
21200 ac_top_srcdir=$srcdir
21201 ac_abs_top_srcdir=$srcdir ;;
21202 *) # Relative name.
21203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21204 ac_top_srcdir=$ac_top_build_prefix$srcdir
21205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21206 esac
21207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21210 case $ac_mode in
21213 # CONFIG_FILE
21216 case $INSTALL in
21217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21219 esac
21220 ac_MKDIR_P=$MKDIR_P
21221 case $MKDIR_P in
21222 [\\/$]* | ?:[\\/]* ) ;;
21223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21224 esac
21225 _ACEOF
21227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21228 # If the template does not know about datarootdir, expand it.
21229 # FIXME: This hack should be removed a few years after 2.60.
21230 ac_datarootdir_hack=; ac_datarootdir_seen=
21232 ac_sed_dataroot='
21233 /datarootdir/ {
21237 /@datadir@/p
21238 /@docdir@/p
21239 /@infodir@/p
21240 /@localedir@/p
21241 /@mandir@/p
21243 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21244 *datarootdir*) ac_datarootdir_seen=yes;;
21245 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21246 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21247 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21248 _ACEOF
21249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21250 ac_datarootdir_hack='
21251 s&@datadir@&$datadir&g
21252 s&@docdir@&$docdir&g
21253 s&@infodir@&$infodir&g
21254 s&@localedir@&$localedir&g
21255 s&@mandir@&$mandir&g
21256 s&\\\${datarootdir}&$datarootdir&g' ;;
21257 esac
21258 _ACEOF
21260 # Neutralize VPATH when `$srcdir' = `.'.
21261 # Shell code in configure.ac might set extrasub.
21262 # FIXME: do we really want to maintain this feature?
21263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21264 ac_sed_extra="$ac_vpsub
21265 $extrasub
21266 _ACEOF
21267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21270 s|@configure_input@|$ac_sed_conf_input|;t t
21271 s&@top_builddir@&$ac_top_builddir_sub&;t t
21272 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21273 s&@srcdir@&$ac_srcdir&;t t
21274 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21275 s&@top_srcdir@&$ac_top_srcdir&;t t
21276 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21277 s&@builddir@&$ac_builddir&;t t
21278 s&@abs_builddir@&$ac_abs_builddir&;t t
21279 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21280 s&@INSTALL@&$ac_INSTALL&;t t
21281 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21282 $ac_datarootdir_hack
21284 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21285 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21286 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21287 { (exit 1); exit 1; }; }
21289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21292 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21293 which seems to be undefined. Please make sure it is defined." >&5
21294 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21295 which seems to be undefined. Please make sure it is defined." >&2;}
21297 rm -f "$tmp/stdin"
21298 case $ac_file in
21299 -) cat "$tmp/out" && rm -f "$tmp/out";;
21300 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21301 esac \
21302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21304 { (exit 1); exit 1; }; }
21308 # CONFIG_HEADER
21310 if test x"$ac_file" != x-; then
21312 $as_echo "/* $configure_input */" \
21313 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21314 } >"$tmp/config.h" \
21315 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21316 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21317 { (exit 1); exit 1; }; }
21318 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21319 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21321 else
21322 rm -f "$ac_file"
21323 mv "$tmp/config.h" "$ac_file" \
21324 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21325 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21326 { (exit 1); exit 1; }; }
21328 else
21329 $as_echo "/* $configure_input */" \
21330 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21331 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21332 $as_echo "$as_me: error: could not create -" >&2;}
21333 { (exit 1); exit 1; }; }
21335 # Compute "$ac_file"'s index in $config_headers.
21336 _am_arg="$ac_file"
21337 _am_stamp_count=1
21338 for _am_header in $config_headers :; do
21339 case $_am_header in
21340 $_am_arg | $_am_arg:* )
21341 break ;;
21343 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21344 esac
21345 done
21346 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21347 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21348 X"$_am_arg" : 'X\(//\)[^/]' \| \
21349 X"$_am_arg" : 'X\(//\)$' \| \
21350 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21351 $as_echo X"$_am_arg" |
21352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21353 s//\1/
21356 /^X\(\/\/\)[^/].*/{
21357 s//\1/
21360 /^X\(\/\/\)$/{
21361 s//\1/
21364 /^X\(\/\).*/{
21365 s//\1/
21368 s/.*/./; q'`/stamp-h$_am_stamp_count
21371 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21372 $as_echo "$as_me: executing $ac_file commands" >&6;}
21374 esac
21377 case $ac_file$ac_mode in
21378 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21379 # Strip MF so we end up with the name of the file.
21380 mf=`echo "$mf" | sed -e 's/:.*$//'`
21381 # Check whether this is an Automake generated Makefile or not.
21382 # We used to match only the files named `Makefile.in', but
21383 # some people rename them; so instead we look at the file content.
21384 # Grep'ing the first line is not enough: some people post-process
21385 # each Makefile.in and add a new line on top of each file to say so.
21386 # Grep'ing the whole file is not good either: AIX grep has a line
21387 # limit of 2048, but all sed's we know have understand at least 4000.
21388 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21389 dirpart=`$as_dirname -- "$mf" ||
21390 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391 X"$mf" : 'X\(//\)[^/]' \| \
21392 X"$mf" : 'X\(//\)$' \| \
21393 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21394 $as_echo X"$mf" |
21395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21396 s//\1/
21399 /^X\(\/\/\)[^/].*/{
21400 s//\1/
21403 /^X\(\/\/\)$/{
21404 s//\1/
21407 /^X\(\/\).*/{
21408 s//\1/
21411 s/.*/./; q'`
21412 else
21413 continue
21415 # Extract the definition of DEPDIR, am__include, and am__quote
21416 # from the Makefile without running `make'.
21417 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21418 test -z "$DEPDIR" && continue
21419 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21420 test -z "am__include" && continue
21421 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21422 # When using ansi2knr, U may be empty or an underscore; expand it
21423 U=`sed -n 's/^U = //p' < "$mf"`
21424 # Find all dependency output files, they are included files with
21425 # $(DEPDIR) in their names. We invoke sed twice because it is the
21426 # simplest approach to changing $(DEPDIR) to its actual value in the
21427 # expansion.
21428 for file in `sed -n "
21429 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21430 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21431 # Make sure the directory exists.
21432 test -f "$dirpart/$file" && continue
21433 fdir=`$as_dirname -- "$file" ||
21434 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21435 X"$file" : 'X\(//\)[^/]' \| \
21436 X"$file" : 'X\(//\)$' \| \
21437 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21438 $as_echo X"$file" |
21439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21440 s//\1/
21443 /^X\(\/\/\)[^/].*/{
21444 s//\1/
21447 /^X\(\/\/\)$/{
21448 s//\1/
21451 /^X\(\/\).*/{
21452 s//\1/
21455 s/.*/./; q'`
21456 { as_dir=$dirpart/$fdir
21457 case $as_dir in #(
21458 -*) as_dir=./$as_dir;;
21459 esac
21460 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21461 as_dirs=
21462 while :; do
21463 case $as_dir in #(
21464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21465 *) as_qdir=$as_dir;;
21466 esac
21467 as_dirs="'$as_qdir' $as_dirs"
21468 as_dir=`$as_dirname -- "$as_dir" ||
21469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21470 X"$as_dir" : 'X\(//\)[^/]' \| \
21471 X"$as_dir" : 'X\(//\)$' \| \
21472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21473 $as_echo X"$as_dir" |
21474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21475 s//\1/
21478 /^X\(\/\/\)[^/].*/{
21479 s//\1/
21482 /^X\(\/\/\)$/{
21483 s//\1/
21486 /^X\(\/\).*/{
21487 s//\1/
21490 s/.*/./; q'`
21491 test -d "$as_dir" && break
21492 done
21493 test -z "$as_dirs" || eval "mkdir $as_dirs"
21494 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21495 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21496 { (exit 1); exit 1; }; }; }
21497 # echo "creating $dirpart/$file"
21498 echo '# dummy' > "$dirpart/$file"
21499 done
21500 done
21503 esac
21504 done # for ac_tag
21507 { (exit 0); exit 0; }
21508 _ACEOF
21509 chmod +x $CONFIG_STATUS
21510 ac_clean_files=$ac_clean_files_save
21512 test $ac_write_fail = 0 ||
21513 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21514 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21515 { (exit 1); exit 1; }; }
21518 # configure is writing to config.log, and then calls config.status.
21519 # config.status does its own redirection, appending to config.log.
21520 # Unfortunately, on DOS this fails, as config.log is still kept open
21521 # by configure, so config.status won't be able to write to it; its
21522 # output is simply discarded. So we exec the FD to /dev/null,
21523 # effectively closing config.log, so it can be properly (re)opened and
21524 # appended to by config.status. When coming back to configure, we
21525 # need to make the FD available again.
21526 if test "$no_create" != yes; then
21527 ac_cs_success=:
21528 ac_config_status_args=
21529 test "$silent" = yes &&
21530 ac_config_status_args="$ac_config_status_args --quiet"
21531 exec 5>/dev/null
21532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21533 exec 5>>config.log
21534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21535 # would make configure fail if this is the last instruction.
21536 $ac_cs_success || { (exit 1); exit 1; }
21538 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21539 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
21540 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}