Fixing compilation failure
[csql.git] / configure
blob40694517a0d7dd6b22365e4ca2240b59169ef8fa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
64 IFS=" "" $as_nl"
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 done
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
136 /^X\/\(\/\/\)$/{
137 s//\1/
140 /^X\/\(\/\).*/{
141 s//\1/
144 s/.*/./; q'`
146 # CDPATH.
147 $as_unset CDPATH
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
161 as_func_success () {
162 as_func_return 0
164 as_func_failure () {
165 as_func_return 1
167 as_func_ret_success () {
168 return 0
170 as_func_ret_failure () {
171 return 1
174 exitcode=0
175 if as_func_success; then
177 else
178 exitcode=1
179 echo as_func_success failed.
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201 else
202 exitcode=1
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
271 (as_func_return () {
272 (exit $1)
274 as_func_success () {
275 as_func_return 0
277 as_func_failure () {
278 as_func_return 1
280 as_func_ret_success () {
281 return 0
283 as_func_ret_failure () {
284 return 1
287 exitcode=0
288 if as_func_success; then
290 else
291 exitcode=1
292 echo as_func_success failed.
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
314 else
315 exitcode=1
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327 _ASEOF
328 }; then
329 break
334 done
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
361 (exit \$1)
363 as_func_success () {
364 as_func_return 0
366 as_func_failure () {
367 as_func_return 1
369 as_func_ret_success () {
370 return 0
372 as_func_ret_failure () {
373 return 1
376 exitcode=0
377 if as_func_success; then
379 else
380 exitcode=1
381 echo as_func_success failed.
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403 else
404 exitcode=1
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
474 ECHO_N='-n';;
475 esac
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
527 rm -f conf$$.file
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
541 case X$ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 esac
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<EOF
569 exit 0
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584 then
585 break
587 done
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
594 else
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
603 IFS="$lt_save_ifs"
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 echo="$dir/echo"
609 break
611 done
612 IFS="$lt_save_ifs"
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
620 echo='print -r'
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
627 export CONFIG_SHELL
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 else
630 # Try using printf.
631 echo='printf %s\n'
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # Cool, printf works
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 export CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
644 export SHELL
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 else
652 # maybe with a smaller string...
653 prev=:
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657 then
658 break
660 prev="$cmd"
661 done
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 else
668 # Oops. We lost completely, so just stick with echo.
669 echo=echo
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699 # Initializations.
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
718 ac_unique_file="configure.in"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 # include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 # include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 INSTALL_PROGRAM
793 INSTALL_SCRIPT
794 INSTALL_DATA
795 CYGPATH_W
796 PACKAGE
797 VERSION
798 ACLOCAL
799 AUTOCONF
800 AUTOMAKE
801 AUTOHEADER
802 MAKEINFO
803 install_sh
804 STRIP
805 INSTALL_STRIP_PROGRAM
806 mkdir_p
808 SET_MAKE
809 am__leading_dot
810 AMTAR
811 am__tar
812 am__untar
814 CFLAGS
815 LDFLAGS
816 CPPFLAGS
817 ac_ct_CC
818 EXEEXT
819 OBJEXT
820 DEPDIR
821 am__include
822 am__quote
823 AMDEP_TRUE
824 AMDEP_FALSE
825 AMDEPBACKSLASH
826 CCDEPMODE
827 am__fastdepCC_TRUE
828 am__fastdepCC_FALSE
830 CXXFLAGS
831 ac_ct_CXX
832 CXXDEPMODE
833 am__fastdepCXX_TRUE
834 am__fastdepCXX_FALSE
835 build
836 build_cpu
837 build_vendor
838 build_os
839 host
840 host_cpu
841 host_vendor
842 host_os
843 GREP
844 EGREP
845 LN_S
846 ECHO
848 RANLIB
850 CXXCPP
852 FFLAGS
853 ac_ct_F77
854 LIBTOOL
856 LEXLIB
857 LEX_OUTPUT_ROOT
858 YACC
859 YFLAGS
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
871 CXXFLAGS
874 CXXCPP
876 FFLAGS
877 YACC
878 YFLAGS'
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
927 ac_prev=
928 ac_dashdash=
929 for ac_option
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
938 case $ac_option in
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *) ac_optarg=yes ;;
941 esac
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
947 ac_dashdash=yes ;;
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
966 --config-cache | -C)
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
988 eval enable_$ac_feature=no ;;
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
1000 -enable-* | --enable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1007 eval enable_$ac_feature=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1197 -with-* | --with-*)
1198 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package| sed 's/-/_/g'`
1204 eval with_$ac_package=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/-/_/g'`
1213 eval with_$ac_package=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 { echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1264 # Be sure to have absolute directory names.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$0" : 'X\(//\)[^/]' \| \
1320 X"$0" : 'X\(//\)$' \| \
1321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 echo X"$0" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-dependency-tracking speeds up one-time build
1457 --enable-dependency-tracking do not reject slow dependency extractors
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-tags[=TAGS] include additional configurations [automatic]
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CXX C++ compiler command
1480 CXXFLAGS C++ compiler flags
1481 CPP C preprocessor
1482 CXXCPP C++ preprocessor
1483 F77 Fortran 77 compiler command
1484 FFLAGS Fortran 77 compiler flags
1485 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1486 the first program found out of: `bison -y', `byacc', `yacc'.
1487 YFLAGS The list of arguments that will be passed by default to $YACC.
1488 This script will default YFLAGS to the empty string to avoid a
1489 default value of `-d' given by some make applications.
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1502 ac_builddir=.
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 configure
1555 generated by GNU Autoconf 2.60
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1568 It was created by $as_me, which was
1569 generated by GNU Autoconf 2.60. Invocation command line was
1571 $ $0 $@
1573 _ACEOF
1574 exec 5>>config.log
1576 cat <<_ASUNAME
1577 ## --------- ##
1578 ## Platform. ##
1579 ## --------- ##
1581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1588 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1591 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1592 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1593 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1594 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1595 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1596 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598 _ASUNAME
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 echo "PATH: $as_dir"
1606 done
1607 IFS=$as_save_IFS
1609 } >&5
1611 cat >&5 <<_ACEOF
1614 ## ----------- ##
1615 ## Core tests. ##
1616 ## ----------- ##
1618 _ACEOF
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_configure_args=
1627 ac_configure_args0=
1628 ac_configure_args1=
1629 ac_must_keep_next=false
1630 for ac_pass in 1 2
1632 for ac_arg
1634 case $ac_arg in
1635 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1638 continue ;;
1639 *\'*)
1640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 esac
1642 case $ac_pass in
1643 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646 if test $ac_must_keep_next = true; then
1647 ac_must_keep_next=false # Got value, back to normal.
1648 else
1649 case $ac_arg in
1650 *=* | --config-cache | -C | -disable-* | --disable-* \
1651 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653 | -with-* | --with-* | -without-* | --without-* | --x)
1654 case "$ac_configure_args0 " in
1655 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656 esac
1658 -* ) ac_must_keep_next=true ;;
1659 esac
1661 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 esac
1664 done
1665 done
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log. We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675 # Save into config.log some information that might help in debugging.
1677 echo
1679 cat <<\_ASBOX
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1683 _ASBOX
1684 echo
1685 # The following way of writing the cache mishandles newlines in values,
1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688 eval ac_val=\$$ac_var
1689 case $ac_val in #(
1690 *${as_nl}*)
1691 case $ac_var in #(
1692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694 esac
1695 case $ac_var in #(
1696 _ | IFS | as_nl) ;; #(
1697 *) $as_unset $ac_var ;;
1698 esac ;;
1699 esac
1700 done
1701 (set) 2>&1 |
1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1704 sed -n \
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 ;; #(
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 esac |
1712 sort
1714 echo
1716 cat <<\_ASBOX
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1720 _ASBOX
1721 echo
1722 for ac_var in $ac_subst_vars
1724 eval ac_val=\$$ac_var
1725 case $ac_val in
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 esac
1728 echo "$ac_var='\''$ac_val'\''"
1729 done | sort
1730 echo
1732 if test -n "$ac_subst_files"; then
1733 cat <<\_ASBOX
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_files
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1750 if test -s confdefs.h; then
1751 cat <<\_ASBOX
1752 ## ----------- ##
1753 ## confdefs.h. ##
1754 ## ----------- ##
1755 _ASBOX
1756 echo
1757 cat confdefs.h
1758 echo
1760 test "$ac_signal" != 0 &&
1761 echo "$as_me: caught signal $ac_signal"
1762 echo "$as_me: exit $exit_status"
1763 } >&5
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 exit $exit_status
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 done
1771 ac_signal=0
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1776 # Predefined preprocessor variables.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 _ACEOF
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 _ACEOF
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 else
1810 set x "$ac_default_prefix/share/config.site" \
1811 "$ac_default_prefix/etc/config.site"
1813 shift
1814 for ac_site_file
1816 if test -r "$ac_site_file"; then
1817 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1820 . "$ac_site_file"
1822 done
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1830 case $cache_file in
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1833 esac
1835 else
1836 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1838 >$cache_file
1841 # Check that the precious variables saved in the cache have kept the same
1842 # value.
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1850 set,)
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,set)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,);;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1864 echo "$as_me: former value: $ac_old_val" >&2;}
1865 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1866 echo "$as_me: current value: $ac_new_val" >&2;}
1867 ac_cache_corrupted=:
1868 fi;;
1869 esac
1870 # Pass precious variables to config.status.
1871 if test "$ac_new_set" = set; then
1872 case $ac_new_val in
1873 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 *) ac_arg=$ac_var=$ac_new_val ;;
1875 esac
1876 case " $ac_configure_args " in
1877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1878 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 esac
1881 done
1882 if $ac_cache_corrupted; then
1883 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1884 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1885 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1887 { (exit 1); exit 1; }; }
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 ac_config_headers="$ac_config_headers config.h"
1916 am__api_version="1.9"
1917 ac_aux_dir=
1918 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1919 if test -f "$ac_dir/install-sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install-sh -c"
1922 break
1923 elif test -f "$ac_dir/install.sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install.sh -c"
1926 break
1927 elif test -f "$ac_dir/shtool"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 break
1932 done
1933 if test -z "$ac_aux_dir"; then
1934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1936 { (exit 1); exit 1; }; }
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948 # Find a good install program. We prefer a C program (faster),
1949 # so one script is as good as another. But avoid the broken or
1950 # incompatible versions:
1951 # SysV /etc/install, /usr/sbin/install
1952 # SunOS /usr/etc/install
1953 # IRIX /sbin/install
1954 # AIX /bin/install
1955 # AmigaOS /C/install, which installs bootblocks on floppy discs
1956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1959 # OS/2's system install, which has a completely different semantic
1960 # ./install, which can be erroneously created by make from ./install.sh.
1961 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1963 if test -z "$INSTALL"; then
1964 if test "${ac_cv_path_install+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 # Account for people who put trailing slashes in PATH elements.
1973 case $as_dir/ in
1974 ./ | .// | /cC/* | \
1975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1976 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1977 /usr/ucb/* ) ;;
1979 # OSF1 and SCO ODT 3.0 have their own names for install.
1980 # Don't use installbsd from OSF since it installs stuff as root
1981 # by default.
1982 for ac_prog in ginstall scoinst install; do
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1985 if test $ac_prog = install &&
1986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1987 # AIX install. It has an incompatible calling convention.
1989 elif test $ac_prog = install &&
1990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1991 # program-specific install script used by HP pwplus--don't use.
1993 else
1994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1995 break 3
1998 done
1999 done
2001 esac
2002 done
2003 IFS=$as_save_IFS
2007 if test "${ac_cv_path_install+set}" = set; then
2008 INSTALL=$ac_cv_path_install
2009 else
2010 # As a last resort, use the slow shell script. Don't cache a
2011 # value for INSTALL within a source directory, because that will
2012 # break other packages using the cache if that directory is
2013 # removed, or if the value is a relative name.
2014 INSTALL=$ac_install_sh
2017 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2018 echo "${ECHO_T}$INSTALL" >&6; }
2020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2021 # It thinks the first close brace ends the variable substitution.
2022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2028 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2029 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2030 # Just in case
2031 sleep 1
2032 echo timestamp > conftest.file
2033 # Do `set' in a subshell so we don't clobber the current shell's
2034 # arguments. Must try -L first in case configure is actually a
2035 # symlink; some systems play weird games with the mod time of symlinks
2036 # (eg FreeBSD returns the mod time of the symlink's containing
2037 # directory).
2038 if (
2039 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2040 if test "$*" = "X"; then
2041 # -L didn't work.
2042 set X `ls -t $srcdir/configure conftest.file`
2044 rm -f conftest.file
2045 if test "$*" != "X $srcdir/configure conftest.file" \
2046 && test "$*" != "X conftest.file $srcdir/configure"; then
2048 # If neither matched, then we have a broken ls. This can happen
2049 # if, for instance, CONFIG_SHELL is bash and it inherits a
2050 # broken ls alias from the environment. This has actually
2051 # happened. Such a system could not be considered "sane".
2052 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2053 alias in your environment" >&5
2054 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2055 alias in your environment" >&2;}
2056 { (exit 1); exit 1; }; }
2059 test "$2" = conftest.file
2061 then
2062 # Ok.
2064 else
2065 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2066 Check your system clock" >&5
2067 echo "$as_me: error: newly created file is older than distributed files!
2068 Check your system clock" >&2;}
2069 { (exit 1); exit 1; }; }
2071 { echo "$as_me:$LINENO: result: yes" >&5
2072 echo "${ECHO_T}yes" >&6; }
2073 test "$program_prefix" != NONE &&
2074 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2075 # Use a double $ so make ignores it.
2076 test "$program_suffix" != NONE &&
2077 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2078 # Double any \ or $. echo might interpret backslashes.
2079 # By default was `s,x,x', remove it if useless.
2080 cat <<\_ACEOF >conftest.sed
2081 s/[\\$]/&&/g;s/;s,x,x,$//
2082 _ACEOF
2083 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2084 rm -f conftest.sed
2086 # expand $ac_aux_dir to an absolute path
2087 am_aux_dir=`cd $ac_aux_dir && pwd`
2089 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2090 # Use eval to expand $SHELL
2091 if eval "$MISSING --run true"; then
2092 am_missing_run="$MISSING --run "
2093 else
2094 am_missing_run=
2095 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2096 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2100 # We used to keeping the `.' as first argument, in order to
2101 # allow $(mkdir_p) to be used without argument. As in
2102 # $(mkdir_p) $(somedir)
2103 # where $(somedir) is conditionally defined. However this is wrong
2104 # for two reasons:
2105 # 1. if the package is installed by a user who cannot write `.'
2106 # make install will fail,
2107 # 2. the above comment should most certainly read
2108 # $(mkdir_p) $(DESTDIR)$(somedir)
2109 # so it does not work when $(somedir) is undefined and
2110 # $(DESTDIR) is not.
2111 # To support the latter case, we have to write
2112 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2113 # so the `.' trick is pointless.
2114 mkdir_p='mkdir -p --'
2115 else
2116 # On NextStep and OpenStep, the `mkdir' command does not
2117 # recognize any option. It will interpret all options as
2118 # directories to create, and then abort because `.' already
2119 # exists.
2120 for d in ./-p ./--version;
2122 test -d $d && rmdir $d
2123 done
2124 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2125 if test -f "$ac_aux_dir/mkinstalldirs"; then
2126 mkdir_p='$(mkinstalldirs)'
2127 else
2128 mkdir_p='$(install_sh) -d'
2132 for ac_prog in gawk mawk nawk awk
2134 # Extract the first word of "$ac_prog", so it can be a program name with args.
2135 set dummy $ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_AWK+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$AWK"; then
2142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_AWK="$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 AWK=$ac_cv_prog_AWK
2162 if test -n "$AWK"; then
2163 { echo "$as_me:$LINENO: result: $AWK" >&5
2164 echo "${ECHO_T}$AWK" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2171 test -n "$AWK" && break
2172 done
2174 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2175 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2176 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2177 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.make <<\_ACEOF
2181 SHELL = /bin/sh
2182 all:
2183 @echo '@@@%%%=$(MAKE)=@@@%%%'
2184 _ACEOF
2185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2187 *@@@%%%=?*=@@@%%%*)
2188 eval ac_cv_prog_make_${ac_make}_set=yes;;
2190 eval ac_cv_prog_make_${ac_make}_set=no;;
2191 esac
2192 rm -f conftest.make
2194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2195 { echo "$as_me:$LINENO: result: yes" >&5
2196 echo "${ECHO_T}yes" >&6; }
2197 SET_MAKE=
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 SET_MAKE="MAKE=${MAKE-make}"
2204 rm -rf .tst 2>/dev/null
2205 mkdir .tst 2>/dev/null
2206 if test -d .tst; then
2207 am__leading_dot=.
2208 else
2209 am__leading_dot=_
2211 rmdir .tst 2>/dev/null
2213 # test to see if srcdir already configured
2214 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2215 test -f $srcdir/config.status; then
2216 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2217 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2218 { (exit 1); exit 1; }; }
2221 # test whether we have cygpath
2222 if test -z "$CYGPATH_W"; then
2223 if (cygpath --version) >/dev/null 2>/dev/null; then
2224 CYGPATH_W='cygpath -w'
2225 else
2226 CYGPATH_W=echo
2231 # Define the identity of the package.
2232 PACKAGE=csql
2233 VERSION=0.1
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE "$PACKAGE"
2238 _ACEOF
2241 cat >>confdefs.h <<_ACEOF
2242 #define VERSION "$VERSION"
2243 _ACEOF
2245 # Some tools Automake needs.
2247 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2250 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2253 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2256 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2259 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2261 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2263 # Installed binaries are usually stripped using `strip' when the user
2264 # run `make install-strip'. However `strip' might not be the right
2265 # tool to use in cross-compilation environments, therefore Automake
2266 # will honor the `STRIP' environment variable to overrule this program.
2267 if test "$cross_compiling" != no; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}strip; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_STRIP+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 if test -n "$STRIP"; then
2277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2290 done
2291 done
2292 IFS=$as_save_IFS
2296 STRIP=$ac_cv_prog_STRIP
2297 if test -n "$STRIP"; then
2298 { echo "$as_me:$LINENO: result: $STRIP" >&5
2299 echo "${ECHO_T}$STRIP" >&6; }
2300 else
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2307 if test -z "$ac_cv_prog_STRIP"; then
2308 ac_ct_STRIP=$STRIP
2309 # Extract the first word of "strip", so it can be a program name with args.
2310 set dummy strip; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$ac_ct_STRIP"; then
2317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_STRIP="strip"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2330 done
2331 done
2332 IFS=$as_save_IFS
2336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2337 if test -n "$ac_ct_STRIP"; then
2338 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2339 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2340 else
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2345 if test "x$ac_ct_STRIP" = x; then
2346 STRIP=":"
2347 else
2348 case $cross_compiling:$ac_tool_warned in
2349 yes:)
2350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&5
2353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2356 ac_tool_warned=yes ;;
2357 esac
2358 STRIP=$ac_ct_STRIP
2360 else
2361 STRIP="$ac_cv_prog_STRIP"
2365 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2367 # We need awk for the "check" target. The system "awk" is bad on
2368 # some platforms.
2369 # Always define AMTAR for backward compatibility.
2371 AMTAR=${AMTAR-"${am_missing_run}tar"}
2373 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2380 ac_ext=cpp
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2415 IFS=$as_save_IFS
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481 CC=$ac_ct_CC
2483 else
2484 CC="$ac_cv_prog_CC"
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2551 ac_cv_prog_CC="cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2626 done
2628 if test -z "$CC"; then
2629 ac_ct_CC=$CC
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2670 done
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685 CC=$ac_ct_CC
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 main ()
2744 return 0;
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2767 case $ac_file in
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771 done
2772 rm -f $ac_rmfiles
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 [ab].out )
2796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
2799 *.* )
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
2809 break;;
2811 break;;
2812 esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 break;;
2897 * ) break;;
2898 esac
2899 done
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2948 case $ac_file in
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953 done
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2984 main ()
2986 #ifndef __GNUC__
2987 choke me
2988 #endif
2991 return 0;
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 ac_compiler_gnu=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 ac_compiler_gnu=no
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3062 main ()
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_prog_cc_g=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3117 main ()
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_prog_cc_g=yes
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3241 else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269 char **p;
3270 int i;
3272 return p[i];
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3305 main ()
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 return 0;
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370 xno)
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3380 ac_ext=cpp
3381 ac_cpp='$CXXCPP $CPPFLAGS'
3382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3385 DEPDIR="${am__leading_dot}deps"
3387 ac_config_commands="$ac_config_commands depfiles"
3390 am_make=${MAKE-make}
3391 cat > confinc << 'END'
3392 am__doit:
3393 @echo done
3394 .PHONY: am__doit
3396 # If we don't find an include directive, just comment out the code.
3397 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3398 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3399 am__include="#"
3400 am__quote=
3401 _am_result=none
3402 # First try GNU make style include.
3403 echo "include confinc" > confmf
3404 # We grep out `Entering directory' and `Leaving directory'
3405 # messages which can occur if `w' ends up in MAKEFLAGS.
3406 # In particular we don't look at `^make:' because GNU make might
3407 # be invoked under some other name (usually "gmake"), in which
3408 # case it prints its new name instead of `make'.
3409 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3410 am__include=include
3411 am__quote=
3412 _am_result=GNU
3414 # Now try BSD make style include.
3415 if test "$am__include" = "#"; then
3416 echo '.include "confinc"' > confmf
3417 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3418 am__include=.include
3419 am__quote="\""
3420 _am_result=BSD
3425 { echo "$as_me:$LINENO: result: $_am_result" >&5
3426 echo "${ECHO_T}$_am_result" >&6; }
3427 rm -f confinc confmf
3429 # Check whether --enable-dependency-tracking was given.
3430 if test "${enable_dependency_tracking+set}" = set; then
3431 enableval=$enable_dependency_tracking;
3434 if test "x$enable_dependency_tracking" != xno; then
3435 am_depcomp="$ac_aux_dir/depcomp"
3436 AMDEPBACKSLASH='\'
3440 if test "x$enable_dependency_tracking" != xno; then
3441 AMDEP_TRUE=
3442 AMDEP_FALSE='#'
3443 else
3444 AMDEP_TRUE='#'
3445 AMDEP_FALSE=
3451 depcc="$CC" am_compiler_list=
3453 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3454 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3455 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3459 # We make a subdir and do the tests there. Otherwise we can end up
3460 # making bogus files that we don't know about and never remove. For
3461 # instance it was reported that on HP-UX the gcc test will end up
3462 # making a dummy file named `D' -- because `-MD' means `put the output
3463 # in D'.
3464 mkdir conftest.dir
3465 # Copy depcomp to subdir because otherwise we won't find it if we're
3466 # using a relative directory.
3467 cp "$am_depcomp" conftest.dir
3468 cd conftest.dir
3469 # We will build objects and dependencies in a subdirectory because
3470 # it helps to detect inapplicable dependency modes. For instance
3471 # both Tru64's cc and ICC support -MD to output dependencies as a
3472 # side effect of compilation, but ICC will put the dependencies in
3473 # the current directory while Tru64 will put them in the object
3474 # directory.
3475 mkdir sub
3477 am_cv_CC_dependencies_compiler_type=none
3478 if test "$am_compiler_list" = ""; then
3479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481 for depmode in $am_compiler_list; do
3482 # Setup a source with many dependencies, because some compilers
3483 # like to wrap large dependency lists on column 80 (with \), and
3484 # we should not choose a depcomp mode which is confused by this.
3486 # We need to recreate these files for each test, as the compiler may
3487 # overwrite some of them when testing with obscure command lines.
3488 # This happens at least with the AIX C compiler.
3489 : > sub/conftest.c
3490 for i in 1 2 3 4 5 6; do
3491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3492 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3493 # Solaris 8's {/usr,}/bin/sh.
3494 touch sub/conftst$i.h
3495 done
3496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498 case $depmode in
3499 nosideeffect)
3500 # after this tag, mechanisms are not by side-effect, so they'll
3501 # only be used when explicitly requested
3502 if test "x$enable_dependency_tracking" = xyes; then
3503 continue
3504 else
3505 break
3508 none) break ;;
3509 esac
3510 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3511 # mode. It turns out that the SunPro C++ compiler does not properly
3512 # handle `-M -o', and we need to detect this.
3513 if depmode=$depmode \
3514 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3516 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3517 >/dev/null 2>conftest.err &&
3518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3519 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3521 # icc doesn't choke on unknown options, it will just issue warnings
3522 # or remarks (even with -Werror). So we grep stderr for any message
3523 # that says an option was ignored or not supported.
3524 # When given -MP, icc 7.0 and 7.1 complain thusly:
3525 # icc: Command line warning: ignoring option '-M'; no argument required
3526 # The diagnosis changed in icc 8.0:
3527 # icc: Command line remark: option '-MP' not supported
3528 if (grep 'ignoring option' conftest.err ||
3529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3530 am_cv_CC_dependencies_compiler_type=$depmode
3531 break
3534 done
3536 cd ..
3537 rm -rf conftest.dir
3538 else
3539 am_cv_CC_dependencies_compiler_type=none
3543 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3544 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3545 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3550 test "x$enable_dependency_tracking" != xno \
3551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3552 am__fastdepCC_TRUE=
3553 am__fastdepCC_FALSE='#'
3554 else
3555 am__fastdepCC_TRUE='#'
3556 am__fastdepCC_FALSE=
3560 ac_ext=cpp
3561 ac_cpp='$CXXCPP $CPPFLAGS'
3562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3565 if test -z "$CXX"; then
3566 if test -n "$CCC"; then
3567 CXX=$CCC
3568 else
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_CXX+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 if test -n "$CXX"; then
3580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3593 done
3594 done
3595 IFS=$as_save_IFS
3599 CXX=$ac_cv_prog_CXX
3600 if test -n "$CXX"; then
3601 { echo "$as_me:$LINENO: result: $CXX" >&5
3602 echo "${ECHO_T}$CXX" >&6; }
3603 else
3604 { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3609 test -n "$CXX" && break
3610 done
3612 if test -z "$CXX"; then
3613 ac_ct_CXX=$CXX
3614 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3620 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 if test -n "$ac_ct_CXX"; then
3624 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_ac_ct_CXX="$ac_prog"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3644 if test -n "$ac_ct_CXX"; then
3645 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3646 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3647 else
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3653 test -n "$ac_ct_CXX" && break
3654 done
3656 if test "x$ac_ct_CXX" = x; then
3657 CXX="g++"
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3662 whose name does not start with the host triplet. If you think this
3663 configuration is useful to you, please write to autoconf@gnu.org." >&5
3664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3665 whose name does not start with the host triplet. If you think this
3666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 CXX=$ac_ct_CXX
3675 # Provide some information about the compiler.
3676 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3677 ac_compiler=`set X $ac_compile; echo $2`
3678 { (ac_try="$ac_compiler --version >&5"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_compiler --version >&5") 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }
3688 { (ac_try="$ac_compiler -v >&5"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_compiler -v >&5") 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }
3698 { (ac_try="$ac_compiler -V >&5"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compiler -V >&5") 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }
3709 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3710 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3711 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3722 main ()
3724 #ifndef __GNUC__
3725 choke me
3726 #endif
3729 return 0;
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compile") 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3747 { (case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_try") 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_try") 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 ac_compiler_gnu=yes
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ac_compiler_gnu=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3778 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3779 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3780 GXX=`test $ac_compiler_gnu = yes && echo yes`
3781 ac_test_CXXFLAGS=${CXXFLAGS+set}
3782 ac_save_CXXFLAGS=$CXXFLAGS
3783 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3785 if test "${ac_cv_prog_cxx_g+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3789 ac_cxx_werror_flag=yes
3790 ac_cv_prog_cxx_g=no
3791 CXXFLAGS="-g"
3792 cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h. */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3822 { (case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_try") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835 esac
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_try") 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_prog_cxx_g=yes
3842 else
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 CXXFLAGS=""
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3902 CXXFLAGS="-g"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_try") 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (case "(($ac_try" in
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3946 esac
3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3948 (eval "$ac_try") 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_cv_prog_cxx_g=yes
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3969 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3970 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3971 if test "$ac_test_CXXFLAGS" = set; then
3972 CXXFLAGS=$ac_save_CXXFLAGS
3973 elif test $ac_cv_prog_cxx_g = yes; then
3974 if test "$GXX" = yes; then
3975 CXXFLAGS="-g -O2"
3976 else
3977 CXXFLAGS="-g"
3979 else
3980 if test "$GXX" = yes; then
3981 CXXFLAGS="-O2"
3982 else
3983 CXXFLAGS=
3986 ac_ext=cpp
3987 ac_cpp='$CXXCPP $CPPFLAGS'
3988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3992 depcc="$CXX" am_compiler_list=
3994 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3996 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000 # We make a subdir and do the tests there. Otherwise we can end up
4001 # making bogus files that we don't know about and never remove. For
4002 # instance it was reported that on HP-UX the gcc test will end up
4003 # making a dummy file named `D' -- because `-MD' means `put the output
4004 # in D'.
4005 mkdir conftest.dir
4006 # Copy depcomp to subdir because otherwise we won't find it if we're
4007 # using a relative directory.
4008 cp "$am_depcomp" conftest.dir
4009 cd conftest.dir
4010 # We will build objects and dependencies in a subdirectory because
4011 # it helps to detect inapplicable dependency modes. For instance
4012 # both Tru64's cc and ICC support -MD to output dependencies as a
4013 # side effect of compilation, but ICC will put the dependencies in
4014 # the current directory while Tru64 will put them in the object
4015 # directory.
4016 mkdir sub
4018 am_cv_CXX_dependencies_compiler_type=none
4019 if test "$am_compiler_list" = ""; then
4020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4022 for depmode in $am_compiler_list; do
4023 # Setup a source with many dependencies, because some compilers
4024 # like to wrap large dependency lists on column 80 (with \), and
4025 # we should not choose a depcomp mode which is confused by this.
4027 # We need to recreate these files for each test, as the compiler may
4028 # overwrite some of them when testing with obscure command lines.
4029 # This happens at least with the AIX C compiler.
4030 : > sub/conftest.c
4031 for i in 1 2 3 4 5 6; do
4032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4034 # Solaris 8's {/usr,}/bin/sh.
4035 touch sub/conftst$i.h
4036 done
4037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4039 case $depmode in
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4049 none) break ;;
4050 esac
4051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4052 # mode. It turns out that the SunPro C++ compiler does not properly
4053 # handle `-M -o', and we need to detect this.
4054 if depmode=$depmode \
4055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4058 >/dev/null 2>conftest.err &&
4059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4062 # icc doesn't choke on unknown options, it will just issue warnings
4063 # or remarks (even with -Werror). So we grep stderr for any message
4064 # that says an option was ignored or not supported.
4065 # When given -MP, icc 7.0 and 7.1 complain thusly:
4066 # icc: Command line warning: ignoring option '-M'; no argument required
4067 # The diagnosis changed in icc 8.0:
4068 # icc: Command line remark: option '-MP' not supported
4069 if (grep 'ignoring option' conftest.err ||
4070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4071 am_cv_CXX_dependencies_compiler_type=$depmode
4072 break
4075 done
4077 cd ..
4078 rm -rf conftest.dir
4079 else
4080 am_cv_CXX_dependencies_compiler_type=none
4084 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4085 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4086 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4093 am__fastdepCXX_TRUE=
4094 am__fastdepCXX_FALSE='#'
4095 else
4096 am__fastdepCXX_TRUE='#'
4097 am__fastdepCXX_FALSE=
4101 # Check whether --enable-shared was given.
4102 if test "${enable_shared+set}" = set; then
4103 enableval=$enable_shared; p=${PACKAGE-default}
4104 case $enableval in
4105 yes) enable_shared=yes ;;
4106 no) enable_shared=no ;;
4108 enable_shared=no
4109 # Look at the argument we got. We use all the common list separators.
4110 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4111 for pkg in $enableval; do
4112 IFS="$lt_save_ifs"
4113 if test "X$pkg" = "X$p"; then
4114 enable_shared=yes
4116 done
4117 IFS="$lt_save_ifs"
4119 esac
4120 else
4121 enable_shared=yes
4125 # Check whether --enable-static was given.
4126 if test "${enable_static+set}" = set; then
4127 enableval=$enable_static; p=${PACKAGE-default}
4128 case $enableval in
4129 yes) enable_static=yes ;;
4130 no) enable_static=no ;;
4132 enable_static=no
4133 # Look at the argument we got. We use all the common list separators.
4134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135 for pkg in $enableval; do
4136 IFS="$lt_save_ifs"
4137 if test "X$pkg" = "X$p"; then
4138 enable_static=yes
4140 done
4141 IFS="$lt_save_ifs"
4143 esac
4144 else
4145 enable_static=yes
4149 # Check whether --enable-fast-install was given.
4150 if test "${enable_fast_install+set}" = set; then
4151 enableval=$enable_fast_install; p=${PACKAGE-default}
4152 case $enableval in
4153 yes) enable_fast_install=yes ;;
4154 no) enable_fast_install=no ;;
4156 enable_fast_install=no
4157 # Look at the argument we got. We use all the common list separators.
4158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4159 for pkg in $enableval; do
4160 IFS="$lt_save_ifs"
4161 if test "X$pkg" = "X$p"; then
4162 enable_fast_install=yes
4164 done
4165 IFS="$lt_save_ifs"
4167 esac
4168 else
4169 enable_fast_install=yes
4173 # Make sure we can run config.sub.
4174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4175 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4176 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4177 { (exit 1); exit 1; }; }
4179 { echo "$as_me:$LINENO: checking build system type" >&5
4180 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4181 if test "${ac_cv_build+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 ac_build_alias=$build_alias
4185 test "x$ac_build_alias" = x &&
4186 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4187 test "x$ac_build_alias" = x &&
4188 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4189 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4190 { (exit 1); exit 1; }; }
4191 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4192 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4193 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4194 { (exit 1); exit 1; }; }
4197 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4198 echo "${ECHO_T}$ac_cv_build" >&6; }
4199 case $ac_cv_build in
4200 *-*-*) ;;
4201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4202 echo "$as_me: error: invalid value of canonical build" >&2;}
4203 { (exit 1); exit 1; }; };;
4204 esac
4205 build=$ac_cv_build
4206 ac_save_IFS=$IFS; IFS='-'
4207 set x $ac_cv_build
4208 shift
4209 build_cpu=$1
4210 build_vendor=$2
4211 shift; shift
4212 # Remember, the first character of IFS is used to create $*,
4213 # except with old shells:
4214 build_os=$*
4215 IFS=$ac_save_IFS
4216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4219 { echo "$as_me:$LINENO: checking host system type" >&5
4220 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4221 if test "${ac_cv_host+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 if test "x$host_alias" = x; then
4225 ac_cv_host=$ac_cv_build
4226 else
4227 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4228 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4230 { (exit 1); exit 1; }; }
4234 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4235 echo "${ECHO_T}$ac_cv_host" >&6; }
4236 case $ac_cv_host in
4237 *-*-*) ;;
4238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4239 echo "$as_me: error: invalid value of canonical host" >&2;}
4240 { (exit 1); exit 1; }; };;
4241 esac
4242 host=$ac_cv_host
4243 ac_save_IFS=$IFS; IFS='-'
4244 set x $ac_cv_host
4245 shift
4246 host_cpu=$1
4247 host_vendor=$2
4248 shift; shift
4249 # Remember, the first character of IFS is used to create $*,
4250 # except with old shells:
4251 host_os=$*
4252 IFS=$ac_save_IFS
4253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4256 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4257 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4258 if test "${lt_cv_path_SED+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 # Loop through the user's path and test for sed and gsed.
4262 # Then use that list of sed's as ones to test for truncation.
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for lt_ac_prog in sed gsed; do
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4271 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4273 done
4274 done
4275 done
4276 lt_ac_max=0
4277 lt_ac_count=0
4278 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4279 # along with /bin/sed that truncates output.
4280 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4281 test ! -f $lt_ac_sed && continue
4282 cat /dev/null > conftest.in
4283 lt_ac_count=0
4284 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4285 # Check for GNU sed and select it if it is found.
4286 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4287 lt_cv_path_SED=$lt_ac_sed
4288 break
4290 while true; do
4291 cat conftest.in conftest.in >conftest.tmp
4292 mv conftest.tmp conftest.in
4293 cp conftest.in conftest.nl
4294 echo >>conftest.nl
4295 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4296 cmp -s conftest.out conftest.nl || break
4297 # 10000 chars as input seems more than enough
4298 test $lt_ac_count -gt 10 && break
4299 lt_ac_count=`expr $lt_ac_count + 1`
4300 if test $lt_ac_count -gt $lt_ac_max; then
4301 lt_ac_max=$lt_ac_count
4302 lt_cv_path_SED=$lt_ac_sed
4304 done
4305 done
4309 SED=$lt_cv_path_SED
4310 { echo "$as_me:$LINENO: result: $SED" >&5
4311 echo "${ECHO_T}$SED" >&6; }
4313 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4314 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4315 if test "${ac_cv_path_GREP+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 # Extract the first word of "grep ggrep" to use in msg output
4319 if test -z "$GREP"; then
4320 set dummy grep ggrep; ac_prog_name=$2
4321 if test "${ac_cv_path_GREP+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324 ac_path_GREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in grep ggrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 ac_count=0
4342 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4343 while :
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 ac_count=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP="$ac_path_GREP"
4355 ac_path_GREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4364 $ac_path_GREP_found && break 3
4365 done
4366 done
4368 done
4369 IFS=$as_save_IFS
4374 GREP="$ac_cv_path_GREP"
4375 if test -z "$GREP"; then
4376 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4377 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4378 { (exit 1); exit 1; }; }
4381 else
4382 ac_cv_path_GREP=$GREP
4387 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4388 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4389 GREP="$ac_cv_path_GREP"
4392 { echo "$as_me:$LINENO: checking for egrep" >&5
4393 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4394 if test "${ac_cv_path_EGREP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4398 then ac_cv_path_EGREP="$GREP -E"
4399 else
4400 # Extract the first word of "egrep" to use in msg output
4401 if test -z "$EGREP"; then
4402 set dummy egrep; ac_prog_name=$2
4403 if test "${ac_cv_path_EGREP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 ac_path_EGREP_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in egrep; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4417 # Check for GNU ac_path_EGREP and select it if it is found.
4418 # Check for GNU $ac_path_EGREP
4419 case `"$ac_path_EGREP" --version 2>&1` in
4420 *GNU*)
4421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4423 ac_count=0
4424 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4425 while :
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 echo 'EGREP' >> "conftest.nl"
4431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 ac_count=`expr $ac_count + 1`
4434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_EGREP="$ac_path_EGREP"
4437 ac_path_EGREP_max=$ac_count
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4441 done
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443 esac
4446 $ac_path_EGREP_found && break 3
4447 done
4448 done
4450 done
4451 IFS=$as_save_IFS
4456 EGREP="$ac_cv_path_EGREP"
4457 if test -z "$EGREP"; then
4458 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4459 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4460 { (exit 1); exit 1; }; }
4463 else
4464 ac_cv_path_EGREP=$EGREP
4470 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4471 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4476 # Check whether --with-gnu-ld was given.
4477 if test "${with_gnu_ld+set}" = set; then
4478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479 else
4480 with_gnu_ld=no
4483 ac_prog=ld
4484 if test "$GCC" = yes; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4487 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4501 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD="$ac_prog"
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4514 esac
4515 elif test "$with_gnu_ld" = yes; then
4516 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4517 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4518 else
4519 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4520 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4522 if test "${lt_cv_path_LD+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -z "$LD"; then
4526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS="$lt_save_ifs"
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD="$ac_dir/$ac_prog"
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test "$with_gnu_ld" != no && break
4540 test "$with_gnu_ld" != yes && break
4542 esac
4544 done
4545 IFS="$lt_save_ifs"
4546 else
4547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4551 LD="$lt_cv_path_LD"
4552 if test -n "$LD"; then
4553 { echo "$as_me:$LINENO: result: $LD" >&5
4554 echo "${ECHO_T}$LD" >&6; }
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4559 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4560 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4563 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4564 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568 case `$LD -v 2>&1 </dev/null` in
4569 *GNU* | *'with BFD'*)
4570 lt_cv_prog_gnu_ld=yes
4573 lt_cv_prog_gnu_ld=no
4575 esac
4577 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4578 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4579 with_gnu_ld=$lt_cv_prog_gnu_ld
4582 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4583 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4584 if test "${lt_cv_ld_reload_flag+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 lt_cv_ld_reload_flag='-r'
4589 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4590 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4591 reload_flag=$lt_cv_ld_reload_flag
4592 case $reload_flag in
4593 "" | " "*) ;;
4594 *) reload_flag=" $reload_flag" ;;
4595 esac
4596 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4597 case $host_os in
4598 darwin*)
4599 if test "$GCC" = yes; then
4600 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4601 else
4602 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4605 esac
4607 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4608 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4609 if test "${lt_cv_path_NM+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612 if test -n "$NM"; then
4613 # Let the user override the test.
4614 lt_cv_path_NM="$NM"
4615 else
4616 lt_nm_to_check="${ac_tool_prefix}nm"
4617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4618 lt_nm_to_check="$lt_nm_to_check nm"
4620 for lt_tmp_nm in $lt_nm_to_check; do
4621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4623 IFS="$lt_save_ifs"
4624 test -z "$ac_dir" && ac_dir=.
4625 tmp_nm="$ac_dir/$lt_tmp_nm"
4626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4627 # Check to see if the nm accepts a BSD-compat flag.
4628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4629 # nm: unknown option "B" ignored
4630 # Tru64's nm complains that /dev/null is an invalid object file
4631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4632 */dev/null* | *'Invalid file or object type'*)
4633 lt_cv_path_NM="$tmp_nm -B"
4634 break
4637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4638 */dev/null*)
4639 lt_cv_path_NM="$tmp_nm -p"
4640 break
4643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4644 continue # so that we can try to find one that supports BSD flags
4646 esac
4648 esac
4650 done
4651 IFS="$lt_save_ifs"
4652 done
4653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4656 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4657 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4658 NM="$lt_cv_path_NM"
4660 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4662 LN_S=$as_ln_s
4663 if test "$LN_S" = "ln -s"; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 else
4667 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4668 echo "${ECHO_T}no, using $LN_S" >&6; }
4671 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4672 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4673 if test "${lt_cv_deplibs_check_method+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 lt_cv_file_magic_cmd='$MAGIC_CMD'
4677 lt_cv_file_magic_test_file=
4678 lt_cv_deplibs_check_method='unknown'
4679 # Need to set the preceding variable on all platforms that support
4680 # interlibrary dependencies.
4681 # 'none' -- dependencies not supported.
4682 # `unknown' -- same as none, but documents that we really don't know.
4683 # 'pass_all' -- all dependencies passed with no checks.
4684 # 'test_compile' -- check by making test program.
4685 # 'file_magic [[regex]]' -- check by looking for files in library path
4686 # which responds to the $file_magic_cmd with a given extended regex.
4687 # If you have `file' or equivalent on your system and you're not sure
4688 # whether `pass_all' will *always* work, you probably want this one.
4690 case $host_os in
4691 aix4* | aix5*)
4692 lt_cv_deplibs_check_method=pass_all
4695 beos*)
4696 lt_cv_deplibs_check_method=pass_all
4699 bsdi[45]*)
4700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4701 lt_cv_file_magic_cmd='/usr/bin/file -L'
4702 lt_cv_file_magic_test_file=/shlib/libc.so
4705 cygwin*)
4706 # func_win32_libid is a shell function defined in ltmain.sh
4707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4708 lt_cv_file_magic_cmd='func_win32_libid'
4711 mingw* | pw32*)
4712 # Base MSYS/MinGW do not provide the 'file' command needed by
4713 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4714 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4715 lt_cv_file_magic_cmd='$OBJDUMP -f'
4718 darwin* | rhapsody*)
4719 lt_cv_deplibs_check_method=pass_all
4722 freebsd* | kfreebsd*-gnu | dragonfly*)
4723 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4724 case $host_cpu in
4725 i*86 )
4726 # Not sure whether the presence of OpenBSD here was a mistake.
4727 # Let's accept both of them until this is cleared up.
4728 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4729 lt_cv_file_magic_cmd=/usr/bin/file
4730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4732 esac
4733 else
4734 lt_cv_deplibs_check_method=pass_all
4738 gnu*)
4739 lt_cv_deplibs_check_method=pass_all
4742 hpux10.20* | hpux11*)
4743 lt_cv_file_magic_cmd=/usr/bin/file
4744 case $host_cpu in
4745 ia64*)
4746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4749 hppa*64*)
4750 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]'
4751 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4755 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4757 esac
4760 interix3*)
4761 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4765 irix5* | irix6* | nonstopux*)
4766 case $LD in
4767 *-32|*"-32 ") libmagic=32-bit;;
4768 *-n32|*"-n32 ") libmagic=N32;;
4769 *-64|*"-64 ") libmagic=64-bit;;
4770 *) libmagic=never-match;;
4771 esac
4772 lt_cv_deplibs_check_method=pass_all
4775 # This must be Linux ELF.
4776 linux*)
4777 lt_cv_deplibs_check_method=pass_all
4780 netbsd*)
4781 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4783 else
4784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4788 newos6*)
4789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4790 lt_cv_file_magic_cmd=/usr/bin/file
4791 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4794 nto-qnx*)
4795 lt_cv_deplibs_check_method=unknown
4798 openbsd*)
4799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4801 else
4802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4806 osf3* | osf4* | osf5*)
4807 lt_cv_deplibs_check_method=pass_all
4810 solaris*)
4811 lt_cv_deplibs_check_method=pass_all
4814 sysv4 | sysv4.3*)
4815 case $host_vendor in
4816 motorola)
4817 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]'
4818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4820 ncr)
4821 lt_cv_deplibs_check_method=pass_all
4823 sequent)
4824 lt_cv_file_magic_cmd='/bin/file'
4825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4827 sni)
4828 lt_cv_file_magic_cmd='/bin/file'
4829 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4830 lt_cv_file_magic_test_file=/lib/libc.so
4832 siemens)
4833 lt_cv_deplibs_check_method=pass_all
4836 lt_cv_deplibs_check_method=pass_all
4838 esac
4841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4842 lt_cv_deplibs_check_method=pass_all
4844 esac
4847 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4848 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4849 file_magic_cmd=$lt_cv_file_magic_cmd
4850 deplibs_check_method=$lt_cv_deplibs_check_method
4851 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4856 # If no C compiler was specified, use CC.
4857 LTCC=${LTCC-"$CC"}
4859 # If no C compiler flags were specified, use CFLAGS.
4860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4862 # Allow CC to be a program name with arguments.
4863 compiler=$CC
4866 # Check whether --enable-libtool-lock was given.
4867 if test "${enable_libtool_lock+set}" = set; then
4868 enableval=$enable_libtool_lock;
4871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4873 # Some flags need to be propagated to the compiler or linker for good
4874 # libtool support.
4875 case $host in
4876 ia64-*-hpux*)
4877 # Find out which ABI we are using.
4878 echo 'int i;' > conftest.$ac_ext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; then
4884 case `/usr/bin/file conftest.$ac_objext` in
4885 *ELF-32*)
4886 HPUX_IA64_MODE="32"
4888 *ELF-64*)
4889 HPUX_IA64_MODE="64"
4891 esac
4893 rm -rf conftest*
4895 *-*-irix6*)
4896 # Find out which ABI we are using.
4897 echo '#line 4897 "configure"' > conftest.$ac_ext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; then
4903 if test "$lt_cv_prog_gnu_ld" = yes; then
4904 case `/usr/bin/file conftest.$ac_objext` in
4905 *32-bit*)
4906 LD="${LD-ld} -melf32bsmip"
4908 *N32*)
4909 LD="${LD-ld} -melf32bmipn32"
4911 *64-bit*)
4912 LD="${LD-ld} -melf64bmip"
4914 esac
4915 else
4916 case `/usr/bin/file conftest.$ac_objext` in
4917 *32-bit*)
4918 LD="${LD-ld} -32"
4920 *N32*)
4921 LD="${LD-ld} -n32"
4923 *64-bit*)
4924 LD="${LD-ld} -64"
4926 esac
4929 rm -rf conftest*
4932 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4933 # Find out which ABI we are using.
4934 echo 'int i;' > conftest.$ac_ext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; then
4940 case `/usr/bin/file conftest.o` in
4941 *32-bit*)
4942 case $host in
4943 x86_64-*linux*)
4944 LD="${LD-ld} -m elf_i386"
4946 ppc64-*linux*|powerpc64-*linux*)
4947 LD="${LD-ld} -m elf32ppclinux"
4949 s390x-*linux*)
4950 LD="${LD-ld} -m elf_s390"
4952 sparc64-*linux*)
4953 LD="${LD-ld} -m elf32_sparc"
4955 esac
4957 *64-bit*)
4958 case $host in
4959 x86_64-*linux*)
4960 LD="${LD-ld} -m elf_x86_64"
4962 ppc*-*linux*|powerpc*-*linux*)
4963 LD="${LD-ld} -m elf64ppc"
4965 s390*-*linux*)
4966 LD="${LD-ld} -m elf64_s390"
4968 sparc*-*linux*)
4969 LD="${LD-ld} -m elf64_sparc"
4971 esac
4973 esac
4975 rm -rf conftest*
4978 *-*-sco3.2v5*)
4979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4980 SAVE_CFLAGS="$CFLAGS"
4981 CFLAGS="$CFLAGS -belf"
4982 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4983 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4984 if test "${lt_cv_cc_needs_belf+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5001 main ()
5005 return 0;
5007 _ACEOF
5008 rm -f conftest.$ac_objext conftest$ac_exeext
5009 if { (ac_try="$ac_link"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_link") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5023 { (case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_try") 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 lt_cv_cc_needs_belf=yes
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 lt_cv_cc_needs_belf=no
5050 rm -f core conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5060 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5063 CFLAGS="$SAVE_CFLAGS"
5066 sparc*-*solaris*)
5067 # Find out which ABI we are using.
5068 echo 'int i;' > conftest.$ac_ext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; then
5074 case `/usr/bin/file conftest.o` in
5075 *64-bit*)
5076 case $lt_cv_prog_gnu_ld in
5077 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5078 *) LD="${LD-ld} -64" ;;
5079 esac
5081 esac
5083 rm -rf conftest*
5087 esac
5089 need_locks="$enable_libtool_lock"
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5099 # On Suns, sometimes $CPP names a directory.
5100 if test -n "$CPP" && test -d "$CPP"; then
5101 CPP=
5103 if test -z "$CPP"; then
5104 if test "${ac_cv_prog_CPP+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 # Double quotes because CPP needs to be expanded
5108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5110 ac_preproc_ok=false
5111 for ac_c_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if { (ac_try="$ac_cpp conftest.$ac_ext"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_c_preproc_warn_flag
5147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5148 else
5149 ac_cpp_err=
5151 else
5152 ac_cpp_err=yes
5154 if test -z "$ac_cpp_err"; then
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 # Broken: fails on valid input.
5161 continue
5164 rm -f conftest.err conftest.$ac_ext
5166 # OK, works on sane cases. Now check whether nonexistent headers
5167 # can be detected and how.
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #include <ac_nonexistent.h>
5175 _ACEOF
5176 if { (ac_try="$ac_cpp conftest.$ac_ext"
5177 case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_c_preproc_warn_flag
5191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5192 else
5193 ac_cpp_err=
5195 else
5196 ac_cpp_err=yes
5198 if test -z "$ac_cpp_err"; then
5199 # Broken: success on invalid input.
5200 continue
5201 else
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 # Passes both tests.
5206 ac_preproc_ok=:
5207 break
5210 rm -f conftest.err conftest.$ac_ext
5212 done
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.err conftest.$ac_ext
5215 if $ac_preproc_ok; then
5216 break
5219 done
5220 ac_cv_prog_CPP=$CPP
5223 CPP=$ac_cv_prog_CPP
5224 else
5225 ac_cv_prog_CPP=$CPP
5227 { echo "$as_me:$LINENO: result: $CPP" >&5
5228 echo "${ECHO_T}$CPP" >&6; }
5229 ac_preproc_ok=false
5230 for ac_c_preproc_warn_flag in '' yes
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249 Syntax error
5250 _ACEOF
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null; then
5264 if test -s conftest.err; then
5265 ac_cpp_err=$ac_c_preproc_warn_flag
5266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 else
5268 ac_cpp_err=
5270 else
5271 ac_cpp_err=yes
5273 if test -z "$ac_cpp_err"; then
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 # Broken: fails on valid input.
5280 continue
5283 rm -f conftest.err conftest.$ac_ext
5285 # OK, works on sane cases. Now check whether nonexistent headers
5286 # can be detected and how.
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <ac_nonexistent.h>
5294 _ACEOF
5295 if { (ac_try="$ac_cpp conftest.$ac_ext"
5296 case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5311 else
5312 ac_cpp_err=
5314 else
5315 ac_cpp_err=yes
5317 if test -z "$ac_cpp_err"; then
5318 # Broken: success on invalid input.
5319 continue
5320 else
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 # Passes both tests.
5325 ac_preproc_ok=:
5326 break
5329 rm -f conftest.err conftest.$ac_ext
5331 done
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5336 else
5337 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5344 ac_ext=c
5345 ac_cpp='$CPP $CPPFLAGS'
5346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5353 if test "${ac_cv_header_stdc+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <stdlib.h>
5363 #include <stdarg.h>
5364 #include <string.h>
5365 #include <float.h>
5368 main ()
5372 return 0;
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (ac_try="$ac_compile"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5390 { (case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_try") 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_try") 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_cv_header_stdc=yes
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_header_stdc=no
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <string.h>
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "memchr" >/dev/null 2>&1; then
5433 else
5434 ac_cv_header_stdc=no
5436 rm -f conftest*
5440 if test $ac_cv_header_stdc = yes; then
5441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442 cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h. */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5448 #include <stdlib.h>
5450 _ACEOF
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452 $EGREP "free" >/dev/null 2>&1; then
5454 else
5455 ac_cv_header_stdc=no
5457 rm -f conftest*
5461 if test $ac_cv_header_stdc = yes; then
5462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463 if test "$cross_compiling" = yes; then
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <ctype.h>
5473 #include <stdlib.h>
5474 #if ((' ' & 0x0FF) == 0x020)
5475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477 #else
5478 # define ISLOWER(c) \
5479 (('a' <= (c) && (c) <= 'i') \
5480 || ('j' <= (c) && (c) <= 'r') \
5481 || ('s' <= (c) && (c) <= 'z'))
5482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5483 #endif
5485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5487 main ()
5489 int i;
5490 for (i = 0; i < 256; i++)
5491 if (XOR (islower (i), ISLOWER (i))
5492 || toupper (i) != TOUPPER (i))
5493 return 2;
5494 return 0;
5496 _ACEOF
5497 rm -f conftest$ac_exeext
5498 if { (ac_try="$ac_link"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_link") 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5508 { (case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_try") 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5518 else
5519 echo "$as_me: program exited with status $ac_status" >&5
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ( exit $ac_status )
5524 ac_cv_header_stdc=no
5526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5532 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5533 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5534 if test $ac_cv_header_stdc = yes; then
5536 cat >>confdefs.h <<\_ACEOF
5537 #define STDC_HEADERS 1
5538 _ACEOF
5542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553 inttypes.h stdint.h unistd.h
5555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5569 #include <$ac_header>
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5573 case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576 esac
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5579 ac_status=$?
5580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5586 { (case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_try") 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest.$ac_objext'
5596 { (case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_try") 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 eval "$as_ac_Header=yes"
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 eval "$as_ac_Header=no"
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 ac_res=`eval echo '${'$as_ac_Header'}'`
5616 { echo "$as_me:$LINENO: result: $ac_res" >&5
5617 echo "${ECHO_T}$ac_res" >&6; }
5618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5619 cat >>confdefs.h <<_ACEOF
5620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5621 _ACEOF
5625 done
5629 for ac_header in dlfcn.h
5631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_res=`eval echo '${'$as_ac_Header'}'`
5639 { echo "$as_me:$LINENO: result: $ac_res" >&5
5640 echo "${ECHO_T}$ac_res" >&6; }
5641 else
5642 # Is the header compilable?
5643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 $ac_includes_default
5652 #include <$ac_header>
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_header_compiler=yes
5689 else
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_header_compiler=no
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698 echo "${ECHO_T}$ac_header_compiler" >&6; }
5700 # Is the header present?
5701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <$ac_header>
5710 _ACEOF
5711 if { (ac_try="$ac_cpp conftest.$ac_ext"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev/null; then
5724 if test -s conftest.err; then
5725 ac_cpp_err=$ac_c_preproc_warn_flag
5726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5727 else
5728 ac_cpp_err=
5730 else
5731 ac_cpp_err=yes
5733 if test -z "$ac_cpp_err"; then
5734 ac_header_preproc=yes
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_header_preproc=no
5742 rm -f conftest.err conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5744 echo "${ECHO_T}$ac_header_preproc" >&6; }
5746 # So? What about this header?
5747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5748 yes:no: )
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5753 ac_header_preproc=yes
5755 no:yes:* )
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5770 esac
5771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 eval "$as_ac_Header=\$ac_header_preproc"
5778 ac_res=`eval echo '${'$as_ac_Header'}'`
5779 { echo "$as_me:$LINENO: result: $ac_res" >&5
5780 echo "${ECHO_T}$ac_res" >&6; }
5783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5784 cat >>confdefs.h <<_ACEOF
5785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 _ACEOF
5790 done
5794 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5795 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5796 (test "X$CXX" != "Xg++"))) ; then
5797 ac_ext=cpp
5798 ac_cpp='$CXXCPP $CPPFLAGS'
5799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5802 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5803 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5804 if test -z "$CXXCPP"; then
5805 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 # Double quotes because CXXCPP needs to be expanded
5809 for CXXCPP in "$CXX -E" "/lib/cpp"
5811 ac_preproc_ok=false
5812 for ac_cxx_preproc_warn_flag in '' yes
5814 # Use a header file that comes with gcc, so configuring glibc
5815 # with a fresh cross-compiler works.
5816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817 # <limits.h> exists even on freestanding compilers.
5818 # On the NeXT, cc -E runs the code through the compiler's parser,
5819 # not just through cpp. "Syntax error" is here to catch this case.
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #ifdef __STDC__
5827 # include <limits.h>
5828 #else
5829 # include <assert.h>
5830 #endif
5831 Syntax error
5832 _ACEOF
5833 if { (ac_try="$ac_cpp conftest.$ac_ext"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } >/dev/null; then
5846 if test -s conftest.err; then
5847 ac_cpp_err=$ac_cxx_preproc_warn_flag
5848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5849 else
5850 ac_cpp_err=
5852 else
5853 ac_cpp_err=yes
5855 if test -z "$ac_cpp_err"; then
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 # Broken: fails on valid input.
5862 continue
5865 rm -f conftest.err conftest.$ac_ext
5867 # OK, works on sane cases. Now check whether nonexistent headers
5868 # can be detected and how.
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5876 _ACEOF
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null; then
5890 if test -s conftest.err; then
5891 ac_cpp_err=$ac_cxx_preproc_warn_flag
5892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5893 else
5894 ac_cpp_err=
5896 else
5897 ac_cpp_err=yes
5899 if test -z "$ac_cpp_err"; then
5900 # Broken: success on invalid input.
5901 continue
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5906 # Passes both tests.
5907 ac_preproc_ok=:
5908 break
5911 rm -f conftest.err conftest.$ac_ext
5913 done
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then
5917 break
5920 done
5921 ac_cv_prog_CXXCPP=$CXXCPP
5924 CXXCPP=$ac_cv_prog_CXXCPP
5925 else
5926 ac_cv_prog_CXXCPP=$CXXCPP
5928 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5929 echo "${ECHO_T}$CXXCPP" >&6; }
5930 ac_preproc_ok=false
5931 for ac_cxx_preproc_warn_flag in '' yes
5933 # Use a header file that comes with gcc, so configuring glibc
5934 # with a fresh cross-compiler works.
5935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936 # <limits.h> exists even on freestanding compilers.
5937 # On the NeXT, cc -E runs the code through the compiler's parser,
5938 # not just through cpp. "Syntax error" is here to catch this case.
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #ifdef __STDC__
5946 # include <limits.h>
5947 #else
5948 # include <assert.h>
5949 #endif
5950 Syntax error
5951 _ACEOF
5952 if { (ac_try="$ac_cpp conftest.$ac_ext"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } >/dev/null; then
5965 if test -s conftest.err; then
5966 ac_cpp_err=$ac_cxx_preproc_warn_flag
5967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5968 else
5969 ac_cpp_err=
5971 else
5972 ac_cpp_err=yes
5974 if test -z "$ac_cpp_err"; then
5976 else
5977 echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5980 # Broken: fails on valid input.
5981 continue
5984 rm -f conftest.err conftest.$ac_ext
5986 # OK, works on sane cases. Now check whether nonexistent headers
5987 # can be detected and how.
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <ac_nonexistent.h>
5995 _ACEOF
5996 if { (ac_try="$ac_cpp conftest.$ac_ext"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } >/dev/null; then
6009 if test -s conftest.err; then
6010 ac_cpp_err=$ac_cxx_preproc_warn_flag
6011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6012 else
6013 ac_cpp_err=
6015 else
6016 ac_cpp_err=yes
6018 if test -z "$ac_cpp_err"; then
6019 # Broken: success on invalid input.
6020 continue
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 # Passes both tests.
6026 ac_preproc_ok=:
6027 break
6030 rm -f conftest.err conftest.$ac_ext
6032 done
6033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6034 rm -f conftest.err conftest.$ac_ext
6035 if $ac_preproc_ok; then
6037 else
6038 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6039 See \`config.log' for more details." >&5
6040 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6041 See \`config.log' for more details." >&2;}
6042 { (exit 1); exit 1; }; }
6045 ac_ext=cpp
6046 ac_cpp='$CXXCPP $CPPFLAGS'
6047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6054 ac_ext=f
6055 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6056 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6058 if test -n "$ac_tool_prefix"; then
6059 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_prog_F77+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 if test -n "$F77"; then
6069 ac_cv_prog_F77="$F77" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6084 IFS=$as_save_IFS
6088 F77=$ac_cv_prog_F77
6089 if test -n "$F77"; then
6090 { echo "$as_me:$LINENO: result: $F77" >&5
6091 echo "${ECHO_T}$F77" >&6; }
6092 else
6093 { echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6; }
6098 test -n "$F77" && break
6099 done
6101 if test -z "$F77"; then
6102 ac_ct_F77=$F77
6103 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6105 # Extract the first word of "$ac_prog", so it can be a program name with args.
6106 set dummy $ac_prog; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 if test -n "$ac_ct_F77"; then
6113 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_ac_ct_F77="$ac_prog"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6126 done
6127 done
6128 IFS=$as_save_IFS
6132 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6133 if test -n "$ac_ct_F77"; then
6134 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6135 echo "${ECHO_T}$ac_ct_F77" >&6; }
6136 else
6137 { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6142 test -n "$ac_ct_F77" && break
6143 done
6145 if test "x$ac_ct_F77" = x; then
6146 F77=""
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet. If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&5
6153 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6154 whose name does not start with the host triplet. If you think this
6155 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6156 ac_tool_warned=yes ;;
6157 esac
6158 F77=$ac_ct_F77
6163 # Provide some information about the compiler.
6164 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6165 ac_compiler=`set X $ac_compile; echo $2`
6166 { (ac_try="$ac_compiler --version >&5"
6167 case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compiler --version >&5") 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }
6176 { (ac_try="$ac_compiler -v >&5"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compiler -v >&5") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }
6186 { (ac_try="$ac_compiler -V >&5"
6187 case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compiler -V >&5") 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }
6196 rm -f a.out
6198 # If we don't use `.F' as extension, the preprocessor is not run on the
6199 # input file. (Note that this only needs to work for GNU compilers.)
6200 ac_save_ext=$ac_ext
6201 ac_ext=F
6202 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6203 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6204 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 program main
6209 #ifndef __GNUC__
6210 choke me
6211 #endif
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6230 { (case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_try") 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_try") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_compiler_gnu=yes
6250 else
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 ac_compiler_gnu=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6261 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6262 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6263 ac_ext=$ac_save_ext
6264 ac_test_FFLAGS=${FFLAGS+set}
6265 ac_save_FFLAGS=$FFLAGS
6266 FFLAGS=
6267 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6268 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6269 if test "${ac_cv_prog_f77_g+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272 FFLAGS=-g
6273 cat >conftest.$ac_ext <<_ACEOF
6274 program main
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (ac_try="$ac_compile"
6280 case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6293 { (case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_try") 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_try") 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_cv_prog_f77_g=yes
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_prog_f77_g=no
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6324 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6325 if test "$ac_test_FFLAGS" = set; then
6326 FFLAGS=$ac_save_FFLAGS
6327 elif test $ac_cv_prog_f77_g = yes; then
6328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6329 FFLAGS="-g -O2"
6330 else
6331 FFLAGS="-g"
6333 else
6334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6335 FFLAGS="-O2"
6336 else
6337 FFLAGS=
6341 G77=`test $ac_compiler_gnu = yes && echo yes`
6342 ac_ext=cpp
6343 ac_cpp='$CXXCPP $CPPFLAGS'
6344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6350 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6352 # find the maximum length of command line arguments
6353 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6354 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6359 teststring="ABCD"
6361 case $build_os in
6362 msdosdjgpp*)
6363 # On DJGPP, this test can blow up pretty badly due to problems in libc
6364 # (any single argument exceeding 2000 bytes causes a buffer overrun
6365 # during glob expansion). Even if it were fixed, the result of this
6366 # check would be larger than it should be.
6367 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6370 gnu*)
6371 # Under GNU Hurd, this test is not required because there is
6372 # no limit to the length of command line arguments.
6373 # Libtool will interpret -1 as no limit whatsoever
6374 lt_cv_sys_max_cmd_len=-1;
6377 cygwin* | mingw*)
6378 # On Win9x/ME, this test blows up -- it succeeds, but takes
6379 # about 5 minutes as the teststring grows exponentially.
6380 # Worse, since 9x/ME are not pre-emptively multitasking,
6381 # you end up with a "frozen" computer, even though with patience
6382 # the test eventually succeeds (with a max line length of 256k).
6383 # Instead, let's just punt: use the minimum linelength reported by
6384 # all of the supported platforms: 8192 (on NT/2K/XP).
6385 lt_cv_sys_max_cmd_len=8192;
6388 amigaos*)
6389 # On AmigaOS with pdksh, this test takes hours, literally.
6390 # So we just punt and use a minimum line length of 8192.
6391 lt_cv_sys_max_cmd_len=8192;
6394 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6395 # This has been around since 386BSD, at least. Likely further.
6396 if test -x /sbin/sysctl; then
6397 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6398 elif test -x /usr/sbin/sysctl; then
6399 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6400 else
6401 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6403 # And add a safety zone
6404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6408 interix*)
6409 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6410 lt_cv_sys_max_cmd_len=196608
6413 osf*)
6414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6416 # nice to cause kernel panics so lets avoid the loop below.
6417 # First set a reasonable default.
6418 lt_cv_sys_max_cmd_len=16384
6420 if test -x /sbin/sysconfig; then
6421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6423 esac
6426 sco3.2v5*)
6427 lt_cv_sys_max_cmd_len=102400
6429 sysv5* | sco5v6* | sysv4.2uw2*)
6430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6431 if test -n "$kargmax"; then
6432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6433 else
6434 lt_cv_sys_max_cmd_len=32768
6438 # If test is not a shell built-in, we'll probably end up computing a
6439 # maximum length that is only half of the actual maximum length, but
6440 # we can't tell.
6441 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6442 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6443 = "XX$teststring") >/dev/null 2>&1 &&
6444 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6445 lt_cv_sys_max_cmd_len=$new_result &&
6446 test $i != 17 # 1/2 MB should be enough
6448 i=`expr $i + 1`
6449 teststring=$teststring$teststring
6450 done
6451 teststring=
6452 # Add a significant safety factor because C++ compilers can tack on massive
6453 # amounts of additional arguments before passing them to the linker.
6454 # It appears as though 1/2 is a usable value.
6455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6457 esac
6461 if test -n $lt_cv_sys_max_cmd_len ; then
6462 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6463 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6464 else
6465 { echo "$as_me:$LINENO: result: none" >&5
6466 echo "${ECHO_T}none" >&6; }
6472 # Check for command to grab the raw symbol name followed by C symbol from nm.
6473 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6474 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6479 # These are sane defaults that work on at least a few old systems.
6480 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6482 # Character class describing NM global symbol codes.
6483 symcode='[BCDEGRST]'
6485 # Regexp to match symbols that can be accessed directly from C.
6486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6488 # Transform an extracted symbol line into a proper C declaration
6489 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6491 # Transform an extracted symbol line into symbol name and symbol address
6492 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'"
6494 # Define system-specific variables.
6495 case $host_os in
6496 aix*)
6497 symcode='[BCDT]'
6499 cygwin* | mingw* | pw32*)
6500 symcode='[ABCDGISTW]'
6502 hpux*) # Its linker distinguishes data from code symbols
6503 if test "$host_cpu" = ia64; then
6504 symcode='[ABCDEGRST]'
6506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6507 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'"
6509 linux*)
6510 if test "$host_cpu" = ia64; then
6511 symcode='[ABCDGIRSTW]'
6512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6513 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'"
6516 irix* | nonstopux*)
6517 symcode='[BCDEGRST]'
6519 osf*)
6520 symcode='[BCDEGQRST]'
6522 solaris*)
6523 symcode='[BDRT]'
6525 sco3.2v5*)
6526 symcode='[DT]'
6528 sysv4.2uw2*)
6529 symcode='[DT]'
6531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6532 symcode='[ABDT]'
6534 sysv4)
6535 symcode='[DFNSTU]'
6537 esac
6539 # Handle CRLF in mingw tool chain
6540 opt_cr=
6541 case $build_os in
6542 mingw*)
6543 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6545 esac
6547 # If we're using GNU nm, then use its standard symbol codes.
6548 case `$NM -V 2>&1` in
6549 *GNU* | *'with BFD'*)
6550 symcode='[ABCDGIRSTW]' ;;
6551 esac
6553 # Try without a prefix undercore, then with it.
6554 for ac_symprfx in "" "_"; do
6556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6557 symxfrm="\\1 $ac_symprfx\\2 \\2"
6559 # Write the raw and C identifiers.
6560 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6562 # Check to see that the pipe works correctly.
6563 pipe_works=no
6565 rm -f conftest*
6566 cat > conftest.$ac_ext <<EOF
6567 #ifdef __cplusplus
6568 extern "C" {
6569 #endif
6570 char nm_test_var;
6571 void nm_test_func(){}
6572 #ifdef __cplusplus
6574 #endif
6575 int main(){nm_test_var='a';nm_test_func();return(0);}
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; then
6583 # Now try to grab the symbols.
6584 nlist=conftest.nm
6585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && test -s "$nlist"; then
6590 # Try sorting and uniquifying the output.
6591 if sort "$nlist" | uniq > "$nlist"T; then
6592 mv -f "$nlist"T "$nlist"
6593 else
6594 rm -f "$nlist"T
6597 # Make sure that we snagged all the symbols we need.
6598 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6599 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6600 cat <<EOF > conftest.$ac_ext
6601 #ifdef __cplusplus
6602 extern "C" {
6603 #endif
6606 # Now generate the symbol file.
6607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6609 cat <<EOF >> conftest.$ac_ext
6610 #if defined (__STDC__) && __STDC__
6611 # define lt_ptr_t void *
6612 #else
6613 # define lt_ptr_t char *
6614 # define const
6615 #endif
6617 /* The mapping between symbol names and symbols. */
6618 const struct {
6619 const char *name;
6620 lt_ptr_t address;
6622 lt_preloaded_symbols[] =
6625 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6626 cat <<\EOF >> conftest.$ac_ext
6627 {0, (lt_ptr_t) 0}
6630 #ifdef __cplusplus
6632 #endif
6634 # Now try linking the two files.
6635 mv conftest.$ac_objext conftstm.$ac_objext
6636 lt_save_LIBS="$LIBS"
6637 lt_save_CFLAGS="$CFLAGS"
6638 LIBS="conftstm.$ac_objext"
6639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6645 pipe_works=yes
6647 LIBS="$lt_save_LIBS"
6648 CFLAGS="$lt_save_CFLAGS"
6649 else
6650 echo "cannot find nm_test_func in $nlist" >&5
6652 else
6653 echo "cannot find nm_test_var in $nlist" >&5
6655 else
6656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6658 else
6659 echo "$progname: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 rm -f conftest* conftst*
6664 # Do not use the global_symbol_pipe unless it works.
6665 if test "$pipe_works" = yes; then
6666 break
6667 else
6668 lt_cv_sys_global_symbol_pipe=
6670 done
6674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6675 lt_cv_sys_global_symbol_to_cdecl=
6677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6678 { echo "$as_me:$LINENO: result: failed" >&5
6679 echo "${ECHO_T}failed" >&6; }
6680 else
6681 { echo "$as_me:$LINENO: result: ok" >&5
6682 echo "${ECHO_T}ok" >&6; }
6685 { echo "$as_me:$LINENO: checking for objdir" >&5
6686 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6687 if test "${lt_cv_objdir+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 rm -f .libs 2>/dev/null
6691 mkdir .libs 2>/dev/null
6692 if test -d .libs; then
6693 lt_cv_objdir=.libs
6694 else
6695 # MS-DOS does not allow filenames that begin with a dot.
6696 lt_cv_objdir=_libs
6698 rmdir .libs 2>/dev/null
6700 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6701 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6702 objdir=$lt_cv_objdir
6708 case $host_os in
6709 aix3*)
6710 # AIX sometimes has problems with the GCC collect2 program. For some
6711 # reason, if we set the COLLECT_NAMES environment variable, the problems
6712 # vanish in a puff of smoke.
6713 if test "X${COLLECT_NAMES+set}" != Xset; then
6714 COLLECT_NAMES=
6715 export COLLECT_NAMES
6718 esac
6720 # Sed substitution that helps us do robust quoting. It backslashifies
6721 # metacharacters that are still active within double-quoted strings.
6722 Xsed='sed -e 1s/^X//'
6723 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6725 # Same as above, but do not quote variable references.
6726 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6728 # Sed substitution to delay expansion of an escaped shell variable in a
6729 # double_quote_subst'ed string.
6730 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6732 # Sed substitution to avoid accidental globbing in evaled expressions
6733 no_glob_subst='s/\*/\\\*/g'
6735 # Constants:
6736 rm="rm -f"
6738 # Global variables:
6739 default_ofile=libtool
6740 can_build_shared=yes
6742 # All known linkers require a `.a' archive for static linking (except MSVC,
6743 # which needs '.lib').
6744 libext=a
6745 ltmain="$ac_aux_dir/ltmain.sh"
6746 ofile="$default_ofile"
6747 with_gnu_ld="$lt_cv_prog_gnu_ld"
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}ar; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_prog_AR+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 if test -n "$AR"; then
6758 ac_cv_prog_AR="$AR" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_prog_AR="${ac_tool_prefix}ar"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6771 done
6772 done
6773 IFS=$as_save_IFS
6777 AR=$ac_cv_prog_AR
6778 if test -n "$AR"; then
6779 { echo "$as_me:$LINENO: result: $AR" >&5
6780 echo "${ECHO_T}$AR" >&6; }
6781 else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6788 if test -z "$ac_cv_prog_AR"; then
6789 ac_ct_AR=$AR
6790 # Extract the first word of "ar", so it can be a program name with args.
6791 set dummy ar; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if test -n "$ac_ct_AR"; then
6798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_ac_ct_AR="ar"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6813 IFS=$as_save_IFS
6817 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6818 if test -n "$ac_ct_AR"; then
6819 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6820 echo "${ECHO_T}$ac_ct_AR" >&6; }
6821 else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6826 if test "x$ac_ct_AR" = x; then
6827 AR="false"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet. If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&5
6834 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6835 whose name does not start with the host triplet. If you think this
6836 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 AR=$ac_ct_AR
6841 else
6842 AR="$ac_cv_prog_AR"
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_prog_RANLIB+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 if test -n "$RANLIB"; then
6854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6873 RANLIB=$ac_cv_prog_RANLIB
6874 if test -n "$RANLIB"; then
6875 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6876 echo "${ECHO_T}$RANLIB" >&6; }
6877 else
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6884 if test -z "$ac_cv_prog_RANLIB"; then
6885 ac_ct_RANLIB=$RANLIB
6886 # Extract the first word of "ranlib", so it can be a program name with args.
6887 set dummy ranlib; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 if test -n "$ac_ct_RANLIB"; then
6894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_ac_ct_RANLIB="ranlib"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6907 done
6908 done
6909 IFS=$as_save_IFS
6913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6914 if test -n "$ac_ct_RANLIB"; then
6915 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6916 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6917 else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6922 if test "x$ac_ct_RANLIB" = x; then
6923 RANLIB=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6928 whose name does not start with the host triplet. If you think this
6929 configuration is useful to you, please write to autoconf@gnu.org." >&5
6930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6931 whose name does not start with the host triplet. If you think this
6932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935 RANLIB=$ac_ct_RANLIB
6937 else
6938 RANLIB="$ac_cv_prog_RANLIB"
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}strip; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_STRIP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$STRIP"; then
6950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6965 IFS=$as_save_IFS
6969 STRIP=$ac_cv_prog_STRIP
6970 if test -n "$STRIP"; then
6971 { echo "$as_me:$LINENO: result: $STRIP" >&5
6972 echo "${ECHO_T}$STRIP" >&6; }
6973 else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6980 if test -z "$ac_cv_prog_STRIP"; then
6981 ac_ct_STRIP=$STRIP
6982 # Extract the first word of "strip", so it can be a program name with args.
6983 set dummy strip; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test -n "$ac_ct_STRIP"; then
6990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_ac_ct_STRIP="strip"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7010 if test -n "$ac_ct_STRIP"; then
7011 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7012 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7013 else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7018 if test "x$ac_ct_STRIP" = x; then
7019 STRIP=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024 whose name does not start with the host triplet. If you think this
7025 configuration is useful to you, please write to autoconf@gnu.org." >&5
7026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet. If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031 STRIP=$ac_ct_STRIP
7033 else
7034 STRIP="$ac_cv_prog_STRIP"
7038 old_CC="$CC"
7039 old_CFLAGS="$CFLAGS"
7041 # Set sane defaults for various variables
7042 test -z "$AR" && AR=ar
7043 test -z "$AR_FLAGS" && AR_FLAGS=cru
7044 test -z "$AS" && AS=as
7045 test -z "$CC" && CC=cc
7046 test -z "$LTCC" && LTCC=$CC
7047 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7048 test -z "$DLLTOOL" && DLLTOOL=dlltool
7049 test -z "$LD" && LD=ld
7050 test -z "$LN_S" && LN_S="ln -s"
7051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7052 test -z "$NM" && NM=nm
7053 test -z "$SED" && SED=sed
7054 test -z "$OBJDUMP" && OBJDUMP=objdump
7055 test -z "$RANLIB" && RANLIB=:
7056 test -z "$STRIP" && STRIP=:
7057 test -z "$ac_objext" && ac_objext=o
7059 # Determine commands to create old-style static archives.
7060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7061 old_postinstall_cmds='chmod 644 $oldlib'
7062 old_postuninstall_cmds=
7064 if test -n "$RANLIB"; then
7065 case $host_os in
7066 openbsd*)
7067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7072 esac
7073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7076 for cc_temp in $compiler""; do
7077 case $cc_temp in
7078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7080 \-*) ;;
7081 *) break;;
7082 esac
7083 done
7084 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7087 # Only perform the check for file, if the check method requires it
7088 case $deplibs_check_method in
7089 file_magic*)
7090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7091 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7092 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 case $MAGIC_CMD in
7097 [\\/*] | ?:[\\/]*)
7098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7101 lt_save_MAGIC_CMD="$MAGIC_CMD"
7102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7104 for ac_dir in $ac_dummy; do
7105 IFS="$lt_save_ifs"
7106 test -z "$ac_dir" && ac_dir=.
7107 if test -f $ac_dir/${ac_tool_prefix}file; then
7108 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7109 if test -n "$file_magic_test_file"; then
7110 case $deplibs_check_method in
7111 "file_magic "*)
7112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7115 $EGREP "$file_magic_regex" > /dev/null; then
7117 else
7118 cat <<EOF 1>&2
7120 *** Warning: the command libtool uses to detect shared libraries,
7121 *** $file_magic_cmd, produces output that libtool cannot recognize.
7122 *** The result is that libtool may fail to recognize shared libraries
7123 *** as such. This will affect the creation of libtool libraries that
7124 *** depend on shared libraries, but programs linked with such libtool
7125 *** libraries will work regardless of this problem. Nevertheless, you
7126 *** may want to report the problem to your system manager and/or to
7127 *** bug-libtool@gnu.org
7130 fi ;;
7131 esac
7133 break
7135 done
7136 IFS="$lt_save_ifs"
7137 MAGIC_CMD="$lt_save_MAGIC_CMD"
7139 esac
7142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7143 if test -n "$MAGIC_CMD"; then
7144 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7145 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7146 else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7151 if test -z "$lt_cv_path_MAGIC_CMD"; then
7152 if test -n "$ac_tool_prefix"; then
7153 { echo "$as_me:$LINENO: checking for file" >&5
7154 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7155 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 case $MAGIC_CMD in
7159 [\\/*] | ?:[\\/]*)
7160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7163 lt_save_MAGIC_CMD="$MAGIC_CMD"
7164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7166 for ac_dir in $ac_dummy; do
7167 IFS="$lt_save_ifs"
7168 test -z "$ac_dir" && ac_dir=.
7169 if test -f $ac_dir/file; then
7170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7171 if test -n "$file_magic_test_file"; then
7172 case $deplibs_check_method in
7173 "file_magic "*)
7174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7177 $EGREP "$file_magic_regex" > /dev/null; then
7179 else
7180 cat <<EOF 1>&2
7182 *** Warning: the command libtool uses to detect shared libraries,
7183 *** $file_magic_cmd, produces output that libtool cannot recognize.
7184 *** The result is that libtool may fail to recognize shared libraries
7185 *** as such. This will affect the creation of libtool libraries that
7186 *** depend on shared libraries, but programs linked with such libtool
7187 *** libraries will work regardless of this problem. Nevertheless, you
7188 *** may want to report the problem to your system manager and/or to
7189 *** bug-libtool@gnu.org
7192 fi ;;
7193 esac
7195 break
7197 done
7198 IFS="$lt_save_ifs"
7199 MAGIC_CMD="$lt_save_MAGIC_CMD"
7201 esac
7204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7205 if test -n "$MAGIC_CMD"; then
7206 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7207 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7208 else
7209 { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7213 else
7214 MAGIC_CMD=:
7220 esac
7222 enable_dlopen=no
7223 enable_win32_dll=no
7225 # Check whether --enable-libtool-lock was given.
7226 if test "${enable_libtool_lock+set}" = set; then
7227 enableval=$enable_libtool_lock;
7230 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7233 # Check whether --with-pic was given.
7234 if test "${with_pic+set}" = set; then
7235 withval=$with_pic; pic_mode="$withval"
7236 else
7237 pic_mode=default
7240 test -z "$pic_mode" && pic_mode=default
7242 # Use C for the default configuration in the libtool script
7243 tagname=
7244 lt_save_CC="$CC"
7245 ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 # Source file extension for C test sources.
7253 ac_ext=c
7255 # Object file extension for compiled C test sources.
7256 objext=o
7257 objext=$objext
7259 # Code to be used in simple compile tests
7260 lt_simple_compile_test_code="int some_variable = 0;\n"
7262 # Code to be used in simple link tests
7263 lt_simple_link_test_code='int main(){return(0);}\n'
7266 # If no C compiler was specified, use CC.
7267 LTCC=${LTCC-"$CC"}
7269 # If no C compiler flags were specified, use CFLAGS.
7270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7272 # Allow CC to be a program name with arguments.
7273 compiler=$CC
7276 # save warnings/boilerplate of simple test code
7277 ac_outfile=conftest.$ac_objext
7278 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7280 _lt_compiler_boilerplate=`cat conftest.err`
7281 $rm conftest*
7283 ac_outfile=conftest.$ac_objext
7284 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7286 _lt_linker_boilerplate=`cat conftest.err`
7287 $rm conftest*
7291 lt_prog_compiler_no_builtin_flag=
7293 if test "$GCC" = yes; then
7294 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7297 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 lt_cv_prog_compiler_rtti_exceptions=no
7303 ac_outfile=conftest.$ac_objext
7304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7305 lt_compiler_flag="-fno-rtti -fno-exceptions"
7306 # Insert the option either (1) after the last *FLAGS variable, or
7307 # (2) before a word containing "conftest.", or (3) at the end.
7308 # Note that $ac_compile itself does not contain backslashes and begins
7309 # with a dollar sign (not a hyphen), so the echo should work correctly.
7310 # The option is referenced via a variable to avoid confusing sed.
7311 lt_compile=`echo "$ac_compile" | $SED \
7312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7314 -e 's:$: $lt_compiler_flag:'`
7315 (eval echo "\"\$as_me:7315: $lt_compile\"" >&5)
7316 (eval "$lt_compile" 2>conftest.err)
7317 ac_status=$?
7318 cat conftest.err >&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 if (exit $ac_status) && test -s "$ac_outfile"; then
7321 # The compiler can only warn and ignore the option if not recognized
7322 # So say no if there are warnings other than the usual output.
7323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7326 lt_cv_prog_compiler_rtti_exceptions=yes
7329 $rm conftest*
7332 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7333 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7335 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7337 else
7343 lt_prog_compiler_wl=
7344 lt_prog_compiler_pic=
7345 lt_prog_compiler_static=
7347 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7348 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7350 if test "$GCC" = yes; then
7351 lt_prog_compiler_wl='-Wl,'
7352 lt_prog_compiler_static='-static'
7354 case $host_os in
7355 aix*)
7356 # All AIX code is PIC.
7357 if test "$host_cpu" = ia64; then
7358 # AIX 5 now supports IA64 processor
7359 lt_prog_compiler_static='-Bstatic'
7363 amigaos*)
7364 # FIXME: we need at least 68020 code to build shared libraries, but
7365 # adding the `-m68020' flag to GCC prevents building anything better,
7366 # like `-m68040'.
7367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7370 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7371 # PIC is the default for these OSes.
7374 mingw* | pw32* | os2*)
7375 # This hack is so that the source file can tell whether it is being
7376 # built for inclusion in a dll (and should export symbols for example).
7377 lt_prog_compiler_pic='-DDLL_EXPORT'
7380 darwin* | rhapsody*)
7381 # PIC is the default on this platform
7382 # Common symbols not allowed in MH_DYLIB files
7383 lt_prog_compiler_pic='-fno-common'
7386 interix3*)
7387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7388 # Instead, we relocate shared libraries at runtime.
7391 msdosdjgpp*)
7392 # Just because we use GCC doesn't mean we suddenly get shared libraries
7393 # on systems that don't support them.
7394 lt_prog_compiler_can_build_shared=no
7395 enable_shared=no
7398 sysv4*MP*)
7399 if test -d /usr/nec; then
7400 lt_prog_compiler_pic=-Kconform_pic
7404 hpux*)
7405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7406 # not for PA HP-UX.
7407 case $host_cpu in
7408 hppa*64*|ia64*)
7409 # +Z the default
7412 lt_prog_compiler_pic='-fPIC'
7414 esac
7418 lt_prog_compiler_pic='-fPIC'
7420 esac
7421 else
7422 # PORTME Check for flag to pass linker flags through the system compiler.
7423 case $host_os in
7424 aix*)
7425 lt_prog_compiler_wl='-Wl,'
7426 if test "$host_cpu" = ia64; then
7427 # AIX 5 now supports IA64 processor
7428 lt_prog_compiler_static='-Bstatic'
7429 else
7430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7433 darwin*)
7434 # PIC is the default on this platform
7435 # Common symbols not allowed in MH_DYLIB files
7436 case $cc_basename in
7437 xlc*)
7438 lt_prog_compiler_pic='-qnocommon'
7439 lt_prog_compiler_wl='-Wl,'
7441 esac
7444 mingw* | pw32* | os2*)
7445 # This hack is so that the source file can tell whether it is being
7446 # built for inclusion in a dll (and should export symbols for example).
7447 lt_prog_compiler_pic='-DDLL_EXPORT'
7450 hpux9* | hpux10* | hpux11*)
7451 lt_prog_compiler_wl='-Wl,'
7452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7453 # not for PA HP-UX.
7454 case $host_cpu in
7455 hppa*64*|ia64*)
7456 # +Z the default
7459 lt_prog_compiler_pic='+Z'
7461 esac
7462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7463 lt_prog_compiler_static='${wl}-a ${wl}archive'
7466 irix5* | irix6* | nonstopux*)
7467 lt_prog_compiler_wl='-Wl,'
7468 # PIC (with -KPIC) is the default.
7469 lt_prog_compiler_static='-non_shared'
7472 newsos6)
7473 lt_prog_compiler_pic='-KPIC'
7474 lt_prog_compiler_static='-Bstatic'
7477 linux*)
7478 case $cc_basename in
7479 icc* | ecc*)
7480 lt_prog_compiler_wl='-Wl,'
7481 lt_prog_compiler_pic='-KPIC'
7482 lt_prog_compiler_static='-static'
7484 pgcc* | pgf77* | pgf90* | pgf95*)
7485 # Portland Group compilers (*not* the Pentium gcc compiler,
7486 # which looks to be a dead project)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_pic='-fpic'
7489 lt_prog_compiler_static='-Bstatic'
7491 ccc*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # All Alpha code is PIC.
7494 lt_prog_compiler_static='-non_shared'
7496 esac
7499 osf3* | osf4* | osf5*)
7500 lt_prog_compiler_wl='-Wl,'
7501 # All OSF/1 code is PIC.
7502 lt_prog_compiler_static='-non_shared'
7505 solaris*)
7506 lt_prog_compiler_pic='-KPIC'
7507 lt_prog_compiler_static='-Bstatic'
7508 case $cc_basename in
7509 f77* | f90* | f95*)
7510 lt_prog_compiler_wl='-Qoption ld ';;
7512 lt_prog_compiler_wl='-Wl,';;
7513 esac
7516 sunos4*)
7517 lt_prog_compiler_wl='-Qoption ld '
7518 lt_prog_compiler_pic='-PIC'
7519 lt_prog_compiler_static='-Bstatic'
7522 sysv4 | sysv4.2uw2* | sysv4.3*)
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-KPIC'
7525 lt_prog_compiler_static='-Bstatic'
7528 sysv4*MP*)
7529 if test -d /usr/nec ;then
7530 lt_prog_compiler_pic='-Kconform_pic'
7531 lt_prog_compiler_static='-Bstatic'
7535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7536 lt_prog_compiler_wl='-Wl,'
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7541 unicos*)
7542 lt_prog_compiler_wl='-Wl,'
7543 lt_prog_compiler_can_build_shared=no
7546 uts4*)
7547 lt_prog_compiler_pic='-pic'
7548 lt_prog_compiler_static='-Bstatic'
7552 lt_prog_compiler_can_build_shared=no
7554 esac
7557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7558 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7561 # Check to make sure the PIC flag actually works.
7563 if test -n "$lt_prog_compiler_pic"; then
7565 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7566 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7567 if test "${lt_prog_compiler_pic_works+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 lt_prog_compiler_pic_works=no
7571 ac_outfile=conftest.$ac_objext
7572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7574 # Insert the option either (1) after the last *FLAGS variable, or
7575 # (2) before a word containing "conftest.", or (3) at the end.
7576 # Note that $ac_compile itself does not contain backslashes and begins
7577 # with a dollar sign (not a hyphen), so the echo should work correctly.
7578 # The option is referenced via a variable to avoid confusing sed.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
7583 (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584 (eval "$lt_compile" 2>conftest.err)
7585 ac_status=$?
7586 cat conftest.err >&5
7587 echo "$as_me:7587: \$? = $ac_status" >&5
7588 if (exit $ac_status) && test -s "$ac_outfile"; then
7589 # The compiler can only warn and ignore the option if not recognized
7590 # So say no if there are warnings other than the usual output.
7591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7594 lt_prog_compiler_pic_works=yes
7597 $rm conftest*
7600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7601 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7603 if test x"$lt_prog_compiler_pic_works" = xyes; then
7604 case $lt_prog_compiler_pic in
7605 "" | " "*) ;;
7606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7607 esac
7608 else
7609 lt_prog_compiler_pic=
7610 lt_prog_compiler_can_build_shared=no
7614 case $host_os in
7615 # For platforms which do not support PIC, -DPIC is meaningless:
7616 *djgpp*)
7617 lt_prog_compiler_pic=
7620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7622 esac
7625 # Check to make sure the static flag actually works.
7627 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7629 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7630 if test "${lt_prog_compiler_static_works+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 lt_prog_compiler_static_works=no
7634 save_LDFLAGS="$LDFLAGS"
7635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7636 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7638 # The linker can only warn and ignore the option if not recognized
7639 # So say no if there are warnings
7640 if test -s conftest.err; then
7641 # Append any errors to the config.log.
7642 cat conftest.err 1>&5
7643 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7645 if diff conftest.exp conftest.er2 >/dev/null; then
7646 lt_prog_compiler_static_works=yes
7648 else
7649 lt_prog_compiler_static_works=yes
7652 $rm conftest*
7653 LDFLAGS="$save_LDFLAGS"
7656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7657 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7659 if test x"$lt_prog_compiler_static_works" = xyes; then
7661 else
7662 lt_prog_compiler_static=
7666 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7667 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7668 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 lt_cv_prog_compiler_c_o=no
7672 $rm -r conftest 2>/dev/null
7673 mkdir conftest
7674 cd conftest
7675 mkdir out
7676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7678 lt_compiler_flag="-o out/conftest2.$ac_objext"
7679 # Insert the option either (1) after the last *FLAGS variable, or
7680 # (2) before a word containing "conftest.", or (3) at the end.
7681 # Note that $ac_compile itself does not contain backslashes and begins
7682 # with a dollar sign (not a hyphen), so the echo should work correctly.
7683 lt_compile=`echo "$ac_compile" | $SED \
7684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7686 -e 's:$: $lt_compiler_flag:'`
7687 (eval echo "\"\$as_me:7687: $lt_compile\"" >&5)
7688 (eval "$lt_compile" 2>out/conftest.err)
7689 ac_status=$?
7690 cat out/conftest.err >&5
7691 echo "$as_me:7691: \$? = $ac_status" >&5
7692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7693 then
7694 # The compiler can only warn and ignore the option if not recognized
7695 # So say no if there are warnings
7696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7699 lt_cv_prog_compiler_c_o=yes
7702 chmod u+w . 2>&5
7703 $rm conftest*
7704 # SGI C++ compiler will create directory out/ii_files/ for
7705 # template instantiation
7706 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7707 $rm out/* && rmdir out
7708 cd ..
7709 rmdir conftest
7710 $rm conftest*
7713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7717 hard_links="nottested"
7718 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7719 # do not overwrite the value of need_locks provided by the user
7720 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7721 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7722 hard_links=yes
7723 $rm conftest*
7724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7725 touch conftest.a
7726 ln conftest.a conftest.b 2>&5 || hard_links=no
7727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7728 { echo "$as_me:$LINENO: result: $hard_links" >&5
7729 echo "${ECHO_T}$hard_links" >&6; }
7730 if test "$hard_links" = no; then
7731 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7732 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7733 need_locks=warn
7735 else
7736 need_locks=no
7739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7742 runpath_var=
7743 allow_undefined_flag=
7744 enable_shared_with_static_runtimes=no
7745 archive_cmds=
7746 archive_expsym_cmds=
7747 old_archive_From_new_cmds=
7748 old_archive_from_expsyms_cmds=
7749 export_dynamic_flag_spec=
7750 whole_archive_flag_spec=
7751 thread_safe_flag_spec=
7752 hardcode_libdir_flag_spec=
7753 hardcode_libdir_flag_spec_ld=
7754 hardcode_libdir_separator=
7755 hardcode_direct=no
7756 hardcode_minus_L=no
7757 hardcode_shlibpath_var=unsupported
7758 link_all_deplibs=unknown
7759 hardcode_automatic=no
7760 module_cmds=
7761 module_expsym_cmds=
7762 always_export_symbols=no
7763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7764 # include_expsyms should be a list of space-separated symbols to be *always*
7765 # included in the symbol list
7766 include_expsyms=
7767 # exclude_expsyms can be an extended regexp of symbols to exclude
7768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7770 # as well as any symbol that contains `d'.
7771 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7773 # platforms (ab)use it in PIC code, but their linkers get confused if
7774 # the symbol is explicitly referenced. Since portable code cannot
7775 # rely on this symbol name, it's probably fine to never include it in
7776 # preloaded symbol tables.
7777 extract_expsyms_cmds=
7778 # Just being paranoid about ensuring that cc_basename is set.
7779 for cc_temp in $compiler""; do
7780 case $cc_temp in
7781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7783 \-*) ;;
7784 *) break;;
7785 esac
7786 done
7787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7789 case $host_os in
7790 cygwin* | mingw* | pw32*)
7791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7792 # When not using gcc, we currently assume that we are using
7793 # Microsoft Visual C++.
7794 if test "$GCC" != yes; then
7795 with_gnu_ld=no
7798 interix*)
7799 # we just hope/assume this is gcc and not c89 (= MSVC++)
7800 with_gnu_ld=yes
7802 openbsd*)
7803 with_gnu_ld=no
7805 esac
7807 ld_shlibs=yes
7808 if test "$with_gnu_ld" = yes; then
7809 # If archive_cmds runs LD, not CC, wlarc should be empty
7810 wlarc='${wl}'
7812 # Set some defaults for GNU ld with shared library support. These
7813 # are reset later if shared libraries are not supported. Putting them
7814 # here allows them to be overridden if necessary.
7815 runpath_var=LD_RUN_PATH
7816 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7817 export_dynamic_flag_spec='${wl}--export-dynamic'
7818 # ancient GNU ld didn't support --whole-archive et. al.
7819 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7820 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7821 else
7822 whole_archive_flag_spec=
7824 supports_anon_versioning=no
7825 case `$LD -v 2>/dev/null` in
7826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7829 *\ 2.11.*) ;; # other 2.11 versions
7830 *) supports_anon_versioning=yes ;;
7831 esac
7833 # See if GNU ld supports shared libraries.
7834 case $host_os in
7835 aix3* | aix4* | aix5*)
7836 # On AIX/PPC, the GNU linker is very broken
7837 if test "$host_cpu" != ia64; then
7838 ld_shlibs=no
7839 cat <<EOF 1>&2
7841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7842 *** to be unable to reliably create shared libraries on AIX.
7843 *** Therefore, libtool is disabling shared libraries support. If you
7844 *** really care for shared libraries, you may want to modify your PATH
7845 *** so that a non-GNU linker is found, and then restart.
7851 amigaos*)
7852 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)'
7853 hardcode_libdir_flag_spec='-L$libdir'
7854 hardcode_minus_L=yes
7856 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7857 # that the semantics of dynamic libraries on AmigaOS, at least up
7858 # to version 4, is to share data among multiple programs linked
7859 # with the same dynamic library. Since this doesn't match the
7860 # behavior of shared libraries on other platforms, we can't use
7861 # them.
7862 ld_shlibs=no
7865 beos*)
7866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7867 allow_undefined_flag=unsupported
7868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7869 # support --undefined. This deserves some investigation. FIXME
7870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7871 else
7872 ld_shlibs=no
7876 cygwin* | mingw* | pw32*)
7877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7878 # as there is no search path for DLLs.
7879 hardcode_libdir_flag_spec='-L$libdir'
7880 allow_undefined_flag=unsupported
7881 always_export_symbols=no
7882 enable_shared_with_static_runtimes=yes
7883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7887 # If the export-symbols file already is a .def file (1st line
7888 # is EXPORTS), use it as is; otherwise, prepend...
7889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7890 cp $export_symbols $output_objdir/$soname.def;
7891 else
7892 echo EXPORTS > $output_objdir/$soname.def;
7893 cat $export_symbols >> $output_objdir/$soname.def;
7895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7896 else
7897 ld_shlibs=no
7901 interix3*)
7902 hardcode_direct=no
7903 hardcode_shlibpath_var=no
7904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7905 export_dynamic_flag_spec='${wl}-E'
7906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7907 # Instead, shared libraries are loaded at an image base (0x10000000 by
7908 # default) and relocated if they conflict, which is a slow very memory
7909 # consuming and fragmenting process. To avoid this, we pick a random,
7910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7913 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'
7916 linux*)
7917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7918 tmp_addflag=
7919 case $cc_basename,$host_cpu in
7920 pgcc*) # Portland Group C compiler
7921 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'
7922 tmp_addflag=' $pic_flag'
7924 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7925 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'
7926 tmp_addflag=' $pic_flag -Mnomain' ;;
7927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7928 tmp_addflag=' -i_dynamic' ;;
7929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7930 tmp_addflag=' -i_dynamic -nofor_main' ;;
7931 ifc* | ifort*) # Intel Fortran compiler
7932 tmp_addflag=' -nofor_main' ;;
7933 esac
7934 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7936 if test $supports_anon_versioning = yes; then
7937 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7939 $echo "local: *; };" >> $output_objdir/$libname.ver~
7940 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7942 else
7943 ld_shlibs=no
7947 netbsd*)
7948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7950 wlarc=
7951 else
7952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7957 solaris*)
7958 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7959 ld_shlibs=no
7960 cat <<EOF 1>&2
7962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7963 *** create shared libraries on Solaris systems. Therefore, libtool
7964 *** is disabling shared libraries support. We urge you to upgrade GNU
7965 *** binutils to release 2.9.1 or newer. Another option is to modify
7966 *** your PATH or compiler configuration so that the native linker is
7967 *** used, and then restart.
7970 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7973 else
7974 ld_shlibs=no
7978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7979 case `$LD -v 2>&1` in
7980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7981 ld_shlibs=no
7982 cat <<_LT_EOF 1>&2
7984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7985 *** reliably create shared libraries on SCO systems. Therefore, libtool
7986 *** is disabling shared libraries support. We urge you to upgrade GNU
7987 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7988 *** your PATH or compiler configuration so that the native linker is
7989 *** used, and then restart.
7991 _LT_EOF
7994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7995 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7998 else
7999 ld_shlibs=no
8002 esac
8005 sunos4*)
8006 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8007 wlarc=
8008 hardcode_direct=yes
8009 hardcode_shlibpath_var=no
8013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8016 else
8017 ld_shlibs=no
8020 esac
8022 if test "$ld_shlibs" = no; then
8023 runpath_var=
8024 hardcode_libdir_flag_spec=
8025 export_dynamic_flag_spec=
8026 whole_archive_flag_spec=
8028 else
8029 # PORTME fill in a description of your system's linker (not GNU ld)
8030 case $host_os in
8031 aix3*)
8032 allow_undefined_flag=unsupported
8033 always_export_symbols=yes
8034 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'
8035 # Note: this linker hardcodes the directories in LIBPATH if there
8036 # are no directories specified by -L.
8037 hardcode_minus_L=yes
8038 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8039 # Neither direct hardcoding nor static linking is supported with a
8040 # broken collect2.
8041 hardcode_direct=unsupported
8045 aix4* | aix5*)
8046 if test "$host_cpu" = ia64; then
8047 # On IA64, the linker does run time linking by default, so we don't
8048 # have to do anything special.
8049 aix_use_runtimelinking=no
8050 exp_sym_flag='-Bexport'
8051 no_entry_flag=""
8052 else
8053 # If we're using GNU nm, then we don't want the "-C" option.
8054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8055 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8056 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'
8057 else
8058 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'
8060 aix_use_runtimelinking=no
8062 # Test if we are trying to use run time linking or normal
8063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8064 # need to do runtime linking.
8065 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8066 for ld_flag in $LDFLAGS; do
8067 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8068 aix_use_runtimelinking=yes
8069 break
8071 done
8073 esac
8075 exp_sym_flag='-bexport'
8076 no_entry_flag='-bnoentry'
8079 # When large executables or shared objects are built, AIX ld can
8080 # have problems creating the table of contents. If linking a library
8081 # or program results in "error TOC overflow" add -mminimal-toc to
8082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8085 archive_cmds=''
8086 hardcode_direct=yes
8087 hardcode_libdir_separator=':'
8088 link_all_deplibs=yes
8090 if test "$GCC" = yes; then
8091 case $host_os in aix4.[012]|aix4.[012].*)
8092 # We only want to do this on AIX 4.2 and lower, the check
8093 # below for broken collect2 doesn't work under 4.3+
8094 collect2name=`${CC} -print-prog-name=collect2`
8095 if test -f "$collect2name" && \
8096 strings "$collect2name" | grep resolve_lib_name >/dev/null
8097 then
8098 # We have reworked collect2
8099 hardcode_direct=yes
8100 else
8101 # We have old collect2
8102 hardcode_direct=unsupported
8103 # It fails to find uninstalled libraries when the uninstalled
8104 # path is not listed in the libpath. Setting hardcode_minus_L
8105 # to unsupported forces relinking
8106 hardcode_minus_L=yes
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 hardcode_libdir_separator=
8111 esac
8112 shared_flag='-shared'
8113 if test "$aix_use_runtimelinking" = yes; then
8114 shared_flag="$shared_flag "'${wl}-G'
8116 else
8117 # not using gcc
8118 if test "$host_cpu" = ia64; then
8119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8120 # chokes on -Wl,-G. The following line is correct:
8121 shared_flag='-G'
8122 else
8123 if test "$aix_use_runtimelinking" = yes; then
8124 shared_flag='${wl}-G'
8125 else
8126 shared_flag='${wl}-bM:SRE'
8131 # It seems that -bexpall does not export symbols beginning with
8132 # underscore (_), so it is better to generate a list of symbols to export.
8133 always_export_symbols=yes
8134 if test "$aix_use_runtimelinking" = yes; then
8135 # Warning - without using the other runtime loading flags (-brtl),
8136 # -berok will link without error, but may produce a broken library.
8137 allow_undefined_flag='-berok'
8138 # Determine the default libpath from the value encoded in an empty executable.
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8147 main ()
8151 return 0;
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8169 { (case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_try") 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8191 # Check for a 64-bit object if we didn't find anything.
8192 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8193 }'`; fi
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8201 rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8206 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"
8207 else
8208 if test "$host_cpu" = ia64; then
8209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8210 allow_undefined_flag="-z nodefs"
8211 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"
8212 else
8213 # Determine the default libpath from the value encoded in an empty executable.
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h. */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8222 main ()
8226 return 0;
8228 _ACEOF
8229 rm -f conftest.$ac_objext conftest$ac_exeext
8230 if { (ac_try="$ac_link"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_link") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8244 { (case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_try") 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_try") 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8266 # Check for a 64-bit object if we didn't find anything.
8267 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8268 }'`; fi
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8276 rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8281 # Warning - without using the other run time loading flags,
8282 # -berok will link without error, but may produce a broken library.
8283 no_undefined_flag=' ${wl}-bernotok'
8284 allow_undefined_flag=' ${wl}-berok'
8285 # Exported symbols can be pulled into shared objects from archives
8286 whole_archive_flag_spec='$convenience'
8287 archive_cmds_need_lc=yes
8288 # This is similar to how AIX traditionally builds its shared libraries.
8289 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'
8294 amigaos*)
8295 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)'
8296 hardcode_libdir_flag_spec='-L$libdir'
8297 hardcode_minus_L=yes
8298 # see comment about different semantics on the GNU ld section
8299 ld_shlibs=no
8302 bsdi[45]*)
8303 export_dynamic_flag_spec=-rdynamic
8306 cygwin* | mingw* | pw32*)
8307 # When not using gcc, we currently assume that we are using
8308 # Microsoft Visual C++.
8309 # hardcode_libdir_flag_spec is actually meaningless, as there is
8310 # no search path for DLLs.
8311 hardcode_libdir_flag_spec=' '
8312 allow_undefined_flag=unsupported
8313 # Tell ltmain to make .lib files, not .a files.
8314 libext=lib
8315 # Tell ltmain to make .dll files, not .so files.
8316 shrext_cmds=".dll"
8317 # FIXME: Setting linknames here is a bad hack.
8318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8319 # The linker will automatically build a .lib file if we build a DLL.
8320 old_archive_From_new_cmds='true'
8321 # FIXME: Should let the user specify the lib program.
8322 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8323 fix_srcfile_path='`cygpath -w "$srcfile"`'
8324 enable_shared_with_static_runtimes=yes
8327 darwin* | rhapsody*)
8328 case $host_os in
8329 rhapsody* | darwin1.[012])
8330 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8332 *) # Darwin 1.3 on
8333 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8334 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8335 else
8336 case ${MACOSX_DEPLOYMENT_TARGET} in
8337 10.[012])
8338 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8340 10.*)
8341 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8343 esac
8346 esac
8347 archive_cmds_need_lc=no
8348 hardcode_direct=no
8349 hardcode_automatic=yes
8350 hardcode_shlibpath_var=unsupported
8351 whole_archive_flag_spec=''
8352 link_all_deplibs=yes
8353 if test "$GCC" = yes ; then
8354 output_verbose_link_cmd='echo'
8355 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8356 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8357 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8358 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8359 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}'
8360 else
8361 case $cc_basename in
8362 xlc*)
8363 output_verbose_link_cmd='echo'
8364 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8367 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8368 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}'
8371 ld_shlibs=no
8373 esac
8377 dgux*)
8378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379 hardcode_libdir_flag_spec='-L$libdir'
8380 hardcode_shlibpath_var=no
8383 freebsd1*)
8384 ld_shlibs=no
8387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8388 # support. Future versions do this automatically, but an explicit c++rt0.o
8389 # does not break anything, and helps significantly (at the cost of a little
8390 # extra space).
8391 freebsd2.2*)
8392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8393 hardcode_libdir_flag_spec='-R$libdir'
8394 hardcode_direct=yes
8395 hardcode_shlibpath_var=no
8398 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8399 freebsd2*)
8400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_direct=yes
8402 hardcode_minus_L=yes
8403 hardcode_shlibpath_var=no
8406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8407 freebsd* | kfreebsd*-gnu | dragonfly*)
8408 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8409 hardcode_libdir_flag_spec='-R$libdir'
8410 hardcode_direct=yes
8411 hardcode_shlibpath_var=no
8414 hpux9*)
8415 if test "$GCC" = yes; then
8416 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'
8417 else
8418 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'
8420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421 hardcode_libdir_separator=:
8422 hardcode_direct=yes
8424 # hardcode_minus_L: Not really in the search PATH,
8425 # but as the default location of the library.
8426 hardcode_minus_L=yes
8427 export_dynamic_flag_spec='${wl}-E'
8430 hpux10*)
8431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8432 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8433 else
8434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8436 if test "$with_gnu_ld" = no; then
8437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8438 hardcode_libdir_separator=:
8440 hardcode_direct=yes
8441 export_dynamic_flag_spec='${wl}-E'
8443 # hardcode_minus_L: Not really in the search PATH,
8444 # but as the default location of the library.
8445 hardcode_minus_L=yes
8449 hpux11*)
8450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8451 case $host_cpu in
8452 hppa*64*)
8453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455 ia64*)
8456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8461 esac
8462 else
8463 case $host_cpu in
8464 hppa*64*)
8465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8467 ia64*)
8468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8473 esac
8475 if test "$with_gnu_ld" = no; then
8476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8477 hardcode_libdir_separator=:
8479 case $host_cpu in
8480 hppa*64*|ia64*)
8481 hardcode_libdir_flag_spec_ld='+b $libdir'
8482 hardcode_direct=no
8483 hardcode_shlibpath_var=no
8486 hardcode_direct=yes
8487 export_dynamic_flag_spec='${wl}-E'
8489 # hardcode_minus_L: Not really in the search PATH,
8490 # but as the default location of the library.
8491 hardcode_minus_L=yes
8493 esac
8497 irix5* | irix6* | nonstopux*)
8498 if test "$GCC" = yes; then
8499 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'
8500 else
8501 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'
8502 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8505 hardcode_libdir_separator=:
8506 link_all_deplibs=yes
8509 netbsd*)
8510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8512 else
8513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8515 hardcode_libdir_flag_spec='-R$libdir'
8516 hardcode_direct=yes
8517 hardcode_shlibpath_var=no
8520 newsos6)
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_direct=yes
8523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8524 hardcode_libdir_separator=:
8525 hardcode_shlibpath_var=no
8528 openbsd*)
8529 hardcode_direct=yes
8530 hardcode_shlibpath_var=no
8531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8535 export_dynamic_flag_spec='${wl}-E'
8536 else
8537 case $host_os in
8538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8540 hardcode_libdir_flag_spec='-R$libdir'
8543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8546 esac
8550 os2*)
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 hardcode_minus_L=yes
8553 allow_undefined_flag=unsupported
8554 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'
8555 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8558 osf3*)
8559 if test "$GCC" = yes; then
8560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8561 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'
8562 else
8563 allow_undefined_flag=' -expect_unresolved \*'
8564 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'
8566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8567 hardcode_libdir_separator=:
8570 osf4* | osf5*) # as osf3* with the addition of -msym flag
8571 if test "$GCC" = yes; then
8572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8573 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'
8574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8575 else
8576 allow_undefined_flag=' -expect_unresolved \*'
8577 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'
8578 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8579 $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'
8581 # Both c and cxx compiler support -rpath directly
8582 hardcode_libdir_flag_spec='-rpath $libdir'
8584 hardcode_libdir_separator=:
8587 solaris*)
8588 no_undefined_flag=' -z text'
8589 if test "$GCC" = yes; then
8590 wlarc='${wl}'
8591 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8593 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8594 else
8595 wlarc=''
8596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8598 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8600 hardcode_libdir_flag_spec='-R$libdir'
8601 hardcode_shlibpath_var=no
8602 case $host_os in
8603 solaris2.[0-5] | solaris2.[0-5].*) ;;
8605 # The compiler driver will combine linker options so we
8606 # cannot just pass the convience library names through
8607 # without $wl, iff we do not link with $LD.
8608 # Luckily, gcc supports the same syntax we need for Sun Studio.
8609 # Supported since Solaris 2.6 (maybe 2.5.1?)
8610 case $wlarc in
8612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8614 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8615 esac ;;
8616 esac
8617 link_all_deplibs=yes
8620 sunos4*)
8621 if test "x$host_vendor" = xsequent; then
8622 # Use $CC to link under sequent, because it throws in some extra .o
8623 # files that make .init and .fini sections work.
8624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8625 else
8626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8628 hardcode_libdir_flag_spec='-L$libdir'
8629 hardcode_direct=yes
8630 hardcode_minus_L=yes
8631 hardcode_shlibpath_var=no
8634 sysv4)
8635 case $host_vendor in
8636 sni)
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_direct=yes # is this really true???
8640 siemens)
8641 ## LD is ld it makes a PLAMLIB
8642 ## CC just makes a GrossModule.
8643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8644 reload_cmds='$CC -r -o $output$reload_objs'
8645 hardcode_direct=no
8647 motorola)
8648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8651 esac
8652 runpath_var='LD_RUN_PATH'
8653 hardcode_shlibpath_var=no
8656 sysv4.3*)
8657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8658 hardcode_shlibpath_var=no
8659 export_dynamic_flag_spec='-Bexport'
8662 sysv4*MP*)
8663 if test -d /usr/nec; then
8664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_shlibpath_var=no
8666 runpath_var=LD_RUN_PATH
8667 hardcode_runpath_var=yes
8668 ld_shlibs=yes
8672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8673 no_undefined_flag='${wl}-z,text'
8674 archive_cmds_need_lc=no
8675 hardcode_shlibpath_var=no
8676 runpath_var='LD_RUN_PATH'
8678 if test "$GCC" = yes; then
8679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 else
8682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 sysv5* | sco3.2v5* | sco5v6*)
8688 # Note: We can NOT use -z defs as we might desire, because we do not
8689 # link with -lc, and that would cause any symbols used from libc to
8690 # always be unresolved, which means just about no library would
8691 # ever link correctly. If we're not using GNU ld we use -z text
8692 # though, which does catch some bad symbols but isn't as heavy-handed
8693 # as -z defs.
8694 no_undefined_flag='${wl}-z,text'
8695 allow_undefined_flag='${wl}-z,nodefs'
8696 archive_cmds_need_lc=no
8697 hardcode_shlibpath_var=no
8698 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8699 hardcode_libdir_separator=':'
8700 link_all_deplibs=yes
8701 export_dynamic_flag_spec='${wl}-Bexport'
8702 runpath_var='LD_RUN_PATH'
8704 if test "$GCC" = yes; then
8705 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 else
8708 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 uts4*)
8714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715 hardcode_libdir_flag_spec='-L$libdir'
8716 hardcode_shlibpath_var=no
8720 ld_shlibs=no
8722 esac
8725 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8726 echo "${ECHO_T}$ld_shlibs" >&6; }
8727 test "$ld_shlibs" = no && can_build_shared=no
8730 # Do we need to explicitly link libc?
8732 case "x$archive_cmds_need_lc" in
8733 x|xyes)
8734 # Assume -lc should be added
8735 archive_cmds_need_lc=yes
8737 if test "$enable_shared" = yes && test "$GCC" = yes; then
8738 case $archive_cmds in
8739 *'~'*)
8740 # FIXME: we may have to deal with multi-command sequences.
8742 '$CC '*)
8743 # Test whether the compiler implicitly links with -lc since on some
8744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8745 # to ld, don't add -lc before -lgcc.
8746 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8748 $rm conftest*
8749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } 2>conftest.err; then
8756 soname=conftest
8757 lib=conftest
8758 libobjs=conftest.$ac_objext
8759 deplibs=
8760 wl=$lt_prog_compiler_wl
8761 pic_flag=$lt_prog_compiler_pic
8762 compiler_flags=-v
8763 linker_flags=-v
8764 verstring=
8765 output_objdir=.
8766 libname=conftest
8767 lt_save_allow_undefined_flag=$allow_undefined_flag
8768 allow_undefined_flag=
8769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }
8774 then
8775 archive_cmds_need_lc=no
8776 else
8777 archive_cmds_need_lc=yes
8779 allow_undefined_flag=$lt_save_allow_undefined_flag
8780 else
8781 cat conftest.err 1>&5
8783 $rm conftest*
8784 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8785 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8787 esac
8790 esac
8792 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8794 library_names_spec=
8795 libname_spec='lib$name'
8796 soname_spec=
8797 shrext_cmds=".so"
8798 postinstall_cmds=
8799 postuninstall_cmds=
8800 finish_cmds=
8801 finish_eval=
8802 shlibpath_var=
8803 shlibpath_overrides_runpath=unknown
8804 version_type=none
8805 dynamic_linker="$host_os ld.so"
8806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8807 if test "$GCC" = yes; then
8808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8810 # if the path contains ";" then we assume it to be the separator
8811 # otherwise default to the standard path separator (i.e. ":") - it is
8812 # assumed that no part of a normal pathname contains ";" but that should
8813 # okay in the real world where ";" in dirpaths is itself problematic.
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8815 else
8816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8818 else
8819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8821 need_lib_prefix=unknown
8822 hardcode_into_libs=no
8824 # when you set need_version to no, make sure it does not cause -set_version
8825 # flags to be left without arguments
8826 need_version=unknown
8828 case $host_os in
8829 aix3*)
8830 version_type=linux
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8832 shlibpath_var=LIBPATH
8834 # AIX 3 has no versioning support, so we append a major version to the name.
8835 soname_spec='${libname}${release}${shared_ext}$major'
8838 aix4* | aix5*)
8839 version_type=linux
8840 need_lib_prefix=no
8841 need_version=no
8842 hardcode_into_libs=yes
8843 if test "$host_cpu" = ia64; then
8844 # AIX 5 supports IA64
8845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 else
8848 # With GCC up to 2.95.x, collect2 would create an import file
8849 # for dependence libraries. The import file would start with
8850 # the line `#! .'. This would cause the generated library to
8851 # depend on `.', always an invalid library. This was fixed in
8852 # development snapshots of GCC prior to 3.0.
8853 case $host_os in
8854 aix4 | aix4.[01] | aix4.[01].*)
8855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8856 echo ' yes '
8857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8859 else
8860 can_build_shared=no
8863 esac
8864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8865 # soname into executable. Probably we can add versioning support to
8866 # collect2, so additional links can be useful in future.
8867 if test "$aix_use_runtimelinking" = yes; then
8868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8869 # instead of lib<name>.a to let people know that these are not
8870 # typical AIX shared libraries.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 else
8873 # We preserve .a as extension for shared libraries through AIX4.2
8874 # and later when we are not doing run time linking.
8875 library_names_spec='${libname}${release}.a $libname.a'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8878 shlibpath_var=LIBPATH
8882 amigaos*)
8883 library_names_spec='$libname.ixlibrary $libname.a'
8884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8885 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'
8888 beos*)
8889 library_names_spec='${libname}${shared_ext}'
8890 dynamic_linker="$host_os ld.so"
8891 shlibpath_var=LIBRARY_PATH
8894 bsdi[45]*)
8895 version_type=linux
8896 need_version=no
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8903 # the default ld.so.conf also contains /usr/contrib/lib and
8904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8905 # libtool to hard-code these into programs
8908 cygwin* | mingw* | pw32*)
8909 version_type=windows
8910 shrext_cmds=".dll"
8911 need_version=no
8912 need_lib_prefix=no
8914 case $GCC,$host_os in
8915 yes,cygwin* | yes,mingw* | yes,pw32*)
8916 library_names_spec='$libname.dll.a'
8917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8918 postinstall_cmds='base_file=`basename \${file}`~
8919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8920 dldir=$destdir/`dirname \$dlpath`~
8921 test -d \$dldir || mkdir -p \$dldir~
8922 $install_prog $dir/$dlname \$dldir/$dlname~
8923 chmod a+x \$dldir/$dlname'
8924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8925 dlpath=$dir/\$dldll~
8926 $rm \$dlpath'
8927 shlibpath_overrides_runpath=yes
8929 case $host_os in
8930 cygwin*)
8931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8935 mingw*)
8936 # MinGW DLLs use traditional 'lib' prefix
8937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8940 # It is most probably a Windows format PATH printed by
8941 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8942 # path with ; separators, and with drive letters. We can handle the
8943 # drive letters (cygwin fileutils understands them), so leave them,
8944 # especially as we might pass files found there to a mingw objdump,
8945 # which wouldn't understand a cygwinified path. Ahh.
8946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8947 else
8948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8951 pw32*)
8952 # pw32 DLLs use 'pw' prefix rather than 'lib'
8953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955 esac
8959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8961 esac
8962 dynamic_linker='Win32 ld.exe'
8963 # FIXME: first we should search . and the directory the executable is in
8964 shlibpath_var=PATH
8967 darwin* | rhapsody*)
8968 dynamic_linker="$host_os dyld"
8969 version_type=darwin
8970 need_lib_prefix=no
8971 need_version=no
8972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8973 soname_spec='${libname}${release}${major}$shared_ext'
8974 shlibpath_overrides_runpath=yes
8975 shlibpath_var=DYLD_LIBRARY_PATH
8976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8978 if test "$GCC" = yes; then
8979 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8980 else
8981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8986 dgux*)
8987 version_type=linux
8988 need_lib_prefix=no
8989 need_version=no
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 shlibpath_var=LD_LIBRARY_PATH
8995 freebsd1*)
8996 dynamic_linker=no
8999 kfreebsd*-gnu)
9000 version_type=linux
9001 need_lib_prefix=no
9002 need_version=no
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=no
9007 hardcode_into_libs=yes
9008 dynamic_linker='GNU ld.so'
9011 freebsd* | dragonfly*)
9012 # DragonFly does not have aout. When/if they implement a new
9013 # versioning mechanism, adjust this.
9014 if test -x /usr/bin/objformat; then
9015 objformat=`/usr/bin/objformat`
9016 else
9017 case $host_os in
9018 freebsd[123]*) objformat=aout ;;
9019 *) objformat=elf ;;
9020 esac
9022 version_type=freebsd-$objformat
9023 case $version_type in
9024 freebsd-elf*)
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9026 need_version=no
9027 need_lib_prefix=no
9029 freebsd-*)
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9031 need_version=yes
9033 esac
9034 shlibpath_var=LD_LIBRARY_PATH
9035 case $host_os in
9036 freebsd2*)
9037 shlibpath_overrides_runpath=yes
9039 freebsd3.[01]* | freebsdelf3.[01]*)
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9048 freebsd*) # from 4.6 on
9049 shlibpath_overrides_runpath=yes
9050 hardcode_into_libs=yes
9052 esac
9055 gnu*)
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 hardcode_into_libs=yes
9065 hpux9* | hpux10* | hpux11*)
9066 # Give a soname corresponding to the major version so that dld.sl refuses to
9067 # link against other versions.
9068 version_type=sunos
9069 need_lib_prefix=no
9070 need_version=no
9071 case $host_cpu in
9072 ia64*)
9073 shrext_cmds='.so'
9074 hardcode_into_libs=yes
9075 dynamic_linker="$host_os dld.so"
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 if test "X$HPUX_IA64_MODE" = X32; then
9081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9082 else
9083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9087 hppa*64*)
9088 shrext_cmds='.sl'
9089 hardcode_into_libs=yes
9090 dynamic_linker="$host_os dld.sl"
9091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9099 shrext_cmds='.sl'
9100 dynamic_linker="$host_os dld.sl"
9101 shlibpath_var=SHLIB_PATH
9102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9106 esac
9107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9108 postinstall_cmds='chmod 555 $lib'
9111 interix3*)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9123 irix5* | irix6* | nonstopux*)
9124 case $host_os in
9125 nonstopux*) version_type=nonstopux ;;
9127 if test "$lt_cv_prog_gnu_ld" = yes; then
9128 version_type=linux
9129 else
9130 version_type=irix
9131 fi ;;
9132 esac
9133 need_lib_prefix=no
9134 need_version=no
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9137 case $host_os in
9138 irix5* | nonstopux*)
9139 libsuff= shlibsuff=
9142 case $LD in # libtool.m4 will add one of these switches to LD
9143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9144 libsuff= shlibsuff= libmagic=32-bit;;
9145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9146 libsuff=32 shlibsuff=N32 libmagic=N32;;
9147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9149 *) libsuff= shlibsuff= libmagic=never-match;;
9150 esac
9152 esac
9153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9154 shlibpath_overrides_runpath=no
9155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9157 hardcode_into_libs=yes
9160 # No shared lib support for Linux oldld, aout, or coff.
9161 linux*oldld* | linux*aout* | linux*coff*)
9162 dynamic_linker=no
9165 # This must be Linux ELF.
9166 linux*)
9167 version_type=linux
9168 need_lib_prefix=no
9169 need_version=no
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=no
9175 # This implies no fast_install, which is unacceptable.
9176 # Some rework will be needed to allow for fast_install
9177 # before this can be enabled.
9178 hardcode_into_libs=yes
9180 # Append ld.so.conf contents to the search path
9181 if test -f /etc/ld.so.conf; then
9182 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9186 # We used to test for /lib/ld.so.1 and disable shared libraries on
9187 # powerpc, because MkLinux only supported shared libraries with the
9188 # GNU dynamic linker. Since this was broken with cross compilers,
9189 # most powerpc-linux boxes support dynamic linking these days and
9190 # people can always --disable-shared, the test was removed, and we
9191 # assume the GNU/Linux dynamic linker is in use.
9192 dynamic_linker='GNU/Linux ld.so'
9195 knetbsd*-gnu)
9196 version_type=linux
9197 need_lib_prefix=no
9198 need_version=no
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 dynamic_linker='GNU ld.so'
9207 netbsd*)
9208 version_type=sunos
9209 need_lib_prefix=no
9210 need_version=no
9211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9214 dynamic_linker='NetBSD (a.out) ld.so'
9215 else
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 dynamic_linker='NetBSD ld.elf_so'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9225 newsos6)
9226 version_type=linux
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9232 nto-qnx*)
9233 version_type=linux
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9242 openbsd*)
9243 version_type=sunos
9244 sys_lib_dlsearch_path_spec="/usr/lib"
9245 need_lib_prefix=no
9246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9247 case $host_os in
9248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9249 *) need_version=no ;;
9250 esac
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9255 case $host_os in
9256 openbsd2.[89] | openbsd2.[89].*)
9257 shlibpath_overrides_runpath=no
9260 shlibpath_overrides_runpath=yes
9262 esac
9263 else
9264 shlibpath_overrides_runpath=yes
9268 os2*)
9269 libname_spec='$name'
9270 shrext_cmds=".dll"
9271 need_lib_prefix=no
9272 library_names_spec='$libname${shared_ext} $libname.a'
9273 dynamic_linker='OS/2 ld.exe'
9274 shlibpath_var=LIBPATH
9277 osf3* | osf4* | osf5*)
9278 version_type=osf
9279 need_lib_prefix=no
9280 need_version=no
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 shlibpath_var=LD_LIBRARY_PATH
9284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9288 solaris*)
9289 version_type=linux
9290 need_lib_prefix=no
9291 need_version=no
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9297 # ldd complains unless libraries are executable
9298 postinstall_cmds='chmod +x $lib'
9301 sunos4*)
9302 version_type=sunos
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 if test "$with_gnu_ld" = yes; then
9308 need_lib_prefix=no
9310 need_version=yes
9313 sysv4 | sysv4.3*)
9314 version_type=linux
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 case $host_vendor in
9319 sni)
9320 shlibpath_overrides_runpath=no
9321 need_lib_prefix=no
9322 export_dynamic_flag_spec='${wl}-Blargedynsym'
9323 runpath_var=LD_RUN_PATH
9325 siemens)
9326 need_lib_prefix=no
9328 motorola)
9329 need_lib_prefix=no
9330 need_version=no
9331 shlibpath_overrides_runpath=no
9332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9334 esac
9337 sysv4*MP*)
9338 if test -d /usr/nec ;then
9339 version_type=linux
9340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9341 soname_spec='$libname${shared_ext}.$major'
9342 shlibpath_var=LD_LIBRARY_PATH
9346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9347 version_type=freebsd-elf
9348 need_lib_prefix=no
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 hardcode_into_libs=yes
9354 if test "$with_gnu_ld" = yes; then
9355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9356 shlibpath_overrides_runpath=no
9357 else
9358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9359 shlibpath_overrides_runpath=yes
9360 case $host_os in
9361 sco3.2v5*)
9362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9364 esac
9366 sys_lib_dlsearch_path_spec='/usr/lib'
9369 uts4*)
9370 version_type=linux
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9377 dynamic_linker=no
9379 esac
9380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9381 echo "${ECHO_T}$dynamic_linker" >&6; }
9382 test "$dynamic_linker" = no && can_build_shared=no
9384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9385 if test "$GCC" = yes; then
9386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9391 hardcode_action=
9392 if test -n "$hardcode_libdir_flag_spec" || \
9393 test -n "$runpath_var" || \
9394 test "X$hardcode_automatic" = "Xyes" ; then
9396 # We can hardcode non-existant directories.
9397 if test "$hardcode_direct" != no &&
9398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9399 # have to relink, otherwise we might link with an installed library
9400 # when we should be linking with a yet-to-be-installed one
9401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9402 test "$hardcode_minus_L" != no; then
9403 # Linking always hardcodes the temporary library directory.
9404 hardcode_action=relink
9405 else
9406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9407 hardcode_action=immediate
9409 else
9410 # We cannot hardcode anything, or else we can only hardcode existing
9411 # directories.
9412 hardcode_action=unsupported
9414 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9415 echo "${ECHO_T}$hardcode_action" >&6; }
9417 if test "$hardcode_action" = relink; then
9418 # Fast installation is not supported
9419 enable_fast_install=no
9420 elif test "$shlibpath_overrides_runpath" = yes ||
9421 test "$enable_shared" = no; then
9422 # Fast installation is not necessary
9423 enable_fast_install=needless
9426 striplib=
9427 old_striplib=
9428 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9433 { echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6; }
9435 else
9436 # FIXME - insert some real tests, host_os isn't really good enough
9437 case $host_os in
9438 darwin*)
9439 if test -n "$STRIP" ; then
9440 striplib="$STRIP -x"
9441 { echo "$as_me:$LINENO: result: yes" >&5
9442 echo "${ECHO_T}yes" >&6; }
9443 else
9444 { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9452 esac
9455 if test "x$enable_dlopen" != xyes; then
9456 enable_dlopen=unknown
9457 enable_dlopen_self=unknown
9458 enable_dlopen_self_static=unknown
9459 else
9460 lt_cv_dlopen=no
9461 lt_cv_dlopen_libs=
9463 case $host_os in
9464 beos*)
9465 lt_cv_dlopen="load_add_on"
9466 lt_cv_dlopen_libs=
9467 lt_cv_dlopen_self=yes
9470 mingw* | pw32*)
9471 lt_cv_dlopen="LoadLibrary"
9472 lt_cv_dlopen_libs=
9475 cygwin*)
9476 lt_cv_dlopen="dlopen"
9477 lt_cv_dlopen_libs=
9480 darwin*)
9481 # if libdl is installed we need to link against it
9482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-ldl $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char dlopen ();
9504 main ()
9506 return dlopen ();
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9513 case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9526 { (case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529 esac
9530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_try") 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539 esac
9540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_try") 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_lib_dl_dlopen=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_cv_lib_dl_dlopen=no
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555 LIBS=$ac_check_lib_save_LIBS
9557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9559 if test $ac_cv_lib_dl_dlopen = yes; then
9560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9561 else
9563 lt_cv_dlopen="dyld"
9564 lt_cv_dlopen_libs=
9565 lt_cv_dlopen_self=yes
9572 { echo "$as_me:$LINENO: checking for shl_load" >&5
9573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9574 if test "${ac_cv_func_shl_load+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9585 #define shl_load innocuous_shl_load
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char shl_load (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9598 #undef shl_load
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char shl_load ();
9607 /* The GNU C library defines this for functions which it implements
9608 to always fail with ENOSYS. Some functions are actually named
9609 something starting with __ and the normal name is an alias. */
9610 #if defined __stub_shl_load || defined __stub___shl_load
9611 choke me
9612 #endif
9615 main ()
9617 return shl_load ();
9619 return 0;
9621 _ACEOF
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (ac_try="$ac_link"
9624 case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_link") 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9637 { (case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_try") 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; } &&
9646 { ac_try='test -s conftest$ac_exeext'
9647 { (case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_try") 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_func_shl_load=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_func_shl_load=no
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9667 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9668 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9669 if test $ac_cv_func_shl_load = yes; then
9670 lt_cv_dlopen="shl_load"
9671 else
9672 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-ldld $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h. */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char shl_load ();
9694 main ()
9696 return shl_load ();
9698 return 0;
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dld_shl_load=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dld_shl_load=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9749 if test $ac_cv_lib_dld_shl_load = yes; then
9750 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9751 else
9752 { echo "$as_me:$LINENO: checking for dlopen" >&5
9753 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9754 if test "${ac_cv_func_dlopen+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9765 #define dlopen innocuous_dlopen
9767 /* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char dlopen (); below.
9769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770 <limits.h> exists even on freestanding compilers. */
9772 #ifdef __STDC__
9773 # include <limits.h>
9774 #else
9775 # include <assert.h>
9776 #endif
9778 #undef dlopen
9780 /* Override any GCC internal prototype to avoid an error.
9781 Use char because int might match the return type of a GCC
9782 builtin and then its argument prototype would still apply. */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 char dlopen ();
9787 /* The GNU C library defines this for functions which it implements
9788 to always fail with ENOSYS. Some functions are actually named
9789 something starting with __ and the normal name is an alias. */
9790 #if defined __stub_dlopen || defined __stub___dlopen
9791 choke me
9792 #endif
9795 main ()
9797 return dlopen ();
9799 return 0;
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (ac_try="$ac_link"
9804 case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_link") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9817 { (case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_try") 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_dlopen=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 ac_cv_func_dlopen=no
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9849 if test $ac_cv_func_dlopen = yes; then
9850 lt_cv_dlopen="dlopen"
9851 else
9852 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9853 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 ac_check_lib_save_LIBS=$LIBS
9858 LIBS="-ldl $LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char dlopen ();
9874 main ()
9876 return dlopen ();
9878 return 0;
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9883 case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_link") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9896 { (case "(($ac_try" in
9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901 (eval "$ac_try") 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_try") 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 ac_cv_lib_dl_dlopen=yes
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_lib_dl_dlopen=no
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 LIBS=$ac_check_lib_save_LIBS
9927 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9929 if test $ac_cv_lib_dl_dlopen = yes; then
9930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9931 else
9932 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937 ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-lsvld $LIBS"
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h. */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char dlopen ();
9954 main ()
9956 return dlopen ();
9958 return 0;
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_svld_dlopen=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_svld_dlopen=no
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10009 if test $ac_cv_lib_svld_dlopen = yes; then
10010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10011 else
10012 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10013 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10014 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 ac_check_lib_save_LIBS=$LIBS
10018 LIBS="-ldld $LIBS"
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 char dld_link ();
10034 main ()
10036 return dld_link ();
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (ac_try="$ac_link"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_link") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10056 { (case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059 esac
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_try") 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_try") 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_lib_dld_dld_link=yes
10076 else
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_lib_dld_dld_link=no
10083 rm -f core conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10089 if test $ac_cv_lib_dld_dld_link = yes; then
10090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10109 esac
10111 if test "x$lt_cv_dlopen" != xno; then
10112 enable_dlopen=yes
10113 else
10114 enable_dlopen=no
10117 case $lt_cv_dlopen in
10118 dlopen)
10119 save_CPPFLAGS="$CPPFLAGS"
10120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10122 save_LDFLAGS="$LDFLAGS"
10123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10125 save_LIBS="$LIBS"
10126 LIBS="$lt_cv_dlopen_libs $LIBS"
10128 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10130 if test "${lt_cv_dlopen_self+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 if test "$cross_compiling" = yes; then :
10134 lt_cv_dlopen_self=cross
10135 else
10136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10137 lt_status=$lt_dlunknown
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10139 "configure"
10140 #include "confdefs.h"
10142 #if HAVE_DLFCN_H
10143 #include <dlfcn.h>
10144 #endif
10146 #include <stdio.h>
10148 #ifdef RTLD_GLOBAL
10149 # define LT_DLGLOBAL RTLD_GLOBAL
10150 #else
10151 # ifdef DL_GLOBAL
10152 # define LT_DLGLOBAL DL_GLOBAL
10153 # else
10154 # define LT_DLGLOBAL 0
10155 # endif
10156 #endif
10158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10159 find out it does not work in some platform. */
10160 #ifndef LT_DLLAZY_OR_NOW
10161 # ifdef RTLD_LAZY
10162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10163 # else
10164 # ifdef DL_LAZY
10165 # define LT_DLLAZY_OR_NOW DL_LAZY
10166 # else
10167 # ifdef RTLD_NOW
10168 # define LT_DLLAZY_OR_NOW RTLD_NOW
10169 # else
10170 # ifdef DL_NOW
10171 # define LT_DLLAZY_OR_NOW DL_NOW
10172 # else
10173 # define LT_DLLAZY_OR_NOW 0
10174 # endif
10175 # endif
10176 # endif
10177 # endif
10178 #endif
10180 #ifdef __cplusplus
10181 extern "C" void exit (int);
10182 #endif
10184 void fnord() { int i=42;}
10185 int main ()
10187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10188 int status = $lt_dlunknown;
10190 if (self)
10192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10194 /* dlclose (self); */
10196 else
10197 puts (dlerror ());
10199 exit (status);
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10207 (./conftest; exit; ) >&5 2>/dev/null
10208 lt_status=$?
10209 case x$lt_status in
10210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10213 esac
10214 else :
10215 # compilation failed
10216 lt_cv_dlopen_self=no
10219 rm -fr conftest*
10223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10226 if test "x$lt_cv_dlopen_self" = xyes; then
10227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10228 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10230 if test "${lt_cv_dlopen_self_static+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 if test "$cross_compiling" = yes; then :
10234 lt_cv_dlopen_self_static=cross
10235 else
10236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10237 lt_status=$lt_dlunknown
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10239 "configure"
10240 #include "confdefs.h"
10242 #if HAVE_DLFCN_H
10243 #include <dlfcn.h>
10244 #endif
10246 #include <stdio.h>
10248 #ifdef RTLD_GLOBAL
10249 # define LT_DLGLOBAL RTLD_GLOBAL
10250 #else
10251 # ifdef DL_GLOBAL
10252 # define LT_DLGLOBAL DL_GLOBAL
10253 # else
10254 # define LT_DLGLOBAL 0
10255 # endif
10256 #endif
10258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10259 find out it does not work in some platform. */
10260 #ifndef LT_DLLAZY_OR_NOW
10261 # ifdef RTLD_LAZY
10262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10263 # else
10264 # ifdef DL_LAZY
10265 # define LT_DLLAZY_OR_NOW DL_LAZY
10266 # else
10267 # ifdef RTLD_NOW
10268 # define LT_DLLAZY_OR_NOW RTLD_NOW
10269 # else
10270 # ifdef DL_NOW
10271 # define LT_DLLAZY_OR_NOW DL_NOW
10272 # else
10273 # define LT_DLLAZY_OR_NOW 0
10274 # endif
10275 # endif
10276 # endif
10277 # endif
10278 #endif
10280 #ifdef __cplusplus
10281 extern "C" void exit (int);
10282 #endif
10284 void fnord() { int i=42;}
10285 int main ()
10287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10288 int status = $lt_dlunknown;
10290 if (self)
10292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10294 /* dlclose (self); */
10296 else
10297 puts (dlerror ());
10299 exit (status);
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307 (./conftest; exit; ) >&5 2>/dev/null
10308 lt_status=$?
10309 case x$lt_status in
10310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10313 esac
10314 else :
10315 # compilation failed
10316 lt_cv_dlopen_self_static=no
10319 rm -fr conftest*
10323 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10327 CPPFLAGS="$save_CPPFLAGS"
10328 LDFLAGS="$save_LDFLAGS"
10329 LIBS="$save_LIBS"
10331 esac
10333 case $lt_cv_dlopen_self in
10334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10335 *) enable_dlopen_self=unknown ;;
10336 esac
10338 case $lt_cv_dlopen_self_static in
10339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10340 *) enable_dlopen_self_static=unknown ;;
10341 esac
10345 # Report which library types will actually be built
10346 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10348 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10349 echo "${ECHO_T}$can_build_shared" >&6; }
10351 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10353 test "$can_build_shared" = "no" && enable_shared=no
10355 # On AIX, shared libraries and static libraries use the same namespace, and
10356 # are all built from PIC.
10357 case $host_os in
10358 aix3*)
10359 test "$enable_shared" = yes && enable_static=no
10360 if test -n "$RANLIB"; then
10361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10362 postinstall_cmds='$RANLIB $lib'
10366 aix4* | aix5*)
10367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10368 test "$enable_shared" = yes && enable_static=no
10371 esac
10372 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10373 echo "${ECHO_T}$enable_shared" >&6; }
10375 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10377 # Make sure either enable_shared or enable_static is yes.
10378 test "$enable_shared" = yes || enable_static=yes
10379 { echo "$as_me:$LINENO: result: $enable_static" >&5
10380 echo "${ECHO_T}$enable_static" >&6; }
10382 # The else clause should only fire when bootstrapping the
10383 # libtool distribution, otherwise you forgot to ship ltmain.sh
10384 # with your package, and you will get complaints that there are
10385 # no rules to generate ltmain.sh.
10386 if test -f "$ltmain"; then
10387 # See if we are running on zsh, and set the options which allow our commands through
10388 # without removal of \ escapes.
10389 if test -n "${ZSH_VERSION+set}" ; then
10390 setopt NO_GLOB_SUBST
10392 # Now quote all the things that may contain metacharacters while being
10393 # careful not to overquote the AC_SUBSTed values. We take copies of the
10394 # variables and quote the copies for generation of the libtool script.
10395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10396 SED SHELL STRIP \
10397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10399 deplibs_check_method reload_flag reload_cmds need_locks \
10400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10401 lt_cv_sys_global_symbol_to_c_name_address \
10402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10403 old_postinstall_cmds old_postuninstall_cmds \
10404 compiler \
10405 CC \
10406 LD \
10407 lt_prog_compiler_wl \
10408 lt_prog_compiler_pic \
10409 lt_prog_compiler_static \
10410 lt_prog_compiler_no_builtin_flag \
10411 export_dynamic_flag_spec \
10412 thread_safe_flag_spec \
10413 whole_archive_flag_spec \
10414 enable_shared_with_static_runtimes \
10415 old_archive_cmds \
10416 old_archive_from_new_cmds \
10417 predep_objects \
10418 postdep_objects \
10419 predeps \
10420 postdeps \
10421 compiler_lib_search_path \
10422 archive_cmds \
10423 archive_expsym_cmds \
10424 postinstall_cmds \
10425 postuninstall_cmds \
10426 old_archive_from_expsyms_cmds \
10427 allow_undefined_flag \
10428 no_undefined_flag \
10429 export_symbols_cmds \
10430 hardcode_libdir_flag_spec \
10431 hardcode_libdir_flag_spec_ld \
10432 hardcode_libdir_separator \
10433 hardcode_automatic \
10434 module_cmds \
10435 module_expsym_cmds \
10436 lt_cv_prog_compiler_c_o \
10437 exclude_expsyms \
10438 include_expsyms; do
10440 case $var in
10441 old_archive_cmds | \
10442 old_archive_from_new_cmds | \
10443 archive_cmds | \
10444 archive_expsym_cmds | \
10445 module_cmds | \
10446 module_expsym_cmds | \
10447 old_archive_from_expsyms_cmds | \
10448 export_symbols_cmds | \
10449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10450 postinstall_cmds | postuninstall_cmds | \
10451 old_postinstall_cmds | old_postuninstall_cmds | \
10452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10453 # Double-quote double-evaled strings.
10454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10459 esac
10460 done
10462 case $lt_echo in
10463 *'\$0 --fallback-echo"')
10464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10466 esac
10468 cfgfile="${ofile}T"
10469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10470 $rm -f "$cfgfile"
10471 { echo "$as_me:$LINENO: creating $ofile" >&5
10472 echo "$as_me: creating $ofile" >&6;}
10474 cat <<__EOF__ >> "$cfgfile"
10475 #! $SHELL
10477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10482 # Free Software Foundation, Inc.
10484 # This file is part of GNU Libtool:
10485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10487 # This program is free software; you can redistribute it and/or modify
10488 # it under the terms of the GNU General Public License as published by
10489 # the Free Software Foundation; either version 2 of the License, or
10490 # (at your option) any later version.
10492 # This program is distributed in the hope that it will be useful, but
10493 # WITHOUT ANY WARRANTY; without even the implied warranty of
10494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10495 # General Public License for more details.
10497 # You should have received a copy of the GNU General Public License
10498 # along with this program; if not, write to the Free Software
10499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10501 # As a special exception to the GNU General Public License, if you
10502 # distribute this file as part of a program that contains a
10503 # configuration script generated by Autoconf, you may include it under
10504 # the same distribution terms that you use for the rest of that program.
10506 # A sed program that does not truncate output.
10507 SED=$lt_SED
10509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10510 Xsed="$SED -e 1s/^X//"
10512 # The HP-UX ksh and POSIX shell print the target directory to stdout
10513 # if CDPATH is set.
10514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10516 # The names of the tagged configurations supported by this script.
10517 available_tags=
10519 # ### BEGIN LIBTOOL CONFIG
10521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10523 # Shell to use when invoking shell scripts.
10524 SHELL=$lt_SHELL
10526 # Whether or not to build shared libraries.
10527 build_libtool_libs=$enable_shared
10529 # Whether or not to build static libraries.
10530 build_old_libs=$enable_static
10532 # Whether or not to add -lc for building shared libraries.
10533 build_libtool_need_lc=$archive_cmds_need_lc
10535 # Whether or not to disallow shared libs when runtime libs are static
10536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10538 # Whether or not to optimize for fast installation.
10539 fast_install=$enable_fast_install
10541 # The host system.
10542 host_alias=$host_alias
10543 host=$host
10544 host_os=$host_os
10546 # The build system.
10547 build_alias=$build_alias
10548 build=$build
10549 build_os=$build_os
10551 # An echo program that does not interpret backslashes.
10552 echo=$lt_echo
10554 # The archiver.
10555 AR=$lt_AR
10556 AR_FLAGS=$lt_AR_FLAGS
10558 # A C compiler.
10559 LTCC=$lt_LTCC
10561 # LTCC compiler flags.
10562 LTCFLAGS=$lt_LTCFLAGS
10564 # A language-specific compiler.
10565 CC=$lt_compiler
10567 # Is the compiler the GNU C compiler?
10568 with_gcc=$GCC
10570 # An ERE matcher.
10571 EGREP=$lt_EGREP
10573 # The linker used to build libraries.
10574 LD=$lt_LD
10576 # Whether we need hard or soft links.
10577 LN_S=$lt_LN_S
10579 # A BSD-compatible nm program.
10580 NM=$lt_NM
10582 # A symbol stripping program
10583 STRIP=$lt_STRIP
10585 # Used to examine libraries when file_magic_cmd begins "file"
10586 MAGIC_CMD=$MAGIC_CMD
10588 # Used on cygwin: DLL creation program.
10589 DLLTOOL="$DLLTOOL"
10591 # Used on cygwin: object dumper.
10592 OBJDUMP="$OBJDUMP"
10594 # Used on cygwin: assembler.
10595 AS="$AS"
10597 # The name of the directory that contains temporary libtool files.
10598 objdir=$objdir
10600 # How to create reloadable object files.
10601 reload_flag=$lt_reload_flag
10602 reload_cmds=$lt_reload_cmds
10604 # How to pass a linker flag through the compiler.
10605 wl=$lt_lt_prog_compiler_wl
10607 # Object file suffix (normally "o").
10608 objext="$ac_objext"
10610 # Old archive suffix (normally "a").
10611 libext="$libext"
10613 # Shared library suffix (normally ".so").
10614 shrext_cmds='$shrext_cmds'
10616 # Executable file suffix (normally "").
10617 exeext="$exeext"
10619 # Additional compiler flags for building library objects.
10620 pic_flag=$lt_lt_prog_compiler_pic
10621 pic_mode=$pic_mode
10623 # What is the maximum length of a command?
10624 max_cmd_len=$lt_cv_sys_max_cmd_len
10626 # Does compiler simultaneously support -c and -o options?
10627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10629 # Must we lock files when doing compilation?
10630 need_locks=$lt_need_locks
10632 # Do we need the lib prefix for modules?
10633 need_lib_prefix=$need_lib_prefix
10635 # Do we need a version for libraries?
10636 need_version=$need_version
10638 # Whether dlopen is supported.
10639 dlopen_support=$enable_dlopen
10641 # Whether dlopen of programs is supported.
10642 dlopen_self=$enable_dlopen_self
10644 # Whether dlopen of statically linked programs is supported.
10645 dlopen_self_static=$enable_dlopen_self_static
10647 # Compiler flag to prevent dynamic linking.
10648 link_static_flag=$lt_lt_prog_compiler_static
10650 # Compiler flag to turn off builtin functions.
10651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10653 # Compiler flag to allow reflexive dlopens.
10654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10656 # Compiler flag to generate shared objects directly from archives.
10657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10659 # Compiler flag to generate thread-safe objects.
10660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10662 # Library versioning type.
10663 version_type=$version_type
10665 # Format of library name prefix.
10666 libname_spec=$lt_libname_spec
10668 # List of archive names. First name is the real one, the rest are links.
10669 # The last name is the one that the linker finds with -lNAME.
10670 library_names_spec=$lt_library_names_spec
10672 # The coded name of the library, if different from the real name.
10673 soname_spec=$lt_soname_spec
10675 # Commands used to build and install an old-style archive.
10676 RANLIB=$lt_RANLIB
10677 old_archive_cmds=$lt_old_archive_cmds
10678 old_postinstall_cmds=$lt_old_postinstall_cmds
10679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10681 # Create an old-style archive from a shared archive.
10682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10684 # Create a temporary old-style archive to link instead of a shared archive.
10685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10687 # Commands used to build and install a shared archive.
10688 archive_cmds=$lt_archive_cmds
10689 archive_expsym_cmds=$lt_archive_expsym_cmds
10690 postinstall_cmds=$lt_postinstall_cmds
10691 postuninstall_cmds=$lt_postuninstall_cmds
10693 # Commands used to build a loadable module (assumed same as above if empty)
10694 module_cmds=$lt_module_cmds
10695 module_expsym_cmds=$lt_module_expsym_cmds
10697 # Commands to strip libraries.
10698 old_striplib=$lt_old_striplib
10699 striplib=$lt_striplib
10701 # Dependencies to place before the objects being linked to create a
10702 # shared library.
10703 predep_objects=$lt_predep_objects
10705 # Dependencies to place after the objects being linked to create a
10706 # shared library.
10707 postdep_objects=$lt_postdep_objects
10709 # Dependencies to place before the objects being linked to create a
10710 # shared library.
10711 predeps=$lt_predeps
10713 # Dependencies to place after the objects being linked to create a
10714 # shared library.
10715 postdeps=$lt_postdeps
10717 # The library search path used internally by the compiler when linking
10718 # a shared library.
10719 compiler_lib_search_path=$lt_compiler_lib_search_path
10721 # Method to check whether dependent libraries are shared objects.
10722 deplibs_check_method=$lt_deplibs_check_method
10724 # Command to use when deplibs_check_method == file_magic.
10725 file_magic_cmd=$lt_file_magic_cmd
10727 # Flag that allows shared libraries with undefined symbols to be built.
10728 allow_undefined_flag=$lt_allow_undefined_flag
10730 # Flag that forces no undefined symbols.
10731 no_undefined_flag=$lt_no_undefined_flag
10733 # Commands used to finish a libtool library installation in a directory.
10734 finish_cmds=$lt_finish_cmds
10736 # Same as above, but a single script fragment to be evaled but not shown.
10737 finish_eval=$lt_finish_eval
10739 # Take the output of nm and produce a listing of raw symbols and C names.
10740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10742 # Transform the output of nm in a proper C declaration
10743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10745 # Transform the output of nm in a C name address pair
10746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10748 # This is the shared library runtime path variable.
10749 runpath_var=$runpath_var
10751 # This is the shared library path variable.
10752 shlibpath_var=$shlibpath_var
10754 # Is shlibpath searched before the hard-coded library search path?
10755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10757 # How to hardcode a shared library path into an executable.
10758 hardcode_action=$hardcode_action
10760 # Whether we should hardcode library paths into libraries.
10761 hardcode_into_libs=$hardcode_into_libs
10763 # Flag to hardcode \$libdir into a binary during linking.
10764 # This must work even if \$libdir does not exist.
10765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10767 # If ld is used when linking, flag to hardcode \$libdir into
10768 # a binary during linking. This must work even if \$libdir does
10769 # not exist.
10770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10772 # Whether we need a single -rpath flag with a separated argument.
10773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10776 # resulting binary.
10777 hardcode_direct=$hardcode_direct
10779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10780 # resulting binary.
10781 hardcode_minus_L=$hardcode_minus_L
10783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10784 # the resulting binary.
10785 hardcode_shlibpath_var=$hardcode_shlibpath_var
10787 # Set to yes if building a shared library automatically hardcodes DIR into the library
10788 # and all subsequent libraries and executables linked against it.
10789 hardcode_automatic=$hardcode_automatic
10791 # Variables whose values should be saved in libtool wrapper scripts and
10792 # restored at relink time.
10793 variables_saved_for_relink="$variables_saved_for_relink"
10795 # Whether libtool must link a program against all its dependency libraries.
10796 link_all_deplibs=$link_all_deplibs
10798 # Compile-time system search path for libraries
10799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10801 # Run-time system search path for libraries
10802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10804 # Fix the shell variable \$srcfile for the compiler.
10805 fix_srcfile_path="$fix_srcfile_path"
10807 # Set to yes if exported symbols are required.
10808 always_export_symbols=$always_export_symbols
10810 # The commands to list exported symbols.
10811 export_symbols_cmds=$lt_export_symbols_cmds
10813 # The commands to extract the exported symbol list from a shared archive.
10814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10816 # Symbols that should not be listed in the preloaded symbols.
10817 exclude_expsyms=$lt_exclude_expsyms
10819 # Symbols that must always be exported.
10820 include_expsyms=$lt_include_expsyms
10822 # ### END LIBTOOL CONFIG
10824 __EOF__
10827 case $host_os in
10828 aix3*)
10829 cat <<\EOF >> "$cfgfile"
10831 # AIX sometimes has problems with the GCC collect2 program. For some
10832 # reason, if we set the COLLECT_NAMES environment variable, the problems
10833 # vanish in a puff of smoke.
10834 if test "X${COLLECT_NAMES+set}" != Xset; then
10835 COLLECT_NAMES=
10836 export COLLECT_NAMES
10840 esac
10842 # We use sed instead of cat because bash on DJGPP gets confused if
10843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10844 # text mode, it properly converts lines to CR/LF. This bash problem
10845 # is reportedly fixed, but why not run on old versions too?
10846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10848 mv -f "$cfgfile" "$ofile" || \
10849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10850 chmod +x "$ofile"
10852 else
10853 # If there is no Makefile yet, we rely on a make rule to execute
10854 # `config.status --recheck' to rerun these tests and create the
10855 # libtool script then.
10856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10857 if test -f "$ltmain_in"; then
10858 test -f Makefile && make "$ltmain"
10863 ac_ext=cpp
10864 ac_cpp='$CXXCPP $CPPFLAGS'
10865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10869 CC="$lt_save_CC"
10872 # Check whether --with-tags was given.
10873 if test "${with_tags+set}" = set; then
10874 withval=$with_tags; tagnames="$withval"
10878 if test -f "$ltmain" && test -n "$tagnames"; then
10879 if test ! -f "${ofile}"; then
10880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10884 if test -z "$LTCC"; then
10885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10886 if test -z "$LTCC"; then
10887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10889 else
10890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10894 if test -z "$LTCFLAGS"; then
10895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10898 # Extract list of available tagged configurations in $ofile.
10899 # Note that this assumes the entire list is on one line.
10900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10903 for tagname in $tagnames; do
10904 IFS="$lt_save_ifs"
10905 # Check whether tagname contains only valid characters
10906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10907 "") ;;
10908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10910 { (exit 1); exit 1; }; }
10912 esac
10914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10915 then
10916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10918 { (exit 1); exit 1; }; }
10921 # Update the list of available tags.
10922 if test -n "$tagname"; then
10923 echo appending configuration tag \"$tagname\" to $ofile
10925 case $tagname in
10926 CXX)
10927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10929 (test "X$CXX" != "Xg++"))) ; then
10930 ac_ext=cpp
10931 ac_cpp='$CXXCPP $CPPFLAGS'
10932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10939 archive_cmds_need_lc_CXX=no
10940 allow_undefined_flag_CXX=
10941 always_export_symbols_CXX=no
10942 archive_expsym_cmds_CXX=
10943 export_dynamic_flag_spec_CXX=
10944 hardcode_direct_CXX=no
10945 hardcode_libdir_flag_spec_CXX=
10946 hardcode_libdir_flag_spec_ld_CXX=
10947 hardcode_libdir_separator_CXX=
10948 hardcode_minus_L_CXX=no
10949 hardcode_shlibpath_var_CXX=unsupported
10950 hardcode_automatic_CXX=no
10951 module_cmds_CXX=
10952 module_expsym_cmds_CXX=
10953 link_all_deplibs_CXX=unknown
10954 old_archive_cmds_CXX=$old_archive_cmds
10955 no_undefined_flag_CXX=
10956 whole_archive_flag_spec_CXX=
10957 enable_shared_with_static_runtimes_CXX=no
10959 # Dependencies to place before and after the object being linked:
10960 predep_objects_CXX=
10961 postdep_objects_CXX=
10962 predeps_CXX=
10963 postdeps_CXX=
10964 compiler_lib_search_path_CXX=
10966 # Source file extension for C++ test sources.
10967 ac_ext=cpp
10969 # Object file extension for compiled C++ test sources.
10970 objext=o
10971 objext_CXX=$objext
10973 # Code to be used in simple compile tests
10974 lt_simple_compile_test_code="int some_variable = 0;\n"
10976 # Code to be used in simple link tests
10977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10981 # If no C compiler was specified, use CC.
10982 LTCC=${LTCC-"$CC"}
10984 # If no C compiler flags were specified, use CFLAGS.
10985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10987 # Allow CC to be a program name with arguments.
10988 compiler=$CC
10991 # save warnings/boilerplate of simple test code
10992 ac_outfile=conftest.$ac_objext
10993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10995 _lt_compiler_boilerplate=`cat conftest.err`
10996 $rm conftest*
10998 ac_outfile=conftest.$ac_objext
10999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11001 _lt_linker_boilerplate=`cat conftest.err`
11002 $rm conftest*
11005 # Allow CC to be a program name with arguments.
11006 lt_save_CC=$CC
11007 lt_save_LD=$LD
11008 lt_save_GCC=$GCC
11009 GCC=$GXX
11010 lt_save_with_gnu_ld=$with_gnu_ld
11011 lt_save_path_LD=$lt_cv_path_LD
11012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11014 else
11015 $as_unset lt_cv_prog_gnu_ld
11017 if test -n "${lt_cv_path_LDCXX+set}"; then
11018 lt_cv_path_LD=$lt_cv_path_LDCXX
11019 else
11020 $as_unset lt_cv_path_LD
11022 test -z "${LDCXX+set}" || LD=$LDCXX
11023 CC=${CXX-"c++"}
11024 compiler=$CC
11025 compiler_CXX=$CC
11026 for cc_temp in $compiler""; do
11027 case $cc_temp in
11028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11030 \-*) ;;
11031 *) break;;
11032 esac
11033 done
11034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11037 # We don't want -fno-exception wen compiling C++ code, so set the
11038 # no_builtin_flag separately
11039 if test "$GXX" = yes; then
11040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11041 else
11042 lt_prog_compiler_no_builtin_flag_CXX=
11045 if test "$GXX" = yes; then
11046 # Set up default GNU C++ configuration
11049 # Check whether --with-gnu-ld was given.
11050 if test "${with_gnu_ld+set}" = set; then
11051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11052 else
11053 with_gnu_ld=no
11056 ac_prog=ld
11057 if test "$GCC" = yes; then
11058 # Check if gcc -print-prog-name=ld gives a path.
11059 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11061 case $host in
11062 *-*-mingw*)
11063 # gcc leaves a trailing carriage return which upsets mingw
11064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11067 esac
11068 case $ac_prog in
11069 # Accept absolute paths.
11070 [\\/]* | ?:[\\/]*)
11071 re_direlt='/[^/][^/]*/\.\./'
11072 # Canonicalize the pathname of ld
11073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11076 done
11077 test -z "$LD" && LD="$ac_prog"
11080 # If it fails, then pretend we aren't using GCC.
11081 ac_prog=ld
11084 # If it is relative, then search for the first ld in PATH.
11085 with_gnu_ld=unknown
11087 esac
11088 elif test "$with_gnu_ld" = yes; then
11089 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11091 else
11092 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11095 if test "${lt_cv_path_LD+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 if test -z "$LD"; then
11099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11100 for ac_dir in $PATH; do
11101 IFS="$lt_save_ifs"
11102 test -z "$ac_dir" && ac_dir=.
11103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11104 lt_cv_path_LD="$ac_dir/$ac_prog"
11105 # Check to see if the program is GNU ld. I'd rather use --version,
11106 # but apparently some variants of GNU ld only accept -v.
11107 # Break only if it was the GNU/non-GNU ld that we prefer.
11108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11109 *GNU* | *'with BFD'*)
11110 test "$with_gnu_ld" != no && break
11113 test "$with_gnu_ld" != yes && break
11115 esac
11117 done
11118 IFS="$lt_save_ifs"
11119 else
11120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11124 LD="$lt_cv_path_LD"
11125 if test -n "$LD"; then
11126 { echo "$as_me:$LINENO: result: $LD" >&5
11127 echo "${ECHO_T}$LD" >&6; }
11128 else
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11134 { (exit 1); exit 1; }; }
11135 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11141 case `$LD -v 2>&1 </dev/null` in
11142 *GNU* | *'with BFD'*)
11143 lt_cv_prog_gnu_ld=yes
11146 lt_cv_prog_gnu_ld=no
11148 esac
11150 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11152 with_gnu_ld=$lt_cv_prog_gnu_ld
11156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11157 # archiving commands below assume that GNU ld is being used.
11158 if test "$with_gnu_ld" = yes; then
11159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11160 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'
11162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11165 # If archive_cmds runs LD, not CC, wlarc should be empty
11166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11167 # investigate it a little bit more. (MM)
11168 wlarc='${wl}'
11170 # ancient GNU ld didn't support --whole-archive et. al.
11171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11172 grep 'no-whole-archive' > /dev/null; then
11173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11174 else
11175 whole_archive_flag_spec_CXX=
11177 else
11178 with_gnu_ld=no
11179 wlarc=
11181 # A generic and very simple default shared library creation
11182 # command for GNU C++ for the case where it uses the native
11183 # linker, instead of GNU ld. If possible, this setting should
11184 # overridden to take advantage of the native linker features on
11185 # the platform it is being used on.
11186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11189 # Commands to make compiler produce verbose output that lists
11190 # what "hidden" libraries, object files and flags are used when
11191 # linking a shared library.
11192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11194 else
11195 GXX=no
11196 with_gnu_ld=no
11197 wlarc=
11200 # PORTME: fill in a description of your system's C++ link characteristics
11201 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11203 ld_shlibs_CXX=yes
11204 case $host_os in
11205 aix3*)
11206 # FIXME: insert proper C++ library support
11207 ld_shlibs_CXX=no
11209 aix4* | aix5*)
11210 if test "$host_cpu" = ia64; then
11211 # On IA64, the linker does run time linking by default, so we don't
11212 # have to do anything special.
11213 aix_use_runtimelinking=no
11214 exp_sym_flag='-Bexport'
11215 no_entry_flag=""
11216 else
11217 aix_use_runtimelinking=no
11219 # Test if we are trying to use run time linking or normal
11220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11221 # need to do runtime linking.
11222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11223 for ld_flag in $LDFLAGS; do
11224 case $ld_flag in
11225 *-brtl*)
11226 aix_use_runtimelinking=yes
11227 break
11229 esac
11230 done
11232 esac
11234 exp_sym_flag='-bexport'
11235 no_entry_flag='-bnoentry'
11238 # When large executables or shared objects are built, AIX ld can
11239 # have problems creating the table of contents. If linking a library
11240 # or program results in "error TOC overflow" add -mminimal-toc to
11241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11244 archive_cmds_CXX=''
11245 hardcode_direct_CXX=yes
11246 hardcode_libdir_separator_CXX=':'
11247 link_all_deplibs_CXX=yes
11249 if test "$GXX" = yes; then
11250 case $host_os in aix4.[012]|aix4.[012].*)
11251 # We only want to do this on AIX 4.2 and lower, the check
11252 # below for broken collect2 doesn't work under 4.3+
11253 collect2name=`${CC} -print-prog-name=collect2`
11254 if test -f "$collect2name" && \
11255 strings "$collect2name" | grep resolve_lib_name >/dev/null
11256 then
11257 # We have reworked collect2
11258 hardcode_direct_CXX=yes
11259 else
11260 # We have old collect2
11261 hardcode_direct_CXX=unsupported
11262 # It fails to find uninstalled libraries when the uninstalled
11263 # path is not listed in the libpath. Setting hardcode_minus_L
11264 # to unsupported forces relinking
11265 hardcode_minus_L_CXX=yes
11266 hardcode_libdir_flag_spec_CXX='-L$libdir'
11267 hardcode_libdir_separator_CXX=
11270 esac
11271 shared_flag='-shared'
11272 if test "$aix_use_runtimelinking" = yes; then
11273 shared_flag="$shared_flag "'${wl}-G'
11275 else
11276 # not using gcc
11277 if test "$host_cpu" = ia64; then
11278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11279 # chokes on -Wl,-G. The following line is correct:
11280 shared_flag='-G'
11281 else
11282 if test "$aix_use_runtimelinking" = yes; then
11283 shared_flag='${wl}-G'
11284 else
11285 shared_flag='${wl}-bM:SRE'
11290 # It seems that -bexpall does not export symbols beginning with
11291 # underscore (_), so it is better to generate a list of symbols to export.
11292 always_export_symbols_CXX=yes
11293 if test "$aix_use_runtimelinking" = yes; then
11294 # Warning - without using the other runtime loading flags (-brtl),
11295 # -berok will link without error, but may produce a broken library.
11296 allow_undefined_flag_CXX='-berok'
11297 # Determine the default libpath from the value encoded in an empty executable.
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11306 main ()
11310 return 0;
11312 _ACEOF
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (ac_try="$ac_link"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_link") 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11328 { (case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_try") 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_try") 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11350 # Check for a 64-bit object if we didn't find anything.
11351 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11352 }'`; fi
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11366 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"
11367 else
11368 if test "$host_cpu" = ia64; then
11369 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11370 allow_undefined_flag_CXX="-z nodefs"
11371 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"
11372 else
11373 # Determine the default libpath from the value encoded in an empty executable.
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11382 main ()
11386 return 0;
11388 _ACEOF
11389 rm -f conftest.$ac_objext conftest$ac_exeext
11390 if { (ac_try="$ac_link"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_link") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11404 { (case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_try") 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest$ac_exeext'
11414 { (case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_try") 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11426 # Check for a 64-bit object if we didn't find anything.
11427 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11428 }'`; fi
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11441 # Warning - without using the other run time loading flags,
11442 # -berok will link without error, but may produce a broken library.
11443 no_undefined_flag_CXX=' ${wl}-bernotok'
11444 allow_undefined_flag_CXX=' ${wl}-berok'
11445 # Exported symbols can be pulled into shared objects from archives
11446 whole_archive_flag_spec_CXX='$convenience'
11447 archive_cmds_need_lc_CXX=yes
11448 # This is similar to how AIX traditionally builds its shared libraries.
11449 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'
11454 beos*)
11455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11456 allow_undefined_flag_CXX=unsupported
11457 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11458 # support --undefined. This deserves some investigation. FIXME
11459 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460 else
11461 ld_shlibs_CXX=no
11465 chorus*)
11466 case $cc_basename in
11468 # FIXME: insert proper C++ library support
11469 ld_shlibs_CXX=no
11471 esac
11474 cygwin* | mingw* | pw32*)
11475 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11476 # as there is no search path for DLLs.
11477 hardcode_libdir_flag_spec_CXX='-L$libdir'
11478 allow_undefined_flag_CXX=unsupported
11479 always_export_symbols_CXX=no
11480 enable_shared_with_static_runtimes_CXX=yes
11482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11483 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'
11484 # If the export-symbols file already is a .def file (1st line
11485 # is EXPORTS), use it as is; otherwise, prepend...
11486 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11487 cp $export_symbols $output_objdir/$soname.def;
11488 else
11489 echo EXPORTS > $output_objdir/$soname.def;
11490 cat $export_symbols >> $output_objdir/$soname.def;
11492 $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'
11493 else
11494 ld_shlibs_CXX=no
11497 darwin* | rhapsody*)
11498 case $host_os in
11499 rhapsody* | darwin1.[012])
11500 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11502 *) # Darwin 1.3 on
11503 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11504 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11505 else
11506 case ${MACOSX_DEPLOYMENT_TARGET} in
11507 10.[012])
11508 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11510 10.*)
11511 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11513 esac
11516 esac
11517 archive_cmds_need_lc_CXX=no
11518 hardcode_direct_CXX=no
11519 hardcode_automatic_CXX=yes
11520 hardcode_shlibpath_var_CXX=unsupported
11521 whole_archive_flag_spec_CXX=''
11522 link_all_deplibs_CXX=yes
11524 if test "$GXX" = yes ; then
11525 lt_int_apple_cc_single_mod=no
11526 output_verbose_link_cmd='echo'
11527 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11528 lt_int_apple_cc_single_mod=yes
11530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11531 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11532 else
11533 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'
11535 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11537 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11538 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11539 else
11540 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11542 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}'
11543 else
11544 case $cc_basename in
11545 xlc*)
11546 output_verbose_link_cmd='echo'
11547 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11548 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11550 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11551 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}'
11554 ld_shlibs_CXX=no
11556 esac
11560 dgux*)
11561 case $cc_basename in
11562 ec++*)
11563 # FIXME: insert proper C++ library support
11564 ld_shlibs_CXX=no
11566 ghcx*)
11567 # Green Hills C++ Compiler
11568 # FIXME: insert proper C++ library support
11569 ld_shlibs_CXX=no
11572 # FIXME: insert proper C++ library support
11573 ld_shlibs_CXX=no
11575 esac
11577 freebsd[12]*)
11578 # C++ shared libraries reported to be fairly broken before switch to ELF
11579 ld_shlibs_CXX=no
11581 freebsd-elf*)
11582 archive_cmds_need_lc_CXX=no
11584 freebsd* | kfreebsd*-gnu | dragonfly*)
11585 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11586 # conventions
11587 ld_shlibs_CXX=yes
11589 gnu*)
11591 hpux9*)
11592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11593 hardcode_libdir_separator_CXX=:
11594 export_dynamic_flag_spec_CXX='${wl}-E'
11595 hardcode_direct_CXX=yes
11596 hardcode_minus_L_CXX=yes # Not in the search PATH,
11597 # but as the default
11598 # location of the library.
11600 case $cc_basename in
11601 CC*)
11602 # FIXME: insert proper C++ library support
11603 ld_shlibs_CXX=no
11605 aCC*)
11606 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'
11607 # Commands to make compiler produce verbose output that lists
11608 # what "hidden" libraries, object files and flags are used when
11609 # linking a shared library.
11611 # There doesn't appear to be a way to prevent this compiler from
11612 # explicitly linking system object files so we need to strip them
11613 # from the output so that they don't get included in the library
11614 # dependencies.
11615 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'
11618 if test "$GXX" = yes; then
11619 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'
11620 else
11621 # FIXME: insert proper C++ library support
11622 ld_shlibs_CXX=no
11625 esac
11627 hpux10*|hpux11*)
11628 if test $with_gnu_ld = no; then
11629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11630 hardcode_libdir_separator_CXX=:
11632 case $host_cpu in
11633 hppa*64*|ia64*)
11634 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11637 export_dynamic_flag_spec_CXX='${wl}-E'
11639 esac
11641 case $host_cpu in
11642 hppa*64*|ia64*)
11643 hardcode_direct_CXX=no
11644 hardcode_shlibpath_var_CXX=no
11647 hardcode_direct_CXX=yes
11648 hardcode_minus_L_CXX=yes # Not in the search PATH,
11649 # but as the default
11650 # location of the library.
11652 esac
11654 case $cc_basename in
11655 CC*)
11656 # FIXME: insert proper C++ library support
11657 ld_shlibs_CXX=no
11659 aCC*)
11660 case $host_cpu in
11661 hppa*64*)
11662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11664 ia64*)
11665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11670 esac
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11675 # There doesn't appear to be a way to prevent this compiler from
11676 # explicitly linking system object files so we need to strip them
11677 # from the output so that they don't get included in the library
11678 # dependencies.
11679 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'
11682 if test "$GXX" = yes; then
11683 if test $with_gnu_ld = no; then
11684 case $host_cpu in
11685 hppa*64*)
11686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 ia64*)
11689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692 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'
11694 esac
11696 else
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11701 esac
11703 interix3*)
11704 hardcode_direct_CXX=no
11705 hardcode_shlibpath_var_CXX=no
11706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11707 export_dynamic_flag_spec_CXX='${wl}-E'
11708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11709 # Instead, shared libraries are loaded at an image base (0x10000000 by
11710 # default) and relocated if they conflict, which is a slow very memory
11711 # consuming and fragmenting process. To avoid this, we pick a random,
11712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11714 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'
11715 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'
11717 irix5* | irix6*)
11718 case $cc_basename in
11719 CC*)
11720 # SGI C++
11721 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'
11723 # Archives containing C++ object files must be created using
11724 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11725 # necessary to make sure instantiated templates are included
11726 # in the archive.
11727 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11730 if test "$GXX" = yes; then
11731 if test "$with_gnu_ld" = no; then
11732 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'
11733 else
11734 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'
11737 link_all_deplibs_CXX=yes
11739 esac
11740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11741 hardcode_libdir_separator_CXX=:
11743 linux*)
11744 case $cc_basename in
11745 KCC*)
11746 # Kuck and Associates, Inc. (KAI) C++ Compiler
11748 # KCC will only create a shared library if the output file
11749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11750 # to its proper name (with version) after linking.
11751 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'
11752 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'
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11757 # There doesn't appear to be a way to prevent this compiler from
11758 # explicitly linking system object files so we need to strip them
11759 # from the output so that they don't get included in the library
11760 # dependencies.
11761 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'
11763 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11766 # Archives containing C++ object files must be created using
11767 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11768 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11770 icpc*)
11771 # Intel C++
11772 with_gnu_ld=yes
11773 # version 8.0 and above of icpc choke on multiply defined symbols
11774 # if we add $predep_objects and $postdep_objects, however 7.1 and
11775 # earlier do not add the objects themselves.
11776 case `$CC -V 2>&1` in
11777 *"Version 7."*)
11778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11779 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'
11781 *) # Version 8.0 or newer
11782 tmp_idyn=
11783 case $host_cpu in
11784 ia64*) tmp_idyn=' -i_dynamic';;
11785 esac
11786 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787 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'
11789 esac
11790 archive_cmds_need_lc_CXX=no
11791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11793 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11795 pgCC*)
11796 # Portland Group C++ compiler
11797 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11798 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'
11800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11802 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'
11804 cxx*)
11805 # Compaq C++
11806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11807 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'
11809 runpath_var=LD_RUN_PATH
11810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11811 hardcode_libdir_separator_CXX=:
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11817 # There doesn't appear to be a way to prevent this compiler from
11818 # explicitly linking system object files so we need to strip them
11819 # from the output so that they don't get included in the library
11820 # dependencies.
11821 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'
11823 esac
11825 lynxos*)
11826 # FIXME: insert proper C++ library support
11827 ld_shlibs_CXX=no
11829 m88k*)
11830 # FIXME: insert proper C++ library support
11831 ld_shlibs_CXX=no
11833 mvs*)
11834 case $cc_basename in
11835 cxx*)
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11840 # FIXME: insert proper C++ library support
11841 ld_shlibs_CXX=no
11843 esac
11845 netbsd*)
11846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11848 wlarc=
11849 hardcode_libdir_flag_spec_CXX='-R$libdir'
11850 hardcode_direct_CXX=yes
11851 hardcode_shlibpath_var_CXX=no
11853 # Workaround some broken pre-1.5 toolchains
11854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11856 openbsd2*)
11857 # C++ shared libraries are fairly broken
11858 ld_shlibs_CXX=no
11860 openbsd*)
11861 hardcode_direct_CXX=yes
11862 hardcode_shlibpath_var_CXX=no
11863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11867 export_dynamic_flag_spec_CXX='${wl}-E'
11868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11870 output_verbose_link_cmd='echo'
11872 osf3*)
11873 case $cc_basename in
11874 KCC*)
11875 # Kuck and Associates, Inc. (KAI) C++ Compiler
11877 # KCC will only create a shared library if the output file
11878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11879 # to its proper name (with version) after linking.
11880 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'
11882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11883 hardcode_libdir_separator_CXX=:
11885 # Archives containing C++ object files must be created using
11886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11890 RCC*)
11891 # Rational C++ 2.4.1
11892 # FIXME: insert proper C++ library support
11893 ld_shlibs_CXX=no
11895 cxx*)
11896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11897 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'
11899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11900 hardcode_libdir_separator_CXX=:
11902 # Commands to make compiler produce verbose output that lists
11903 # what "hidden" libraries, object files and flags are used when
11904 # linking a shared library.
11906 # There doesn't appear to be a way to prevent this compiler from
11907 # explicitly linking system object files so we need to strip them
11908 # from the output so that they don't get included in the library
11909 # dependencies.
11910 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'
11913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11915 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'
11917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11918 hardcode_libdir_separator_CXX=:
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11925 else
11926 # FIXME: insert proper C++ library support
11927 ld_shlibs_CXX=no
11930 esac
11932 osf4* | osf5*)
11933 case $cc_basename in
11934 KCC*)
11935 # Kuck and Associates, Inc. (KAI) C++ Compiler
11937 # KCC will only create a shared library if the output file
11938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11939 # to its proper name (with version) after linking.
11940 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'
11942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11943 hardcode_libdir_separator_CXX=:
11945 # Archives containing C++ object files must be created using
11946 # the KAI C++ compiler.
11947 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11949 RCC*)
11950 # Rational C++ 2.4.1
11951 # FIXME: insert proper C++ library support
11952 ld_shlibs_CXX=no
11954 cxx*)
11955 allow_undefined_flag_CXX=' -expect_unresolved \*'
11956 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'
11957 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11958 echo "-hidden">> $lib.exp~
11959 $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~
11960 $rm $lib.exp'
11962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11963 hardcode_libdir_separator_CXX=:
11965 # Commands to make compiler produce verbose output that lists
11966 # what "hidden" libraries, object files and flags are used when
11967 # linking a shared library.
11969 # There doesn't appear to be a way to prevent this compiler from
11970 # explicitly linking system object files so we need to strip them
11971 # from the output so that they don't get included in the library
11972 # dependencies.
11973 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'
11976 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11977 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11978 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'
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11981 hardcode_libdir_separator_CXX=:
11983 # Commands to make compiler produce verbose output that lists
11984 # what "hidden" libraries, object files and flags are used when
11985 # linking a shared library.
11986 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11988 else
11989 # FIXME: insert proper C++ library support
11990 ld_shlibs_CXX=no
11993 esac
11995 psos*)
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11999 sunos4*)
12000 case $cc_basename in
12001 CC*)
12002 # Sun C++ 4.x
12003 # FIXME: insert proper C++ library support
12004 ld_shlibs_CXX=no
12006 lcc*)
12007 # Lucid
12008 # FIXME: insert proper C++ library support
12009 ld_shlibs_CXX=no
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12015 esac
12017 solaris*)
12018 case $cc_basename in
12019 CC*)
12020 # Sun C++ 4.2, 5.x and Centerline C++
12021 archive_cmds_need_lc_CXX=yes
12022 no_undefined_flag_CXX=' -zdefs'
12023 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12024 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12025 $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'
12027 hardcode_libdir_flag_spec_CXX='-R$libdir'
12028 hardcode_shlibpath_var_CXX=no
12029 case $host_os in
12030 solaris2.[0-5] | solaris2.[0-5].*) ;;
12032 # The C++ compiler is used as linker so we must use $wl
12033 # flag to pass the commands to the underlying system
12034 # linker. We must also pass each convience library through
12035 # to the system linker between allextract/defaultextract.
12036 # The C++ compiler will combine linker options so we
12037 # cannot just pass the convience library names through
12038 # without $wl.
12039 # Supported since Solaris 2.6 (maybe 2.5.1?)
12040 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12042 esac
12043 link_all_deplibs_CXX=yes
12045 output_verbose_link_cmd='echo'
12047 # Archives containing C++ object files must be created using
12048 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12049 # necessary to make sure instantiated templates are included
12050 # in the archive.
12051 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12053 gcx*)
12054 # Green Hills C++ Compiler
12055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12057 # The C++ compiler must be used to create the archive.
12058 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12061 # GNU C++ compiler with Solaris linker
12062 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12063 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12064 if $CC --version | grep -v '^2\.7' > /dev/null; then
12065 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12067 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12069 # Commands to make compiler produce verbose output that lists
12070 # what "hidden" libraries, object files and flags are used when
12071 # linking a shared library.
12072 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12073 else
12074 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12075 # platform.
12076 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12078 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12080 # Commands to make compiler produce verbose output that lists
12081 # what "hidden" libraries, object files and flags are used when
12082 # linking a shared library.
12083 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12086 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12089 esac
12091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12092 no_undefined_flag_CXX='${wl}-z,text'
12093 archive_cmds_need_lc_CXX=no
12094 hardcode_shlibpath_var_CXX=no
12095 runpath_var='LD_RUN_PATH'
12097 case $cc_basename in
12098 CC*)
12099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12106 esac
12108 sysv5* | sco3.2v5* | sco5v6*)
12109 # Note: We can NOT use -z defs as we might desire, because we do not
12110 # link with -lc, and that would cause any symbols used from libc to
12111 # always be unresolved, which means just about no library would
12112 # ever link correctly. If we're not using GNU ld we use -z text
12113 # though, which does catch some bad symbols but isn't as heavy-handed
12114 # as -z defs.
12115 # For security reasons, it is highly recommended that you always
12116 # use absolute paths for naming shared libraries, and exclude the
12117 # DT_RUNPATH tag from executables and libraries. But doing so
12118 # requires that you compile everything twice, which is a pain.
12119 # So that behaviour is only enabled if SCOABSPATH is set to a
12120 # non-empty value in the environment. Most likely only useful for
12121 # creating official distributions of packages.
12122 # This is a hack until libtool officially supports absolute path
12123 # names for shared libraries.
12124 no_undefined_flag_CXX='${wl}-z,text'
12125 allow_undefined_flag_CXX='${wl}-z,nodefs'
12126 archive_cmds_need_lc_CXX=no
12127 hardcode_shlibpath_var_CXX=no
12128 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12129 hardcode_libdir_separator_CXX=':'
12130 link_all_deplibs_CXX=yes
12131 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12132 runpath_var='LD_RUN_PATH'
12134 case $cc_basename in
12135 CC*)
12136 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12137 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12140 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 esac
12145 tandem*)
12146 case $cc_basename in
12147 NCC*)
12148 # NonStop-UX NCC 3.20
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 vxworks*)
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12163 # FIXME: insert proper C++ library support
12164 ld_shlibs_CXX=no
12166 esac
12167 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12168 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12169 test "$ld_shlibs_CXX" = no && can_build_shared=no
12171 GCC_CXX="$GXX"
12172 LD_CXX="$LD"
12175 cat > conftest.$ac_ext <<EOF
12176 class Foo
12178 public:
12179 Foo (void) { a = 0; }
12180 private:
12181 int a;
12185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; then
12190 # Parse the compiler output and extract the necessary
12191 # objects, libraries and library flags.
12193 # Sentinel used to keep track of whether or not we are before
12194 # the conftest object file.
12195 pre_test_object_deps_done=no
12197 # The `*' in the case matches for architectures that use `case' in
12198 # $output_verbose_cmd can trigger glob expansion during the loop
12199 # eval without this substitution.
12200 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12202 for p in `eval $output_verbose_link_cmd`; do
12203 case $p in
12205 -L* | -R* | -l*)
12206 # Some compilers place space between "-{L,R}" and the path.
12207 # Remove the space.
12208 if test $p = "-L" \
12209 || test $p = "-R"; then
12210 prev=$p
12211 continue
12212 else
12213 prev=
12216 if test "$pre_test_object_deps_done" = no; then
12217 case $p in
12218 -L* | -R*)
12219 # Internal compiler library paths should come after those
12220 # provided the user. The postdeps already come after the
12221 # user supplied libs so there is no need to process them.
12222 if test -z "$compiler_lib_search_path_CXX"; then
12223 compiler_lib_search_path_CXX="${prev}${p}"
12224 else
12225 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12228 # The "-l" case would never come before the object being
12229 # linked, so don't bother handling this case.
12230 esac
12231 else
12232 if test -z "$postdeps_CXX"; then
12233 postdeps_CXX="${prev}${p}"
12234 else
12235 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12240 *.$objext)
12241 # This assumes that the test object file only shows up
12242 # once in the compiler output.
12243 if test "$p" = "conftest.$objext"; then
12244 pre_test_object_deps_done=yes
12245 continue
12248 if test "$pre_test_object_deps_done" = no; then
12249 if test -z "$predep_objects_CXX"; then
12250 predep_objects_CXX="$p"
12251 else
12252 predep_objects_CXX="$predep_objects_CXX $p"
12254 else
12255 if test -z "$postdep_objects_CXX"; then
12256 postdep_objects_CXX="$p"
12257 else
12258 postdep_objects_CXX="$postdep_objects_CXX $p"
12263 *) ;; # Ignore the rest.
12265 esac
12266 done
12268 # Clean up.
12269 rm -f a.out a.exe
12270 else
12271 echo "libtool.m4: error: problem compiling CXX test program"
12274 $rm -f confest.$objext
12276 # PORTME: override above test on systems where it is broken
12277 case $host_os in
12278 interix3*)
12279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12280 # hack all around it, let's just trust "g++" to DTRT.
12281 predep_objects_CXX=
12282 postdep_objects_CXX=
12283 postdeps_CXX=
12286 solaris*)
12287 case $cc_basename in
12288 CC*)
12289 # Adding this requires a known-good setup of shared libraries for
12290 # Sun compiler versions before 5.6, else PIC objects from an old
12291 # archive will be linked into the output, leading to subtle bugs.
12292 postdeps_CXX='-lCstd -lCrun'
12294 esac
12296 esac
12299 case " $postdeps_CXX " in
12300 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12301 esac
12303 lt_prog_compiler_wl_CXX=
12304 lt_prog_compiler_pic_CXX=
12305 lt_prog_compiler_static_CXX=
12307 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12308 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12310 # C++ specific cases for pic, static, wl, etc.
12311 if test "$GXX" = yes; then
12312 lt_prog_compiler_wl_CXX='-Wl,'
12313 lt_prog_compiler_static_CXX='-static'
12315 case $host_os in
12316 aix*)
12317 # All AIX code is PIC.
12318 if test "$host_cpu" = ia64; then
12319 # AIX 5 now supports IA64 processor
12320 lt_prog_compiler_static_CXX='-Bstatic'
12323 amigaos*)
12324 # FIXME: we need at least 68020 code to build shared libraries, but
12325 # adding the `-m68020' flag to GCC prevents building anything better,
12326 # like `-m68040'.
12327 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12329 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12330 # PIC is the default for these OSes.
12332 mingw* | os2* | pw32*)
12333 # This hack is so that the source file can tell whether it is being
12334 # built for inclusion in a dll (and should export symbols for example).
12335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12337 darwin* | rhapsody*)
12338 # PIC is the default on this platform
12339 # Common symbols not allowed in MH_DYLIB files
12340 lt_prog_compiler_pic_CXX='-fno-common'
12342 *djgpp*)
12343 # DJGPP does not support shared libraries at all
12344 lt_prog_compiler_pic_CXX=
12346 interix3*)
12347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12348 # Instead, we relocate shared libraries at runtime.
12350 sysv4*MP*)
12351 if test -d /usr/nec; then
12352 lt_prog_compiler_pic_CXX=-Kconform_pic
12355 hpux*)
12356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12357 # not for PA HP-UX.
12358 case $host_cpu in
12359 hppa*64*|ia64*)
12362 lt_prog_compiler_pic_CXX='-fPIC'
12364 esac
12367 lt_prog_compiler_pic_CXX='-fPIC'
12369 esac
12370 else
12371 case $host_os in
12372 aix4* | aix5*)
12373 # All AIX code is PIC.
12374 if test "$host_cpu" = ia64; then
12375 # AIX 5 now supports IA64 processor
12376 lt_prog_compiler_static_CXX='-Bstatic'
12377 else
12378 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12381 chorus*)
12382 case $cc_basename in
12383 cxch68*)
12384 # Green Hills C++ Compiler
12385 # _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"
12387 esac
12389 darwin*)
12390 # PIC is the default on this platform
12391 # Common symbols not allowed in MH_DYLIB files
12392 case $cc_basename in
12393 xlc*)
12394 lt_prog_compiler_pic_CXX='-qnocommon'
12395 lt_prog_compiler_wl_CXX='-Wl,'
12397 esac
12399 dgux*)
12400 case $cc_basename in
12401 ec++*)
12402 lt_prog_compiler_pic_CXX='-KPIC'
12404 ghcx*)
12405 # Green Hills C++ Compiler
12406 lt_prog_compiler_pic_CXX='-pic'
12410 esac
12412 freebsd* | kfreebsd*-gnu | dragonfly*)
12413 # FreeBSD uses GNU C++
12415 hpux9* | hpux10* | hpux11*)
12416 case $cc_basename in
12417 CC*)
12418 lt_prog_compiler_wl_CXX='-Wl,'
12419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12420 if test "$host_cpu" != ia64; then
12421 lt_prog_compiler_pic_CXX='+Z'
12424 aCC*)
12425 lt_prog_compiler_wl_CXX='-Wl,'
12426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12427 case $host_cpu in
12428 hppa*64*|ia64*)
12429 # +Z the default
12432 lt_prog_compiler_pic_CXX='+Z'
12434 esac
12438 esac
12440 interix*)
12441 # This is c89, which is MS Visual C++ (no shared libs)
12442 # Anyone wants to do a port?
12444 irix5* | irix6* | nonstopux*)
12445 case $cc_basename in
12446 CC*)
12447 lt_prog_compiler_wl_CXX='-Wl,'
12448 lt_prog_compiler_static_CXX='-non_shared'
12449 # CC pic flag -KPIC is the default.
12453 esac
12455 linux*)
12456 case $cc_basename in
12457 KCC*)
12458 # KAI C++ Compiler
12459 lt_prog_compiler_wl_CXX='--backend -Wl,'
12460 lt_prog_compiler_pic_CXX='-fPIC'
12462 icpc* | ecpc*)
12463 # Intel C++
12464 lt_prog_compiler_wl_CXX='-Wl,'
12465 lt_prog_compiler_pic_CXX='-KPIC'
12466 lt_prog_compiler_static_CXX='-static'
12468 pgCC*)
12469 # Portland Group C++ compiler.
12470 lt_prog_compiler_wl_CXX='-Wl,'
12471 lt_prog_compiler_pic_CXX='-fpic'
12472 lt_prog_compiler_static_CXX='-Bstatic'
12474 cxx*)
12475 # Compaq C++
12476 # Make sure the PIC flag is empty. It appears that all Alpha
12477 # Linux and Compaq Tru64 Unix objects are PIC.
12478 lt_prog_compiler_pic_CXX=
12479 lt_prog_compiler_static_CXX='-non_shared'
12483 esac
12485 lynxos*)
12487 m88k*)
12489 mvs*)
12490 case $cc_basename in
12491 cxx*)
12492 lt_prog_compiler_pic_CXX='-W c,exportall'
12496 esac
12498 netbsd*)
12500 osf3* | osf4* | osf5*)
12501 case $cc_basename in
12502 KCC*)
12503 lt_prog_compiler_wl_CXX='--backend -Wl,'
12505 RCC*)
12506 # Rational C++ 2.4.1
12507 lt_prog_compiler_pic_CXX='-pic'
12509 cxx*)
12510 # Digital/Compaq C++
12511 lt_prog_compiler_wl_CXX='-Wl,'
12512 # Make sure the PIC flag is empty. It appears that all Alpha
12513 # Linux and Compaq Tru64 Unix objects are PIC.
12514 lt_prog_compiler_pic_CXX=
12515 lt_prog_compiler_static_CXX='-non_shared'
12519 esac
12521 psos*)
12523 solaris*)
12524 case $cc_basename in
12525 CC*)
12526 # Sun C++ 4.2, 5.x and Centerline C++
12527 lt_prog_compiler_pic_CXX='-KPIC'
12528 lt_prog_compiler_static_CXX='-Bstatic'
12529 lt_prog_compiler_wl_CXX='-Qoption ld '
12531 gcx*)
12532 # Green Hills C++ Compiler
12533 lt_prog_compiler_pic_CXX='-PIC'
12537 esac
12539 sunos4*)
12540 case $cc_basename in
12541 CC*)
12542 # Sun C++ 4.x
12543 lt_prog_compiler_pic_CXX='-pic'
12544 lt_prog_compiler_static_CXX='-Bstatic'
12546 lcc*)
12547 # Lucid
12548 lt_prog_compiler_pic_CXX='-pic'
12552 esac
12554 tandem*)
12555 case $cc_basename in
12556 NCC*)
12557 # NonStop-UX NCC 3.20
12558 lt_prog_compiler_pic_CXX='-KPIC'
12562 esac
12564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12565 case $cc_basename in
12566 CC*)
12567 lt_prog_compiler_wl_CXX='-Wl,'
12568 lt_prog_compiler_pic_CXX='-KPIC'
12569 lt_prog_compiler_static_CXX='-Bstatic'
12571 esac
12573 vxworks*)
12576 lt_prog_compiler_can_build_shared_CXX=no
12578 esac
12581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12582 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12585 # Check to make sure the PIC flag actually works.
12587 if test -n "$lt_prog_compiler_pic_CXX"; then
12589 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12591 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 lt_prog_compiler_pic_works_CXX=no
12595 ac_outfile=conftest.$ac_objext
12596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12597 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12598 # Insert the option either (1) after the last *FLAGS variable, or
12599 # (2) before a word containing "conftest.", or (3) at the end.
12600 # Note that $ac_compile itself does not contain backslashes and begins
12601 # with a dollar sign (not a hyphen), so the echo should work correctly.
12602 # The option is referenced via a variable to avoid confusing sed.
12603 lt_compile=`echo "$ac_compile" | $SED \
12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
12607 (eval echo "\"\$as_me:12607: $lt_compile\"" >&5)
12608 (eval "$lt_compile" 2>conftest.err)
12609 ac_status=$?
12610 cat conftest.err >&5
12611 echo "$as_me:12611: \$? = $ac_status" >&5
12612 if (exit $ac_status) && test -s "$ac_outfile"; then
12613 # The compiler can only warn and ignore the option if not recognized
12614 # So say no if there are warnings other than the usual output.
12615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12618 lt_prog_compiler_pic_works_CXX=yes
12621 $rm conftest*
12624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12625 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12627 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12628 case $lt_prog_compiler_pic_CXX in
12629 "" | " "*) ;;
12630 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12631 esac
12632 else
12633 lt_prog_compiler_pic_CXX=
12634 lt_prog_compiler_can_build_shared_CXX=no
12638 case $host_os in
12639 # For platforms which do not support PIC, -DPIC is meaningless:
12640 *djgpp*)
12641 lt_prog_compiler_pic_CXX=
12644 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12646 esac
12649 # Check to make sure the static flag actually works.
12651 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12652 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12654 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657 lt_prog_compiler_static_works_CXX=no
12658 save_LDFLAGS="$LDFLAGS"
12659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12662 # The linker can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 if test -s conftest.err; then
12665 # Append any errors to the config.log.
12666 cat conftest.err 1>&5
12667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12669 if diff conftest.exp conftest.er2 >/dev/null; then
12670 lt_prog_compiler_static_works_CXX=yes
12672 else
12673 lt_prog_compiler_static_works_CXX=yes
12676 $rm conftest*
12677 LDFLAGS="$save_LDFLAGS"
12680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12681 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12683 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12685 else
12686 lt_prog_compiler_static_CXX=
12690 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12692 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695 lt_cv_prog_compiler_c_o_CXX=no
12696 $rm -r conftest 2>/dev/null
12697 mkdir conftest
12698 cd conftest
12699 mkdir out
12700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12702 lt_compiler_flag="-o out/conftest2.$ac_objext"
12703 # Insert the option either (1) after the last *FLAGS variable, or
12704 # (2) before a word containing "conftest.", or (3) at the end.
12705 # Note that $ac_compile itself does not contain backslashes and begins
12706 # with a dollar sign (not a hyphen), so the echo should work correctly.
12707 lt_compile=`echo "$ac_compile" | $SED \
12708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710 -e 's:$: $lt_compiler_flag:'`
12711 (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
12712 (eval "$lt_compile" 2>out/conftest.err)
12713 ac_status=$?
12714 cat out/conftest.err >&5
12715 echo "$as_me:12715: \$? = $ac_status" >&5
12716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12717 then
12718 # The compiler can only warn and ignore the option if not recognized
12719 # So say no if there are warnings
12720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12723 lt_cv_prog_compiler_c_o_CXX=yes
12726 chmod u+w . 2>&5
12727 $rm conftest*
12728 # SGI C++ compiler will create directory out/ii_files/ for
12729 # template instantiation
12730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12731 $rm out/* && rmdir out
12732 cd ..
12733 rmdir conftest
12734 $rm conftest*
12737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12741 hard_links="nottested"
12742 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12743 # do not overwrite the value of need_locks provided by the user
12744 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12746 hard_links=yes
12747 $rm conftest*
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 touch conftest.a
12750 ln conftest.a conftest.b 2>&5 || hard_links=no
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 { echo "$as_me:$LINENO: result: $hard_links" >&5
12753 echo "${ECHO_T}$hard_links" >&6; }
12754 if test "$hard_links" = no; then
12755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757 need_locks=warn
12759 else
12760 need_locks=no
12763 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12766 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12767 case $host_os in
12768 aix4* | aix5*)
12769 # If we're using GNU nm, then we don't want the "-C" option.
12770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12771 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12772 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'
12773 else
12774 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'
12777 pw32*)
12778 export_symbols_cmds_CXX="$ltdll_cmds"
12780 cygwin* | mingw*)
12781 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'
12784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12786 esac
12788 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12789 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12790 test "$ld_shlibs_CXX" = no && can_build_shared=no
12793 # Do we need to explicitly link libc?
12795 case "x$archive_cmds_need_lc_CXX" in
12796 x|xyes)
12797 # Assume -lc should be added
12798 archive_cmds_need_lc_CXX=yes
12800 if test "$enable_shared" = yes && test "$GCC" = yes; then
12801 case $archive_cmds_CXX in
12802 *'~'*)
12803 # FIXME: we may have to deal with multi-command sequences.
12805 '$CC '*)
12806 # Test whether the compiler implicitly links with -lc since on some
12807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12808 # to ld, don't add -lc before -lgcc.
12809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12811 $rm conftest*
12812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } 2>conftest.err; then
12819 soname=conftest
12820 lib=conftest
12821 libobjs=conftest.$ac_objext
12822 deplibs=
12823 wl=$lt_prog_compiler_wl_CXX
12824 pic_flag=$lt_prog_compiler_pic_CXX
12825 compiler_flags=-v
12826 linker_flags=-v
12827 verstring=
12828 output_objdir=.
12829 libname=conftest
12830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12831 allow_undefined_flag_CXX=
12832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12833 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }
12837 then
12838 archive_cmds_need_lc_CXX=no
12839 else
12840 archive_cmds_need_lc_CXX=yes
12842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12843 else
12844 cat conftest.err 1>&5
12846 $rm conftest*
12847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12848 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12850 esac
12853 esac
12855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12857 library_names_spec=
12858 libname_spec='lib$name'
12859 soname_spec=
12860 shrext_cmds=".so"
12861 postinstall_cmds=
12862 postuninstall_cmds=
12863 finish_cmds=
12864 finish_eval=
12865 shlibpath_var=
12866 shlibpath_overrides_runpath=unknown
12867 version_type=none
12868 dynamic_linker="$host_os ld.so"
12869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12870 if test "$GCC" = yes; then
12871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12873 # if the path contains ";" then we assume it to be the separator
12874 # otherwise default to the standard path separator (i.e. ":") - it is
12875 # assumed that no part of a normal pathname contains ";" but that should
12876 # okay in the real world where ";" in dirpaths is itself problematic.
12877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12878 else
12879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12881 else
12882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12884 need_lib_prefix=unknown
12885 hardcode_into_libs=no
12887 # when you set need_version to no, make sure it does not cause -set_version
12888 # flags to be left without arguments
12889 need_version=unknown
12891 case $host_os in
12892 aix3*)
12893 version_type=linux
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12895 shlibpath_var=LIBPATH
12897 # AIX 3 has no versioning support, so we append a major version to the name.
12898 soname_spec='${libname}${release}${shared_ext}$major'
12901 aix4* | aix5*)
12902 version_type=linux
12903 need_lib_prefix=no
12904 need_version=no
12905 hardcode_into_libs=yes
12906 if test "$host_cpu" = ia64; then
12907 # AIX 5 supports IA64
12908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 else
12911 # With GCC up to 2.95.x, collect2 would create an import file
12912 # for dependence libraries. The import file would start with
12913 # the line `#! .'. This would cause the generated library to
12914 # depend on `.', always an invalid library. This was fixed in
12915 # development snapshots of GCC prior to 3.0.
12916 case $host_os in
12917 aix4 | aix4.[01] | aix4.[01].*)
12918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12919 echo ' yes '
12920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12922 else
12923 can_build_shared=no
12926 esac
12927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12928 # soname into executable. Probably we can add versioning support to
12929 # collect2, so additional links can be useful in future.
12930 if test "$aix_use_runtimelinking" = yes; then
12931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12932 # instead of lib<name>.a to let people know that these are not
12933 # typical AIX shared libraries.
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 else
12936 # We preserve .a as extension for shared libraries through AIX4.2
12937 # and later when we are not doing run time linking.
12938 library_names_spec='${libname}${release}.a $libname.a'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12941 shlibpath_var=LIBPATH
12945 amigaos*)
12946 library_names_spec='$libname.ixlibrary $libname.a'
12947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12948 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'
12951 beos*)
12952 library_names_spec='${libname}${shared_ext}'
12953 dynamic_linker="$host_os ld.so"
12954 shlibpath_var=LIBRARY_PATH
12957 bsdi[45]*)
12958 version_type=linux
12959 need_version=no
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12966 # the default ld.so.conf also contains /usr/contrib/lib and
12967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12968 # libtool to hard-code these into programs
12971 cygwin* | mingw* | pw32*)
12972 version_type=windows
12973 shrext_cmds=".dll"
12974 need_version=no
12975 need_lib_prefix=no
12977 case $GCC,$host_os in
12978 yes,cygwin* | yes,mingw* | yes,pw32*)
12979 library_names_spec='$libname.dll.a'
12980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12981 postinstall_cmds='base_file=`basename \${file}`~
12982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12983 dldir=$destdir/`dirname \$dlpath`~
12984 test -d \$dldir || mkdir -p \$dldir~
12985 $install_prog $dir/$dlname \$dldir/$dlname~
12986 chmod a+x \$dldir/$dlname'
12987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12988 dlpath=$dir/\$dldll~
12989 $rm \$dlpath'
12990 shlibpath_overrides_runpath=yes
12992 case $host_os in
12993 cygwin*)
12994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12998 mingw*)
12999 # MinGW DLLs use traditional 'lib' prefix
13000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13003 # It is most probably a Windows format PATH printed by
13004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13005 # path with ; separators, and with drive letters. We can handle the
13006 # drive letters (cygwin fileutils understands them), so leave them,
13007 # especially as we might pass files found there to a mingw objdump,
13008 # which wouldn't understand a cygwinified path. Ahh.
13009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13010 else
13011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13014 pw32*)
13015 # pw32 DLLs use 'pw' prefix rather than 'lib'
13016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13018 esac
13022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13024 esac
13025 dynamic_linker='Win32 ld.exe'
13026 # FIXME: first we should search . and the directory the executable is in
13027 shlibpath_var=PATH
13030 darwin* | rhapsody*)
13031 dynamic_linker="$host_os dyld"
13032 version_type=darwin
13033 need_lib_prefix=no
13034 need_version=no
13035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13036 soname_spec='${libname}${release}${major}$shared_ext'
13037 shlibpath_overrides_runpath=yes
13038 shlibpath_var=DYLD_LIBRARY_PATH
13039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13041 if test "$GCC" = yes; then
13042 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13043 else
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13049 dgux*)
13050 version_type=linux
13051 need_lib_prefix=no
13052 need_version=no
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13058 freebsd1*)
13059 dynamic_linker=no
13062 kfreebsd*-gnu)
13063 version_type=linux
13064 need_lib_prefix=no
13065 need_version=no
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13067 soname_spec='${libname}${release}${shared_ext}$major'
13068 shlibpath_var=LD_LIBRARY_PATH
13069 shlibpath_overrides_runpath=no
13070 hardcode_into_libs=yes
13071 dynamic_linker='GNU ld.so'
13074 freebsd* | dragonfly*)
13075 # DragonFly does not have aout. When/if they implement a new
13076 # versioning mechanism, adjust this.
13077 if test -x /usr/bin/objformat; then
13078 objformat=`/usr/bin/objformat`
13079 else
13080 case $host_os in
13081 freebsd[123]*) objformat=aout ;;
13082 *) objformat=elf ;;
13083 esac
13085 version_type=freebsd-$objformat
13086 case $version_type in
13087 freebsd-elf*)
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13089 need_version=no
13090 need_lib_prefix=no
13092 freebsd-*)
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13094 need_version=yes
13096 esac
13097 shlibpath_var=LD_LIBRARY_PATH
13098 case $host_os in
13099 freebsd2*)
13100 shlibpath_overrides_runpath=yes
13102 freebsd3.[01]* | freebsdelf3.[01]*)
13103 shlibpath_overrides_runpath=yes
13104 hardcode_into_libs=yes
13106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13108 shlibpath_overrides_runpath=no
13109 hardcode_into_libs=yes
13111 freebsd*) # from 4.6 on
13112 shlibpath_overrides_runpath=yes
13113 hardcode_into_libs=yes
13115 esac
13118 gnu*)
13119 version_type=linux
13120 need_lib_prefix=no
13121 need_version=no
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 hardcode_into_libs=yes
13128 hpux9* | hpux10* | hpux11*)
13129 # Give a soname corresponding to the major version so that dld.sl refuses to
13130 # link against other versions.
13131 version_type=sunos
13132 need_lib_prefix=no
13133 need_version=no
13134 case $host_cpu in
13135 ia64*)
13136 shrext_cmds='.so'
13137 hardcode_into_libs=yes
13138 dynamic_linker="$host_os dld.so"
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 if test "X$HPUX_IA64_MODE" = X32; then
13144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13145 else
13146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13150 hppa*64*)
13151 shrext_cmds='.sl'
13152 hardcode_into_libs=yes
13153 dynamic_linker="$host_os dld.sl"
13154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13162 shrext_cmds='.sl'
13163 dynamic_linker="$host_os dld.sl"
13164 shlibpath_var=SHLIB_PATH
13165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13167 soname_spec='${libname}${release}${shared_ext}$major'
13169 esac
13170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13171 postinstall_cmds='chmod 555 $lib'
13174 interix3*)
13175 version_type=linux
13176 need_lib_prefix=no
13177 need_version=no
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=no
13183 hardcode_into_libs=yes
13186 irix5* | irix6* | nonstopux*)
13187 case $host_os in
13188 nonstopux*) version_type=nonstopux ;;
13190 if test "$lt_cv_prog_gnu_ld" = yes; then
13191 version_type=linux
13192 else
13193 version_type=irix
13194 fi ;;
13195 esac
13196 need_lib_prefix=no
13197 need_version=no
13198 soname_spec='${libname}${release}${shared_ext}$major'
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13200 case $host_os in
13201 irix5* | nonstopux*)
13202 libsuff= shlibsuff=
13205 case $LD in # libtool.m4 will add one of these switches to LD
13206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13207 libsuff= shlibsuff= libmagic=32-bit;;
13208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13209 libsuff=32 shlibsuff=N32 libmagic=N32;;
13210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13212 *) libsuff= shlibsuff= libmagic=never-match;;
13213 esac
13215 esac
13216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13217 shlibpath_overrides_runpath=no
13218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13220 hardcode_into_libs=yes
13223 # No shared lib support for Linux oldld, aout, or coff.
13224 linux*oldld* | linux*aout* | linux*coff*)
13225 dynamic_linker=no
13228 # This must be Linux ELF.
13229 linux*)
13230 version_type=linux
13231 need_lib_prefix=no
13232 need_version=no
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13236 shlibpath_var=LD_LIBRARY_PATH
13237 shlibpath_overrides_runpath=no
13238 # This implies no fast_install, which is unacceptable.
13239 # Some rework will be needed to allow for fast_install
13240 # before this can be enabled.
13241 hardcode_into_libs=yes
13243 # Append ld.so.conf contents to the search path
13244 if test -f /etc/ld.so.conf; then
13245 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13249 # We used to test for /lib/ld.so.1 and disable shared libraries on
13250 # powerpc, because MkLinux only supported shared libraries with the
13251 # GNU dynamic linker. Since this was broken with cross compilers,
13252 # most powerpc-linux boxes support dynamic linking these days and
13253 # people can always --disable-shared, the test was removed, and we
13254 # assume the GNU/Linux dynamic linker is in use.
13255 dynamic_linker='GNU/Linux ld.so'
13258 knetbsd*-gnu)
13259 version_type=linux
13260 need_lib_prefix=no
13261 need_version=no
13262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13263 soname_spec='${libname}${release}${shared_ext}$major'
13264 shlibpath_var=LD_LIBRARY_PATH
13265 shlibpath_overrides_runpath=no
13266 hardcode_into_libs=yes
13267 dynamic_linker='GNU ld.so'
13270 netbsd*)
13271 version_type=sunos
13272 need_lib_prefix=no
13273 need_version=no
13274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13277 dynamic_linker='NetBSD (a.out) ld.so'
13278 else
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280 soname_spec='${libname}${release}${shared_ext}$major'
13281 dynamic_linker='NetBSD ld.elf_so'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 shlibpath_overrides_runpath=yes
13285 hardcode_into_libs=yes
13288 newsos6)
13289 version_type=linux
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13295 nto-qnx*)
13296 version_type=linux
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13305 openbsd*)
13306 version_type=sunos
13307 sys_lib_dlsearch_path_spec="/usr/lib"
13308 need_lib_prefix=no
13309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13310 case $host_os in
13311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13312 *) need_version=no ;;
13313 esac
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13316 shlibpath_var=LD_LIBRARY_PATH
13317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13318 case $host_os in
13319 openbsd2.[89] | openbsd2.[89].*)
13320 shlibpath_overrides_runpath=no
13323 shlibpath_overrides_runpath=yes
13325 esac
13326 else
13327 shlibpath_overrides_runpath=yes
13331 os2*)
13332 libname_spec='$name'
13333 shrext_cmds=".dll"
13334 need_lib_prefix=no
13335 library_names_spec='$libname${shared_ext} $libname.a'
13336 dynamic_linker='OS/2 ld.exe'
13337 shlibpath_var=LIBPATH
13340 osf3* | osf4* | osf5*)
13341 version_type=osf
13342 need_lib_prefix=no
13343 need_version=no
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13351 solaris*)
13352 version_type=linux
13353 need_lib_prefix=no
13354 need_version=no
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356 soname_spec='${libname}${release}${shared_ext}$major'
13357 shlibpath_var=LD_LIBRARY_PATH
13358 shlibpath_overrides_runpath=yes
13359 hardcode_into_libs=yes
13360 # ldd complains unless libraries are executable
13361 postinstall_cmds='chmod +x $lib'
13364 sunos4*)
13365 version_type=sunos
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13368 shlibpath_var=LD_LIBRARY_PATH
13369 shlibpath_overrides_runpath=yes
13370 if test "$with_gnu_ld" = yes; then
13371 need_lib_prefix=no
13373 need_version=yes
13376 sysv4 | sysv4.3*)
13377 version_type=linux
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 case $host_vendor in
13382 sni)
13383 shlibpath_overrides_runpath=no
13384 need_lib_prefix=no
13385 export_dynamic_flag_spec='${wl}-Blargedynsym'
13386 runpath_var=LD_RUN_PATH
13388 siemens)
13389 need_lib_prefix=no
13391 motorola)
13392 need_lib_prefix=no
13393 need_version=no
13394 shlibpath_overrides_runpath=no
13395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13397 esac
13400 sysv4*MP*)
13401 if test -d /usr/nec ;then
13402 version_type=linux
13403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13404 soname_spec='$libname${shared_ext}.$major'
13405 shlibpath_var=LD_LIBRARY_PATH
13409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13410 version_type=freebsd-elf
13411 need_lib_prefix=no
13412 need_version=no
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 hardcode_into_libs=yes
13417 if test "$with_gnu_ld" = yes; then
13418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13419 shlibpath_overrides_runpath=no
13420 else
13421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13422 shlibpath_overrides_runpath=yes
13423 case $host_os in
13424 sco3.2v5*)
13425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13427 esac
13429 sys_lib_dlsearch_path_spec='/usr/lib'
13432 uts4*)
13433 version_type=linux
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 shlibpath_var=LD_LIBRARY_PATH
13440 dynamic_linker=no
13442 esac
13443 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13444 echo "${ECHO_T}$dynamic_linker" >&6; }
13445 test "$dynamic_linker" = no && can_build_shared=no
13447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13448 if test "$GCC" = yes; then
13449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13452 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13454 hardcode_action_CXX=
13455 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13456 test -n "$runpath_var_CXX" || \
13457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13459 # We can hardcode non-existant directories.
13460 if test "$hardcode_direct_CXX" != no &&
13461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13462 # have to relink, otherwise we might link with an installed library
13463 # when we should be linking with a yet-to-be-installed one
13464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13465 test "$hardcode_minus_L_CXX" != no; then
13466 # Linking always hardcodes the temporary library directory.
13467 hardcode_action_CXX=relink
13468 else
13469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13470 hardcode_action_CXX=immediate
13472 else
13473 # We cannot hardcode anything, or else we can only hardcode existing
13474 # directories.
13475 hardcode_action_CXX=unsupported
13477 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13478 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13480 if test "$hardcode_action_CXX" = relink; then
13481 # Fast installation is not supported
13482 enable_fast_install=no
13483 elif test "$shlibpath_overrides_runpath" = yes ||
13484 test "$enable_shared" = no; then
13485 # Fast installation is not necessary
13486 enable_fast_install=needless
13490 # The else clause should only fire when bootstrapping the
13491 # libtool distribution, otherwise you forgot to ship ltmain.sh
13492 # with your package, and you will get complaints that there are
13493 # no rules to generate ltmain.sh.
13494 if test -f "$ltmain"; then
13495 # See if we are running on zsh, and set the options which allow our commands through
13496 # without removal of \ escapes.
13497 if test -n "${ZSH_VERSION+set}" ; then
13498 setopt NO_GLOB_SUBST
13500 # Now quote all the things that may contain metacharacters while being
13501 # careful not to overquote the AC_SUBSTed values. We take copies of the
13502 # variables and quote the copies for generation of the libtool script.
13503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13504 SED SHELL STRIP \
13505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13507 deplibs_check_method reload_flag reload_cmds need_locks \
13508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13509 lt_cv_sys_global_symbol_to_c_name_address \
13510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13511 old_postinstall_cmds old_postuninstall_cmds \
13512 compiler_CXX \
13513 CC_CXX \
13514 LD_CXX \
13515 lt_prog_compiler_wl_CXX \
13516 lt_prog_compiler_pic_CXX \
13517 lt_prog_compiler_static_CXX \
13518 lt_prog_compiler_no_builtin_flag_CXX \
13519 export_dynamic_flag_spec_CXX \
13520 thread_safe_flag_spec_CXX \
13521 whole_archive_flag_spec_CXX \
13522 enable_shared_with_static_runtimes_CXX \
13523 old_archive_cmds_CXX \
13524 old_archive_from_new_cmds_CXX \
13525 predep_objects_CXX \
13526 postdep_objects_CXX \
13527 predeps_CXX \
13528 postdeps_CXX \
13529 compiler_lib_search_path_CXX \
13530 archive_cmds_CXX \
13531 archive_expsym_cmds_CXX \
13532 postinstall_cmds_CXX \
13533 postuninstall_cmds_CXX \
13534 old_archive_from_expsyms_cmds_CXX \
13535 allow_undefined_flag_CXX \
13536 no_undefined_flag_CXX \
13537 export_symbols_cmds_CXX \
13538 hardcode_libdir_flag_spec_CXX \
13539 hardcode_libdir_flag_spec_ld_CXX \
13540 hardcode_libdir_separator_CXX \
13541 hardcode_automatic_CXX \
13542 module_cmds_CXX \
13543 module_expsym_cmds_CXX \
13544 lt_cv_prog_compiler_c_o_CXX \
13545 exclude_expsyms_CXX \
13546 include_expsyms_CXX; do
13548 case $var in
13549 old_archive_cmds_CXX | \
13550 old_archive_from_new_cmds_CXX | \
13551 archive_cmds_CXX | \
13552 archive_expsym_cmds_CXX | \
13553 module_cmds_CXX | \
13554 module_expsym_cmds_CXX | \
13555 old_archive_from_expsyms_cmds_CXX | \
13556 export_symbols_cmds_CXX | \
13557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13558 postinstall_cmds | postuninstall_cmds | \
13559 old_postinstall_cmds | old_postuninstall_cmds | \
13560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13561 # Double-quote double-evaled strings.
13562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13567 esac
13568 done
13570 case $lt_echo in
13571 *'\$0 --fallback-echo"')
13572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13574 esac
13576 cfgfile="$ofile"
13578 cat <<__EOF__ >> "$cfgfile"
13579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13583 # Shell to use when invoking shell scripts.
13584 SHELL=$lt_SHELL
13586 # Whether or not to build shared libraries.
13587 build_libtool_libs=$enable_shared
13589 # Whether or not to build static libraries.
13590 build_old_libs=$enable_static
13592 # Whether or not to add -lc for building shared libraries.
13593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13595 # Whether or not to disallow shared libs when runtime libs are static
13596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13598 # Whether or not to optimize for fast installation.
13599 fast_install=$enable_fast_install
13601 # The host system.
13602 host_alias=$host_alias
13603 host=$host
13604 host_os=$host_os
13606 # The build system.
13607 build_alias=$build_alias
13608 build=$build
13609 build_os=$build_os
13611 # An echo program that does not interpret backslashes.
13612 echo=$lt_echo
13614 # The archiver.
13615 AR=$lt_AR
13616 AR_FLAGS=$lt_AR_FLAGS
13618 # A C compiler.
13619 LTCC=$lt_LTCC
13621 # LTCC compiler flags.
13622 LTCFLAGS=$lt_LTCFLAGS
13624 # A language-specific compiler.
13625 CC=$lt_compiler_CXX
13627 # Is the compiler the GNU C compiler?
13628 with_gcc=$GCC_CXX
13630 # An ERE matcher.
13631 EGREP=$lt_EGREP
13633 # The linker used to build libraries.
13634 LD=$lt_LD_CXX
13636 # Whether we need hard or soft links.
13637 LN_S=$lt_LN_S
13639 # A BSD-compatible nm program.
13640 NM=$lt_NM
13642 # A symbol stripping program
13643 STRIP=$lt_STRIP
13645 # Used to examine libraries when file_magic_cmd begins "file"
13646 MAGIC_CMD=$MAGIC_CMD
13648 # Used on cygwin: DLL creation program.
13649 DLLTOOL="$DLLTOOL"
13651 # Used on cygwin: object dumper.
13652 OBJDUMP="$OBJDUMP"
13654 # Used on cygwin: assembler.
13655 AS="$AS"
13657 # The name of the directory that contains temporary libtool files.
13658 objdir=$objdir
13660 # How to create reloadable object files.
13661 reload_flag=$lt_reload_flag
13662 reload_cmds=$lt_reload_cmds
13664 # How to pass a linker flag through the compiler.
13665 wl=$lt_lt_prog_compiler_wl_CXX
13667 # Object file suffix (normally "o").
13668 objext="$ac_objext"
13670 # Old archive suffix (normally "a").
13671 libext="$libext"
13673 # Shared library suffix (normally ".so").
13674 shrext_cmds='$shrext_cmds'
13676 # Executable file suffix (normally "").
13677 exeext="$exeext"
13679 # Additional compiler flags for building library objects.
13680 pic_flag=$lt_lt_prog_compiler_pic_CXX
13681 pic_mode=$pic_mode
13683 # What is the maximum length of a command?
13684 max_cmd_len=$lt_cv_sys_max_cmd_len
13686 # Does compiler simultaneously support -c and -o options?
13687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13689 # Must we lock files when doing compilation?
13690 need_locks=$lt_need_locks
13692 # Do we need the lib prefix for modules?
13693 need_lib_prefix=$need_lib_prefix
13695 # Do we need a version for libraries?
13696 need_version=$need_version
13698 # Whether dlopen is supported.
13699 dlopen_support=$enable_dlopen
13701 # Whether dlopen of programs is supported.
13702 dlopen_self=$enable_dlopen_self
13704 # Whether dlopen of statically linked programs is supported.
13705 dlopen_self_static=$enable_dlopen_self_static
13707 # Compiler flag to prevent dynamic linking.
13708 link_static_flag=$lt_lt_prog_compiler_static_CXX
13710 # Compiler flag to turn off builtin functions.
13711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13713 # Compiler flag to allow reflexive dlopens.
13714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13716 # Compiler flag to generate shared objects directly from archives.
13717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13719 # Compiler flag to generate thread-safe objects.
13720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13722 # Library versioning type.
13723 version_type=$version_type
13725 # Format of library name prefix.
13726 libname_spec=$lt_libname_spec
13728 # List of archive names. First name is the real one, the rest are links.
13729 # The last name is the one that the linker finds with -lNAME.
13730 library_names_spec=$lt_library_names_spec
13732 # The coded name of the library, if different from the real name.
13733 soname_spec=$lt_soname_spec
13735 # Commands used to build and install an old-style archive.
13736 RANLIB=$lt_RANLIB
13737 old_archive_cmds=$lt_old_archive_cmds_CXX
13738 old_postinstall_cmds=$lt_old_postinstall_cmds
13739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13741 # Create an old-style archive from a shared archive.
13742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13744 # Create a temporary old-style archive to link instead of a shared archive.
13745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13747 # Commands used to build and install a shared archive.
13748 archive_cmds=$lt_archive_cmds_CXX
13749 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13750 postinstall_cmds=$lt_postinstall_cmds
13751 postuninstall_cmds=$lt_postuninstall_cmds
13753 # Commands used to build a loadable module (assumed same as above if empty)
13754 module_cmds=$lt_module_cmds_CXX
13755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13757 # Commands to strip libraries.
13758 old_striplib=$lt_old_striplib
13759 striplib=$lt_striplib
13761 # Dependencies to place before the objects being linked to create a
13762 # shared library.
13763 predep_objects=$lt_predep_objects_CXX
13765 # Dependencies to place after the objects being linked to create a
13766 # shared library.
13767 postdep_objects=$lt_postdep_objects_CXX
13769 # Dependencies to place before the objects being linked to create a
13770 # shared library.
13771 predeps=$lt_predeps_CXX
13773 # Dependencies to place after the objects being linked to create a
13774 # shared library.
13775 postdeps=$lt_postdeps_CXX
13777 # The library search path used internally by the compiler when linking
13778 # a shared library.
13779 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13781 # Method to check whether dependent libraries are shared objects.
13782 deplibs_check_method=$lt_deplibs_check_method
13784 # Command to use when deplibs_check_method == file_magic.
13785 file_magic_cmd=$lt_file_magic_cmd
13787 # Flag that allows shared libraries with undefined symbols to be built.
13788 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13790 # Flag that forces no undefined symbols.
13791 no_undefined_flag=$lt_no_undefined_flag_CXX
13793 # Commands used to finish a libtool library installation in a directory.
13794 finish_cmds=$lt_finish_cmds
13796 # Same as above, but a single script fragment to be evaled but not shown.
13797 finish_eval=$lt_finish_eval
13799 # Take the output of nm and produce a listing of raw symbols and C names.
13800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13802 # Transform the output of nm in a proper C declaration
13803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13805 # Transform the output of nm in a C name address pair
13806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13808 # This is the shared library runtime path variable.
13809 runpath_var=$runpath_var
13811 # This is the shared library path variable.
13812 shlibpath_var=$shlibpath_var
13814 # Is shlibpath searched before the hard-coded library search path?
13815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13817 # How to hardcode a shared library path into an executable.
13818 hardcode_action=$hardcode_action_CXX
13820 # Whether we should hardcode library paths into libraries.
13821 hardcode_into_libs=$hardcode_into_libs
13823 # Flag to hardcode \$libdir into a binary during linking.
13824 # This must work even if \$libdir does not exist.
13825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13827 # If ld is used when linking, flag to hardcode \$libdir into
13828 # a binary during linking. This must work even if \$libdir does
13829 # not exist.
13830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13832 # Whether we need a single -rpath flag with a separated argument.
13833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13836 # resulting binary.
13837 hardcode_direct=$hardcode_direct_CXX
13839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13840 # resulting binary.
13841 hardcode_minus_L=$hardcode_minus_L_CXX
13843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13844 # the resulting binary.
13845 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13847 # Set to yes if building a shared library automatically hardcodes DIR into the library
13848 # and all subsequent libraries and executables linked against it.
13849 hardcode_automatic=$hardcode_automatic_CXX
13851 # Variables whose values should be saved in libtool wrapper scripts and
13852 # restored at relink time.
13853 variables_saved_for_relink="$variables_saved_for_relink"
13855 # Whether libtool must link a program against all its dependency libraries.
13856 link_all_deplibs=$link_all_deplibs_CXX
13858 # Compile-time system search path for libraries
13859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13861 # Run-time system search path for libraries
13862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13864 # Fix the shell variable \$srcfile for the compiler.
13865 fix_srcfile_path="$fix_srcfile_path_CXX"
13867 # Set to yes if exported symbols are required.
13868 always_export_symbols=$always_export_symbols_CXX
13870 # The commands to list exported symbols.
13871 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13873 # The commands to extract the exported symbol list from a shared archive.
13874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13876 # Symbols that should not be listed in the preloaded symbols.
13877 exclude_expsyms=$lt_exclude_expsyms_CXX
13879 # Symbols that must always be exported.
13880 include_expsyms=$lt_include_expsyms_CXX
13882 # ### END LIBTOOL TAG CONFIG: $tagname
13884 __EOF__
13887 else
13888 # If there is no Makefile yet, we rely on a make rule to execute
13889 # `config.status --recheck' to rerun these tests and create the
13890 # libtool script then.
13891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13892 if test -f "$ltmain_in"; then
13893 test -f Makefile && make "$ltmain"
13898 ac_ext=cpp
13899 ac_cpp='$CXXCPP $CPPFLAGS'
13900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13904 CC=$lt_save_CC
13905 LDCXX=$LD
13906 LD=$lt_save_LD
13907 GCC=$lt_save_GCC
13908 with_gnu_ldcxx=$with_gnu_ld
13909 with_gnu_ld=$lt_save_with_gnu_ld
13910 lt_cv_path_LDCXX=$lt_cv_path_LD
13911 lt_cv_path_LD=$lt_save_path_LD
13912 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13913 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13915 else
13916 tagname=""
13920 F77)
13921 if test -n "$F77" && test "X$F77" != "Xno"; then
13923 ac_ext=f
13924 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13925 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13929 archive_cmds_need_lc_F77=no
13930 allow_undefined_flag_F77=
13931 always_export_symbols_F77=no
13932 archive_expsym_cmds_F77=
13933 export_dynamic_flag_spec_F77=
13934 hardcode_direct_F77=no
13935 hardcode_libdir_flag_spec_F77=
13936 hardcode_libdir_flag_spec_ld_F77=
13937 hardcode_libdir_separator_F77=
13938 hardcode_minus_L_F77=no
13939 hardcode_automatic_F77=no
13940 module_cmds_F77=
13941 module_expsym_cmds_F77=
13942 link_all_deplibs_F77=unknown
13943 old_archive_cmds_F77=$old_archive_cmds
13944 no_undefined_flag_F77=
13945 whole_archive_flag_spec_F77=
13946 enable_shared_with_static_runtimes_F77=no
13948 # Source file extension for f77 test sources.
13949 ac_ext=f
13951 # Object file extension for compiled f77 test sources.
13952 objext=o
13953 objext_F77=$objext
13955 # Code to be used in simple compile tests
13956 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13958 # Code to be used in simple link tests
13959 lt_simple_link_test_code=" program t\n end\n"
13961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13963 # If no C compiler was specified, use CC.
13964 LTCC=${LTCC-"$CC"}
13966 # If no C compiler flags were specified, use CFLAGS.
13967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13969 # Allow CC to be a program name with arguments.
13970 compiler=$CC
13973 # save warnings/boilerplate of simple test code
13974 ac_outfile=conftest.$ac_objext
13975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13977 _lt_compiler_boilerplate=`cat conftest.err`
13978 $rm conftest*
13980 ac_outfile=conftest.$ac_objext
13981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13983 _lt_linker_boilerplate=`cat conftest.err`
13984 $rm conftest*
13987 # Allow CC to be a program name with arguments.
13988 lt_save_CC="$CC"
13989 CC=${F77-"f77"}
13990 compiler=$CC
13991 compiler_F77=$CC
13992 for cc_temp in $compiler""; do
13993 case $cc_temp in
13994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996 \-*) ;;
13997 *) break;;
13998 esac
13999 done
14000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14003 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14004 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14005 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14006 echo "${ECHO_T}$can_build_shared" >&6; }
14008 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14009 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14010 test "$can_build_shared" = "no" && enable_shared=no
14012 # On AIX, shared libraries and static libraries use the same namespace, and
14013 # are all built from PIC.
14014 case $host_os in
14015 aix3*)
14016 test "$enable_shared" = yes && enable_static=no
14017 if test -n "$RANLIB"; then
14018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14019 postinstall_cmds='$RANLIB $lib'
14022 aix4* | aix5*)
14023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14024 test "$enable_shared" = yes && enable_static=no
14027 esac
14028 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14029 echo "${ECHO_T}$enable_shared" >&6; }
14031 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14032 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14033 # Make sure either enable_shared or enable_static is yes.
14034 test "$enable_shared" = yes || enable_static=yes
14035 { echo "$as_me:$LINENO: result: $enable_static" >&5
14036 echo "${ECHO_T}$enable_static" >&6; }
14038 GCC_F77="$G77"
14039 LD_F77="$LD"
14041 lt_prog_compiler_wl_F77=
14042 lt_prog_compiler_pic_F77=
14043 lt_prog_compiler_static_F77=
14045 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14046 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14048 if test "$GCC" = yes; then
14049 lt_prog_compiler_wl_F77='-Wl,'
14050 lt_prog_compiler_static_F77='-static'
14052 case $host_os in
14053 aix*)
14054 # All AIX code is PIC.
14055 if test "$host_cpu" = ia64; then
14056 # AIX 5 now supports IA64 processor
14057 lt_prog_compiler_static_F77='-Bstatic'
14061 amigaos*)
14062 # FIXME: we need at least 68020 code to build shared libraries, but
14063 # adding the `-m68020' flag to GCC prevents building anything better,
14064 # like `-m68040'.
14065 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14069 # PIC is the default for these OSes.
14072 mingw* | pw32* | os2*)
14073 # This hack is so that the source file can tell whether it is being
14074 # built for inclusion in a dll (and should export symbols for example).
14075 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14078 darwin* | rhapsody*)
14079 # PIC is the default on this platform
14080 # Common symbols not allowed in MH_DYLIB files
14081 lt_prog_compiler_pic_F77='-fno-common'
14084 interix3*)
14085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14086 # Instead, we relocate shared libraries at runtime.
14089 msdosdjgpp*)
14090 # Just because we use GCC doesn't mean we suddenly get shared libraries
14091 # on systems that don't support them.
14092 lt_prog_compiler_can_build_shared_F77=no
14093 enable_shared=no
14096 sysv4*MP*)
14097 if test -d /usr/nec; then
14098 lt_prog_compiler_pic_F77=-Kconform_pic
14102 hpux*)
14103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14104 # not for PA HP-UX.
14105 case $host_cpu in
14106 hppa*64*|ia64*)
14107 # +Z the default
14110 lt_prog_compiler_pic_F77='-fPIC'
14112 esac
14116 lt_prog_compiler_pic_F77='-fPIC'
14118 esac
14119 else
14120 # PORTME Check for flag to pass linker flags through the system compiler.
14121 case $host_os in
14122 aix*)
14123 lt_prog_compiler_wl_F77='-Wl,'
14124 if test "$host_cpu" = ia64; then
14125 # AIX 5 now supports IA64 processor
14126 lt_prog_compiler_static_F77='-Bstatic'
14127 else
14128 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14131 darwin*)
14132 # PIC is the default on this platform
14133 # Common symbols not allowed in MH_DYLIB files
14134 case $cc_basename in
14135 xlc*)
14136 lt_prog_compiler_pic_F77='-qnocommon'
14137 lt_prog_compiler_wl_F77='-Wl,'
14139 esac
14142 mingw* | pw32* | os2*)
14143 # This hack is so that the source file can tell whether it is being
14144 # built for inclusion in a dll (and should export symbols for example).
14145 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14148 hpux9* | hpux10* | hpux11*)
14149 lt_prog_compiler_wl_F77='-Wl,'
14150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14151 # not for PA HP-UX.
14152 case $host_cpu in
14153 hppa*64*|ia64*)
14154 # +Z the default
14157 lt_prog_compiler_pic_F77='+Z'
14159 esac
14160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14161 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14164 irix5* | irix6* | nonstopux*)
14165 lt_prog_compiler_wl_F77='-Wl,'
14166 # PIC (with -KPIC) is the default.
14167 lt_prog_compiler_static_F77='-non_shared'
14170 newsos6)
14171 lt_prog_compiler_pic_F77='-KPIC'
14172 lt_prog_compiler_static_F77='-Bstatic'
14175 linux*)
14176 case $cc_basename in
14177 icc* | ecc*)
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 lt_prog_compiler_pic_F77='-KPIC'
14180 lt_prog_compiler_static_F77='-static'
14182 pgcc* | pgf77* | pgf90* | pgf95*)
14183 # Portland Group compilers (*not* the Pentium gcc compiler,
14184 # which looks to be a dead project)
14185 lt_prog_compiler_wl_F77='-Wl,'
14186 lt_prog_compiler_pic_F77='-fpic'
14187 lt_prog_compiler_static_F77='-Bstatic'
14189 ccc*)
14190 lt_prog_compiler_wl_F77='-Wl,'
14191 # All Alpha code is PIC.
14192 lt_prog_compiler_static_F77='-non_shared'
14194 esac
14197 osf3* | osf4* | osf5*)
14198 lt_prog_compiler_wl_F77='-Wl,'
14199 # All OSF/1 code is PIC.
14200 lt_prog_compiler_static_F77='-non_shared'
14203 solaris*)
14204 lt_prog_compiler_pic_F77='-KPIC'
14205 lt_prog_compiler_static_F77='-Bstatic'
14206 case $cc_basename in
14207 f77* | f90* | f95*)
14208 lt_prog_compiler_wl_F77='-Qoption ld ';;
14210 lt_prog_compiler_wl_F77='-Wl,';;
14211 esac
14214 sunos4*)
14215 lt_prog_compiler_wl_F77='-Qoption ld '
14216 lt_prog_compiler_pic_F77='-PIC'
14217 lt_prog_compiler_static_F77='-Bstatic'
14220 sysv4 | sysv4.2uw2* | sysv4.3*)
14221 lt_prog_compiler_wl_F77='-Wl,'
14222 lt_prog_compiler_pic_F77='-KPIC'
14223 lt_prog_compiler_static_F77='-Bstatic'
14226 sysv4*MP*)
14227 if test -d /usr/nec ;then
14228 lt_prog_compiler_pic_F77='-Kconform_pic'
14229 lt_prog_compiler_static_F77='-Bstatic'
14233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14234 lt_prog_compiler_wl_F77='-Wl,'
14235 lt_prog_compiler_pic_F77='-KPIC'
14236 lt_prog_compiler_static_F77='-Bstatic'
14239 unicos*)
14240 lt_prog_compiler_wl_F77='-Wl,'
14241 lt_prog_compiler_can_build_shared_F77=no
14244 uts4*)
14245 lt_prog_compiler_pic_F77='-pic'
14246 lt_prog_compiler_static_F77='-Bstatic'
14250 lt_prog_compiler_can_build_shared_F77=no
14252 esac
14255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14256 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14259 # Check to make sure the PIC flag actually works.
14261 if test -n "$lt_prog_compiler_pic_F77"; then
14263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14265 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 lt_prog_compiler_pic_works_F77=no
14269 ac_outfile=conftest.$ac_objext
14270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14271 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14272 # Insert the option either (1) after the last *FLAGS variable, or
14273 # (2) before a word containing "conftest.", or (3) at the end.
14274 # Note that $ac_compile itself does not contain backslashes and begins
14275 # with a dollar sign (not a hyphen), so the echo should work correctly.
14276 # The option is referenced via a variable to avoid confusing sed.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\$as_me:14281: $lt_compile\"" >&5)
14282 (eval "$lt_compile" 2>conftest.err)
14283 ac_status=$?
14284 cat conftest.err >&5
14285 echo "$as_me:14285: \$? = $ac_status" >&5
14286 if (exit $ac_status) && test -s "$ac_outfile"; then
14287 # The compiler can only warn and ignore the option if not recognized
14288 # So say no if there are warnings other than the usual output.
14289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14292 lt_prog_compiler_pic_works_F77=yes
14295 $rm conftest*
14298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14299 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14301 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14302 case $lt_prog_compiler_pic_F77 in
14303 "" | " "*) ;;
14304 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14305 esac
14306 else
14307 lt_prog_compiler_pic_F77=
14308 lt_prog_compiler_can_build_shared_F77=no
14312 case $host_os in
14313 # For platforms which do not support PIC, -DPIC is meaningless:
14314 *djgpp*)
14315 lt_prog_compiler_pic_F77=
14318 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14320 esac
14323 # Check to make sure the static flag actually works.
14325 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14328 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 lt_prog_compiler_static_works_F77=no
14332 save_LDFLAGS="$LDFLAGS"
14333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14334 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14336 # The linker can only warn and ignore the option if not recognized
14337 # So say no if there are warnings
14338 if test -s conftest.err; then
14339 # Append any errors to the config.log.
14340 cat conftest.err 1>&5
14341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14343 if diff conftest.exp conftest.er2 >/dev/null; then
14344 lt_prog_compiler_static_works_F77=yes
14346 else
14347 lt_prog_compiler_static_works_F77=yes
14350 $rm conftest*
14351 LDFLAGS="$save_LDFLAGS"
14354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14355 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14357 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14359 else
14360 lt_prog_compiler_static_F77=
14364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14366 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 lt_cv_prog_compiler_c_o_F77=no
14370 $rm -r conftest 2>/dev/null
14371 mkdir conftest
14372 cd conftest
14373 mkdir out
14374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14376 lt_compiler_flag="-o out/conftest2.$ac_objext"
14377 # Insert the option either (1) after the last *FLAGS variable, or
14378 # (2) before a word containing "conftest.", or (3) at the end.
14379 # Note that $ac_compile itself does not contain backslashes and begins
14380 # with a dollar sign (not a hyphen), so the echo should work correctly.
14381 lt_compile=`echo "$ac_compile" | $SED \
14382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14384 -e 's:$: $lt_compiler_flag:'`
14385 (eval echo "\"\$as_me:14385: $lt_compile\"" >&5)
14386 (eval "$lt_compile" 2>out/conftest.err)
14387 ac_status=$?
14388 cat out/conftest.err >&5
14389 echo "$as_me:14389: \$? = $ac_status" >&5
14390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14391 then
14392 # The compiler can only warn and ignore the option if not recognized
14393 # So say no if there are warnings
14394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14397 lt_cv_prog_compiler_c_o_F77=yes
14400 chmod u+w . 2>&5
14401 $rm conftest*
14402 # SGI C++ compiler will create directory out/ii_files/ for
14403 # template instantiation
14404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14405 $rm out/* && rmdir out
14406 cd ..
14407 rmdir conftest
14408 $rm conftest*
14411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14415 hard_links="nottested"
14416 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14417 # do not overwrite the value of need_locks provided by the user
14418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14420 hard_links=yes
14421 $rm conftest*
14422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14423 touch conftest.a
14424 ln conftest.a conftest.b 2>&5 || hard_links=no
14425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14426 { echo "$as_me:$LINENO: result: $hard_links" >&5
14427 echo "${ECHO_T}$hard_links" >&6; }
14428 if test "$hard_links" = no; then
14429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14431 need_locks=warn
14433 else
14434 need_locks=no
14437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14440 runpath_var=
14441 allow_undefined_flag_F77=
14442 enable_shared_with_static_runtimes_F77=no
14443 archive_cmds_F77=
14444 archive_expsym_cmds_F77=
14445 old_archive_From_new_cmds_F77=
14446 old_archive_from_expsyms_cmds_F77=
14447 export_dynamic_flag_spec_F77=
14448 whole_archive_flag_spec_F77=
14449 thread_safe_flag_spec_F77=
14450 hardcode_libdir_flag_spec_F77=
14451 hardcode_libdir_flag_spec_ld_F77=
14452 hardcode_libdir_separator_F77=
14453 hardcode_direct_F77=no
14454 hardcode_minus_L_F77=no
14455 hardcode_shlibpath_var_F77=unsupported
14456 link_all_deplibs_F77=unknown
14457 hardcode_automatic_F77=no
14458 module_cmds_F77=
14459 module_expsym_cmds_F77=
14460 always_export_symbols_F77=no
14461 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14462 # include_expsyms should be a list of space-separated symbols to be *always*
14463 # included in the symbol list
14464 include_expsyms_F77=
14465 # exclude_expsyms can be an extended regexp of symbols to exclude
14466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14468 # as well as any symbol that contains `d'.
14469 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14471 # platforms (ab)use it in PIC code, but their linkers get confused if
14472 # the symbol is explicitly referenced. Since portable code cannot
14473 # rely on this symbol name, it's probably fine to never include it in
14474 # preloaded symbol tables.
14475 extract_expsyms_cmds=
14476 # Just being paranoid about ensuring that cc_basename is set.
14477 for cc_temp in $compiler""; do
14478 case $cc_temp in
14479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14481 \-*) ;;
14482 *) break;;
14483 esac
14484 done
14485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14487 case $host_os in
14488 cygwin* | mingw* | pw32*)
14489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14490 # When not using gcc, we currently assume that we are using
14491 # Microsoft Visual C++.
14492 if test "$GCC" != yes; then
14493 with_gnu_ld=no
14496 interix*)
14497 # we just hope/assume this is gcc and not c89 (= MSVC++)
14498 with_gnu_ld=yes
14500 openbsd*)
14501 with_gnu_ld=no
14503 esac
14505 ld_shlibs_F77=yes
14506 if test "$with_gnu_ld" = yes; then
14507 # If archive_cmds runs LD, not CC, wlarc should be empty
14508 wlarc='${wl}'
14510 # Set some defaults for GNU ld with shared library support. These
14511 # are reset later if shared libraries are not supported. Putting them
14512 # here allows them to be overridden if necessary.
14513 runpath_var=LD_RUN_PATH
14514 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14515 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14516 # ancient GNU ld didn't support --whole-archive et. al.
14517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14518 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14519 else
14520 whole_archive_flag_spec_F77=
14522 supports_anon_versioning=no
14523 case `$LD -v 2>/dev/null` in
14524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14527 *\ 2.11.*) ;; # other 2.11 versions
14528 *) supports_anon_versioning=yes ;;
14529 esac
14531 # See if GNU ld supports shared libraries.
14532 case $host_os in
14533 aix3* | aix4* | aix5*)
14534 # On AIX/PPC, the GNU linker is very broken
14535 if test "$host_cpu" != ia64; then
14536 ld_shlibs_F77=no
14537 cat <<EOF 1>&2
14539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14540 *** to be unable to reliably create shared libraries on AIX.
14541 *** Therefore, libtool is disabling shared libraries support. If you
14542 *** really care for shared libraries, you may want to modify your PATH
14543 *** so that a non-GNU linker is found, and then restart.
14549 amigaos*)
14550 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)'
14551 hardcode_libdir_flag_spec_F77='-L$libdir'
14552 hardcode_minus_L_F77=yes
14554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14555 # that the semantics of dynamic libraries on AmigaOS, at least up
14556 # to version 4, is to share data among multiple programs linked
14557 # with the same dynamic library. Since this doesn't match the
14558 # behavior of shared libraries on other platforms, we can't use
14559 # them.
14560 ld_shlibs_F77=no
14563 beos*)
14564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14565 allow_undefined_flag_F77=unsupported
14566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14567 # support --undefined. This deserves some investigation. FIXME
14568 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14569 else
14570 ld_shlibs_F77=no
14574 cygwin* | mingw* | pw32*)
14575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14576 # as there is no search path for DLLs.
14577 hardcode_libdir_flag_spec_F77='-L$libdir'
14578 allow_undefined_flag_F77=unsupported
14579 always_export_symbols_F77=no
14580 enable_shared_with_static_runtimes_F77=yes
14581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14585 # If the export-symbols file already is a .def file (1st line
14586 # is EXPORTS), use it as is; otherwise, prepend...
14587 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14588 cp $export_symbols $output_objdir/$soname.def;
14589 else
14590 echo EXPORTS > $output_objdir/$soname.def;
14591 cat $export_symbols >> $output_objdir/$soname.def;
14593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14594 else
14595 ld_shlibs_F77=no
14599 interix3*)
14600 hardcode_direct_F77=no
14601 hardcode_shlibpath_var_F77=no
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14603 export_dynamic_flag_spec_F77='${wl}-E'
14604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14605 # Instead, shared libraries are loaded at an image base (0x10000000 by
14606 # default) and relocated if they conflict, which is a slow very memory
14607 # consuming and fragmenting process. To avoid this, we pick a random,
14608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14610 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'
14611 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'
14614 linux*)
14615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616 tmp_addflag=
14617 case $cc_basename,$host_cpu in
14618 pgcc*) # Portland Group C compiler
14619 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'
14620 tmp_addflag=' $pic_flag'
14622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14623 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'
14624 tmp_addflag=' $pic_flag -Mnomain' ;;
14625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14626 tmp_addflag=' -i_dynamic' ;;
14627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14628 tmp_addflag=' -i_dynamic -nofor_main' ;;
14629 ifc* | ifort*) # Intel Fortran compiler
14630 tmp_addflag=' -nofor_main' ;;
14631 esac
14632 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14634 if test $supports_anon_versioning = yes; then
14635 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14637 $echo "local: *; };" >> $output_objdir/$libname.ver~
14638 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14640 else
14641 ld_shlibs_F77=no
14645 netbsd*)
14646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14647 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14648 wlarc=
14649 else
14650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14655 solaris*)
14656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14657 ld_shlibs_F77=no
14658 cat <<EOF 1>&2
14660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14661 *** create shared libraries on Solaris systems. Therefore, libtool
14662 *** is disabling shared libraries support. We urge you to upgrade GNU
14663 *** binutils to release 2.9.1 or newer. Another option is to modify
14664 *** your PATH or compiler configuration so that the native linker is
14665 *** used, and then restart.
14668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14671 else
14672 ld_shlibs_F77=no
14676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14677 case `$LD -v 2>&1` in
14678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14679 ld_shlibs_F77=no
14680 cat <<_LT_EOF 1>&2
14682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14683 *** reliably create shared libraries on SCO systems. Therefore, libtool
14684 *** is disabling shared libraries support. We urge you to upgrade GNU
14685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14686 *** your PATH or compiler configuration so that the native linker is
14687 *** used, and then restart.
14689 _LT_EOF
14692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14693 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14696 else
14697 ld_shlibs_F77=no
14700 esac
14703 sunos4*)
14704 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14705 wlarc=
14706 hardcode_direct_F77=yes
14707 hardcode_shlibpath_var_F77=no
14711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14714 else
14715 ld_shlibs_F77=no
14718 esac
14720 if test "$ld_shlibs_F77" = no; then
14721 runpath_var=
14722 hardcode_libdir_flag_spec_F77=
14723 export_dynamic_flag_spec_F77=
14724 whole_archive_flag_spec_F77=
14726 else
14727 # PORTME fill in a description of your system's linker (not GNU ld)
14728 case $host_os in
14729 aix3*)
14730 allow_undefined_flag_F77=unsupported
14731 always_export_symbols_F77=yes
14732 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'
14733 # Note: this linker hardcodes the directories in LIBPATH if there
14734 # are no directories specified by -L.
14735 hardcode_minus_L_F77=yes
14736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14737 # Neither direct hardcoding nor static linking is supported with a
14738 # broken collect2.
14739 hardcode_direct_F77=unsupported
14743 aix4* | aix5*)
14744 if test "$host_cpu" = ia64; then
14745 # On IA64, the linker does run time linking by default, so we don't
14746 # have to do anything special.
14747 aix_use_runtimelinking=no
14748 exp_sym_flag='-Bexport'
14749 no_entry_flag=""
14750 else
14751 # If we're using GNU nm, then we don't want the "-C" option.
14752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14754 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'
14755 else
14756 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'
14758 aix_use_runtimelinking=no
14760 # Test if we are trying to use run time linking or normal
14761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14762 # need to do runtime linking.
14763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14764 for ld_flag in $LDFLAGS; do
14765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14766 aix_use_runtimelinking=yes
14767 break
14769 done
14771 esac
14773 exp_sym_flag='-bexport'
14774 no_entry_flag='-bnoentry'
14777 # When large executables or shared objects are built, AIX ld can
14778 # have problems creating the table of contents. If linking a library
14779 # or program results in "error TOC overflow" add -mminimal-toc to
14780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14783 archive_cmds_F77=''
14784 hardcode_direct_F77=yes
14785 hardcode_libdir_separator_F77=':'
14786 link_all_deplibs_F77=yes
14788 if test "$GCC" = yes; then
14789 case $host_os in aix4.[012]|aix4.[012].*)
14790 # We only want to do this on AIX 4.2 and lower, the check
14791 # below for broken collect2 doesn't work under 4.3+
14792 collect2name=`${CC} -print-prog-name=collect2`
14793 if test -f "$collect2name" && \
14794 strings "$collect2name" | grep resolve_lib_name >/dev/null
14795 then
14796 # We have reworked collect2
14797 hardcode_direct_F77=yes
14798 else
14799 # We have old collect2
14800 hardcode_direct_F77=unsupported
14801 # It fails to find uninstalled libraries when the uninstalled
14802 # path is not listed in the libpath. Setting hardcode_minus_L
14803 # to unsupported forces relinking
14804 hardcode_minus_L_F77=yes
14805 hardcode_libdir_flag_spec_F77='-L$libdir'
14806 hardcode_libdir_separator_F77=
14809 esac
14810 shared_flag='-shared'
14811 if test "$aix_use_runtimelinking" = yes; then
14812 shared_flag="$shared_flag "'${wl}-G'
14814 else
14815 # not using gcc
14816 if test "$host_cpu" = ia64; then
14817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14818 # chokes on -Wl,-G. The following line is correct:
14819 shared_flag='-G'
14820 else
14821 if test "$aix_use_runtimelinking" = yes; then
14822 shared_flag='${wl}-G'
14823 else
14824 shared_flag='${wl}-bM:SRE'
14829 # It seems that -bexpall does not export symbols beginning with
14830 # underscore (_), so it is better to generate a list of symbols to export.
14831 always_export_symbols_F77=yes
14832 if test "$aix_use_runtimelinking" = yes; then
14833 # Warning - without using the other runtime loading flags (-brtl),
14834 # -berok will link without error, but may produce a broken library.
14835 allow_undefined_flag_F77='-berok'
14836 # Determine the default libpath from the value encoded in an empty executable.
14837 cat >conftest.$ac_ext <<_ACEOF
14838 program main
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (ac_try="$ac_link"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_link") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14879 # Check for a 64-bit object if we didn't find anything.
14880 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14881 }'`; fi
14882 else
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14894 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"
14895 else
14896 if test "$host_cpu" = ia64; then
14897 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14898 allow_undefined_flag_F77="-z nodefs"
14899 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"
14900 else
14901 # Determine the default libpath from the value encoded in an empty executable.
14902 cat >conftest.$ac_ext <<_ACEOF
14903 program main
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (ac_try="$ac_link"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912 esac
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_link") 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest$ac_exeext'
14932 { (case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_try") 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14944 # Check for a 64-bit object if we didn't find anything.
14945 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14946 }'`; fi
14947 else
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14958 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14959 # Warning - without using the other run time loading flags,
14960 # -berok will link without error, but may produce a broken library.
14961 no_undefined_flag_F77=' ${wl}-bernotok'
14962 allow_undefined_flag_F77=' ${wl}-berok'
14963 # Exported symbols can be pulled into shared objects from archives
14964 whole_archive_flag_spec_F77='$convenience'
14965 archive_cmds_need_lc_F77=yes
14966 # This is similar to how AIX traditionally builds its shared libraries.
14967 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'
14972 amigaos*)
14973 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)'
14974 hardcode_libdir_flag_spec_F77='-L$libdir'
14975 hardcode_minus_L_F77=yes
14976 # see comment about different semantics on the GNU ld section
14977 ld_shlibs_F77=no
14980 bsdi[45]*)
14981 export_dynamic_flag_spec_F77=-rdynamic
14984 cygwin* | mingw* | pw32*)
14985 # When not using gcc, we currently assume that we are using
14986 # Microsoft Visual C++.
14987 # hardcode_libdir_flag_spec is actually meaningless, as there is
14988 # no search path for DLLs.
14989 hardcode_libdir_flag_spec_F77=' '
14990 allow_undefined_flag_F77=unsupported
14991 # Tell ltmain to make .lib files, not .a files.
14992 libext=lib
14993 # Tell ltmain to make .dll files, not .so files.
14994 shrext_cmds=".dll"
14995 # FIXME: Setting linknames here is a bad hack.
14996 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14997 # The linker will automatically build a .lib file if we build a DLL.
14998 old_archive_From_new_cmds_F77='true'
14999 # FIXME: Should let the user specify the lib program.
15000 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15001 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15002 enable_shared_with_static_runtimes_F77=yes
15005 darwin* | rhapsody*)
15006 case $host_os in
15007 rhapsody* | darwin1.[012])
15008 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15010 *) # Darwin 1.3 on
15011 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15012 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15013 else
15014 case ${MACOSX_DEPLOYMENT_TARGET} in
15015 10.[012])
15016 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15018 10.*)
15019 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15021 esac
15024 esac
15025 archive_cmds_need_lc_F77=no
15026 hardcode_direct_F77=no
15027 hardcode_automatic_F77=yes
15028 hardcode_shlibpath_var_F77=unsupported
15029 whole_archive_flag_spec_F77=''
15030 link_all_deplibs_F77=yes
15031 if test "$GCC" = yes ; then
15032 output_verbose_link_cmd='echo'
15033 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15034 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15035 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15036 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15037 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}'
15038 else
15039 case $cc_basename in
15040 xlc*)
15041 output_verbose_link_cmd='echo'
15042 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15043 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15045 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15046 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}'
15049 ld_shlibs_F77=no
15051 esac
15055 dgux*)
15056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15057 hardcode_libdir_flag_spec_F77='-L$libdir'
15058 hardcode_shlibpath_var_F77=no
15061 freebsd1*)
15062 ld_shlibs_F77=no
15065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15066 # support. Future versions do this automatically, but an explicit c++rt0.o
15067 # does not break anything, and helps significantly (at the cost of a little
15068 # extra space).
15069 freebsd2.2*)
15070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15071 hardcode_libdir_flag_spec_F77='-R$libdir'
15072 hardcode_direct_F77=yes
15073 hardcode_shlibpath_var_F77=no
15076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15077 freebsd2*)
15078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_direct_F77=yes
15080 hardcode_minus_L_F77=yes
15081 hardcode_shlibpath_var_F77=no
15084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15085 freebsd* | kfreebsd*-gnu | dragonfly*)
15086 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15087 hardcode_libdir_flag_spec_F77='-R$libdir'
15088 hardcode_direct_F77=yes
15089 hardcode_shlibpath_var_F77=no
15092 hpux9*)
15093 if test "$GCC" = yes; then
15094 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'
15095 else
15096 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'
15098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15099 hardcode_libdir_separator_F77=:
15100 hardcode_direct_F77=yes
15102 # hardcode_minus_L: Not really in the search PATH,
15103 # but as the default location of the library.
15104 hardcode_minus_L_F77=yes
15105 export_dynamic_flag_spec_F77='${wl}-E'
15108 hpux10*)
15109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15110 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15111 else
15112 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15114 if test "$with_gnu_ld" = no; then
15115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15116 hardcode_libdir_separator_F77=:
15118 hardcode_direct_F77=yes
15119 export_dynamic_flag_spec_F77='${wl}-E'
15121 # hardcode_minus_L: Not really in the search PATH,
15122 # but as the default location of the library.
15123 hardcode_minus_L_F77=yes
15127 hpux11*)
15128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15129 case $host_cpu in
15130 hppa*64*)
15131 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 ia64*)
15134 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15137 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15139 esac
15140 else
15141 case $host_cpu in
15142 hppa*64*)
15143 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145 ia64*)
15146 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15149 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15151 esac
15153 if test "$with_gnu_ld" = no; then
15154 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15155 hardcode_libdir_separator_F77=:
15157 case $host_cpu in
15158 hppa*64*|ia64*)
15159 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15160 hardcode_direct_F77=no
15161 hardcode_shlibpath_var_F77=no
15164 hardcode_direct_F77=yes
15165 export_dynamic_flag_spec_F77='${wl}-E'
15167 # hardcode_minus_L: Not really in the search PATH,
15168 # but as the default location of the library.
15169 hardcode_minus_L_F77=yes
15171 esac
15175 irix5* | irix6* | nonstopux*)
15176 if test "$GCC" = yes; then
15177 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'
15178 else
15179 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'
15180 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15183 hardcode_libdir_separator_F77=:
15184 link_all_deplibs_F77=yes
15187 netbsd*)
15188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15190 else
15191 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15193 hardcode_libdir_flag_spec_F77='-R$libdir'
15194 hardcode_direct_F77=yes
15195 hardcode_shlibpath_var_F77=no
15198 newsos6)
15199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200 hardcode_direct_F77=yes
15201 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15202 hardcode_libdir_separator_F77=:
15203 hardcode_shlibpath_var_F77=no
15206 openbsd*)
15207 hardcode_direct_F77=yes
15208 hardcode_shlibpath_var_F77=no
15209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15211 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15212 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15213 export_dynamic_flag_spec_F77='${wl}-E'
15214 else
15215 case $host_os in
15216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15217 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218 hardcode_libdir_flag_spec_F77='-R$libdir'
15221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15224 esac
15228 os2*)
15229 hardcode_libdir_flag_spec_F77='-L$libdir'
15230 hardcode_minus_L_F77=yes
15231 allow_undefined_flag_F77=unsupported
15232 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'
15233 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15236 osf3*)
15237 if test "$GCC" = yes; then
15238 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15239 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'
15240 else
15241 allow_undefined_flag_F77=' -expect_unresolved \*'
15242 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'
15244 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15245 hardcode_libdir_separator_F77=:
15248 osf4* | osf5*) # as osf3* with the addition of -msym flag
15249 if test "$GCC" = yes; then
15250 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15251 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'
15252 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15253 else
15254 allow_undefined_flag_F77=' -expect_unresolved \*'
15255 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'
15256 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~
15257 $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'
15259 # Both c and cxx compiler support -rpath directly
15260 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15262 hardcode_libdir_separator_F77=:
15265 solaris*)
15266 no_undefined_flag_F77=' -z text'
15267 if test "$GCC" = yes; then
15268 wlarc='${wl}'
15269 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15271 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15272 else
15273 wlarc=''
15274 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15275 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15278 hardcode_libdir_flag_spec_F77='-R$libdir'
15279 hardcode_shlibpath_var_F77=no
15280 case $host_os in
15281 solaris2.[0-5] | solaris2.[0-5].*) ;;
15283 # The compiler driver will combine linker options so we
15284 # cannot just pass the convience library names through
15285 # without $wl, iff we do not link with $LD.
15286 # Luckily, gcc supports the same syntax we need for Sun Studio.
15287 # Supported since Solaris 2.6 (maybe 2.5.1?)
15288 case $wlarc in
15290 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15292 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15293 esac ;;
15294 esac
15295 link_all_deplibs_F77=yes
15298 sunos4*)
15299 if test "x$host_vendor" = xsequent; then
15300 # Use $CC to link under sequent, because it throws in some extra .o
15301 # files that make .init and .fini sections work.
15302 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15303 else
15304 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec_F77='-L$libdir'
15307 hardcode_direct_F77=yes
15308 hardcode_minus_L_F77=yes
15309 hardcode_shlibpath_var_F77=no
15312 sysv4)
15313 case $host_vendor in
15314 sni)
15315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316 hardcode_direct_F77=yes # is this really true???
15318 siemens)
15319 ## LD is ld it makes a PLAMLIB
15320 ## CC just makes a GrossModule.
15321 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15322 reload_cmds_F77='$CC -r -o $output$reload_objs'
15323 hardcode_direct_F77=no
15325 motorola)
15326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15329 esac
15330 runpath_var='LD_RUN_PATH'
15331 hardcode_shlibpath_var_F77=no
15334 sysv4.3*)
15335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15336 hardcode_shlibpath_var_F77=no
15337 export_dynamic_flag_spec_F77='-Bexport'
15340 sysv4*MP*)
15341 if test -d /usr/nec; then
15342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_shlibpath_var_F77=no
15344 runpath_var=LD_RUN_PATH
15345 hardcode_runpath_var=yes
15346 ld_shlibs_F77=yes
15350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15351 no_undefined_flag_F77='${wl}-z,text'
15352 archive_cmds_need_lc_F77=no
15353 hardcode_shlibpath_var_F77=no
15354 runpath_var='LD_RUN_PATH'
15356 if test "$GCC" = yes; then
15357 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15359 else
15360 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15365 sysv5* | sco3.2v5* | sco5v6*)
15366 # Note: We can NOT use -z defs as we might desire, because we do not
15367 # link with -lc, and that would cause any symbols used from libc to
15368 # always be unresolved, which means just about no library would
15369 # ever link correctly. If we're not using GNU ld we use -z text
15370 # though, which does catch some bad symbols but isn't as heavy-handed
15371 # as -z defs.
15372 no_undefined_flag_F77='${wl}-z,text'
15373 allow_undefined_flag_F77='${wl}-z,nodefs'
15374 archive_cmds_need_lc_F77=no
15375 hardcode_shlibpath_var_F77=no
15376 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15377 hardcode_libdir_separator_F77=':'
15378 link_all_deplibs_F77=yes
15379 export_dynamic_flag_spec_F77='${wl}-Bexport'
15380 runpath_var='LD_RUN_PATH'
15382 if test "$GCC" = yes; then
15383 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15384 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 else
15386 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15387 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 uts4*)
15392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15393 hardcode_libdir_flag_spec_F77='-L$libdir'
15394 hardcode_shlibpath_var_F77=no
15398 ld_shlibs_F77=no
15400 esac
15403 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15404 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15405 test "$ld_shlibs_F77" = no && can_build_shared=no
15408 # Do we need to explicitly link libc?
15410 case "x$archive_cmds_need_lc_F77" in
15411 x|xyes)
15412 # Assume -lc should be added
15413 archive_cmds_need_lc_F77=yes
15415 if test "$enable_shared" = yes && test "$GCC" = yes; then
15416 case $archive_cmds_F77 in
15417 *'~'*)
15418 # FIXME: we may have to deal with multi-command sequences.
15420 '$CC '*)
15421 # Test whether the compiler implicitly links with -lc since on some
15422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15423 # to ld, don't add -lc before -lgcc.
15424 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15426 $rm conftest*
15427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430 (eval $ac_compile) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } 2>conftest.err; then
15434 soname=conftest
15435 lib=conftest
15436 libobjs=conftest.$ac_objext
15437 deplibs=
15438 wl=$lt_prog_compiler_wl_F77
15439 pic_flag=$lt_prog_compiler_pic_F77
15440 compiler_flags=-v
15441 linker_flags=-v
15442 verstring=
15443 output_objdir=.
15444 libname=conftest
15445 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15446 allow_undefined_flag_F77=
15447 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15448 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }
15452 then
15453 archive_cmds_need_lc_F77=no
15454 else
15455 archive_cmds_need_lc_F77=yes
15457 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15458 else
15459 cat conftest.err 1>&5
15461 $rm conftest*
15462 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15463 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15465 esac
15468 esac
15470 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15472 library_names_spec=
15473 libname_spec='lib$name'
15474 soname_spec=
15475 shrext_cmds=".so"
15476 postinstall_cmds=
15477 postuninstall_cmds=
15478 finish_cmds=
15479 finish_eval=
15480 shlibpath_var=
15481 shlibpath_overrides_runpath=unknown
15482 version_type=none
15483 dynamic_linker="$host_os ld.so"
15484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15485 if test "$GCC" = yes; then
15486 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15487 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15488 # if the path contains ";" then we assume it to be the separator
15489 # otherwise default to the standard path separator (i.e. ":") - it is
15490 # assumed that no part of a normal pathname contains ";" but that should
15491 # okay in the real world where ";" in dirpaths is itself problematic.
15492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15493 else
15494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15496 else
15497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15499 need_lib_prefix=unknown
15500 hardcode_into_libs=no
15502 # when you set need_version to no, make sure it does not cause -set_version
15503 # flags to be left without arguments
15504 need_version=unknown
15506 case $host_os in
15507 aix3*)
15508 version_type=linux
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15510 shlibpath_var=LIBPATH
15512 # AIX 3 has no versioning support, so we append a major version to the name.
15513 soname_spec='${libname}${release}${shared_ext}$major'
15516 aix4* | aix5*)
15517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
15520 hardcode_into_libs=yes
15521 if test "$host_cpu" = ia64; then
15522 # AIX 5 supports IA64
15523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 else
15526 # With GCC up to 2.95.x, collect2 would create an import file
15527 # for dependence libraries. The import file would start with
15528 # the line `#! .'. This would cause the generated library to
15529 # depend on `.', always an invalid library. This was fixed in
15530 # development snapshots of GCC prior to 3.0.
15531 case $host_os in
15532 aix4 | aix4.[01] | aix4.[01].*)
15533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15534 echo ' yes '
15535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15537 else
15538 can_build_shared=no
15541 esac
15542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15543 # soname into executable. Probably we can add versioning support to
15544 # collect2, so additional links can be useful in future.
15545 if test "$aix_use_runtimelinking" = yes; then
15546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15547 # instead of lib<name>.a to let people know that these are not
15548 # typical AIX shared libraries.
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 else
15551 # We preserve .a as extension for shared libraries through AIX4.2
15552 # and later when we are not doing run time linking.
15553 library_names_spec='${libname}${release}.a $libname.a'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LIBPATH
15560 amigaos*)
15561 library_names_spec='$libname.ixlibrary $libname.a'
15562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15563 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'
15566 beos*)
15567 library_names_spec='${libname}${shared_ext}'
15568 dynamic_linker="$host_os ld.so"
15569 shlibpath_var=LIBRARY_PATH
15572 bsdi[45]*)
15573 version_type=linux
15574 need_version=no
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15581 # the default ld.so.conf also contains /usr/contrib/lib and
15582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15583 # libtool to hard-code these into programs
15586 cygwin* | mingw* | pw32*)
15587 version_type=windows
15588 shrext_cmds=".dll"
15589 need_version=no
15590 need_lib_prefix=no
15592 case $GCC,$host_os in
15593 yes,cygwin* | yes,mingw* | yes,pw32*)
15594 library_names_spec='$libname.dll.a'
15595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15596 postinstall_cmds='base_file=`basename \${file}`~
15597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15598 dldir=$destdir/`dirname \$dlpath`~
15599 test -d \$dldir || mkdir -p \$dldir~
15600 $install_prog $dir/$dlname \$dldir/$dlname~
15601 chmod a+x \$dldir/$dlname'
15602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15603 dlpath=$dir/\$dldll~
15604 $rm \$dlpath'
15605 shlibpath_overrides_runpath=yes
15607 case $host_os in
15608 cygwin*)
15609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15613 mingw*)
15614 # MinGW DLLs use traditional 'lib' prefix
15615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15618 # It is most probably a Windows format PATH printed by
15619 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15620 # path with ; separators, and with drive letters. We can handle the
15621 # drive letters (cygwin fileutils understands them), so leave them,
15622 # especially as we might pass files found there to a mingw objdump,
15623 # which wouldn't understand a cygwinified path. Ahh.
15624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15625 else
15626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15629 pw32*)
15630 # pw32 DLLs use 'pw' prefix rather than 'lib'
15631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15633 esac
15637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15639 esac
15640 dynamic_linker='Win32 ld.exe'
15641 # FIXME: first we should search . and the directory the executable is in
15642 shlibpath_var=PATH
15645 darwin* | rhapsody*)
15646 dynamic_linker="$host_os dyld"
15647 version_type=darwin
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15651 soname_spec='${libname}${release}${major}$shared_ext'
15652 shlibpath_overrides_runpath=yes
15653 shlibpath_var=DYLD_LIBRARY_PATH
15654 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15656 if test "$GCC" = yes; then
15657 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15658 else
15659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15664 dgux*)
15665 version_type=linux
15666 need_lib_prefix=no
15667 need_version=no
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LD_LIBRARY_PATH
15673 freebsd1*)
15674 dynamic_linker=no
15677 kfreebsd*-gnu)
15678 version_type=linux
15679 need_lib_prefix=no
15680 need_version=no
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15686 dynamic_linker='GNU ld.so'
15689 freebsd* | dragonfly*)
15690 # DragonFly does not have aout. When/if they implement a new
15691 # versioning mechanism, adjust this.
15692 if test -x /usr/bin/objformat; then
15693 objformat=`/usr/bin/objformat`
15694 else
15695 case $host_os in
15696 freebsd[123]*) objformat=aout ;;
15697 *) objformat=elf ;;
15698 esac
15700 version_type=freebsd-$objformat
15701 case $version_type in
15702 freebsd-elf*)
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15704 need_version=no
15705 need_lib_prefix=no
15707 freebsd-*)
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15709 need_version=yes
15711 esac
15712 shlibpath_var=LD_LIBRARY_PATH
15713 case $host_os in
15714 freebsd2*)
15715 shlibpath_overrides_runpath=yes
15717 freebsd3.[01]* | freebsdelf3.[01]*)
15718 shlibpath_overrides_runpath=yes
15719 hardcode_into_libs=yes
15721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15723 shlibpath_overrides_runpath=no
15724 hardcode_into_libs=yes
15726 freebsd*) # from 4.6 on
15727 shlibpath_overrides_runpath=yes
15728 hardcode_into_libs=yes
15730 esac
15733 gnu*)
15734 version_type=linux
15735 need_lib_prefix=no
15736 need_version=no
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 hardcode_into_libs=yes
15743 hpux9* | hpux10* | hpux11*)
15744 # Give a soname corresponding to the major version so that dld.sl refuses to
15745 # link against other versions.
15746 version_type=sunos
15747 need_lib_prefix=no
15748 need_version=no
15749 case $host_cpu in
15750 ia64*)
15751 shrext_cmds='.so'
15752 hardcode_into_libs=yes
15753 dynamic_linker="$host_os dld.so"
15754 shlibpath_var=LD_LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 if test "X$HPUX_IA64_MODE" = X32; then
15759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15760 else
15761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15765 hppa*64*)
15766 shrext_cmds='.sl'
15767 hardcode_into_libs=yes
15768 dynamic_linker="$host_os dld.sl"
15769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15777 shrext_cmds='.sl'
15778 dynamic_linker="$host_os dld.sl"
15779 shlibpath_var=SHLIB_PATH
15780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15784 esac
15785 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15786 postinstall_cmds='chmod 555 $lib'
15789 interix3*)
15790 version_type=linux
15791 need_lib_prefix=no
15792 need_version=no
15793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15794 soname_spec='${libname}${release}${shared_ext}$major'
15795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 shlibpath_overrides_runpath=no
15798 hardcode_into_libs=yes
15801 irix5* | irix6* | nonstopux*)
15802 case $host_os in
15803 nonstopux*) version_type=nonstopux ;;
15805 if test "$lt_cv_prog_gnu_ld" = yes; then
15806 version_type=linux
15807 else
15808 version_type=irix
15809 fi ;;
15810 esac
15811 need_lib_prefix=no
15812 need_version=no
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15815 case $host_os in
15816 irix5* | nonstopux*)
15817 libsuff= shlibsuff=
15820 case $LD in # libtool.m4 will add one of these switches to LD
15821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15822 libsuff= shlibsuff= libmagic=32-bit;;
15823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15824 libsuff=32 shlibsuff=N32 libmagic=N32;;
15825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15827 *) libsuff= shlibsuff= libmagic=never-match;;
15828 esac
15830 esac
15831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15832 shlibpath_overrides_runpath=no
15833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15835 hardcode_into_libs=yes
15838 # No shared lib support for Linux oldld, aout, or coff.
15839 linux*oldld* | linux*aout* | linux*coff*)
15840 dynamic_linker=no
15843 # This must be Linux ELF.
15844 linux*)
15845 version_type=linux
15846 need_lib_prefix=no
15847 need_version=no
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849 soname_spec='${libname}${release}${shared_ext}$major'
15850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=no
15853 # This implies no fast_install, which is unacceptable.
15854 # Some rework will be needed to allow for fast_install
15855 # before this can be enabled.
15856 hardcode_into_libs=yes
15858 # Append ld.so.conf contents to the search path
15859 if test -f /etc/ld.so.conf; then
15860 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15864 # We used to test for /lib/ld.so.1 and disable shared libraries on
15865 # powerpc, because MkLinux only supported shared libraries with the
15866 # GNU dynamic linker. Since this was broken with cross compilers,
15867 # most powerpc-linux boxes support dynamic linking these days and
15868 # people can always --disable-shared, the test was removed, and we
15869 # assume the GNU/Linux dynamic linker is in use.
15870 dynamic_linker='GNU/Linux ld.so'
15873 knetbsd*-gnu)
15874 version_type=linux
15875 need_lib_prefix=no
15876 need_version=no
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 shlibpath_overrides_runpath=no
15881 hardcode_into_libs=yes
15882 dynamic_linker='GNU ld.so'
15885 netbsd*)
15886 version_type=sunos
15887 need_lib_prefix=no
15888 need_version=no
15889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15892 dynamic_linker='NetBSD (a.out) ld.so'
15893 else
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 dynamic_linker='NetBSD ld.elf_so'
15898 shlibpath_var=LD_LIBRARY_PATH
15899 shlibpath_overrides_runpath=yes
15900 hardcode_into_libs=yes
15903 newsos6)
15904 version_type=linux
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 shlibpath_var=LD_LIBRARY_PATH
15907 shlibpath_overrides_runpath=yes
15910 nto-qnx*)
15911 version_type=linux
15912 need_lib_prefix=no
15913 need_version=no
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15920 openbsd*)
15921 version_type=sunos
15922 sys_lib_dlsearch_path_spec="/usr/lib"
15923 need_lib_prefix=no
15924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15925 case $host_os in
15926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15927 *) need_version=no ;;
15928 esac
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15933 case $host_os in
15934 openbsd2.[89] | openbsd2.[89].*)
15935 shlibpath_overrides_runpath=no
15938 shlibpath_overrides_runpath=yes
15940 esac
15941 else
15942 shlibpath_overrides_runpath=yes
15946 os2*)
15947 libname_spec='$name'
15948 shrext_cmds=".dll"
15949 need_lib_prefix=no
15950 library_names_spec='$libname${shared_ext} $libname.a'
15951 dynamic_linker='OS/2 ld.exe'
15952 shlibpath_var=LIBPATH
15955 osf3* | osf4* | osf5*)
15956 version_type=osf
15957 need_lib_prefix=no
15958 need_version=no
15959 soname_spec='${libname}${release}${shared_ext}$major'
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 shlibpath_var=LD_LIBRARY_PATH
15962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15966 solaris*)
15967 version_type=linux
15968 need_lib_prefix=no
15969 need_version=no
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 # ldd complains unless libraries are executable
15976 postinstall_cmds='chmod +x $lib'
15979 sunos4*)
15980 version_type=sunos
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath=yes
15985 if test "$with_gnu_ld" = yes; then
15986 need_lib_prefix=no
15988 need_version=yes
15991 sysv4 | sysv4.3*)
15992 version_type=linux
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 case $host_vendor in
15997 sni)
15998 shlibpath_overrides_runpath=no
15999 need_lib_prefix=no
16000 export_dynamic_flag_spec='${wl}-Blargedynsym'
16001 runpath_var=LD_RUN_PATH
16003 siemens)
16004 need_lib_prefix=no
16006 motorola)
16007 need_lib_prefix=no
16008 need_version=no
16009 shlibpath_overrides_runpath=no
16010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16012 esac
16015 sysv4*MP*)
16016 if test -d /usr/nec ;then
16017 version_type=linux
16018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16019 soname_spec='$libname${shared_ext}.$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16025 version_type=freebsd-elf
16026 need_lib_prefix=no
16027 need_version=no
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 hardcode_into_libs=yes
16032 if test "$with_gnu_ld" = yes; then
16033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16034 shlibpath_overrides_runpath=no
16035 else
16036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16037 shlibpath_overrides_runpath=yes
16038 case $host_os in
16039 sco3.2v5*)
16040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16042 esac
16044 sys_lib_dlsearch_path_spec='/usr/lib'
16047 uts4*)
16048 version_type=linux
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16055 dynamic_linker=no
16057 esac
16058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16059 echo "${ECHO_T}$dynamic_linker" >&6; }
16060 test "$dynamic_linker" = no && can_build_shared=no
16062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16063 if test "$GCC" = yes; then
16064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16067 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16069 hardcode_action_F77=
16070 if test -n "$hardcode_libdir_flag_spec_F77" || \
16071 test -n "$runpath_var_F77" || \
16072 test "X$hardcode_automatic_F77" = "Xyes" ; then
16074 # We can hardcode non-existant directories.
16075 if test "$hardcode_direct_F77" != no &&
16076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16077 # have to relink, otherwise we might link with an installed library
16078 # when we should be linking with a yet-to-be-installed one
16079 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16080 test "$hardcode_minus_L_F77" != no; then
16081 # Linking always hardcodes the temporary library directory.
16082 hardcode_action_F77=relink
16083 else
16084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16085 hardcode_action_F77=immediate
16087 else
16088 # We cannot hardcode anything, or else we can only hardcode existing
16089 # directories.
16090 hardcode_action_F77=unsupported
16092 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16093 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16095 if test "$hardcode_action_F77" = relink; then
16096 # Fast installation is not supported
16097 enable_fast_install=no
16098 elif test "$shlibpath_overrides_runpath" = yes ||
16099 test "$enable_shared" = no; then
16100 # Fast installation is not necessary
16101 enable_fast_install=needless
16105 # The else clause should only fire when bootstrapping the
16106 # libtool distribution, otherwise you forgot to ship ltmain.sh
16107 # with your package, and you will get complaints that there are
16108 # no rules to generate ltmain.sh.
16109 if test -f "$ltmain"; then
16110 # See if we are running on zsh, and set the options which allow our commands through
16111 # without removal of \ escapes.
16112 if test -n "${ZSH_VERSION+set}" ; then
16113 setopt NO_GLOB_SUBST
16115 # Now quote all the things that may contain metacharacters while being
16116 # careful not to overquote the AC_SUBSTed values. We take copies of the
16117 # variables and quote the copies for generation of the libtool script.
16118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16119 SED SHELL STRIP \
16120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16122 deplibs_check_method reload_flag reload_cmds need_locks \
16123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16124 lt_cv_sys_global_symbol_to_c_name_address \
16125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16126 old_postinstall_cmds old_postuninstall_cmds \
16127 compiler_F77 \
16128 CC_F77 \
16129 LD_F77 \
16130 lt_prog_compiler_wl_F77 \
16131 lt_prog_compiler_pic_F77 \
16132 lt_prog_compiler_static_F77 \
16133 lt_prog_compiler_no_builtin_flag_F77 \
16134 export_dynamic_flag_spec_F77 \
16135 thread_safe_flag_spec_F77 \
16136 whole_archive_flag_spec_F77 \
16137 enable_shared_with_static_runtimes_F77 \
16138 old_archive_cmds_F77 \
16139 old_archive_from_new_cmds_F77 \
16140 predep_objects_F77 \
16141 postdep_objects_F77 \
16142 predeps_F77 \
16143 postdeps_F77 \
16144 compiler_lib_search_path_F77 \
16145 archive_cmds_F77 \
16146 archive_expsym_cmds_F77 \
16147 postinstall_cmds_F77 \
16148 postuninstall_cmds_F77 \
16149 old_archive_from_expsyms_cmds_F77 \
16150 allow_undefined_flag_F77 \
16151 no_undefined_flag_F77 \
16152 export_symbols_cmds_F77 \
16153 hardcode_libdir_flag_spec_F77 \
16154 hardcode_libdir_flag_spec_ld_F77 \
16155 hardcode_libdir_separator_F77 \
16156 hardcode_automatic_F77 \
16157 module_cmds_F77 \
16158 module_expsym_cmds_F77 \
16159 lt_cv_prog_compiler_c_o_F77 \
16160 exclude_expsyms_F77 \
16161 include_expsyms_F77; do
16163 case $var in
16164 old_archive_cmds_F77 | \
16165 old_archive_from_new_cmds_F77 | \
16166 archive_cmds_F77 | \
16167 archive_expsym_cmds_F77 | \
16168 module_cmds_F77 | \
16169 module_expsym_cmds_F77 | \
16170 old_archive_from_expsyms_cmds_F77 | \
16171 export_symbols_cmds_F77 | \
16172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16173 postinstall_cmds | postuninstall_cmds | \
16174 old_postinstall_cmds | old_postuninstall_cmds | \
16175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16176 # Double-quote double-evaled strings.
16177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16182 esac
16183 done
16185 case $lt_echo in
16186 *'\$0 --fallback-echo"')
16187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16189 esac
16191 cfgfile="$ofile"
16193 cat <<__EOF__ >> "$cfgfile"
16194 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16198 # Shell to use when invoking shell scripts.
16199 SHELL=$lt_SHELL
16201 # Whether or not to build shared libraries.
16202 build_libtool_libs=$enable_shared
16204 # Whether or not to build static libraries.
16205 build_old_libs=$enable_static
16207 # Whether or not to add -lc for building shared libraries.
16208 build_libtool_need_lc=$archive_cmds_need_lc_F77
16210 # Whether or not to disallow shared libs when runtime libs are static
16211 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16213 # Whether or not to optimize for fast installation.
16214 fast_install=$enable_fast_install
16216 # The host system.
16217 host_alias=$host_alias
16218 host=$host
16219 host_os=$host_os
16221 # The build system.
16222 build_alias=$build_alias
16223 build=$build
16224 build_os=$build_os
16226 # An echo program that does not interpret backslashes.
16227 echo=$lt_echo
16229 # The archiver.
16230 AR=$lt_AR
16231 AR_FLAGS=$lt_AR_FLAGS
16233 # A C compiler.
16234 LTCC=$lt_LTCC
16236 # LTCC compiler flags.
16237 LTCFLAGS=$lt_LTCFLAGS
16239 # A language-specific compiler.
16240 CC=$lt_compiler_F77
16242 # Is the compiler the GNU C compiler?
16243 with_gcc=$GCC_F77
16245 # An ERE matcher.
16246 EGREP=$lt_EGREP
16248 # The linker used to build libraries.
16249 LD=$lt_LD_F77
16251 # Whether we need hard or soft links.
16252 LN_S=$lt_LN_S
16254 # A BSD-compatible nm program.
16255 NM=$lt_NM
16257 # A symbol stripping program
16258 STRIP=$lt_STRIP
16260 # Used to examine libraries when file_magic_cmd begins "file"
16261 MAGIC_CMD=$MAGIC_CMD
16263 # Used on cygwin: DLL creation program.
16264 DLLTOOL="$DLLTOOL"
16266 # Used on cygwin: object dumper.
16267 OBJDUMP="$OBJDUMP"
16269 # Used on cygwin: assembler.
16270 AS="$AS"
16272 # The name of the directory that contains temporary libtool files.
16273 objdir=$objdir
16275 # How to create reloadable object files.
16276 reload_flag=$lt_reload_flag
16277 reload_cmds=$lt_reload_cmds
16279 # How to pass a linker flag through the compiler.
16280 wl=$lt_lt_prog_compiler_wl_F77
16282 # Object file suffix (normally "o").
16283 objext="$ac_objext"
16285 # Old archive suffix (normally "a").
16286 libext="$libext"
16288 # Shared library suffix (normally ".so").
16289 shrext_cmds='$shrext_cmds'
16291 # Executable file suffix (normally "").
16292 exeext="$exeext"
16294 # Additional compiler flags for building library objects.
16295 pic_flag=$lt_lt_prog_compiler_pic_F77
16296 pic_mode=$pic_mode
16298 # What is the maximum length of a command?
16299 max_cmd_len=$lt_cv_sys_max_cmd_len
16301 # Does compiler simultaneously support -c and -o options?
16302 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16304 # Must we lock files when doing compilation?
16305 need_locks=$lt_need_locks
16307 # Do we need the lib prefix for modules?
16308 need_lib_prefix=$need_lib_prefix
16310 # Do we need a version for libraries?
16311 need_version=$need_version
16313 # Whether dlopen is supported.
16314 dlopen_support=$enable_dlopen
16316 # Whether dlopen of programs is supported.
16317 dlopen_self=$enable_dlopen_self
16319 # Whether dlopen of statically linked programs is supported.
16320 dlopen_self_static=$enable_dlopen_self_static
16322 # Compiler flag to prevent dynamic linking.
16323 link_static_flag=$lt_lt_prog_compiler_static_F77
16325 # Compiler flag to turn off builtin functions.
16326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16328 # Compiler flag to allow reflexive dlopens.
16329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16331 # Compiler flag to generate shared objects directly from archives.
16332 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16334 # Compiler flag to generate thread-safe objects.
16335 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16337 # Library versioning type.
16338 version_type=$version_type
16340 # Format of library name prefix.
16341 libname_spec=$lt_libname_spec
16343 # List of archive names. First name is the real one, the rest are links.
16344 # The last name is the one that the linker finds with -lNAME.
16345 library_names_spec=$lt_library_names_spec
16347 # The coded name of the library, if different from the real name.
16348 soname_spec=$lt_soname_spec
16350 # Commands used to build and install an old-style archive.
16351 RANLIB=$lt_RANLIB
16352 old_archive_cmds=$lt_old_archive_cmds_F77
16353 old_postinstall_cmds=$lt_old_postinstall_cmds
16354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16356 # Create an old-style archive from a shared archive.
16357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16359 # Create a temporary old-style archive to link instead of a shared archive.
16360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16362 # Commands used to build and install a shared archive.
16363 archive_cmds=$lt_archive_cmds_F77
16364 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16365 postinstall_cmds=$lt_postinstall_cmds
16366 postuninstall_cmds=$lt_postuninstall_cmds
16368 # Commands used to build a loadable module (assumed same as above if empty)
16369 module_cmds=$lt_module_cmds_F77
16370 module_expsym_cmds=$lt_module_expsym_cmds_F77
16372 # Commands to strip libraries.
16373 old_striplib=$lt_old_striplib
16374 striplib=$lt_striplib
16376 # Dependencies to place before the objects being linked to create a
16377 # shared library.
16378 predep_objects=$lt_predep_objects_F77
16380 # Dependencies to place after the objects being linked to create a
16381 # shared library.
16382 postdep_objects=$lt_postdep_objects_F77
16384 # Dependencies to place before the objects being linked to create a
16385 # shared library.
16386 predeps=$lt_predeps_F77
16388 # Dependencies to place after the objects being linked to create a
16389 # shared library.
16390 postdeps=$lt_postdeps_F77
16392 # The library search path used internally by the compiler when linking
16393 # a shared library.
16394 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16396 # Method to check whether dependent libraries are shared objects.
16397 deplibs_check_method=$lt_deplibs_check_method
16399 # Command to use when deplibs_check_method == file_magic.
16400 file_magic_cmd=$lt_file_magic_cmd
16402 # Flag that allows shared libraries with undefined symbols to be built.
16403 allow_undefined_flag=$lt_allow_undefined_flag_F77
16405 # Flag that forces no undefined symbols.
16406 no_undefined_flag=$lt_no_undefined_flag_F77
16408 # Commands used to finish a libtool library installation in a directory.
16409 finish_cmds=$lt_finish_cmds
16411 # Same as above, but a single script fragment to be evaled but not shown.
16412 finish_eval=$lt_finish_eval
16414 # Take the output of nm and produce a listing of raw symbols and C names.
16415 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16417 # Transform the output of nm in a proper C declaration
16418 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16420 # Transform the output of nm in a C name address pair
16421 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16423 # This is the shared library runtime path variable.
16424 runpath_var=$runpath_var
16426 # This is the shared library path variable.
16427 shlibpath_var=$shlibpath_var
16429 # Is shlibpath searched before the hard-coded library search path?
16430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16432 # How to hardcode a shared library path into an executable.
16433 hardcode_action=$hardcode_action_F77
16435 # Whether we should hardcode library paths into libraries.
16436 hardcode_into_libs=$hardcode_into_libs
16438 # Flag to hardcode \$libdir into a binary during linking.
16439 # This must work even if \$libdir does not exist.
16440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16442 # If ld is used when linking, flag to hardcode \$libdir into
16443 # a binary during linking. This must work even if \$libdir does
16444 # not exist.
16445 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16447 # Whether we need a single -rpath flag with a separated argument.
16448 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16450 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16451 # resulting binary.
16452 hardcode_direct=$hardcode_direct_F77
16454 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16455 # resulting binary.
16456 hardcode_minus_L=$hardcode_minus_L_F77
16458 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16459 # the resulting binary.
16460 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16462 # Set to yes if building a shared library automatically hardcodes DIR into the library
16463 # and all subsequent libraries and executables linked against it.
16464 hardcode_automatic=$hardcode_automatic_F77
16466 # Variables whose values should be saved in libtool wrapper scripts and
16467 # restored at relink time.
16468 variables_saved_for_relink="$variables_saved_for_relink"
16470 # Whether libtool must link a program against all its dependency libraries.
16471 link_all_deplibs=$link_all_deplibs_F77
16473 # Compile-time system search path for libraries
16474 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16476 # Run-time system search path for libraries
16477 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16479 # Fix the shell variable \$srcfile for the compiler.
16480 fix_srcfile_path="$fix_srcfile_path_F77"
16482 # Set to yes if exported symbols are required.
16483 always_export_symbols=$always_export_symbols_F77
16485 # The commands to list exported symbols.
16486 export_symbols_cmds=$lt_export_symbols_cmds_F77
16488 # The commands to extract the exported symbol list from a shared archive.
16489 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16491 # Symbols that should not be listed in the preloaded symbols.
16492 exclude_expsyms=$lt_exclude_expsyms_F77
16494 # Symbols that must always be exported.
16495 include_expsyms=$lt_include_expsyms_F77
16497 # ### END LIBTOOL TAG CONFIG: $tagname
16499 __EOF__
16502 else
16503 # If there is no Makefile yet, we rely on a make rule to execute
16504 # `config.status --recheck' to rerun these tests and create the
16505 # libtool script then.
16506 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16507 if test -f "$ltmain_in"; then
16508 test -f Makefile && make "$ltmain"
16513 ac_ext=cpp
16514 ac_cpp='$CXXCPP $CPPFLAGS'
16515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16519 CC="$lt_save_CC"
16521 else
16522 tagname=""
16526 GCJ)
16527 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16530 # Source file extension for Java test sources.
16531 ac_ext=java
16533 # Object file extension for compiled Java test sources.
16534 objext=o
16535 objext_GCJ=$objext
16537 # Code to be used in simple compile tests
16538 lt_simple_compile_test_code="class foo {}\n"
16540 # Code to be used in simple link tests
16541 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16545 # If no C compiler was specified, use CC.
16546 LTCC=${LTCC-"$CC"}
16548 # If no C compiler flags were specified, use CFLAGS.
16549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16551 # Allow CC to be a program name with arguments.
16552 compiler=$CC
16555 # save warnings/boilerplate of simple test code
16556 ac_outfile=conftest.$ac_objext
16557 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16559 _lt_compiler_boilerplate=`cat conftest.err`
16560 $rm conftest*
16562 ac_outfile=conftest.$ac_objext
16563 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16565 _lt_linker_boilerplate=`cat conftest.err`
16566 $rm conftest*
16569 # Allow CC to be a program name with arguments.
16570 lt_save_CC="$CC"
16571 CC=${GCJ-"gcj"}
16572 compiler=$CC
16573 compiler_GCJ=$CC
16574 for cc_temp in $compiler""; do
16575 case $cc_temp in
16576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16578 \-*) ;;
16579 *) break;;
16580 esac
16581 done
16582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16585 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16586 archive_cmds_need_lc_GCJ=no
16588 old_archive_cmds_GCJ=$old_archive_cmds
16591 lt_prog_compiler_no_builtin_flag_GCJ=
16593 if test "$GCC" = yes; then
16594 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16597 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16598 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16599 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602 lt_cv_prog_compiler_rtti_exceptions=no
16603 ac_outfile=conftest.$ac_objext
16604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16605 lt_compiler_flag="-fno-rtti -fno-exceptions"
16606 # Insert the option either (1) after the last *FLAGS variable, or
16607 # (2) before a word containing "conftest.", or (3) at the end.
16608 # Note that $ac_compile itself does not contain backslashes and begins
16609 # with a dollar sign (not a hyphen), so the echo should work correctly.
16610 # The option is referenced via a variable to avoid confusing sed.
16611 lt_compile=`echo "$ac_compile" | $SED \
16612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16614 -e 's:$: $lt_compiler_flag:'`
16615 (eval echo "\"\$as_me:16615: $lt_compile\"" >&5)
16616 (eval "$lt_compile" 2>conftest.err)
16617 ac_status=$?
16618 cat conftest.err >&5
16619 echo "$as_me:16619: \$? = $ac_status" >&5
16620 if (exit $ac_status) && test -s "$ac_outfile"; then
16621 # The compiler can only warn and ignore the option if not recognized
16622 # So say no if there are warnings other than the usual output.
16623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16626 lt_cv_prog_compiler_rtti_exceptions=yes
16629 $rm conftest*
16632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16633 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16635 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16636 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16637 else
16643 lt_prog_compiler_wl_GCJ=
16644 lt_prog_compiler_pic_GCJ=
16645 lt_prog_compiler_static_GCJ=
16647 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16650 if test "$GCC" = yes; then
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 lt_prog_compiler_static_GCJ='-static'
16654 case $host_os in
16655 aix*)
16656 # All AIX code is PIC.
16657 if test "$host_cpu" = ia64; then
16658 # AIX 5 now supports IA64 processor
16659 lt_prog_compiler_static_GCJ='-Bstatic'
16663 amigaos*)
16664 # FIXME: we need at least 68020 code to build shared libraries, but
16665 # adding the `-m68020' flag to GCC prevents building anything better,
16666 # like `-m68040'.
16667 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16671 # PIC is the default for these OSes.
16674 mingw* | pw32* | os2*)
16675 # This hack is so that the source file can tell whether it is being
16676 # built for inclusion in a dll (and should export symbols for example).
16677 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16680 darwin* | rhapsody*)
16681 # PIC is the default on this platform
16682 # Common symbols not allowed in MH_DYLIB files
16683 lt_prog_compiler_pic_GCJ='-fno-common'
16686 interix3*)
16687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16688 # Instead, we relocate shared libraries at runtime.
16691 msdosdjgpp*)
16692 # Just because we use GCC doesn't mean we suddenly get shared libraries
16693 # on systems that don't support them.
16694 lt_prog_compiler_can_build_shared_GCJ=no
16695 enable_shared=no
16698 sysv4*MP*)
16699 if test -d /usr/nec; then
16700 lt_prog_compiler_pic_GCJ=-Kconform_pic
16704 hpux*)
16705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16706 # not for PA HP-UX.
16707 case $host_cpu in
16708 hppa*64*|ia64*)
16709 # +Z the default
16712 lt_prog_compiler_pic_GCJ='-fPIC'
16714 esac
16718 lt_prog_compiler_pic_GCJ='-fPIC'
16720 esac
16721 else
16722 # PORTME Check for flag to pass linker flags through the system compiler.
16723 case $host_os in
16724 aix*)
16725 lt_prog_compiler_wl_GCJ='-Wl,'
16726 if test "$host_cpu" = ia64; then
16727 # AIX 5 now supports IA64 processor
16728 lt_prog_compiler_static_GCJ='-Bstatic'
16729 else
16730 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16733 darwin*)
16734 # PIC is the default on this platform
16735 # Common symbols not allowed in MH_DYLIB files
16736 case $cc_basename in
16737 xlc*)
16738 lt_prog_compiler_pic_GCJ='-qnocommon'
16739 lt_prog_compiler_wl_GCJ='-Wl,'
16741 esac
16744 mingw* | pw32* | os2*)
16745 # This hack is so that the source file can tell whether it is being
16746 # built for inclusion in a dll (and should export symbols for example).
16747 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16750 hpux9* | hpux10* | hpux11*)
16751 lt_prog_compiler_wl_GCJ='-Wl,'
16752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16753 # not for PA HP-UX.
16754 case $host_cpu in
16755 hppa*64*|ia64*)
16756 # +Z the default
16759 lt_prog_compiler_pic_GCJ='+Z'
16761 esac
16762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16763 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16766 irix5* | irix6* | nonstopux*)
16767 lt_prog_compiler_wl_GCJ='-Wl,'
16768 # PIC (with -KPIC) is the default.
16769 lt_prog_compiler_static_GCJ='-non_shared'
16772 newsos6)
16773 lt_prog_compiler_pic_GCJ='-KPIC'
16774 lt_prog_compiler_static_GCJ='-Bstatic'
16777 linux*)
16778 case $cc_basename in
16779 icc* | ecc*)
16780 lt_prog_compiler_wl_GCJ='-Wl,'
16781 lt_prog_compiler_pic_GCJ='-KPIC'
16782 lt_prog_compiler_static_GCJ='-static'
16784 pgcc* | pgf77* | pgf90* | pgf95*)
16785 # Portland Group compilers (*not* the Pentium gcc compiler,
16786 # which looks to be a dead project)
16787 lt_prog_compiler_wl_GCJ='-Wl,'
16788 lt_prog_compiler_pic_GCJ='-fpic'
16789 lt_prog_compiler_static_GCJ='-Bstatic'
16791 ccc*)
16792 lt_prog_compiler_wl_GCJ='-Wl,'
16793 # All Alpha code is PIC.
16794 lt_prog_compiler_static_GCJ='-non_shared'
16796 esac
16799 osf3* | osf4* | osf5*)
16800 lt_prog_compiler_wl_GCJ='-Wl,'
16801 # All OSF/1 code is PIC.
16802 lt_prog_compiler_static_GCJ='-non_shared'
16805 solaris*)
16806 lt_prog_compiler_pic_GCJ='-KPIC'
16807 lt_prog_compiler_static_GCJ='-Bstatic'
16808 case $cc_basename in
16809 f77* | f90* | f95*)
16810 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16812 lt_prog_compiler_wl_GCJ='-Wl,';;
16813 esac
16816 sunos4*)
16817 lt_prog_compiler_wl_GCJ='-Qoption ld '
16818 lt_prog_compiler_pic_GCJ='-PIC'
16819 lt_prog_compiler_static_GCJ='-Bstatic'
16822 sysv4 | sysv4.2uw2* | sysv4.3*)
16823 lt_prog_compiler_wl_GCJ='-Wl,'
16824 lt_prog_compiler_pic_GCJ='-KPIC'
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16828 sysv4*MP*)
16829 if test -d /usr/nec ;then
16830 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16831 lt_prog_compiler_static_GCJ='-Bstatic'
16835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16836 lt_prog_compiler_wl_GCJ='-Wl,'
16837 lt_prog_compiler_pic_GCJ='-KPIC'
16838 lt_prog_compiler_static_GCJ='-Bstatic'
16841 unicos*)
16842 lt_prog_compiler_wl_GCJ='-Wl,'
16843 lt_prog_compiler_can_build_shared_GCJ=no
16846 uts4*)
16847 lt_prog_compiler_pic_GCJ='-pic'
16848 lt_prog_compiler_static_GCJ='-Bstatic'
16852 lt_prog_compiler_can_build_shared_GCJ=no
16854 esac
16857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16858 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16861 # Check to make sure the PIC flag actually works.
16863 if test -n "$lt_prog_compiler_pic_GCJ"; then
16865 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16866 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16867 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870 lt_prog_compiler_pic_works_GCJ=no
16871 ac_outfile=conftest.$ac_objext
16872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16873 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16874 # Insert the option either (1) after the last *FLAGS variable, or
16875 # (2) before a word containing "conftest.", or (3) at the end.
16876 # Note that $ac_compile itself does not contain backslashes and begins
16877 # with a dollar sign (not a hyphen), so the echo should work correctly.
16878 # The option is referenced via a variable to avoid confusing sed.
16879 lt_compile=`echo "$ac_compile" | $SED \
16880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16882 -e 's:$: $lt_compiler_flag:'`
16883 (eval echo "\"\$as_me:16883: $lt_compile\"" >&5)
16884 (eval "$lt_compile" 2>conftest.err)
16885 ac_status=$?
16886 cat conftest.err >&5
16887 echo "$as_me:16887: \$? = $ac_status" >&5
16888 if (exit $ac_status) && test -s "$ac_outfile"; then
16889 # The compiler can only warn and ignore the option if not recognized
16890 # So say no if there are warnings other than the usual output.
16891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16894 lt_prog_compiler_pic_works_GCJ=yes
16897 $rm conftest*
16900 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16901 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16903 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16904 case $lt_prog_compiler_pic_GCJ in
16905 "" | " "*) ;;
16906 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16907 esac
16908 else
16909 lt_prog_compiler_pic_GCJ=
16910 lt_prog_compiler_can_build_shared_GCJ=no
16914 case $host_os in
16915 # For platforms which do not support PIC, -DPIC is meaningless:
16916 *djgpp*)
16917 lt_prog_compiler_pic_GCJ=
16920 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16922 esac
16925 # Check to make sure the static flag actually works.
16927 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16928 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16930 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 lt_prog_compiler_static_works_GCJ=no
16934 save_LDFLAGS="$LDFLAGS"
16935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16936 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16938 # The linker can only warn and ignore the option if not recognized
16939 # So say no if there are warnings
16940 if test -s conftest.err; then
16941 # Append any errors to the config.log.
16942 cat conftest.err 1>&5
16943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16945 if diff conftest.exp conftest.er2 >/dev/null; then
16946 lt_prog_compiler_static_works_GCJ=yes
16948 else
16949 lt_prog_compiler_static_works_GCJ=yes
16952 $rm conftest*
16953 LDFLAGS="$save_LDFLAGS"
16956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16957 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16959 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16961 else
16962 lt_prog_compiler_static_GCJ=
16966 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16968 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971 lt_cv_prog_compiler_c_o_GCJ=no
16972 $rm -r conftest 2>/dev/null
16973 mkdir conftest
16974 cd conftest
16975 mkdir out
16976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16978 lt_compiler_flag="-o out/conftest2.$ac_objext"
16979 # Insert the option either (1) after the last *FLAGS variable, or
16980 # (2) before a word containing "conftest.", or (3) at the end.
16981 # Note that $ac_compile itself does not contain backslashes and begins
16982 # with a dollar sign (not a hyphen), so the echo should work correctly.
16983 lt_compile=`echo "$ac_compile" | $SED \
16984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16986 -e 's:$: $lt_compiler_flag:'`
16987 (eval echo "\"\$as_me:16987: $lt_compile\"" >&5)
16988 (eval "$lt_compile" 2>out/conftest.err)
16989 ac_status=$?
16990 cat out/conftest.err >&5
16991 echo "$as_me:16991: \$? = $ac_status" >&5
16992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16993 then
16994 # The compiler can only warn and ignore the option if not recognized
16995 # So say no if there are warnings
16996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16999 lt_cv_prog_compiler_c_o_GCJ=yes
17002 chmod u+w . 2>&5
17003 $rm conftest*
17004 # SGI C++ compiler will create directory out/ii_files/ for
17005 # template instantiation
17006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17007 $rm out/* && rmdir out
17008 cd ..
17009 rmdir conftest
17010 $rm conftest*
17013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17017 hard_links="nottested"
17018 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17019 # do not overwrite the value of need_locks provided by the user
17020 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17022 hard_links=yes
17023 $rm conftest*
17024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17025 touch conftest.a
17026 ln conftest.a conftest.b 2>&5 || hard_links=no
17027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17028 { echo "$as_me:$LINENO: result: $hard_links" >&5
17029 echo "${ECHO_T}$hard_links" >&6; }
17030 if test "$hard_links" = no; then
17031 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17033 need_locks=warn
17035 else
17036 need_locks=no
17039 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17042 runpath_var=
17043 allow_undefined_flag_GCJ=
17044 enable_shared_with_static_runtimes_GCJ=no
17045 archive_cmds_GCJ=
17046 archive_expsym_cmds_GCJ=
17047 old_archive_From_new_cmds_GCJ=
17048 old_archive_from_expsyms_cmds_GCJ=
17049 export_dynamic_flag_spec_GCJ=
17050 whole_archive_flag_spec_GCJ=
17051 thread_safe_flag_spec_GCJ=
17052 hardcode_libdir_flag_spec_GCJ=
17053 hardcode_libdir_flag_spec_ld_GCJ=
17054 hardcode_libdir_separator_GCJ=
17055 hardcode_direct_GCJ=no
17056 hardcode_minus_L_GCJ=no
17057 hardcode_shlibpath_var_GCJ=unsupported
17058 link_all_deplibs_GCJ=unknown
17059 hardcode_automatic_GCJ=no
17060 module_cmds_GCJ=
17061 module_expsym_cmds_GCJ=
17062 always_export_symbols_GCJ=no
17063 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17064 # include_expsyms should be a list of space-separated symbols to be *always*
17065 # included in the symbol list
17066 include_expsyms_GCJ=
17067 # exclude_expsyms can be an extended regexp of symbols to exclude
17068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17070 # as well as any symbol that contains `d'.
17071 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17073 # platforms (ab)use it in PIC code, but their linkers get confused if
17074 # the symbol is explicitly referenced. Since portable code cannot
17075 # rely on this symbol name, it's probably fine to never include it in
17076 # preloaded symbol tables.
17077 extract_expsyms_cmds=
17078 # Just being paranoid about ensuring that cc_basename is set.
17079 for cc_temp in $compiler""; do
17080 case $cc_temp in
17081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17083 \-*) ;;
17084 *) break;;
17085 esac
17086 done
17087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17089 case $host_os in
17090 cygwin* | mingw* | pw32*)
17091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17092 # When not using gcc, we currently assume that we are using
17093 # Microsoft Visual C++.
17094 if test "$GCC" != yes; then
17095 with_gnu_ld=no
17098 interix*)
17099 # we just hope/assume this is gcc and not c89 (= MSVC++)
17100 with_gnu_ld=yes
17102 openbsd*)
17103 with_gnu_ld=no
17105 esac
17107 ld_shlibs_GCJ=yes
17108 if test "$with_gnu_ld" = yes; then
17109 # If archive_cmds runs LD, not CC, wlarc should be empty
17110 wlarc='${wl}'
17112 # Set some defaults for GNU ld with shared library support. These
17113 # are reset later if shared libraries are not supported. Putting them
17114 # here allows them to be overridden if necessary.
17115 runpath_var=LD_RUN_PATH
17116 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17117 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17118 # ancient GNU ld didn't support --whole-archive et. al.
17119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17120 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17121 else
17122 whole_archive_flag_spec_GCJ=
17124 supports_anon_versioning=no
17125 case `$LD -v 2>/dev/null` in
17126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17129 *\ 2.11.*) ;; # other 2.11 versions
17130 *) supports_anon_versioning=yes ;;
17131 esac
17133 # See if GNU ld supports shared libraries.
17134 case $host_os in
17135 aix3* | aix4* | aix5*)
17136 # On AIX/PPC, the GNU linker is very broken
17137 if test "$host_cpu" != ia64; then
17138 ld_shlibs_GCJ=no
17139 cat <<EOF 1>&2
17141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17142 *** to be unable to reliably create shared libraries on AIX.
17143 *** Therefore, libtool is disabling shared libraries support. If you
17144 *** really care for shared libraries, you may want to modify your PATH
17145 *** so that a non-GNU linker is found, and then restart.
17151 amigaos*)
17152 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)'
17153 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17154 hardcode_minus_L_GCJ=yes
17156 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17157 # that the semantics of dynamic libraries on AmigaOS, at least up
17158 # to version 4, is to share data among multiple programs linked
17159 # with the same dynamic library. Since this doesn't match the
17160 # behavior of shared libraries on other platforms, we can't use
17161 # them.
17162 ld_shlibs_GCJ=no
17165 beos*)
17166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167 allow_undefined_flag_GCJ=unsupported
17168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17169 # support --undefined. This deserves some investigation. FIXME
17170 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17171 else
17172 ld_shlibs_GCJ=no
17176 cygwin* | mingw* | pw32*)
17177 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17178 # as there is no search path for DLLs.
17179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180 allow_undefined_flag_GCJ=unsupported
17181 always_export_symbols_GCJ=no
17182 enable_shared_with_static_runtimes_GCJ=yes
17183 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17185 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17187 # If the export-symbols file already is a .def file (1st line
17188 # is EXPORTS), use it as is; otherwise, prepend...
17189 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17190 cp $export_symbols $output_objdir/$soname.def;
17191 else
17192 echo EXPORTS > $output_objdir/$soname.def;
17193 cat $export_symbols >> $output_objdir/$soname.def;
17195 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17196 else
17197 ld_shlibs_GCJ=no
17201 interix3*)
17202 hardcode_direct_GCJ=no
17203 hardcode_shlibpath_var_GCJ=no
17204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17205 export_dynamic_flag_spec_GCJ='${wl}-E'
17206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17207 # Instead, shared libraries are loaded at an image base (0x10000000 by
17208 # default) and relocated if they conflict, which is a slow very memory
17209 # consuming and fragmenting process. To avoid this, we pick a random,
17210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17212 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'
17213 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'
17216 linux*)
17217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17218 tmp_addflag=
17219 case $cc_basename,$host_cpu in
17220 pgcc*) # Portland Group C compiler
17221 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'
17222 tmp_addflag=' $pic_flag'
17224 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17225 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'
17226 tmp_addflag=' $pic_flag -Mnomain' ;;
17227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17228 tmp_addflag=' -i_dynamic' ;;
17229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17230 tmp_addflag=' -i_dynamic -nofor_main' ;;
17231 ifc* | ifort*) # Intel Fortran compiler
17232 tmp_addflag=' -nofor_main' ;;
17233 esac
17234 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17236 if test $supports_anon_versioning = yes; then
17237 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17239 $echo "local: *; };" >> $output_objdir/$libname.ver~
17240 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17242 else
17243 ld_shlibs_GCJ=no
17247 netbsd*)
17248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17250 wlarc=
17251 else
17252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17257 solaris*)
17258 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17259 ld_shlibs_GCJ=no
17260 cat <<EOF 1>&2
17262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17263 *** create shared libraries on Solaris systems. Therefore, libtool
17264 *** is disabling shared libraries support. We urge you to upgrade GNU
17265 *** binutils to release 2.9.1 or newer. Another option is to modify
17266 *** your PATH or compiler configuration so that the native linker is
17267 *** used, and then restart.
17270 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17271 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17272 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17273 else
17274 ld_shlibs_GCJ=no
17278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17279 case `$LD -v 2>&1` in
17280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17281 ld_shlibs_GCJ=no
17282 cat <<_LT_EOF 1>&2
17284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17285 *** reliably create shared libraries on SCO systems. Therefore, libtool
17286 *** is disabling shared libraries support. We urge you to upgrade GNU
17287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17288 *** your PATH or compiler configuration so that the native linker is
17289 *** used, and then restart.
17291 _LT_EOF
17294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17295 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17296 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17297 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17298 else
17299 ld_shlibs_GCJ=no
17302 esac
17305 sunos4*)
17306 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17307 wlarc=
17308 hardcode_direct_GCJ=yes
17309 hardcode_shlibpath_var_GCJ=no
17313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 else
17317 ld_shlibs_GCJ=no
17320 esac
17322 if test "$ld_shlibs_GCJ" = no; then
17323 runpath_var=
17324 hardcode_libdir_flag_spec_GCJ=
17325 export_dynamic_flag_spec_GCJ=
17326 whole_archive_flag_spec_GCJ=
17328 else
17329 # PORTME fill in a description of your system's linker (not GNU ld)
17330 case $host_os in
17331 aix3*)
17332 allow_undefined_flag_GCJ=unsupported
17333 always_export_symbols_GCJ=yes
17334 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'
17335 # Note: this linker hardcodes the directories in LIBPATH if there
17336 # are no directories specified by -L.
17337 hardcode_minus_L_GCJ=yes
17338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17339 # Neither direct hardcoding nor static linking is supported with a
17340 # broken collect2.
17341 hardcode_direct_GCJ=unsupported
17345 aix4* | aix5*)
17346 if test "$host_cpu" = ia64; then
17347 # On IA64, the linker does run time linking by default, so we don't
17348 # have to do anything special.
17349 aix_use_runtimelinking=no
17350 exp_sym_flag='-Bexport'
17351 no_entry_flag=""
17352 else
17353 # If we're using GNU nm, then we don't want the "-C" option.
17354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17356 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'
17357 else
17358 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'
17360 aix_use_runtimelinking=no
17362 # Test if we are trying to use run time linking or normal
17363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17364 # need to do runtime linking.
17365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17366 for ld_flag in $LDFLAGS; do
17367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17368 aix_use_runtimelinking=yes
17369 break
17371 done
17373 esac
17375 exp_sym_flag='-bexport'
17376 no_entry_flag='-bnoentry'
17379 # When large executables or shared objects are built, AIX ld can
17380 # have problems creating the table of contents. If linking a library
17381 # or program results in "error TOC overflow" add -mminimal-toc to
17382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17385 archive_cmds_GCJ=''
17386 hardcode_direct_GCJ=yes
17387 hardcode_libdir_separator_GCJ=':'
17388 link_all_deplibs_GCJ=yes
17390 if test "$GCC" = yes; then
17391 case $host_os in aix4.[012]|aix4.[012].*)
17392 # We only want to do this on AIX 4.2 and lower, the check
17393 # below for broken collect2 doesn't work under 4.3+
17394 collect2name=`${CC} -print-prog-name=collect2`
17395 if test -f "$collect2name" && \
17396 strings "$collect2name" | grep resolve_lib_name >/dev/null
17397 then
17398 # We have reworked collect2
17399 hardcode_direct_GCJ=yes
17400 else
17401 # We have old collect2
17402 hardcode_direct_GCJ=unsupported
17403 # It fails to find uninstalled libraries when the uninstalled
17404 # path is not listed in the libpath. Setting hardcode_minus_L
17405 # to unsupported forces relinking
17406 hardcode_minus_L_GCJ=yes
17407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408 hardcode_libdir_separator_GCJ=
17411 esac
17412 shared_flag='-shared'
17413 if test "$aix_use_runtimelinking" = yes; then
17414 shared_flag="$shared_flag "'${wl}-G'
17416 else
17417 # not using gcc
17418 if test "$host_cpu" = ia64; then
17419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17420 # chokes on -Wl,-G. The following line is correct:
17421 shared_flag='-G'
17422 else
17423 if test "$aix_use_runtimelinking" = yes; then
17424 shared_flag='${wl}-G'
17425 else
17426 shared_flag='${wl}-bM:SRE'
17431 # It seems that -bexpall does not export symbols beginning with
17432 # underscore (_), so it is better to generate a list of symbols to export.
17433 always_export_symbols_GCJ=yes
17434 if test "$aix_use_runtimelinking" = yes; then
17435 # Warning - without using the other runtime loading flags (-brtl),
17436 # -berok will link without error, but may produce a broken library.
17437 allow_undefined_flag_GCJ='-berok'
17438 # Determine the default libpath from the value encoded in an empty executable.
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17447 main ()
17451 return 0;
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_link") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; } &&
17478 { ac_try='test -s conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17491 # Check for a 64-bit object if we didn't find anything.
17492 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17493 }'`; fi
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17501 rm -f core conftest.err conftest.$ac_objext \
17502 conftest$ac_exeext conftest.$ac_ext
17503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17505 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17506 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"
17507 else
17508 if test "$host_cpu" = ia64; then
17509 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17510 allow_undefined_flag_GCJ="-z nodefs"
17511 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"
17512 else
17513 # Determine the default libpath from the value encoded in an empty executable.
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17522 main ()
17526 return 0;
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (ac_try="$ac_link"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
17554 { (case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_try") 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17566 # Check for a 64-bit object if we didn't find anything.
17567 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17568 }'`; fi
17569 else
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17580 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17581 # Warning - without using the other run time loading flags,
17582 # -berok will link without error, but may produce a broken library.
17583 no_undefined_flag_GCJ=' ${wl}-bernotok'
17584 allow_undefined_flag_GCJ=' ${wl}-berok'
17585 # Exported symbols can be pulled into shared objects from archives
17586 whole_archive_flag_spec_GCJ='$convenience'
17587 archive_cmds_need_lc_GCJ=yes
17588 # This is similar to how AIX traditionally builds its shared libraries.
17589 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'
17594 amigaos*)
17595 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)'
17596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597 hardcode_minus_L_GCJ=yes
17598 # see comment about different semantics on the GNU ld section
17599 ld_shlibs_GCJ=no
17602 bsdi[45]*)
17603 export_dynamic_flag_spec_GCJ=-rdynamic
17606 cygwin* | mingw* | pw32*)
17607 # When not using gcc, we currently assume that we are using
17608 # Microsoft Visual C++.
17609 # hardcode_libdir_flag_spec is actually meaningless, as there is
17610 # no search path for DLLs.
17611 hardcode_libdir_flag_spec_GCJ=' '
17612 allow_undefined_flag_GCJ=unsupported
17613 # Tell ltmain to make .lib files, not .a files.
17614 libext=lib
17615 # Tell ltmain to make .dll files, not .so files.
17616 shrext_cmds=".dll"
17617 # FIXME: Setting linknames here is a bad hack.
17618 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17619 # The linker will automatically build a .lib file if we build a DLL.
17620 old_archive_From_new_cmds_GCJ='true'
17621 # FIXME: Should let the user specify the lib program.
17622 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17623 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17624 enable_shared_with_static_runtimes_GCJ=yes
17627 darwin* | rhapsody*)
17628 case $host_os in
17629 rhapsody* | darwin1.[012])
17630 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17632 *) # Darwin 1.3 on
17633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17634 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17635 else
17636 case ${MACOSX_DEPLOYMENT_TARGET} in
17637 10.[012])
17638 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17640 10.*)
17641 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17643 esac
17646 esac
17647 archive_cmds_need_lc_GCJ=no
17648 hardcode_direct_GCJ=no
17649 hardcode_automatic_GCJ=yes
17650 hardcode_shlibpath_var_GCJ=unsupported
17651 whole_archive_flag_spec_GCJ=''
17652 link_all_deplibs_GCJ=yes
17653 if test "$GCC" = yes ; then
17654 output_verbose_link_cmd='echo'
17655 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17656 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17658 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17659 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}'
17660 else
17661 case $cc_basename in
17662 xlc*)
17663 output_verbose_link_cmd='echo'
17664 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17665 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17667 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17668 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}'
17671 ld_shlibs_GCJ=no
17673 esac
17677 dgux*)
17678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17680 hardcode_shlibpath_var_GCJ=no
17683 freebsd1*)
17684 ld_shlibs_GCJ=no
17687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17688 # support. Future versions do this automatically, but an explicit c++rt0.o
17689 # does not break anything, and helps significantly (at the cost of a little
17690 # extra space).
17691 freebsd2.2*)
17692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17694 hardcode_direct_GCJ=yes
17695 hardcode_shlibpath_var_GCJ=no
17698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17699 freebsd2*)
17700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=yes
17702 hardcode_minus_L_GCJ=yes
17703 hardcode_shlibpath_var_GCJ=no
17706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17707 freebsd* | kfreebsd*-gnu | dragonfly*)
17708 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17709 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17710 hardcode_direct_GCJ=yes
17711 hardcode_shlibpath_var_GCJ=no
17714 hpux9*)
17715 if test "$GCC" = yes; then
17716 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'
17717 else
17718 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'
17720 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17721 hardcode_libdir_separator_GCJ=:
17722 hardcode_direct_GCJ=yes
17724 # hardcode_minus_L: Not really in the search PATH,
17725 # but as the default location of the library.
17726 hardcode_minus_L_GCJ=yes
17727 export_dynamic_flag_spec_GCJ='${wl}-E'
17730 hpux10*)
17731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17732 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17733 else
17734 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17736 if test "$with_gnu_ld" = no; then
17737 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17738 hardcode_libdir_separator_GCJ=:
17740 hardcode_direct_GCJ=yes
17741 export_dynamic_flag_spec_GCJ='${wl}-E'
17743 # hardcode_minus_L: Not really in the search PATH,
17744 # but as the default location of the library.
17745 hardcode_minus_L_GCJ=yes
17749 hpux11*)
17750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17751 case $host_cpu in
17752 hppa*64*)
17753 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17755 ia64*)
17756 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17759 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17761 esac
17762 else
17763 case $host_cpu in
17764 hppa*64*)
17765 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17767 ia64*)
17768 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17773 esac
17775 if test "$with_gnu_ld" = no; then
17776 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17777 hardcode_libdir_separator_GCJ=:
17779 case $host_cpu in
17780 hppa*64*|ia64*)
17781 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17782 hardcode_direct_GCJ=no
17783 hardcode_shlibpath_var_GCJ=no
17786 hardcode_direct_GCJ=yes
17787 export_dynamic_flag_spec_GCJ='${wl}-E'
17789 # hardcode_minus_L: Not really in the search PATH,
17790 # but as the default location of the library.
17791 hardcode_minus_L_GCJ=yes
17793 esac
17797 irix5* | irix6* | nonstopux*)
17798 if test "$GCC" = yes; then
17799 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'
17800 else
17801 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'
17802 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17804 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17805 hardcode_libdir_separator_GCJ=:
17806 link_all_deplibs_GCJ=yes
17809 netbsd*)
17810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17811 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17812 else
17813 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17815 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17816 hardcode_direct_GCJ=yes
17817 hardcode_shlibpath_var_GCJ=no
17820 newsos6)
17821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17822 hardcode_direct_GCJ=yes
17823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17824 hardcode_libdir_separator_GCJ=:
17825 hardcode_shlibpath_var_GCJ=no
17828 openbsd*)
17829 hardcode_direct_GCJ=yes
17830 hardcode_shlibpath_var_GCJ=no
17831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17832 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17833 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17834 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17835 export_dynamic_flag_spec_GCJ='${wl}-E'
17836 else
17837 case $host_os in
17838 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17839 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17843 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17846 esac
17850 os2*)
17851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17852 hardcode_minus_L_GCJ=yes
17853 allow_undefined_flag_GCJ=unsupported
17854 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'
17855 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17858 osf3*)
17859 if test "$GCC" = yes; then
17860 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17861 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'
17862 else
17863 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17864 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'
17866 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17870 osf4* | osf5*) # as osf3* with the addition of -msym flag
17871 if test "$GCC" = yes; then
17872 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873 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'
17874 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17875 else
17876 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17877 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'
17878 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~
17879 $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'
17881 # Both c and cxx compiler support -rpath directly
17882 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17884 hardcode_libdir_separator_GCJ=:
17887 solaris*)
17888 no_undefined_flag_GCJ=' -z text'
17889 if test "$GCC" = yes; then
17890 wlarc='${wl}'
17891 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17892 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17893 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17894 else
17895 wlarc=''
17896 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17897 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17901 hardcode_shlibpath_var_GCJ=no
17902 case $host_os in
17903 solaris2.[0-5] | solaris2.[0-5].*) ;;
17905 # The compiler driver will combine linker options so we
17906 # cannot just pass the convience library names through
17907 # without $wl, iff we do not link with $LD.
17908 # Luckily, gcc supports the same syntax we need for Sun Studio.
17909 # Supported since Solaris 2.6 (maybe 2.5.1?)
17910 case $wlarc in
17912 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17914 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17915 esac ;;
17916 esac
17917 link_all_deplibs_GCJ=yes
17920 sunos4*)
17921 if test "x$host_vendor" = xsequent; then
17922 # Use $CC to link under sequent, because it throws in some extra .o
17923 # files that make .init and .fini sections work.
17924 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17925 else
17926 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929 hardcode_direct_GCJ=yes
17930 hardcode_minus_L_GCJ=yes
17931 hardcode_shlibpath_var_GCJ=no
17934 sysv4)
17935 case $host_vendor in
17936 sni)
17937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct_GCJ=yes # is this really true???
17940 siemens)
17941 ## LD is ld it makes a PLAMLIB
17942 ## CC just makes a GrossModule.
17943 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17944 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17945 hardcode_direct_GCJ=no
17947 motorola)
17948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17951 esac
17952 runpath_var='LD_RUN_PATH'
17953 hardcode_shlibpath_var_GCJ=no
17956 sysv4.3*)
17957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_shlibpath_var_GCJ=no
17959 export_dynamic_flag_spec_GCJ='-Bexport'
17962 sysv4*MP*)
17963 if test -d /usr/nec; then
17964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_shlibpath_var_GCJ=no
17966 runpath_var=LD_RUN_PATH
17967 hardcode_runpath_var=yes
17968 ld_shlibs_GCJ=yes
17972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17973 no_undefined_flag_GCJ='${wl}-z,text'
17974 archive_cmds_need_lc_GCJ=no
17975 hardcode_shlibpath_var_GCJ=no
17976 runpath_var='LD_RUN_PATH'
17978 if test "$GCC" = yes; then
17979 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 else
17982 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17987 sysv5* | sco3.2v5* | sco5v6*)
17988 # Note: We can NOT use -z defs as we might desire, because we do not
17989 # link with -lc, and that would cause any symbols used from libc to
17990 # always be unresolved, which means just about no library would
17991 # ever link correctly. If we're not using GNU ld we use -z text
17992 # though, which does catch some bad symbols but isn't as heavy-handed
17993 # as -z defs.
17994 no_undefined_flag_GCJ='${wl}-z,text'
17995 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17996 archive_cmds_need_lc_GCJ=no
17997 hardcode_shlibpath_var_GCJ=no
17998 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17999 hardcode_libdir_separator_GCJ=':'
18000 link_all_deplibs_GCJ=yes
18001 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18002 runpath_var='LD_RUN_PATH'
18004 if test "$GCC" = yes; then
18005 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 else
18008 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 uts4*)
18014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18016 hardcode_shlibpath_var_GCJ=no
18020 ld_shlibs_GCJ=no
18022 esac
18025 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18026 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18027 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18030 # Do we need to explicitly link libc?
18032 case "x$archive_cmds_need_lc_GCJ" in
18033 x|xyes)
18034 # Assume -lc should be added
18035 archive_cmds_need_lc_GCJ=yes
18037 if test "$enable_shared" = yes && test "$GCC" = yes; then
18038 case $archive_cmds_GCJ in
18039 *'~'*)
18040 # FIXME: we may have to deal with multi-command sequences.
18042 '$CC '*)
18043 # Test whether the compiler implicitly links with -lc since on some
18044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18045 # to ld, don't add -lc before -lgcc.
18046 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18048 $rm conftest*
18049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18052 (eval $ac_compile) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } 2>conftest.err; then
18056 soname=conftest
18057 lib=conftest
18058 libobjs=conftest.$ac_objext
18059 deplibs=
18060 wl=$lt_prog_compiler_wl_GCJ
18061 pic_flag=$lt_prog_compiler_pic_GCJ
18062 compiler_flags=-v
18063 linker_flags=-v
18064 verstring=
18065 output_objdir=.
18066 libname=conftest
18067 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18068 allow_undefined_flag_GCJ=
18069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18070 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }
18074 then
18075 archive_cmds_need_lc_GCJ=no
18076 else
18077 archive_cmds_need_lc_GCJ=yes
18079 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18080 else
18081 cat conftest.err 1>&5
18083 $rm conftest*
18084 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18085 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18087 esac
18090 esac
18092 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18094 library_names_spec=
18095 libname_spec='lib$name'
18096 soname_spec=
18097 shrext_cmds=".so"
18098 postinstall_cmds=
18099 postuninstall_cmds=
18100 finish_cmds=
18101 finish_eval=
18102 shlibpath_var=
18103 shlibpath_overrides_runpath=unknown
18104 version_type=none
18105 dynamic_linker="$host_os ld.so"
18106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18107 if test "$GCC" = yes; then
18108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18109 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18110 # if the path contains ";" then we assume it to be the separator
18111 # otherwise default to the standard path separator (i.e. ":") - it is
18112 # assumed that no part of a normal pathname contains ";" but that should
18113 # okay in the real world where ";" in dirpaths is itself problematic.
18114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18115 else
18116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18118 else
18119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18121 need_lib_prefix=unknown
18122 hardcode_into_libs=no
18124 # when you set need_version to no, make sure it does not cause -set_version
18125 # flags to be left without arguments
18126 need_version=unknown
18128 case $host_os in
18129 aix3*)
18130 version_type=linux
18131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18132 shlibpath_var=LIBPATH
18134 # AIX 3 has no versioning support, so we append a major version to the name.
18135 soname_spec='${libname}${release}${shared_ext}$major'
18138 aix4* | aix5*)
18139 version_type=linux
18140 need_lib_prefix=no
18141 need_version=no
18142 hardcode_into_libs=yes
18143 if test "$host_cpu" = ia64; then
18144 # AIX 5 supports IA64
18145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 else
18148 # With GCC up to 2.95.x, collect2 would create an import file
18149 # for dependence libraries. The import file would start with
18150 # the line `#! .'. This would cause the generated library to
18151 # depend on `.', always an invalid library. This was fixed in
18152 # development snapshots of GCC prior to 3.0.
18153 case $host_os in
18154 aix4 | aix4.[01] | aix4.[01].*)
18155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18156 echo ' yes '
18157 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18159 else
18160 can_build_shared=no
18163 esac
18164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18165 # soname into executable. Probably we can add versioning support to
18166 # collect2, so additional links can be useful in future.
18167 if test "$aix_use_runtimelinking" = yes; then
18168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18169 # instead of lib<name>.a to let people know that these are not
18170 # typical AIX shared libraries.
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172 else
18173 # We preserve .a as extension for shared libraries through AIX4.2
18174 # and later when we are not doing run time linking.
18175 library_names_spec='${libname}${release}.a $libname.a'
18176 soname_spec='${libname}${release}${shared_ext}$major'
18178 shlibpath_var=LIBPATH
18182 amigaos*)
18183 library_names_spec='$libname.ixlibrary $libname.a'
18184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18185 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'
18188 beos*)
18189 library_names_spec='${libname}${shared_ext}'
18190 dynamic_linker="$host_os ld.so"
18191 shlibpath_var=LIBRARY_PATH
18194 bsdi[45]*)
18195 version_type=linux
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18203 # the default ld.so.conf also contains /usr/contrib/lib and
18204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18205 # libtool to hard-code these into programs
18208 cygwin* | mingw* | pw32*)
18209 version_type=windows
18210 shrext_cmds=".dll"
18211 need_version=no
18212 need_lib_prefix=no
18214 case $GCC,$host_os in
18215 yes,cygwin* | yes,mingw* | yes,pw32*)
18216 library_names_spec='$libname.dll.a'
18217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18218 postinstall_cmds='base_file=`basename \${file}`~
18219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18220 dldir=$destdir/`dirname \$dlpath`~
18221 test -d \$dldir || mkdir -p \$dldir~
18222 $install_prog $dir/$dlname \$dldir/$dlname~
18223 chmod a+x \$dldir/$dlname'
18224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18225 dlpath=$dir/\$dldll~
18226 $rm \$dlpath'
18227 shlibpath_overrides_runpath=yes
18229 case $host_os in
18230 cygwin*)
18231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18233 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18235 mingw*)
18236 # MinGW DLLs use traditional 'lib' prefix
18237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18239 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18240 # It is most probably a Windows format PATH printed by
18241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18242 # path with ; separators, and with drive letters. We can handle the
18243 # drive letters (cygwin fileutils understands them), so leave them,
18244 # especially as we might pass files found there to a mingw objdump,
18245 # which wouldn't understand a cygwinified path. Ahh.
18246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18247 else
18248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18251 pw32*)
18252 # pw32 DLLs use 'pw' prefix rather than 'lib'
18253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18255 esac
18259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18261 esac
18262 dynamic_linker='Win32 ld.exe'
18263 # FIXME: first we should search . and the directory the executable is in
18264 shlibpath_var=PATH
18267 darwin* | rhapsody*)
18268 dynamic_linker="$host_os dyld"
18269 version_type=darwin
18270 need_lib_prefix=no
18271 need_version=no
18272 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18273 soname_spec='${libname}${release}${major}$shared_ext'
18274 shlibpath_overrides_runpath=yes
18275 shlibpath_var=DYLD_LIBRARY_PATH
18276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18277 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18278 if test "$GCC" = yes; then
18279 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18280 else
18281 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18286 dgux*)
18287 version_type=linux
18288 need_lib_prefix=no
18289 need_version=no
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18295 freebsd1*)
18296 dynamic_linker=no
18299 kfreebsd*-gnu)
18300 version_type=linux
18301 need_lib_prefix=no
18302 need_version=no
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=no
18307 hardcode_into_libs=yes
18308 dynamic_linker='GNU ld.so'
18311 freebsd* | dragonfly*)
18312 # DragonFly does not have aout. When/if they implement a new
18313 # versioning mechanism, adjust this.
18314 if test -x /usr/bin/objformat; then
18315 objformat=`/usr/bin/objformat`
18316 else
18317 case $host_os in
18318 freebsd[123]*) objformat=aout ;;
18319 *) objformat=elf ;;
18320 esac
18322 version_type=freebsd-$objformat
18323 case $version_type in
18324 freebsd-elf*)
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18326 need_version=no
18327 need_lib_prefix=no
18329 freebsd-*)
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18331 need_version=yes
18333 esac
18334 shlibpath_var=LD_LIBRARY_PATH
18335 case $host_os in
18336 freebsd2*)
18337 shlibpath_overrides_runpath=yes
18339 freebsd3.[01]* | freebsdelf3.[01]*)
18340 shlibpath_overrides_runpath=yes
18341 hardcode_into_libs=yes
18343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18345 shlibpath_overrides_runpath=no
18346 hardcode_into_libs=yes
18348 freebsd*) # from 4.6 on
18349 shlibpath_overrides_runpath=yes
18350 hardcode_into_libs=yes
18352 esac
18355 gnu*)
18356 version_type=linux
18357 need_lib_prefix=no
18358 need_version=no
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 hardcode_into_libs=yes
18365 hpux9* | hpux10* | hpux11*)
18366 # Give a soname corresponding to the major version so that dld.sl refuses to
18367 # link against other versions.
18368 version_type=sunos
18369 need_lib_prefix=no
18370 need_version=no
18371 case $host_cpu in
18372 ia64*)
18373 shrext_cmds='.so'
18374 hardcode_into_libs=yes
18375 dynamic_linker="$host_os dld.so"
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 if test "X$HPUX_IA64_MODE" = X32; then
18381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18382 else
18383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18387 hppa*64*)
18388 shrext_cmds='.sl'
18389 hardcode_into_libs=yes
18390 dynamic_linker="$host_os dld.sl"
18391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18399 shrext_cmds='.sl'
18400 dynamic_linker="$host_os dld.sl"
18401 shlibpath_var=SHLIB_PATH
18402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18406 esac
18407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18408 postinstall_cmds='chmod 555 $lib'
18411 interix3*)
18412 version_type=linux
18413 need_lib_prefix=no
18414 need_version=no
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 shlibpath_overrides_runpath=no
18420 hardcode_into_libs=yes
18423 irix5* | irix6* | nonstopux*)
18424 case $host_os in
18425 nonstopux*) version_type=nonstopux ;;
18427 if test "$lt_cv_prog_gnu_ld" = yes; then
18428 version_type=linux
18429 else
18430 version_type=irix
18431 fi ;;
18432 esac
18433 need_lib_prefix=no
18434 need_version=no
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18437 case $host_os in
18438 irix5* | nonstopux*)
18439 libsuff= shlibsuff=
18442 case $LD in # libtool.m4 will add one of these switches to LD
18443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18444 libsuff= shlibsuff= libmagic=32-bit;;
18445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18446 libsuff=32 shlibsuff=N32 libmagic=N32;;
18447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18449 *) libsuff= shlibsuff= libmagic=never-match;;
18450 esac
18452 esac
18453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18454 shlibpath_overrides_runpath=no
18455 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18456 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18457 hardcode_into_libs=yes
18460 # No shared lib support for Linux oldld, aout, or coff.
18461 linux*oldld* | linux*aout* | linux*coff*)
18462 dynamic_linker=no
18465 # This must be Linux ELF.
18466 linux*)
18467 version_type=linux
18468 need_lib_prefix=no
18469 need_version=no
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18473 shlibpath_var=LD_LIBRARY_PATH
18474 shlibpath_overrides_runpath=no
18475 # This implies no fast_install, which is unacceptable.
18476 # Some rework will be needed to allow for fast_install
18477 # before this can be enabled.
18478 hardcode_into_libs=yes
18480 # Append ld.so.conf contents to the search path
18481 if test -f /etc/ld.so.conf; then
18482 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18483 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18486 # We used to test for /lib/ld.so.1 and disable shared libraries on
18487 # powerpc, because MkLinux only supported shared libraries with the
18488 # GNU dynamic linker. Since this was broken with cross compilers,
18489 # most powerpc-linux boxes support dynamic linking these days and
18490 # people can always --disable-shared, the test was removed, and we
18491 # assume the GNU/Linux dynamic linker is in use.
18492 dynamic_linker='GNU/Linux ld.so'
18495 knetbsd*-gnu)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=no
18503 hardcode_into_libs=yes
18504 dynamic_linker='GNU ld.so'
18507 netbsd*)
18508 version_type=sunos
18509 need_lib_prefix=no
18510 need_version=no
18511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514 dynamic_linker='NetBSD (a.out) ld.so'
18515 else
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18518 dynamic_linker='NetBSD ld.elf_so'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 shlibpath_overrides_runpath=yes
18522 hardcode_into_libs=yes
18525 newsos6)
18526 version_type=linux
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18532 nto-qnx*)
18533 version_type=linux
18534 need_lib_prefix=no
18535 need_version=no
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 soname_spec='${libname}${release}${shared_ext}$major'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=yes
18542 openbsd*)
18543 version_type=sunos
18544 sys_lib_dlsearch_path_spec="/usr/lib"
18545 need_lib_prefix=no
18546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18547 case $host_os in
18548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18549 *) need_version=no ;;
18550 esac
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553 shlibpath_var=LD_LIBRARY_PATH
18554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18555 case $host_os in
18556 openbsd2.[89] | openbsd2.[89].*)
18557 shlibpath_overrides_runpath=no
18560 shlibpath_overrides_runpath=yes
18562 esac
18563 else
18564 shlibpath_overrides_runpath=yes
18568 os2*)
18569 libname_spec='$name'
18570 shrext_cmds=".dll"
18571 need_lib_prefix=no
18572 library_names_spec='$libname${shared_ext} $libname.a'
18573 dynamic_linker='OS/2 ld.exe'
18574 shlibpath_var=LIBPATH
18577 osf3* | osf4* | osf5*)
18578 version_type=osf
18579 need_lib_prefix=no
18580 need_version=no
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18588 solaris*)
18589 version_type=linux
18590 need_lib_prefix=no
18591 need_version=no
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593 soname_spec='${libname}${release}${shared_ext}$major'
18594 shlibpath_var=LD_LIBRARY_PATH
18595 shlibpath_overrides_runpath=yes
18596 hardcode_into_libs=yes
18597 # ldd complains unless libraries are executable
18598 postinstall_cmds='chmod +x $lib'
18601 sunos4*)
18602 version_type=sunos
18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18605 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18607 if test "$with_gnu_ld" = yes; then
18608 need_lib_prefix=no
18610 need_version=yes
18613 sysv4 | sysv4.3*)
18614 version_type=linux
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 soname_spec='${libname}${release}${shared_ext}$major'
18617 shlibpath_var=LD_LIBRARY_PATH
18618 case $host_vendor in
18619 sni)
18620 shlibpath_overrides_runpath=no
18621 need_lib_prefix=no
18622 export_dynamic_flag_spec='${wl}-Blargedynsym'
18623 runpath_var=LD_RUN_PATH
18625 siemens)
18626 need_lib_prefix=no
18628 motorola)
18629 need_lib_prefix=no
18630 need_version=no
18631 shlibpath_overrides_runpath=no
18632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18634 esac
18637 sysv4*MP*)
18638 if test -d /usr/nec ;then
18639 version_type=linux
18640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18641 soname_spec='$libname${shared_ext}.$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18647 version_type=freebsd-elf
18648 need_lib_prefix=no
18649 need_version=no
18650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18651 soname_spec='${libname}${release}${shared_ext}$major'
18652 shlibpath_var=LD_LIBRARY_PATH
18653 hardcode_into_libs=yes
18654 if test "$with_gnu_ld" = yes; then
18655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18656 shlibpath_overrides_runpath=no
18657 else
18658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18659 shlibpath_overrides_runpath=yes
18660 case $host_os in
18661 sco3.2v5*)
18662 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18664 esac
18666 sys_lib_dlsearch_path_spec='/usr/lib'
18669 uts4*)
18670 version_type=linux
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 soname_spec='${libname}${release}${shared_ext}$major'
18673 shlibpath_var=LD_LIBRARY_PATH
18677 dynamic_linker=no
18679 esac
18680 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18681 echo "${ECHO_T}$dynamic_linker" >&6; }
18682 test "$dynamic_linker" = no && can_build_shared=no
18684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18685 if test "$GCC" = yes; then
18686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18689 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18691 hardcode_action_GCJ=
18692 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18693 test -n "$runpath_var_GCJ" || \
18694 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18696 # We can hardcode non-existant directories.
18697 if test "$hardcode_direct_GCJ" != no &&
18698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18699 # have to relink, otherwise we might link with an installed library
18700 # when we should be linking with a yet-to-be-installed one
18701 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18702 test "$hardcode_minus_L_GCJ" != no; then
18703 # Linking always hardcodes the temporary library directory.
18704 hardcode_action_GCJ=relink
18705 else
18706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18707 hardcode_action_GCJ=immediate
18709 else
18710 # We cannot hardcode anything, or else we can only hardcode existing
18711 # directories.
18712 hardcode_action_GCJ=unsupported
18714 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18715 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18717 if test "$hardcode_action_GCJ" = relink; then
18718 # Fast installation is not supported
18719 enable_fast_install=no
18720 elif test "$shlibpath_overrides_runpath" = yes ||
18721 test "$enable_shared" = no; then
18722 # Fast installation is not necessary
18723 enable_fast_install=needless
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732 # See if we are running on zsh, and set the options which allow our commands through
18733 # without removal of \ escapes.
18734 if test -n "${ZSH_VERSION+set}" ; then
18735 setopt NO_GLOB_SUBST
18737 # Now quote all the things that may contain metacharacters while being
18738 # careful not to overquote the AC_SUBSTed values. We take copies of the
18739 # variables and quote the copies for generation of the libtool script.
18740 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18741 SED SHELL STRIP \
18742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744 deplibs_check_method reload_flag reload_cmds need_locks \
18745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746 lt_cv_sys_global_symbol_to_c_name_address \
18747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748 old_postinstall_cmds old_postuninstall_cmds \
18749 compiler_GCJ \
18750 CC_GCJ \
18751 LD_GCJ \
18752 lt_prog_compiler_wl_GCJ \
18753 lt_prog_compiler_pic_GCJ \
18754 lt_prog_compiler_static_GCJ \
18755 lt_prog_compiler_no_builtin_flag_GCJ \
18756 export_dynamic_flag_spec_GCJ \
18757 thread_safe_flag_spec_GCJ \
18758 whole_archive_flag_spec_GCJ \
18759 enable_shared_with_static_runtimes_GCJ \
18760 old_archive_cmds_GCJ \
18761 old_archive_from_new_cmds_GCJ \
18762 predep_objects_GCJ \
18763 postdep_objects_GCJ \
18764 predeps_GCJ \
18765 postdeps_GCJ \
18766 compiler_lib_search_path_GCJ \
18767 archive_cmds_GCJ \
18768 archive_expsym_cmds_GCJ \
18769 postinstall_cmds_GCJ \
18770 postuninstall_cmds_GCJ \
18771 old_archive_from_expsyms_cmds_GCJ \
18772 allow_undefined_flag_GCJ \
18773 no_undefined_flag_GCJ \
18774 export_symbols_cmds_GCJ \
18775 hardcode_libdir_flag_spec_GCJ \
18776 hardcode_libdir_flag_spec_ld_GCJ \
18777 hardcode_libdir_separator_GCJ \
18778 hardcode_automatic_GCJ \
18779 module_cmds_GCJ \
18780 module_expsym_cmds_GCJ \
18781 lt_cv_prog_compiler_c_o_GCJ \
18782 exclude_expsyms_GCJ \
18783 include_expsyms_GCJ; do
18785 case $var in
18786 old_archive_cmds_GCJ | \
18787 old_archive_from_new_cmds_GCJ | \
18788 archive_cmds_GCJ | \
18789 archive_expsym_cmds_GCJ | \
18790 module_cmds_GCJ | \
18791 module_expsym_cmds_GCJ | \
18792 old_archive_from_expsyms_cmds_GCJ | \
18793 export_symbols_cmds_GCJ | \
18794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795 postinstall_cmds | postuninstall_cmds | \
18796 old_postinstall_cmds | old_postuninstall_cmds | \
18797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798 # Double-quote double-evaled strings.
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18804 esac
18805 done
18807 case $lt_echo in
18808 *'\$0 --fallback-echo"')
18809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18811 esac
18813 cfgfile="$ofile"
18815 cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841 host_os=$host_os
18843 # The build system.
18844 build_alias=$build_alias
18845 build=$build
18846 build_os=$build_os
18848 # An echo program that does not interpret backslashes.
18849 echo=$lt_echo
18851 # The archiver.
18852 AR=$lt_AR
18853 AR_FLAGS=$lt_AR_FLAGS
18855 # A C compiler.
18856 LTCC=$lt_LTCC
18858 # LTCC compiler flags.
18859 LTCFLAGS=$lt_LTCFLAGS
18861 # A language-specific compiler.
18862 CC=$lt_compiler_GCJ
18864 # Is the compiler the GNU C compiler?
18865 with_gcc=$GCC_GCJ
18867 # An ERE matcher.
18868 EGREP=$lt_EGREP
18870 # The linker used to build libraries.
18871 LD=$lt_LD_GCJ
18873 # Whether we need hard or soft links.
18874 LN_S=$lt_LN_S
18876 # A BSD-compatible nm program.
18877 NM=$lt_NM
18879 # A symbol stripping program
18880 STRIP=$lt_STRIP
18882 # Used to examine libraries when file_magic_cmd begins "file"
18883 MAGIC_CMD=$MAGIC_CMD
18885 # Used on cygwin: DLL creation program.
18886 DLLTOOL="$DLLTOOL"
18888 # Used on cygwin: object dumper.
18889 OBJDUMP="$OBJDUMP"
18891 # Used on cygwin: assembler.
18892 AS="$AS"
18894 # The name of the directory that contains temporary libtool files.
18895 objdir=$objdir
18897 # How to create reloadable object files.
18898 reload_flag=$lt_reload_flag
18899 reload_cmds=$lt_reload_cmds
18901 # How to pass a linker flag through the compiler.
18902 wl=$lt_lt_prog_compiler_wl_GCJ
18904 # Object file suffix (normally "o").
18905 objext="$ac_objext"
18907 # Old archive suffix (normally "a").
18908 libext="$libext"
18910 # Shared library suffix (normally ".so").
18911 shrext_cmds='$shrext_cmds'
18913 # Executable file suffix (normally "").
18914 exeext="$exeext"
18916 # Additional compiler flags for building library objects.
18917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18918 pic_mode=$pic_mode
18920 # What is the maximum length of a command?
18921 max_cmd_len=$lt_cv_sys_max_cmd_len
18923 # Does compiler simultaneously support -c and -o options?
18924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18926 # Must we lock files when doing compilation?
18927 need_locks=$lt_need_locks
18929 # Do we need the lib prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18935 # Whether dlopen is supported.
18936 dlopen_support=$enable_dlopen
18938 # Whether dlopen of programs is supported.
18939 dlopen_self=$enable_dlopen_self
18941 # Whether dlopen of statically linked programs is supported.
18942 dlopen_self_static=$enable_dlopen_self_static
18944 # Compiler flag to prevent dynamic linking.
18945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18947 # Compiler flag to turn off builtin functions.
18948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18950 # Compiler flag to allow reflexive dlopens.
18951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18953 # Compiler flag to generate shared objects directly from archives.
18954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18956 # Compiler flag to generate thread-safe objects.
18957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18959 # Library versioning type.
18960 version_type=$version_type
18962 # Format of library name prefix.
18963 libname_spec=$lt_libname_spec
18965 # List of archive names. First name is the real one, the rest are links.
18966 # The last name is the one that the linker finds with -lNAME.
18967 library_names_spec=$lt_library_names_spec
18969 # The coded name of the library, if different from the real name.
18970 soname_spec=$lt_soname_spec
18972 # Commands used to build and install an old-style archive.
18973 RANLIB=$lt_RANLIB
18974 old_archive_cmds=$lt_old_archive_cmds_GCJ
18975 old_postinstall_cmds=$lt_old_postinstall_cmds
18976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18978 # Create an old-style archive from a shared archive.
18979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18981 # Create a temporary old-style archive to link instead of a shared archive.
18982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18984 # Commands used to build and install a shared archive.
18985 archive_cmds=$lt_archive_cmds_GCJ
18986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18987 postinstall_cmds=$lt_postinstall_cmds
18988 postuninstall_cmds=$lt_postuninstall_cmds
18990 # Commands used to build a loadable module (assumed same as above if empty)
18991 module_cmds=$lt_module_cmds_GCJ
18992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18998 # Dependencies to place before the objects being linked to create a
18999 # shared library.
19000 predep_objects=$lt_predep_objects_GCJ
19002 # Dependencies to place after the objects being linked to create a
19003 # shared library.
19004 postdep_objects=$lt_postdep_objects_GCJ
19006 # Dependencies to place before the objects being linked to create a
19007 # shared library.
19008 predeps=$lt_predeps_GCJ
19010 # Dependencies to place after the objects being linked to create a
19011 # shared library.
19012 postdeps=$lt_postdeps_GCJ
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19018 # Method to check whether dependent libraries are shared objects.
19019 deplibs_check_method=$lt_deplibs_check_method
19021 # Command to use when deplibs_check_method == file_magic.
19022 file_magic_cmd=$lt_file_magic_cmd
19024 # Flag that allows shared libraries with undefined symbols to be built.
19025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19027 # Flag that forces no undefined symbols.
19028 no_undefined_flag=$lt_no_undefined_flag_GCJ
19030 # Commands used to finish a libtool library installation in a directory.
19031 finish_cmds=$lt_finish_cmds
19033 # Same as above, but a single script fragment to be evaled but not shown.
19034 finish_eval=$lt_finish_eval
19036 # Take the output of nm and produce a listing of raw symbols and C names.
19037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19039 # Transform the output of nm in a proper C declaration
19040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19042 # Transform the output of nm in a C name address pair
19043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19045 # This is the shared library runtime path variable.
19046 runpath_var=$runpath_var
19048 # This is the shared library path variable.
19049 shlibpath_var=$shlibpath_var
19051 # Is shlibpath searched before the hard-coded library search path?
19052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19054 # How to hardcode a shared library path into an executable.
19055 hardcode_action=$hardcode_action_GCJ
19057 # Whether we should hardcode library paths into libraries.
19058 hardcode_into_libs=$hardcode_into_libs
19060 # Flag to hardcode \$libdir into a binary during linking.
19061 # This must work even if \$libdir does not exist.
19062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19064 # If ld is used when linking, flag to hardcode \$libdir into
19065 # a binary during linking. This must work even if \$libdir does
19066 # not exist.
19067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19069 # Whether we need a single -rpath flag with a separated argument.
19070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19073 # resulting binary.
19074 hardcode_direct=$hardcode_direct_GCJ
19076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19077 # resulting binary.
19078 hardcode_minus_L=$hardcode_minus_L_GCJ
19080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19081 # the resulting binary.
19082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19084 # Set to yes if building a shared library automatically hardcodes DIR into the library
19085 # and all subsequent libraries and executables linked against it.
19086 hardcode_automatic=$hardcode_automatic_GCJ
19088 # Variables whose values should be saved in libtool wrapper scripts and
19089 # restored at relink time.
19090 variables_saved_for_relink="$variables_saved_for_relink"
19092 # Whether libtool must link a program against all its dependency libraries.
19093 link_all_deplibs=$link_all_deplibs_GCJ
19095 # Compile-time system search path for libraries
19096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19098 # Run-time system search path for libraries
19099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19101 # Fix the shell variable \$srcfile for the compiler.
19102 fix_srcfile_path="$fix_srcfile_path_GCJ"
19104 # Set to yes if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_GCJ
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19110 # The commands to extract the exported symbol list from a shared archive.
19111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_GCJ
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_GCJ
19119 # ### END LIBTOOL TAG CONFIG: $tagname
19121 __EOF__
19124 else
19125 # If there is no Makefile yet, we rely on a make rule to execute
19126 # `config.status --recheck' to rerun these tests and create the
19127 # libtool script then.
19128 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19129 if test -f "$ltmain_in"; then
19130 test -f Makefile && make "$ltmain"
19135 ac_ext=cpp
19136 ac_cpp='$CXXCPP $CPPFLAGS'
19137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19141 CC="$lt_save_CC"
19143 else
19144 tagname=""
19151 # Source file extension for RC test sources.
19152 ac_ext=rc
19154 # Object file extension for compiled RC test sources.
19155 objext=o
19156 objext_RC=$objext
19158 # Code to be used in simple compile tests
19159 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19161 # Code to be used in simple link tests
19162 lt_simple_link_test_code="$lt_simple_compile_test_code"
19164 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19166 # If no C compiler was specified, use CC.
19167 LTCC=${LTCC-"$CC"}
19169 # If no C compiler flags were specified, use CFLAGS.
19170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19172 # Allow CC to be a program name with arguments.
19173 compiler=$CC
19176 # save warnings/boilerplate of simple test code
19177 ac_outfile=conftest.$ac_objext
19178 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19180 _lt_compiler_boilerplate=`cat conftest.err`
19181 $rm conftest*
19183 ac_outfile=conftest.$ac_objext
19184 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19186 _lt_linker_boilerplate=`cat conftest.err`
19187 $rm conftest*
19190 # Allow CC to be a program name with arguments.
19191 lt_save_CC="$CC"
19192 CC=${RC-"windres"}
19193 compiler=$CC
19194 compiler_RC=$CC
19195 for cc_temp in $compiler""; do
19196 case $cc_temp in
19197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19199 \-*) ;;
19200 *) break;;
19201 esac
19202 done
19203 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19205 lt_cv_prog_compiler_c_o_RC=yes
19207 # The else clause should only fire when bootstrapping the
19208 # libtool distribution, otherwise you forgot to ship ltmain.sh
19209 # with your package, and you will get complaints that there are
19210 # no rules to generate ltmain.sh.
19211 if test -f "$ltmain"; then
19212 # See if we are running on zsh, and set the options which allow our commands through
19213 # without removal of \ escapes.
19214 if test -n "${ZSH_VERSION+set}" ; then
19215 setopt NO_GLOB_SUBST
19217 # Now quote all the things that may contain metacharacters while being
19218 # careful not to overquote the AC_SUBSTed values. We take copies of the
19219 # variables and quote the copies for generation of the libtool script.
19220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19221 SED SHELL STRIP \
19222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19224 deplibs_check_method reload_flag reload_cmds need_locks \
19225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19226 lt_cv_sys_global_symbol_to_c_name_address \
19227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19228 old_postinstall_cmds old_postuninstall_cmds \
19229 compiler_RC \
19230 CC_RC \
19231 LD_RC \
19232 lt_prog_compiler_wl_RC \
19233 lt_prog_compiler_pic_RC \
19234 lt_prog_compiler_static_RC \
19235 lt_prog_compiler_no_builtin_flag_RC \
19236 export_dynamic_flag_spec_RC \
19237 thread_safe_flag_spec_RC \
19238 whole_archive_flag_spec_RC \
19239 enable_shared_with_static_runtimes_RC \
19240 old_archive_cmds_RC \
19241 old_archive_from_new_cmds_RC \
19242 predep_objects_RC \
19243 postdep_objects_RC \
19244 predeps_RC \
19245 postdeps_RC \
19246 compiler_lib_search_path_RC \
19247 archive_cmds_RC \
19248 archive_expsym_cmds_RC \
19249 postinstall_cmds_RC \
19250 postuninstall_cmds_RC \
19251 old_archive_from_expsyms_cmds_RC \
19252 allow_undefined_flag_RC \
19253 no_undefined_flag_RC \
19254 export_symbols_cmds_RC \
19255 hardcode_libdir_flag_spec_RC \
19256 hardcode_libdir_flag_spec_ld_RC \
19257 hardcode_libdir_separator_RC \
19258 hardcode_automatic_RC \
19259 module_cmds_RC \
19260 module_expsym_cmds_RC \
19261 lt_cv_prog_compiler_c_o_RC \
19262 exclude_expsyms_RC \
19263 include_expsyms_RC; do
19265 case $var in
19266 old_archive_cmds_RC | \
19267 old_archive_from_new_cmds_RC | \
19268 archive_cmds_RC | \
19269 archive_expsym_cmds_RC | \
19270 module_cmds_RC | \
19271 module_expsym_cmds_RC | \
19272 old_archive_from_expsyms_cmds_RC | \
19273 export_symbols_cmds_RC | \
19274 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19275 postinstall_cmds | postuninstall_cmds | \
19276 old_postinstall_cmds | old_postuninstall_cmds | \
19277 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19278 # Double-quote double-evaled strings.
19279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19284 esac
19285 done
19287 case $lt_echo in
19288 *'\$0 --fallback-echo"')
19289 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19291 esac
19293 cfgfile="$ofile"
19295 cat <<__EOF__ >> "$cfgfile"
19296 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19300 # Shell to use when invoking shell scripts.
19301 SHELL=$lt_SHELL
19303 # Whether or not to build shared libraries.
19304 build_libtool_libs=$enable_shared
19306 # Whether or not to build static libraries.
19307 build_old_libs=$enable_static
19309 # Whether or not to add -lc for building shared libraries.
19310 build_libtool_need_lc=$archive_cmds_need_lc_RC
19312 # Whether or not to disallow shared libs when runtime libs are static
19313 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19315 # Whether or not to optimize for fast installation.
19316 fast_install=$enable_fast_install
19318 # The host system.
19319 host_alias=$host_alias
19320 host=$host
19321 host_os=$host_os
19323 # The build system.
19324 build_alias=$build_alias
19325 build=$build
19326 build_os=$build_os
19328 # An echo program that does not interpret backslashes.
19329 echo=$lt_echo
19331 # The archiver.
19332 AR=$lt_AR
19333 AR_FLAGS=$lt_AR_FLAGS
19335 # A C compiler.
19336 LTCC=$lt_LTCC
19338 # LTCC compiler flags.
19339 LTCFLAGS=$lt_LTCFLAGS
19341 # A language-specific compiler.
19342 CC=$lt_compiler_RC
19344 # Is the compiler the GNU C compiler?
19345 with_gcc=$GCC_RC
19347 # An ERE matcher.
19348 EGREP=$lt_EGREP
19350 # The linker used to build libraries.
19351 LD=$lt_LD_RC
19353 # Whether we need hard or soft links.
19354 LN_S=$lt_LN_S
19356 # A BSD-compatible nm program.
19357 NM=$lt_NM
19359 # A symbol stripping program
19360 STRIP=$lt_STRIP
19362 # Used to examine libraries when file_magic_cmd begins "file"
19363 MAGIC_CMD=$MAGIC_CMD
19365 # Used on cygwin: DLL creation program.
19366 DLLTOOL="$DLLTOOL"
19368 # Used on cygwin: object dumper.
19369 OBJDUMP="$OBJDUMP"
19371 # Used on cygwin: assembler.
19372 AS="$AS"
19374 # The name of the directory that contains temporary libtool files.
19375 objdir=$objdir
19377 # How to create reloadable object files.
19378 reload_flag=$lt_reload_flag
19379 reload_cmds=$lt_reload_cmds
19381 # How to pass a linker flag through the compiler.
19382 wl=$lt_lt_prog_compiler_wl_RC
19384 # Object file suffix (normally "o").
19385 objext="$ac_objext"
19387 # Old archive suffix (normally "a").
19388 libext="$libext"
19390 # Shared library suffix (normally ".so").
19391 shrext_cmds='$shrext_cmds'
19393 # Executable file suffix (normally "").
19394 exeext="$exeext"
19396 # Additional compiler flags for building library objects.
19397 pic_flag=$lt_lt_prog_compiler_pic_RC
19398 pic_mode=$pic_mode
19400 # What is the maximum length of a command?
19401 max_cmd_len=$lt_cv_sys_max_cmd_len
19403 # Does compiler simultaneously support -c and -o options?
19404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19406 # Must we lock files when doing compilation?
19407 need_locks=$lt_need_locks
19409 # Do we need the lib prefix for modules?
19410 need_lib_prefix=$need_lib_prefix
19412 # Do we need a version for libraries?
19413 need_version=$need_version
19415 # Whether dlopen is supported.
19416 dlopen_support=$enable_dlopen
19418 # Whether dlopen of programs is supported.
19419 dlopen_self=$enable_dlopen_self
19421 # Whether dlopen of statically linked programs is supported.
19422 dlopen_self_static=$enable_dlopen_self_static
19424 # Compiler flag to prevent dynamic linking.
19425 link_static_flag=$lt_lt_prog_compiler_static_RC
19427 # Compiler flag to turn off builtin functions.
19428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19430 # Compiler flag to allow reflexive dlopens.
19431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19433 # Compiler flag to generate shared objects directly from archives.
19434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19436 # Compiler flag to generate thread-safe objects.
19437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19439 # Library versioning type.
19440 version_type=$version_type
19442 # Format of library name prefix.
19443 libname_spec=$lt_libname_spec
19445 # List of archive names. First name is the real one, the rest are links.
19446 # The last name is the one that the linker finds with -lNAME.
19447 library_names_spec=$lt_library_names_spec
19449 # The coded name of the library, if different from the real name.
19450 soname_spec=$lt_soname_spec
19452 # Commands used to build and install an old-style archive.
19453 RANLIB=$lt_RANLIB
19454 old_archive_cmds=$lt_old_archive_cmds_RC
19455 old_postinstall_cmds=$lt_old_postinstall_cmds
19456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19458 # Create an old-style archive from a shared archive.
19459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19461 # Create a temporary old-style archive to link instead of a shared archive.
19462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19464 # Commands used to build and install a shared archive.
19465 archive_cmds=$lt_archive_cmds_RC
19466 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19467 postinstall_cmds=$lt_postinstall_cmds
19468 postuninstall_cmds=$lt_postuninstall_cmds
19470 # Commands used to build a loadable module (assumed same as above if empty)
19471 module_cmds=$lt_module_cmds_RC
19472 module_expsym_cmds=$lt_module_expsym_cmds_RC
19474 # Commands to strip libraries.
19475 old_striplib=$lt_old_striplib
19476 striplib=$lt_striplib
19478 # Dependencies to place before the objects being linked to create a
19479 # shared library.
19480 predep_objects=$lt_predep_objects_RC
19482 # Dependencies to place after the objects being linked to create a
19483 # shared library.
19484 postdep_objects=$lt_postdep_objects_RC
19486 # Dependencies to place before the objects being linked to create a
19487 # shared library.
19488 predeps=$lt_predeps_RC
19490 # Dependencies to place after the objects being linked to create a
19491 # shared library.
19492 postdeps=$lt_postdeps_RC
19494 # The library search path used internally by the compiler when linking
19495 # a shared library.
19496 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19498 # Method to check whether dependent libraries are shared objects.
19499 deplibs_check_method=$lt_deplibs_check_method
19501 # Command to use when deplibs_check_method == file_magic.
19502 file_magic_cmd=$lt_file_magic_cmd
19504 # Flag that allows shared libraries with undefined symbols to be built.
19505 allow_undefined_flag=$lt_allow_undefined_flag_RC
19507 # Flag that forces no undefined symbols.
19508 no_undefined_flag=$lt_no_undefined_flag_RC
19510 # Commands used to finish a libtool library installation in a directory.
19511 finish_cmds=$lt_finish_cmds
19513 # Same as above, but a single script fragment to be evaled but not shown.
19514 finish_eval=$lt_finish_eval
19516 # Take the output of nm and produce a listing of raw symbols and C names.
19517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19519 # Transform the output of nm in a proper C declaration
19520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19522 # Transform the output of nm in a C name address pair
19523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19525 # This is the shared library runtime path variable.
19526 runpath_var=$runpath_var
19528 # This is the shared library path variable.
19529 shlibpath_var=$shlibpath_var
19531 # Is shlibpath searched before the hard-coded library search path?
19532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19534 # How to hardcode a shared library path into an executable.
19535 hardcode_action=$hardcode_action_RC
19537 # Whether we should hardcode library paths into libraries.
19538 hardcode_into_libs=$hardcode_into_libs
19540 # Flag to hardcode \$libdir into a binary during linking.
19541 # This must work even if \$libdir does not exist.
19542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19544 # If ld is used when linking, flag to hardcode \$libdir into
19545 # a binary during linking. This must work even if \$libdir does
19546 # not exist.
19547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19549 # Whether we need a single -rpath flag with a separated argument.
19550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19553 # resulting binary.
19554 hardcode_direct=$hardcode_direct_RC
19556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19557 # resulting binary.
19558 hardcode_minus_L=$hardcode_minus_L_RC
19560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19561 # the resulting binary.
19562 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19564 # Set to yes if building a shared library automatically hardcodes DIR into the library
19565 # and all subsequent libraries and executables linked against it.
19566 hardcode_automatic=$hardcode_automatic_RC
19568 # Variables whose values should be saved in libtool wrapper scripts and
19569 # restored at relink time.
19570 variables_saved_for_relink="$variables_saved_for_relink"
19572 # Whether libtool must link a program against all its dependency libraries.
19573 link_all_deplibs=$link_all_deplibs_RC
19575 # Compile-time system search path for libraries
19576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19578 # Run-time system search path for libraries
19579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19581 # Fix the shell variable \$srcfile for the compiler.
19582 fix_srcfile_path="$fix_srcfile_path_RC"
19584 # Set to yes if exported symbols are required.
19585 always_export_symbols=$always_export_symbols_RC
19587 # The commands to list exported symbols.
19588 export_symbols_cmds=$lt_export_symbols_cmds_RC
19590 # The commands to extract the exported symbol list from a shared archive.
19591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19593 # Symbols that should not be listed in the preloaded symbols.
19594 exclude_expsyms=$lt_exclude_expsyms_RC
19596 # Symbols that must always be exported.
19597 include_expsyms=$lt_include_expsyms_RC
19599 # ### END LIBTOOL TAG CONFIG: $tagname
19601 __EOF__
19604 else
19605 # If there is no Makefile yet, we rely on a make rule to execute
19606 # `config.status --recheck' to rerun these tests and create the
19607 # libtool script then.
19608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19609 if test -f "$ltmain_in"; then
19610 test -f Makefile && make "$ltmain"
19615 ac_ext=cpp
19616 ac_cpp='$CXXCPP $CPPFLAGS'
19617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19621 CC="$lt_save_CC"
19626 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19627 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19628 { (exit 1); exit 1; }; }
19630 esac
19632 # Append the new tag name to the list of available tags.
19633 if test -n "$tagname" ; then
19634 available_tags="$available_tags $tagname"
19637 done
19638 IFS="$lt_save_ifs"
19640 # Now substitute the updated list of available tags.
19641 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19642 mv "${ofile}T" "$ofile"
19643 chmod +x "$ofile"
19644 else
19645 rm -f "${ofile}T"
19646 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19647 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19648 { (exit 1); exit 1; }; }
19654 # This can be used to rebuild libtool when needed
19655 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19657 # Always use our own libtool.
19658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19660 # Prevent multiple expansion
19681 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19682 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19683 if test "${ac_cv_c_bigendian+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 # See if sys/param.h defines the BYTE_ORDER macro.
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 #include <sys/types.h>
19694 #include <sys/param.h>
19697 main ()
19699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19700 bogus endian macros
19701 #endif
19704 return 0;
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 # It does; now see whether it defined to BIG_ENDIAN or not.
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <sys/types.h>
19749 #include <sys/param.h>
19752 main ()
19754 #if BYTE_ORDER != BIG_ENDIAN
19755 not big endian
19756 #endif
19759 return 0;
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_c_bigendian=yes
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_c_bigendian=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 # It does not; compile a test program.
19810 if test "$cross_compiling" = yes; then
19811 # try to guess the endianness by grepping values into an object file
19812 ac_cv_c_bigendian=unknown
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19820 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19821 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19822 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19823 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19824 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19826 main ()
19828 _ascii (); _ebcdic ();
19830 return 0;
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19868 ac_cv_c_bigendian=yes
19870 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19871 if test "$ac_cv_c_bigendian" = unknown; then
19872 ac_cv_c_bigendian=no
19873 else
19874 # finding both strings is unlikely to happen, but who knows?
19875 ac_cv_c_bigendian=unknown
19878 else
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 else
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 $ac_includes_default
19895 main ()
19898 /* Are we little or big endian? From Harbison&Steele. */
19899 union
19901 long int l;
19902 char c[sizeof (long int)];
19903 } u;
19904 u.l = 1;
19905 return u.c[sizeof (long int) - 1] == 1;
19908 return 0;
19910 _ACEOF
19911 rm -f conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916 esac
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_cv_c_bigendian=no
19932 else
19933 echo "$as_me: program exited with status $ac_status" >&5
19934 echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 ( exit $ac_status )
19938 ac_cv_c_bigendian=yes
19940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19950 case $ac_cv_c_bigendian in
19951 yes)
19953 cat >>confdefs.h <<\_ACEOF
19954 #define WORDS_BIGENDIAN 1
19955 _ACEOF
19960 { { echo "$as_me:$LINENO: error: unknown endianness
19961 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19962 echo "$as_me: error: unknown endianness
19963 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19964 { (exit 1); exit 1; }; } ;;
19965 esac
19967 { echo "$as_me:$LINENO: checking host system type" >&5
19968 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19969 if test "${ac_cv_host+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 if test "x$host_alias" = x; then
19973 ac_cv_host=$ac_cv_build
19974 else
19975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19976 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19977 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19978 { (exit 1); exit 1; }; }
19982 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19983 echo "${ECHO_T}$ac_cv_host" >&6; }
19984 case $ac_cv_host in
19985 *-*-*) ;;
19986 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19987 echo "$as_me: error: invalid value of canonical host" >&2;}
19988 { (exit 1); exit 1; }; };;
19989 esac
19990 host=$ac_cv_host
19991 ac_save_IFS=$IFS; IFS='-'
19992 set x $ac_cv_host
19993 shift
19994 host_cpu=$1
19995 host_vendor=$2
19996 shift; shift
19997 # Remember, the first character of IFS is used to create $*,
19998 # except with old shells:
19999 host_os=$*
20000 IFS=$ac_save_IFS
20001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
20004 for ac_prog in flex lex
20006 # Extract the first word of "$ac_prog", so it can be a program name with args.
20007 set dummy $ac_prog; ac_word=$2
20008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20010 if test "${ac_cv_prog_LEX+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013 if test -n "$LEX"; then
20014 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20015 else
20016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20017 for as_dir in $PATH
20019 IFS=$as_save_IFS
20020 test -z "$as_dir" && as_dir=.
20021 for ac_exec_ext in '' $ac_executable_extensions; do
20022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20023 ac_cv_prog_LEX="$ac_prog"
20024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20025 break 2
20027 done
20028 done
20029 IFS=$as_save_IFS
20033 LEX=$ac_cv_prog_LEX
20034 if test -n "$LEX"; then
20035 { echo "$as_me:$LINENO: result: $LEX" >&5
20036 echo "${ECHO_T}$LEX" >&6; }
20037 else
20038 { echo "$as_me:$LINENO: result: no" >&5
20039 echo "${ECHO_T}no" >&6; }
20043 test -n "$LEX" && break
20044 done
20045 test -n "$LEX" || LEX=":"
20047 if test -z "$LEXLIB"
20048 then
20049 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
20050 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
20051 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-lfl $LIBS"
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h. */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char yywrap ();
20071 main ()
20073 return yywrap ();
20075 return 0;
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_link") 2>conftest.er1
20086 ac_status=$?
20087 grep -v '^ *+' conftest.er1 >conftest.err
20088 rm -f conftest.er1
20089 cat conftest.err >&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } &&
20092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20093 { (case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_try") 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; } &&
20102 { ac_try='test -s conftest$ac_exeext'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_cv_lib_fl_yywrap=yes
20113 else
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_lib_fl_yywrap=no
20120 rm -f core conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20124 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20125 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
20126 if test $ac_cv_lib_fl_yywrap = yes; then
20127 LEXLIB="-lfl"
20128 else
20129 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
20130 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
20131 if test "${ac_cv_lib_l_yywrap+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134 ac_check_lib_save_LIBS=$LIBS
20135 LIBS="-ll $LIBS"
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h. */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20143 /* Override any GCC internal prototype to avoid an error.
20144 Use char because int might match the return type of a GCC
20145 builtin and then its argument prototype would still apply. */
20146 #ifdef __cplusplus
20147 extern "C"
20148 #endif
20149 char yywrap ();
20151 main ()
20153 return yywrap ();
20155 return 0;
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_link") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20173 { (case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_try") 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_lib_l_yywrap=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_cv_lib_l_yywrap=no
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20204 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20205 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
20206 if test $ac_cv_lib_l_yywrap = yes; then
20207 LEXLIB="-ll"
20214 if test "x$LEX" != "x:"; then
20215 { echo "$as_me:$LINENO: checking lex output file root" >&5
20216 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20217 if test "${ac_cv_prog_lex_root+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220 # The minimal lex program is just a single line: %%. But some broken lexes
20221 # (Solaris, I think it was) want two %% lines, so accommodate them.
20222 cat >conftest.l <<_ACEOF
20225 _ACEOF
20226 { (ac_try="$LEX conftest.l"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$LEX conftest.l") 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }
20236 if test -f lex.yy.c; then
20237 ac_cv_prog_lex_root=lex.yy
20238 elif test -f lexyy.c; then
20239 ac_cv_prog_lex_root=lexyy
20240 else
20241 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20242 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20243 { (exit 1); exit 1; }; }
20246 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20247 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20248 rm -f conftest.l
20249 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20251 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20252 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20253 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256 # POSIX says lex can declare yytext either as a pointer or an array; the
20257 # default is implementation-dependent. Figure out which it is, since
20258 # not all implementations provide the %pointer and %array declarations.
20259 ac_cv_prog_lex_yytext_pointer=no
20260 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
20261 ac_save_LIBS=$LIBS
20262 LIBS="$LIBS $LEXLIB"
20263 cat >conftest.$ac_ext <<_ACEOF
20264 `cat $LEX_OUTPUT_ROOT.c`
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20281 { (case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_try") 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } &&
20290 { ac_try='test -s conftest$ac_exeext'
20291 { (case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_try") 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_cv_prog_lex_yytext_pointer=yes
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20308 rm -f core conftest.err conftest.$ac_objext \
20309 conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_save_LIBS
20311 rm -f "${LEX_OUTPUT_ROOT}.c"
20314 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20315 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20316 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20318 cat >>confdefs.h <<\_ACEOF
20319 #define YYTEXT_POINTER 1
20320 _ACEOF
20325 if test "$LEX" = :; then
20326 LEX=${am_missing_run}flex
20328 for ac_prog in 'bison -y' byacc
20330 # Extract the first word of "$ac_prog", so it can be a program name with args.
20331 set dummy $ac_prog; ac_word=$2
20332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20334 if test "${ac_cv_prog_YACC+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 if test -n "$YACC"; then
20338 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20339 else
20340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341 for as_dir in $PATH
20343 IFS=$as_save_IFS
20344 test -z "$as_dir" && as_dir=.
20345 for ac_exec_ext in '' $ac_executable_extensions; do
20346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20347 ac_cv_prog_YACC="$ac_prog"
20348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20349 break 2
20351 done
20352 done
20353 IFS=$as_save_IFS
20357 YACC=$ac_cv_prog_YACC
20358 if test -n "$YACC"; then
20359 { echo "$as_me:$LINENO: result: $YACC" >&5
20360 echo "${ECHO_T}$YACC" >&6; }
20361 else
20362 { echo "$as_me:$LINENO: result: no" >&5
20363 echo "${ECHO_T}no" >&6; }
20367 test -n "$YACC" && break
20368 done
20369 test -n "$YACC" || YACC="yacc"
20372 case "${host_os}" in
20373 *linux* )
20374 OSTYPE=linux
20376 esac
20377 case "${host_cpu}" in
20378 i686 | i386 )
20379 CPUTYPE=i686
20381 esac
20382 echo "#ifndef BUILD_H" >build.h
20383 echo "#define BUILD_H" >>build.h
20384 echo "#define CSQL" >>build.h
20385 echo "#define ${OSTYPE}" >>build.h
20386 echo "#define ${CPUTYPE}" >>build.h
20387 echo "#endif " >>build.h
20388 cp build.h include
20404 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
20405 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
20406 signal.h
20408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 ac_res=`eval echo '${'$as_ac_Header'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417 echo "${ECHO_T}$ac_res" >&6; }
20418 else
20419 # Is the header compilable?
20420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20429 #include <$ac_header>
20430 _ACEOF
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20439 ac_status=$?
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest.$ac_objext'
20456 { (case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_header_compiler=yes
20466 else
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_header_compiler=no
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20475 echo "${ECHO_T}$ac_header_compiler" >&6; }
20477 # Is the header present?
20478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #include <$ac_header>
20487 _ACEOF
20488 if { (ac_try="$ac_cpp conftest.$ac_ext"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } >/dev/null; then
20501 if test -s conftest.err; then
20502 ac_cpp_err=$ac_cxx_preproc_warn_flag
20503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20504 else
20505 ac_cpp_err=
20507 else
20508 ac_cpp_err=yes
20510 if test -z "$ac_cpp_err"; then
20511 ac_header_preproc=yes
20512 else
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_header_preproc=no
20519 rm -f conftest.err conftest.$ac_ext
20520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20521 echo "${ECHO_T}$ac_header_preproc" >&6; }
20523 # So? What about this header?
20524 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20525 yes:no: )
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20530 ac_header_preproc=yes
20532 no:yes:* )
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20547 esac
20548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553 eval "$as_ac_Header=\$ac_header_preproc"
20555 ac_res=`eval echo '${'$as_ac_Header'}'`
20556 { echo "$as_me:$LINENO: result: $ac_res" >&5
20557 echo "${ECHO_T}$ac_res" >&6; }
20560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20563 _ACEOF
20567 done
20572 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile test/Makefile test/storage/Makefile"
20574 cat >confcache <<\_ACEOF
20575 # This file is a shell script that caches the results of configure
20576 # tests run on this system so they can be shared between configure
20577 # scripts and configure runs, see configure's option --config-cache.
20578 # It is not useful on other systems. If it contains results you don't
20579 # want to keep, you may remove or edit it.
20581 # config.status only pays attention to the cache file if you give it
20582 # the --recheck option to rerun configure.
20584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20586 # following values.
20588 _ACEOF
20590 # The following way of writing the cache mishandles newlines in values,
20591 # but we know of no workaround that is simple, portable, and efficient.
20592 # So, we kill variables containing newlines.
20593 # Ultrix sh set writes to stderr and can't be redirected directly,
20594 # and sets the high bit in the cache file unless we assign to the vars.
20596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20597 eval ac_val=\$$ac_var
20598 case $ac_val in #(
20599 *${as_nl}*)
20600 case $ac_var in #(
20601 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20603 esac
20604 case $ac_var in #(
20605 _ | IFS | as_nl) ;; #(
20606 *) $as_unset $ac_var ;;
20607 esac ;;
20608 esac
20609 done
20611 (set) 2>&1 |
20612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20613 *${as_nl}ac_space=\ *)
20614 # `set' does not quote correctly, so add quotes (double-quote
20615 # substitution turns \\\\ into \\, and sed turns \\ into \).
20616 sed -n \
20617 "s/'/'\\\\''/g;
20618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20619 ;; #(
20621 # `set' quotes correctly as required by POSIX, so do not add quotes.
20622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20624 esac |
20625 sort
20627 sed '
20628 /^ac_cv_env_/b end
20629 t clear
20630 :clear
20631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20632 t end
20633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20634 :end' >>confcache
20635 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20636 if test -w "$cache_file"; then
20637 test "x$cache_file" != "x/dev/null" &&
20638 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20639 echo "$as_me: updating cache $cache_file" >&6;}
20640 cat confcache >$cache_file
20641 else
20642 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20643 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20646 rm -f confcache
20648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20649 # Let make expand exec_prefix.
20650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20652 DEFS=-DHAVE_CONFIG_H
20654 ac_libobjs=
20655 ac_ltlibobjs=
20656 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20657 # 1. Remove the extension, and $U if already installed.
20658 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20659 ac_i=`echo "$ac_i" | sed "$ac_script"`
20660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20661 # will be set to the directory where LIBOBJS objects are built.
20662 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20663 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20664 done
20665 LIBOBJS=$ac_libobjs
20667 LTLIBOBJS=$ac_ltlibobjs
20670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20671 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20672 Usually this means the macro was only invoked conditionally." >&5
20673 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20674 Usually this means the macro was only invoked conditionally." >&2;}
20675 { (exit 1); exit 1; }; }
20677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20678 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20679 Usually this means the macro was only invoked conditionally." >&5
20680 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20681 Usually this means the macro was only invoked conditionally." >&2;}
20682 { (exit 1); exit 1; }; }
20684 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20685 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20686 Usually this means the macro was only invoked conditionally." >&5
20687 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20688 Usually this means the macro was only invoked conditionally." >&2;}
20689 { (exit 1); exit 1; }; }
20692 : ${CONFIG_STATUS=./config.status}
20693 ac_clean_files_save=$ac_clean_files
20694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20697 cat >$CONFIG_STATUS <<_ACEOF
20698 #! $SHELL
20699 # Generated by $as_me.
20700 # Run this file to recreate the current configuration.
20701 # Compiler output produced by configure, useful for debugging
20702 # configure, is in config.log if it exists.
20704 debug=false
20705 ac_cs_recheck=false
20706 ac_cs_silent=false
20707 SHELL=\${CONFIG_SHELL-$SHELL}
20708 _ACEOF
20710 cat >>$CONFIG_STATUS <<\_ACEOF
20711 ## --------------------- ##
20712 ## M4sh Initialization. ##
20713 ## --------------------- ##
20715 # Be Bourne compatible
20716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20717 emulate sh
20718 NULLCMD=:
20719 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20720 # is contrary to our usage. Disable this feature.
20721 alias -g '${1+"$@"}'='"$@"'
20722 setopt NO_GLOB_SUBST
20723 else
20724 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20726 BIN_SH=xpg4; export BIN_SH # for Tru64
20727 DUALCASE=1; export DUALCASE # for MKS sh
20730 # PATH needs CR
20731 # Avoid depending upon Character Ranges.
20732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20735 as_cr_digits='0123456789'
20736 as_cr_alnum=$as_cr_Letters$as_cr_digits
20738 # The user is always right.
20739 if test "${PATH_SEPARATOR+set}" != set; then
20740 echo "#! /bin/sh" >conf$$.sh
20741 echo "exit 0" >>conf$$.sh
20742 chmod +x conf$$.sh
20743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20744 PATH_SEPARATOR=';'
20745 else
20746 PATH_SEPARATOR=:
20748 rm -f conf$$.sh
20751 # Support unset when possible.
20752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20753 as_unset=unset
20754 else
20755 as_unset=false
20759 # IFS
20760 # We need space, tab and new line, in precisely that order. Quoting is
20761 # there to prevent editors from complaining about space-tab.
20762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20763 # splitting by setting IFS to empty value.)
20764 as_nl='
20766 IFS=" "" $as_nl"
20768 # Find who we are. Look in the path if we contain no directory separator.
20769 case $0 in
20770 *[\\/]* ) as_myself=$0 ;;
20771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20772 for as_dir in $PATH
20774 IFS=$as_save_IFS
20775 test -z "$as_dir" && as_dir=.
20776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20777 done
20778 IFS=$as_save_IFS
20781 esac
20782 # We did not find ourselves, most probably we were run as `sh COMMAND'
20783 # in which case we are not to be found in the path.
20784 if test "x$as_myself" = x; then
20785 as_myself=$0
20787 if test ! -f "$as_myself"; then
20788 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20789 { (exit 1); exit 1; }
20792 # Work around bugs in pre-3.0 UWIN ksh.
20793 for as_var in ENV MAIL MAILPATH
20794 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20795 done
20796 PS1='$ '
20797 PS2='> '
20798 PS4='+ '
20800 # NLS nuisances.
20801 for as_var in \
20802 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20803 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20804 LC_TELEPHONE LC_TIME
20806 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20807 eval $as_var=C; export $as_var
20808 else
20809 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20811 done
20813 # Required to use basename.
20814 if expr a : '\(a\)' >/dev/null 2>&1 &&
20815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20816 as_expr=expr
20817 else
20818 as_expr=false
20821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20822 as_basename=basename
20823 else
20824 as_basename=false
20828 # Name of the executable.
20829 as_me=`$as_basename -- "$0" ||
20830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20831 X"$0" : 'X\(//\)$' \| \
20832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20833 echo X/"$0" |
20834 sed '/^.*\/\([^/][^/]*\)\/*$/{
20835 s//\1/
20838 /^X\/\(\/\/\)$/{
20839 s//\1/
20842 /^X\/\(\/\).*/{
20843 s//\1/
20846 s/.*/./; q'`
20848 # CDPATH.
20849 $as_unset CDPATH
20853 as_lineno_1=$LINENO
20854 as_lineno_2=$LINENO
20855 test "x$as_lineno_1" != "x$as_lineno_2" &&
20856 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20858 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20859 # uniformly replaced by the line number. The first 'sed' inserts a
20860 # line-number line after each line using $LINENO; the second 'sed'
20861 # does the real work. The second script uses 'N' to pair each
20862 # line-number line with the line containing $LINENO, and appends
20863 # trailing '-' during substitution so that $LINENO is not a special
20864 # case at line end.
20865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20866 # scripts with optimization help from Paolo Bonzini. Blame Lee
20867 # E. McMahon (1931-1989) for sed's syntax. :-)
20868 sed -n '
20870 /[$]LINENO/=
20871 ' <$as_myself |
20872 sed '
20873 s/[$]LINENO.*/&-/
20874 t lineno
20876 :lineno
20878 :loop
20879 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20880 t loop
20881 s/-\n.*//
20882 ' >$as_me.lineno &&
20883 chmod +x "$as_me.lineno" ||
20884 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20885 { (exit 1); exit 1; }; }
20887 # Don't try to exec as it changes $[0], causing all sort of problems
20888 # (the dirname of $[0] is not the place where we might find the
20889 # original and so on. Autoconf is especially sensitive to this).
20890 . "./$as_me.lineno"
20891 # Exit status is that of the last command.
20892 exit
20896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20897 as_dirname=dirname
20898 else
20899 as_dirname=false
20902 ECHO_C= ECHO_N= ECHO_T=
20903 case `echo -n x` in
20904 -n*)
20905 case `echo 'x\c'` in
20906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20907 *) ECHO_C='\c';;
20908 esac;;
20910 ECHO_N='-n';;
20911 esac
20913 if expr a : '\(a\)' >/dev/null 2>&1 &&
20914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20915 as_expr=expr
20916 else
20917 as_expr=false
20920 rm -f conf$$ conf$$.exe conf$$.file
20921 if test -d conf$$.dir; then
20922 rm -f conf$$.dir/conf$$.file
20923 else
20924 rm -f conf$$.dir
20925 mkdir conf$$.dir
20927 echo >conf$$.file
20928 if ln -s conf$$.file conf$$ 2>/dev/null; then
20929 as_ln_s='ln -s'
20930 # ... but there are two gotchas:
20931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20933 # In both cases, we have to default to `cp -p'.
20934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20935 as_ln_s='cp -p'
20936 elif ln conf$$.file conf$$ 2>/dev/null; then
20937 as_ln_s=ln
20938 else
20939 as_ln_s='cp -p'
20941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20942 rmdir conf$$.dir 2>/dev/null
20944 if mkdir -p . 2>/dev/null; then
20945 as_mkdir_p=:
20946 else
20947 test -d ./-p && rmdir ./-p
20948 as_mkdir_p=false
20951 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20952 # systems may use methods other than mode bits to determine executability.
20953 cat >conf$$.file <<_ASEOF
20954 #! /bin/sh
20955 exit 0
20956 _ASEOF
20957 chmod +x conf$$.file
20958 if test -x conf$$.file >/dev/null 2>&1; then
20959 as_executable_p="test -x"
20960 else
20961 as_executable_p=:
20963 rm -f conf$$.file
20965 # Sed expression to map a string onto a valid CPP name.
20966 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20968 # Sed expression to map a string onto a valid variable name.
20969 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20972 exec 6>&1
20974 # Save the log message, to keep $[0] and so on meaningful, and to
20975 # report actual input values of CONFIG_FILES etc. instead of their
20976 # values after options handling.
20977 ac_log="
20978 This file was extended by $as_me, which was
20979 generated by GNU Autoconf 2.60. Invocation command line was
20981 CONFIG_FILES = $CONFIG_FILES
20982 CONFIG_HEADERS = $CONFIG_HEADERS
20983 CONFIG_LINKS = $CONFIG_LINKS
20984 CONFIG_COMMANDS = $CONFIG_COMMANDS
20985 $ $0 $@
20987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20990 _ACEOF
20992 cat >>$CONFIG_STATUS <<_ACEOF
20993 # Files that config.status was made for.
20994 config_files="$ac_config_files"
20995 config_headers="$ac_config_headers"
20996 config_commands="$ac_config_commands"
20998 _ACEOF
21000 cat >>$CONFIG_STATUS <<\_ACEOF
21001 ac_cs_usage="\
21002 \`$as_me' instantiates files from templates according to the
21003 current configuration.
21005 Usage: $0 [OPTIONS] [FILE]...
21007 -h, --help print this help, then exit
21008 -V, --version print version number, then exit
21009 -q, --quiet do not print progress messages
21010 -d, --debug don't remove temporary files
21011 --recheck update $as_me by reconfiguring in the same conditions
21012 --file=FILE[:TEMPLATE]
21013 instantiate the configuration file FILE
21014 --header=FILE[:TEMPLATE]
21015 instantiate the configuration header FILE
21017 Configuration files:
21018 $config_files
21020 Configuration headers:
21021 $config_headers
21023 Configuration commands:
21024 $config_commands
21026 Report bugs to <bug-autoconf@gnu.org>."
21028 _ACEOF
21029 cat >>$CONFIG_STATUS <<_ACEOF
21030 ac_cs_version="\\
21031 config.status
21032 configured by $0, generated by GNU Autoconf 2.60,
21033 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21035 Copyright (C) 2006 Free Software Foundation, Inc.
21036 This config.status script is free software; the Free Software Foundation
21037 gives unlimited permission to copy, distribute and modify it."
21039 ac_pwd='$ac_pwd'
21040 srcdir='$srcdir'
21041 INSTALL='$INSTALL'
21042 _ACEOF
21044 cat >>$CONFIG_STATUS <<\_ACEOF
21045 # If no file are specified by the user, then we need to provide default
21046 # value. By we need to know if files were specified by the user.
21047 ac_need_defaults=:
21048 while test $# != 0
21050 case $1 in
21051 --*=*)
21052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21053 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21054 ac_shift=:
21057 ac_option=$1
21058 ac_optarg=$2
21059 ac_shift=shift
21061 esac
21063 case $ac_option in
21064 # Handling of the options.
21065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21066 ac_cs_recheck=: ;;
21067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21068 echo "$ac_cs_version"; exit ;;
21069 --debug | --debu | --deb | --de | --d | -d )
21070 debug=: ;;
21071 --file | --fil | --fi | --f )
21072 $ac_shift
21073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21074 ac_need_defaults=false;;
21075 --header | --heade | --head | --hea )
21076 $ac_shift
21077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21078 ac_need_defaults=false;;
21079 --he | --h)
21080 # Conflict between --help and --header
21081 { echo "$as_me: error: ambiguous option: $1
21082 Try \`$0 --help' for more information." >&2
21083 { (exit 1); exit 1; }; };;
21084 --help | --hel | -h )
21085 echo "$ac_cs_usage"; exit ;;
21086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21088 ac_cs_silent=: ;;
21090 # This is an error.
21091 -*) { echo "$as_me: error: unrecognized option: $1
21092 Try \`$0 --help' for more information." >&2
21093 { (exit 1); exit 1; }; } ;;
21095 *) ac_config_targets="$ac_config_targets $1"
21096 ac_need_defaults=false ;;
21098 esac
21099 shift
21100 done
21102 ac_configure_extra_args=
21104 if $ac_cs_silent; then
21105 exec 6>/dev/null
21106 ac_configure_extra_args="$ac_configure_extra_args --silent"
21109 _ACEOF
21110 cat >>$CONFIG_STATUS <<_ACEOF
21111 if \$ac_cs_recheck; then
21112 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21113 CONFIG_SHELL=$SHELL
21114 export CONFIG_SHELL
21115 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21118 _ACEOF
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 exec 5>>config.log
21122 echo
21123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21124 ## Running $as_me. ##
21125 _ASBOX
21126 echo "$ac_log"
21127 } >&5
21129 _ACEOF
21130 cat >>$CONFIG_STATUS <<_ACEOF
21132 # INIT-COMMANDS
21134 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21136 _ACEOF
21138 cat >>$CONFIG_STATUS <<\_ACEOF
21140 # Handling of arguments.
21141 for ac_config_target in $ac_config_targets
21143 case $ac_config_target in
21144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21145 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21147 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21148 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21149 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
21150 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21151 "test/storage/Makefile") CONFIG_FILES="$CONFIG_FILES test/storage/Makefile" ;;
21153 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21154 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21155 { (exit 1); exit 1; }; };;
21156 esac
21157 done
21160 # If the user did not use the arguments to specify the items to instantiate,
21161 # then the envvar interface is used. Set only those that are not.
21162 # We use the long form for the default assignment because of an extremely
21163 # bizarre bug on SunOS 4.1.3.
21164 if $ac_need_defaults; then
21165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21170 # Have a temporary directory for convenience. Make it in the build tree
21171 # simply because there is no reason against having it here, and in addition,
21172 # creating and moving files from /tmp can sometimes cause problems.
21173 # Hook for its removal unless debugging.
21174 # Note that there is a small window in which the directory will not be cleaned:
21175 # after its creation but before its name has been assigned to `$tmp'.
21176 $debug ||
21178 tmp=
21179 trap 'exit_status=$?
21180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21182 trap '{ (exit 1); exit 1; }' 1 2 13 15
21184 # Create a (secure) tmp directory for tmp files.
21187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21188 test -n "$tmp" && test -d "$tmp"
21189 } ||
21191 tmp=./conf$$-$RANDOM
21192 (umask 077 && mkdir "$tmp")
21193 } ||
21195 echo "$me: cannot create a temporary directory in ." >&2
21196 { (exit 1); exit 1; }
21200 # Set up the sed scripts for CONFIG_FILES section.
21203 # No need to generate the scripts if there are no CONFIG_FILES.
21204 # This happens for instance when ./config.status config.h
21205 if test -n "$CONFIG_FILES"; then
21207 _ACEOF
21211 ac_delim='%!_!# '
21212 for ac_last_try in false false false false false :; do
21213 cat >conf$$subs.sed <<_ACEOF
21214 SHELL!$SHELL$ac_delim
21215 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21216 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21217 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21218 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21219 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21220 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21221 exec_prefix!$exec_prefix$ac_delim
21222 prefix!$prefix$ac_delim
21223 program_transform_name!$program_transform_name$ac_delim
21224 bindir!$bindir$ac_delim
21225 sbindir!$sbindir$ac_delim
21226 libexecdir!$libexecdir$ac_delim
21227 datarootdir!$datarootdir$ac_delim
21228 datadir!$datadir$ac_delim
21229 sysconfdir!$sysconfdir$ac_delim
21230 sharedstatedir!$sharedstatedir$ac_delim
21231 localstatedir!$localstatedir$ac_delim
21232 includedir!$includedir$ac_delim
21233 oldincludedir!$oldincludedir$ac_delim
21234 docdir!$docdir$ac_delim
21235 infodir!$infodir$ac_delim
21236 htmldir!$htmldir$ac_delim
21237 dvidir!$dvidir$ac_delim
21238 pdfdir!$pdfdir$ac_delim
21239 psdir!$psdir$ac_delim
21240 libdir!$libdir$ac_delim
21241 localedir!$localedir$ac_delim
21242 mandir!$mandir$ac_delim
21243 DEFS!$DEFS$ac_delim
21244 ECHO_C!$ECHO_C$ac_delim
21245 ECHO_N!$ECHO_N$ac_delim
21246 ECHO_T!$ECHO_T$ac_delim
21247 LIBS!$LIBS$ac_delim
21248 build_alias!$build_alias$ac_delim
21249 host_alias!$host_alias$ac_delim
21250 target_alias!$target_alias$ac_delim
21251 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21252 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21253 INSTALL_DATA!$INSTALL_DATA$ac_delim
21254 CYGPATH_W!$CYGPATH_W$ac_delim
21255 PACKAGE!$PACKAGE$ac_delim
21256 VERSION!$VERSION$ac_delim
21257 ACLOCAL!$ACLOCAL$ac_delim
21258 AUTOCONF!$AUTOCONF$ac_delim
21259 AUTOMAKE!$AUTOMAKE$ac_delim
21260 AUTOHEADER!$AUTOHEADER$ac_delim
21261 MAKEINFO!$MAKEINFO$ac_delim
21262 install_sh!$install_sh$ac_delim
21263 STRIP!$STRIP$ac_delim
21264 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21265 mkdir_p!$mkdir_p$ac_delim
21266 AWK!$AWK$ac_delim
21267 SET_MAKE!$SET_MAKE$ac_delim
21268 am__leading_dot!$am__leading_dot$ac_delim
21269 AMTAR!$AMTAR$ac_delim
21270 am__tar!$am__tar$ac_delim
21271 am__untar!$am__untar$ac_delim
21272 CC!$CC$ac_delim
21273 CFLAGS!$CFLAGS$ac_delim
21274 LDFLAGS!$LDFLAGS$ac_delim
21275 CPPFLAGS!$CPPFLAGS$ac_delim
21276 ac_ct_CC!$ac_ct_CC$ac_delim
21277 EXEEXT!$EXEEXT$ac_delim
21278 OBJEXT!$OBJEXT$ac_delim
21279 DEPDIR!$DEPDIR$ac_delim
21280 am__include!$am__include$ac_delim
21281 am__quote!$am__quote$ac_delim
21282 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21283 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21284 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21285 CCDEPMODE!$CCDEPMODE$ac_delim
21286 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21287 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21288 CXX!$CXX$ac_delim
21289 CXXFLAGS!$CXXFLAGS$ac_delim
21290 ac_ct_CXX!$ac_ct_CXX$ac_delim
21291 CXXDEPMODE!$CXXDEPMODE$ac_delim
21292 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21293 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21294 build!$build$ac_delim
21295 build_cpu!$build_cpu$ac_delim
21296 build_vendor!$build_vendor$ac_delim
21297 build_os!$build_os$ac_delim
21298 host!$host$ac_delim
21299 host_cpu!$host_cpu$ac_delim
21300 host_vendor!$host_vendor$ac_delim
21301 host_os!$host_os$ac_delim
21302 GREP!$GREP$ac_delim
21303 EGREP!$EGREP$ac_delim
21304 LN_S!$LN_S$ac_delim
21305 ECHO!$ECHO$ac_delim
21306 AR!$AR$ac_delim
21307 RANLIB!$RANLIB$ac_delim
21308 CPP!$CPP$ac_delim
21309 CXXCPP!$CXXCPP$ac_delim
21310 F77!$F77$ac_delim
21311 _ACEOF
21313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21314 break
21315 elif $ac_last_try; then
21316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21318 { (exit 1); exit 1; }; }
21319 else
21320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21322 done
21324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21325 if test -n "$ac_eof"; then
21326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21327 ac_eof=`expr $ac_eof + 1`
21330 cat >>$CONFIG_STATUS <<_ACEOF
21331 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21333 _ACEOF
21334 sed '
21335 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21336 s/^/s,@/; s/!/@,|#_!!_#|/
21339 s/'"$ac_delim"'$/,g/; t
21340 s/$/\\/; p
21341 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21342 ' >>$CONFIG_STATUS <conf$$subs.sed
21343 rm -f conf$$subs.sed
21344 cat >>$CONFIG_STATUS <<_ACEOF
21345 CEOF$ac_eof
21346 _ACEOF
21349 ac_delim='%!_!# '
21350 for ac_last_try in false false false false false :; do
21351 cat >conf$$subs.sed <<_ACEOF
21352 FFLAGS!$FFLAGS$ac_delim
21353 ac_ct_F77!$ac_ct_F77$ac_delim
21354 LIBTOOL!$LIBTOOL$ac_delim
21355 LEX!$LEX$ac_delim
21356 LEXLIB!$LEXLIB$ac_delim
21357 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21358 YACC!$YACC$ac_delim
21359 YFLAGS!$YFLAGS$ac_delim
21360 LIBOBJS!$LIBOBJS$ac_delim
21361 LTLIBOBJS!$LTLIBOBJS$ac_delim
21362 _ACEOF
21364 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21365 break
21366 elif $ac_last_try; then
21367 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21369 { (exit 1); exit 1; }; }
21370 else
21371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21373 done
21375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21376 if test -n "$ac_eof"; then
21377 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21378 ac_eof=`expr $ac_eof + 1`
21381 cat >>$CONFIG_STATUS <<_ACEOF
21382 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21384 _ACEOF
21385 sed '
21386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21387 s/^/s,@/; s/!/@,|#_!!_#|/
21390 s/'"$ac_delim"'$/,g/; t
21391 s/$/\\/; p
21392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21393 ' >>$CONFIG_STATUS <conf$$subs.sed
21394 rm -f conf$$subs.sed
21395 cat >>$CONFIG_STATUS <<_ACEOF
21396 :end
21397 s/|#_!!_#|//g
21398 CEOF$ac_eof
21399 _ACEOF
21402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21404 # trailing colons and then remove the whole line if VPATH becomes empty
21405 # (actually we leave an empty line to preserve line numbers).
21406 if test "x$srcdir" = x.; then
21407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21408 s/:*\$(srcdir):*/:/
21409 s/:*\${srcdir}:*/:/
21410 s/:*@srcdir@:*/:/
21411 s/^\([^=]*=[ ]*\):*/\1/
21412 s/:*$//
21413 s/^[^=]*=[ ]*$//
21417 cat >>$CONFIG_STATUS <<\_ACEOF
21418 fi # test -n "$CONFIG_FILES"
21421 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21423 case $ac_tag in
21424 :[FHLC]) ac_mode=$ac_tag; continue;;
21425 esac
21426 case $ac_mode$ac_tag in
21427 :[FHL]*:*);;
21428 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21429 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21430 { (exit 1); exit 1; }; };;
21431 :[FH]-) ac_tag=-:-;;
21432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21433 esac
21434 ac_save_IFS=$IFS
21435 IFS=:
21436 set x $ac_tag
21437 IFS=$ac_save_IFS
21438 shift
21439 ac_file=$1
21440 shift
21442 case $ac_mode in
21443 :L) ac_source=$1;;
21444 :[FH])
21445 ac_file_inputs=
21446 for ac_f
21448 case $ac_f in
21449 -) ac_f="$tmp/stdin";;
21450 *) # Look for the file first in the build tree, then in the source tree
21451 # (if the path is not absolute). The absolute path cannot be DOS-style,
21452 # because $ac_f cannot contain `:'.
21453 test -f "$ac_f" ||
21454 case $ac_f in
21455 [\\/$]*) false;;
21456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21457 esac ||
21458 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21459 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21460 { (exit 1); exit 1; }; };;
21461 esac
21462 ac_file_inputs="$ac_file_inputs $ac_f"
21463 done
21465 # Let's still pretend it is `configure' which instantiates (i.e., don't
21466 # use $as_me), people would be surprised to read:
21467 # /* config.h. Generated by config.status. */
21468 configure_input="Generated from "`IFS=:
21469 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21470 if test x"$ac_file" != x-; then
21471 configure_input="$ac_file. $configure_input"
21472 { echo "$as_me:$LINENO: creating $ac_file" >&5
21473 echo "$as_me: creating $ac_file" >&6;}
21476 case $ac_tag in
21477 *:-:* | *:-) cat >"$tmp/stdin";;
21478 esac
21480 esac
21482 ac_dir=`$as_dirname -- "$ac_file" ||
21483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21484 X"$ac_file" : 'X\(//\)[^/]' \| \
21485 X"$ac_file" : 'X\(//\)$' \| \
21486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21487 echo X"$ac_file" |
21488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21489 s//\1/
21492 /^X\(\/\/\)[^/].*/{
21493 s//\1/
21496 /^X\(\/\/\)$/{
21497 s//\1/
21500 /^X\(\/\).*/{
21501 s//\1/
21504 s/.*/./; q'`
21505 { as_dir="$ac_dir"
21506 case $as_dir in #(
21507 -*) as_dir=./$as_dir;;
21508 esac
21509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21510 as_dirs=
21511 while :; do
21512 case $as_dir in #(
21513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21514 *) as_qdir=$as_dir;;
21515 esac
21516 as_dirs="'$as_qdir' $as_dirs"
21517 as_dir=`$as_dirname -- "$as_dir" ||
21518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21519 X"$as_dir" : 'X\(//\)[^/]' \| \
21520 X"$as_dir" : 'X\(//\)$' \| \
21521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21522 echo X"$as_dir" |
21523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21524 s//\1/
21527 /^X\(\/\/\)[^/].*/{
21528 s//\1/
21531 /^X\(\/\/\)$/{
21532 s//\1/
21535 /^X\(\/\).*/{
21536 s//\1/
21539 s/.*/./; q'`
21540 test -d "$as_dir" && break
21541 done
21542 test -z "$as_dirs" || eval "mkdir $as_dirs"
21543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21545 { (exit 1); exit 1; }; }; }
21546 ac_builddir=.
21548 case "$ac_dir" in
21549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21552 # A ".." for each directory in $ac_dir_suffix.
21553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21554 case $ac_top_builddir_sub in
21555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21557 esac ;;
21558 esac
21559 ac_abs_top_builddir=$ac_pwd
21560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21561 # for backward compatibility:
21562 ac_top_builddir=$ac_top_build_prefix
21564 case $srcdir in
21565 .) # We are building in place.
21566 ac_srcdir=.
21567 ac_top_srcdir=$ac_top_builddir_sub
21568 ac_abs_top_srcdir=$ac_pwd ;;
21569 [\\/]* | ?:[\\/]* ) # Absolute name.
21570 ac_srcdir=$srcdir$ac_dir_suffix;
21571 ac_top_srcdir=$srcdir
21572 ac_abs_top_srcdir=$srcdir ;;
21573 *) # Relative name.
21574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21575 ac_top_srcdir=$ac_top_build_prefix$srcdir
21576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21577 esac
21578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21581 case $ac_mode in
21584 # CONFIG_FILE
21587 case $INSTALL in
21588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21590 esac
21591 _ACEOF
21593 cat >>$CONFIG_STATUS <<\_ACEOF
21594 # If the template does not know about datarootdir, expand it.
21595 # FIXME: This hack should be removed a few years after 2.60.
21596 ac_datarootdir_hack=; ac_datarootdir_seen=
21598 case `sed -n '/datarootdir/ {
21602 /@datadir@/p
21603 /@docdir@/p
21604 /@infodir@/p
21605 /@localedir@/p
21606 /@mandir@/p
21607 ' $ac_file_inputs` in
21608 *datarootdir*) ac_datarootdir_seen=yes;;
21609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21610 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21612 _ACEOF
21613 cat >>$CONFIG_STATUS <<_ACEOF
21614 ac_datarootdir_hack='
21615 s&@datadir@&$datadir&g
21616 s&@docdir@&$docdir&g
21617 s&@infodir@&$infodir&g
21618 s&@localedir@&$localedir&g
21619 s&@mandir@&$mandir&g
21620 s&\\\${datarootdir}&$datarootdir&g' ;;
21621 esac
21622 _ACEOF
21624 # Neutralize VPATH when `$srcdir' = `.'.
21625 # Shell code in configure.ac might set extrasub.
21626 # FIXME: do we really want to maintain this feature?
21627 cat >>$CONFIG_STATUS <<_ACEOF
21628 sed "$ac_vpsub
21629 $extrasub
21630 _ACEOF
21631 cat >>$CONFIG_STATUS <<\_ACEOF
21633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21634 s&@configure_input@&$configure_input&;t t
21635 s&@top_builddir@&$ac_top_builddir_sub&;t t
21636 s&@srcdir@&$ac_srcdir&;t t
21637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21638 s&@top_srcdir@&$ac_top_srcdir&;t t
21639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21640 s&@builddir@&$ac_builddir&;t t
21641 s&@abs_builddir@&$ac_abs_builddir&;t t
21642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21643 s&@INSTALL@&$ac_INSTALL&;t t
21644 $ac_datarootdir_hack
21645 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21650 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21651 which seems to be undefined. Please make sure it is defined." >&5
21652 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21653 which seems to be undefined. Please make sure it is defined." >&2;}
21655 rm -f "$tmp/stdin"
21656 case $ac_file in
21657 -) cat "$tmp/out"; rm -f "$tmp/out";;
21658 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21659 esac
21663 # CONFIG_HEADER
21665 _ACEOF
21667 # Transform confdefs.h into a sed script `conftest.defines', that
21668 # substitutes the proper values into config.h.in to produce config.h.
21669 rm -f conftest.defines conftest.tail
21670 # First, append a space to every undef/define line, to ease matching.
21671 echo 's/$/ /' >conftest.defines
21672 # Then, protect against being on the right side of a sed subst, or in
21673 # an unquoted here document, in config.status. If some macros were
21674 # called several times there might be several #defines for the same
21675 # symbol, which is useless. But do not sort them, since the last
21676 # AC_DEFINE must be honored.
21677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21678 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21679 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21680 # PARAMS is the parameter list in the macro definition--in most cases, it's
21681 # just an empty string.
21682 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21683 ac_dB='\\)[ (].*,\\1define\\2'
21684 ac_dC=' '
21685 ac_dD=' ,'
21687 uniq confdefs.h |
21688 sed -n '
21689 t rset
21690 :rset
21691 s/^[ ]*#[ ]*define[ ][ ]*//
21692 t ok
21695 s/[\\&,]/\\&/g
21696 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21697 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21698 ' >>conftest.defines
21700 # Remove the space that was appended to ease matching.
21701 # Then replace #undef with comments. This is necessary, for
21702 # example, in the case of _POSIX_SOURCE, which is predefined and required
21703 # on some systems where configure will not decide to define it.
21704 # (The regexp can be short, since the line contains either #define or #undef.)
21705 echo 's/ $//
21706 s,^[ #]*u.*,/* & */,' >>conftest.defines
21708 # Break up conftest.defines:
21709 ac_max_sed_lines=50
21711 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21712 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21713 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21714 # et cetera.
21715 ac_in='$ac_file_inputs'
21716 ac_out='"$tmp/out1"'
21717 ac_nxt='"$tmp/out2"'
21719 while :
21721 # Write a here document:
21722 cat >>$CONFIG_STATUS <<_ACEOF
21723 # First, check the format of the line:
21724 cat >"\$tmp/defines.sed" <<\\CEOF
21725 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21726 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21728 :def
21729 _ACEOF
21730 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21731 echo 'CEOF
21732 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21733 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21734 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21735 grep . conftest.tail >/dev/null || break
21736 rm -f conftest.defines
21737 mv conftest.tail conftest.defines
21738 done
21739 rm -f conftest.defines conftest.tail
21741 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21742 cat >>$CONFIG_STATUS <<\_ACEOF
21743 if test x"$ac_file" != x-; then
21744 echo "/* $configure_input */" >"$tmp/config.h"
21745 cat "$ac_result" >>"$tmp/config.h"
21746 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21747 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21748 echo "$as_me: $ac_file is unchanged" >&6;}
21749 else
21750 rm -f $ac_file
21751 mv "$tmp/config.h" $ac_file
21753 else
21754 echo "/* $configure_input */"
21755 cat "$ac_result"
21757 rm -f "$tmp/out12"
21758 # Compute $ac_file's index in $config_headers.
21759 _am_stamp_count=1
21760 for _am_header in $config_headers :; do
21761 case $_am_header in
21762 $ac_file | $ac_file:* )
21763 break ;;
21765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21766 esac
21767 done
21768 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21769 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X$ac_file : 'X\(//\)[^/]' \| \
21771 X$ac_file : 'X\(//\)$' \| \
21772 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21773 echo X$ac_file |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21775 s//\1/
21778 /^X\(\/\/\)[^/].*/{
21779 s//\1/
21782 /^X\(\/\/\)$/{
21783 s//\1/
21786 /^X\(\/\).*/{
21787 s//\1/
21790 s/.*/./; q'`/stamp-h$_am_stamp_count
21793 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21794 echo "$as_me: executing $ac_file commands" >&6;}
21796 esac
21799 case $ac_file$ac_mode in
21800 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21801 # Strip MF so we end up with the name of the file.
21802 mf=`echo "$mf" | sed -e 's/:.*$//'`
21803 # Check whether this is an Automake generated Makefile or not.
21804 # We used to match only the files named `Makefile.in', but
21805 # some people rename them; so instead we look at the file content.
21806 # Grep'ing the first line is not enough: some people post-process
21807 # each Makefile.in and add a new line on top of each file to say so.
21808 # So let's grep whole file.
21809 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21810 dirpart=`$as_dirname -- "$mf" ||
21811 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21812 X"$mf" : 'X\(//\)[^/]' \| \
21813 X"$mf" : 'X\(//\)$' \| \
21814 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21815 echo X"$mf" |
21816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21817 s//\1/
21820 /^X\(\/\/\)[^/].*/{
21821 s//\1/
21824 /^X\(\/\/\)$/{
21825 s//\1/
21828 /^X\(\/\).*/{
21829 s//\1/
21832 s/.*/./; q'`
21833 else
21834 continue
21836 # Extract the definition of DEPDIR, am__include, and am__quote
21837 # from the Makefile without running `make'.
21838 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21839 test -z "$DEPDIR" && continue
21840 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21841 test -z "am__include" && continue
21842 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21843 # When using ansi2knr, U may be empty or an underscore; expand it
21844 U=`sed -n 's/^U = //p' < "$mf"`
21845 # Find all dependency output files, they are included files with
21846 # $(DEPDIR) in their names. We invoke sed twice because it is the
21847 # simplest approach to changing $(DEPDIR) to its actual value in the
21848 # expansion.
21849 for file in `sed -n "
21850 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21851 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21852 # Make sure the directory exists.
21853 test -f "$dirpart/$file" && continue
21854 fdir=`$as_dirname -- "$file" ||
21855 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856 X"$file" : 'X\(//\)[^/]' \| \
21857 X"$file" : 'X\(//\)$' \| \
21858 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21859 echo X"$file" |
21860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21861 s//\1/
21864 /^X\(\/\/\)[^/].*/{
21865 s//\1/
21868 /^X\(\/\/\)$/{
21869 s//\1/
21872 /^X\(\/\).*/{
21873 s//\1/
21876 s/.*/./; q'`
21877 { as_dir=$dirpart/$fdir
21878 case $as_dir in #(
21879 -*) as_dir=./$as_dir;;
21880 esac
21881 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21882 as_dirs=
21883 while :; do
21884 case $as_dir in #(
21885 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21886 *) as_qdir=$as_dir;;
21887 esac
21888 as_dirs="'$as_qdir' $as_dirs"
21889 as_dir=`$as_dirname -- "$as_dir" ||
21890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21891 X"$as_dir" : 'X\(//\)[^/]' \| \
21892 X"$as_dir" : 'X\(//\)$' \| \
21893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21894 echo X"$as_dir" |
21895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21896 s//\1/
21899 /^X\(\/\/\)[^/].*/{
21900 s//\1/
21903 /^X\(\/\/\)$/{
21904 s//\1/
21907 /^X\(\/\).*/{
21908 s//\1/
21911 s/.*/./; q'`
21912 test -d "$as_dir" && break
21913 done
21914 test -z "$as_dirs" || eval "mkdir $as_dirs"
21915 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21916 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21917 { (exit 1); exit 1; }; }; }
21918 # echo "creating $dirpart/$file"
21919 echo '# dummy' > "$dirpart/$file"
21920 done
21921 done
21924 esac
21925 done # for ac_tag
21928 { (exit 0); exit 0; }
21929 _ACEOF
21930 chmod +x $CONFIG_STATUS
21931 ac_clean_files=$ac_clean_files_save
21934 # configure is writing to config.log, and then calls config.status.
21935 # config.status does its own redirection, appending to config.log.
21936 # Unfortunately, on DOS this fails, as config.log is still kept open
21937 # by configure, so config.status won't be able to write to it; its
21938 # output is simply discarded. So we exec the FD to /dev/null,
21939 # effectively closing config.log, so it can be properly (re)opened and
21940 # appended to by config.status. When coming back to configure, we
21941 # need to make the FD available again.
21942 if test "$no_create" != yes; then
21943 ac_cs_success=:
21944 ac_config_status_args=
21945 test "$silent" = yes &&
21946 ac_config_status_args="$ac_config_status_args --quiet"
21947 exec 5>/dev/null
21948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21949 exec 5>>config.log
21950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21951 # would make configure fail if this is the last instruction.
21952 $ac_cs_success || { (exit 1); exit 1; }