Tarball tree for barry-0.17.0.tar.bz2
[barry.git] / configure
blob55bace2beeadf19b7261d906bac9d61d93a7c2ba
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for barry 0.17.0.
5 # Report bugs to <barry-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='barry'
730 PACKAGE_TARNAME='barry'
731 PACKAGE_VERSION='0.17.0'
732 PACKAGE_STRING='barry 0.17.0'
733 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
735 ac_unique_file="src/barry.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 gt_needs=
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 INSTALL_PROGRAM
811 INSTALL_SCRIPT
812 INSTALL_DATA
813 am__isrc
814 CYGPATH_W
815 PACKAGE
816 VERSION
817 ACLOCAL
818 AUTOCONF
819 AUTOMAKE
820 AUTOHEADER
821 MAKEINFO
822 install_sh
823 STRIP
824 INSTALL_STRIP_PROGRAM
825 mkdir_p
827 SET_MAKE
828 am__leading_dot
829 AMTAR
830 am__tar
831 am__untar
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
849 GREP
850 EGREP
851 USE_NLS
852 GETTEXT_MACRO_VERSION
853 MSGFMT
854 GMSGFMT
855 MSGFMT_015
856 GMSGFMT_015
857 XGETTEXT
858 XGETTEXT_015
859 MSGMERGE
860 XGETTEXT_EXTRA_OPTIONS
861 build
862 build_cpu
863 build_vendor
864 build_os
865 host
866 host_cpu
867 host_vendor
868 host_os
869 INTL_MACOSX_LIBS
870 LIBICONV
871 LTLIBICONV
872 INTLLIBS
873 LIBINTL
874 LTLIBINTL
875 POSUB
877 CXXFLAGS
878 ac_ct_CXX
879 CXXDEPMODE
880 am__fastdepCXX_TRUE
881 am__fastdepCXX_FALSE
883 LN_S
884 ECHO
886 RANLIB
887 DSYMUTIL
888 NMEDIT
889 CXXCPP
891 FFLAGS
892 ac_ct_F77
893 LIBTOOL
894 WITH_GCCVISIBILITY_TRUE
895 WITH_GCCVISIBILITY_FALSE
896 LIBTAR_CFLAGS
897 LIBTAR_LIBS
898 LIBZ_CFLAGS
899 LIBZ_LIBS
900 WITH_BACKUP_TRUE
901 WITH_BACKUP_FALSE
902 PKG_CONFIG
903 LIBUSB_CFLAGS
904 LIBUSB_LIBS
905 BOOST_LIB_PATH
906 BOOST_INC_PATH
907 BOOST_LDADD
908 WITH_BOOST_TRUE
909 WITH_BOOST_FALSE
910 FUSE_CFLAGS
911 FUSE_LIBS
912 GLIB2_CFLAGS
913 GLIB2_LIBS
914 pkgconfigdir
915 WITH_FUSE_TRUE
916 WITH_FUSE_FALSE
917 WITH_SYNC_TRUE
918 WITH_SYNC_FALSE
919 ZLIB_LIBS
920 LIBXMLXX_CFLAGS
921 LIBXMLXX_LIBS
922 WITH_ALX_TRUE
923 WITH_ALX_FALSE
924 LIBOBJS
925 subdirs
926 LTLIBOBJS'
927 ac_subst_files=''
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
938 CXXFLAGS
940 CXXCPP
942 FFLAGS
943 PKG_CONFIG
944 LIBUSB_CFLAGS
945 LIBUSB_LIBS
946 FUSE_CFLAGS
947 FUSE_LIBS
948 GLIB2_CFLAGS
949 GLIB2_LIBS
950 ZLIB_LIBS
951 LIBXMLXX_CFLAGS
952 LIBXMLXX_LIBS'
953 ac_subdirs_all='gui
954 opensync-plugin
955 opensync-plugin-0.4x'
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1014 case $ac_option in
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *) ac_optarg=yes ;;
1017 esac
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1023 ac_dashdash=yes ;;
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1064 eval enable_$ac_feature=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1083 eval enable_$ac_feature=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1273 -with-* | --with-*)
1274 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1280 eval with_$ac_package=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
1288 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1289 eval with_$ac_package=no ;;
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1309 -*) { echo "$as_me: error: unrecognized option: $ac_option
1310 Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1318 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1319 { (exit 1); exit 1; }; }
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1324 # FIXME: should be removed in autoconf 3.0.
1325 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 esac
1332 done
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 { echo "$as_me: error: missing argument to $ac_option" >&2
1337 { (exit 1); exit 1; }; }
1340 # Be sure to have absolute directory names.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val=\$$ac_var
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1352 { (exit 1); exit 1; }; }
1353 done
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1358 build=$build_alias
1359 host=$host_alias
1360 target=$target_alias
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364 if test "x$build_alias" = x; then
1365 cross_compiling=maybe
1366 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1367 If a cross compiler is detected then cross compile mode will be used." >&2
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376 test "$silent" = yes && exec 6>/dev/null
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 { echo "$as_me: error: Working directory cannot be determined" >&2
1383 { (exit 1); exit 1; }; }
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 { echo "$as_me: error: pwd does not report name of working directory" >&2
1386 { (exit 1); exit 1; }; }
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$0" ||
1394 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$0" : 'X\(//\)[^/]' \| \
1396 X"$0" : 'X\(//\)$' \| \
1397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1398 echo X"$0" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1407 /^X\(\/\/\)$/{
1408 s//\1/
1411 /^X\(\/\).*/{
1412 s//\1/
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1420 else
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1426 { (exit 1); exit 1; }; }
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1431 { (exit 1); exit 1; }; }
1432 pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 srcdir=.
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1456 cat <<_ACEOF
1457 \`configure' configures barry 0.17.0 to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1466 Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 [PREFIX]
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/barry]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1510 _ACEOF
1512 cat <<\_ACEOF
1514 Program names:
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of barry 0.17.0:";;
1528 esac
1529 cat <<\_ACEOF
1531 Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --disable-dependency-tracking speeds up one-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --disable-nls do not use Native Language Support
1537 --disable-rpath do not hardcode runtime library paths
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-static[=PKGS] build static libraries [default=yes]
1540 --enable-fast-install[=PKGS]
1541 optimize for fast installation [default=yes]
1542 --disable-libtool-lock avoid locking (might break parallel builds)
1543 --enable-boost enable Boost support
1544 --enable-gui build the gui
1545 --enable-opensync-plugin
1546 build the opensync plugin
1547 --enable-opensync-plugin-4x
1548 build the opensync 0.4x plugin
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-gnu-ld assume the C compiler uses GNU ld default=no
1554 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1555 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1556 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1557 --without-libintl-prefix don't search for libintl in includedir and libdir
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-pic try to use only PIC/non-PIC objects [default=use
1560 both]
1561 --with-tags[=TAGS] include additional configurations [automatic]
1562 --with-libtar=<path> root path of libtar install
1563 --with-zlib=<path> root path of zlib install
1564 --with-libusb=<path> root path of libusb installation
1565 --with-boost-include=path
1566 path to Boost include directory in order to make
1567 include <boost/something.hpp> valid (defaults to
1568 system paths)
1569 --with-boost-lib=path path to Boost library directory (defaults to system
1570 paths)
1571 --with-boost-serialization=name
1572 name of serialization library to use with compiler's
1573 -l option (defaults to boost_serialization or
1574 boost_serialization-mt.)
1575 --with-zlib force usage of zlib, and halt if not available
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CPP C preprocessor
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
1588 CXXCPP C++ preprocessor
1589 F77 Fortran 77 compiler command
1590 FFLAGS Fortran 77 compiler flags
1591 PKG_CONFIG path to pkg-config utility
1592 LIBUSB_CFLAGS
1593 C compiler flags for LIBUSB, overriding pkg-config
1594 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1595 FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config
1596 FUSE_LIBS linker flags for FUSE, overriding pkg-config
1597 GLIB2_CFLAGS
1598 C compiler flags for GLIB2, overriding pkg-config
1599 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1600 ZLIB_LIBS Linker options for zlib
1601 LIBXMLXX_CFLAGS
1602 C compiler flags for LIBXMLXX, overriding pkg-config
1603 LIBXMLXX_LIBS
1604 linker flags for LIBXMLXX, overriding pkg-config
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1609 Report bugs to <barry-devel@lists.sourceforge.net>.
1610 _ACEOF
1611 ac_status=$?
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" || continue
1618 ac_builddir=.
1620 case "$ac_dir" in
1621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1624 # A ".." for each directory in $ac_dir_suffix.
1625 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1626 case $ac_top_builddir_sub in
1627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 esac ;;
1630 esac
1631 ac_abs_top_builddir=$ac_pwd
1632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir=$ac_top_build_prefix
1636 case $srcdir in
1637 .) # We are building in place.
1638 ac_srcdir=.
1639 ac_top_srcdir=$ac_top_builddir_sub
1640 ac_abs_top_srcdir=$ac_pwd ;;
1641 [\\/]* | ?:[\\/]* ) # Absolute name.
1642 ac_srcdir=$srcdir$ac_dir_suffix;
1643 ac_top_srcdir=$srcdir
1644 ac_abs_top_srcdir=$srcdir ;;
1645 *) # Relative name.
1646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647 ac_top_srcdir=$ac_top_build_prefix$srcdir
1648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 esac
1650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652 cd "$ac_dir" || { ac_status=$?; continue; }
1653 # Check for guested configure.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1660 else
1661 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1664 done
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669 cat <<\_ACEOF
1670 barry configure 0.17.0
1671 generated by GNU Autoconf 2.61
1673 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1674 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678 exit
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1684 It was created by barry $as_me 0.17.0, which was
1685 generated by GNU Autoconf 2.61. Invocation command line was
1687 $ $0 $@
1689 _ACEOF
1690 exec 5>>config.log
1692 cat <<_ASUNAME
1693 ## --------- ##
1694 ## Platform. ##
1695 ## --------- ##
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1714 _ASUNAME
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1722 done
1723 IFS=$as_save_IFS
1725 } >&5
1727 cat >&5 <<_ACEOF
1730 ## ----------- ##
1731 ## Core tests. ##
1732 ## ----------- ##
1734 _ACEOF
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_configure_args=
1743 ac_configure_args0=
1744 ac_configure_args1=
1745 ac_must_keep_next=false
1746 for ac_pass in 1 2
1748 for ac_arg
1750 case $ac_arg in
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1754 continue ;;
1755 *\'*)
1756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 case $ac_pass in
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
1763 ac_must_keep_next=false # Got value, back to normal.
1764 else
1765 case $ac_arg in
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 esac
1774 -* ) ac_must_keep_next=true ;;
1775 esac
1777 ac_configure_args="$ac_configure_args '$ac_arg'"
1779 esac
1780 done
1781 done
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log. We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1793 echo
1795 cat <<\_ASBOX
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1799 _ASBOX
1800 echo
1801 # The following way of writing the cache mishandles newlines in values,
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in #(
1806 *${as_nl}*)
1807 case $ac_var in #(
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 esac
1811 case $ac_var in #(
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
1817 (set) 2>&1 |
1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
1820 sed -n \
1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 esac |
1828 sort
1830 echo
1832 cat <<\_ASBOX
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1836 _ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
1845 done | sort
1846 echo
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1853 _ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
1862 done | sort
1863 echo
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868 ## ----------- ##
1869 ## confdefs.h. ##
1870 ## ----------- ##
1871 _ASBOX
1872 echo
1873 cat confdefs.h
1874 echo
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1879 } >&5
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882 exit $exit_status
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 done
1887 ac_signal=0
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 # Predefined preprocessor variables.
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 _ACEOF
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 _ACEOF
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 _ACEOF
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer explicitly selected file to automatically selected ones.
1921 if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923 elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925 else
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
1929 shift
1930 for ac_site_file
1932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934 echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file"
1938 done
1940 if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945 echo "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
1947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
1949 esac
1951 else
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953 echo "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1957 gt_needs="$gt_needs "
1958 # Check that the precious variables saved in the cache have kept the same
1959 # value.
1960 ac_cache_corrupted=false
1961 for ac_var in $ac_precious_vars; do
1962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1963 eval ac_new_set=\$ac_env_${ac_var}_set
1964 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1965 eval ac_new_val=\$ac_env_${ac_var}_value
1966 case $ac_old_set,$ac_new_set in
1967 set,)
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1969 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,set)
1972 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1973 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1974 ac_cache_corrupted=: ;;
1975 ,);;
1977 if test "x$ac_old_val" != "x$ac_new_val"; then
1978 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1979 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1981 echo "$as_me: former value: $ac_old_val" >&2;}
1982 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1983 echo "$as_me: current value: $ac_new_val" >&2;}
1984 ac_cache_corrupted=:
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1998 done
1999 if $ac_cache_corrupted; then
2000 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2004 { (exit 1); exit 1; }; }
2031 ac_ext=c
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 #AM_CONFIG_HEADER(config.h)
2040 ac_config_headers="$ac_config_headers config.h:config.h.in"
2043 am__api_version='1.10'
2045 ac_aux_dir=
2046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2047 if test -f "$ac_dir/install-sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 break
2051 elif test -f "$ac_dir/install.sh"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 break
2055 elif test -f "$ac_dir/shtool"; then
2056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 break
2060 done
2061 if test -z "$ac_aux_dir"; then
2062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2063 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2064 { (exit 1); exit 1; }; }
2067 # These three variables are undocumented and unsupported,
2068 # and are intended to be withdrawn in a future Autoconf release.
2069 # They can cause serious problems if a builder's source tree is in a directory
2070 # whose full name contains unusual characters.
2071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2076 # Find a good install program. We prefer a C program (faster),
2077 # so one script is as good as another. But avoid the broken or
2078 # incompatible versions:
2079 # SysV /etc/install, /usr/sbin/install
2080 # SunOS /usr/etc/install
2081 # IRIX /sbin/install
2082 # AIX /bin/install
2083 # AmigaOS /C/install, which installs bootblocks on floppy discs
2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2087 # OS/2's system install, which has a completely different semantic
2088 # ./install, which can be erroneously created by make from ./install.sh.
2089 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2090 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2091 if test -z "$INSTALL"; then
2092 if test "${ac_cv_path_install+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 # Account for people who put trailing slashes in PATH elements.
2101 case $as_dir/ in
2102 ./ | .// | /cC/* | \
2103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2104 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2105 /usr/ucb/* ) ;;
2107 # OSF1 and SCO ODT 3.0 have their own names for install.
2108 # Don't use installbsd from OSF since it installs stuff as root
2109 # by default.
2110 for ac_prog in ginstall scoinst install; do
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2113 if test $ac_prog = install &&
2114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115 # AIX install. It has an incompatible calling convention.
2117 elif test $ac_prog = install &&
2118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # program-specific install script used by HP pwplus--don't use.
2121 else
2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2123 break 3
2126 done
2127 done
2129 esac
2130 done
2131 IFS=$as_save_IFS
2135 if test "${ac_cv_path_install+set}" = set; then
2136 INSTALL=$ac_cv_path_install
2137 else
2138 # As a last resort, use the slow shell script. Don't cache a
2139 # value for INSTALL within a source directory, because that will
2140 # break other packages using the cache if that directory is
2141 # removed, or if the value is a relative name.
2142 INSTALL=$ac_install_sh
2145 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2146 echo "${ECHO_T}$INSTALL" >&6; }
2148 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2149 # It thinks the first close brace ends the variable substitution.
2150 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2157 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2158 # Just in case
2159 sleep 1
2160 echo timestamp > conftest.file
2161 # Do `set' in a subshell so we don't clobber the current shell's
2162 # arguments. Must try -L first in case configure is actually a
2163 # symlink; some systems play weird games with the mod time of symlinks
2164 # (eg FreeBSD returns the mod time of the symlink's containing
2165 # directory).
2166 if (
2167 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2168 if test "$*" = "X"; then
2169 # -L didn't work.
2170 set X `ls -t $srcdir/configure conftest.file`
2172 rm -f conftest.file
2173 if test "$*" != "X $srcdir/configure conftest.file" \
2174 && test "$*" != "X conftest.file $srcdir/configure"; then
2176 # If neither matched, then we have a broken ls. This can happen
2177 # if, for instance, CONFIG_SHELL is bash and it inherits a
2178 # broken ls alias from the environment. This has actually
2179 # happened. Such a system could not be considered "sane".
2180 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2181 alias in your environment" >&5
2182 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2183 alias in your environment" >&2;}
2184 { (exit 1); exit 1; }; }
2187 test "$2" = conftest.file
2189 then
2190 # Ok.
2192 else
2193 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2194 Check your system clock" >&5
2195 echo "$as_me: error: newly created file is older than distributed files!
2196 Check your system clock" >&2;}
2197 { (exit 1); exit 1; }; }
2199 { echo "$as_me:$LINENO: result: yes" >&5
2200 echo "${ECHO_T}yes" >&6; }
2201 test "$program_prefix" != NONE &&
2202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2203 # Use a double $ so make ignores it.
2204 test "$program_suffix" != NONE &&
2205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2206 # Double any \ or $. echo might interpret backslashes.
2207 # By default was `s,x,x', remove it if useless.
2208 cat <<\_ACEOF >conftest.sed
2209 s/[\\$]/&&/g;s/;s,x,x,$//
2210 _ACEOF
2211 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2212 rm -f conftest.sed
2214 # expand $ac_aux_dir to an absolute path
2215 am_aux_dir=`cd $ac_aux_dir && pwd`
2217 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2218 # Use eval to expand $SHELL
2219 if eval "$MISSING --run true"; then
2220 am_missing_run="$MISSING --run "
2221 else
2222 am_missing_run=
2223 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2224 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2227 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2228 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2229 if test -z "$MKDIR_P"; then
2230 if test "${ac_cv_path_mkdir+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_prog in mkdir gmkdir; do
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2241 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2242 'mkdir (GNU coreutils) '* | \
2243 'mkdir (coreutils) '* | \
2244 'mkdir (fileutils) '4.1*)
2245 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2246 break 3;;
2247 esac
2248 done
2249 done
2250 done
2251 IFS=$as_save_IFS
2255 if test "${ac_cv_path_mkdir+set}" = set; then
2256 MKDIR_P="$ac_cv_path_mkdir -p"
2257 else
2258 # As a last resort, use the slow shell script. Don't cache a
2259 # value for MKDIR_P within a source directory, because that will
2260 # break other packages using the cache if that directory is
2261 # removed, or if the value is a relative name.
2262 test -d ./--version && rmdir ./--version
2263 MKDIR_P="$ac_install_sh -d"
2266 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2267 echo "${ECHO_T}$MKDIR_P" >&6; }
2269 mkdir_p="$MKDIR_P"
2270 case $mkdir_p in
2271 [\\/$]* | ?:[\\/]*) ;;
2272 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2273 esac
2275 for ac_prog in gawk mawk nawk awk
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278 set dummy $ac_prog; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_AWK+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284 if test -n "$AWK"; then
2285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 ac_cv_prog_AWK="$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2298 done
2299 done
2300 IFS=$as_save_IFS
2304 AWK=$ac_cv_prog_AWK
2305 if test -n "$AWK"; then
2306 { echo "$as_me:$LINENO: result: $AWK" >&5
2307 echo "${ECHO_T}$AWK" >&6; }
2308 else
2309 { echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6; }
2314 test -n "$AWK" && break
2315 done
2317 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2318 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2319 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2320 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 cat >conftest.make <<\_ACEOF
2324 SHELL = /bin/sh
2325 all:
2326 @echo '@@@%%%=$(MAKE)=@@@%%%'
2327 _ACEOF
2328 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2330 *@@@%%%=?*=@@@%%%*)
2331 eval ac_cv_prog_make_${ac_make}_set=yes;;
2333 eval ac_cv_prog_make_${ac_make}_set=no;;
2334 esac
2335 rm -f conftest.make
2337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2338 { echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6; }
2340 SET_MAKE=
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 SET_MAKE="MAKE=${MAKE-make}"
2347 rm -rf .tst 2>/dev/null
2348 mkdir .tst 2>/dev/null
2349 if test -d .tst; then
2350 am__leading_dot=.
2351 else
2352 am__leading_dot=_
2354 rmdir .tst 2>/dev/null
2356 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2358 # is not polluted with repeated "-I."
2359 am__isrc=' -I$(srcdir)'
2360 # test to see if srcdir already configured
2361 if test -f $srcdir/config.status; then
2362 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2363 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2364 { (exit 1); exit 1; }; }
2368 # test whether we have cygpath
2369 if test -z "$CYGPATH_W"; then
2370 if (cygpath --version) >/dev/null 2>/dev/null; then
2371 CYGPATH_W='cygpath -w'
2372 else
2373 CYGPATH_W=echo
2378 # Define the identity of the package.
2379 PACKAGE='barry'
2380 VERSION='0.17.0'
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE "$PACKAGE"
2385 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define VERSION "$VERSION"
2390 _ACEOF
2392 # Some tools Automake needs.
2394 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2397 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2400 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2403 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2406 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2408 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2410 # Installed binaries are usually stripped using `strip' when the user
2411 # run `make install-strip'. However `strip' might not be the right
2412 # tool to use in cross-compilation environments, therefore Automake
2413 # will honor the `STRIP' environment variable to overrule this program.
2414 if test "$cross_compiling" != no; then
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}strip; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_STRIP+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 if test -n "$STRIP"; then
2424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2443 STRIP=$ac_cv_prog_STRIP
2444 if test -n "$STRIP"; then
2445 { echo "$as_me:$LINENO: result: $STRIP" >&5
2446 echo "${ECHO_T}$STRIP" >&6; }
2447 else
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2454 if test -z "$ac_cv_prog_STRIP"; then
2455 ac_ct_STRIP=$STRIP
2456 # Extract the first word of "strip", so it can be a program name with args.
2457 set dummy strip; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 if test -n "$ac_ct_STRIP"; then
2464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_ac_ct_STRIP="strip"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2477 done
2478 done
2479 IFS=$as_save_IFS
2483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2484 if test -n "$ac_ct_STRIP"; then
2485 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2486 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2487 else
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2492 if test "x$ac_ct_STRIP" = x; then
2493 STRIP=":"
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 STRIP=$ac_ct_STRIP
2507 else
2508 STRIP="$ac_cv_prog_STRIP"
2512 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2514 # We need awk for the "check" target. The system "awk" is bad on
2515 # some platforms.
2516 # Always define AMTAR for backward compatibility.
2518 AMTAR=${AMTAR-"${am_missing_run}tar"}
2520 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2528 cat >>confdefs.h <<\_ACEOF
2529 #define _GNU_SOURCE 1
2530 _ACEOF
2533 DEPDIR="${am__leading_dot}deps"
2535 ac_config_commands="$ac_config_commands depfiles"
2538 am_make=${MAKE-make}
2539 cat > confinc << 'END'
2540 am__doit:
2541 @echo done
2542 .PHONY: am__doit
2544 # If we don't find an include directive, just comment out the code.
2545 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2546 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2547 am__include="#"
2548 am__quote=
2549 _am_result=none
2550 # First try GNU make style include.
2551 echo "include confinc" > confmf
2552 # We grep out `Entering directory' and `Leaving directory'
2553 # messages which can occur if `w' ends up in MAKEFLAGS.
2554 # In particular we don't look at `^make:' because GNU make might
2555 # be invoked under some other name (usually "gmake"), in which
2556 # case it prints its new name instead of `make'.
2557 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2558 am__include=include
2559 am__quote=
2560 _am_result=GNU
2562 # Now try BSD make style include.
2563 if test "$am__include" = "#"; then
2564 echo '.include "confinc"' > confmf
2565 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2566 am__include=.include
2567 am__quote="\""
2568 _am_result=BSD
2573 { echo "$as_me:$LINENO: result: $_am_result" >&5
2574 echo "${ECHO_T}$_am_result" >&6; }
2575 rm -f confinc confmf
2577 # Check whether --enable-dependency-tracking was given.
2578 if test "${enable_dependency_tracking+set}" = set; then
2579 enableval=$enable_dependency_tracking;
2582 if test "x$enable_dependency_tracking" != xno; then
2583 am_depcomp="$ac_aux_dir/depcomp"
2584 AMDEPBACKSLASH='\'
2586 if test "x$enable_dependency_tracking" != xno; then
2587 AMDEP_TRUE=
2588 AMDEP_FALSE='#'
2589 else
2590 AMDEP_TRUE='#'
2591 AMDEP_FALSE=
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2624 IFS=$as_save_IFS
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630 { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2639 if test -z "$ac_cv_prog_CC"; then
2640 ac_ct_CC=$CC
2641 # Extract the first word of "gcc", so it can be a program name with args.
2642 set dummy gcc; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_CC="gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2664 IFS=$as_save_IFS
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 echo "${ECHO_T}$ac_ct_CC" >&6; }
2672 else
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 CC=$ac_ct_CC
2692 else
2693 CC="$ac_cv_prog_CC"
2696 if test -z "$CC"; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}cc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CC="${ac_tool_prefix}cc"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2719 done
2720 done
2721 IFS=$as_save_IFS
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2729 else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected=yes
2758 continue
2760 ac_cv_prog_CC="cc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2764 done
2765 done
2766 IFS=$as_save_IFS
2768 if test $ac_prog_rejected = yes; then
2769 # We found a bogon in the path, so make sure we never use it.
2770 set dummy $ac_cv_prog_CC
2771 shift
2772 if test $# != 0; then
2773 # We chose a different compiler from the bogus one.
2774 # However, it has the same basename, so the bogon will be chosen
2775 # first if we set CC to just the basename; use the full file name.
2776 shift
2777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784 { echo "$as_me:$LINENO: result: $CC" >&5
2785 echo "${ECHO_T}$CC" >&6; }
2786 else
2787 { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2793 if test -z "$CC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 for ac_prog in cl.exe
2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2818 done
2819 done
2820 IFS=$as_save_IFS
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2828 else
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2834 test -n "$CC" && break
2835 done
2837 if test -z "$CC"; then
2838 ac_ct_CC=$CC
2839 for ac_prog in cl.exe
2841 # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="$ac_prog"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6; }
2872 else
2873 { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2878 test -n "$ac_ct_CC" && break
2879 done
2881 if test "x$ac_ct_CC" = x; then
2882 CC=""
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet. If you think this
2888 configuration is useful to you, please write to autoconf@gnu.org." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894 CC=$ac_ct_CC
2901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO: checking for C compiler version" >&5
2909 ac_compiler=`set X $ac_compile; echo $2`
2910 { (ac_try="$ac_compiler --version >&5"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compiler --version >&5") 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2920 { (ac_try="$ac_compiler -v >&5"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler -v >&5") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -V >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -V >&5") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2949 main ()
2953 return 0;
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2962 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2963 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965 # List of possible output files, starting from the most likely.
2966 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2967 # only as a last resort. b.out is created by i960 compilers.
2968 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2970 # The IRIX 6 linker writes into existing files which may not be
2971 # executable, retaining their permissions. Remove them first so a
2972 # subsequent execution test works.
2973 ac_rmfiles=
2974 for ac_file in $ac_files
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 esac
2980 done
2981 rm -f $ac_rmfiles
2983 if { (ac_try="$ac_link_default"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_link_default") 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2996 # so that the user can short-circuit this test for compilers unknown to
2997 # Autoconf.
2998 for ac_file in $ac_files ''
3000 test -f "$ac_file" || continue
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010 then :; else
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3017 # actually working.
3018 break;;
3020 break;;
3021 esac
3022 done
3023 test "$ac_cv_exeext" = no && ac_cv_exeext=
3025 else
3026 ac_file=''
3029 { echo "$as_me:$LINENO: result: $ac_file" >&5
3030 echo "${ECHO_T}$ac_file" >&6; }
3031 if test -z "$ac_file"; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3042 ac_exeext=$ac_cv_exeext
3044 # Check that the compiler produces executables we can run. If not, either
3045 # the compiler is broken, or we cross compile.
3046 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3049 # If not cross compiling, check that we can run a simple program.
3050 if test "$cross_compiling" != yes; then
3051 if { ac_try='./$ac_file'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 cross_compiling=no
3062 else
3063 if test "$cross_compiling" = maybe; then
3064 cross_compiling=yes
3065 else
3066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3067 If you meant to cross compile, use \`--host'.
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: cannot run C compiled programs.
3070 If you meant to cross compile, use \`--host'.
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3076 { echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6; }
3079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3080 ac_clean_files=$ac_clean_files_save
3081 # Check that the compiler produces executables we can run. If not, either
3082 # the compiler is broken, or we cross compile.
3083 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3085 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3086 echo "${ECHO_T}$cross_compiling" >&6; }
3088 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3090 if { (ac_try="$ac_link"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_link") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3101 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3102 # work properly (i.e., refer to `conftest.exe'), while it won't with
3103 # `rm'.
3104 for ac_file in conftest.exe conftest conftest.*; do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 break;;
3110 * ) break;;
3111 esac
3112 done
3113 else
3114 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3121 rm -f conftest$ac_cv_exeext
3122 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3123 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3125 rm -f conftest.$ac_ext
3126 EXEEXT=$ac_cv_exeext
3127 ac_exeext=$EXEEXT
3128 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3130 if test "${ac_cv_objext+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h. */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3141 main ()
3145 return 0;
3147 _ACEOF
3148 rm -f conftest.o conftest.obj
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 for ac_file in conftest.o conftest.obj conftest.*; do
3160 test -f "$ac_file" || continue;
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3163 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164 break;;
3165 esac
3166 done
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3180 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3181 echo "${ECHO_T}$ac_cv_objext" >&6; }
3182 OBJEXT=$ac_cv_objext
3183 ac_objext=$OBJEXT
3184 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3185 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3186 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3197 main ()
3199 #ifndef __GNUC__
3200 choke me
3201 #endif
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } && {
3221 test -z "$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3223 } && test -s conftest.$ac_objext; then
3224 ac_compiler_gnu=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 ac_compiler_gnu=no
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3236 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3238 GCC=`test $ac_compiler_gnu = yes && echo yes`
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cc_g+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3248 ac_cv_prog_cc_g=no
3249 CFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3258 main ()
3262 return 0;
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_g=yes
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 CFLAGS=""
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3321 else
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 ac_c_werror_flag=$ac_save_c_werror_flag
3326 CFLAGS="-g"
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3335 main ()
3339 return 0;
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3359 ac_cv_prog_cc_g=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3378 if test "$ac_test_CFLAGS" = set; then
3379 CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381 if test "$GCC" = yes; then
3382 CFLAGS="-g -O2"
3383 else
3384 CFLAGS="-g"
3386 else
3387 if test "$GCC" = yes; then
3388 CFLAGS="-O2"
3389 else
3390 CFLAGS=
3393 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3394 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3395 if test "${ac_cv_prog_cc_c89+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 ac_cv_prog_cc_c89=no
3399 ac_save_CC=$CC
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <stdarg.h>
3407 #include <stdio.h>
3408 #include <sys/types.h>
3409 #include <sys/stat.h>
3410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3411 struct buf { int x; };
3412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 static char *e (p, i)
3414 char **p;
3415 int i;
3417 return p[i];
3419 static char *f (char * (*g) (char **, int), char **p, ...)
3421 char *s;
3422 va_list v;
3423 va_start (v,p);
3424 s = g (p, va_arg (v,int));
3425 va_end (v);
3426 return s;
3429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3430 function prototypes and stuff, but not '\xHH' hex character constants.
3431 These don't provoke an error unfortunately, instead are silently treated
3432 as 'x'. The following induces an error, until -std is added to get
3433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3434 array size at least. It's necessary to write '\x00'==0 to get something
3435 that's true only with -std. */
3436 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3438 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439 inside strings and character constants. */
3440 #define FOO(x) 'x'
3441 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3443 int test (int i, double x);
3444 struct s1 {int (*f) (int a);};
3445 struct s2 {int (*f) (double a);};
3446 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 int argc;
3448 char **argv;
3450 main ()
3452 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3454 return 0;
3456 _ACEOF
3457 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3460 CC="$ac_save_CC $ac_arg"
3461 rm -f conftest.$ac_objext
3462 if { (ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3478 ac_cv_prog_cc_c89=$ac_arg
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f core conftest.err conftest.$ac_objext
3487 test "x$ac_cv_prog_cc_c89" != "xno" && break
3488 done
3489 rm -f conftest.$ac_ext
3490 CC=$ac_save_CC
3493 # AC_CACHE_VAL
3494 case "x$ac_cv_prog_cc_c89" in
3496 { echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6; } ;;
3498 xno)
3499 { echo "$as_me:$LINENO: result: unsupported" >&5
3500 echo "${ECHO_T}unsupported" >&6; } ;;
3502 CC="$CC $ac_cv_prog_cc_c89"
3503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3505 esac
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 depcc="$CC" am_compiler_list=
3516 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3517 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3518 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3522 # We make a subdir and do the tests there. Otherwise we can end up
3523 # making bogus files that we don't know about and never remove. For
3524 # instance it was reported that on HP-UX the gcc test will end up
3525 # making a dummy file named `D' -- because `-MD' means `put the output
3526 # in D'.
3527 mkdir conftest.dir
3528 # Copy depcomp to subdir because otherwise we won't find it if we're
3529 # using a relative directory.
3530 cp "$am_depcomp" conftest.dir
3531 cd conftest.dir
3532 # We will build objects and dependencies in a subdirectory because
3533 # it helps to detect inapplicable dependency modes. For instance
3534 # both Tru64's cc and ICC support -MD to output dependencies as a
3535 # side effect of compilation, but ICC will put the dependencies in
3536 # the current directory while Tru64 will put them in the object
3537 # directory.
3538 mkdir sub
3540 am_cv_CC_dependencies_compiler_type=none
3541 if test "$am_compiler_list" = ""; then
3542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544 for depmode in $am_compiler_list; do
3545 # Setup a source with many dependencies, because some compilers
3546 # like to wrap large dependency lists on column 80 (with \), and
3547 # we should not choose a depcomp mode which is confused by this.
3549 # We need to recreate these files for each test, as the compiler may
3550 # overwrite some of them when testing with obscure command lines.
3551 # This happens at least with the AIX C compiler.
3552 : > sub/conftest.c
3553 for i in 1 2 3 4 5 6; do
3554 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3555 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3556 # Solaris 8's {/usr,}/bin/sh.
3557 touch sub/conftst$i.h
3558 done
3559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561 case $depmode in
3562 nosideeffect)
3563 # after this tag, mechanisms are not by side-effect, so they'll
3564 # only be used when explicitly requested
3565 if test "x$enable_dependency_tracking" = xyes; then
3566 continue
3567 else
3568 break
3571 none) break ;;
3572 esac
3573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3574 # mode. It turns out that the SunPro C++ compiler does not properly
3575 # handle `-M -o', and we need to detect this.
3576 if depmode=$depmode \
3577 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3579 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3580 >/dev/null 2>conftest.err &&
3581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CC_dependencies_compiler_type=$depmode
3595 break
3598 done
3600 cd ..
3601 rm -rf conftest.dir
3602 else
3603 am_cv_CC_dependencies_compiler_type=none
3607 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3608 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3612 test "x$enable_dependency_tracking" != xno \
3613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3614 am__fastdepCC_TRUE=
3615 am__fastdepCC_FALSE='#'
3616 else
3617 am__fastdepCC_TRUE='#'
3618 am__fastdepCC_FALSE=
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3632 CPP=
3634 if test -z "$CPP"; then
3635 if test "${ac_cv_prog_CPP+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 # Double quotes because CPP needs to be expanded
3639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641 ac_preproc_ok=false
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #ifdef __STDC__
3657 # include <limits.h>
3658 #else
3659 # include <assert.h>
3660 #endif
3661 Syntax error
3662 _ACEOF
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 }; then
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3685 continue
3688 rm -f conftest.err conftest.$ac_ext
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <ac_nonexistent.h>
3699 _ACEOF
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null && {
3713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3715 }; then
3716 # Broken: success on invalid input.
3717 continue
3718 else
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 # Passes both tests.
3723 ac_preproc_ok=:
3724 break
3727 rm -f conftest.err conftest.$ac_ext
3729 done
3730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731 rm -f conftest.err conftest.$ac_ext
3732 if $ac_preproc_ok; then
3733 break
3736 done
3737 ac_cv_prog_CPP=$CPP
3740 CPP=$ac_cv_prog_CPP
3741 else
3742 ac_cv_prog_CPP=$CPP
3744 { echo "$as_me:$LINENO: result: $CPP" >&5
3745 echo "${ECHO_T}$CPP" >&6; }
3746 ac_preproc_ok=false
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766 Syntax error
3767 _ACEOF
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 }; then
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3790 continue
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3804 _ACEOF
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 # Broken: success on invalid input.
3822 continue
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3828 ac_preproc_ok=:
3829 break
3832 rm -f conftest.err conftest.$ac_ext
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3839 else
3840 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3841 See \`config.log' for more details." >&5
3842 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3843 See \`config.log' for more details." >&2;}
3844 { (exit 1); exit 1; }; }
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3855 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_GREP+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 # Extract the first word of "grep ggrep" to use in msg output
3860 if test -z "$GREP"; then
3861 set dummy grep ggrep; ac_prog_name=$2
3862 if test "${ac_cv_path_GREP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 ac_path_GREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878 case `"$ac_path_GREP" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882 ac_count=0
3883 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884 while :
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3905 $ac_path_GREP_found && break 3
3906 done
3907 done
3909 done
3910 IFS=$as_save_IFS
3915 GREP="$ac_cv_path_GREP"
3916 if test -z "$GREP"; then
3917 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3918 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3919 { (exit 1); exit 1; }; }
3922 else
3923 ac_cv_path_GREP=$GREP
3928 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3929 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3930 GREP="$ac_cv_path_GREP"
3933 { echo "$as_me:$LINENO: checking for egrep" >&5
3934 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3935 if test "${ac_cv_path_EGREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939 then ac_cv_path_EGREP="$GREP -E"
3940 else
3941 # Extract the first word of "egrep" to use in msg output
3942 if test -z "$EGREP"; then
3943 set dummy egrep; ac_prog_name=$2
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 ac_path_EGREP_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in egrep; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3958 # Check for GNU ac_path_EGREP and select it if it is found.
3959 # Check for GNU $ac_path_EGREP
3960 case `"$ac_path_EGREP" --version 2>&1` in
3961 *GNU*)
3962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3964 ac_count=0
3965 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3966 while :
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 echo 'EGREP' >> "conftest.nl"
3972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 ac_count=`expr $ac_count + 1`
3975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_EGREP="$ac_path_EGREP"
3978 ac_path_EGREP_max=$ac_count
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984 esac
3987 $ac_path_EGREP_found && break 3
3988 done
3989 done
3991 done
3992 IFS=$as_save_IFS
3997 EGREP="$ac_cv_path_EGREP"
3998 if test -z "$EGREP"; then
3999 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4000 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4001 { (exit 1); exit 1; }; }
4004 else
4005 ac_cv_path_EGREP=$EGREP
4011 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4012 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4013 EGREP="$ac_cv_path_EGREP"
4017 { echo "$as_me:$LINENO: checking for AIX" >&5
4018 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #ifdef _AIX
4027 #endif
4029 _ACEOF
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "yes" >/dev/null 2>&1; then
4032 { echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6; }
4034 cat >>confdefs.h <<\_ACEOF
4035 #define _ALL_SOURCE 1
4036 _ACEOF
4038 else
4039 { echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6; }
4042 rm -f conftest*
4045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4047 if test "${ac_cv_header_stdc+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <stdlib.h>
4057 #include <stdarg.h>
4058 #include <string.h>
4059 #include <float.h>
4062 main ()
4066 return 0;
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_header_stdc=yes
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_header_stdc=no
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <string.h>
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev/null 2>&1; then
4110 else
4111 ac_cv_header_stdc=no
4113 rm -f conftest*
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125 #include <stdlib.h>
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "free" >/dev/null 2>&1; then
4131 else
4132 ac_cv_header_stdc=no
4134 rm -f conftest*
4138 if test $ac_cv_header_stdc = yes; then
4139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140 if test "$cross_compiling" = yes; then
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <ctype.h>
4150 #include <stdlib.h>
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #else
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #endif
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164 main ()
4166 int i;
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4170 return 2;
4171 return 0;
4173 _ACEOF
4174 rm -f conftest$ac_exeext
4175 if { (ac_try="$ac_link"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_link") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4195 else
4196 echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 ( exit $ac_status )
4201 ac_cv_header_stdc=no
4203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4211 if test $ac_cv_header_stdc = yes; then
4213 cat >>confdefs.h <<\_ACEOF
4214 #define STDC_HEADERS 1
4215 _ACEOF
4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230 inttypes.h stdint.h unistd.h
4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h. */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 $ac_includes_default
4246 #include <$ac_header>
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest.$ac_objext; then
4265 eval "$as_ac_Header=yes"
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 eval "$as_ac_Header=no"
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_res=`eval echo '${'$as_ac_Header'}'`
4276 { echo "$as_me:$LINENO: result: $ac_res" >&5
4277 echo "${ECHO_T}$ac_res" >&6; }
4278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4279 cat >>confdefs.h <<_ACEOF
4280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281 _ACEOF
4285 done
4288 if test "${ac_cv_header_minix_config_h+set}" = set; then
4289 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4290 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4291 if test "${ac_cv_header_minix_config_h+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4295 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4296 else
4297 # Is the header compilable?
4298 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4299 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4307 #include <minix/config.h>
4308 _ACEOF
4309 rm -f conftest.$ac_objext
4310 if { (ac_try="$ac_compile"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_compile") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && {
4323 test -z "$ac_c_werror_flag" ||
4324 test ! -s conftest.err
4325 } && test -s conftest.$ac_objext; then
4326 ac_header_compiler=yes
4327 else
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4331 ac_header_compiler=no
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4336 echo "${ECHO_T}$ac_header_compiler" >&6; }
4338 # Is the header present?
4339 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4340 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <minix/config.h>
4348 _ACEOF
4349 if { (ac_try="$ac_cpp conftest.$ac_ext"
4350 case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4356 ac_status=$?
4357 grep -v '^ *+' conftest.er1 >conftest.err
4358 rm -f conftest.er1
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } >/dev/null && {
4362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4363 test ! -s conftest.err
4364 }; then
4365 ac_header_preproc=yes
4366 else
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_header_preproc=no
4373 rm -f conftest.err conftest.$ac_ext
4374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4375 echo "${ECHO_T}$ac_header_preproc" >&6; }
4377 # So? What about this header?
4378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4379 yes:no: )
4380 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4381 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4383 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4384 ac_header_preproc=yes
4386 no:yes:* )
4387 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4388 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4390 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4392 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4394 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4396 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4398 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4399 ( cat <<\_ASBOX
4400 ## ------------------------------------------------ ##
4401 ## Report this to barry-devel@lists.sourceforge.net ##
4402 ## ------------------------------------------------ ##
4403 _ASBOX
4404 ) | sed "s/^/$as_me: WARNING: /" >&2
4406 esac
4407 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 ac_cv_header_minix_config_h=$ac_header_preproc
4414 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4415 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4418 if test $ac_cv_header_minix_config_h = yes; then
4419 MINIX=yes
4420 else
4421 MINIX=
4425 if test "$MINIX" = yes; then
4427 cat >>confdefs.h <<\_ACEOF
4428 #define _POSIX_SOURCE 1
4429 _ACEOF
4432 cat >>confdefs.h <<\_ACEOF
4433 #define _POSIX_1_SOURCE 2
4434 _ACEOF
4437 cat >>confdefs.h <<\_ACEOF
4438 #define _MINIX 1
4439 _ACEOF
4453 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4454 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4455 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4465 # define __EXTENSIONS__ 1
4466 $ac_includes_default
4468 main ()
4472 return 0;
4474 _ACEOF
4475 rm -f conftest.$ac_objext
4476 if { (ac_try="$ac_compile"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482 (eval "$ac_compile") 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && {
4489 test -z "$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4491 } && test -s conftest.$ac_objext; then
4492 ac_cv_safe_to_define___extensions__=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ac_cv_safe_to_define___extensions__=no
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4503 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4504 test $ac_cv_safe_to_define___extensions__ = yes &&
4505 cat >>confdefs.h <<\_ACEOF
4506 #define __EXTENSIONS__ 1
4507 _ACEOF
4509 cat >>confdefs.h <<\_ACEOF
4510 #define _POSIX_PTHREAD_SEMANTICS 1
4511 _ACEOF
4513 cat >>confdefs.h <<\_ACEOF
4514 #define _TANDEM_SOURCE 1
4515 _ACEOF
4520 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4521 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4522 # Check whether --enable-nls was given.
4523 if test "${enable_nls+set}" = set; then
4524 enableval=$enable_nls; USE_NLS=$enableval
4525 else
4526 USE_NLS=yes
4529 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4530 echo "${ECHO_T}$USE_NLS" >&6; }
4535 GETTEXT_MACRO_VERSION=0.17
4540 # Prepare PATH_SEPARATOR.
4541 # The user is always right.
4542 if test "${PATH_SEPARATOR+set}" != set; then
4543 echo "#! /bin/sh" >conf$$.sh
4544 echo "exit 0" >>conf$$.sh
4545 chmod +x conf$$.sh
4546 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4547 PATH_SEPARATOR=';'
4548 else
4549 PATH_SEPARATOR=:
4551 rm -f conf$$.sh
4554 # Find out how to test for executable files. Don't use a zero-byte file,
4555 # as systems may use methods other than mode bits to determine executability.
4556 cat >conf$$.file <<_ASEOF
4557 #! /bin/sh
4558 exit 0
4559 _ASEOF
4560 chmod +x conf$$.file
4561 if test -x conf$$.file >/dev/null 2>&1; then
4562 ac_executable_p="test -x"
4563 else
4564 ac_executable_p="test -f"
4566 rm -f conf$$.file
4568 # Extract the first word of "msgfmt", so it can be a program name with args.
4569 set dummy msgfmt; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_path_MSGFMT+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 case "$MSGFMT" in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4580 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4581 for ac_dir in $PATH; do
4582 IFS="$ac_save_IFS"
4583 test -z "$ac_dir" && ac_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4586 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4587 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4588 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4589 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4590 break 2
4593 done
4594 done
4595 IFS="$ac_save_IFS"
4596 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4598 esac
4600 MSGFMT="$ac_cv_path_MSGFMT"
4601 if test "$MSGFMT" != ":"; then
4602 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4603 echo "${ECHO_T}$MSGFMT" >&6; }
4604 else
4605 { echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6; }
4609 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4610 set dummy gmsgfmt; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616 case $GMSGFMT in
4617 [\\/]* | ?:[\\/]*)
4618 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4636 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4638 esac
4640 GMSGFMT=$ac_cv_path_GMSGFMT
4641 if test -n "$GMSGFMT"; then
4642 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4643 echo "${ECHO_T}$GMSGFMT" >&6; }
4644 else
4645 { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4651 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4652 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4653 *) MSGFMT_015=$MSGFMT ;;
4654 esac
4656 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4657 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4658 *) GMSGFMT_015=$GMSGFMT ;;
4659 esac
4663 # Prepare PATH_SEPARATOR.
4664 # The user is always right.
4665 if test "${PATH_SEPARATOR+set}" != set; then
4666 echo "#! /bin/sh" >conf$$.sh
4667 echo "exit 0" >>conf$$.sh
4668 chmod +x conf$$.sh
4669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4670 PATH_SEPARATOR=';'
4671 else
4672 PATH_SEPARATOR=:
4674 rm -f conf$$.sh
4677 # Find out how to test for executable files. Don't use a zero-byte file,
4678 # as systems may use methods other than mode bits to determine executability.
4679 cat >conf$$.file <<_ASEOF
4680 #! /bin/sh
4681 exit 0
4682 _ASEOF
4683 chmod +x conf$$.file
4684 if test -x conf$$.file >/dev/null 2>&1; then
4685 ac_executable_p="test -x"
4686 else
4687 ac_executable_p="test -f"
4689 rm -f conf$$.file
4691 # Extract the first word of "xgettext", so it can be a program name with args.
4692 set dummy xgettext; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 case "$XGETTEXT" in
4699 [\\/]* | ?:[\\/]*)
4700 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4703 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4704 for ac_dir in $PATH; do
4705 IFS="$ac_save_IFS"
4706 test -z "$ac_dir" && ac_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4709 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4710 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4711 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4712 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4713 break 2
4716 done
4717 done
4718 IFS="$ac_save_IFS"
4719 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4721 esac
4723 XGETTEXT="$ac_cv_path_XGETTEXT"
4724 if test "$XGETTEXT" != ":"; then
4725 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4726 echo "${ECHO_T}$XGETTEXT" >&6; }
4727 else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4732 rm -f messages.po
4734 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4735 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4736 *) XGETTEXT_015=$XGETTEXT ;;
4737 esac
4741 # Prepare PATH_SEPARATOR.
4742 # The user is always right.
4743 if test "${PATH_SEPARATOR+set}" != set; then
4744 echo "#! /bin/sh" >conf$$.sh
4745 echo "exit 0" >>conf$$.sh
4746 chmod +x conf$$.sh
4747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4748 PATH_SEPARATOR=';'
4749 else
4750 PATH_SEPARATOR=:
4752 rm -f conf$$.sh
4755 # Find out how to test for executable files. Don't use a zero-byte file,
4756 # as systems may use methods other than mode bits to determine executability.
4757 cat >conf$$.file <<_ASEOF
4758 #! /bin/sh
4759 exit 0
4760 _ASEOF
4761 chmod +x conf$$.file
4762 if test -x conf$$.file >/dev/null 2>&1; then
4763 ac_executable_p="test -x"
4764 else
4765 ac_executable_p="test -f"
4767 rm -f conf$$.file
4769 # Extract the first word of "msgmerge", so it can be a program name with args.
4770 set dummy msgmerge; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 case "$MSGMERGE" in
4777 [\\/]* | ?:[\\/]*)
4778 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4781 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4783 IFS="$ac_save_IFS"
4784 test -z "$ac_dir" && ac_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4787 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4788 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4789 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4790 break 2
4793 done
4794 done
4795 IFS="$ac_save_IFS"
4796 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4798 esac
4800 MSGMERGE="$ac_cv_path_MSGMERGE"
4801 if test "$MSGMERGE" != ":"; then
4802 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4803 echo "${ECHO_T}$MSGMERGE" >&6; }
4804 else
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4810 test -n "$localedir" || localedir='${datadir}/locale'
4813 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4816 ac_config_commands="$ac_config_commands po-directories"
4820 if test "X$prefix" = "XNONE"; then
4821 acl_final_prefix="$ac_default_prefix"
4822 else
4823 acl_final_prefix="$prefix"
4825 if test "X$exec_prefix" = "XNONE"; then
4826 acl_final_exec_prefix='${prefix}'
4827 else
4828 acl_final_exec_prefix="$exec_prefix"
4830 acl_save_prefix="$prefix"
4831 prefix="$acl_final_prefix"
4832 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4833 prefix="$acl_save_prefix"
4835 # Make sure we can run config.sub.
4836 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4837 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4838 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4839 { (exit 1); exit 1; }; }
4841 { echo "$as_me:$LINENO: checking build system type" >&5
4842 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4843 if test "${ac_cv_build+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 ac_build_alias=$build_alias
4847 test "x$ac_build_alias" = x &&
4848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4849 test "x$ac_build_alias" = x &&
4850 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4851 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4852 { (exit 1); exit 1; }; }
4853 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4854 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4856 { (exit 1); exit 1; }; }
4859 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4860 echo "${ECHO_T}$ac_cv_build" >&6; }
4861 case $ac_cv_build in
4862 *-*-*) ;;
4863 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4864 echo "$as_me: error: invalid value of canonical build" >&2;}
4865 { (exit 1); exit 1; }; };;
4866 esac
4867 build=$ac_cv_build
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_build
4870 shift
4871 build_cpu=$1
4872 build_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 build_os=$*
4877 IFS=$ac_save_IFS
4878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881 { echo "$as_me:$LINENO: checking host system type" >&5
4882 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4883 if test "${ac_cv_host+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 if test "x$host_alias" = x; then
4887 ac_cv_host=$ac_cv_build
4888 else
4889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4891 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4892 { (exit 1); exit 1; }; }
4896 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4897 echo "${ECHO_T}$ac_cv_host" >&6; }
4898 case $ac_cv_host in
4899 *-*-*) ;;
4900 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4901 echo "$as_me: error: invalid value of canonical host" >&2;}
4902 { (exit 1); exit 1; }; };;
4903 esac
4904 host=$ac_cv_host
4905 ac_save_IFS=$IFS; IFS='-'
4906 set x $ac_cv_host
4907 shift
4908 host_cpu=$1
4909 host_vendor=$2
4910 shift; shift
4911 # Remember, the first character of IFS is used to create $*,
4912 # except with old shells:
4913 host_os=$*
4914 IFS=$ac_save_IFS
4915 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4919 # Check whether --with-gnu-ld was given.
4920 if test "${with_gnu_ld+set}" = set; then
4921 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4922 else
4923 with_gnu_ld=no
4926 # Prepare PATH_SEPARATOR.
4927 # The user is always right.
4928 if test "${PATH_SEPARATOR+set}" != set; then
4929 echo "#! /bin/sh" >conf$$.sh
4930 echo "exit 0" >>conf$$.sh
4931 chmod +x conf$$.sh
4932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4933 PATH_SEPARATOR=';'
4934 else
4935 PATH_SEPARATOR=:
4937 rm -f conf$$.sh
4939 ac_prog=ld
4940 if test "$GCC" = yes; then
4941 # Check if gcc -print-prog-name=ld gives a path.
4942 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4943 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4944 case $host in
4945 *-*-mingw*)
4946 # gcc leaves a trailing carriage return which upsets mingw
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4950 esac
4951 case $ac_prog in
4952 # Accept absolute paths.
4953 [\\/]* | [A-Za-z]:[\\/]*)
4954 re_direlt='/[^/][^/]*/\.\./'
4955 # Canonicalize the path of ld
4956 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4957 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4958 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4959 done
4960 test -z "$LD" && LD="$ac_prog"
4963 # If it fails, then pretend we aren't using GCC.
4964 ac_prog=ld
4967 # If it is relative, then search for the first ld in PATH.
4968 with_gnu_ld=unknown
4970 esac
4971 elif test "$with_gnu_ld" = yes; then
4972 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4974 else
4975 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4978 if test "${acl_cv_path_LD+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 if test -z "$LD"; then
4982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4983 for ac_dir in $PATH; do
4984 test -z "$ac_dir" && ac_dir=.
4985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4986 acl_cv_path_LD="$ac_dir/$ac_prog"
4987 # Check to see if the program is GNU ld. I'd rather use --version,
4988 # but apparently some GNU ld's only accept -v.
4989 # Break only if it was the GNU/non-GNU ld that we prefer.
4990 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4991 *GNU* | *'with BFD'*)
4992 test "$with_gnu_ld" != no && break ;;
4994 test "$with_gnu_ld" != yes && break ;;
4995 esac
4997 done
4998 IFS="$ac_save_ifs"
4999 else
5000 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5004 LD="$acl_cv_path_LD"
5005 if test -n "$LD"; then
5006 { echo "$as_me:$LINENO: result: $LD" >&5
5007 echo "${ECHO_T}$LD" >&6; }
5008 else
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5014 { (exit 1); exit 1; }; }
5015 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5017 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5021 case `$LD -v 2>&1 </dev/null` in
5022 *GNU* | *'with BFD'*)
5023 acl_cv_prog_gnu_ld=yes ;;
5025 acl_cv_prog_gnu_ld=no ;;
5026 esac
5028 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5029 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
5030 with_gnu_ld=$acl_cv_prog_gnu_ld
5035 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5036 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
5037 if test "${acl_cv_rpath+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5041 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5042 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5043 . ./conftest.sh
5044 rm -f ./conftest.sh
5045 acl_cv_rpath=done
5048 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5049 echo "${ECHO_T}$acl_cv_rpath" >&6; }
5050 wl="$acl_cv_wl"
5051 acl_libext="$acl_cv_libext"
5052 acl_shlibext="$acl_cv_shlibext"
5053 acl_libname_spec="$acl_cv_libname_spec"
5054 acl_library_names_spec="$acl_cv_library_names_spec"
5055 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5056 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5057 acl_hardcode_direct="$acl_cv_hardcode_direct"
5058 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5059 # Check whether --enable-rpath was given.
5060 if test "${enable_rpath+set}" = set; then
5061 enableval=$enable_rpath; :
5062 else
5063 enable_rpath=yes
5068 acl_libdirstem=lib
5069 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5070 if test -n "$searchpath"; then
5071 acl_save_IFS="${IFS= }"; IFS=":"
5072 for searchdir in $searchpath; do
5073 if test -d "$searchdir"; then
5074 case "$searchdir" in
5075 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5076 *) searchdir=`cd "$searchdir" && pwd`
5077 case "$searchdir" in
5078 */lib64 ) acl_libdirstem=lib64 ;;
5079 esac ;;
5080 esac
5082 done
5083 IFS="$acl_save_IFS"
5094 use_additional=yes
5096 acl_save_prefix="$prefix"
5097 prefix="$acl_final_prefix"
5098 acl_save_exec_prefix="$exec_prefix"
5099 exec_prefix="$acl_final_exec_prefix"
5101 eval additional_includedir=\"$includedir\"
5102 eval additional_libdir=\"$libdir\"
5104 exec_prefix="$acl_save_exec_prefix"
5105 prefix="$acl_save_prefix"
5108 # Check whether --with-libiconv-prefix was given.
5109 if test "${with_libiconv_prefix+set}" = set; then
5110 withval=$with_libiconv_prefix;
5111 if test "X$withval" = "Xno"; then
5112 use_additional=no
5113 else
5114 if test "X$withval" = "X"; then
5116 acl_save_prefix="$prefix"
5117 prefix="$acl_final_prefix"
5118 acl_save_exec_prefix="$exec_prefix"
5119 exec_prefix="$acl_final_exec_prefix"
5121 eval additional_includedir=\"$includedir\"
5122 eval additional_libdir=\"$libdir\"
5124 exec_prefix="$acl_save_exec_prefix"
5125 prefix="$acl_save_prefix"
5127 else
5128 additional_includedir="$withval/include"
5129 additional_libdir="$withval/$acl_libdirstem"
5135 LIBICONV=
5136 LTLIBICONV=
5137 INCICONV=
5138 LIBICONV_PREFIX=
5139 rpathdirs=
5140 ltrpathdirs=
5141 names_already_handled=
5142 names_next_round='iconv '
5143 while test -n "$names_next_round"; do
5144 names_this_round="$names_next_round"
5145 names_next_round=
5146 for name in $names_this_round; do
5147 already_handled=
5148 for n in $names_already_handled; do
5149 if test "$n" = "$name"; then
5150 already_handled=yes
5151 break
5153 done
5154 if test -z "$already_handled"; then
5155 names_already_handled="$names_already_handled $name"
5156 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5157 eval value=\"\$HAVE_LIB$uppername\"
5158 if test -n "$value"; then
5159 if test "$value" = yes; then
5160 eval value=\"\$LIB$uppername\"
5161 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5162 eval value=\"\$LTLIB$uppername\"
5163 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5164 else
5167 else
5168 found_dir=
5169 found_la=
5170 found_so=
5171 found_a=
5172 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5173 if test -n "$acl_shlibext"; then
5174 shrext=".$acl_shlibext" # typically: shrext=.so
5175 else
5176 shrext=
5178 if test $use_additional = yes; then
5179 dir="$additional_libdir"
5180 if test -n "$acl_shlibext"; then
5181 if test -f "$dir/$libname$shrext"; then
5182 found_dir="$dir"
5183 found_so="$dir/$libname$shrext"
5184 else
5185 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5186 ver=`(cd "$dir" && \
5187 for f in "$libname$shrext".*; do echo "$f"; done \
5188 | sed -e "s,^$libname$shrext\\\\.,," \
5189 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5190 | sed 1q ) 2>/dev/null`
5191 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5192 found_dir="$dir"
5193 found_so="$dir/$libname$shrext.$ver"
5195 else
5196 eval library_names=\"$acl_library_names_spec\"
5197 for f in $library_names; do
5198 if test -f "$dir/$f"; then
5199 found_dir="$dir"
5200 found_so="$dir/$f"
5201 break
5203 done
5207 if test "X$found_dir" = "X"; then
5208 if test -f "$dir/$libname.$acl_libext"; then
5209 found_dir="$dir"
5210 found_a="$dir/$libname.$acl_libext"
5213 if test "X$found_dir" != "X"; then
5214 if test -f "$dir/$libname.la"; then
5215 found_la="$dir/$libname.la"
5219 if test "X$found_dir" = "X"; then
5220 for x in $LDFLAGS $LTLIBICONV; do
5222 acl_save_prefix="$prefix"
5223 prefix="$acl_final_prefix"
5224 acl_save_exec_prefix="$exec_prefix"
5225 exec_prefix="$acl_final_exec_prefix"
5226 eval x=\"$x\"
5227 exec_prefix="$acl_save_exec_prefix"
5228 prefix="$acl_save_prefix"
5230 case "$x" in
5231 -L*)
5232 dir=`echo "X$x" | sed -e 's/^X-L//'`
5233 if test -n "$acl_shlibext"; then
5234 if test -f "$dir/$libname$shrext"; then
5235 found_dir="$dir"
5236 found_so="$dir/$libname$shrext"
5237 else
5238 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5239 ver=`(cd "$dir" && \
5240 for f in "$libname$shrext".*; do echo "$f"; done \
5241 | sed -e "s,^$libname$shrext\\\\.,," \
5242 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5243 | sed 1q ) 2>/dev/null`
5244 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5245 found_dir="$dir"
5246 found_so="$dir/$libname$shrext.$ver"
5248 else
5249 eval library_names=\"$acl_library_names_spec\"
5250 for f in $library_names; do
5251 if test -f "$dir/$f"; then
5252 found_dir="$dir"
5253 found_so="$dir/$f"
5254 break
5256 done
5260 if test "X$found_dir" = "X"; then
5261 if test -f "$dir/$libname.$acl_libext"; then
5262 found_dir="$dir"
5263 found_a="$dir/$libname.$acl_libext"
5266 if test "X$found_dir" != "X"; then
5267 if test -f "$dir/$libname.la"; then
5268 found_la="$dir/$libname.la"
5272 esac
5273 if test "X$found_dir" != "X"; then
5274 break
5276 done
5278 if test "X$found_dir" != "X"; then
5279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5280 if test "X$found_so" != "X"; then
5281 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5283 else
5284 haveit=
5285 for x in $ltrpathdirs; do
5286 if test "X$x" = "X$found_dir"; then
5287 haveit=yes
5288 break
5290 done
5291 if test -z "$haveit"; then
5292 ltrpathdirs="$ltrpathdirs $found_dir"
5294 if test "$acl_hardcode_direct" = yes; then
5295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5296 else
5297 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5299 haveit=
5300 for x in $rpathdirs; do
5301 if test "X$x" = "X$found_dir"; then
5302 haveit=yes
5303 break
5305 done
5306 if test -z "$haveit"; then
5307 rpathdirs="$rpathdirs $found_dir"
5309 else
5310 haveit=
5311 for x in $LDFLAGS $LIBICONV; do
5313 acl_save_prefix="$prefix"
5314 prefix="$acl_final_prefix"
5315 acl_save_exec_prefix="$exec_prefix"
5316 exec_prefix="$acl_final_exec_prefix"
5317 eval x=\"$x\"
5318 exec_prefix="$acl_save_exec_prefix"
5319 prefix="$acl_save_prefix"
5321 if test "X$x" = "X-L$found_dir"; then
5322 haveit=yes
5323 break
5325 done
5326 if test -z "$haveit"; then
5327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5329 if test "$acl_hardcode_minus_L" != no; then
5330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5331 else
5332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5337 else
5338 if test "X$found_a" != "X"; then
5339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5340 else
5341 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5344 additional_includedir=
5345 case "$found_dir" in
5346 */$acl_libdirstem | */$acl_libdirstem/)
5347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5348 LIBICONV_PREFIX="$basedir"
5349 additional_includedir="$basedir/include"
5351 esac
5352 if test "X$additional_includedir" != "X"; then
5353 if test "X$additional_includedir" != "X/usr/include"; then
5354 haveit=
5355 if test "X$additional_includedir" = "X/usr/local/include"; then
5356 if test -n "$GCC"; then
5357 case $host_os in
5358 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5359 esac
5362 if test -z "$haveit"; then
5363 for x in $CPPFLAGS $INCICONV; do
5365 acl_save_prefix="$prefix"
5366 prefix="$acl_final_prefix"
5367 acl_save_exec_prefix="$exec_prefix"
5368 exec_prefix="$acl_final_exec_prefix"
5369 eval x=\"$x\"
5370 exec_prefix="$acl_save_exec_prefix"
5371 prefix="$acl_save_prefix"
5373 if test "X$x" = "X-I$additional_includedir"; then
5374 haveit=yes
5375 break
5377 done
5378 if test -z "$haveit"; then
5379 if test -d "$additional_includedir"; then
5380 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5386 if test -n "$found_la"; then
5387 save_libdir="$libdir"
5388 case "$found_la" in
5389 */* | *\\*) . "$found_la" ;;
5390 *) . "./$found_la" ;;
5391 esac
5392 libdir="$save_libdir"
5393 for dep in $dependency_libs; do
5394 case "$dep" in
5395 -L*)
5396 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5397 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5398 haveit=
5399 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5400 if test -n "$GCC"; then
5401 case $host_os in
5402 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5403 esac
5406 if test -z "$haveit"; then
5407 haveit=
5408 for x in $LDFLAGS $LIBICONV; do
5410 acl_save_prefix="$prefix"
5411 prefix="$acl_final_prefix"
5412 acl_save_exec_prefix="$exec_prefix"
5413 exec_prefix="$acl_final_exec_prefix"
5414 eval x=\"$x\"
5415 exec_prefix="$acl_save_exec_prefix"
5416 prefix="$acl_save_prefix"
5418 if test "X$x" = "X-L$additional_libdir"; then
5419 haveit=yes
5420 break
5422 done
5423 if test -z "$haveit"; then
5424 if test -d "$additional_libdir"; then
5425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5428 haveit=
5429 for x in $LDFLAGS $LTLIBICONV; do
5431 acl_save_prefix="$prefix"
5432 prefix="$acl_final_prefix"
5433 acl_save_exec_prefix="$exec_prefix"
5434 exec_prefix="$acl_final_exec_prefix"
5435 eval x=\"$x\"
5436 exec_prefix="$acl_save_exec_prefix"
5437 prefix="$acl_save_prefix"
5439 if test "X$x" = "X-L$additional_libdir"; then
5440 haveit=yes
5441 break
5443 done
5444 if test -z "$haveit"; then
5445 if test -d "$additional_libdir"; then
5446 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5452 -R*)
5453 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5454 if test "$enable_rpath" != no; then
5455 haveit=
5456 for x in $rpathdirs; do
5457 if test "X$x" = "X$dir"; then
5458 haveit=yes
5459 break
5461 done
5462 if test -z "$haveit"; then
5463 rpathdirs="$rpathdirs $dir"
5465 haveit=
5466 for x in $ltrpathdirs; do
5467 if test "X$x" = "X$dir"; then
5468 haveit=yes
5469 break
5471 done
5472 if test -z "$haveit"; then
5473 ltrpathdirs="$ltrpathdirs $dir"
5477 -l*)
5478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5480 *.la)
5481 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5484 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5487 esac
5488 done
5490 else
5491 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5496 done
5497 done
5498 if test "X$rpathdirs" != "X"; then
5499 if test -n "$acl_hardcode_libdir_separator"; then
5500 alldirs=
5501 for found_dir in $rpathdirs; do
5502 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5503 done
5504 acl_save_libdir="$libdir"
5505 libdir="$alldirs"
5506 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5507 libdir="$acl_save_libdir"
5508 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5509 else
5510 for found_dir in $rpathdirs; do
5511 acl_save_libdir="$libdir"
5512 libdir="$found_dir"
5513 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5514 libdir="$acl_save_libdir"
5515 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5516 done
5519 if test "X$ltrpathdirs" != "X"; then
5520 for found_dir in $ltrpathdirs; do
5521 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5522 done
5549 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5550 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
5551 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 gt_save_LIBS="$LIBS"
5555 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <CoreFoundation/CFPreferences.h>
5564 main ()
5566 CFPreferencesCopyAppValue(NULL, NULL)
5568 return 0;
5570 _ACEOF
5571 rm -f conftest.$ac_objext conftest$ac_exeext
5572 if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest$ac_exeext &&
5588 $as_test_x conftest$ac_exeext; then
5589 gt_cv_func_CFPreferencesCopyAppValue=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 gt_cv_func_CFPreferencesCopyAppValue=no
5597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5598 conftest$ac_exeext conftest.$ac_ext
5599 LIBS="$gt_save_LIBS"
5601 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5602 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5603 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5605 cat >>confdefs.h <<\_ACEOF
5606 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5607 _ACEOF
5610 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5611 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
5612 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 gt_save_LIBS="$LIBS"
5616 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <CoreFoundation/CFLocale.h>
5625 main ()
5627 CFLocaleCopyCurrent();
5629 return 0;
5631 _ACEOF
5632 rm -f conftest.$ac_objext conftest$ac_exeext
5633 if { (ac_try="$ac_link"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_link") 2>conftest.er1
5640 ac_status=$?
5641 grep -v '^ *+' conftest.er1 >conftest.err
5642 rm -f conftest.er1
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest$ac_exeext &&
5649 $as_test_x conftest$ac_exeext; then
5650 gt_cv_func_CFLocaleCopyCurrent=yes
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 gt_cv_func_CFLocaleCopyCurrent=no
5658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5659 conftest$ac_exeext conftest.$ac_ext
5660 LIBS="$gt_save_LIBS"
5662 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5663 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5664 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5666 cat >>confdefs.h <<\_ACEOF
5667 #define HAVE_CFLOCALECOPYCURRENT 1
5668 _ACEOF
5671 INTL_MACOSX_LIBS=
5672 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5673 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5681 LIBINTL=
5682 LTLIBINTL=
5683 POSUB=
5685 case " $gt_needs " in
5686 *" need-formatstring-macros "*) gt_api_version=3 ;;
5687 *" need-ngettext "*) gt_api_version=2 ;;
5688 *) gt_api_version=1 ;;
5689 esac
5690 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5691 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5693 if test "$USE_NLS" = "yes"; then
5694 gt_use_preinstalled_gnugettext=no
5697 if test $gt_api_version -ge 3; then
5698 gt_revision_test_code='
5699 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5700 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5701 #endif
5702 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5704 else
5705 gt_revision_test_code=
5707 if test $gt_api_version -ge 2; then
5708 gt_expression_test_code=' + * ngettext ("", "", 0)'
5709 else
5710 gt_expression_test_code=
5713 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5714 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
5715 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <libintl.h>
5725 $gt_revision_test_code
5726 extern int _nl_msg_cat_cntr;
5727 extern int *_nl_domain_bindings;
5729 main ()
5731 bindtextdomain ("", "");
5732 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5734 return 0;
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest$ac_exeext &&
5754 $as_test_x conftest$ac_exeext; then
5755 eval "$gt_func_gnugettext_libc=yes"
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 eval "$gt_func_gnugettext_libc=no"
5763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5764 conftest$ac_exeext conftest.$ac_ext
5766 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
5767 { echo "$as_me:$LINENO: result: $ac_res" >&5
5768 echo "${ECHO_T}$ac_res" >&6; }
5770 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5776 am_save_CPPFLAGS="$CPPFLAGS"
5778 for element in $INCICONV; do
5779 haveit=
5780 for x in $CPPFLAGS; do
5782 acl_save_prefix="$prefix"
5783 prefix="$acl_final_prefix"
5784 acl_save_exec_prefix="$exec_prefix"
5785 exec_prefix="$acl_final_exec_prefix"
5786 eval x=\"$x\"
5787 exec_prefix="$acl_save_exec_prefix"
5788 prefix="$acl_save_prefix"
5790 if test "X$x" = "X$element"; then
5791 haveit=yes
5792 break
5794 done
5795 if test -z "$haveit"; then
5796 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5798 done
5801 { echo "$as_me:$LINENO: checking for iconv" >&5
5802 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
5803 if test "${am_cv_func_iconv+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5807 am_cv_func_iconv="no, consider installing GNU libiconv"
5808 am_cv_lib_iconv=no
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #include <stdlib.h>
5816 #include <iconv.h>
5818 main ()
5820 iconv_t cd = iconv_open("","");
5821 iconv(cd,NULL,NULL,NULL,NULL);
5822 iconv_close(cd);
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (ac_try="$ac_link"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_link") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest$ac_exeext &&
5844 $as_test_x conftest$ac_exeext; then
5845 am_cv_func_iconv=yes
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5854 conftest$ac_exeext conftest.$ac_ext
5855 if test "$am_cv_func_iconv" != yes; then
5856 am_save_LIBS="$LIBS"
5857 LIBS="$LIBS $LIBICONV"
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <stdlib.h>
5865 #include <iconv.h>
5867 main ()
5869 iconv_t cd = iconv_open("","");
5870 iconv(cd,NULL,NULL,NULL,NULL);
5871 iconv_close(cd);
5873 return 0;
5875 _ACEOF
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (ac_try="$ac_link"
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_link") 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); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest$ac_exeext &&
5893 $as_test_x conftest$ac_exeext; then
5894 am_cv_lib_iconv=yes
5895 am_cv_func_iconv=yes
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LIBS="$am_save_LIBS"
5909 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5910 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
5911 if test "$am_cv_func_iconv" = yes; then
5912 { echo "$as_me:$LINENO: checking for working iconv" >&5
5913 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
5914 if test "${am_cv_func_iconv_works+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5918 am_save_LIBS="$LIBS"
5919 if test $am_cv_lib_iconv = yes; then
5920 LIBS="$LIBS $LIBICONV"
5922 if test "$cross_compiling" = yes; then
5923 case "$host_os" in
5924 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5925 *) am_cv_func_iconv_works="guessing yes" ;;
5926 esac
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5935 #include <iconv.h>
5936 #include <string.h>
5937 int main ()
5939 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5940 returns. */
5942 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5943 if (cd_utf8_to_88591 != (iconv_t)(-1))
5945 static const char input[] = "\342\202\254"; /* EURO SIGN */
5946 char buf[10];
5947 const char *inptr = input;
5948 size_t inbytesleft = strlen (input);
5949 char *outptr = buf;
5950 size_t outbytesleft = sizeof (buf);
5951 size_t res = iconv (cd_utf8_to_88591,
5952 (char **) &inptr, &inbytesleft,
5953 &outptr, &outbytesleft);
5954 if (res == 0)
5955 return 1;
5958 #if 0 /* This bug could be worked around by the caller. */
5959 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5961 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5962 if (cd_88591_to_utf8 != (iconv_t)(-1))
5964 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5965 char buf[50];
5966 const char *inptr = input;
5967 size_t inbytesleft = strlen (input);
5968 char *outptr = buf;
5969 size_t outbytesleft = sizeof (buf);
5970 size_t res = iconv (cd_88591_to_utf8,
5971 (char **) &inptr, &inbytesleft,
5972 &outptr, &outbytesleft);
5973 if ((int)res > 0)
5974 return 1;
5977 #endif
5978 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5979 provided. */
5980 if (/* Try standardized names. */
5981 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5982 /* Try IRIX, OSF/1 names. */
5983 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5984 /* Try AIX names. */
5985 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5986 /* Try HP-UX names. */
5987 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5988 return 1;
5989 return 0;
5991 _ACEOF
5992 rm -f conftest$ac_exeext
5993 if { (ac_try="$ac_link"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 am_cv_func_iconv_works=yes
6013 else
6014 echo "$as_me: program exited with status $ac_status" >&5
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ( exit $ac_status )
6019 am_cv_func_iconv_works=no
6021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025 LIBS="$am_save_LIBS"
6028 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
6029 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
6030 case "$am_cv_func_iconv_works" in
6031 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6032 *) am_func_iconv=yes ;;
6033 esac
6034 else
6035 am_func_iconv=no am_cv_lib_iconv=no
6037 if test "$am_func_iconv" = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_ICONV 1
6041 _ACEOF
6044 if test "$am_cv_lib_iconv" = yes; then
6045 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6046 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6047 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6048 echo "${ECHO_T}$LIBICONV" >&6; }
6049 else
6050 CPPFLAGS="$am_save_CPPFLAGS"
6051 LIBICONV=
6052 LTLIBICONV=
6062 use_additional=yes
6064 acl_save_prefix="$prefix"
6065 prefix="$acl_final_prefix"
6066 acl_save_exec_prefix="$exec_prefix"
6067 exec_prefix="$acl_final_exec_prefix"
6069 eval additional_includedir=\"$includedir\"
6070 eval additional_libdir=\"$libdir\"
6072 exec_prefix="$acl_save_exec_prefix"
6073 prefix="$acl_save_prefix"
6076 # Check whether --with-libintl-prefix was given.
6077 if test "${with_libintl_prefix+set}" = set; then
6078 withval=$with_libintl_prefix;
6079 if test "X$withval" = "Xno"; then
6080 use_additional=no
6081 else
6082 if test "X$withval" = "X"; then
6084 acl_save_prefix="$prefix"
6085 prefix="$acl_final_prefix"
6086 acl_save_exec_prefix="$exec_prefix"
6087 exec_prefix="$acl_final_exec_prefix"
6089 eval additional_includedir=\"$includedir\"
6090 eval additional_libdir=\"$libdir\"
6092 exec_prefix="$acl_save_exec_prefix"
6093 prefix="$acl_save_prefix"
6095 else
6096 additional_includedir="$withval/include"
6097 additional_libdir="$withval/$acl_libdirstem"
6103 LIBINTL=
6104 LTLIBINTL=
6105 INCINTL=
6106 LIBINTL_PREFIX=
6107 rpathdirs=
6108 ltrpathdirs=
6109 names_already_handled=
6110 names_next_round='intl '
6111 while test -n "$names_next_round"; do
6112 names_this_round="$names_next_round"
6113 names_next_round=
6114 for name in $names_this_round; do
6115 already_handled=
6116 for n in $names_already_handled; do
6117 if test "$n" = "$name"; then
6118 already_handled=yes
6119 break
6121 done
6122 if test -z "$already_handled"; then
6123 names_already_handled="$names_already_handled $name"
6124 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6125 eval value=\"\$HAVE_LIB$uppername\"
6126 if test -n "$value"; then
6127 if test "$value" = yes; then
6128 eval value=\"\$LIB$uppername\"
6129 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6130 eval value=\"\$LTLIB$uppername\"
6131 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6132 else
6135 else
6136 found_dir=
6137 found_la=
6138 found_so=
6139 found_a=
6140 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6141 if test -n "$acl_shlibext"; then
6142 shrext=".$acl_shlibext" # typically: shrext=.so
6143 else
6144 shrext=
6146 if test $use_additional = yes; then
6147 dir="$additional_libdir"
6148 if test -n "$acl_shlibext"; then
6149 if test -f "$dir/$libname$shrext"; then
6150 found_dir="$dir"
6151 found_so="$dir/$libname$shrext"
6152 else
6153 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6154 ver=`(cd "$dir" && \
6155 for f in "$libname$shrext".*; do echo "$f"; done \
6156 | sed -e "s,^$libname$shrext\\\\.,," \
6157 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6158 | sed 1q ) 2>/dev/null`
6159 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6160 found_dir="$dir"
6161 found_so="$dir/$libname$shrext.$ver"
6163 else
6164 eval library_names=\"$acl_library_names_spec\"
6165 for f in $library_names; do
6166 if test -f "$dir/$f"; then
6167 found_dir="$dir"
6168 found_so="$dir/$f"
6169 break
6171 done
6175 if test "X$found_dir" = "X"; then
6176 if test -f "$dir/$libname.$acl_libext"; then
6177 found_dir="$dir"
6178 found_a="$dir/$libname.$acl_libext"
6181 if test "X$found_dir" != "X"; then
6182 if test -f "$dir/$libname.la"; then
6183 found_la="$dir/$libname.la"
6187 if test "X$found_dir" = "X"; then
6188 for x in $LDFLAGS $LTLIBINTL; do
6190 acl_save_prefix="$prefix"
6191 prefix="$acl_final_prefix"
6192 acl_save_exec_prefix="$exec_prefix"
6193 exec_prefix="$acl_final_exec_prefix"
6194 eval x=\"$x\"
6195 exec_prefix="$acl_save_exec_prefix"
6196 prefix="$acl_save_prefix"
6198 case "$x" in
6199 -L*)
6200 dir=`echo "X$x" | sed -e 's/^X-L//'`
6201 if test -n "$acl_shlibext"; then
6202 if test -f "$dir/$libname$shrext"; then
6203 found_dir="$dir"
6204 found_so="$dir/$libname$shrext"
6205 else
6206 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6207 ver=`(cd "$dir" && \
6208 for f in "$libname$shrext".*; do echo "$f"; done \
6209 | sed -e "s,^$libname$shrext\\\\.,," \
6210 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6211 | sed 1q ) 2>/dev/null`
6212 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6213 found_dir="$dir"
6214 found_so="$dir/$libname$shrext.$ver"
6216 else
6217 eval library_names=\"$acl_library_names_spec\"
6218 for f in $library_names; do
6219 if test -f "$dir/$f"; then
6220 found_dir="$dir"
6221 found_so="$dir/$f"
6222 break
6224 done
6228 if test "X$found_dir" = "X"; then
6229 if test -f "$dir/$libname.$acl_libext"; then
6230 found_dir="$dir"
6231 found_a="$dir/$libname.$acl_libext"
6234 if test "X$found_dir" != "X"; then
6235 if test -f "$dir/$libname.la"; then
6236 found_la="$dir/$libname.la"
6240 esac
6241 if test "X$found_dir" != "X"; then
6242 break
6244 done
6246 if test "X$found_dir" != "X"; then
6247 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6248 if test "X$found_so" != "X"; then
6249 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6251 else
6252 haveit=
6253 for x in $ltrpathdirs; do
6254 if test "X$x" = "X$found_dir"; then
6255 haveit=yes
6256 break
6258 done
6259 if test -z "$haveit"; then
6260 ltrpathdirs="$ltrpathdirs $found_dir"
6262 if test "$acl_hardcode_direct" = yes; then
6263 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6264 else
6265 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6266 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6267 haveit=
6268 for x in $rpathdirs; do
6269 if test "X$x" = "X$found_dir"; then
6270 haveit=yes
6271 break
6273 done
6274 if test -z "$haveit"; then
6275 rpathdirs="$rpathdirs $found_dir"
6277 else
6278 haveit=
6279 for x in $LDFLAGS $LIBINTL; do
6281 acl_save_prefix="$prefix"
6282 prefix="$acl_final_prefix"
6283 acl_save_exec_prefix="$exec_prefix"
6284 exec_prefix="$acl_final_exec_prefix"
6285 eval x=\"$x\"
6286 exec_prefix="$acl_save_exec_prefix"
6287 prefix="$acl_save_prefix"
6289 if test "X$x" = "X-L$found_dir"; then
6290 haveit=yes
6291 break
6293 done
6294 if test -z "$haveit"; then
6295 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6297 if test "$acl_hardcode_minus_L" != no; then
6298 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6299 else
6300 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6305 else
6306 if test "X$found_a" != "X"; then
6307 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6308 else
6309 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6312 additional_includedir=
6313 case "$found_dir" in
6314 */$acl_libdirstem | */$acl_libdirstem/)
6315 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6316 LIBINTL_PREFIX="$basedir"
6317 additional_includedir="$basedir/include"
6319 esac
6320 if test "X$additional_includedir" != "X"; then
6321 if test "X$additional_includedir" != "X/usr/include"; then
6322 haveit=
6323 if test "X$additional_includedir" = "X/usr/local/include"; then
6324 if test -n "$GCC"; then
6325 case $host_os in
6326 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6327 esac
6330 if test -z "$haveit"; then
6331 for x in $CPPFLAGS $INCINTL; do
6333 acl_save_prefix="$prefix"
6334 prefix="$acl_final_prefix"
6335 acl_save_exec_prefix="$exec_prefix"
6336 exec_prefix="$acl_final_exec_prefix"
6337 eval x=\"$x\"
6338 exec_prefix="$acl_save_exec_prefix"
6339 prefix="$acl_save_prefix"
6341 if test "X$x" = "X-I$additional_includedir"; then
6342 haveit=yes
6343 break
6345 done
6346 if test -z "$haveit"; then
6347 if test -d "$additional_includedir"; then
6348 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6354 if test -n "$found_la"; then
6355 save_libdir="$libdir"
6356 case "$found_la" in
6357 */* | *\\*) . "$found_la" ;;
6358 *) . "./$found_la" ;;
6359 esac
6360 libdir="$save_libdir"
6361 for dep in $dependency_libs; do
6362 case "$dep" in
6363 -L*)
6364 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6365 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6366 haveit=
6367 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6368 if test -n "$GCC"; then
6369 case $host_os in
6370 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6371 esac
6374 if test -z "$haveit"; then
6375 haveit=
6376 for x in $LDFLAGS $LIBINTL; do
6378 acl_save_prefix="$prefix"
6379 prefix="$acl_final_prefix"
6380 acl_save_exec_prefix="$exec_prefix"
6381 exec_prefix="$acl_final_exec_prefix"
6382 eval x=\"$x\"
6383 exec_prefix="$acl_save_exec_prefix"
6384 prefix="$acl_save_prefix"
6386 if test "X$x" = "X-L$additional_libdir"; then
6387 haveit=yes
6388 break
6390 done
6391 if test -z "$haveit"; then
6392 if test -d "$additional_libdir"; then
6393 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6396 haveit=
6397 for x in $LDFLAGS $LTLIBINTL; do
6399 acl_save_prefix="$prefix"
6400 prefix="$acl_final_prefix"
6401 acl_save_exec_prefix="$exec_prefix"
6402 exec_prefix="$acl_final_exec_prefix"
6403 eval x=\"$x\"
6404 exec_prefix="$acl_save_exec_prefix"
6405 prefix="$acl_save_prefix"
6407 if test "X$x" = "X-L$additional_libdir"; then
6408 haveit=yes
6409 break
6411 done
6412 if test -z "$haveit"; then
6413 if test -d "$additional_libdir"; then
6414 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6420 -R*)
6421 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6422 if test "$enable_rpath" != no; then
6423 haveit=
6424 for x in $rpathdirs; do
6425 if test "X$x" = "X$dir"; then
6426 haveit=yes
6427 break
6429 done
6430 if test -z "$haveit"; then
6431 rpathdirs="$rpathdirs $dir"
6433 haveit=
6434 for x in $ltrpathdirs; do
6435 if test "X$x" = "X$dir"; then
6436 haveit=yes
6437 break
6439 done
6440 if test -z "$haveit"; then
6441 ltrpathdirs="$ltrpathdirs $dir"
6445 -l*)
6446 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6448 *.la)
6449 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6452 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6453 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6455 esac
6456 done
6458 else
6459 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6460 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6464 done
6465 done
6466 if test "X$rpathdirs" != "X"; then
6467 if test -n "$acl_hardcode_libdir_separator"; then
6468 alldirs=
6469 for found_dir in $rpathdirs; do
6470 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6471 done
6472 acl_save_libdir="$libdir"
6473 libdir="$alldirs"
6474 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6475 libdir="$acl_save_libdir"
6476 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6477 else
6478 for found_dir in $rpathdirs; do
6479 acl_save_libdir="$libdir"
6480 libdir="$found_dir"
6481 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6482 libdir="$acl_save_libdir"
6483 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6484 done
6487 if test "X$ltrpathdirs" != "X"; then
6488 for found_dir in $ltrpathdirs; do
6489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6490 done
6493 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6494 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
6495 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 gt_save_CPPFLAGS="$CPPFLAGS"
6499 CPPFLAGS="$CPPFLAGS $INCINTL"
6500 gt_save_LIBS="$LIBS"
6501 LIBS="$LIBS $LIBINTL"
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <libintl.h>
6509 $gt_revision_test_code
6510 extern int _nl_msg_cat_cntr;
6511 extern
6512 #ifdef __cplusplus
6514 #endif
6515 const char *_nl_expand_alias (const char *);
6517 main ()
6519 bindtextdomain ("", "");
6520 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6522 return 0;
6524 _ACEOF
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (ac_try="$ac_link"
6527 case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530 esac
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_link") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } && {
6539 test -z "$ac_c_werror_flag" ||
6540 test ! -s conftest.err
6541 } && test -s conftest$ac_exeext &&
6542 $as_test_x conftest$ac_exeext; then
6543 eval "$gt_func_gnugettext_libintl=yes"
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 eval "$gt_func_gnugettext_libintl=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6552 conftest$ac_exeext conftest.$ac_ext
6553 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6554 LIBS="$LIBS $LIBICONV"
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <libintl.h>
6562 $gt_revision_test_code
6563 extern int _nl_msg_cat_cntr;
6564 extern
6565 #ifdef __cplusplus
6567 #endif
6568 const char *_nl_expand_alias (const char *);
6570 main ()
6572 bindtextdomain ("", "");
6573 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 LIBINTL="$LIBINTL $LIBICONV"
6597 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6598 eval "$gt_func_gnugettext_libintl=yes"
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608 conftest$ac_exeext conftest.$ac_ext
6610 CPPFLAGS="$gt_save_CPPFLAGS"
6611 LIBS="$gt_save_LIBS"
6613 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
6614 { echo "$as_me:$LINENO: result: $ac_res" >&5
6615 echo "${ECHO_T}$ac_res" >&6; }
6618 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6619 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6620 && test "$PACKAGE" != gettext-runtime \
6621 && test "$PACKAGE" != gettext-tools; }; then
6622 gt_use_preinstalled_gnugettext=yes
6623 else
6624 LIBINTL=
6625 LTLIBINTL=
6626 INCINTL=
6631 if test -n "$INTL_MACOSX_LIBS"; then
6632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6634 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6635 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6639 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6640 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define ENABLE_NLS 1
6644 _ACEOF
6646 else
6647 USE_NLS=no
6651 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
6652 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
6653 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6654 echo "${ECHO_T}$USE_NLS" >&6; }
6655 if test "$USE_NLS" = "yes"; then
6656 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6657 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
6658 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6659 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6660 gt_source="external libintl"
6661 else
6662 gt_source="libc"
6664 else
6665 gt_source="included intl directory"
6667 { echo "$as_me:$LINENO: result: $gt_source" >&5
6668 echo "${ECHO_T}$gt_source" >&6; }
6671 if test "$USE_NLS" = "yes"; then
6673 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6674 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6675 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
6676 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
6677 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
6678 echo "${ECHO_T}$LIBINTL" >&6; }
6680 for element in $INCINTL; do
6681 haveit=
6682 for x in $CPPFLAGS; do
6684 acl_save_prefix="$prefix"
6685 prefix="$acl_final_prefix"
6686 acl_save_exec_prefix="$exec_prefix"
6687 exec_prefix="$acl_final_exec_prefix"
6688 eval x=\"$x\"
6689 exec_prefix="$acl_save_exec_prefix"
6690 prefix="$acl_save_prefix"
6692 if test "X$x" = "X$element"; then
6693 haveit=yes
6694 break
6696 done
6697 if test -z "$haveit"; then
6698 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6700 done
6705 cat >>confdefs.h <<\_ACEOF
6706 #define HAVE_GETTEXT 1
6707 _ACEOF
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_DCGETTEXT 1
6712 _ACEOF
6716 POSUB=po
6721 INTLLIBS="$LIBINTL"
6728 # this is the verion of gettext, not barry
6732 # Checks for programs.
6734 ac_ext=c
6735 ac_cpp='$CPP $CPPFLAGS'
6736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_prog_CC+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 if test -n "$CC"; then
6748 ac_cv_prog_CC="$CC" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 CC=$ac_cv_prog_CC
6768 if test -n "$CC"; then
6769 { echo "$as_me:$LINENO: result: $CC" >&5
6770 echo "${ECHO_T}$CC" >&6; }
6771 else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6778 if test -z "$ac_cv_prog_CC"; then
6779 ac_ct_CC=$CC
6780 # Extract the first word of "gcc", so it can be a program name with args.
6781 set dummy gcc; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 if test -n "$ac_ct_CC"; then
6788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_CC="gcc"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6801 done
6802 done
6803 IFS=$as_save_IFS
6807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6808 if test -n "$ac_ct_CC"; then
6809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6810 echo "${ECHO_T}$ac_ct_CC" >&6; }
6811 else
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6816 if test "x$ac_ct_CC" = x; then
6817 CC=""
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6822 whose name does not start with the host triplet. If you think this
6823 configuration is useful to you, please write to autoconf@gnu.org." >&5
6824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6825 whose name does not start with the host triplet. If you think this
6826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 CC=$ac_ct_CC
6831 else
6832 CC="$ac_cv_prog_CC"
6835 if test -z "$CC"; then
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}cc; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_prog_CC+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 if test -n "$CC"; then
6845 ac_cv_prog_CC="$CC" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_CC="${ac_tool_prefix}cc"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6858 done
6859 done
6860 IFS=$as_save_IFS
6864 CC=$ac_cv_prog_CC
6865 if test -n "$CC"; then
6866 { echo "$as_me:$LINENO: result: $CC" >&5
6867 echo "${ECHO_T}$CC" >&6; }
6868 else
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6876 if test -z "$CC"; then
6877 # Extract the first word of "cc", so it can be a program name with args.
6878 set dummy cc; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_prog_CC+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 if test -n "$CC"; then
6885 ac_cv_prog_CC="$CC" # Let the user override the test.
6886 else
6887 ac_prog_rejected=no
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6896 ac_prog_rejected=yes
6897 continue
6899 ac_cv_prog_CC="cc"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6907 if test $ac_prog_rejected = yes; then
6908 # We found a bogon in the path, so make sure we never use it.
6909 set dummy $ac_cv_prog_CC
6910 shift
6911 if test $# != 0; then
6912 # We chose a different compiler from the bogus one.
6913 # However, it has the same basename, so the bogon will be chosen
6914 # first if we set CC to just the basename; use the full file name.
6915 shift
6916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6921 CC=$ac_cv_prog_CC
6922 if test -n "$CC"; then
6923 { echo "$as_me:$LINENO: result: $CC" >&5
6924 echo "${ECHO_T}$CC" >&6; }
6925 else
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6932 if test -z "$CC"; then
6933 if test -n "$ac_tool_prefix"; then
6934 for ac_prog in cl.exe
6936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_prog_CC+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 if test -n "$CC"; then
6944 ac_cv_prog_CC="$CC" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 CC=$ac_cv_prog_CC
6964 if test -n "$CC"; then
6965 { echo "$as_me:$LINENO: result: $CC" >&5
6966 echo "${ECHO_T}$CC" >&6; }
6967 else
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6973 test -n "$CC" && break
6974 done
6976 if test -z "$CC"; then
6977 ac_ct_CC=$CC
6978 for ac_prog in cl.exe
6980 # Extract the first word of "$ac_prog", so it can be a program name with args.
6981 set dummy $ac_prog; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 if test -n "$ac_ct_CC"; then
6988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_prog_ac_ct_CC="$ac_prog"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7001 done
7002 done
7003 IFS=$as_save_IFS
7007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7008 if test -n "$ac_ct_CC"; then
7009 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7010 echo "${ECHO_T}$ac_ct_CC" >&6; }
7011 else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7017 test -n "$ac_ct_CC" && break
7018 done
7020 if test "x$ac_ct_CC" = x; then
7021 CC=""
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7026 whose name does not start with the host triplet. If you think this
7027 configuration is useful to you, please write to autoconf@gnu.org." >&5
7028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7029 whose name does not start with the host triplet. If you think this
7030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7031 ac_tool_warned=yes ;;
7032 esac
7033 CC=$ac_ct_CC
7040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7041 See \`config.log' for more details." >&5
7042 echo "$as_me: error: no acceptable C compiler found in \$PATH
7043 See \`config.log' for more details." >&2;}
7044 { (exit 1); exit 1; }; }
7046 # Provide some information about the compiler.
7047 echo "$as_me:$LINENO: checking for C compiler version" >&5
7048 ac_compiler=`set X $ac_compile; echo $2`
7049 { (ac_try="$ac_compiler --version >&5"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_compiler --version >&5") 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }
7059 { (ac_try="$ac_compiler -v >&5"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compiler -v >&5") 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }
7069 { (ac_try="$ac_compiler -V >&5"
7070 case "(($ac_try" in
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compiler -V >&5") 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }
7080 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7081 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
7082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7093 main ()
7095 #ifndef __GNUC__
7096 choke me
7097 #endif
7100 return 0;
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7120 ac_compiler_gnu=yes
7121 else
7122 echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_compiler_gnu=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7132 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
7134 GCC=`test $ac_compiler_gnu = yes && echo yes`
7135 ac_test_CFLAGS=${CFLAGS+set}
7136 ac_save_CFLAGS=$CFLAGS
7137 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7138 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
7139 if test "${ac_cv_prog_cc_g+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 ac_save_c_werror_flag=$ac_c_werror_flag
7143 ac_c_werror_flag=yes
7144 ac_cv_prog_cc_g=no
7145 CFLAGS="-g"
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7154 main ()
7158 return 0;
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7163 case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_compile") 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest.$ac_objext; then
7178 ac_cv_prog_cc_g=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 CFLAGS=""
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7192 main ()
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 ac_c_werror_flag=$ac_save_c_werror_flag
7222 CFLAGS="-g"
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7231 main ()
7235 return 0;
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7240 case "(($ac_try" in
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_compile") 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest.$ac_objext; then
7255 ac_cv_prog_cc_g=yes
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 ac_c_werror_flag=$ac_save_c_werror_flag
7272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7273 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
7274 if test "$ac_test_CFLAGS" = set; then
7275 CFLAGS=$ac_save_CFLAGS
7276 elif test $ac_cv_prog_cc_g = yes; then
7277 if test "$GCC" = yes; then
7278 CFLAGS="-g -O2"
7279 else
7280 CFLAGS="-g"
7282 else
7283 if test "$GCC" = yes; then
7284 CFLAGS="-O2"
7285 else
7286 CFLAGS=
7289 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
7290 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7291 if test "${ac_cv_prog_cc_c89+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 ac_cv_prog_cc_c89=no
7295 ac_save_CC=$CC
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #include <stdarg.h>
7303 #include <stdio.h>
7304 #include <sys/types.h>
7305 #include <sys/stat.h>
7306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7307 struct buf { int x; };
7308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7309 static char *e (p, i)
7310 char **p;
7311 int i;
7313 return p[i];
7315 static char *f (char * (*g) (char **, int), char **p, ...)
7317 char *s;
7318 va_list v;
7319 va_start (v,p);
7320 s = g (p, va_arg (v,int));
7321 va_end (v);
7322 return s;
7325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7326 function prototypes and stuff, but not '\xHH' hex character constants.
7327 These don't provoke an error unfortunately, instead are silently treated
7328 as 'x'. The following induces an error, until -std is added to get
7329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7330 array size at least. It's necessary to write '\x00'==0 to get something
7331 that's true only with -std. */
7332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7335 inside strings and character constants. */
7336 #define FOO(x) 'x'
7337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7339 int test (int i, double x);
7340 struct s1 {int (*f) (int a);};
7341 struct s2 {int (*f) (double a);};
7342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7343 int argc;
7344 char **argv;
7346 main ()
7348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7350 return 0;
7352 _ACEOF
7353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7356 CC="$ac_save_CC $ac_arg"
7357 rm -f conftest.$ac_objext
7358 if { (ac_try="$ac_compile"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7374 ac_cv_prog_cc_c89=$ac_arg
7375 else
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7382 rm -f core conftest.err conftest.$ac_objext
7383 test "x$ac_cv_prog_cc_c89" != "xno" && break
7384 done
7385 rm -f conftest.$ac_ext
7386 CC=$ac_save_CC
7389 # AC_CACHE_VAL
7390 case "x$ac_cv_prog_cc_c89" in
7392 { echo "$as_me:$LINENO: result: none needed" >&5
7393 echo "${ECHO_T}none needed" >&6; } ;;
7394 xno)
7395 { echo "$as_me:$LINENO: result: unsupported" >&5
7396 echo "${ECHO_T}unsupported" >&6; } ;;
7398 CC="$CC $ac_cv_prog_cc_c89"
7399 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7400 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
7401 esac
7404 ac_ext=c
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 depcc="$CC" am_compiler_list=
7412 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7413 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7418 # We make a subdir and do the tests there. Otherwise we can end up
7419 # making bogus files that we don't know about and never remove. For
7420 # instance it was reported that on HP-UX the gcc test will end up
7421 # making a dummy file named `D' -- because `-MD' means `put the output
7422 # in D'.
7423 mkdir conftest.dir
7424 # Copy depcomp to subdir because otherwise we won't find it if we're
7425 # using a relative directory.
7426 cp "$am_depcomp" conftest.dir
7427 cd conftest.dir
7428 # We will build objects and dependencies in a subdirectory because
7429 # it helps to detect inapplicable dependency modes. For instance
7430 # both Tru64's cc and ICC support -MD to output dependencies as a
7431 # side effect of compilation, but ICC will put the dependencies in
7432 # the current directory while Tru64 will put them in the object
7433 # directory.
7434 mkdir sub
7436 am_cv_CC_dependencies_compiler_type=none
7437 if test "$am_compiler_list" = ""; then
7438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7440 for depmode in $am_compiler_list; do
7441 # Setup a source with many dependencies, because some compilers
7442 # like to wrap large dependency lists on column 80 (with \), and
7443 # we should not choose a depcomp mode which is confused by this.
7445 # We need to recreate these files for each test, as the compiler may
7446 # overwrite some of them when testing with obscure command lines.
7447 # This happens at least with the AIX C compiler.
7448 : > sub/conftest.c
7449 for i in 1 2 3 4 5 6; do
7450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7451 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7452 # Solaris 8's {/usr,}/bin/sh.
7453 touch sub/conftst$i.h
7454 done
7455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7457 case $depmode in
7458 nosideeffect)
7459 # after this tag, mechanisms are not by side-effect, so they'll
7460 # only be used when explicitly requested
7461 if test "x$enable_dependency_tracking" = xyes; then
7462 continue
7463 else
7464 break
7467 none) break ;;
7468 esac
7469 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7470 # mode. It turns out that the SunPro C++ compiler does not properly
7471 # handle `-M -o', and we need to detect this.
7472 if depmode=$depmode \
7473 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7475 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7476 >/dev/null 2>conftest.err &&
7477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7479 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7481 # icc doesn't choke on unknown options, it will just issue warnings
7482 # or remarks (even with -Werror). So we grep stderr for any message
7483 # that says an option was ignored or not supported.
7484 # When given -MP, icc 7.0 and 7.1 complain thusly:
7485 # icc: Command line warning: ignoring option '-M'; no argument required
7486 # The diagnosis changed in icc 8.0:
7487 # icc: Command line remark: option '-MP' not supported
7488 if (grep 'ignoring option' conftest.err ||
7489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7490 am_cv_CC_dependencies_compiler_type=$depmode
7491 break
7494 done
7496 cd ..
7497 rm -rf conftest.dir
7498 else
7499 am_cv_CC_dependencies_compiler_type=none
7503 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7504 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
7505 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7508 test "x$enable_dependency_tracking" != xno \
7509 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7510 am__fastdepCC_TRUE=
7511 am__fastdepCC_FALSE='#'
7512 else
7513 am__fastdepCC_TRUE='#'
7514 am__fastdepCC_FALSE=
7518 ac_ext=cpp
7519 ac_cpp='$CXXCPP $CPPFLAGS'
7520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7523 if test -z "$CXX"; then
7524 if test -n "$CCC"; then
7525 CXX=$CCC
7526 else
7527 if test -n "$ac_tool_prefix"; then
7528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_prog_CXX+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 if test -n "$CXX"; then
7538 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7551 done
7552 done
7553 IFS=$as_save_IFS
7557 CXX=$ac_cv_prog_CXX
7558 if test -n "$CXX"; then
7559 { echo "$as_me:$LINENO: result: $CXX" >&5
7560 echo "${ECHO_T}$CXX" >&6; }
7561 else
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 test -n "$CXX" && break
7568 done
7570 if test -z "$CXX"; then
7571 ac_ct_CXX=$CXX
7572 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7574 # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 if test -n "$ac_ct_CXX"; then
7582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_ac_ct_CXX="$ac_prog"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7602 if test -n "$ac_ct_CXX"; then
7603 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7604 echo "${ECHO_T}$ac_ct_CXX" >&6; }
7605 else
7606 { echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6; }
7611 test -n "$ac_ct_CXX" && break
7612 done
7614 if test "x$ac_ct_CXX" = x; then
7615 CXX="g++"
7616 else
7617 case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7620 whose name does not start with the host triplet. If you think this
7621 configuration is useful to you, please write to autoconf@gnu.org." >&5
7622 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7623 whose name does not start with the host triplet. If you think this
7624 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627 CXX=$ac_ct_CXX
7633 # Provide some information about the compiler.
7634 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7635 ac_compiler=`set X $ac_compile; echo $2`
7636 { (ac_try="$ac_compiler --version >&5"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compiler --version >&5") 2>&5
7643 ac_status=$?
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }
7646 { (ac_try="$ac_compiler -v >&5"
7647 case "(($ac_try" in
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_compiler -v >&5") 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }
7656 { (ac_try="$ac_compiler -V >&5"
7657 case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_compiler -V >&5") 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }
7667 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7668 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7669 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7680 main ()
7682 #ifndef __GNUC__
7683 choke me
7684 #endif
7687 return 0;
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_cxx_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 ac_compiler_gnu=yes
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_compiler_gnu=no
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7719 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7720 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7721 GXX=`test $ac_compiler_gnu = yes && echo yes`
7722 ac_test_CXXFLAGS=${CXXFLAGS+set}
7723 ac_save_CXXFLAGS=$CXXFLAGS
7724 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7725 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7726 if test "${ac_cv_prog_cxx_g+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7730 ac_cxx_werror_flag=yes
7731 ac_cv_prog_cxx_g=no
7732 CXXFLAGS="-g"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7741 main ()
7745 return 0;
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7750 case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_cxx_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 ac_cv_prog_cxx_g=yes
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 CXXFLAGS=""
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7779 main ()
7783 return 0;
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7794 ac_status=$?
7795 grep -v '^ *+' conftest.er1 >conftest.err
7796 rm -f conftest.er1
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_cxx_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7809 CXXFLAGS="-g"
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7818 main ()
7822 return 0;
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7827 case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_compile") 2>conftest.er1
7833 ac_status=$?
7834 grep -v '^ *+' conftest.er1 >conftest.err
7835 rm -f conftest.er1
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_cxx_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest.$ac_objext; then
7842 ac_cv_prog_cxx_g=yes
7843 else
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7859 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7860 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7861 if test "$ac_test_CXXFLAGS" = set; then
7862 CXXFLAGS=$ac_save_CXXFLAGS
7863 elif test $ac_cv_prog_cxx_g = yes; then
7864 if test "$GXX" = yes; then
7865 CXXFLAGS="-g -O2"
7866 else
7867 CXXFLAGS="-g"
7869 else
7870 if test "$GXX" = yes; then
7871 CXXFLAGS="-O2"
7872 else
7873 CXXFLAGS=
7876 ac_ext=c
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882 depcc="$CXX" am_compiler_list=
7884 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7885 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7886 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7890 # We make a subdir and do the tests there. Otherwise we can end up
7891 # making bogus files that we don't know about and never remove. For
7892 # instance it was reported that on HP-UX the gcc test will end up
7893 # making a dummy file named `D' -- because `-MD' means `put the output
7894 # in D'.
7895 mkdir conftest.dir
7896 # Copy depcomp to subdir because otherwise we won't find it if we're
7897 # using a relative directory.
7898 cp "$am_depcomp" conftest.dir
7899 cd conftest.dir
7900 # We will build objects and dependencies in a subdirectory because
7901 # it helps to detect inapplicable dependency modes. For instance
7902 # both Tru64's cc and ICC support -MD to output dependencies as a
7903 # side effect of compilation, but ICC will put the dependencies in
7904 # the current directory while Tru64 will put them in the object
7905 # directory.
7906 mkdir sub
7908 am_cv_CXX_dependencies_compiler_type=none
7909 if test "$am_compiler_list" = ""; then
7910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7912 for depmode in $am_compiler_list; do
7913 # Setup a source with many dependencies, because some compilers
7914 # like to wrap large dependency lists on column 80 (with \), and
7915 # we should not choose a depcomp mode which is confused by this.
7917 # We need to recreate these files for each test, as the compiler may
7918 # overwrite some of them when testing with obscure command lines.
7919 # This happens at least with the AIX C compiler.
7920 : > sub/conftest.c
7921 for i in 1 2 3 4 5 6; do
7922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7923 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7924 # Solaris 8's {/usr,}/bin/sh.
7925 touch sub/conftst$i.h
7926 done
7927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7929 case $depmode in
7930 nosideeffect)
7931 # after this tag, mechanisms are not by side-effect, so they'll
7932 # only be used when explicitly requested
7933 if test "x$enable_dependency_tracking" = xyes; then
7934 continue
7935 else
7936 break
7939 none) break ;;
7940 esac
7941 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7942 # mode. It turns out that the SunPro C++ compiler does not properly
7943 # handle `-M -o', and we need to detect this.
7944 if depmode=$depmode \
7945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7948 >/dev/null 2>conftest.err &&
7949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7951 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7953 # icc doesn't choke on unknown options, it will just issue warnings
7954 # or remarks (even with -Werror). So we grep stderr for any message
7955 # that says an option was ignored or not supported.
7956 # When given -MP, icc 7.0 and 7.1 complain thusly:
7957 # icc: Command line warning: ignoring option '-M'; no argument required
7958 # The diagnosis changed in icc 8.0:
7959 # icc: Command line remark: option '-MP' not supported
7960 if (grep 'ignoring option' conftest.err ||
7961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7962 am_cv_CXX_dependencies_compiler_type=$depmode
7963 break
7966 done
7968 cd ..
7969 rm -rf conftest.dir
7970 else
7971 am_cv_CXX_dependencies_compiler_type=none
7975 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7976 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7977 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7980 test "x$enable_dependency_tracking" != xno \
7981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7982 am__fastdepCXX_TRUE=
7983 am__fastdepCXX_FALSE='#'
7984 else
7985 am__fastdepCXX_TRUE='#'
7986 am__fastdepCXX_FALSE=
7990 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7991 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7992 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7993 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 cat >conftest.make <<\_ACEOF
7997 SHELL = /bin/sh
7998 all:
7999 @echo '@@@%%%=$(MAKE)=@@@%%%'
8000 _ACEOF
8001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8003 *@@@%%%=?*=@@@%%%*)
8004 eval ac_cv_prog_make_${ac_make}_set=yes;;
8006 eval ac_cv_prog_make_${ac_make}_set=no;;
8007 esac
8008 rm -f conftest.make
8010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8011 { echo "$as_me:$LINENO: result: yes" >&5
8012 echo "${ECHO_T}yes" >&6; }
8013 SET_MAKE=
8014 else
8015 { echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6; }
8017 SET_MAKE="MAKE=${MAKE-make}"
8020 # Check whether --enable-shared was given.
8021 if test "${enable_shared+set}" = set; then
8022 enableval=$enable_shared; p=${PACKAGE-default}
8023 case $enableval in
8024 yes) enable_shared=yes ;;
8025 no) enable_shared=no ;;
8027 enable_shared=no
8028 # Look at the argument we got. We use all the common list separators.
8029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8030 for pkg in $enableval; do
8031 IFS="$lt_save_ifs"
8032 if test "X$pkg" = "X$p"; then
8033 enable_shared=yes
8035 done
8036 IFS="$lt_save_ifs"
8038 esac
8039 else
8040 enable_shared=yes
8044 # Check whether --enable-static was given.
8045 if test "${enable_static+set}" = set; then
8046 enableval=$enable_static; p=${PACKAGE-default}
8047 case $enableval in
8048 yes) enable_static=yes ;;
8049 no) enable_static=no ;;
8051 enable_static=no
8052 # Look at the argument we got. We use all the common list separators.
8053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8054 for pkg in $enableval; do
8055 IFS="$lt_save_ifs"
8056 if test "X$pkg" = "X$p"; then
8057 enable_static=yes
8059 done
8060 IFS="$lt_save_ifs"
8062 esac
8063 else
8064 enable_static=yes
8068 # Check whether --enable-fast-install was given.
8069 if test "${enable_fast_install+set}" = set; then
8070 enableval=$enable_fast_install; p=${PACKAGE-default}
8071 case $enableval in
8072 yes) enable_fast_install=yes ;;
8073 no) enable_fast_install=no ;;
8075 enable_fast_install=no
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for pkg in $enableval; do
8079 IFS="$lt_save_ifs"
8080 if test "X$pkg" = "X$p"; then
8081 enable_fast_install=yes
8083 done
8084 IFS="$lt_save_ifs"
8086 esac
8087 else
8088 enable_fast_install=yes
8092 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8093 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
8094 if test "${lt_cv_path_SED+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 # Loop through the user's path and test for sed and gsed.
8098 # Then use that list of sed's as ones to test for truncation.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for lt_ac_prog in sed gsed; do
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
8107 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8109 done
8110 done
8111 done
8112 IFS=$as_save_IFS
8113 lt_ac_max=0
8114 lt_ac_count=0
8115 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8116 # along with /bin/sed that truncates output.
8117 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8118 test ! -f $lt_ac_sed && continue
8119 cat /dev/null > conftest.in
8120 lt_ac_count=0
8121 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8122 # Check for GNU sed and select it if it is found.
8123 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8124 lt_cv_path_SED=$lt_ac_sed
8125 break
8127 while true; do
8128 cat conftest.in conftest.in >conftest.tmp
8129 mv conftest.tmp conftest.in
8130 cp conftest.in conftest.nl
8131 echo >>conftest.nl
8132 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8133 cmp -s conftest.out conftest.nl || break
8134 # 10000 chars as input seems more than enough
8135 test $lt_ac_count -gt 10 && break
8136 lt_ac_count=`expr $lt_ac_count + 1`
8137 if test $lt_ac_count -gt $lt_ac_max; then
8138 lt_ac_max=$lt_ac_count
8139 lt_cv_path_SED=$lt_ac_sed
8141 done
8142 done
8146 SED=$lt_cv_path_SED
8148 { echo "$as_me:$LINENO: result: $SED" >&5
8149 echo "${ECHO_T}$SED" >&6; }
8152 # Check whether --with-gnu-ld was given.
8153 if test "${with_gnu_ld+set}" = set; then
8154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8155 else
8156 with_gnu_ld=no
8159 ac_prog=ld
8160 if test "$GCC" = yes; then
8161 # Check if gcc -print-prog-name=ld gives a path.
8162 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8163 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
8164 case $host in
8165 *-*-mingw*)
8166 # gcc leaves a trailing carriage return which upsets mingw
8167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8170 esac
8171 case $ac_prog in
8172 # Accept absolute paths.
8173 [\\/]* | ?:[\\/]*)
8174 re_direlt='/[^/][^/]*/\.\./'
8175 # Canonicalize the pathname of ld
8176 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8177 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8178 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8179 done
8180 test -z "$LD" && LD="$ac_prog"
8183 # If it fails, then pretend we aren't using GCC.
8184 ac_prog=ld
8187 # If it is relative, then search for the first ld in PATH.
8188 with_gnu_ld=unknown
8190 esac
8191 elif test "$with_gnu_ld" = yes; then
8192 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8193 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8194 else
8195 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8196 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8198 if test "${lt_cv_path_LD+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 if test -z "$LD"; then
8202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8203 for ac_dir in $PATH; do
8204 IFS="$lt_save_ifs"
8205 test -z "$ac_dir" && ac_dir=.
8206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8207 lt_cv_path_LD="$ac_dir/$ac_prog"
8208 # Check to see if the program is GNU ld. I'd rather use --version,
8209 # but apparently some variants of GNU ld only accept -v.
8210 # Break only if it was the GNU/non-GNU ld that we prefer.
8211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8212 *GNU* | *'with BFD'*)
8213 test "$with_gnu_ld" != no && break
8216 test "$with_gnu_ld" != yes && break
8218 esac
8220 done
8221 IFS="$lt_save_ifs"
8222 else
8223 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8227 LD="$lt_cv_path_LD"
8228 if test -n "$LD"; then
8229 { echo "$as_me:$LINENO: result: $LD" >&5
8230 echo "${ECHO_T}$LD" >&6; }
8231 else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8235 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8236 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8237 { (exit 1); exit 1; }; }
8238 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8239 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8240 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8244 case `$LD -v 2>&1 </dev/null` in
8245 *GNU* | *'with BFD'*)
8246 lt_cv_prog_gnu_ld=yes
8249 lt_cv_prog_gnu_ld=no
8251 esac
8253 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8254 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8255 with_gnu_ld=$lt_cv_prog_gnu_ld
8258 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8259 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8260 if test "${lt_cv_ld_reload_flag+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 lt_cv_ld_reload_flag='-r'
8265 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8266 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8267 reload_flag=$lt_cv_ld_reload_flag
8268 case $reload_flag in
8269 "" | " "*) ;;
8270 *) reload_flag=" $reload_flag" ;;
8271 esac
8272 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8273 case $host_os in
8274 darwin*)
8275 if test "$GCC" = yes; then
8276 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8277 else
8278 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8281 esac
8283 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8284 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
8285 if test "${lt_cv_path_NM+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 if test -n "$NM"; then
8289 # Let the user override the test.
8290 lt_cv_path_NM="$NM"
8291 else
8292 lt_nm_to_check="${ac_tool_prefix}nm"
8293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8294 lt_nm_to_check="$lt_nm_to_check nm"
8296 for lt_tmp_nm in $lt_nm_to_check; do
8297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8299 IFS="$lt_save_ifs"
8300 test -z "$ac_dir" && ac_dir=.
8301 tmp_nm="$ac_dir/$lt_tmp_nm"
8302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8303 # Check to see if the nm accepts a BSD-compat flag.
8304 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8305 # nm: unknown option "B" ignored
8306 # Tru64's nm complains that /dev/null is an invalid object file
8307 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8308 */dev/null* | *'Invalid file or object type'*)
8309 lt_cv_path_NM="$tmp_nm -B"
8310 break
8313 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8314 */dev/null*)
8315 lt_cv_path_NM="$tmp_nm -p"
8316 break
8319 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8320 continue # so that we can try to find one that supports BSD flags
8322 esac
8324 esac
8326 done
8327 IFS="$lt_save_ifs"
8328 done
8329 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8332 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8333 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8334 NM="$lt_cv_path_NM"
8336 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8337 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8338 LN_S=$as_ln_s
8339 if test "$LN_S" = "ln -s"; then
8340 { echo "$as_me:$LINENO: result: yes" >&5
8341 echo "${ECHO_T}yes" >&6; }
8342 else
8343 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8344 echo "${ECHO_T}no, using $LN_S" >&6; }
8347 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8348 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
8349 if test "${lt_cv_deplibs_check_method+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 lt_cv_file_magic_cmd='$MAGIC_CMD'
8353 lt_cv_file_magic_test_file=
8354 lt_cv_deplibs_check_method='unknown'
8355 # Need to set the preceding variable on all platforms that support
8356 # interlibrary dependencies.
8357 # 'none' -- dependencies not supported.
8358 # `unknown' -- same as none, but documents that we really don't know.
8359 # 'pass_all' -- all dependencies passed with no checks.
8360 # 'test_compile' -- check by making test program.
8361 # 'file_magic [[regex]]' -- check by looking for files in library path
8362 # which responds to the $file_magic_cmd with a given extended regex.
8363 # If you have `file' or equivalent on your system and you're not sure
8364 # whether `pass_all' will *always* work, you probably want this one.
8366 case $host_os in
8367 aix[4-9]*)
8368 lt_cv_deplibs_check_method=pass_all
8371 beos*)
8372 lt_cv_deplibs_check_method=pass_all
8375 bsdi[45]*)
8376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8377 lt_cv_file_magic_cmd='/usr/bin/file -L'
8378 lt_cv_file_magic_test_file=/shlib/libc.so
8381 cygwin*)
8382 # func_win32_libid is a shell function defined in ltmain.sh
8383 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8384 lt_cv_file_magic_cmd='func_win32_libid'
8387 mingw* | pw32*)
8388 # Base MSYS/MinGW do not provide the 'file' command needed by
8389 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8390 # unless we find 'file', for example because we are cross-compiling.
8391 if ( file / ) >/dev/null 2>&1; then
8392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8393 lt_cv_file_magic_cmd='func_win32_libid'
8394 else
8395 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8396 lt_cv_file_magic_cmd='$OBJDUMP -f'
8400 darwin* | rhapsody*)
8401 lt_cv_deplibs_check_method=pass_all
8404 freebsd* | dragonfly*)
8405 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8406 case $host_cpu in
8407 i*86 )
8408 # Not sure whether the presence of OpenBSD here was a mistake.
8409 # Let's accept both of them until this is cleared up.
8410 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8411 lt_cv_file_magic_cmd=/usr/bin/file
8412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8414 esac
8415 else
8416 lt_cv_deplibs_check_method=pass_all
8420 gnu*)
8421 lt_cv_deplibs_check_method=pass_all
8424 hpux10.20* | hpux11*)
8425 lt_cv_file_magic_cmd=/usr/bin/file
8426 case $host_cpu in
8427 ia64*)
8428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8429 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8431 hppa*64*)
8432 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]'
8433 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8437 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8439 esac
8442 interix[3-9]*)
8443 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8447 irix5* | irix6* | nonstopux*)
8448 case $LD in
8449 *-32|*"-32 ") libmagic=32-bit;;
8450 *-n32|*"-n32 ") libmagic=N32;;
8451 *-64|*"-64 ") libmagic=64-bit;;
8452 *) libmagic=never-match;;
8453 esac
8454 lt_cv_deplibs_check_method=pass_all
8457 # This must be Linux ELF.
8458 linux* | k*bsd*-gnu)
8459 lt_cv_deplibs_check_method=pass_all
8462 netbsd* | netbsdelf*-gnu)
8463 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8465 else
8466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8470 newos6*)
8471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8472 lt_cv_file_magic_cmd=/usr/bin/file
8473 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8476 nto-qnx*)
8477 lt_cv_deplibs_check_method=unknown
8480 openbsd*)
8481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8483 else
8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8488 osf3* | osf4* | osf5*)
8489 lt_cv_deplibs_check_method=pass_all
8492 rdos*)
8493 lt_cv_deplibs_check_method=pass_all
8496 solaris*)
8497 lt_cv_deplibs_check_method=pass_all
8500 sysv4 | sysv4.3*)
8501 case $host_vendor in
8502 motorola)
8503 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]'
8504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8506 ncr)
8507 lt_cv_deplibs_check_method=pass_all
8509 sequent)
8510 lt_cv_file_magic_cmd='/bin/file'
8511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8513 sni)
8514 lt_cv_file_magic_cmd='/bin/file'
8515 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8516 lt_cv_file_magic_test_file=/lib/libc.so
8518 siemens)
8519 lt_cv_deplibs_check_method=pass_all
8522 lt_cv_deplibs_check_method=pass_all
8524 esac
8527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8528 lt_cv_deplibs_check_method=pass_all
8530 esac
8533 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8534 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8535 file_magic_cmd=$lt_cv_file_magic_cmd
8536 deplibs_check_method=$lt_cv_deplibs_check_method
8537 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8542 # If no C compiler was specified, use CC.
8543 LTCC=${LTCC-"$CC"}
8545 # If no C compiler flags were specified, use CFLAGS.
8546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8548 # Allow CC to be a program name with arguments.
8549 compiler=$CC
8551 # Check whether --enable-libtool-lock was given.
8552 if test "${enable_libtool_lock+set}" = set; then
8553 enableval=$enable_libtool_lock;
8556 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8558 # Some flags need to be propagated to the compiler or linker for good
8559 # libtool support.
8560 case $host in
8561 ia64-*-hpux*)
8562 # Find out which ABI we are using.
8563 echo 'int i;' > conftest.$ac_ext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; then
8569 case `/usr/bin/file conftest.$ac_objext` in
8570 *ELF-32*)
8571 HPUX_IA64_MODE="32"
8573 *ELF-64*)
8574 HPUX_IA64_MODE="64"
8576 esac
8578 rm -rf conftest*
8580 *-*-irix6*)
8581 # Find out which ABI we are using.
8582 echo '#line 8582 "configure"' > conftest.$ac_ext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; then
8588 if test "$lt_cv_prog_gnu_ld" = yes; then
8589 case `/usr/bin/file conftest.$ac_objext` in
8590 *32-bit*)
8591 LD="${LD-ld} -melf32bsmip"
8593 *N32*)
8594 LD="${LD-ld} -melf32bmipn32"
8596 *64-bit*)
8597 LD="${LD-ld} -melf64bmip"
8599 esac
8600 else
8601 case `/usr/bin/file conftest.$ac_objext` in
8602 *32-bit*)
8603 LD="${LD-ld} -32"
8605 *N32*)
8606 LD="${LD-ld} -n32"
8608 *64-bit*)
8609 LD="${LD-ld} -64"
8611 esac
8614 rm -rf conftest*
8617 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8618 s390*-*linux*|sparc*-*linux*)
8619 # Find out which ABI we are using.
8620 echo 'int i;' > conftest.$ac_ext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; then
8626 case `/usr/bin/file conftest.o` in
8627 *32-bit*)
8628 case $host in
8629 x86_64-*kfreebsd*-gnu)
8630 LD="${LD-ld} -m elf_i386_fbsd"
8632 x86_64-*linux*)
8633 LD="${LD-ld} -m elf_i386"
8635 ppc64-*linux*|powerpc64-*linux*)
8636 LD="${LD-ld} -m elf32ppclinux"
8638 s390x-*linux*)
8639 LD="${LD-ld} -m elf_s390"
8641 sparc64-*linux*)
8642 LD="${LD-ld} -m elf32_sparc"
8644 esac
8646 *64-bit*)
8647 case $host in
8648 x86_64-*kfreebsd*-gnu)
8649 LD="${LD-ld} -m elf_x86_64_fbsd"
8651 x86_64-*linux*)
8652 LD="${LD-ld} -m elf_x86_64"
8654 ppc*-*linux*|powerpc*-*linux*)
8655 LD="${LD-ld} -m elf64ppc"
8657 s390*-*linux*)
8658 LD="${LD-ld} -m elf64_s390"
8660 sparc*-*linux*)
8661 LD="${LD-ld} -m elf64_sparc"
8663 esac
8665 esac
8667 rm -rf conftest*
8670 *-*-sco3.2v5*)
8671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8672 SAVE_CFLAGS="$CFLAGS"
8673 CFLAGS="$CFLAGS -belf"
8674 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8675 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8676 if test "${lt_cv_cc_needs_belf+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 ac_ext=c
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8693 main ()
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (ac_try="$ac_link"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_link") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest$ac_exeext &&
8717 $as_test_x conftest$ac_exeext; then
8718 lt_cv_cc_needs_belf=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 lt_cv_cc_needs_belf=no
8726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8727 conftest$ac_exeext conftest.$ac_ext
8728 ac_ext=c
8729 ac_cpp='$CPP $CPPFLAGS'
8730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8736 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8737 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8738 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8739 CFLAGS="$SAVE_CFLAGS"
8742 sparc*-*solaris*)
8743 # Find out which ABI we are using.
8744 echo 'int i;' > conftest.$ac_ext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; then
8750 case `/usr/bin/file conftest.o` in
8751 *64-bit*)
8752 case $lt_cv_prog_gnu_ld in
8753 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8755 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8756 LD="${LD-ld} -64"
8759 esac
8761 esac
8763 rm -rf conftest*
8767 esac
8769 need_locks="$enable_libtool_lock"
8773 for ac_header in dlfcn.h
8775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 ac_res=`eval echo '${'$as_ac_Header'}'`
8783 { echo "$as_me:$LINENO: result: $ac_res" >&5
8784 echo "${ECHO_T}$ac_res" >&6; }
8785 else
8786 # Is the header compilable?
8787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #include <$ac_header>
8797 _ACEOF
8798 rm -f conftest.$ac_objext
8799 if { (ac_try="$ac_compile"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_header_compiler=yes
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_header_compiler=no
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8825 echo "${ECHO_T}$ac_header_compiler" >&6; }
8827 # Is the header present?
8828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 #include <$ac_header>
8837 _ACEOF
8838 if { (ac_try="$ac_cpp conftest.$ac_ext"
8839 case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } >/dev/null && {
8851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 }; then
8854 ac_header_preproc=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6; }
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8868 yes:no: )
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8873 ac_header_preproc=yes
8875 no:yes:* )
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8888 ( cat <<\_ASBOX
8889 ## ------------------------------------------------ ##
8890 ## Report this to barry-devel@lists.sourceforge.net ##
8891 ## ------------------------------------------------ ##
8892 _ASBOX
8893 ) | sed "s/^/$as_me: WARNING: /" >&2
8895 esac
8896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 eval "$as_ac_Header=\$ac_header_preproc"
8903 ac_res=`eval echo '${'$as_ac_Header'}'`
8904 { echo "$as_me:$LINENO: result: $ac_res" >&5
8905 echo "${ECHO_T}$ac_res" >&6; }
8908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8909 cat >>confdefs.h <<_ACEOF
8910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8911 _ACEOF
8915 done
8919 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8921 (test "X$CXX" != "Xg++"))) ; then
8922 ac_ext=cpp
8923 ac_cpp='$CXXCPP $CPPFLAGS'
8924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8927 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8928 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8929 if test -z "$CXXCPP"; then
8930 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 # Double quotes because CXXCPP needs to be expanded
8934 for CXXCPP in "$CXX -E" "/lib/cpp"
8936 ac_preproc_ok=false
8937 for ac_cxx_preproc_warn_flag in '' yes
8939 # Use a header file that comes with gcc, so configuring glibc
8940 # with a fresh cross-compiler works.
8941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 # <limits.h> exists even on freestanding compilers.
8943 # On the NeXT, cc -E runs the code through the compiler's parser,
8944 # not just through cpp. "Syntax error" is here to catch this case.
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 #ifdef __STDC__
8952 # include <limits.h>
8953 #else
8954 # include <assert.h>
8955 #endif
8956 Syntax error
8957 _ACEOF
8958 if { (ac_try="$ac_cpp conftest.$ac_ext"
8959 case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } >/dev/null && {
8971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8972 test ! -s conftest.err
8973 }; then
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 # Broken: fails on valid input.
8980 continue
8983 rm -f conftest.err conftest.$ac_ext
8985 # OK, works on sane cases. Now check whether nonexistent headers
8986 # can be detected and how.
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <ac_nonexistent.h>
8994 _ACEOF
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null && {
9008 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9009 test ! -s conftest.err
9010 }; then
9011 # Broken: success on invalid input.
9012 continue
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 # Passes both tests.
9018 ac_preproc_ok=:
9019 break
9022 rm -f conftest.err conftest.$ac_ext
9024 done
9025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9026 rm -f conftest.err conftest.$ac_ext
9027 if $ac_preproc_ok; then
9028 break
9031 done
9032 ac_cv_prog_CXXCPP=$CXXCPP
9035 CXXCPP=$ac_cv_prog_CXXCPP
9036 else
9037 ac_cv_prog_CXXCPP=$CXXCPP
9039 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
9040 echo "${ECHO_T}$CXXCPP" >&6; }
9041 ac_preproc_ok=false
9042 for ac_cxx_preproc_warn_flag in '' yes
9044 # Use a header file that comes with gcc, so configuring glibc
9045 # with a fresh cross-compiler works.
9046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9047 # <limits.h> exists even on freestanding compilers.
9048 # On the NeXT, cc -E runs the code through the compiler's parser,
9049 # not just through cpp. "Syntax error" is here to catch this case.
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 #ifdef __STDC__
9057 # include <limits.h>
9058 #else
9059 # include <assert.h>
9060 #endif
9061 Syntax error
9062 _ACEOF
9063 if { (ac_try="$ac_cpp conftest.$ac_ext"
9064 case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } >/dev/null && {
9076 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9077 test ! -s conftest.err
9078 }; then
9080 else
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 # Broken: fails on valid input.
9085 continue
9088 rm -f conftest.err conftest.$ac_ext
9090 # OK, works on sane cases. Now check whether nonexistent headers
9091 # can be detected and how.
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 #include <ac_nonexistent.h>
9099 _ACEOF
9100 if { (ac_try="$ac_cpp conftest.$ac_ext"
9101 case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } >/dev/null && {
9113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9114 test ! -s conftest.err
9115 }; then
9116 # Broken: success on invalid input.
9117 continue
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 # Passes both tests.
9123 ac_preproc_ok=:
9124 break
9127 rm -f conftest.err conftest.$ac_ext
9129 done
9130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9131 rm -f conftest.err conftest.$ac_ext
9132 if $ac_preproc_ok; then
9134 else
9135 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9136 See \`config.log' for more details." >&5
9137 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9138 See \`config.log' for more details." >&2;}
9139 { (exit 1); exit 1; }; }
9142 ac_ext=cpp
9143 ac_cpp='$CXXCPP $CPPFLAGS'
9144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9151 ac_ext=f
9152 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9153 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9154 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9155 if test -n "$ac_tool_prefix"; then
9156 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
9158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9162 if test "${ac_cv_prog_F77+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 if test -n "$F77"; then
9166 ac_cv_prog_F77="$F77" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9179 done
9180 done
9181 IFS=$as_save_IFS
9185 F77=$ac_cv_prog_F77
9186 if test -n "$F77"; then
9187 { echo "$as_me:$LINENO: result: $F77" >&5
9188 echo "${ECHO_T}$F77" >&6; }
9189 else
9190 { echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6; }
9195 test -n "$F77" && break
9196 done
9198 if test -z "$F77"; then
9199 ac_ct_F77=$F77
9200 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
9202 # Extract the first word of "$ac_prog", so it can be a program name with args.
9203 set dummy $ac_prog; ac_word=$2
9204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9206 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 if test -n "$ac_ct_F77"; then
9210 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9211 else
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219 ac_cv_prog_ac_ct_F77="$ac_prog"
9220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9221 break 2
9223 done
9224 done
9225 IFS=$as_save_IFS
9229 ac_ct_F77=$ac_cv_prog_ac_ct_F77
9230 if test -n "$ac_ct_F77"; then
9231 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9232 echo "${ECHO_T}$ac_ct_F77" >&6; }
9233 else
9234 { echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6; }
9239 test -n "$ac_ct_F77" && break
9240 done
9242 if test "x$ac_ct_F77" = x; then
9243 F77=""
9244 else
9245 case $cross_compiling:$ac_tool_warned in
9246 yes:)
9247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9248 whose name does not start with the host triplet. If you think this
9249 configuration is useful to you, please write to autoconf@gnu.org." >&5
9250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9251 whose name does not start with the host triplet. If you think this
9252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9253 ac_tool_warned=yes ;;
9254 esac
9255 F77=$ac_ct_F77
9260 # Provide some information about the compiler.
9261 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9262 ac_compiler=`set X $ac_compile; echo $2`
9263 { (ac_try="$ac_compiler --version >&5"
9264 case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267 esac
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compiler --version >&5") 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }
9273 { (ac_try="$ac_compiler -v >&5"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compiler -v >&5") 2>&5
9280 ac_status=$?
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }
9283 { (ac_try="$ac_compiler -V >&5"
9284 case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compiler -V >&5") 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }
9293 rm -f a.out
9295 # If we don't use `.F' as extension, the preprocessor is not run on the
9296 # input file. (Note that this only needs to work for GNU compilers.)
9297 ac_save_ext=$ac_ext
9298 ac_ext=F
9299 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9300 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
9301 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 cat >conftest.$ac_ext <<_ACEOF
9305 program main
9306 #ifndef __GNUC__
9307 choke me
9308 #endif
9311 _ACEOF
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9314 case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_compile") 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && {
9326 test -z "$ac_f77_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest.$ac_objext; then
9329 ac_compiler_gnu=yes
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9334 ac_compiler_gnu=no
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9341 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9342 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
9343 ac_ext=$ac_save_ext
9344 ac_test_FFLAGS=${FFLAGS+set}
9345 ac_save_FFLAGS=$FFLAGS
9346 FFLAGS=
9347 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9348 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
9349 if test "${ac_cv_prog_f77_g+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 FFLAGS=-g
9353 cat >conftest.$ac_ext <<_ACEOF
9354 program main
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9360 case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_compile") 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && {
9372 test -z "$ac_f77_werror_flag" ||
9373 test ! -s conftest.err
9374 } && test -s conftest.$ac_objext; then
9375 ac_cv_prog_f77_g=yes
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_prog_f77_g=no
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9387 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
9388 if test "$ac_test_FFLAGS" = set; then
9389 FFLAGS=$ac_save_FFLAGS
9390 elif test $ac_cv_prog_f77_g = yes; then
9391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9392 FFLAGS="-g -O2"
9393 else
9394 FFLAGS="-g"
9396 else
9397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9398 FFLAGS="-O2"
9399 else
9400 FFLAGS=
9404 G77=`test $ac_compiler_gnu = yes && echo yes`
9405 ac_ext=c
9406 ac_cpp='$CPP $CPPFLAGS'
9407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9413 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9414 # find the maximum length of command line arguments
9415 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9416 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9417 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9421 teststring="ABCD"
9423 case $build_os in
9424 msdosdjgpp*)
9425 # On DJGPP, this test can blow up pretty badly due to problems in libc
9426 # (any single argument exceeding 2000 bytes causes a buffer overrun
9427 # during glob expansion). Even if it were fixed, the result of this
9428 # check would be larger than it should be.
9429 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9432 gnu*)
9433 # Under GNU Hurd, this test is not required because there is
9434 # no limit to the length of command line arguments.
9435 # Libtool will interpret -1 as no limit whatsoever
9436 lt_cv_sys_max_cmd_len=-1;
9439 cygwin* | mingw*)
9440 # On Win9x/ME, this test blows up -- it succeeds, but takes
9441 # about 5 minutes as the teststring grows exponentially.
9442 # Worse, since 9x/ME are not pre-emptively multitasking,
9443 # you end up with a "frozen" computer, even though with patience
9444 # the test eventually succeeds (with a max line length of 256k).
9445 # Instead, let's just punt: use the minimum linelength reported by
9446 # all of the supported platforms: 8192 (on NT/2K/XP).
9447 lt_cv_sys_max_cmd_len=8192;
9450 amigaos*)
9451 # On AmigaOS with pdksh, this test takes hours, literally.
9452 # So we just punt and use a minimum line length of 8192.
9453 lt_cv_sys_max_cmd_len=8192;
9456 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9457 # This has been around since 386BSD, at least. Likely further.
9458 if test -x /sbin/sysctl; then
9459 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9460 elif test -x /usr/sbin/sysctl; then
9461 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9462 else
9463 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9465 # And add a safety zone
9466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9470 interix*)
9471 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9472 lt_cv_sys_max_cmd_len=196608
9475 osf*)
9476 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9477 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9478 # nice to cause kernel panics so lets avoid the loop below.
9479 # First set a reasonable default.
9480 lt_cv_sys_max_cmd_len=16384
9482 if test -x /sbin/sysconfig; then
9483 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9484 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9485 esac
9488 sco3.2v5*)
9489 lt_cv_sys_max_cmd_len=102400
9491 sysv5* | sco5v6* | sysv4.2uw2*)
9492 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9493 if test -n "$kargmax"; then
9494 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9495 else
9496 lt_cv_sys_max_cmd_len=32768
9500 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9501 if test -n "$lt_cv_sys_max_cmd_len"; then
9502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9504 else
9505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9506 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9507 = "XX$teststring") >/dev/null 2>&1 &&
9508 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9509 lt_cv_sys_max_cmd_len=$new_result &&
9510 test $i != 17 # 1/2 MB should be enough
9512 i=`expr $i + 1`
9513 teststring=$teststring$teststring
9514 done
9515 teststring=
9516 # Add a significant safety factor because C++ compilers can tack on massive
9517 # amounts of additional arguments before passing them to the linker.
9518 # It appears as though 1/2 is a usable value.
9519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9522 esac
9526 if test -n $lt_cv_sys_max_cmd_len ; then
9527 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9528 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9529 else
9530 { echo "$as_me:$LINENO: result: none" >&5
9531 echo "${ECHO_T}none" >&6; }
9538 # Check for command to grab the raw symbol name followed by C symbol from nm.
9539 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9540 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9541 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9545 # These are sane defaults that work on at least a few old systems.
9546 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9548 # Character class describing NM global symbol codes.
9549 symcode='[BCDEGRST]'
9551 # Regexp to match symbols that can be accessed directly from C.
9552 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9554 # Transform an extracted symbol line into a proper C declaration
9555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9557 # Transform an extracted symbol line into symbol name and symbol address
9558 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'"
9560 # Define system-specific variables.
9561 case $host_os in
9562 aix*)
9563 symcode='[BCDT]'
9565 cygwin* | mingw* | pw32*)
9566 symcode='[ABCDGISTW]'
9568 hpux*) # Its linker distinguishes data from code symbols
9569 if test "$host_cpu" = ia64; then
9570 symcode='[ABCDEGRST]'
9572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9573 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'"
9575 linux* | k*bsd*-gnu)
9576 if test "$host_cpu" = ia64; then
9577 symcode='[ABCDGIRSTW]'
9578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9579 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'"
9582 irix* | nonstopux*)
9583 symcode='[BCDEGRST]'
9585 osf*)
9586 symcode='[BCDEGQRST]'
9588 solaris*)
9589 symcode='[BDRT]'
9591 sco3.2v5*)
9592 symcode='[DT]'
9594 sysv4.2uw2*)
9595 symcode='[DT]'
9597 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9598 symcode='[ABDT]'
9600 sysv4)
9601 symcode='[DFNSTU]'
9603 esac
9605 # Handle CRLF in mingw tool chain
9606 opt_cr=
9607 case $build_os in
9608 mingw*)
9609 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9611 esac
9613 # If we're using GNU nm, then use its standard symbol codes.
9614 case `$NM -V 2>&1` in
9615 *GNU* | *'with BFD'*)
9616 symcode='[ABCDGIRSTW]' ;;
9617 esac
9619 # Try without a prefix undercore, then with it.
9620 for ac_symprfx in "" "_"; do
9622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9623 symxfrm="\\1 $ac_symprfx\\2 \\2"
9625 # Write the raw and C identifiers.
9626 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9628 # Check to see that the pipe works correctly.
9629 pipe_works=no
9631 rm -f conftest*
9632 cat > conftest.$ac_ext <<EOF
9633 #ifdef __cplusplus
9634 extern "C" {
9635 #endif
9636 char nm_test_var;
9637 void nm_test_func(){}
9638 #ifdef __cplusplus
9640 #endif
9641 int main(){nm_test_var='a';nm_test_func();return(0);}
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; then
9649 # Now try to grab the symbols.
9650 nlist=conftest.nm
9651 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9652 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && test -s "$nlist"; then
9656 # Try sorting and uniquifying the output.
9657 if sort "$nlist" | uniq > "$nlist"T; then
9658 mv -f "$nlist"T "$nlist"
9659 else
9660 rm -f "$nlist"T
9663 # Make sure that we snagged all the symbols we need.
9664 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9665 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9666 cat <<EOF > conftest.$ac_ext
9667 #ifdef __cplusplus
9668 extern "C" {
9669 #endif
9672 # Now generate the symbol file.
9673 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9675 cat <<EOF >> conftest.$ac_ext
9676 #if defined (__STDC__) && __STDC__
9677 # define lt_ptr_t void *
9678 #else
9679 # define lt_ptr_t char *
9680 # define const
9681 #endif
9683 /* The mapping between symbol names and symbols. */
9684 const struct {
9685 const char *name;
9686 lt_ptr_t address;
9688 lt_preloaded_symbols[] =
9691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9692 cat <<\EOF >> conftest.$ac_ext
9693 {0, (lt_ptr_t) 0}
9696 #ifdef __cplusplus
9698 #endif
9700 # Now try linking the two files.
9701 mv conftest.$ac_objext conftstm.$ac_objext
9702 lt_save_LIBS="$LIBS"
9703 lt_save_CFLAGS="$CFLAGS"
9704 LIBS="conftstm.$ac_objext"
9705 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9711 pipe_works=yes
9713 LIBS="$lt_save_LIBS"
9714 CFLAGS="$lt_save_CFLAGS"
9715 else
9716 echo "cannot find nm_test_func in $nlist" >&5
9718 else
9719 echo "cannot find nm_test_var in $nlist" >&5
9721 else
9722 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9724 else
9725 echo "$progname: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9728 rm -rf conftest* conftst*
9730 # Do not use the global_symbol_pipe unless it works.
9731 if test "$pipe_works" = yes; then
9732 break
9733 else
9734 lt_cv_sys_global_symbol_pipe=
9736 done
9740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9741 lt_cv_sys_global_symbol_to_cdecl=
9743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9744 { echo "$as_me:$LINENO: result: failed" >&5
9745 echo "${ECHO_T}failed" >&6; }
9746 else
9747 { echo "$as_me:$LINENO: result: ok" >&5
9748 echo "${ECHO_T}ok" >&6; }
9751 { echo "$as_me:$LINENO: checking for objdir" >&5
9752 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9753 if test "${lt_cv_objdir+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 rm -f .libs 2>/dev/null
9757 mkdir .libs 2>/dev/null
9758 if test -d .libs; then
9759 lt_cv_objdir=.libs
9760 else
9761 # MS-DOS does not allow filenames that begin with a dot.
9762 lt_cv_objdir=_libs
9764 rmdir .libs 2>/dev/null
9766 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9767 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9768 objdir=$lt_cv_objdir
9774 case $host_os in
9775 aix3*)
9776 # AIX sometimes has problems with the GCC collect2 program. For some
9777 # reason, if we set the COLLECT_NAMES environment variable, the problems
9778 # vanish in a puff of smoke.
9779 if test "X${COLLECT_NAMES+set}" != Xset; then
9780 COLLECT_NAMES=
9781 export COLLECT_NAMES
9784 esac
9786 # Sed substitution that helps us do robust quoting. It backslashifies
9787 # metacharacters that are still active within double-quoted strings.
9788 Xsed='sed -e 1s/^X//'
9789 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9791 # Same as above, but do not quote variable references.
9792 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9794 # Sed substitution to delay expansion of an escaped shell variable in a
9795 # double_quote_subst'ed string.
9796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9798 # Sed substitution to avoid accidental globbing in evaled expressions
9799 no_glob_subst='s/\*/\\\*/g'
9801 # Constants:
9802 rm="rm -f"
9804 # Global variables:
9805 default_ofile=libtool
9806 can_build_shared=yes
9808 # All known linkers require a `.a' archive for static linking (except MSVC,
9809 # which needs '.lib').
9810 libext=a
9811 ltmain="$ac_aux_dir/ltmain.sh"
9812 ofile="$default_ofile"
9813 with_gnu_ld="$lt_cv_prog_gnu_ld"
9815 if test -n "$ac_tool_prefix"; then
9816 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9817 set dummy ${ac_tool_prefix}ar; ac_word=$2
9818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9820 if test "${ac_cv_prog_AR+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 if test -n "$AR"; then
9824 ac_cv_prog_AR="$AR" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_prog_AR="${ac_tool_prefix}ar"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9837 done
9838 done
9839 IFS=$as_save_IFS
9843 AR=$ac_cv_prog_AR
9844 if test -n "$AR"; then
9845 { echo "$as_me:$LINENO: result: $AR" >&5
9846 echo "${ECHO_T}$AR" >&6; }
9847 else
9848 { echo "$as_me:$LINENO: result: no" >&5
9849 echo "${ECHO_T}no" >&6; }
9854 if test -z "$ac_cv_prog_AR"; then
9855 ac_ct_AR=$AR
9856 # Extract the first word of "ar", so it can be a program name with args.
9857 set dummy ar; ac_word=$2
9858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9860 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 if test -n "$ac_ct_AR"; then
9864 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9865 else
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $PATH
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9873 ac_cv_prog_ac_ct_AR="ar"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9877 done
9878 done
9879 IFS=$as_save_IFS
9883 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9884 if test -n "$ac_ct_AR"; then
9885 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9886 echo "${ECHO_T}$ac_ct_AR" >&6; }
9887 else
9888 { echo "$as_me:$LINENO: result: no" >&5
9889 echo "${ECHO_T}no" >&6; }
9892 if test "x$ac_ct_AR" = x; then
9893 AR="false"
9894 else
9895 case $cross_compiling:$ac_tool_warned in
9896 yes:)
9897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9898 whose name does not start with the host triplet. If you think this
9899 configuration is useful to you, please write to autoconf@gnu.org." >&5
9900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9901 whose name does not start with the host triplet. If you think this
9902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9903 ac_tool_warned=yes ;;
9904 esac
9905 AR=$ac_ct_AR
9907 else
9908 AR="$ac_cv_prog_AR"
9911 if test -n "$ac_tool_prefix"; then
9912 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9916 if test "${ac_cv_prog_RANLIB+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 if test -n "$RANLIB"; then
9920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9933 done
9934 done
9935 IFS=$as_save_IFS
9939 RANLIB=$ac_cv_prog_RANLIB
9940 if test -n "$RANLIB"; then
9941 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9942 echo "${ECHO_T}$RANLIB" >&6; }
9943 else
9944 { echo "$as_me:$LINENO: result: no" >&5
9945 echo "${ECHO_T}no" >&6; }
9950 if test -z "$ac_cv_prog_RANLIB"; then
9951 ac_ct_RANLIB=$RANLIB
9952 # Extract the first word of "ranlib", so it can be a program name with args.
9953 set dummy ranlib; ac_word=$2
9954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9956 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 if test -n "$ac_ct_RANLIB"; then
9960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_prog_ac_ct_RANLIB="ranlib"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9973 done
9974 done
9975 IFS=$as_save_IFS
9979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9980 if test -n "$ac_ct_RANLIB"; then
9981 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9982 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9983 else
9984 { echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6; }
9988 if test "x$ac_ct_RANLIB" = x; then
9989 RANLIB=":"
9990 else
9991 case $cross_compiling:$ac_tool_warned in
9992 yes:)
9993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9994 whose name does not start with the host triplet. If you think this
9995 configuration is useful to you, please write to autoconf@gnu.org." >&5
9996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9997 whose name does not start with the host triplet. If you think this
9998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9999 ac_tool_warned=yes ;;
10000 esac
10001 RANLIB=$ac_ct_RANLIB
10003 else
10004 RANLIB="$ac_cv_prog_RANLIB"
10007 if test -n "$ac_tool_prefix"; then
10008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10009 set dummy ${ac_tool_prefix}strip; ac_word=$2
10010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10012 if test "${ac_cv_prog_STRIP+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 if test -n "$STRIP"; then
10016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10035 STRIP=$ac_cv_prog_STRIP
10036 if test -n "$STRIP"; then
10037 { echo "$as_me:$LINENO: result: $STRIP" >&5
10038 echo "${ECHO_T}$STRIP" >&6; }
10039 else
10040 { echo "$as_me:$LINENO: result: no" >&5
10041 echo "${ECHO_T}no" >&6; }
10046 if test -z "$ac_cv_prog_STRIP"; then
10047 ac_ct_STRIP=$STRIP
10048 # Extract the first word of "strip", so it can be a program name with args.
10049 set dummy strip; ac_word=$2
10050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10052 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 if test -n "$ac_ct_STRIP"; then
10056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_prog_ac_ct_STRIP="strip"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10071 IFS=$as_save_IFS
10075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10076 if test -n "$ac_ct_STRIP"; then
10077 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10078 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
10079 else
10080 { echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6; }
10084 if test "x$ac_ct_STRIP" = x; then
10085 STRIP=":"
10086 else
10087 case $cross_compiling:$ac_tool_warned in
10088 yes:)
10089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10090 whose name does not start with the host triplet. If you think this
10091 configuration is useful to you, please write to autoconf@gnu.org." >&5
10092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10093 whose name does not start with the host triplet. If you think this
10094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10095 ac_tool_warned=yes ;;
10096 esac
10097 STRIP=$ac_ct_STRIP
10099 else
10100 STRIP="$ac_cv_prog_STRIP"
10104 old_CC="$CC"
10105 old_CFLAGS="$CFLAGS"
10107 # Set sane defaults for various variables
10108 test -z "$AR" && AR=ar
10109 test -z "$AR_FLAGS" && AR_FLAGS=cru
10110 test -z "$AS" && AS=as
10111 test -z "$CC" && CC=cc
10112 test -z "$LTCC" && LTCC=$CC
10113 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10114 test -z "$DLLTOOL" && DLLTOOL=dlltool
10115 test -z "$LD" && LD=ld
10116 test -z "$LN_S" && LN_S="ln -s"
10117 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10118 test -z "$NM" && NM=nm
10119 test -z "$SED" && SED=sed
10120 test -z "$OBJDUMP" && OBJDUMP=objdump
10121 test -z "$RANLIB" && RANLIB=:
10122 test -z "$STRIP" && STRIP=:
10123 test -z "$ac_objext" && ac_objext=o
10125 # Determine commands to create old-style static archives.
10126 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10127 old_postinstall_cmds='chmod 644 $oldlib'
10128 old_postuninstall_cmds=
10130 if test -n "$RANLIB"; then
10131 case $host_os in
10132 openbsd*)
10133 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10138 esac
10139 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10142 for cc_temp in $compiler""; do
10143 case $cc_temp in
10144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10146 \-*) ;;
10147 *) break;;
10148 esac
10149 done
10150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10153 # Only perform the check for file, if the check method requires it
10154 case $deplibs_check_method in
10155 file_magic*)
10156 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10157 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10158 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
10159 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 case $MAGIC_CMD in
10163 [\\/*] | ?:[\\/]*)
10164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10167 lt_save_MAGIC_CMD="$MAGIC_CMD"
10168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10169 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10170 for ac_dir in $ac_dummy; do
10171 IFS="$lt_save_ifs"
10172 test -z "$ac_dir" && ac_dir=.
10173 if test -f $ac_dir/${ac_tool_prefix}file; then
10174 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10175 if test -n "$file_magic_test_file"; then
10176 case $deplibs_check_method in
10177 "file_magic "*)
10178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10181 $EGREP "$file_magic_regex" > /dev/null; then
10183 else
10184 cat <<EOF 1>&2
10186 *** Warning: the command libtool uses to detect shared libraries,
10187 *** $file_magic_cmd, produces output that libtool cannot recognize.
10188 *** The result is that libtool may fail to recognize shared libraries
10189 *** as such. This will affect the creation of libtool libraries that
10190 *** depend on shared libraries, but programs linked with such libtool
10191 *** libraries will work regardless of this problem. Nevertheless, you
10192 *** may want to report the problem to your system manager and/or to
10193 *** bug-libtool@gnu.org
10196 fi ;;
10197 esac
10199 break
10201 done
10202 IFS="$lt_save_ifs"
10203 MAGIC_CMD="$lt_save_MAGIC_CMD"
10205 esac
10208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10209 if test -n "$MAGIC_CMD"; then
10210 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10211 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10212 else
10213 { echo "$as_me:$LINENO: result: no" >&5
10214 echo "${ECHO_T}no" >&6; }
10217 if test -z "$lt_cv_path_MAGIC_CMD"; then
10218 if test -n "$ac_tool_prefix"; then
10219 { echo "$as_me:$LINENO: checking for file" >&5
10220 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
10221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 case $MAGIC_CMD in
10225 [\\/*] | ?:[\\/]*)
10226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10229 lt_save_MAGIC_CMD="$MAGIC_CMD"
10230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10232 for ac_dir in $ac_dummy; do
10233 IFS="$lt_save_ifs"
10234 test -z "$ac_dir" && ac_dir=.
10235 if test -f $ac_dir/file; then
10236 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10237 if test -n "$file_magic_test_file"; then
10238 case $deplibs_check_method in
10239 "file_magic "*)
10240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10243 $EGREP "$file_magic_regex" > /dev/null; then
10245 else
10246 cat <<EOF 1>&2
10248 *** Warning: the command libtool uses to detect shared libraries,
10249 *** $file_magic_cmd, produces output that libtool cannot recognize.
10250 *** The result is that libtool may fail to recognize shared libraries
10251 *** as such. This will affect the creation of libtool libraries that
10252 *** depend on shared libraries, but programs linked with such libtool
10253 *** libraries will work regardless of this problem. Nevertheless, you
10254 *** may want to report the problem to your system manager and/or to
10255 *** bug-libtool@gnu.org
10258 fi ;;
10259 esac
10261 break
10263 done
10264 IFS="$lt_save_ifs"
10265 MAGIC_CMD="$lt_save_MAGIC_CMD"
10267 esac
10270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10271 if test -n "$MAGIC_CMD"; then
10272 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10273 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10274 else
10275 { echo "$as_me:$LINENO: result: no" >&5
10276 echo "${ECHO_T}no" >&6; }
10279 else
10280 MAGIC_CMD=:
10286 esac
10289 case $host_os in
10290 rhapsody* | darwin*)
10291 if test -n "$ac_tool_prefix"; then
10292 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10293 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10296 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 if test -n "$DSYMUTIL"; then
10300 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10319 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10320 if test -n "$DSYMUTIL"; then
10321 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10322 echo "${ECHO_T}$DSYMUTIL" >&6; }
10323 else
10324 { echo "$as_me:$LINENO: result: no" >&5
10325 echo "${ECHO_T}no" >&6; }
10330 if test -z "$ac_cv_prog_DSYMUTIL"; then
10331 ac_ct_DSYMUTIL=$DSYMUTIL
10332 # Extract the first word of "dsymutil", so it can be a program name with args.
10333 set dummy dsymutil; ac_word=$2
10334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10336 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 if test -n "$ac_ct_DSYMUTIL"; then
10340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10341 else
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10349 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10351 break 2
10353 done
10354 done
10355 IFS=$as_save_IFS
10359 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10360 if test -n "$ac_ct_DSYMUTIL"; then
10361 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10362 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
10363 else
10364 { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10368 if test "x$ac_ct_DSYMUTIL" = x; then
10369 DSYMUTIL=":"
10370 else
10371 case $cross_compiling:$ac_tool_warned in
10372 yes:)
10373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10374 whose name does not start with the host triplet. If you think this
10375 configuration is useful to you, please write to autoconf@gnu.org." >&5
10376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10377 whose name does not start with the host triplet. If you think this
10378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10379 ac_tool_warned=yes ;;
10380 esac
10381 DSYMUTIL=$ac_ct_DSYMUTIL
10383 else
10384 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10387 if test -n "$ac_tool_prefix"; then
10388 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10389 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10392 if test "${ac_cv_prog_NMEDIT+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 if test -n "$NMEDIT"; then
10396 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10397 else
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10405 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 break 2
10409 done
10410 done
10411 IFS=$as_save_IFS
10415 NMEDIT=$ac_cv_prog_NMEDIT
10416 if test -n "$NMEDIT"; then
10417 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
10418 echo "${ECHO_T}$NMEDIT" >&6; }
10419 else
10420 { echo "$as_me:$LINENO: result: no" >&5
10421 echo "${ECHO_T}no" >&6; }
10426 if test -z "$ac_cv_prog_NMEDIT"; then
10427 ac_ct_NMEDIT=$NMEDIT
10428 # Extract the first word of "nmedit", so it can be a program name with args.
10429 set dummy nmedit; ac_word=$2
10430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10432 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 if test -n "$ac_ct_NMEDIT"; then
10436 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10437 else
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10455 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10456 if test -n "$ac_ct_NMEDIT"; then
10457 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10458 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
10459 else
10460 { echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6; }
10464 if test "x$ac_ct_NMEDIT" = x; then
10465 NMEDIT=":"
10466 else
10467 case $cross_compiling:$ac_tool_warned in
10468 yes:)
10469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10470 whose name does not start with the host triplet. If you think this
10471 configuration is useful to you, please write to autoconf@gnu.org." >&5
10472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10473 whose name does not start with the host triplet. If you think this
10474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10475 ac_tool_warned=yes ;;
10476 esac
10477 NMEDIT=$ac_ct_NMEDIT
10479 else
10480 NMEDIT="$ac_cv_prog_NMEDIT"
10484 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10485 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
10486 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 lt_cv_apple_cc_single_mod=no
10490 if test -z "${LT_MULTI_MODULE}"; then
10491 # By default we will add the -single_module flag. You can override
10492 # by either setting the environment variable LT_MULTI_MODULE
10493 # non-empty at configure time, or by adding -multi_module to the
10494 # link flags.
10495 echo "int foo(void){return 1;}" > conftest.c
10496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10497 -dynamiclib ${wl}-single_module conftest.c
10498 if test -f libconftest.dylib; then
10499 lt_cv_apple_cc_single_mod=yes
10500 rm -rf libconftest.dylib*
10502 rm conftest.c
10505 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10506 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10507 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10508 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
10509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 lt_cv_ld_exported_symbols_list=no
10513 save_LDFLAGS=$LDFLAGS
10514 echo "_main" > conftest.sym
10515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10524 main ()
10528 return 0;
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
10549 lt_cv_ld_exported_symbols_list=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 lt_cv_ld_exported_symbols_list=no
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LDFLAGS="$save_LDFLAGS"
10562 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10563 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10564 case $host_os in
10565 rhapsody* | darwin1.[0123])
10566 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10567 darwin1.*)
10568 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10569 darwin*)
10570 # if running on 10.5 or later, the deployment target defaults
10571 # to the OS version, if on x86, and 10.4, the deployment
10572 # target defaults to 10.4. Don't you love it?
10573 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10574 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10575 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10576 10.[012]*)
10577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10578 10.*)
10579 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10580 esac
10582 esac
10583 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10584 _lt_dar_single_mod='$single_module'
10586 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10587 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10588 else
10589 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
10591 if test "$DSYMUTIL" != ":"; then
10592 _lt_dsymutil="~$DSYMUTIL \$lib || :"
10593 else
10594 _lt_dsymutil=
10597 esac
10600 enable_dlopen=no
10601 enable_win32_dll=no
10603 # Check whether --enable-libtool-lock was given.
10604 if test "${enable_libtool_lock+set}" = set; then
10605 enableval=$enable_libtool_lock;
10608 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10611 # Check whether --with-pic was given.
10612 if test "${with_pic+set}" = set; then
10613 withval=$with_pic; pic_mode="$withval"
10614 else
10615 pic_mode=default
10618 test -z "$pic_mode" && pic_mode=default
10620 # Use C for the default configuration in the libtool script
10621 tagname=
10622 lt_save_CC="$CC"
10623 ac_ext=c
10624 ac_cpp='$CPP $CPPFLAGS'
10625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10630 # Source file extension for C test sources.
10631 ac_ext=c
10633 # Object file extension for compiled C test sources.
10634 objext=o
10635 objext=$objext
10637 # Code to be used in simple compile tests
10638 lt_simple_compile_test_code="int some_variable = 0;"
10640 # Code to be used in simple link tests
10641 lt_simple_link_test_code='int main(){return(0);}'
10644 # If no C compiler was specified, use CC.
10645 LTCC=${LTCC-"$CC"}
10647 # If no C compiler flags were specified, use CFLAGS.
10648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10650 # Allow CC to be a program name with arguments.
10651 compiler=$CC
10654 # save warnings/boilerplate of simple test code
10655 ac_outfile=conftest.$ac_objext
10656 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10658 _lt_compiler_boilerplate=`cat conftest.err`
10659 $rm conftest*
10661 ac_outfile=conftest.$ac_objext
10662 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10664 _lt_linker_boilerplate=`cat conftest.err`
10665 $rm -r conftest*
10669 lt_prog_compiler_no_builtin_flag=
10671 if test "$GCC" = yes; then
10672 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10675 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10676 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10677 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 lt_cv_prog_compiler_rtti_exceptions=no
10681 ac_outfile=conftest.$ac_objext
10682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10683 lt_compiler_flag="-fno-rtti -fno-exceptions"
10684 # Insert the option either (1) after the last *FLAGS variable, or
10685 # (2) before a word containing "conftest.", or (3) at the end.
10686 # Note that $ac_compile itself does not contain backslashes and begins
10687 # with a dollar sign (not a hyphen), so the echo should work correctly.
10688 # The option is referenced via a variable to avoid confusing sed.
10689 lt_compile=`echo "$ac_compile" | $SED \
10690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10692 -e 's:$: $lt_compiler_flag:'`
10693 (eval echo "\"\$as_me:10693: $lt_compile\"" >&5)
10694 (eval "$lt_compile" 2>conftest.err)
10695 ac_status=$?
10696 cat conftest.err >&5
10697 echo "$as_me:10697: \$? = $ac_status" >&5
10698 if (exit $ac_status) && test -s "$ac_outfile"; then
10699 # The compiler can only warn and ignore the option if not recognized
10700 # So say no if there are warnings other than the usual output.
10701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10704 lt_cv_prog_compiler_rtti_exceptions=yes
10707 $rm conftest*
10710 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10711 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10713 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10714 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10715 else
10721 lt_prog_compiler_wl=
10722 lt_prog_compiler_pic=
10723 lt_prog_compiler_static=
10725 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10726 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10728 if test "$GCC" = yes; then
10729 lt_prog_compiler_wl='-Wl,'
10730 lt_prog_compiler_static='-static'
10732 case $host_os in
10733 aix*)
10734 # All AIX code is PIC.
10735 if test "$host_cpu" = ia64; then
10736 # AIX 5 now supports IA64 processor
10737 lt_prog_compiler_static='-Bstatic'
10741 amigaos*)
10742 # FIXME: we need at least 68020 code to build shared libraries, but
10743 # adding the `-m68020' flag to GCC prevents building anything better,
10744 # like `-m68040'.
10745 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10749 # PIC is the default for these OSes.
10752 mingw* | cygwin* | pw32* | os2*)
10753 # This hack is so that the source file can tell whether it is being
10754 # built for inclusion in a dll (and should export symbols for example).
10755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10756 # (--disable-auto-import) libraries
10757 lt_prog_compiler_pic='-DDLL_EXPORT'
10760 darwin* | rhapsody*)
10761 # PIC is the default on this platform
10762 # Common symbols not allowed in MH_DYLIB files
10763 lt_prog_compiler_pic='-fno-common'
10766 interix[3-9]*)
10767 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10768 # Instead, we relocate shared libraries at runtime.
10771 msdosdjgpp*)
10772 # Just because we use GCC doesn't mean we suddenly get shared libraries
10773 # on systems that don't support them.
10774 lt_prog_compiler_can_build_shared=no
10775 enable_shared=no
10778 sysv4*MP*)
10779 if test -d /usr/nec; then
10780 lt_prog_compiler_pic=-Kconform_pic
10784 hpux*)
10785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10786 # not for PA HP-UX.
10787 case $host_cpu in
10788 hppa*64*|ia64*)
10789 # +Z the default
10792 lt_prog_compiler_pic='-fPIC'
10794 esac
10798 lt_prog_compiler_pic='-fPIC'
10800 esac
10801 else
10802 # PORTME Check for flag to pass linker flags through the system compiler.
10803 case $host_os in
10804 aix*)
10805 lt_prog_compiler_wl='-Wl,'
10806 if test "$host_cpu" = ia64; then
10807 # AIX 5 now supports IA64 processor
10808 lt_prog_compiler_static='-Bstatic'
10809 else
10810 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10813 darwin*)
10814 # PIC is the default on this platform
10815 # Common symbols not allowed in MH_DYLIB files
10816 case $cc_basename in
10817 xlc*)
10818 lt_prog_compiler_pic='-qnocommon'
10819 lt_prog_compiler_wl='-Wl,'
10821 esac
10824 mingw* | cygwin* | pw32* | os2*)
10825 # This hack is so that the source file can tell whether it is being
10826 # built for inclusion in a dll (and should export symbols for example).
10827 lt_prog_compiler_pic='-DDLL_EXPORT'
10830 hpux9* | hpux10* | hpux11*)
10831 lt_prog_compiler_wl='-Wl,'
10832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10833 # not for PA HP-UX.
10834 case $host_cpu in
10835 hppa*64*|ia64*)
10836 # +Z the default
10839 lt_prog_compiler_pic='+Z'
10841 esac
10842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10843 lt_prog_compiler_static='${wl}-a ${wl}archive'
10846 irix5* | irix6* | nonstopux*)
10847 lt_prog_compiler_wl='-Wl,'
10848 # PIC (with -KPIC) is the default.
10849 lt_prog_compiler_static='-non_shared'
10852 newsos6)
10853 lt_prog_compiler_pic='-KPIC'
10854 lt_prog_compiler_static='-Bstatic'
10857 linux* | k*bsd*-gnu)
10858 case $cc_basename in
10859 icc* | ecc*)
10860 lt_prog_compiler_wl='-Wl,'
10861 lt_prog_compiler_pic='-KPIC'
10862 lt_prog_compiler_static='-static'
10864 pgcc* | pgf77* | pgf90* | pgf95*)
10865 # Portland Group compilers (*not* the Pentium gcc compiler,
10866 # which looks to be a dead project)
10867 lt_prog_compiler_wl='-Wl,'
10868 lt_prog_compiler_pic='-fpic'
10869 lt_prog_compiler_static='-Bstatic'
10871 ccc*)
10872 lt_prog_compiler_wl='-Wl,'
10873 # All Alpha code is PIC.
10874 lt_prog_compiler_static='-non_shared'
10877 case `$CC -V 2>&1 | sed 5q` in
10878 *Sun\ C*)
10879 # Sun C 5.9
10880 lt_prog_compiler_pic='-KPIC'
10881 lt_prog_compiler_static='-Bstatic'
10882 lt_prog_compiler_wl='-Wl,'
10884 *Sun\ F*)
10885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10886 lt_prog_compiler_pic='-KPIC'
10887 lt_prog_compiler_static='-Bstatic'
10888 lt_prog_compiler_wl=''
10890 esac
10892 esac
10895 osf3* | osf4* | osf5*)
10896 lt_prog_compiler_wl='-Wl,'
10897 # All OSF/1 code is PIC.
10898 lt_prog_compiler_static='-non_shared'
10901 rdos*)
10902 lt_prog_compiler_static='-non_shared'
10905 solaris*)
10906 lt_prog_compiler_pic='-KPIC'
10907 lt_prog_compiler_static='-Bstatic'
10908 case $cc_basename in
10909 f77* | f90* | f95*)
10910 lt_prog_compiler_wl='-Qoption ld ';;
10912 lt_prog_compiler_wl='-Wl,';;
10913 esac
10916 sunos4*)
10917 lt_prog_compiler_wl='-Qoption ld '
10918 lt_prog_compiler_pic='-PIC'
10919 lt_prog_compiler_static='-Bstatic'
10922 sysv4 | sysv4.2uw2* | sysv4.3*)
10923 lt_prog_compiler_wl='-Wl,'
10924 lt_prog_compiler_pic='-KPIC'
10925 lt_prog_compiler_static='-Bstatic'
10928 sysv4*MP*)
10929 if test -d /usr/nec ;then
10930 lt_prog_compiler_pic='-Kconform_pic'
10931 lt_prog_compiler_static='-Bstatic'
10935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10936 lt_prog_compiler_wl='-Wl,'
10937 lt_prog_compiler_pic='-KPIC'
10938 lt_prog_compiler_static='-Bstatic'
10941 unicos*)
10942 lt_prog_compiler_wl='-Wl,'
10943 lt_prog_compiler_can_build_shared=no
10946 uts4*)
10947 lt_prog_compiler_pic='-pic'
10948 lt_prog_compiler_static='-Bstatic'
10952 lt_prog_compiler_can_build_shared=no
10954 esac
10957 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10958 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10961 # Check to make sure the PIC flag actually works.
10963 if test -n "$lt_prog_compiler_pic"; then
10965 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10966 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 lt_cv_prog_compiler_pic_works=no
10971 ac_outfile=conftest.$ac_objext
10972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10973 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10974 # Insert the option either (1) after the last *FLAGS variable, or
10975 # (2) before a word containing "conftest.", or (3) at the end.
10976 # Note that $ac_compile itself does not contain backslashes and begins
10977 # with a dollar sign (not a hyphen), so the echo should work correctly.
10978 # The option is referenced via a variable to avoid confusing sed.
10979 lt_compile=`echo "$ac_compile" | $SED \
10980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10982 -e 's:$: $lt_compiler_flag:'`
10983 (eval echo "\"\$as_me:10983: $lt_compile\"" >&5)
10984 (eval "$lt_compile" 2>conftest.err)
10985 ac_status=$?
10986 cat conftest.err >&5
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 if (exit $ac_status) && test -s "$ac_outfile"; then
10989 # The compiler can only warn and ignore the option if not recognized
10990 # So say no if there are warnings other than the usual output.
10991 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10994 lt_cv_prog_compiler_pic_works=yes
10997 $rm conftest*
11000 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11001 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
11003 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11004 case $lt_prog_compiler_pic in
11005 "" | " "*) ;;
11006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11007 esac
11008 else
11009 lt_prog_compiler_pic=
11010 lt_prog_compiler_can_build_shared=no
11014 case $host_os in
11015 # For platforms which do not support PIC, -DPIC is meaningless:
11016 *djgpp*)
11017 lt_prog_compiler_pic=
11020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11022 esac
11025 # Check to make sure the static flag actually works.
11027 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11028 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11029 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11030 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 lt_cv_prog_compiler_static_works=no
11034 save_LDFLAGS="$LDFLAGS"
11035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11038 # The linker can only warn and ignore the option if not recognized
11039 # So say no if there are warnings
11040 if test -s conftest.err; then
11041 # Append any errors to the config.log.
11042 cat conftest.err 1>&5
11043 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11045 if diff conftest.exp conftest.er2 >/dev/null; then
11046 lt_cv_prog_compiler_static_works=yes
11048 else
11049 lt_cv_prog_compiler_static_works=yes
11052 $rm -r conftest*
11053 LDFLAGS="$save_LDFLAGS"
11056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11057 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
11059 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11061 else
11062 lt_prog_compiler_static=
11066 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11067 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11068 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 lt_cv_prog_compiler_c_o=no
11072 $rm -r conftest 2>/dev/null
11073 mkdir conftest
11074 cd conftest
11075 mkdir out
11076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11078 lt_compiler_flag="-o out/conftest2.$ac_objext"
11079 # Insert the option either (1) after the last *FLAGS variable, or
11080 # (2) before a word containing "conftest.", or (3) at the end.
11081 # Note that $ac_compile itself does not contain backslashes and begins
11082 # with a dollar sign (not a hyphen), so the echo should work correctly.
11083 lt_compile=`echo "$ac_compile" | $SED \
11084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11086 -e 's:$: $lt_compiler_flag:'`
11087 (eval echo "\"\$as_me:11087: $lt_compile\"" >&5)
11088 (eval "$lt_compile" 2>out/conftest.err)
11089 ac_status=$?
11090 cat out/conftest.err >&5
11091 echo "$as_me:11091: \$? = $ac_status" >&5
11092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11093 then
11094 # The compiler can only warn and ignore the option if not recognized
11095 # So say no if there are warnings
11096 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11099 lt_cv_prog_compiler_c_o=yes
11102 chmod u+w . 2>&5
11103 $rm conftest*
11104 # SGI C++ compiler will create directory out/ii_files/ for
11105 # template instantiation
11106 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11107 $rm out/* && rmdir out
11108 cd ..
11109 rmdir conftest
11110 $rm conftest*
11113 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11114 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
11117 hard_links="nottested"
11118 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11119 # do not overwrite the value of need_locks provided by the user
11120 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11121 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11122 hard_links=yes
11123 $rm conftest*
11124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11125 touch conftest.a
11126 ln conftest.a conftest.b 2>&5 || hard_links=no
11127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11128 { echo "$as_me:$LINENO: result: $hard_links" >&5
11129 echo "${ECHO_T}$hard_links" >&6; }
11130 if test "$hard_links" = no; then
11131 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11132 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11133 need_locks=warn
11135 else
11136 need_locks=no
11139 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11140 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11142 runpath_var=
11143 allow_undefined_flag=
11144 enable_shared_with_static_runtimes=no
11145 archive_cmds=
11146 archive_expsym_cmds=
11147 old_archive_From_new_cmds=
11148 old_archive_from_expsyms_cmds=
11149 export_dynamic_flag_spec=
11150 whole_archive_flag_spec=
11151 thread_safe_flag_spec=
11152 hardcode_libdir_flag_spec=
11153 hardcode_libdir_flag_spec_ld=
11154 hardcode_libdir_separator=
11155 hardcode_direct=no
11156 hardcode_minus_L=no
11157 hardcode_shlibpath_var=unsupported
11158 link_all_deplibs=unknown
11159 hardcode_automatic=no
11160 module_cmds=
11161 module_expsym_cmds=
11162 always_export_symbols=no
11163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11164 # include_expsyms should be a list of space-separated symbols to be *always*
11165 # included in the symbol list
11166 include_expsyms=
11167 # exclude_expsyms can be an extended regexp of symbols to exclude
11168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11170 # as well as any symbol that contains `d'.
11171 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11173 # platforms (ab)use it in PIC code, but their linkers get confused if
11174 # the symbol is explicitly referenced. Since portable code cannot
11175 # rely on this symbol name, it's probably fine to never include it in
11176 # preloaded symbol tables.
11177 # Exclude shared library initialization/finalization symbols.
11178 extract_expsyms_cmds=
11179 # Just being paranoid about ensuring that cc_basename is set.
11180 for cc_temp in $compiler""; do
11181 case $cc_temp in
11182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11184 \-*) ;;
11185 *) break;;
11186 esac
11187 done
11188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11190 case $host_os in
11191 cygwin* | mingw* | pw32*)
11192 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11193 # When not using gcc, we currently assume that we are using
11194 # Microsoft Visual C++.
11195 if test "$GCC" != yes; then
11196 with_gnu_ld=no
11199 interix*)
11200 # we just hope/assume this is gcc and not c89 (= MSVC++)
11201 with_gnu_ld=yes
11203 openbsd*)
11204 with_gnu_ld=no
11206 esac
11208 ld_shlibs=yes
11209 if test "$with_gnu_ld" = yes; then
11210 # If archive_cmds runs LD, not CC, wlarc should be empty
11211 wlarc='${wl}'
11213 # Set some defaults for GNU ld with shared library support. These
11214 # are reset later if shared libraries are not supported. Putting them
11215 # here allows them to be overridden if necessary.
11216 runpath_var=LD_RUN_PATH
11217 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11218 export_dynamic_flag_spec='${wl}--export-dynamic'
11219 # ancient GNU ld didn't support --whole-archive et. al.
11220 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11221 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11222 else
11223 whole_archive_flag_spec=
11225 supports_anon_versioning=no
11226 case `$LD -v 2>/dev/null` in
11227 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11228 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11229 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11230 *\ 2.11.*) ;; # other 2.11 versions
11231 *) supports_anon_versioning=yes ;;
11232 esac
11234 # See if GNU ld supports shared libraries.
11235 case $host_os in
11236 aix[3-9]*)
11237 # On AIX/PPC, the GNU linker is very broken
11238 if test "$host_cpu" != ia64; then
11239 ld_shlibs=no
11240 cat <<EOF 1>&2
11242 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11243 *** to be unable to reliably create shared libraries on AIX.
11244 *** Therefore, libtool is disabling shared libraries support. If you
11245 *** really care for shared libraries, you may want to modify your PATH
11246 *** so that a non-GNU linker is found, and then restart.
11252 amigaos*)
11253 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)'
11254 hardcode_libdir_flag_spec='-L$libdir'
11255 hardcode_minus_L=yes
11257 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11258 # that the semantics of dynamic libraries on AmigaOS, at least up
11259 # to version 4, is to share data among multiple programs linked
11260 # with the same dynamic library. Since this doesn't match the
11261 # behavior of shared libraries on other platforms, we can't use
11262 # them.
11263 ld_shlibs=no
11266 beos*)
11267 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11268 allow_undefined_flag=unsupported
11269 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11270 # support --undefined. This deserves some investigation. FIXME
11271 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11272 else
11273 ld_shlibs=no
11277 cygwin* | mingw* | pw32*)
11278 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11279 # as there is no search path for DLLs.
11280 hardcode_libdir_flag_spec='-L$libdir'
11281 allow_undefined_flag=unsupported
11282 always_export_symbols=no
11283 enable_shared_with_static_runtimes=yes
11284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11286 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11288 # If the export-symbols file already is a .def file (1st line
11289 # is EXPORTS), use it as is; otherwise, prepend...
11290 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11291 cp $export_symbols $output_objdir/$soname.def;
11292 else
11293 echo EXPORTS > $output_objdir/$soname.def;
11294 cat $export_symbols >> $output_objdir/$soname.def;
11296 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11297 else
11298 ld_shlibs=no
11302 interix[3-9]*)
11303 hardcode_direct=no
11304 hardcode_shlibpath_var=no
11305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11306 export_dynamic_flag_spec='${wl}-E'
11307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11308 # Instead, shared libraries are loaded at an image base (0x10000000 by
11309 # default) and relocated if they conflict, which is a slow very memory
11310 # consuming and fragmenting process. To avoid this, we pick a random,
11311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11314 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'
11317 gnu* | linux* | k*bsd*-gnu)
11318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11319 tmp_addflag=
11320 case $cc_basename,$host_cpu in
11321 pgcc*) # Portland Group C compiler
11322 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'
11323 tmp_addflag=' $pic_flag'
11325 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11326 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'
11327 tmp_addflag=' $pic_flag -Mnomain' ;;
11328 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11329 tmp_addflag=' -i_dynamic' ;;
11330 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11331 tmp_addflag=' -i_dynamic -nofor_main' ;;
11332 ifc* | ifort*) # Intel Fortran compiler
11333 tmp_addflag=' -nofor_main' ;;
11334 esac
11335 case `$CC -V 2>&1 | sed 5q` in
11336 *Sun\ C*) # Sun C 5.9
11337 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11338 tmp_sharedflag='-G' ;;
11339 *Sun\ F*) # Sun Fortran 8.3
11340 tmp_sharedflag='-G' ;;
11342 tmp_sharedflag='-shared' ;;
11343 esac
11344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11346 if test $supports_anon_versioning = yes; then
11347 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11349 $echo "local: *; };" >> $output_objdir/$libname.ver~
11350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11352 link_all_deplibs=no
11353 else
11354 ld_shlibs=no
11358 netbsd* | netbsdelf*-gnu)
11359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11361 wlarc=
11362 else
11363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11368 solaris*)
11369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11370 ld_shlibs=no
11371 cat <<EOF 1>&2
11373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11374 *** create shared libraries on Solaris systems. Therefore, libtool
11375 *** is disabling shared libraries support. We urge you to upgrade GNU
11376 *** binutils to release 2.9.1 or newer. Another option is to modify
11377 *** your PATH or compiler configuration so that the native linker is
11378 *** used, and then restart.
11381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11384 else
11385 ld_shlibs=no
11389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11390 case `$LD -v 2>&1` in
11391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11392 ld_shlibs=no
11393 cat <<_LT_EOF 1>&2
11395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11396 *** reliably create shared libraries on SCO systems. Therefore, libtool
11397 *** is disabling shared libraries support. We urge you to upgrade GNU
11398 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11399 *** your PATH or compiler configuration so that the native linker is
11400 *** used, and then restart.
11402 _LT_EOF
11405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11406 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11409 else
11410 ld_shlibs=no
11413 esac
11416 sunos4*)
11417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11418 wlarc=
11419 hardcode_direct=yes
11420 hardcode_shlibpath_var=no
11424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11427 else
11428 ld_shlibs=no
11431 esac
11433 if test "$ld_shlibs" = no; then
11434 runpath_var=
11435 hardcode_libdir_flag_spec=
11436 export_dynamic_flag_spec=
11437 whole_archive_flag_spec=
11439 else
11440 # PORTME fill in a description of your system's linker (not GNU ld)
11441 case $host_os in
11442 aix3*)
11443 allow_undefined_flag=unsupported
11444 always_export_symbols=yes
11445 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'
11446 # Note: this linker hardcodes the directories in LIBPATH if there
11447 # are no directories specified by -L.
11448 hardcode_minus_L=yes
11449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11450 # Neither direct hardcoding nor static linking is supported with a
11451 # broken collect2.
11452 hardcode_direct=unsupported
11456 aix[4-9]*)
11457 if test "$host_cpu" = ia64; then
11458 # On IA64, the linker does run time linking by default, so we don't
11459 # have to do anything special.
11460 aix_use_runtimelinking=no
11461 exp_sym_flag='-Bexport'
11462 no_entry_flag=""
11463 else
11464 # If we're using GNU nm, then we don't want the "-C" option.
11465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11467 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'
11468 else
11469 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'
11471 aix_use_runtimelinking=no
11473 # Test if we are trying to use run time linking or normal
11474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11475 # need to do runtime linking.
11476 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11477 for ld_flag in $LDFLAGS; do
11478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11479 aix_use_runtimelinking=yes
11480 break
11482 done
11484 esac
11486 exp_sym_flag='-bexport'
11487 no_entry_flag='-bnoentry'
11490 # When large executables or shared objects are built, AIX ld can
11491 # have problems creating the table of contents. If linking a library
11492 # or program results in "error TOC overflow" add -mminimal-toc to
11493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11496 archive_cmds=''
11497 hardcode_direct=yes
11498 hardcode_libdir_separator=':'
11499 link_all_deplibs=yes
11501 if test "$GCC" = yes; then
11502 case $host_os in aix4.[012]|aix4.[012].*)
11503 # We only want to do this on AIX 4.2 and lower, the check
11504 # below for broken collect2 doesn't work under 4.3+
11505 collect2name=`${CC} -print-prog-name=collect2`
11506 if test -f "$collect2name" && \
11507 strings "$collect2name" | grep resolve_lib_name >/dev/null
11508 then
11509 # We have reworked collect2
11511 else
11512 # We have old collect2
11513 hardcode_direct=unsupported
11514 # It fails to find uninstalled libraries when the uninstalled
11515 # path is not listed in the libpath. Setting hardcode_minus_L
11516 # to unsupported forces relinking
11517 hardcode_minus_L=yes
11518 hardcode_libdir_flag_spec='-L$libdir'
11519 hardcode_libdir_separator=
11522 esac
11523 shared_flag='-shared'
11524 if test "$aix_use_runtimelinking" = yes; then
11525 shared_flag="$shared_flag "'${wl}-G'
11527 else
11528 # not using gcc
11529 if test "$host_cpu" = ia64; then
11530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11531 # chokes on -Wl,-G. The following line is correct:
11532 shared_flag='-G'
11533 else
11534 if test "$aix_use_runtimelinking" = yes; then
11535 shared_flag='${wl}-G'
11536 else
11537 shared_flag='${wl}-bM:SRE'
11542 # It seems that -bexpall does not export symbols beginning with
11543 # underscore (_), so it is better to generate a list of symbols to export.
11544 always_export_symbols=yes
11545 if test "$aix_use_runtimelinking" = yes; then
11546 # Warning - without using the other runtime loading flags (-brtl),
11547 # -berok will link without error, but may produce a broken library.
11548 allow_undefined_flag='-berok'
11549 # Determine the default libpath from the value encoded in an empty executable.
11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11558 main ()
11562 return 0;
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest$ac_exeext &&
11582 $as_test_x conftest$ac_exeext; then
11584 lt_aix_libpath_sed='
11585 /Import File Strings/,/^$/ {
11586 /^0/ {
11587 s/^0 *\(.*\)$/\1/
11591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11592 # Check for a 64-bit object if we didn't find anything.
11593 if test -z "$aix_libpath"; then
11594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11604 conftest$ac_exeext conftest.$ac_ext
11605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11608 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"
11609 else
11610 if test "$host_cpu" = ia64; then
11611 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11612 allow_undefined_flag="-z nodefs"
11613 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"
11614 else
11615 # Determine the default libpath from the value encoded in an empty executable.
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11624 main ()
11628 return 0;
11630 _ACEOF
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (ac_try="$ac_link"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636 esac
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_link") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest$ac_exeext &&
11648 $as_test_x conftest$ac_exeext; then
11650 lt_aix_libpath_sed='
11651 /Import File Strings/,/^$/ {
11652 /^0/ {
11653 s/^0 *\(.*\)$/\1/
11657 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 # Check for a 64-bit object if we didn't find anything.
11659 if test -z "$aix_libpath"; then
11660 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11674 # Warning - without using the other run time loading flags,
11675 # -berok will link without error, but may produce a broken library.
11676 no_undefined_flag=' ${wl}-bernotok'
11677 allow_undefined_flag=' ${wl}-berok'
11678 # Exported symbols can be pulled into shared objects from archives
11679 whole_archive_flag_spec='$convenience'
11680 archive_cmds_need_lc=yes
11681 # This is similar to how AIX traditionally builds its shared libraries.
11682 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'
11687 amigaos*)
11688 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)'
11689 hardcode_libdir_flag_spec='-L$libdir'
11690 hardcode_minus_L=yes
11691 # see comment about different semantics on the GNU ld section
11692 ld_shlibs=no
11695 bsdi[45]*)
11696 export_dynamic_flag_spec=-rdynamic
11699 cygwin* | mingw* | pw32*)
11700 # When not using gcc, we currently assume that we are using
11701 # Microsoft Visual C++.
11702 # hardcode_libdir_flag_spec is actually meaningless, as there is
11703 # no search path for DLLs.
11704 hardcode_libdir_flag_spec=' '
11705 allow_undefined_flag=unsupported
11706 # Tell ltmain to make .lib files, not .a files.
11707 libext=lib
11708 # Tell ltmain to make .dll files, not .so files.
11709 shrext_cmds=".dll"
11710 # FIXME: Setting linknames here is a bad hack.
11711 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11712 # The linker will automatically build a .lib file if we build a DLL.
11713 old_archive_From_new_cmds='true'
11714 # FIXME: Should let the user specify the lib program.
11715 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11716 fix_srcfile_path='`cygpath -w "$srcfile"`'
11717 enable_shared_with_static_runtimes=yes
11720 darwin* | rhapsody*)
11721 case $host_os in
11722 rhapsody* | darwin1.[012])
11723 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11725 *) # Darwin 1.3 on
11726 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11727 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11728 else
11729 case ${MACOSX_DEPLOYMENT_TARGET} in
11730 10.[012])
11731 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11733 10.*)
11734 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11736 esac
11739 esac
11740 archive_cmds_need_lc=no
11741 hardcode_direct=no
11742 hardcode_automatic=yes
11743 hardcode_shlibpath_var=unsupported
11744 whole_archive_flag_spec=''
11745 link_all_deplibs=yes
11746 if test "$GCC" = yes ; then
11747 output_verbose_link_cmd='echo'
11748 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11749 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11750 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11751 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11752 else
11753 case $cc_basename in
11754 xlc*)
11755 output_verbose_link_cmd='echo'
11756 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11757 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11759 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11760 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}'
11763 ld_shlibs=no
11765 esac
11769 dgux*)
11770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11771 hardcode_libdir_flag_spec='-L$libdir'
11772 hardcode_shlibpath_var=no
11775 freebsd1*)
11776 ld_shlibs=no
11779 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11780 # support. Future versions do this automatically, but an explicit c++rt0.o
11781 # does not break anything, and helps significantly (at the cost of a little
11782 # extra space).
11783 freebsd2.2*)
11784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11785 hardcode_libdir_flag_spec='-R$libdir'
11786 hardcode_direct=yes
11787 hardcode_shlibpath_var=no
11790 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11791 freebsd2*)
11792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11793 hardcode_direct=yes
11794 hardcode_minus_L=yes
11795 hardcode_shlibpath_var=no
11798 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11799 freebsd* | dragonfly*)
11800 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11801 hardcode_libdir_flag_spec='-R$libdir'
11802 hardcode_direct=yes
11803 hardcode_shlibpath_var=no
11806 hpux9*)
11807 if test "$GCC" = yes; then
11808 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'
11809 else
11810 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'
11812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11813 hardcode_libdir_separator=:
11814 hardcode_direct=yes
11816 # hardcode_minus_L: Not really in the search PATH,
11817 # but as the default location of the library.
11818 hardcode_minus_L=yes
11819 export_dynamic_flag_spec='${wl}-E'
11822 hpux10*)
11823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11824 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11825 else
11826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11828 if test "$with_gnu_ld" = no; then
11829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator=:
11832 hardcode_direct=yes
11833 export_dynamic_flag_spec='${wl}-E'
11835 # hardcode_minus_L: Not really in the search PATH,
11836 # but as the default location of the library.
11837 hardcode_minus_L=yes
11841 hpux11*)
11842 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11843 case $host_cpu in
11844 hppa*64*)
11845 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11847 ia64*)
11848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11853 esac
11854 else
11855 case $host_cpu in
11856 hppa*64*)
11857 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 ia64*)
11860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11865 esac
11867 if test "$with_gnu_ld" = no; then
11868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11869 hardcode_libdir_separator=:
11871 case $host_cpu in
11872 hppa*64*|ia64*)
11873 hardcode_libdir_flag_spec_ld='+b $libdir'
11874 hardcode_direct=no
11875 hardcode_shlibpath_var=no
11878 hardcode_direct=yes
11879 export_dynamic_flag_spec='${wl}-E'
11881 # hardcode_minus_L: Not really in the search PATH,
11882 # but as the default location of the library.
11883 hardcode_minus_L=yes
11885 esac
11889 irix5* | irix6* | nonstopux*)
11890 if test "$GCC" = yes; then
11891 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'
11892 else
11893 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'
11894 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11897 hardcode_libdir_separator=:
11898 link_all_deplibs=yes
11901 netbsd* | netbsdelf*-gnu)
11902 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11904 else
11905 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11907 hardcode_libdir_flag_spec='-R$libdir'
11908 hardcode_direct=yes
11909 hardcode_shlibpath_var=no
11912 newsos6)
11913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_direct=yes
11915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11916 hardcode_libdir_separator=:
11917 hardcode_shlibpath_var=no
11920 openbsd*)
11921 if test -f /usr/libexec/ld.so; then
11922 hardcode_direct=yes
11923 hardcode_shlibpath_var=no
11924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11927 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11928 export_dynamic_flag_spec='${wl}-E'
11929 else
11930 case $host_os in
11931 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11933 hardcode_libdir_flag_spec='-R$libdir'
11936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11939 esac
11941 else
11942 ld_shlibs=no
11946 os2*)
11947 hardcode_libdir_flag_spec='-L$libdir'
11948 hardcode_minus_L=yes
11949 allow_undefined_flag=unsupported
11950 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'
11951 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11954 osf3*)
11955 if test "$GCC" = yes; then
11956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11957 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'
11958 else
11959 allow_undefined_flag=' -expect_unresolved \*'
11960 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'
11962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11963 hardcode_libdir_separator=:
11966 osf4* | osf5*) # as osf3* with the addition of -msym flag
11967 if test "$GCC" = yes; then
11968 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11969 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'
11970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11971 else
11972 allow_undefined_flag=' -expect_unresolved \*'
11973 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'
11974 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11975 $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'
11977 # Both c and cxx compiler support -rpath directly
11978 hardcode_libdir_flag_spec='-rpath $libdir'
11980 hardcode_libdir_separator=:
11983 solaris*)
11984 no_undefined_flag=' -z text'
11985 if test "$GCC" = yes; then
11986 wlarc='${wl}'
11987 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11989 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11990 else
11991 wlarc=''
11992 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11994 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11996 hardcode_libdir_flag_spec='-R$libdir'
11997 hardcode_shlibpath_var=no
11998 case $host_os in
11999 solaris2.[0-5] | solaris2.[0-5].*) ;;
12001 # The compiler driver will combine and reorder linker options,
12002 # but understands `-z linker_flag'. GCC discards it without `$wl',
12003 # but is careful enough not to reorder.
12004 # Supported since Solaris 2.6 (maybe 2.5.1?)
12005 if test "$GCC" = yes; then
12006 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12007 else
12008 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12011 esac
12012 link_all_deplibs=yes
12015 sunos4*)
12016 if test "x$host_vendor" = xsequent; then
12017 # Use $CC to link under sequent, because it throws in some extra .o
12018 # files that make .init and .fini sections work.
12019 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12020 else
12021 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12023 hardcode_libdir_flag_spec='-L$libdir'
12024 hardcode_direct=yes
12025 hardcode_minus_L=yes
12026 hardcode_shlibpath_var=no
12029 sysv4)
12030 case $host_vendor in
12031 sni)
12032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12033 hardcode_direct=yes # is this really true???
12035 siemens)
12036 ## LD is ld it makes a PLAMLIB
12037 ## CC just makes a GrossModule.
12038 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12039 reload_cmds='$CC -r -o $output$reload_objs'
12040 hardcode_direct=no
12042 motorola)
12043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12044 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12046 esac
12047 runpath_var='LD_RUN_PATH'
12048 hardcode_shlibpath_var=no
12051 sysv4.3*)
12052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12053 hardcode_shlibpath_var=no
12054 export_dynamic_flag_spec='-Bexport'
12057 sysv4*MP*)
12058 if test -d /usr/nec; then
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_shlibpath_var=no
12061 runpath_var=LD_RUN_PATH
12062 hardcode_runpath_var=yes
12063 ld_shlibs=yes
12067 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12068 no_undefined_flag='${wl}-z,text'
12069 archive_cmds_need_lc=no
12070 hardcode_shlibpath_var=no
12071 runpath_var='LD_RUN_PATH'
12073 if test "$GCC" = yes; then
12074 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12075 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12076 else
12077 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12082 sysv5* | sco3.2v5* | sco5v6*)
12083 # Note: We can NOT use -z defs as we might desire, because we do not
12084 # link with -lc, and that would cause any symbols used from libc to
12085 # always be unresolved, which means just about no library would
12086 # ever link correctly. If we're not using GNU ld we use -z text
12087 # though, which does catch some bad symbols but isn't as heavy-handed
12088 # as -z defs.
12089 no_undefined_flag='${wl}-z,text'
12090 allow_undefined_flag='${wl}-z,nodefs'
12091 archive_cmds_need_lc=no
12092 hardcode_shlibpath_var=no
12093 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12094 hardcode_libdir_separator=':'
12095 link_all_deplibs=yes
12096 export_dynamic_flag_spec='${wl}-Bexport'
12097 runpath_var='LD_RUN_PATH'
12099 if test "$GCC" = yes; then
12100 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12101 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 else
12103 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12104 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12108 uts4*)
12109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12110 hardcode_libdir_flag_spec='-L$libdir'
12111 hardcode_shlibpath_var=no
12115 ld_shlibs=no
12117 esac
12120 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12121 echo "${ECHO_T}$ld_shlibs" >&6; }
12122 test "$ld_shlibs" = no && can_build_shared=no
12125 # Do we need to explicitly link libc?
12127 case "x$archive_cmds_need_lc" in
12128 x|xyes)
12129 # Assume -lc should be added
12130 archive_cmds_need_lc=yes
12132 if test "$enable_shared" = yes && test "$GCC" = yes; then
12133 case $archive_cmds in
12134 *'~'*)
12135 # FIXME: we may have to deal with multi-command sequences.
12137 '$CC '*)
12138 # Test whether the compiler implicitly links with -lc since on some
12139 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12140 # to ld, don't add -lc before -lgcc.
12141 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12142 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12143 $rm conftest*
12144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } 2>conftest.err; then
12151 soname=conftest
12152 lib=conftest
12153 libobjs=conftest.$ac_objext
12154 deplibs=
12155 wl=$lt_prog_compiler_wl
12156 pic_flag=$lt_prog_compiler_pic
12157 compiler_flags=-v
12158 linker_flags=-v
12159 verstring=
12160 output_objdir=.
12161 libname=conftest
12162 lt_save_allow_undefined_flag=$allow_undefined_flag
12163 allow_undefined_flag=
12164 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12165 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }
12169 then
12170 archive_cmds_need_lc=no
12171 else
12172 archive_cmds_need_lc=yes
12174 allow_undefined_flag=$lt_save_allow_undefined_flag
12175 else
12176 cat conftest.err 1>&5
12178 $rm conftest*
12179 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12180 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
12182 esac
12185 esac
12187 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12188 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12189 library_names_spec=
12190 libname_spec='lib$name'
12191 soname_spec=
12192 shrext_cmds=".so"
12193 postinstall_cmds=
12194 postuninstall_cmds=
12195 finish_cmds=
12196 finish_eval=
12197 shlibpath_var=
12198 shlibpath_overrides_runpath=unknown
12199 version_type=none
12200 dynamic_linker="$host_os ld.so"
12201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12203 if test "$GCC" = yes; then
12204 case $host_os in
12205 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12206 *) lt_awk_arg="/^libraries:/" ;;
12207 esac
12208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12209 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
12210 # if the path contains ";" then we assume it to be the separator
12211 # otherwise default to the standard path separator (i.e. ":") - it is
12212 # assumed that no part of a normal pathname contains ";" but that should
12213 # okay in the real world where ";" in dirpaths is itself problematic.
12214 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12215 else
12216 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12218 # Ok, now we have the path, separated by spaces, we can step through it
12219 # and add multilib dir if necessary.
12220 lt_tmp_lt_search_path_spec=
12221 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12222 for lt_sys_path in $lt_search_path_spec; do
12223 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12224 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12225 else
12226 test -d "$lt_sys_path" && \
12227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12229 done
12230 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
12231 BEGIN {RS=" "; FS="/|\n";} {
12232 lt_foo="";
12233 lt_count=0;
12234 for (lt_i = NF; lt_i > 0; lt_i--) {
12235 if ($lt_i != "" && $lt_i != ".") {
12236 if ($lt_i == "..") {
12237 lt_count++;
12238 } else {
12239 if (lt_count == 0) {
12240 lt_foo="/" $lt_i lt_foo;
12241 } else {
12242 lt_count--;
12247 if (lt_foo != "") { lt_freq[lt_foo]++; }
12248 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12250 sys_lib_search_path_spec=`echo $lt_search_path_spec`
12251 else
12252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12254 need_lib_prefix=unknown
12255 hardcode_into_libs=no
12257 # when you set need_version to no, make sure it does not cause -set_version
12258 # flags to be left without arguments
12259 need_version=unknown
12261 case $host_os in
12262 aix3*)
12263 version_type=linux
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12265 shlibpath_var=LIBPATH
12267 # AIX 3 has no versioning support, so we append a major version to the name.
12268 soname_spec='${libname}${release}${shared_ext}$major'
12271 aix[4-9]*)
12272 version_type=linux
12273 need_lib_prefix=no
12274 need_version=no
12275 hardcode_into_libs=yes
12276 if test "$host_cpu" = ia64; then
12277 # AIX 5 supports IA64
12278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12279 shlibpath_var=LD_LIBRARY_PATH
12280 else
12281 # With GCC up to 2.95.x, collect2 would create an import file
12282 # for dependence libraries. The import file would start with
12283 # the line `#! .'. This would cause the generated library to
12284 # depend on `.', always an invalid library. This was fixed in
12285 # development snapshots of GCC prior to 3.0.
12286 case $host_os in
12287 aix4 | aix4.[01] | aix4.[01].*)
12288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12289 echo ' yes '
12290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12292 else
12293 can_build_shared=no
12296 esac
12297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12298 # soname into executable. Probably we can add versioning support to
12299 # collect2, so additional links can be useful in future.
12300 if test "$aix_use_runtimelinking" = yes; then
12301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12302 # instead of lib<name>.a to let people know that these are not
12303 # typical AIX shared libraries.
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305 else
12306 # We preserve .a as extension for shared libraries through AIX4.2
12307 # and later when we are not doing run time linking.
12308 library_names_spec='${libname}${release}.a $libname.a'
12309 soname_spec='${libname}${release}${shared_ext}$major'
12311 shlibpath_var=LIBPATH
12315 amigaos*)
12316 library_names_spec='$libname.ixlibrary $libname.a'
12317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12318 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'
12321 beos*)
12322 library_names_spec='${libname}${shared_ext}'
12323 dynamic_linker="$host_os ld.so"
12324 shlibpath_var=LIBRARY_PATH
12327 bsdi[45]*)
12328 version_type=linux
12329 need_version=no
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12336 # the default ld.so.conf also contains /usr/contrib/lib and
12337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12338 # libtool to hard-code these into programs
12341 cygwin* | mingw* | pw32*)
12342 version_type=windows
12343 shrext_cmds=".dll"
12344 need_version=no
12345 need_lib_prefix=no
12347 case $GCC,$host_os in
12348 yes,cygwin* | yes,mingw* | yes,pw32*)
12349 library_names_spec='$libname.dll.a'
12350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12351 postinstall_cmds='base_file=`basename \${file}`~
12352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12353 dldir=$destdir/`dirname \$dlpath`~
12354 test -d \$dldir || mkdir -p \$dldir~
12355 $install_prog $dir/$dlname \$dldir/$dlname~
12356 chmod a+x \$dldir/$dlname'
12357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12358 dlpath=$dir/\$dldll~
12359 $rm \$dlpath'
12360 shlibpath_overrides_runpath=yes
12362 case $host_os in
12363 cygwin*)
12364 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12368 mingw*)
12369 # MinGW DLLs use traditional 'lib' prefix
12370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12372 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12373 # It is most probably a Windows format PATH printed by
12374 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12375 # path with ; separators, and with drive letters. We can handle the
12376 # drive letters (cygwin fileutils understands them), so leave them,
12377 # especially as we might pass files found there to a mingw objdump,
12378 # which wouldn't understand a cygwinified path. Ahh.
12379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12380 else
12381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12384 pw32*)
12385 # pw32 DLLs use 'pw' prefix rather than 'lib'
12386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12388 esac
12392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12394 esac
12395 dynamic_linker='Win32 ld.exe'
12396 # FIXME: first we should search . and the directory the executable is in
12397 shlibpath_var=PATH
12400 darwin* | rhapsody*)
12401 dynamic_linker="$host_os dyld"
12402 version_type=darwin
12403 need_lib_prefix=no
12404 need_version=no
12405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12406 soname_spec='${libname}${release}${major}$shared_ext'
12407 shlibpath_overrides_runpath=yes
12408 shlibpath_var=DYLD_LIBRARY_PATH
12409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12411 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12415 dgux*)
12416 version_type=linux
12417 need_lib_prefix=no
12418 need_version=no
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12420 soname_spec='${libname}${release}${shared_ext}$major'
12421 shlibpath_var=LD_LIBRARY_PATH
12424 freebsd1*)
12425 dynamic_linker=no
12428 freebsd* | dragonfly*)
12429 # DragonFly does not have aout. When/if they implement a new
12430 # versioning mechanism, adjust this.
12431 if test -x /usr/bin/objformat; then
12432 objformat=`/usr/bin/objformat`
12433 else
12434 case $host_os in
12435 freebsd[123]*) objformat=aout ;;
12436 *) objformat=elf ;;
12437 esac
12439 version_type=freebsd-$objformat
12440 case $version_type in
12441 freebsd-elf*)
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12443 need_version=no
12444 need_lib_prefix=no
12446 freebsd-*)
12447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12448 need_version=yes
12450 esac
12451 shlibpath_var=LD_LIBRARY_PATH
12452 case $host_os in
12453 freebsd2*)
12454 shlibpath_overrides_runpath=yes
12456 freebsd3.[01]* | freebsdelf3.[01]*)
12457 shlibpath_overrides_runpath=yes
12458 hardcode_into_libs=yes
12460 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12461 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12462 shlibpath_overrides_runpath=no
12463 hardcode_into_libs=yes
12465 *) # from 4.6 on, and DragonFly
12466 shlibpath_overrides_runpath=yes
12467 hardcode_into_libs=yes
12469 esac
12472 gnu*)
12473 version_type=linux
12474 need_lib_prefix=no
12475 need_version=no
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 hardcode_into_libs=yes
12482 hpux9* | hpux10* | hpux11*)
12483 # Give a soname corresponding to the major version so that dld.sl refuses to
12484 # link against other versions.
12485 version_type=sunos
12486 need_lib_prefix=no
12487 need_version=no
12488 case $host_cpu in
12489 ia64*)
12490 shrext_cmds='.so'
12491 hardcode_into_libs=yes
12492 dynamic_linker="$host_os dld.so"
12493 shlibpath_var=LD_LIBRARY_PATH
12494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 if test "X$HPUX_IA64_MODE" = X32; then
12498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12499 else
12500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12504 hppa*64*)
12505 shrext_cmds='.sl'
12506 hardcode_into_libs=yes
12507 dynamic_linker="$host_os dld.sl"
12508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12516 shrext_cmds='.sl'
12517 dynamic_linker="$host_os dld.sl"
12518 shlibpath_var=SHLIB_PATH
12519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12523 esac
12524 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12525 postinstall_cmds='chmod 555 $lib'
12528 interix[3-9]*)
12529 version_type=linux
12530 need_lib_prefix=no
12531 need_version=no
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12533 soname_spec='${libname}${release}${shared_ext}$major'
12534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 shlibpath_overrides_runpath=no
12537 hardcode_into_libs=yes
12540 irix5* | irix6* | nonstopux*)
12541 case $host_os in
12542 nonstopux*) version_type=nonstopux ;;
12544 if test "$lt_cv_prog_gnu_ld" = yes; then
12545 version_type=linux
12546 else
12547 version_type=irix
12548 fi ;;
12549 esac
12550 need_lib_prefix=no
12551 need_version=no
12552 soname_spec='${libname}${release}${shared_ext}$major'
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12554 case $host_os in
12555 irix5* | nonstopux*)
12556 libsuff= shlibsuff=
12559 case $LD in # libtool.m4 will add one of these switches to LD
12560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12561 libsuff= shlibsuff= libmagic=32-bit;;
12562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12563 libsuff=32 shlibsuff=N32 libmagic=N32;;
12564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12566 *) libsuff= shlibsuff= libmagic=never-match;;
12567 esac
12569 esac
12570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12571 shlibpath_overrides_runpath=no
12572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12574 hardcode_into_libs=yes
12577 # No shared lib support for Linux oldld, aout, or coff.
12578 linux*oldld* | linux*aout* | linux*coff*)
12579 dynamic_linker=no
12582 # This must be Linux ELF.
12583 linux* | k*bsd*-gnu)
12584 version_type=linux
12585 need_lib_prefix=no
12586 need_version=no
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12590 shlibpath_var=LD_LIBRARY_PATH
12591 shlibpath_overrides_runpath=no
12592 # This implies no fast_install, which is unacceptable.
12593 # Some rework will be needed to allow for fast_install
12594 # before this can be enabled.
12595 hardcode_into_libs=yes
12597 # Append ld.so.conf contents to the search path
12598 if test -f /etc/ld.so.conf; then
12599 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12603 # We used to test for /lib/ld.so.1 and disable shared libraries on
12604 # powerpc, because MkLinux only supported shared libraries with the
12605 # GNU dynamic linker. Since this was broken with cross compilers,
12606 # most powerpc-linux boxes support dynamic linking these days and
12607 # people can always --disable-shared, the test was removed, and we
12608 # assume the GNU/Linux dynamic linker is in use.
12609 dynamic_linker='GNU/Linux ld.so'
12612 netbsdelf*-gnu)
12613 version_type=linux
12614 need_lib_prefix=no
12615 need_version=no
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12617 soname_spec='${libname}${release}${shared_ext}$major'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 shlibpath_overrides_runpath=no
12620 hardcode_into_libs=yes
12621 dynamic_linker='NetBSD ld.elf_so'
12624 netbsd*)
12625 version_type=sunos
12626 need_lib_prefix=no
12627 need_version=no
12628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12631 dynamic_linker='NetBSD (a.out) ld.so'
12632 else
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12635 dynamic_linker='NetBSD ld.elf_so'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=yes
12639 hardcode_into_libs=yes
12642 newsos6)
12643 version_type=linux
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12645 shlibpath_var=LD_LIBRARY_PATH
12646 shlibpath_overrides_runpath=yes
12649 nto-qnx*)
12650 version_type=linux
12651 need_lib_prefix=no
12652 need_version=no
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=yes
12659 openbsd*)
12660 version_type=sunos
12661 sys_lib_dlsearch_path_spec="/usr/lib"
12662 need_lib_prefix=no
12663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12664 case $host_os in
12665 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12666 *) need_version=no ;;
12667 esac
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12670 shlibpath_var=LD_LIBRARY_PATH
12671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12672 case $host_os in
12673 openbsd2.[89] | openbsd2.[89].*)
12674 shlibpath_overrides_runpath=no
12677 shlibpath_overrides_runpath=yes
12679 esac
12680 else
12681 shlibpath_overrides_runpath=yes
12685 os2*)
12686 libname_spec='$name'
12687 shrext_cmds=".dll"
12688 need_lib_prefix=no
12689 library_names_spec='$libname${shared_ext} $libname.a'
12690 dynamic_linker='OS/2 ld.exe'
12691 shlibpath_var=LIBPATH
12694 osf3* | osf4* | osf5*)
12695 version_type=osf
12696 need_lib_prefix=no
12697 need_version=no
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700 shlibpath_var=LD_LIBRARY_PATH
12701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12705 rdos*)
12706 dynamic_linker=no
12709 solaris*)
12710 version_type=linux
12711 need_lib_prefix=no
12712 need_version=no
12713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714 soname_spec='${libname}${release}${shared_ext}$major'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 shlibpath_overrides_runpath=yes
12717 hardcode_into_libs=yes
12718 # ldd complains unless libraries are executable
12719 postinstall_cmds='chmod +x $lib'
12722 sunos4*)
12723 version_type=sunos
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 shlibpath_overrides_runpath=yes
12728 if test "$with_gnu_ld" = yes; then
12729 need_lib_prefix=no
12731 need_version=yes
12734 sysv4 | sysv4.3*)
12735 version_type=linux
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 case $host_vendor in
12740 sni)
12741 shlibpath_overrides_runpath=no
12742 need_lib_prefix=no
12743 export_dynamic_flag_spec='${wl}-Blargedynsym'
12744 runpath_var=LD_RUN_PATH
12746 siemens)
12747 need_lib_prefix=no
12749 motorola)
12750 need_lib_prefix=no
12751 need_version=no
12752 shlibpath_overrides_runpath=no
12753 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12755 esac
12758 sysv4*MP*)
12759 if test -d /usr/nec ;then
12760 version_type=linux
12761 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12762 soname_spec='$libname${shared_ext}.$major'
12763 shlibpath_var=LD_LIBRARY_PATH
12767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12768 version_type=freebsd-elf
12769 need_lib_prefix=no
12770 need_version=no
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 hardcode_into_libs=yes
12775 if test "$with_gnu_ld" = yes; then
12776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12777 shlibpath_overrides_runpath=no
12778 else
12779 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12780 shlibpath_overrides_runpath=yes
12781 case $host_os in
12782 sco3.2v5*)
12783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12785 esac
12787 sys_lib_dlsearch_path_spec='/usr/lib'
12790 uts4*)
12791 version_type=linux
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 shlibpath_var=LD_LIBRARY_PATH
12798 dynamic_linker=no
12800 esac
12801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12802 echo "${ECHO_T}$dynamic_linker" >&6; }
12803 test "$dynamic_linker" = no && can_build_shared=no
12805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 else
12808 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12818 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12820 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12821 if test "$GCC" = yes; then
12822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12825 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12826 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12827 hardcode_action=
12828 if test -n "$hardcode_libdir_flag_spec" || \
12829 test -n "$runpath_var" || \
12830 test "X$hardcode_automatic" = "Xyes" ; then
12832 # We can hardcode non-existant directories.
12833 if test "$hardcode_direct" != no &&
12834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12835 # have to relink, otherwise we might link with an installed library
12836 # when we should be linking with a yet-to-be-installed one
12837 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12838 test "$hardcode_minus_L" != no; then
12839 # Linking always hardcodes the temporary library directory.
12840 hardcode_action=relink
12841 else
12842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12843 hardcode_action=immediate
12845 else
12846 # We cannot hardcode anything, or else we can only hardcode existing
12847 # directories.
12848 hardcode_action=unsupported
12850 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12851 echo "${ECHO_T}$hardcode_action" >&6; }
12853 if test "$hardcode_action" = relink; then
12854 # Fast installation is not supported
12855 enable_fast_install=no
12856 elif test "$shlibpath_overrides_runpath" = yes ||
12857 test "$enable_shared" = no; then
12858 # Fast installation is not necessary
12859 enable_fast_install=needless
12862 striplib=
12863 old_striplib=
12864 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12865 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12866 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12867 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12868 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12869 { echo "$as_me:$LINENO: result: yes" >&5
12870 echo "${ECHO_T}yes" >&6; }
12871 else
12872 # FIXME - insert some real tests, host_os isn't really good enough
12873 case $host_os in
12874 darwin*)
12875 if test -n "$STRIP" ; then
12876 striplib="$STRIP -x"
12877 old_striplib="$STRIP -S"
12878 { echo "$as_me:$LINENO: result: yes" >&5
12879 echo "${ECHO_T}yes" >&6; }
12880 else
12881 { echo "$as_me:$LINENO: result: no" >&5
12882 echo "${ECHO_T}no" >&6; }
12886 { echo "$as_me:$LINENO: result: no" >&5
12887 echo "${ECHO_T}no" >&6; }
12889 esac
12892 if test "x$enable_dlopen" != xyes; then
12893 enable_dlopen=unknown
12894 enable_dlopen_self=unknown
12895 enable_dlopen_self_static=unknown
12896 else
12897 lt_cv_dlopen=no
12898 lt_cv_dlopen_libs=
12900 case $host_os in
12901 beos*)
12902 lt_cv_dlopen="load_add_on"
12903 lt_cv_dlopen_libs=
12904 lt_cv_dlopen_self=yes
12907 mingw* | pw32*)
12908 lt_cv_dlopen="LoadLibrary"
12909 lt_cv_dlopen_libs=
12912 cygwin*)
12913 lt_cv_dlopen="dlopen"
12914 lt_cv_dlopen_libs=
12917 darwin*)
12918 # if libdl is installed we need to link against it
12919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12920 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12921 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924 ac_check_lib_save_LIBS=$LIBS
12925 LIBS="-ldl $LIBS"
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12933 /* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12936 #ifdef __cplusplus
12937 extern "C"
12938 #endif
12939 char dlopen ();
12941 main ()
12943 return dlopen ();
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (ac_try="$ac_link"
12950 case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_link") 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } && {
12962 test -z "$ac_c_werror_flag" ||
12963 test ! -s conftest.err
12964 } && test -s conftest$ac_exeext &&
12965 $as_test_x conftest$ac_exeext; then
12966 ac_cv_lib_dl_dlopen=yes
12967 else
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ac_cv_lib_dl_dlopen=no
12974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12980 if test $ac_cv_lib_dl_dlopen = yes; then
12981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12982 else
12984 lt_cv_dlopen="dyld"
12985 lt_cv_dlopen_libs=
12986 lt_cv_dlopen_self=yes
12993 { echo "$as_me:$LINENO: checking for shl_load" >&5
12994 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12995 if test "${ac_cv_func_shl_load+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13006 #define shl_load innocuous_shl_load
13008 /* System header to define __stub macros and hopefully few prototypes,
13009 which can conflict with char shl_load (); below.
13010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13011 <limits.h> exists even on freestanding compilers. */
13013 #ifdef __STDC__
13014 # include <limits.h>
13015 #else
13016 # include <assert.h>
13017 #endif
13019 #undef shl_load
13021 /* Override any GCC internal prototype to avoid an error.
13022 Use char because int might match the return type of a GCC
13023 builtin and then its argument prototype would still apply. */
13024 #ifdef __cplusplus
13025 extern "C"
13026 #endif
13027 char shl_load ();
13028 /* The GNU C library defines this for functions which it implements
13029 to always fail with ENOSYS. Some functions are actually named
13030 something starting with __ and the normal name is an alias. */
13031 #if defined __stub_shl_load || defined __stub___shl_load
13032 choke me
13033 #endif
13036 main ()
13038 return shl_load ();
13040 return 0;
13042 _ACEOF
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (ac_try="$ac_link"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048 esac
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_link") 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } && {
13057 test -z "$ac_c_werror_flag" ||
13058 test ! -s conftest.err
13059 } && test -s conftest$ac_exeext &&
13060 $as_test_x conftest$ac_exeext; then
13061 ac_cv_func_shl_load=yes
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_cv_func_shl_load=no
13069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13070 conftest$ac_exeext conftest.$ac_ext
13072 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13073 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13074 if test $ac_cv_func_shl_load = yes; then
13075 lt_cv_dlopen="shl_load"
13076 else
13077 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13078 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-ldld $LIBS"
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char shl_load ();
13099 main ()
13101 return shl_load ();
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext &&
13123 $as_test_x conftest$ac_exeext; then
13124 ac_cv_lib_dld_shl_load=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_dld_shl_load=no
13132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13137 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13138 if test $ac_cv_lib_dld_shl_load = yes; then
13139 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13140 else
13141 { echo "$as_me:$LINENO: checking for dlopen" >&5
13142 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13143 if test "${ac_cv_func_dlopen+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13154 #define dlopen innocuous_dlopen
13156 /* System header to define __stub macros and hopefully few prototypes,
13157 which can conflict with char dlopen (); below.
13158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159 <limits.h> exists even on freestanding compilers. */
13161 #ifdef __STDC__
13162 # include <limits.h>
13163 #else
13164 # include <assert.h>
13165 #endif
13167 #undef dlopen
13169 /* Override any GCC internal prototype to avoid an error.
13170 Use char because int might match the return type of a GCC
13171 builtin and then its argument prototype would still apply. */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 char dlopen ();
13176 /* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179 #if defined __stub_dlopen || defined __stub___dlopen
13180 choke me
13181 #endif
13184 main ()
13186 return dlopen ();
13188 return 0;
13190 _ACEOF
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_link") 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest$ac_exeext &&
13208 $as_test_x conftest$ac_exeext; then
13209 ac_cv_func_dlopen=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_cv_func_dlopen=no
13217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218 conftest$ac_exeext conftest.$ac_ext
13220 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13221 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13222 if test $ac_cv_func_dlopen = yes; then
13223 lt_cv_dlopen="dlopen"
13224 else
13225 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ldl $LIBS"
13232 cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h. */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char dlopen ();
13247 main ()
13249 return dlopen ();
13251 return 0;
13253 _ACEOF
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } && {
13268 test -z "$ac_c_werror_flag" ||
13269 test ! -s conftest.err
13270 } && test -s conftest$ac_exeext &&
13271 $as_test_x conftest$ac_exeext; then
13272 ac_cv_lib_dl_dlopen=yes
13273 else
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_cv_lib_dl_dlopen=no
13280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13281 conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13284 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13286 if test $ac_cv_lib_dl_dlopen = yes; then
13287 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13288 else
13289 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13290 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-lsvld $LIBS"
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h. */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13306 #ifdef __cplusplus
13307 extern "C"
13308 #endif
13309 char dlopen ();
13311 main ()
13313 return dlopen ();
13315 return 0;
13317 _ACEOF
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest$ac_exeext &&
13335 $as_test_x conftest$ac_exeext; then
13336 ac_cv_lib_svld_dlopen=yes
13337 else
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_lib_svld_dlopen=no
13344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13349 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13350 if test $ac_cv_lib_svld_dlopen = yes; then
13351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13352 else
13353 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13354 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13355 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-ldld $LIBS"
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 char dld_link ();
13375 main ()
13377 return dld_link ();
13379 return 0;
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (ac_try="$ac_link"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_link") 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } && {
13396 test -z "$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13398 } && test -s conftest$ac_exeext &&
13399 $as_test_x conftest$ac_exeext; then
13400 ac_cv_lib_dld_dld_link=yes
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_dld_dld_link=no
13408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13413 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13414 if test $ac_cv_lib_dld_dld_link = yes; then
13415 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13434 esac
13436 if test "x$lt_cv_dlopen" != xno; then
13437 enable_dlopen=yes
13438 else
13439 enable_dlopen=no
13442 case $lt_cv_dlopen in
13443 dlopen)
13444 save_CPPFLAGS="$CPPFLAGS"
13445 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13447 save_LDFLAGS="$LDFLAGS"
13448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13450 save_LIBS="$LIBS"
13451 LIBS="$lt_cv_dlopen_libs $LIBS"
13453 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13454 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13455 if test "${lt_cv_dlopen_self+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 if test "$cross_compiling" = yes; then :
13459 lt_cv_dlopen_self=cross
13460 else
13461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13462 lt_status=$lt_dlunknown
13463 cat > conftest.$ac_ext <<EOF
13464 #line 13464 "configure"
13465 #include "confdefs.h"
13467 #if HAVE_DLFCN_H
13468 #include <dlfcn.h>
13469 #endif
13471 #include <stdio.h>
13473 #ifdef RTLD_GLOBAL
13474 # define LT_DLGLOBAL RTLD_GLOBAL
13475 #else
13476 # ifdef DL_GLOBAL
13477 # define LT_DLGLOBAL DL_GLOBAL
13478 # else
13479 # define LT_DLGLOBAL 0
13480 # endif
13481 #endif
13483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13484 find out it does not work in some platform. */
13485 #ifndef LT_DLLAZY_OR_NOW
13486 # ifdef RTLD_LAZY
13487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13488 # else
13489 # ifdef DL_LAZY
13490 # define LT_DLLAZY_OR_NOW DL_LAZY
13491 # else
13492 # ifdef RTLD_NOW
13493 # define LT_DLLAZY_OR_NOW RTLD_NOW
13494 # else
13495 # ifdef DL_NOW
13496 # define LT_DLLAZY_OR_NOW DL_NOW
13497 # else
13498 # define LT_DLLAZY_OR_NOW 0
13499 # endif
13500 # endif
13501 # endif
13502 # endif
13503 #endif
13505 #ifdef __cplusplus
13506 extern "C" void exit (int);
13507 #endif
13509 void fnord() { int i=42;}
13510 int main ()
13512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13513 int status = $lt_dlunknown;
13515 if (self)
13517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13519 /* dlclose (self); */
13521 else
13522 puts (dlerror ());
13524 exit (status);
13527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13528 (eval $ac_link) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13532 (./conftest; exit; ) >&5 2>/dev/null
13533 lt_status=$?
13534 case x$lt_status in
13535 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13536 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13537 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13538 esac
13539 else :
13540 # compilation failed
13541 lt_cv_dlopen_self=no
13544 rm -fr conftest*
13548 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13549 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13551 if test "x$lt_cv_dlopen_self" = xyes; then
13552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13553 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13554 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13555 if test "${lt_cv_dlopen_self_static+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 if test "$cross_compiling" = yes; then :
13559 lt_cv_dlopen_self_static=cross
13560 else
13561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13562 lt_status=$lt_dlunknown
13563 cat > conftest.$ac_ext <<EOF
13564 #line 13564 "configure"
13565 #include "confdefs.h"
13567 #if HAVE_DLFCN_H
13568 #include <dlfcn.h>
13569 #endif
13571 #include <stdio.h>
13573 #ifdef RTLD_GLOBAL
13574 # define LT_DLGLOBAL RTLD_GLOBAL
13575 #else
13576 # ifdef DL_GLOBAL
13577 # define LT_DLGLOBAL DL_GLOBAL
13578 # else
13579 # define LT_DLGLOBAL 0
13580 # endif
13581 #endif
13583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13584 find out it does not work in some platform. */
13585 #ifndef LT_DLLAZY_OR_NOW
13586 # ifdef RTLD_LAZY
13587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13588 # else
13589 # ifdef DL_LAZY
13590 # define LT_DLLAZY_OR_NOW DL_LAZY
13591 # else
13592 # ifdef RTLD_NOW
13593 # define LT_DLLAZY_OR_NOW RTLD_NOW
13594 # else
13595 # ifdef DL_NOW
13596 # define LT_DLLAZY_OR_NOW DL_NOW
13597 # else
13598 # define LT_DLLAZY_OR_NOW 0
13599 # endif
13600 # endif
13601 # endif
13602 # endif
13603 #endif
13605 #ifdef __cplusplus
13606 extern "C" void exit (int);
13607 #endif
13609 void fnord() { int i=42;}
13610 int main ()
13612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13613 int status = $lt_dlunknown;
13615 if (self)
13617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13619 /* dlclose (self); */
13621 else
13622 puts (dlerror ());
13624 exit (status);
13627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13628 (eval $ac_link) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13632 (./conftest; exit; ) >&5 2>/dev/null
13633 lt_status=$?
13634 case x$lt_status in
13635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13637 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13638 esac
13639 else :
13640 # compilation failed
13641 lt_cv_dlopen_self_static=no
13644 rm -fr conftest*
13648 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13649 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13652 CPPFLAGS="$save_CPPFLAGS"
13653 LDFLAGS="$save_LDFLAGS"
13654 LIBS="$save_LIBS"
13656 esac
13658 case $lt_cv_dlopen_self in
13659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13660 *) enable_dlopen_self=unknown ;;
13661 esac
13663 case $lt_cv_dlopen_self_static in
13664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13665 *) enable_dlopen_self_static=unknown ;;
13666 esac
13670 # Report which library types will actually be built
13671 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13672 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13673 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13674 echo "${ECHO_T}$can_build_shared" >&6; }
13676 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13677 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13678 test "$can_build_shared" = "no" && enable_shared=no
13680 # On AIX, shared libraries and static libraries use the same namespace, and
13681 # are all built from PIC.
13682 case $host_os in
13683 aix3*)
13684 test "$enable_shared" = yes && enable_static=no
13685 if test -n "$RANLIB"; then
13686 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13687 postinstall_cmds='$RANLIB $lib'
13691 aix[4-9]*)
13692 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13693 test "$enable_shared" = yes && enable_static=no
13696 esac
13697 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13698 echo "${ECHO_T}$enable_shared" >&6; }
13700 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13701 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13702 # Make sure either enable_shared or enable_static is yes.
13703 test "$enable_shared" = yes || enable_static=yes
13704 { echo "$as_me:$LINENO: result: $enable_static" >&5
13705 echo "${ECHO_T}$enable_static" >&6; }
13707 # The else clause should only fire when bootstrapping the
13708 # libtool distribution, otherwise you forgot to ship ltmain.sh
13709 # with your package, and you will get complaints that there are
13710 # no rules to generate ltmain.sh.
13711 if test -f "$ltmain"; then
13712 # See if we are running on zsh, and set the options which allow our commands through
13713 # without removal of \ escapes.
13714 if test -n "${ZSH_VERSION+set}" ; then
13715 setopt NO_GLOB_SUBST
13717 # Now quote all the things that may contain metacharacters while being
13718 # careful not to overquote the AC_SUBSTed values. We take copies of the
13719 # variables and quote the copies for generation of the libtool script.
13720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13721 SED SHELL STRIP \
13722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13724 deplibs_check_method reload_flag reload_cmds need_locks \
13725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13726 lt_cv_sys_global_symbol_to_c_name_address \
13727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13728 old_postinstall_cmds old_postuninstall_cmds \
13729 compiler \
13730 CC \
13731 LD \
13732 lt_prog_compiler_wl \
13733 lt_prog_compiler_pic \
13734 lt_prog_compiler_static \
13735 lt_prog_compiler_no_builtin_flag \
13736 export_dynamic_flag_spec \
13737 thread_safe_flag_spec \
13738 whole_archive_flag_spec \
13739 enable_shared_with_static_runtimes \
13740 old_archive_cmds \
13741 old_archive_from_new_cmds \
13742 predep_objects \
13743 postdep_objects \
13744 predeps \
13745 postdeps \
13746 compiler_lib_search_path \
13747 compiler_lib_search_dirs \
13748 archive_cmds \
13749 archive_expsym_cmds \
13750 postinstall_cmds \
13751 postuninstall_cmds \
13752 old_archive_from_expsyms_cmds \
13753 allow_undefined_flag \
13754 no_undefined_flag \
13755 export_symbols_cmds \
13756 hardcode_libdir_flag_spec \
13757 hardcode_libdir_flag_spec_ld \
13758 hardcode_libdir_separator \
13759 hardcode_automatic \
13760 module_cmds \
13761 module_expsym_cmds \
13762 lt_cv_prog_compiler_c_o \
13763 fix_srcfile_path \
13764 exclude_expsyms \
13765 include_expsyms; do
13767 case $var in
13768 old_archive_cmds | \
13769 old_archive_from_new_cmds | \
13770 archive_cmds | \
13771 archive_expsym_cmds | \
13772 module_cmds | \
13773 module_expsym_cmds | \
13774 old_archive_from_expsyms_cmds | \
13775 export_symbols_cmds | \
13776 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13777 postinstall_cmds | postuninstall_cmds | \
13778 old_postinstall_cmds | old_postuninstall_cmds | \
13779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13780 # Double-quote double-evaled strings.
13781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13786 esac
13787 done
13789 case $lt_echo in
13790 *'\$0 --fallback-echo"')
13791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13793 esac
13795 cfgfile="${ofile}T"
13796 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13797 $rm -f "$cfgfile"
13798 { echo "$as_me:$LINENO: creating $ofile" >&5
13799 echo "$as_me: creating $ofile" >&6;}
13801 cat <<__EOF__ >> "$cfgfile"
13802 #! $SHELL
13804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13809 # Free Software Foundation, Inc.
13811 # This file is part of GNU Libtool:
13812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13814 # This program is free software; you can redistribute it and/or modify
13815 # it under the terms of the GNU General Public License as published by
13816 # the Free Software Foundation; either version 2 of the License, or
13817 # (at your option) any later version.
13819 # This program is distributed in the hope that it will be useful, but
13820 # WITHOUT ANY WARRANTY; without even the implied warranty of
13821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13822 # General Public License for more details.
13824 # You should have received a copy of the GNU General Public License
13825 # along with this program; if not, write to the Free Software
13826 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13828 # As a special exception to the GNU General Public License, if you
13829 # distribute this file as part of a program that contains a
13830 # configuration script generated by Autoconf, you may include it under
13831 # the same distribution terms that you use for the rest of that program.
13833 # A sed program that does not truncate output.
13834 SED=$lt_SED
13836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13837 Xsed="$SED -e 1s/^X//"
13839 # The HP-UX ksh and POSIX shell print the target directory to stdout
13840 # if CDPATH is set.
13841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13843 # The names of the tagged configurations supported by this script.
13844 available_tags=
13846 # ### BEGIN LIBTOOL CONFIG
13848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13850 # Shell to use when invoking shell scripts.
13851 SHELL=$lt_SHELL
13853 # Whether or not to build shared libraries.
13854 build_libtool_libs=$enable_shared
13856 # Whether or not to build static libraries.
13857 build_old_libs=$enable_static
13859 # Whether or not to add -lc for building shared libraries.
13860 build_libtool_need_lc=$archive_cmds_need_lc
13862 # Whether or not to disallow shared libs when runtime libs are static
13863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13865 # Whether or not to optimize for fast installation.
13866 fast_install=$enable_fast_install
13868 # The host system.
13869 host_alias=$host_alias
13870 host=$host
13871 host_os=$host_os
13873 # The build system.
13874 build_alias=$build_alias
13875 build=$build
13876 build_os=$build_os
13878 # An echo program that does not interpret backslashes.
13879 echo=$lt_echo
13881 # The archiver.
13882 AR=$lt_AR
13883 AR_FLAGS=$lt_AR_FLAGS
13885 # A C compiler.
13886 LTCC=$lt_LTCC
13888 # LTCC compiler flags.
13889 LTCFLAGS=$lt_LTCFLAGS
13891 # A language-specific compiler.
13892 CC=$lt_compiler
13894 # Is the compiler the GNU C compiler?
13895 with_gcc=$GCC
13897 # An ERE matcher.
13898 EGREP=$lt_EGREP
13900 # The linker used to build libraries.
13901 LD=$lt_LD
13903 # Whether we need hard or soft links.
13904 LN_S=$lt_LN_S
13906 # A BSD-compatible nm program.
13907 NM=$lt_NM
13909 # A symbol stripping program
13910 STRIP=$lt_STRIP
13912 # Used to examine libraries when file_magic_cmd begins "file"
13913 MAGIC_CMD=$MAGIC_CMD
13915 # Used on cygwin: DLL creation program.
13916 DLLTOOL="$DLLTOOL"
13918 # Used on cygwin: object dumper.
13919 OBJDUMP="$OBJDUMP"
13921 # Used on cygwin: assembler.
13922 AS="$AS"
13924 # The name of the directory that contains temporary libtool files.
13925 objdir=$objdir
13927 # How to create reloadable object files.
13928 reload_flag=$lt_reload_flag
13929 reload_cmds=$lt_reload_cmds
13931 # How to pass a linker flag through the compiler.
13932 wl=$lt_lt_prog_compiler_wl
13934 # Object file suffix (normally "o").
13935 objext="$ac_objext"
13937 # Old archive suffix (normally "a").
13938 libext="$libext"
13940 # Shared library suffix (normally ".so").
13941 shrext_cmds='$shrext_cmds'
13943 # Executable file suffix (normally "").
13944 exeext="$exeext"
13946 # Additional compiler flags for building library objects.
13947 pic_flag=$lt_lt_prog_compiler_pic
13948 pic_mode=$pic_mode
13950 # What is the maximum length of a command?
13951 max_cmd_len=$lt_cv_sys_max_cmd_len
13953 # Does compiler simultaneously support -c and -o options?
13954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13956 # Must we lock files when doing compilation?
13957 need_locks=$lt_need_locks
13959 # Do we need the lib prefix for modules?
13960 need_lib_prefix=$need_lib_prefix
13962 # Do we need a version for libraries?
13963 need_version=$need_version
13965 # Whether dlopen is supported.
13966 dlopen_support=$enable_dlopen
13968 # Whether dlopen of programs is supported.
13969 dlopen_self=$enable_dlopen_self
13971 # Whether dlopen of statically linked programs is supported.
13972 dlopen_self_static=$enable_dlopen_self_static
13974 # Compiler flag to prevent dynamic linking.
13975 link_static_flag=$lt_lt_prog_compiler_static
13977 # Compiler flag to turn off builtin functions.
13978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13980 # Compiler flag to allow reflexive dlopens.
13981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13983 # Compiler flag to generate shared objects directly from archives.
13984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13986 # Compiler flag to generate thread-safe objects.
13987 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13989 # Library versioning type.
13990 version_type=$version_type
13992 # Format of library name prefix.
13993 libname_spec=$lt_libname_spec
13995 # List of archive names. First name is the real one, the rest are links.
13996 # The last name is the one that the linker finds with -lNAME.
13997 library_names_spec=$lt_library_names_spec
13999 # The coded name of the library, if different from the real name.
14000 soname_spec=$lt_soname_spec
14002 # Commands used to build and install an old-style archive.
14003 RANLIB=$lt_RANLIB
14004 old_archive_cmds=$lt_old_archive_cmds
14005 old_postinstall_cmds=$lt_old_postinstall_cmds
14006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14008 # Create an old-style archive from a shared archive.
14009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14011 # Create a temporary old-style archive to link instead of a shared archive.
14012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14014 # Commands used to build and install a shared archive.
14015 archive_cmds=$lt_archive_cmds
14016 archive_expsym_cmds=$lt_archive_expsym_cmds
14017 postinstall_cmds=$lt_postinstall_cmds
14018 postuninstall_cmds=$lt_postuninstall_cmds
14020 # Commands used to build a loadable module (assumed same as above if empty)
14021 module_cmds=$lt_module_cmds
14022 module_expsym_cmds=$lt_module_expsym_cmds
14024 # Commands to strip libraries.
14025 old_striplib=$lt_old_striplib
14026 striplib=$lt_striplib
14028 # Dependencies to place before the objects being linked to create a
14029 # shared library.
14030 predep_objects=$lt_predep_objects
14032 # Dependencies to place after the objects being linked to create a
14033 # shared library.
14034 postdep_objects=$lt_postdep_objects
14036 # Dependencies to place before the objects being linked to create a
14037 # shared library.
14038 predeps=$lt_predeps
14040 # Dependencies to place after the objects being linked to create a
14041 # shared library.
14042 postdeps=$lt_postdeps
14044 # The directories searched by this compiler when creating a shared
14045 # library
14046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
14048 # The library search path used internally by the compiler when linking
14049 # a shared library.
14050 compiler_lib_search_path=$lt_compiler_lib_search_path
14052 # Method to check whether dependent libraries are shared objects.
14053 deplibs_check_method=$lt_deplibs_check_method
14055 # Command to use when deplibs_check_method == file_magic.
14056 file_magic_cmd=$lt_file_magic_cmd
14058 # Flag that allows shared libraries with undefined symbols to be built.
14059 allow_undefined_flag=$lt_allow_undefined_flag
14061 # Flag that forces no undefined symbols.
14062 no_undefined_flag=$lt_no_undefined_flag
14064 # Commands used to finish a libtool library installation in a directory.
14065 finish_cmds=$lt_finish_cmds
14067 # Same as above, but a single script fragment to be evaled but not shown.
14068 finish_eval=$lt_finish_eval
14070 # Take the output of nm and produce a listing of raw symbols and C names.
14071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14073 # Transform the output of nm in a proper C declaration
14074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14076 # Transform the output of nm in a C name address pair
14077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14079 # This is the shared library runtime path variable.
14080 runpath_var=$runpath_var
14082 # This is the shared library path variable.
14083 shlibpath_var=$shlibpath_var
14085 # Is shlibpath searched before the hard-coded library search path?
14086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14088 # How to hardcode a shared library path into an executable.
14089 hardcode_action=$hardcode_action
14091 # Whether we should hardcode library paths into libraries.
14092 hardcode_into_libs=$hardcode_into_libs
14094 # Flag to hardcode \$libdir into a binary during linking.
14095 # This must work even if \$libdir does not exist.
14096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14098 # If ld is used when linking, flag to hardcode \$libdir into
14099 # a binary during linking. This must work even if \$libdir does
14100 # not exist.
14101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14103 # Whether we need a single -rpath flag with a separated argument.
14104 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14107 # resulting binary.
14108 hardcode_direct=$hardcode_direct
14110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14111 # resulting binary.
14112 hardcode_minus_L=$hardcode_minus_L
14114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14115 # the resulting binary.
14116 hardcode_shlibpath_var=$hardcode_shlibpath_var
14118 # Set to yes if building a shared library automatically hardcodes DIR into the library
14119 # and all subsequent libraries and executables linked against it.
14120 hardcode_automatic=$hardcode_automatic
14122 # Variables whose values should be saved in libtool wrapper scripts and
14123 # restored at relink time.
14124 variables_saved_for_relink="$variables_saved_for_relink"
14126 # Whether libtool must link a program against all its dependency libraries.
14127 link_all_deplibs=$link_all_deplibs
14129 # Compile-time system search path for libraries
14130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14132 # Run-time system search path for libraries
14133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14135 # Fix the shell variable \$srcfile for the compiler.
14136 fix_srcfile_path=$lt_fix_srcfile_path
14138 # Set to yes if exported symbols are required.
14139 always_export_symbols=$always_export_symbols
14141 # The commands to list exported symbols.
14142 export_symbols_cmds=$lt_export_symbols_cmds
14144 # The commands to extract the exported symbol list from a shared archive.
14145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14147 # Symbols that should not be listed in the preloaded symbols.
14148 exclude_expsyms=$lt_exclude_expsyms
14150 # Symbols that must always be exported.
14151 include_expsyms=$lt_include_expsyms
14153 # ### END LIBTOOL CONFIG
14155 __EOF__
14158 case $host_os in
14159 aix3*)
14160 cat <<\EOF >> "$cfgfile"
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14166 COLLECT_NAMES=
14167 export COLLECT_NAMES
14171 esac
14173 # We use sed instead of cat because bash on DJGPP gets confused if
14174 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14175 # text mode, it properly converts lines to CR/LF. This bash problem
14176 # is reportedly fixed, but why not run on old versions too?
14177 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14179 mv -f "$cfgfile" "$ofile" || \
14180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14181 chmod +x "$ofile"
14183 else
14184 # If there is no Makefile yet, we rely on a make rule to execute
14185 # `config.status --recheck' to rerun these tests and create the
14186 # libtool script then.
14187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14188 if test -f "$ltmain_in"; then
14189 test -f Makefile && make "$ltmain"
14194 ac_ext=c
14195 ac_cpp='$CPP $CPPFLAGS'
14196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14200 CC="$lt_save_CC"
14203 # Check whether --with-tags was given.
14204 if test "${with_tags+set}" = set; then
14205 withval=$with_tags; tagnames="$withval"
14209 if test -f "$ltmain" && test -n "$tagnames"; then
14210 if test ! -f "${ofile}"; then
14211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14212 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14215 if test -z "$LTCC"; then
14216 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14217 if test -z "$LTCC"; then
14218 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14219 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14220 else
14221 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14222 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14225 if test -z "$LTCFLAGS"; then
14226 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14229 # Extract list of available tagged configurations in $ofile.
14230 # Note that this assumes the entire list is on one line.
14231 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14234 for tagname in $tagnames; do
14235 IFS="$lt_save_ifs"
14236 # Check whether tagname contains only valid characters
14237 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14238 "") ;;
14239 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14240 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14241 { (exit 1); exit 1; }; }
14243 esac
14245 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14246 then
14247 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14248 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14249 { (exit 1); exit 1; }; }
14252 # Update the list of available tags.
14253 if test -n "$tagname"; then
14254 echo appending configuration tag \"$tagname\" to $ofile
14256 case $tagname in
14257 CXX)
14258 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14259 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14260 (test "X$CXX" != "Xg++"))) ; then
14261 ac_ext=cpp
14262 ac_cpp='$CXXCPP $CPPFLAGS'
14263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14270 archive_cmds_need_lc_CXX=no
14271 allow_undefined_flag_CXX=
14272 always_export_symbols_CXX=no
14273 archive_expsym_cmds_CXX=
14274 export_dynamic_flag_spec_CXX=
14275 hardcode_direct_CXX=no
14276 hardcode_libdir_flag_spec_CXX=
14277 hardcode_libdir_flag_spec_ld_CXX=
14278 hardcode_libdir_separator_CXX=
14279 hardcode_minus_L_CXX=no
14280 hardcode_shlibpath_var_CXX=unsupported
14281 hardcode_automatic_CXX=no
14282 module_cmds_CXX=
14283 module_expsym_cmds_CXX=
14284 link_all_deplibs_CXX=unknown
14285 old_archive_cmds_CXX=$old_archive_cmds
14286 no_undefined_flag_CXX=
14287 whole_archive_flag_spec_CXX=
14288 enable_shared_with_static_runtimes_CXX=no
14290 # Dependencies to place before and after the object being linked:
14291 predep_objects_CXX=
14292 postdep_objects_CXX=
14293 predeps_CXX=
14294 postdeps_CXX=
14295 compiler_lib_search_path_CXX=
14296 compiler_lib_search_dirs_CXX=
14298 # Source file extension for C++ test sources.
14299 ac_ext=cpp
14301 # Object file extension for compiled C++ test sources.
14302 objext=o
14303 objext_CXX=$objext
14305 # Code to be used in simple compile tests
14306 lt_simple_compile_test_code="int some_variable = 0;"
14308 # Code to be used in simple link tests
14309 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14311 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14313 # If no C compiler was specified, use CC.
14314 LTCC=${LTCC-"$CC"}
14316 # If no C compiler flags were specified, use CFLAGS.
14317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14319 # Allow CC to be a program name with arguments.
14320 compiler=$CC
14323 # save warnings/boilerplate of simple test code
14324 ac_outfile=conftest.$ac_objext
14325 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14327 _lt_compiler_boilerplate=`cat conftest.err`
14328 $rm conftest*
14330 ac_outfile=conftest.$ac_objext
14331 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14333 _lt_linker_boilerplate=`cat conftest.err`
14334 $rm -r conftest*
14337 # Allow CC to be a program name with arguments.
14338 lt_save_CC=$CC
14339 lt_save_LD=$LD
14340 lt_save_GCC=$GCC
14341 GCC=$GXX
14342 lt_save_with_gnu_ld=$with_gnu_ld
14343 lt_save_path_LD=$lt_cv_path_LD
14344 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14345 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14346 else
14347 $as_unset lt_cv_prog_gnu_ld
14349 if test -n "${lt_cv_path_LDCXX+set}"; then
14350 lt_cv_path_LD=$lt_cv_path_LDCXX
14351 else
14352 $as_unset lt_cv_path_LD
14354 test -z "${LDCXX+set}" || LD=$LDCXX
14355 CC=${CXX-"c++"}
14356 compiler=$CC
14357 compiler_CXX=$CC
14358 for cc_temp in $compiler""; do
14359 case $cc_temp in
14360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14362 \-*) ;;
14363 *) break;;
14364 esac
14365 done
14366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14369 # We don't want -fno-exception wen compiling C++ code, so set the
14370 # no_builtin_flag separately
14371 if test "$GXX" = yes; then
14372 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14373 else
14374 lt_prog_compiler_no_builtin_flag_CXX=
14377 if test "$GXX" = yes; then
14378 # Set up default GNU C++ configuration
14381 # Check whether --with-gnu-ld was given.
14382 if test "${with_gnu_ld+set}" = set; then
14383 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14384 else
14385 with_gnu_ld=no
14388 ac_prog=ld
14389 if test "$GCC" = yes; then
14390 # Check if gcc -print-prog-name=ld gives a path.
14391 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14392 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14393 case $host in
14394 *-*-mingw*)
14395 # gcc leaves a trailing carriage return which upsets mingw
14396 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14398 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14399 esac
14400 case $ac_prog in
14401 # Accept absolute paths.
14402 [\\/]* | ?:[\\/]*)
14403 re_direlt='/[^/][^/]*/\.\./'
14404 # Canonicalize the pathname of ld
14405 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14406 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14407 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14408 done
14409 test -z "$LD" && LD="$ac_prog"
14412 # If it fails, then pretend we aren't using GCC.
14413 ac_prog=ld
14416 # If it is relative, then search for the first ld in PATH.
14417 with_gnu_ld=unknown
14419 esac
14420 elif test "$with_gnu_ld" = yes; then
14421 { echo "$as_me:$LINENO: checking for GNU ld" >&5
14422 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14423 else
14424 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14425 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14427 if test "${lt_cv_path_LD+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430 if test -z "$LD"; then
14431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14432 for ac_dir in $PATH; do
14433 IFS="$lt_save_ifs"
14434 test -z "$ac_dir" && ac_dir=.
14435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14436 lt_cv_path_LD="$ac_dir/$ac_prog"
14437 # Check to see if the program is GNU ld. I'd rather use --version,
14438 # but apparently some variants of GNU ld only accept -v.
14439 # Break only if it was the GNU/non-GNU ld that we prefer.
14440 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14441 *GNU* | *'with BFD'*)
14442 test "$with_gnu_ld" != no && break
14445 test "$with_gnu_ld" != yes && break
14447 esac
14449 done
14450 IFS="$lt_save_ifs"
14451 else
14452 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14456 LD="$lt_cv_path_LD"
14457 if test -n "$LD"; then
14458 { echo "$as_me:$LINENO: result: $LD" >&5
14459 echo "${ECHO_T}$LD" >&6; }
14460 else
14461 { echo "$as_me:$LINENO: result: no" >&5
14462 echo "${ECHO_T}no" >&6; }
14464 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14465 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14466 { (exit 1); exit 1; }; }
14467 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14468 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14469 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14473 case `$LD -v 2>&1 </dev/null` in
14474 *GNU* | *'with BFD'*)
14475 lt_cv_prog_gnu_ld=yes
14478 lt_cv_prog_gnu_ld=no
14480 esac
14482 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14483 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14484 with_gnu_ld=$lt_cv_prog_gnu_ld
14488 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14489 # archiving commands below assume that GNU ld is being used.
14490 if test "$with_gnu_ld" = yes; then
14491 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492 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'
14494 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14497 # If archive_cmds runs LD, not CC, wlarc should be empty
14498 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14499 # investigate it a little bit more. (MM)
14500 wlarc='${wl}'
14502 # ancient GNU ld didn't support --whole-archive et. al.
14503 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14504 grep 'no-whole-archive' > /dev/null; then
14505 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14506 else
14507 whole_archive_flag_spec_CXX=
14509 else
14510 with_gnu_ld=no
14511 wlarc=
14513 # A generic and very simple default shared library creation
14514 # command for GNU C++ for the case where it uses the native
14515 # linker, instead of GNU ld. If possible, this setting should
14516 # overridden to take advantage of the native linker features on
14517 # the platform it is being used on.
14518 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14521 # Commands to make compiler produce verbose output that lists
14522 # what "hidden" libraries, object files and flags are used when
14523 # linking a shared library.
14524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14526 else
14527 GXX=no
14528 with_gnu_ld=no
14529 wlarc=
14532 # PORTME: fill in a description of your system's C++ link characteristics
14533 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14535 ld_shlibs_CXX=yes
14536 case $host_os in
14537 aix3*)
14538 # FIXME: insert proper C++ library support
14539 ld_shlibs_CXX=no
14541 aix[4-9]*)
14542 if test "$host_cpu" = ia64; then
14543 # On IA64, the linker does run time linking by default, so we don't
14544 # have to do anything special.
14545 aix_use_runtimelinking=no
14546 exp_sym_flag='-Bexport'
14547 no_entry_flag=""
14548 else
14549 aix_use_runtimelinking=no
14551 # Test if we are trying to use run time linking or normal
14552 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14553 # need to do runtime linking.
14554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14555 for ld_flag in $LDFLAGS; do
14556 case $ld_flag in
14557 *-brtl*)
14558 aix_use_runtimelinking=yes
14559 break
14561 esac
14562 done
14564 esac
14566 exp_sym_flag='-bexport'
14567 no_entry_flag='-bnoentry'
14570 # When large executables or shared objects are built, AIX ld can
14571 # have problems creating the table of contents. If linking a library
14572 # or program results in "error TOC overflow" add -mminimal-toc to
14573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14576 archive_cmds_CXX=''
14577 hardcode_direct_CXX=yes
14578 hardcode_libdir_separator_CXX=':'
14579 link_all_deplibs_CXX=yes
14581 if test "$GXX" = yes; then
14582 case $host_os in aix4.[012]|aix4.[012].*)
14583 # We only want to do this on AIX 4.2 and lower, the check
14584 # below for broken collect2 doesn't work under 4.3+
14585 collect2name=`${CC} -print-prog-name=collect2`
14586 if test -f "$collect2name" && \
14587 strings "$collect2name" | grep resolve_lib_name >/dev/null
14588 then
14589 # We have reworked collect2
14591 else
14592 # We have old collect2
14593 hardcode_direct_CXX=unsupported
14594 # It fails to find uninstalled libraries when the uninstalled
14595 # path is not listed in the libpath. Setting hardcode_minus_L
14596 # to unsupported forces relinking
14597 hardcode_minus_L_CXX=yes
14598 hardcode_libdir_flag_spec_CXX='-L$libdir'
14599 hardcode_libdir_separator_CXX=
14602 esac
14603 shared_flag='-shared'
14604 if test "$aix_use_runtimelinking" = yes; then
14605 shared_flag="$shared_flag "'${wl}-G'
14607 else
14608 # not using gcc
14609 if test "$host_cpu" = ia64; then
14610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14611 # chokes on -Wl,-G. The following line is correct:
14612 shared_flag='-G'
14613 else
14614 if test "$aix_use_runtimelinking" = yes; then
14615 shared_flag='${wl}-G'
14616 else
14617 shared_flag='${wl}-bM:SRE'
14622 # It seems that -bexpall does not export symbols beginning with
14623 # underscore (_), so it is better to generate a list of symbols to export.
14624 always_export_symbols_CXX=yes
14625 if test "$aix_use_runtimelinking" = yes; then
14626 # Warning - without using the other runtime loading flags (-brtl),
14627 # -berok will link without error, but may produce a broken library.
14628 allow_undefined_flag_CXX='-berok'
14629 # Determine the default libpath from the value encoded in an empty executable.
14630 cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h. */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14638 main ()
14642 return 0;
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_cxx_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext &&
14662 $as_test_x conftest$ac_exeext; then
14664 lt_aix_libpath_sed='
14665 /Import File Strings/,/^$/ {
14666 /^0/ {
14667 s/^0 *\(.*\)$/\1/
14671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 # Check for a 64-bit object if we didn't find anything.
14673 if test -z "$aix_libpath"; then
14674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14676 else
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14684 conftest$ac_exeext conftest.$ac_ext
14685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14687 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14689 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"
14690 else
14691 if test "$host_cpu" = ia64; then
14692 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14693 allow_undefined_flag_CXX="-z nodefs"
14694 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"
14695 else
14696 # Determine the default libpath from the value encoded in an empty executable.
14697 cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h. */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14705 main ()
14709 return 0;
14711 _ACEOF
14712 rm -f conftest.$ac_objext conftest$ac_exeext
14713 if { (ac_try="$ac_link"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_cxx_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest$ac_exeext &&
14729 $as_test_x conftest$ac_exeext; then
14731 lt_aix_libpath_sed='
14732 /Import File Strings/,/^$/ {
14733 /^0/ {
14734 s/^0 *\(.*\)$/\1/
14738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14739 # Check for a 64-bit object if we didn't find anything.
14740 if test -z "$aix_libpath"; then
14741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14751 conftest$ac_exeext conftest.$ac_ext
14752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14755 # Warning - without using the other run time loading flags,
14756 # -berok will link without error, but may produce a broken library.
14757 no_undefined_flag_CXX=' ${wl}-bernotok'
14758 allow_undefined_flag_CXX=' ${wl}-berok'
14759 # Exported symbols can be pulled into shared objects from archives
14760 whole_archive_flag_spec_CXX='$convenience'
14761 archive_cmds_need_lc_CXX=yes
14762 # This is similar to how AIX traditionally builds its shared libraries.
14763 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'
14768 beos*)
14769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14770 allow_undefined_flag_CXX=unsupported
14771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14772 # support --undefined. This deserves some investigation. FIXME
14773 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14774 else
14775 ld_shlibs_CXX=no
14779 chorus*)
14780 case $cc_basename in
14782 # FIXME: insert proper C++ library support
14783 ld_shlibs_CXX=no
14785 esac
14788 cygwin* | mingw* | pw32*)
14789 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14790 # as there is no search path for DLLs.
14791 hardcode_libdir_flag_spec_CXX='-L$libdir'
14792 allow_undefined_flag_CXX=unsupported
14793 always_export_symbols_CXX=no
14794 enable_shared_with_static_runtimes_CXX=yes
14796 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14797 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'
14798 # If the export-symbols file already is a .def file (1st line
14799 # is EXPORTS), use it as is; otherwise, prepend...
14800 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14801 cp $export_symbols $output_objdir/$soname.def;
14802 else
14803 echo EXPORTS > $output_objdir/$soname.def;
14804 cat $export_symbols >> $output_objdir/$soname.def;
14806 $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'
14807 else
14808 ld_shlibs_CXX=no
14811 darwin* | rhapsody*)
14812 archive_cmds_need_lc_CXX=no
14813 hardcode_direct_CXX=no
14814 hardcode_automatic_CXX=yes
14815 hardcode_shlibpath_var_CXX=unsupported
14816 whole_archive_flag_spec_CXX=''
14817 link_all_deplibs_CXX=yes
14818 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14819 if test "$GXX" = yes ; then
14820 output_verbose_link_cmd='echo'
14821 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14822 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14823 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14824 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14825 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14826 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14827 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14829 else
14830 case $cc_basename in
14831 xlc*)
14832 output_verbose_link_cmd='echo'
14833 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14834 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14836 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14837 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}'
14840 ld_shlibs_CXX=no
14842 esac
14846 dgux*)
14847 case $cc_basename in
14848 ec++*)
14849 # FIXME: insert proper C++ library support
14850 ld_shlibs_CXX=no
14852 ghcx*)
14853 # Green Hills C++ Compiler
14854 # FIXME: insert proper C++ library support
14855 ld_shlibs_CXX=no
14858 # FIXME: insert proper C++ library support
14859 ld_shlibs_CXX=no
14861 esac
14863 freebsd[12]*)
14864 # C++ shared libraries reported to be fairly broken before switch to ELF
14865 ld_shlibs_CXX=no
14867 freebsd-elf*)
14868 archive_cmds_need_lc_CXX=no
14870 freebsd* | dragonfly*)
14871 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14872 # conventions
14873 ld_shlibs_CXX=yes
14875 gnu*)
14877 hpux9*)
14878 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14879 hardcode_libdir_separator_CXX=:
14880 export_dynamic_flag_spec_CXX='${wl}-E'
14881 hardcode_direct_CXX=yes
14882 hardcode_minus_L_CXX=yes # Not in the search PATH,
14883 # but as the default
14884 # location of the library.
14886 case $cc_basename in
14887 CC*)
14888 # FIXME: insert proper C++ library support
14889 ld_shlibs_CXX=no
14891 aCC*)
14892 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'
14893 # Commands to make compiler produce verbose output that lists
14894 # what "hidden" libraries, object files and flags are used when
14895 # linking a shared library.
14897 # There doesn't appear to be a way to prevent this compiler from
14898 # explicitly linking system object files so we need to strip them
14899 # from the output so that they don't get included in the library
14900 # dependencies.
14901 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'
14904 if test "$GXX" = yes; then
14905 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'
14906 else
14907 # FIXME: insert proper C++ library support
14908 ld_shlibs_CXX=no
14911 esac
14913 hpux10*|hpux11*)
14914 if test $with_gnu_ld = no; then
14915 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14916 hardcode_libdir_separator_CXX=:
14918 case $host_cpu in
14919 hppa*64*|ia64*) ;;
14921 export_dynamic_flag_spec_CXX='${wl}-E'
14923 esac
14925 case $host_cpu in
14926 hppa*64*|ia64*)
14927 hardcode_direct_CXX=no
14928 hardcode_shlibpath_var_CXX=no
14931 hardcode_direct_CXX=yes
14932 hardcode_minus_L_CXX=yes # Not in the search PATH,
14933 # but as the default
14934 # location of the library.
14936 esac
14938 case $cc_basename in
14939 CC*)
14940 # FIXME: insert proper C++ library support
14941 ld_shlibs_CXX=no
14943 aCC*)
14944 case $host_cpu in
14945 hppa*64*)
14946 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14948 ia64*)
14949 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14952 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14954 esac
14955 # Commands to make compiler produce verbose output that lists
14956 # what "hidden" libraries, object files and flags are used when
14957 # linking a shared library.
14959 # There doesn't appear to be a way to prevent this compiler from
14960 # explicitly linking system object files so we need to strip them
14961 # from the output so that they don't get included in the library
14962 # dependencies.
14963 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'
14966 if test "$GXX" = yes; then
14967 if test $with_gnu_ld = no; then
14968 case $host_cpu in
14969 hppa*64*)
14970 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14972 ia64*)
14973 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14976 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'
14978 esac
14980 else
14981 # FIXME: insert proper C++ library support
14982 ld_shlibs_CXX=no
14985 esac
14987 interix[3-9]*)
14988 hardcode_direct_CXX=no
14989 hardcode_shlibpath_var_CXX=no
14990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14991 export_dynamic_flag_spec_CXX='${wl}-E'
14992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14993 # Instead, shared libraries are loaded at an image base (0x10000000 by
14994 # default) and relocated if they conflict, which is a slow very memory
14995 # consuming and fragmenting process. To avoid this, we pick a random,
14996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14998 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'
14999 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'
15001 irix5* | irix6*)
15002 case $cc_basename in
15003 CC*)
15004 # SGI C++
15005 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'
15007 # Archives containing C++ object files must be created using
15008 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15009 # necessary to make sure instantiated templates are included
15010 # in the archive.
15011 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15014 if test "$GXX" = yes; then
15015 if test "$with_gnu_ld" = no; then
15016 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'
15017 else
15018 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'
15021 link_all_deplibs_CXX=yes
15023 esac
15024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15025 hardcode_libdir_separator_CXX=:
15027 linux* | k*bsd*-gnu)
15028 case $cc_basename in
15029 KCC*)
15030 # Kuck and Associates, Inc. (KAI) C++ Compiler
15032 # KCC will only create a shared library if the output file
15033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15034 # to its proper name (with version) after linking.
15035 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'
15036 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'
15037 # Commands to make compiler produce verbose output that lists
15038 # what "hidden" libraries, object files and flags are used when
15039 # linking a shared library.
15041 # There doesn't appear to be a way to prevent this compiler from
15042 # explicitly linking system object files so we need to strip them
15043 # from the output so that they don't get included in the library
15044 # dependencies.
15045 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'
15047 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15050 # Archives containing C++ object files must be created using
15051 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15054 icpc*)
15055 # Intel C++
15056 with_gnu_ld=yes
15057 # version 8.0 and above of icpc choke on multiply defined symbols
15058 # if we add $predep_objects and $postdep_objects, however 7.1 and
15059 # earlier do not add the objects themselves.
15060 case `$CC -V 2>&1` in
15061 *"Version 7."*)
15062 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063 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'
15065 *) # Version 8.0 or newer
15066 tmp_idyn=
15067 case $host_cpu in
15068 ia64*) tmp_idyn=' -i_dynamic';;
15069 esac
15070 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15071 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'
15073 esac
15074 archive_cmds_need_lc_CXX=no
15075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15077 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15079 pgCC* | pgcpp*)
15080 # Portland Group C++ compiler
15081 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15082 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'
15084 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15085 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15086 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'
15088 cxx*)
15089 # Compaq C++
15090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091 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'
15093 runpath_var=LD_RUN_PATH
15094 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15095 hardcode_libdir_separator_CXX=:
15097 # Commands to make compiler produce verbose output that lists
15098 # what "hidden" libraries, object files and flags are used when
15099 # linking a shared library.
15101 # There doesn't appear to be a way to prevent this compiler from
15102 # explicitly linking system object files so we need to strip them
15103 # from the output so that they don't get included in the library
15104 # dependencies.
15105 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'
15108 case `$CC -V 2>&1 | sed 5q` in
15109 *Sun\ C*)
15110 # Sun C++ 5.9
15111 no_undefined_flag_CXX=' -zdefs'
15112 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15113 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15114 hardcode_libdir_flag_spec_CXX='-R$libdir'
15115 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15117 # Not sure whether something based on
15118 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15119 # would be better.
15120 output_verbose_link_cmd='echo'
15122 # Archives containing C++ object files must be created using
15123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15124 # necessary to make sure instantiated templates are included
15125 # in the archive.
15126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15128 esac
15130 esac
15132 lynxos*)
15133 # FIXME: insert proper C++ library support
15134 ld_shlibs_CXX=no
15136 m88k*)
15137 # FIXME: insert proper C++ library support
15138 ld_shlibs_CXX=no
15140 mvs*)
15141 case $cc_basename in
15142 cxx*)
15143 # FIXME: insert proper C++ library support
15144 ld_shlibs_CXX=no
15147 # FIXME: insert proper C++ library support
15148 ld_shlibs_CXX=no
15150 esac
15152 netbsd* | netbsdelf*-gnu)
15153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15154 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15155 wlarc=
15156 hardcode_libdir_flag_spec_CXX='-R$libdir'
15157 hardcode_direct_CXX=yes
15158 hardcode_shlibpath_var_CXX=no
15160 # Workaround some broken pre-1.5 toolchains
15161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15163 openbsd2*)
15164 # C++ shared libraries are fairly broken
15165 ld_shlibs_CXX=no
15167 openbsd*)
15168 if test -f /usr/libexec/ld.so; then
15169 hardcode_direct_CXX=yes
15170 hardcode_shlibpath_var_CXX=no
15171 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15174 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15175 export_dynamic_flag_spec_CXX='${wl}-E'
15176 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15178 output_verbose_link_cmd='echo'
15179 else
15180 ld_shlibs_CXX=no
15183 osf3*)
15184 case $cc_basename in
15185 KCC*)
15186 # Kuck and Associates, Inc. (KAI) C++ Compiler
15188 # KCC will only create a shared library if the output file
15189 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15190 # to its proper name (with version) after linking.
15191 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'
15193 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15194 hardcode_libdir_separator_CXX=:
15196 # Archives containing C++ object files must be created using
15197 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15198 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15201 RCC*)
15202 # Rational C++ 2.4.1
15203 # FIXME: insert proper C++ library support
15204 ld_shlibs_CXX=no
15206 cxx*)
15207 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15208 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'
15210 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15211 hardcode_libdir_separator_CXX=:
15213 # Commands to make compiler produce verbose output that lists
15214 # what "hidden" libraries, object files and flags are used when
15215 # linking a shared library.
15217 # There doesn't appear to be a way to prevent this compiler from
15218 # explicitly linking system object files so we need to strip them
15219 # from the output so that they don't get included in the library
15220 # dependencies.
15221 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'
15224 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15225 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15226 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'
15228 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15229 hardcode_libdir_separator_CXX=:
15231 # Commands to make compiler produce verbose output that lists
15232 # what "hidden" libraries, object files and flags are used when
15233 # linking a shared library.
15234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15236 else
15237 # FIXME: insert proper C++ library support
15238 ld_shlibs_CXX=no
15241 esac
15243 osf4* | osf5*)
15244 case $cc_basename in
15245 KCC*)
15246 # Kuck and Associates, Inc. (KAI) C++ Compiler
15248 # KCC will only create a shared library if the output file
15249 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15250 # to its proper name (with version) after linking.
15251 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'
15253 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15254 hardcode_libdir_separator_CXX=:
15256 # Archives containing C++ object files must be created using
15257 # the KAI C++ compiler.
15258 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15260 RCC*)
15261 # Rational C++ 2.4.1
15262 # FIXME: insert proper C++ library support
15263 ld_shlibs_CXX=no
15265 cxx*)
15266 allow_undefined_flag_CXX=' -expect_unresolved \*'
15267 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'
15268 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15269 echo "-hidden">> $lib.exp~
15270 $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~
15271 $rm $lib.exp'
15273 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15274 hardcode_libdir_separator_CXX=:
15276 # Commands to make compiler produce verbose output that lists
15277 # what "hidden" libraries, object files and flags are used when
15278 # linking a shared library.
15280 # There doesn't appear to be a way to prevent this compiler from
15281 # explicitly linking system object files so we need to strip them
15282 # from the output so that they don't get included in the library
15283 # dependencies.
15284 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'
15287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15288 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15289 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'
15291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15292 hardcode_libdir_separator_CXX=:
15294 # Commands to make compiler produce verbose output that lists
15295 # what "hidden" libraries, object files and flags are used when
15296 # linking a shared library.
15297 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15299 else
15300 # FIXME: insert proper C++ library support
15301 ld_shlibs_CXX=no
15304 esac
15306 psos*)
15307 # FIXME: insert proper C++ library support
15308 ld_shlibs_CXX=no
15310 sunos4*)
15311 case $cc_basename in
15312 CC*)
15313 # Sun C++ 4.x
15314 # FIXME: insert proper C++ library support
15315 ld_shlibs_CXX=no
15317 lcc*)
15318 # Lucid
15319 # FIXME: insert proper C++ library support
15320 ld_shlibs_CXX=no
15323 # FIXME: insert proper C++ library support
15324 ld_shlibs_CXX=no
15326 esac
15328 solaris*)
15329 case $cc_basename in
15330 CC*)
15331 # Sun C++ 4.2, 5.x and Centerline C++
15332 archive_cmds_need_lc_CXX=yes
15333 no_undefined_flag_CXX=' -zdefs'
15334 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15335 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15336 $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'
15338 hardcode_libdir_flag_spec_CXX='-R$libdir'
15339 hardcode_shlibpath_var_CXX=no
15340 case $host_os in
15341 solaris2.[0-5] | solaris2.[0-5].*) ;;
15343 # The compiler driver will combine and reorder linker options,
15344 # but understands `-z linker_flag'.
15345 # Supported since Solaris 2.6 (maybe 2.5.1?)
15346 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15348 esac
15349 link_all_deplibs_CXX=yes
15351 output_verbose_link_cmd='echo'
15353 # Archives containing C++ object files must be created using
15354 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15355 # necessary to make sure instantiated templates are included
15356 # in the archive.
15357 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15359 gcx*)
15360 # Green Hills C++ Compiler
15361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15363 # The C++ compiler must be used to create the archive.
15364 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15367 # GNU C++ compiler with Solaris linker
15368 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15369 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15370 if $CC --version | grep -v '^2\.7' > /dev/null; then
15371 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15372 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15373 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15375 # Commands to make compiler produce verbose output that lists
15376 # what "hidden" libraries, object files and flags are used when
15377 # linking a shared library.
15378 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15379 else
15380 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15381 # platform.
15382 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15383 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15384 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15386 # Commands to make compiler produce verbose output that lists
15387 # what "hidden" libraries, object files and flags are used when
15388 # linking a shared library.
15389 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15392 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15393 case $host_os in
15394 solaris2.[0-5] | solaris2.[0-5].*) ;;
15396 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15398 esac
15401 esac
15403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15404 no_undefined_flag_CXX='${wl}-z,text'
15405 archive_cmds_need_lc_CXX=no
15406 hardcode_shlibpath_var_CXX=no
15407 runpath_var='LD_RUN_PATH'
15409 case $cc_basename in
15410 CC*)
15411 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15415 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15416 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15418 esac
15420 sysv5* | sco3.2v5* | sco5v6*)
15421 # Note: We can NOT use -z defs as we might desire, because we do not
15422 # link with -lc, and that would cause any symbols used from libc to
15423 # always be unresolved, which means just about no library would
15424 # ever link correctly. If we're not using GNU ld we use -z text
15425 # though, which does catch some bad symbols but isn't as heavy-handed
15426 # as -z defs.
15427 # For security reasons, it is highly recommended that you always
15428 # use absolute paths for naming shared libraries, and exclude the
15429 # DT_RUNPATH tag from executables and libraries. But doing so
15430 # requires that you compile everything twice, which is a pain.
15431 # So that behaviour is only enabled if SCOABSPATH is set to a
15432 # non-empty value in the environment. Most likely only useful for
15433 # creating official distributions of packages.
15434 # This is a hack until libtool officially supports absolute path
15435 # names for shared libraries.
15436 no_undefined_flag_CXX='${wl}-z,text'
15437 allow_undefined_flag_CXX='${wl}-z,nodefs'
15438 archive_cmds_need_lc_CXX=no
15439 hardcode_shlibpath_var_CXX=no
15440 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15441 hardcode_libdir_separator_CXX=':'
15442 link_all_deplibs_CXX=yes
15443 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15444 runpath_var='LD_RUN_PATH'
15446 case $cc_basename in
15447 CC*)
15448 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15449 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15452 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15453 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 esac
15457 tandem*)
15458 case $cc_basename in
15459 NCC*)
15460 # NonStop-UX NCC 3.20
15461 # FIXME: insert proper C++ library support
15462 ld_shlibs_CXX=no
15465 # FIXME: insert proper C++ library support
15466 ld_shlibs_CXX=no
15468 esac
15470 vxworks*)
15471 # FIXME: insert proper C++ library support
15472 ld_shlibs_CXX=no
15475 # FIXME: insert proper C++ library support
15476 ld_shlibs_CXX=no
15478 esac
15479 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15480 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15481 test "$ld_shlibs_CXX" = no && can_build_shared=no
15483 GCC_CXX="$GXX"
15484 LD_CXX="$LD"
15486 cat > conftest.$ac_ext <<EOF
15487 class Foo
15489 public:
15490 Foo (void) { a = 0; }
15491 private:
15492 int a;
15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497 (eval $ac_compile) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; then
15501 # Parse the compiler output and extract the necessary
15502 # objects, libraries and library flags.
15504 # Sentinel used to keep track of whether or not we are before
15505 # the conftest object file.
15506 pre_test_object_deps_done=no
15508 # The `*' in the case matches for architectures that use `case' in
15509 # $output_verbose_cmd can trigger glob expansion during the loop
15510 # eval without this substitution.
15511 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15513 for p in `eval $output_verbose_link_cmd`; do
15514 case $p in
15516 -L* | -R* | -l*)
15517 # Some compilers place space between "-{L,R}" and the path.
15518 # Remove the space.
15519 if test $p = "-L" \
15520 || test $p = "-R"; then
15521 prev=$p
15522 continue
15523 else
15524 prev=
15527 if test "$pre_test_object_deps_done" = no; then
15528 case $p in
15529 -L* | -R*)
15530 # Internal compiler library paths should come after those
15531 # provided the user. The postdeps already come after the
15532 # user supplied libs so there is no need to process them.
15533 if test -z "$compiler_lib_search_path_CXX"; then
15534 compiler_lib_search_path_CXX="${prev}${p}"
15535 else
15536 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15539 # The "-l" case would never come before the object being
15540 # linked, so don't bother handling this case.
15541 esac
15542 else
15543 if test -z "$postdeps_CXX"; then
15544 postdeps_CXX="${prev}${p}"
15545 else
15546 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15551 *.$objext)
15552 # This assumes that the test object file only shows up
15553 # once in the compiler output.
15554 if test "$p" = "conftest.$objext"; then
15555 pre_test_object_deps_done=yes
15556 continue
15559 if test "$pre_test_object_deps_done" = no; then
15560 if test -z "$predep_objects_CXX"; then
15561 predep_objects_CXX="$p"
15562 else
15563 predep_objects_CXX="$predep_objects_CXX $p"
15565 else
15566 if test -z "$postdep_objects_CXX"; then
15567 postdep_objects_CXX="$p"
15568 else
15569 postdep_objects_CXX="$postdep_objects_CXX $p"
15574 *) ;; # Ignore the rest.
15576 esac
15577 done
15579 # Clean up.
15580 rm -f a.out a.exe
15581 else
15582 echo "libtool.m4: error: problem compiling CXX test program"
15585 $rm -f confest.$objext
15587 compiler_lib_search_dirs_CXX=
15588 if test -n "$compiler_lib_search_path_CXX"; then
15589 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15592 # PORTME: override above test on systems where it is broken
15593 case $host_os in
15594 interix[3-9]*)
15595 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15596 # hack all around it, let's just trust "g++" to DTRT.
15597 predep_objects_CXX=
15598 postdep_objects_CXX=
15599 postdeps_CXX=
15602 linux*)
15603 case `$CC -V 2>&1 | sed 5q` in
15604 *Sun\ C*)
15605 # Sun C++ 5.9
15607 # The more standards-conforming stlport4 library is
15608 # incompatible with the Cstd library. Avoid specifying
15609 # it if it's in CXXFLAGS. Ignore libCrun as
15610 # -library=stlport4 depends on it.
15611 case " $CXX $CXXFLAGS " in
15612 *" -library=stlport4 "*)
15613 solaris_use_stlport4=yes
15615 esac
15616 if test "$solaris_use_stlport4" != yes; then
15617 postdeps_CXX='-library=Cstd -library=Crun'
15620 esac
15623 solaris*)
15624 case $cc_basename in
15625 CC*)
15626 # The more standards-conforming stlport4 library is
15627 # incompatible with the Cstd library. Avoid specifying
15628 # it if it's in CXXFLAGS. Ignore libCrun as
15629 # -library=stlport4 depends on it.
15630 case " $CXX $CXXFLAGS " in
15631 *" -library=stlport4 "*)
15632 solaris_use_stlport4=yes
15634 esac
15636 # Adding this requires a known-good setup of shared libraries for
15637 # Sun compiler versions before 5.6, else PIC objects from an old
15638 # archive will be linked into the output, leading to subtle bugs.
15639 if test "$solaris_use_stlport4" != yes; then
15640 postdeps_CXX='-library=Cstd -library=Crun'
15643 esac
15645 esac
15647 case " $postdeps_CXX " in
15648 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15649 esac
15651 lt_prog_compiler_wl_CXX=
15652 lt_prog_compiler_pic_CXX=
15653 lt_prog_compiler_static_CXX=
15655 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15656 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15658 # C++ specific cases for pic, static, wl, etc.
15659 if test "$GXX" = yes; then
15660 lt_prog_compiler_wl_CXX='-Wl,'
15661 lt_prog_compiler_static_CXX='-static'
15663 case $host_os in
15664 aix*)
15665 # All AIX code is PIC.
15666 if test "$host_cpu" = ia64; then
15667 # AIX 5 now supports IA64 processor
15668 lt_prog_compiler_static_CXX='-Bstatic'
15671 amigaos*)
15672 # FIXME: we need at least 68020 code to build shared libraries, but
15673 # adding the `-m68020' flag to GCC prevents building anything better,
15674 # like `-m68040'.
15675 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15677 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15678 # PIC is the default for these OSes.
15680 mingw* | cygwin* | os2* | pw32*)
15681 # This hack is so that the source file can tell whether it is being
15682 # built for inclusion in a dll (and should export symbols for example).
15683 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15684 # (--disable-auto-import) libraries
15685 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15687 darwin* | rhapsody*)
15688 # PIC is the default on this platform
15689 # Common symbols not allowed in MH_DYLIB files
15690 lt_prog_compiler_pic_CXX='-fno-common'
15692 *djgpp*)
15693 # DJGPP does not support shared libraries at all
15694 lt_prog_compiler_pic_CXX=
15696 interix[3-9]*)
15697 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15698 # Instead, we relocate shared libraries at runtime.
15700 sysv4*MP*)
15701 if test -d /usr/nec; then
15702 lt_prog_compiler_pic_CXX=-Kconform_pic
15705 hpux*)
15706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15707 # not for PA HP-UX.
15708 case $host_cpu in
15709 hppa*64*|ia64*)
15712 lt_prog_compiler_pic_CXX='-fPIC'
15714 esac
15717 lt_prog_compiler_pic_CXX='-fPIC'
15719 esac
15720 else
15721 case $host_os in
15722 aix[4-9]*)
15723 # All AIX code is PIC.
15724 if test "$host_cpu" = ia64; then
15725 # AIX 5 now supports IA64 processor
15726 lt_prog_compiler_static_CXX='-Bstatic'
15727 else
15728 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15731 chorus*)
15732 case $cc_basename in
15733 cxch68*)
15734 # Green Hills C++ Compiler
15735 # _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"
15737 esac
15739 darwin*)
15740 # PIC is the default on this platform
15741 # Common symbols not allowed in MH_DYLIB files
15742 case $cc_basename in
15743 xlc*)
15744 lt_prog_compiler_pic_CXX='-qnocommon'
15745 lt_prog_compiler_wl_CXX='-Wl,'
15747 esac
15749 dgux*)
15750 case $cc_basename in
15751 ec++*)
15752 lt_prog_compiler_pic_CXX='-KPIC'
15754 ghcx*)
15755 # Green Hills C++ Compiler
15756 lt_prog_compiler_pic_CXX='-pic'
15760 esac
15762 freebsd* | dragonfly*)
15763 # FreeBSD uses GNU C++
15765 hpux9* | hpux10* | hpux11*)
15766 case $cc_basename in
15767 CC*)
15768 lt_prog_compiler_wl_CXX='-Wl,'
15769 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15770 if test "$host_cpu" != ia64; then
15771 lt_prog_compiler_pic_CXX='+Z'
15774 aCC*)
15775 lt_prog_compiler_wl_CXX='-Wl,'
15776 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15777 case $host_cpu in
15778 hppa*64*|ia64*)
15779 # +Z the default
15782 lt_prog_compiler_pic_CXX='+Z'
15784 esac
15788 esac
15790 interix*)
15791 # This is c89, which is MS Visual C++ (no shared libs)
15792 # Anyone wants to do a port?
15794 irix5* | irix6* | nonstopux*)
15795 case $cc_basename in
15796 CC*)
15797 lt_prog_compiler_wl_CXX='-Wl,'
15798 lt_prog_compiler_static_CXX='-non_shared'
15799 # CC pic flag -KPIC is the default.
15803 esac
15805 linux* | k*bsd*-gnu)
15806 case $cc_basename in
15807 KCC*)
15808 # KAI C++ Compiler
15809 lt_prog_compiler_wl_CXX='--backend -Wl,'
15810 lt_prog_compiler_pic_CXX='-fPIC'
15812 icpc* | ecpc*)
15813 # Intel C++
15814 lt_prog_compiler_wl_CXX='-Wl,'
15815 lt_prog_compiler_pic_CXX='-KPIC'
15816 lt_prog_compiler_static_CXX='-static'
15818 pgCC* | pgcpp*)
15819 # Portland Group C++ compiler.
15820 lt_prog_compiler_wl_CXX='-Wl,'
15821 lt_prog_compiler_pic_CXX='-fpic'
15822 lt_prog_compiler_static_CXX='-Bstatic'
15824 cxx*)
15825 # Compaq C++
15826 # Make sure the PIC flag is empty. It appears that all Alpha
15827 # Linux and Compaq Tru64 Unix objects are PIC.
15828 lt_prog_compiler_pic_CXX=
15829 lt_prog_compiler_static_CXX='-non_shared'
15832 case `$CC -V 2>&1 | sed 5q` in
15833 *Sun\ C*)
15834 # Sun C++ 5.9
15835 lt_prog_compiler_pic_CXX='-KPIC'
15836 lt_prog_compiler_static_CXX='-Bstatic'
15837 lt_prog_compiler_wl_CXX='-Qoption ld '
15839 esac
15841 esac
15843 lynxos*)
15845 m88k*)
15847 mvs*)
15848 case $cc_basename in
15849 cxx*)
15850 lt_prog_compiler_pic_CXX='-W c,exportall'
15854 esac
15856 netbsd* | netbsdelf*-gnu)
15858 osf3* | osf4* | osf5*)
15859 case $cc_basename in
15860 KCC*)
15861 lt_prog_compiler_wl_CXX='--backend -Wl,'
15863 RCC*)
15864 # Rational C++ 2.4.1
15865 lt_prog_compiler_pic_CXX='-pic'
15867 cxx*)
15868 # Digital/Compaq C++
15869 lt_prog_compiler_wl_CXX='-Wl,'
15870 # Make sure the PIC flag is empty. It appears that all Alpha
15871 # Linux and Compaq Tru64 Unix objects are PIC.
15872 lt_prog_compiler_pic_CXX=
15873 lt_prog_compiler_static_CXX='-non_shared'
15877 esac
15879 psos*)
15881 solaris*)
15882 case $cc_basename in
15883 CC*)
15884 # Sun C++ 4.2, 5.x and Centerline C++
15885 lt_prog_compiler_pic_CXX='-KPIC'
15886 lt_prog_compiler_static_CXX='-Bstatic'
15887 lt_prog_compiler_wl_CXX='-Qoption ld '
15889 gcx*)
15890 # Green Hills C++ Compiler
15891 lt_prog_compiler_pic_CXX='-PIC'
15895 esac
15897 sunos4*)
15898 case $cc_basename in
15899 CC*)
15900 # Sun C++ 4.x
15901 lt_prog_compiler_pic_CXX='-pic'
15902 lt_prog_compiler_static_CXX='-Bstatic'
15904 lcc*)
15905 # Lucid
15906 lt_prog_compiler_pic_CXX='-pic'
15910 esac
15912 tandem*)
15913 case $cc_basename in
15914 NCC*)
15915 # NonStop-UX NCC 3.20
15916 lt_prog_compiler_pic_CXX='-KPIC'
15920 esac
15922 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15923 case $cc_basename in
15924 CC*)
15925 lt_prog_compiler_wl_CXX='-Wl,'
15926 lt_prog_compiler_pic_CXX='-KPIC'
15927 lt_prog_compiler_static_CXX='-Bstatic'
15929 esac
15931 vxworks*)
15934 lt_prog_compiler_can_build_shared_CXX=no
15936 esac
15939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15940 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15943 # Check to make sure the PIC flag actually works.
15945 if test -n "$lt_prog_compiler_pic_CXX"; then
15947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15949 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 lt_cv_prog_compiler_pic_works_CXX=no
15953 ac_outfile=conftest.$ac_objext
15954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15955 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15956 # Insert the option either (1) after the last *FLAGS variable, or
15957 # (2) before a word containing "conftest.", or (3) at the end.
15958 # Note that $ac_compile itself does not contain backslashes and begins
15959 # with a dollar sign (not a hyphen), so the echo should work correctly.
15960 # The option is referenced via a variable to avoid confusing sed.
15961 lt_compile=`echo "$ac_compile" | $SED \
15962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15964 -e 's:$: $lt_compiler_flag:'`
15965 (eval echo "\"\$as_me:15965: $lt_compile\"" >&5)
15966 (eval "$lt_compile" 2>conftest.err)
15967 ac_status=$?
15968 cat conftest.err >&5
15969 echo "$as_me:15969: \$? = $ac_status" >&5
15970 if (exit $ac_status) && test -s "$ac_outfile"; then
15971 # The compiler can only warn and ignore the option if not recognized
15972 # So say no if there are warnings other than the usual output.
15973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15976 lt_cv_prog_compiler_pic_works_CXX=yes
15979 $rm conftest*
15982 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15983 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15985 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15986 case $lt_prog_compiler_pic_CXX in
15987 "" | " "*) ;;
15988 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15989 esac
15990 else
15991 lt_prog_compiler_pic_CXX=
15992 lt_prog_compiler_can_build_shared_CXX=no
15996 case $host_os in
15997 # For platforms which do not support PIC, -DPIC is meaningless:
15998 *djgpp*)
15999 lt_prog_compiler_pic_CXX=
16002 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16004 esac
16007 # Check to make sure the static flag actually works.
16009 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16012 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015 lt_cv_prog_compiler_static_works_CXX=no
16016 save_LDFLAGS="$LDFLAGS"
16017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16018 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16020 # The linker can only warn and ignore the option if not recognized
16021 # So say no if there are warnings
16022 if test -s conftest.err; then
16023 # Append any errors to the config.log.
16024 cat conftest.err 1>&5
16025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16027 if diff conftest.exp conftest.er2 >/dev/null; then
16028 lt_cv_prog_compiler_static_works_CXX=yes
16030 else
16031 lt_cv_prog_compiler_static_works_CXX=yes
16034 $rm -r conftest*
16035 LDFLAGS="$save_LDFLAGS"
16038 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16039 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
16041 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16043 else
16044 lt_prog_compiler_static_CXX=
16048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16050 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053 lt_cv_prog_compiler_c_o_CXX=no
16054 $rm -r conftest 2>/dev/null
16055 mkdir conftest
16056 cd conftest
16057 mkdir out
16058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16060 lt_compiler_flag="-o out/conftest2.$ac_objext"
16061 # Insert the option either (1) after the last *FLAGS variable, or
16062 # (2) before a word containing "conftest.", or (3) at the end.
16063 # Note that $ac_compile itself does not contain backslashes and begins
16064 # with a dollar sign (not a hyphen), so the echo should work correctly.
16065 lt_compile=`echo "$ac_compile" | $SED \
16066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16068 -e 's:$: $lt_compiler_flag:'`
16069 (eval echo "\"\$as_me:16069: $lt_compile\"" >&5)
16070 (eval "$lt_compile" 2>out/conftest.err)
16071 ac_status=$?
16072 cat out/conftest.err >&5
16073 echo "$as_me:16073: \$? = $ac_status" >&5
16074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16075 then
16076 # The compiler can only warn and ignore the option if not recognized
16077 # So say no if there are warnings
16078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16081 lt_cv_prog_compiler_c_o_CXX=yes
16084 chmod u+w . 2>&5
16085 $rm conftest*
16086 # SGI C++ compiler will create directory out/ii_files/ for
16087 # template instantiation
16088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16089 $rm out/* && rmdir out
16090 cd ..
16091 rmdir conftest
16092 $rm conftest*
16095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
16099 hard_links="nottested"
16100 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16101 # do not overwrite the value of need_locks provided by the user
16102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16104 hard_links=yes
16105 $rm conftest*
16106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16107 touch conftest.a
16108 ln conftest.a conftest.b 2>&5 || hard_links=no
16109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16110 { echo "$as_me:$LINENO: result: $hard_links" >&5
16111 echo "${ECHO_T}$hard_links" >&6; }
16112 if test "$hard_links" = no; then
16113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16115 need_locks=warn
16117 else
16118 need_locks=no
16121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16125 case $host_os in
16126 aix[4-9]*)
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16130 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'
16131 else
16132 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'
16135 pw32*)
16136 export_symbols_cmds_CXX="$ltdll_cmds"
16138 cygwin* | mingw*)
16139 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'
16141 linux* | k*bsd*-gnu)
16142 link_all_deplibs_CXX=no
16145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16147 esac
16148 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16150 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16151 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
16152 test "$ld_shlibs_CXX" = no && can_build_shared=no
16155 # Do we need to explicitly link libc?
16157 case "x$archive_cmds_need_lc_CXX" in
16158 x|xyes)
16159 # Assume -lc should be added
16160 archive_cmds_need_lc_CXX=yes
16162 if test "$enable_shared" = yes && test "$GCC" = yes; then
16163 case $archive_cmds_CXX in
16164 *'~'*)
16165 # FIXME: we may have to deal with multi-command sequences.
16167 '$CC '*)
16168 # Test whether the compiler implicitly links with -lc since on some
16169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16170 # to ld, don't add -lc before -lgcc.
16171 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16172 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16173 $rm conftest*
16174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } 2>conftest.err; then
16181 soname=conftest
16182 lib=conftest
16183 libobjs=conftest.$ac_objext
16184 deplibs=
16185 wl=$lt_prog_compiler_wl_CXX
16186 pic_flag=$lt_prog_compiler_pic_CXX
16187 compiler_flags=-v
16188 linker_flags=-v
16189 verstring=
16190 output_objdir=.
16191 libname=conftest
16192 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16193 allow_undefined_flag_CXX=
16194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16195 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }
16199 then
16200 archive_cmds_need_lc_CXX=no
16201 else
16202 archive_cmds_need_lc_CXX=yes
16204 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16205 else
16206 cat conftest.err 1>&5
16208 $rm conftest*
16209 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16210 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
16212 esac
16215 esac
16217 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16219 library_names_spec=
16220 libname_spec='lib$name'
16221 soname_spec=
16222 shrext_cmds=".so"
16223 postinstall_cmds=
16224 postuninstall_cmds=
16225 finish_cmds=
16226 finish_eval=
16227 shlibpath_var=
16228 shlibpath_overrides_runpath=unknown
16229 version_type=none
16230 dynamic_linker="$host_os ld.so"
16231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16233 need_lib_prefix=unknown
16234 hardcode_into_libs=no
16236 # when you set need_version to no, make sure it does not cause -set_version
16237 # flags to be left without arguments
16238 need_version=unknown
16240 case $host_os in
16241 aix3*)
16242 version_type=linux
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16244 shlibpath_var=LIBPATH
16246 # AIX 3 has no versioning support, so we append a major version to the name.
16247 soname_spec='${libname}${release}${shared_ext}$major'
16250 aix[4-9]*)
16251 version_type=linux
16252 need_lib_prefix=no
16253 need_version=no
16254 hardcode_into_libs=yes
16255 if test "$host_cpu" = ia64; then
16256 # AIX 5 supports IA64
16257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 else
16260 # With GCC up to 2.95.x, collect2 would create an import file
16261 # for dependence libraries. The import file would start with
16262 # the line `#! .'. This would cause the generated library to
16263 # depend on `.', always an invalid library. This was fixed in
16264 # development snapshots of GCC prior to 3.0.
16265 case $host_os in
16266 aix4 | aix4.[01] | aix4.[01].*)
16267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16268 echo ' yes '
16269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16271 else
16272 can_build_shared=no
16275 esac
16276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16277 # soname into executable. Probably we can add versioning support to
16278 # collect2, so additional links can be useful in future.
16279 if test "$aix_use_runtimelinking" = yes; then
16280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16281 # instead of lib<name>.a to let people know that these are not
16282 # typical AIX shared libraries.
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 else
16285 # We preserve .a as extension for shared libraries through AIX4.2
16286 # and later when we are not doing run time linking.
16287 library_names_spec='${libname}${release}.a $libname.a'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LIBPATH
16294 amigaos*)
16295 library_names_spec='$libname.ixlibrary $libname.a'
16296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16297 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'
16300 beos*)
16301 library_names_spec='${libname}${shared_ext}'
16302 dynamic_linker="$host_os ld.so"
16303 shlibpath_var=LIBRARY_PATH
16306 bsdi[45]*)
16307 version_type=linux
16308 need_version=no
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315 # the default ld.so.conf also contains /usr/contrib/lib and
16316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317 # libtool to hard-code these into programs
16320 cygwin* | mingw* | pw32*)
16321 version_type=windows
16322 shrext_cmds=".dll"
16323 need_version=no
16324 need_lib_prefix=no
16326 case $GCC,$host_os in
16327 yes,cygwin* | yes,mingw* | yes,pw32*)
16328 library_names_spec='$libname.dll.a'
16329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16330 postinstall_cmds='base_file=`basename \${file}`~
16331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16332 dldir=$destdir/`dirname \$dlpath`~
16333 test -d \$dldir || mkdir -p \$dldir~
16334 $install_prog $dir/$dlname \$dldir/$dlname~
16335 chmod a+x \$dldir/$dlname'
16336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337 dlpath=$dir/\$dldll~
16338 $rm \$dlpath'
16339 shlibpath_overrides_runpath=yes
16341 case $host_os in
16342 cygwin*)
16343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16347 mingw*)
16348 # MinGW DLLs use traditional 'lib' prefix
16349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352 # It is most probably a Windows format PATH printed by
16353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354 # path with ; separators, and with drive letters. We can handle the
16355 # drive letters (cygwin fileutils understands them), so leave them,
16356 # especially as we might pass files found there to a mingw objdump,
16357 # which wouldn't understand a cygwinified path. Ahh.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363 pw32*)
16364 # pw32 DLLs use 'pw' prefix rather than 'lib'
16365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16367 esac
16371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16373 esac
16374 dynamic_linker='Win32 ld.exe'
16375 # FIXME: first we should search . and the directory the executable is in
16376 shlibpath_var=PATH
16379 darwin* | rhapsody*)
16380 dynamic_linker="$host_os dyld"
16381 version_type=darwin
16382 need_lib_prefix=no
16383 need_version=no
16384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385 soname_spec='${libname}${release}${major}$shared_ext'
16386 shlibpath_overrides_runpath=yes
16387 shlibpath_var=DYLD_LIBRARY_PATH
16388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16393 dgux*)
16394 version_type=linux
16395 need_lib_prefix=no
16396 need_version=no
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 shlibpath_var=LD_LIBRARY_PATH
16402 freebsd1*)
16403 dynamic_linker=no
16406 freebsd* | dragonfly*)
16407 # DragonFly does not have aout. When/if they implement a new
16408 # versioning mechanism, adjust this.
16409 if test -x /usr/bin/objformat; then
16410 objformat=`/usr/bin/objformat`
16411 else
16412 case $host_os in
16413 freebsd[123]*) objformat=aout ;;
16414 *) objformat=elf ;;
16415 esac
16417 version_type=freebsd-$objformat
16418 case $version_type in
16419 freebsd-elf*)
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16421 need_version=no
16422 need_lib_prefix=no
16424 freebsd-*)
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16426 need_version=yes
16428 esac
16429 shlibpath_var=LD_LIBRARY_PATH
16430 case $host_os in
16431 freebsd2*)
16432 shlibpath_overrides_runpath=yes
16434 freebsd3.[01]* | freebsdelf3.[01]*)
16435 shlibpath_overrides_runpath=yes
16436 hardcode_into_libs=yes
16438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16440 shlibpath_overrides_runpath=no
16441 hardcode_into_libs=yes
16443 *) # from 4.6 on, and DragonFly
16444 shlibpath_overrides_runpath=yes
16445 hardcode_into_libs=yes
16447 esac
16450 gnu*)
16451 version_type=linux
16452 need_lib_prefix=no
16453 need_version=no
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 hardcode_into_libs=yes
16460 hpux9* | hpux10* | hpux11*)
16461 # Give a soname corresponding to the major version so that dld.sl refuses to
16462 # link against other versions.
16463 version_type=sunos
16464 need_lib_prefix=no
16465 need_version=no
16466 case $host_cpu in
16467 ia64*)
16468 shrext_cmds='.so'
16469 hardcode_into_libs=yes
16470 dynamic_linker="$host_os dld.so"
16471 shlibpath_var=LD_LIBRARY_PATH
16472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 if test "X$HPUX_IA64_MODE" = X32; then
16476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16477 else
16478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16482 hppa*64*)
16483 shrext_cmds='.sl'
16484 hardcode_into_libs=yes
16485 dynamic_linker="$host_os dld.sl"
16486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16494 shrext_cmds='.sl'
16495 dynamic_linker="$host_os dld.sl"
16496 shlibpath_var=SHLIB_PATH
16497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16501 esac
16502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16503 postinstall_cmds='chmod 555 $lib'
16506 interix[3-9]*)
16507 version_type=linux
16508 need_lib_prefix=no
16509 need_version=no
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16511 soname_spec='${libname}${release}${shared_ext}$major'
16512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=no
16515 hardcode_into_libs=yes
16518 irix5* | irix6* | nonstopux*)
16519 case $host_os in
16520 nonstopux*) version_type=nonstopux ;;
16522 if test "$lt_cv_prog_gnu_ld" = yes; then
16523 version_type=linux
16524 else
16525 version_type=irix
16526 fi ;;
16527 esac
16528 need_lib_prefix=no
16529 need_version=no
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16532 case $host_os in
16533 irix5* | nonstopux*)
16534 libsuff= shlibsuff=
16537 case $LD in # libtool.m4 will add one of these switches to LD
16538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16539 libsuff= shlibsuff= libmagic=32-bit;;
16540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16541 libsuff=32 shlibsuff=N32 libmagic=N32;;
16542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16544 *) libsuff= shlibsuff= libmagic=never-match;;
16545 esac
16547 esac
16548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16549 shlibpath_overrides_runpath=no
16550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16552 hardcode_into_libs=yes
16555 # No shared lib support for Linux oldld, aout, or coff.
16556 linux*oldld* | linux*aout* | linux*coff*)
16557 dynamic_linker=no
16560 # This must be Linux ELF.
16561 linux* | k*bsd*-gnu)
16562 version_type=linux
16563 need_lib_prefix=no
16564 need_version=no
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16568 shlibpath_var=LD_LIBRARY_PATH
16569 shlibpath_overrides_runpath=no
16570 # This implies no fast_install, which is unacceptable.
16571 # Some rework will be needed to allow for fast_install
16572 # before this can be enabled.
16573 hardcode_into_libs=yes
16575 # Append ld.so.conf contents to the search path
16576 if test -f /etc/ld.so.conf; then
16577 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16581 # We used to test for /lib/ld.so.1 and disable shared libraries on
16582 # powerpc, because MkLinux only supported shared libraries with the
16583 # GNU dynamic linker. Since this was broken with cross compilers,
16584 # most powerpc-linux boxes support dynamic linking these days and
16585 # people can always --disable-shared, the test was removed, and we
16586 # assume the GNU/Linux dynamic linker is in use.
16587 dynamic_linker='GNU/Linux ld.so'
16590 netbsdelf*-gnu)
16591 version_type=linux
16592 need_lib_prefix=no
16593 need_version=no
16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 shlibpath_var=LD_LIBRARY_PATH
16597 shlibpath_overrides_runpath=no
16598 hardcode_into_libs=yes
16599 dynamic_linker='NetBSD ld.elf_so'
16602 netbsd*)
16603 version_type=sunos
16604 need_lib_prefix=no
16605 need_version=no
16606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16609 dynamic_linker='NetBSD (a.out) ld.so'
16610 else
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 dynamic_linker='NetBSD ld.elf_so'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=yes
16617 hardcode_into_libs=yes
16620 newsos6)
16621 version_type=linux
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 shlibpath_overrides_runpath=yes
16627 nto-qnx*)
16628 version_type=linux
16629 need_lib_prefix=no
16630 need_version=no
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 shlibpath_var=LD_LIBRARY_PATH
16634 shlibpath_overrides_runpath=yes
16637 openbsd*)
16638 version_type=sunos
16639 sys_lib_dlsearch_path_spec="/usr/lib"
16640 need_lib_prefix=no
16641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16642 case $host_os in
16643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16644 *) need_version=no ;;
16645 esac
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16650 case $host_os in
16651 openbsd2.[89] | openbsd2.[89].*)
16652 shlibpath_overrides_runpath=no
16655 shlibpath_overrides_runpath=yes
16657 esac
16658 else
16659 shlibpath_overrides_runpath=yes
16663 os2*)
16664 libname_spec='$name'
16665 shrext_cmds=".dll"
16666 need_lib_prefix=no
16667 library_names_spec='$libname${shared_ext} $libname.a'
16668 dynamic_linker='OS/2 ld.exe'
16669 shlibpath_var=LIBPATH
16672 osf3* | osf4* | osf5*)
16673 version_type=osf
16674 need_lib_prefix=no
16675 need_version=no
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16683 rdos*)
16684 dynamic_linker=no
16687 solaris*)
16688 version_type=linux
16689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=yes
16695 hardcode_into_libs=yes
16696 # ldd complains unless libraries are executable
16697 postinstall_cmds='chmod +x $lib'
16700 sunos4*)
16701 version_type=sunos
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=yes
16706 if test "$with_gnu_ld" = yes; then
16707 need_lib_prefix=no
16709 need_version=yes
16712 sysv4 | sysv4.3*)
16713 version_type=linux
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 case $host_vendor in
16718 sni)
16719 shlibpath_overrides_runpath=no
16720 need_lib_prefix=no
16721 export_dynamic_flag_spec='${wl}-Blargedynsym'
16722 runpath_var=LD_RUN_PATH
16724 siemens)
16725 need_lib_prefix=no
16727 motorola)
16728 need_lib_prefix=no
16729 need_version=no
16730 shlibpath_overrides_runpath=no
16731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16733 esac
16736 sysv4*MP*)
16737 if test -d /usr/nec ;then
16738 version_type=linux
16739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16740 soname_spec='$libname${shared_ext}.$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16746 version_type=freebsd-elf
16747 need_lib_prefix=no
16748 need_version=no
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16750 soname_spec='${libname}${release}${shared_ext}$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 hardcode_into_libs=yes
16753 if test "$with_gnu_ld" = yes; then
16754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16755 shlibpath_overrides_runpath=no
16756 else
16757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16758 shlibpath_overrides_runpath=yes
16759 case $host_os in
16760 sco3.2v5*)
16761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16763 esac
16765 sys_lib_dlsearch_path_spec='/usr/lib'
16768 uts4*)
16769 version_type=linux
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16776 dynamic_linker=no
16778 esac
16779 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16780 echo "${ECHO_T}$dynamic_linker" >&6; }
16781 test "$dynamic_linker" = no && can_build_shared=no
16783 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16789 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16790 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16796 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16799 if test "$GCC" = yes; then
16800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16803 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16805 hardcode_action_CXX=
16806 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16807 test -n "$runpath_var_CXX" || \
16808 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16810 # We can hardcode non-existant directories.
16811 if test "$hardcode_direct_CXX" != no &&
16812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16813 # have to relink, otherwise we might link with an installed library
16814 # when we should be linking with a yet-to-be-installed one
16815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16816 test "$hardcode_minus_L_CXX" != no; then
16817 # Linking always hardcodes the temporary library directory.
16818 hardcode_action_CXX=relink
16819 else
16820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16821 hardcode_action_CXX=immediate
16823 else
16824 # We cannot hardcode anything, or else we can only hardcode existing
16825 # directories.
16826 hardcode_action_CXX=unsupported
16828 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16829 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16831 if test "$hardcode_action_CXX" = relink; then
16832 # Fast installation is not supported
16833 enable_fast_install=no
16834 elif test "$shlibpath_overrides_runpath" = yes ||
16835 test "$enable_shared" = no; then
16836 # Fast installation is not necessary
16837 enable_fast_install=needless
16841 # The else clause should only fire when bootstrapping the
16842 # libtool distribution, otherwise you forgot to ship ltmain.sh
16843 # with your package, and you will get complaints that there are
16844 # no rules to generate ltmain.sh.
16845 if test -f "$ltmain"; then
16846 # See if we are running on zsh, and set the options which allow our commands through
16847 # without removal of \ escapes.
16848 if test -n "${ZSH_VERSION+set}" ; then
16849 setopt NO_GLOB_SUBST
16851 # Now quote all the things that may contain metacharacters while being
16852 # careful not to overquote the AC_SUBSTed values. We take copies of the
16853 # variables and quote the copies for generation of the libtool script.
16854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16855 SED SHELL STRIP \
16856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16858 deplibs_check_method reload_flag reload_cmds need_locks \
16859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16860 lt_cv_sys_global_symbol_to_c_name_address \
16861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16862 old_postinstall_cmds old_postuninstall_cmds \
16863 compiler_CXX \
16864 CC_CXX \
16865 LD_CXX \
16866 lt_prog_compiler_wl_CXX \
16867 lt_prog_compiler_pic_CXX \
16868 lt_prog_compiler_static_CXX \
16869 lt_prog_compiler_no_builtin_flag_CXX \
16870 export_dynamic_flag_spec_CXX \
16871 thread_safe_flag_spec_CXX \
16872 whole_archive_flag_spec_CXX \
16873 enable_shared_with_static_runtimes_CXX \
16874 old_archive_cmds_CXX \
16875 old_archive_from_new_cmds_CXX \
16876 predep_objects_CXX \
16877 postdep_objects_CXX \
16878 predeps_CXX \
16879 postdeps_CXX \
16880 compiler_lib_search_path_CXX \
16881 compiler_lib_search_dirs_CXX \
16882 archive_cmds_CXX \
16883 archive_expsym_cmds_CXX \
16884 postinstall_cmds_CXX \
16885 postuninstall_cmds_CXX \
16886 old_archive_from_expsyms_cmds_CXX \
16887 allow_undefined_flag_CXX \
16888 no_undefined_flag_CXX \
16889 export_symbols_cmds_CXX \
16890 hardcode_libdir_flag_spec_CXX \
16891 hardcode_libdir_flag_spec_ld_CXX \
16892 hardcode_libdir_separator_CXX \
16893 hardcode_automatic_CXX \
16894 module_cmds_CXX \
16895 module_expsym_cmds_CXX \
16896 lt_cv_prog_compiler_c_o_CXX \
16897 fix_srcfile_path_CXX \
16898 exclude_expsyms_CXX \
16899 include_expsyms_CXX; do
16901 case $var in
16902 old_archive_cmds_CXX | \
16903 old_archive_from_new_cmds_CXX | \
16904 archive_cmds_CXX | \
16905 archive_expsym_cmds_CXX | \
16906 module_cmds_CXX | \
16907 module_expsym_cmds_CXX | \
16908 old_archive_from_expsyms_cmds_CXX | \
16909 export_symbols_cmds_CXX | \
16910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16911 postinstall_cmds | postuninstall_cmds | \
16912 old_postinstall_cmds | old_postuninstall_cmds | \
16913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16914 # Double-quote double-evaled strings.
16915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16920 esac
16921 done
16923 case $lt_echo in
16924 *'\$0 --fallback-echo"')
16925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16927 esac
16929 cfgfile="$ofile"
16931 cat <<__EOF__ >> "$cfgfile"
16932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16936 # Shell to use when invoking shell scripts.
16937 SHELL=$lt_SHELL
16939 # Whether or not to build shared libraries.
16940 build_libtool_libs=$enable_shared
16942 # Whether or not to build static libraries.
16943 build_old_libs=$enable_static
16945 # Whether or not to add -lc for building shared libraries.
16946 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16948 # Whether or not to disallow shared libs when runtime libs are static
16949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16951 # Whether or not to optimize for fast installation.
16952 fast_install=$enable_fast_install
16954 # The host system.
16955 host_alias=$host_alias
16956 host=$host
16957 host_os=$host_os
16959 # The build system.
16960 build_alias=$build_alias
16961 build=$build
16962 build_os=$build_os
16964 # An echo program that does not interpret backslashes.
16965 echo=$lt_echo
16967 # The archiver.
16968 AR=$lt_AR
16969 AR_FLAGS=$lt_AR_FLAGS
16971 # A C compiler.
16972 LTCC=$lt_LTCC
16974 # LTCC compiler flags.
16975 LTCFLAGS=$lt_LTCFLAGS
16977 # A language-specific compiler.
16978 CC=$lt_compiler_CXX
16980 # Is the compiler the GNU C compiler?
16981 with_gcc=$GCC_CXX
16983 # An ERE matcher.
16984 EGREP=$lt_EGREP
16986 # The linker used to build libraries.
16987 LD=$lt_LD_CXX
16989 # Whether we need hard or soft links.
16990 LN_S=$lt_LN_S
16992 # A BSD-compatible nm program.
16993 NM=$lt_NM
16995 # A symbol stripping program
16996 STRIP=$lt_STRIP
16998 # Used to examine libraries when file_magic_cmd begins "file"
16999 MAGIC_CMD=$MAGIC_CMD
17001 # Used on cygwin: DLL creation program.
17002 DLLTOOL="$DLLTOOL"
17004 # Used on cygwin: object dumper.
17005 OBJDUMP="$OBJDUMP"
17007 # Used on cygwin: assembler.
17008 AS="$AS"
17010 # The name of the directory that contains temporary libtool files.
17011 objdir=$objdir
17013 # How to create reloadable object files.
17014 reload_flag=$lt_reload_flag
17015 reload_cmds=$lt_reload_cmds
17017 # How to pass a linker flag through the compiler.
17018 wl=$lt_lt_prog_compiler_wl_CXX
17020 # Object file suffix (normally "o").
17021 objext="$ac_objext"
17023 # Old archive suffix (normally "a").
17024 libext="$libext"
17026 # Shared library suffix (normally ".so").
17027 shrext_cmds='$shrext_cmds'
17029 # Executable file suffix (normally "").
17030 exeext="$exeext"
17032 # Additional compiler flags for building library objects.
17033 pic_flag=$lt_lt_prog_compiler_pic_CXX
17034 pic_mode=$pic_mode
17036 # What is the maximum length of a command?
17037 max_cmd_len=$lt_cv_sys_max_cmd_len
17039 # Does compiler simultaneously support -c and -o options?
17040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17042 # Must we lock files when doing compilation?
17043 need_locks=$lt_need_locks
17045 # Do we need the lib prefix for modules?
17046 need_lib_prefix=$need_lib_prefix
17048 # Do we need a version for libraries?
17049 need_version=$need_version
17051 # Whether dlopen is supported.
17052 dlopen_support=$enable_dlopen
17054 # Whether dlopen of programs is supported.
17055 dlopen_self=$enable_dlopen_self
17057 # Whether dlopen of statically linked programs is supported.
17058 dlopen_self_static=$enable_dlopen_self_static
17060 # Compiler flag to prevent dynamic linking.
17061 link_static_flag=$lt_lt_prog_compiler_static_CXX
17063 # Compiler flag to turn off builtin functions.
17064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17066 # Compiler flag to allow reflexive dlopens.
17067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17069 # Compiler flag to generate shared objects directly from archives.
17070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17072 # Compiler flag to generate thread-safe objects.
17073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17075 # Library versioning type.
17076 version_type=$version_type
17078 # Format of library name prefix.
17079 libname_spec=$lt_libname_spec
17081 # List of archive names. First name is the real one, the rest are links.
17082 # The last name is the one that the linker finds with -lNAME.
17083 library_names_spec=$lt_library_names_spec
17085 # The coded name of the library, if different from the real name.
17086 soname_spec=$lt_soname_spec
17088 # Commands used to build and install an old-style archive.
17089 RANLIB=$lt_RANLIB
17090 old_archive_cmds=$lt_old_archive_cmds_CXX
17091 old_postinstall_cmds=$lt_old_postinstall_cmds
17092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17094 # Create an old-style archive from a shared archive.
17095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17097 # Create a temporary old-style archive to link instead of a shared archive.
17098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17100 # Commands used to build and install a shared archive.
17101 archive_cmds=$lt_archive_cmds_CXX
17102 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17103 postinstall_cmds=$lt_postinstall_cmds
17104 postuninstall_cmds=$lt_postuninstall_cmds
17106 # Commands used to build a loadable module (assumed same as above if empty)
17107 module_cmds=$lt_module_cmds_CXX
17108 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17110 # Commands to strip libraries.
17111 old_striplib=$lt_old_striplib
17112 striplib=$lt_striplib
17114 # Dependencies to place before the objects being linked to create a
17115 # shared library.
17116 predep_objects=$lt_predep_objects_CXX
17118 # Dependencies to place after the objects being linked to create a
17119 # shared library.
17120 postdep_objects=$lt_postdep_objects_CXX
17122 # Dependencies to place before the objects being linked to create a
17123 # shared library.
17124 predeps=$lt_predeps_CXX
17126 # Dependencies to place after the objects being linked to create a
17127 # shared library.
17128 postdeps=$lt_postdeps_CXX
17130 # The directories searched by this compiler when creating a shared
17131 # library
17132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17134 # The library search path used internally by the compiler when linking
17135 # a shared library.
17136 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17138 # Method to check whether dependent libraries are shared objects.
17139 deplibs_check_method=$lt_deplibs_check_method
17141 # Command to use when deplibs_check_method == file_magic.
17142 file_magic_cmd=$lt_file_magic_cmd
17144 # Flag that allows shared libraries with undefined symbols to be built.
17145 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17147 # Flag that forces no undefined symbols.
17148 no_undefined_flag=$lt_no_undefined_flag_CXX
17150 # Commands used to finish a libtool library installation in a directory.
17151 finish_cmds=$lt_finish_cmds
17153 # Same as above, but a single script fragment to be evaled but not shown.
17154 finish_eval=$lt_finish_eval
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17159 # Transform the output of nm in a proper C declaration
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17162 # Transform the output of nm in a C name address pair
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17165 # This is the shared library runtime path variable.
17166 runpath_var=$runpath_var
17168 # This is the shared library path variable.
17169 shlibpath_var=$shlibpath_var
17171 # Is shlibpath searched before the hard-coded library search path?
17172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action_CXX
17177 # Whether we should hardcode library paths into libraries.
17178 hardcode_into_libs=$hardcode_into_libs
17180 # Flag to hardcode \$libdir into a binary during linking.
17181 # This must work even if \$libdir does not exist.
17182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17184 # If ld is used when linking, flag to hardcode \$libdir into
17185 # a binary during linking. This must work even if \$libdir does
17186 # not exist.
17187 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17189 # Whether we need a single -rpath flag with a separated argument.
17190 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17192 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_direct=$hardcode_direct_CXX
17196 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17197 # resulting binary.
17198 hardcode_minus_L=$hardcode_minus_L_CXX
17200 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17201 # the resulting binary.
17202 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17204 # Set to yes if building a shared library automatically hardcodes DIR into the library
17205 # and all subsequent libraries and executables linked against it.
17206 hardcode_automatic=$hardcode_automatic_CXX
17208 # Variables whose values should be saved in libtool wrapper scripts and
17209 # restored at relink time.
17210 variables_saved_for_relink="$variables_saved_for_relink"
17212 # Whether libtool must link a program against all its dependency libraries.
17213 link_all_deplibs=$link_all_deplibs_CXX
17215 # Compile-time system search path for libraries
17216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17218 # Run-time system search path for libraries
17219 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17221 # Fix the shell variable \$srcfile for the compiler.
17222 fix_srcfile_path=$lt_fix_srcfile_path
17224 # Set to yes if exported symbols are required.
17225 always_export_symbols=$always_export_symbols_CXX
17227 # The commands to list exported symbols.
17228 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17230 # The commands to extract the exported symbol list from a shared archive.
17231 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17233 # Symbols that should not be listed in the preloaded symbols.
17234 exclude_expsyms=$lt_exclude_expsyms_CXX
17236 # Symbols that must always be exported.
17237 include_expsyms=$lt_include_expsyms_CXX
17239 # ### END LIBTOOL TAG CONFIG: $tagname
17241 __EOF__
17244 else
17245 # If there is no Makefile yet, we rely on a make rule to execute
17246 # `config.status --recheck' to rerun these tests and create the
17247 # libtool script then.
17248 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17249 if test -f "$ltmain_in"; then
17250 test -f Makefile && make "$ltmain"
17255 ac_ext=c
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17261 CC=$lt_save_CC
17262 LDCXX=$LD
17263 LD=$lt_save_LD
17264 GCC=$lt_save_GCC
17265 with_gnu_ldcxx=$with_gnu_ld
17266 with_gnu_ld=$lt_save_with_gnu_ld
17267 lt_cv_path_LDCXX=$lt_cv_path_LD
17268 lt_cv_path_LD=$lt_save_path_LD
17269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17272 else
17273 tagname=""
17277 F77)
17278 if test -n "$F77" && test "X$F77" != "Xno"; then
17280 ac_ext=f
17281 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17282 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17283 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17286 archive_cmds_need_lc_F77=no
17287 allow_undefined_flag_F77=
17288 always_export_symbols_F77=no
17289 archive_expsym_cmds_F77=
17290 export_dynamic_flag_spec_F77=
17291 hardcode_direct_F77=no
17292 hardcode_libdir_flag_spec_F77=
17293 hardcode_libdir_flag_spec_ld_F77=
17294 hardcode_libdir_separator_F77=
17295 hardcode_minus_L_F77=no
17296 hardcode_automatic_F77=no
17297 module_cmds_F77=
17298 module_expsym_cmds_F77=
17299 link_all_deplibs_F77=unknown
17300 old_archive_cmds_F77=$old_archive_cmds
17301 no_undefined_flag_F77=
17302 whole_archive_flag_spec_F77=
17303 enable_shared_with_static_runtimes_F77=no
17305 # Source file extension for f77 test sources.
17306 ac_ext=f
17308 # Object file extension for compiled f77 test sources.
17309 objext=o
17310 objext_F77=$objext
17312 # Code to be used in simple compile tests
17313 lt_simple_compile_test_code="\
17314 subroutine t
17315 return
17319 # Code to be used in simple link tests
17320 lt_simple_link_test_code="\
17321 program t
17325 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17327 # If no C compiler was specified, use CC.
17328 LTCC=${LTCC-"$CC"}
17330 # If no C compiler flags were specified, use CFLAGS.
17331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17333 # Allow CC to be a program name with arguments.
17334 compiler=$CC
17337 # save warnings/boilerplate of simple test code
17338 ac_outfile=conftest.$ac_objext
17339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17341 _lt_compiler_boilerplate=`cat conftest.err`
17342 $rm conftest*
17344 ac_outfile=conftest.$ac_objext
17345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17347 _lt_linker_boilerplate=`cat conftest.err`
17348 $rm -r conftest*
17351 # Allow CC to be a program name with arguments.
17352 lt_save_CC="$CC"
17353 CC=${F77-"f77"}
17354 compiler=$CC
17355 compiler_F77=$CC
17356 for cc_temp in $compiler""; do
17357 case $cc_temp in
17358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17360 \-*) ;;
17361 *) break;;
17362 esac
17363 done
17364 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17367 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17368 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17369 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17370 echo "${ECHO_T}$can_build_shared" >&6; }
17372 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17373 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17374 test "$can_build_shared" = "no" && enable_shared=no
17376 # On AIX, shared libraries and static libraries use the same namespace, and
17377 # are all built from PIC.
17378 case $host_os in
17379 aix3*)
17380 test "$enable_shared" = yes && enable_static=no
17381 if test -n "$RANLIB"; then
17382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17383 postinstall_cmds='$RANLIB $lib'
17386 aix[4-9]*)
17387 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17388 test "$enable_shared" = yes && enable_static=no
17391 esac
17392 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17393 echo "${ECHO_T}$enable_shared" >&6; }
17395 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17396 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17397 # Make sure either enable_shared or enable_static is yes.
17398 test "$enable_shared" = yes || enable_static=yes
17399 { echo "$as_me:$LINENO: result: $enable_static" >&5
17400 echo "${ECHO_T}$enable_static" >&6; }
17402 GCC_F77="$G77"
17403 LD_F77="$LD"
17405 lt_prog_compiler_wl_F77=
17406 lt_prog_compiler_pic_F77=
17407 lt_prog_compiler_static_F77=
17409 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17410 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17412 if test "$GCC" = yes; then
17413 lt_prog_compiler_wl_F77='-Wl,'
17414 lt_prog_compiler_static_F77='-static'
17416 case $host_os in
17417 aix*)
17418 # All AIX code is PIC.
17419 if test "$host_cpu" = ia64; then
17420 # AIX 5 now supports IA64 processor
17421 lt_prog_compiler_static_F77='-Bstatic'
17425 amigaos*)
17426 # FIXME: we need at least 68020 code to build shared libraries, but
17427 # adding the `-m68020' flag to GCC prevents building anything better,
17428 # like `-m68040'.
17429 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17432 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17433 # PIC is the default for these OSes.
17436 mingw* | cygwin* | pw32* | os2*)
17437 # This hack is so that the source file can tell whether it is being
17438 # built for inclusion in a dll (and should export symbols for example).
17439 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17440 # (--disable-auto-import) libraries
17441 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17444 darwin* | rhapsody*)
17445 # PIC is the default on this platform
17446 # Common symbols not allowed in MH_DYLIB files
17447 lt_prog_compiler_pic_F77='-fno-common'
17450 interix[3-9]*)
17451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17452 # Instead, we relocate shared libraries at runtime.
17455 msdosdjgpp*)
17456 # Just because we use GCC doesn't mean we suddenly get shared libraries
17457 # on systems that don't support them.
17458 lt_prog_compiler_can_build_shared_F77=no
17459 enable_shared=no
17462 sysv4*MP*)
17463 if test -d /usr/nec; then
17464 lt_prog_compiler_pic_F77=-Kconform_pic
17468 hpux*)
17469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17470 # not for PA HP-UX.
17471 case $host_cpu in
17472 hppa*64*|ia64*)
17473 # +Z the default
17476 lt_prog_compiler_pic_F77='-fPIC'
17478 esac
17482 lt_prog_compiler_pic_F77='-fPIC'
17484 esac
17485 else
17486 # PORTME Check for flag to pass linker flags through the system compiler.
17487 case $host_os in
17488 aix*)
17489 lt_prog_compiler_wl_F77='-Wl,'
17490 if test "$host_cpu" = ia64; then
17491 # AIX 5 now supports IA64 processor
17492 lt_prog_compiler_static_F77='-Bstatic'
17493 else
17494 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17497 darwin*)
17498 # PIC is the default on this platform
17499 # Common symbols not allowed in MH_DYLIB files
17500 case $cc_basename in
17501 xlc*)
17502 lt_prog_compiler_pic_F77='-qnocommon'
17503 lt_prog_compiler_wl_F77='-Wl,'
17505 esac
17508 mingw* | cygwin* | pw32* | os2*)
17509 # This hack is so that the source file can tell whether it is being
17510 # built for inclusion in a dll (and should export symbols for example).
17511 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17514 hpux9* | hpux10* | hpux11*)
17515 lt_prog_compiler_wl_F77='-Wl,'
17516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17517 # not for PA HP-UX.
17518 case $host_cpu in
17519 hppa*64*|ia64*)
17520 # +Z the default
17523 lt_prog_compiler_pic_F77='+Z'
17525 esac
17526 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17527 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17530 irix5* | irix6* | nonstopux*)
17531 lt_prog_compiler_wl_F77='-Wl,'
17532 # PIC (with -KPIC) is the default.
17533 lt_prog_compiler_static_F77='-non_shared'
17536 newsos6)
17537 lt_prog_compiler_pic_F77='-KPIC'
17538 lt_prog_compiler_static_F77='-Bstatic'
17541 linux* | k*bsd*-gnu)
17542 case $cc_basename in
17543 icc* | ecc*)
17544 lt_prog_compiler_wl_F77='-Wl,'
17545 lt_prog_compiler_pic_F77='-KPIC'
17546 lt_prog_compiler_static_F77='-static'
17548 pgcc* | pgf77* | pgf90* | pgf95*)
17549 # Portland Group compilers (*not* the Pentium gcc compiler,
17550 # which looks to be a dead project)
17551 lt_prog_compiler_wl_F77='-Wl,'
17552 lt_prog_compiler_pic_F77='-fpic'
17553 lt_prog_compiler_static_F77='-Bstatic'
17555 ccc*)
17556 lt_prog_compiler_wl_F77='-Wl,'
17557 # All Alpha code is PIC.
17558 lt_prog_compiler_static_F77='-non_shared'
17561 case `$CC -V 2>&1 | sed 5q` in
17562 *Sun\ C*)
17563 # Sun C 5.9
17564 lt_prog_compiler_pic_F77='-KPIC'
17565 lt_prog_compiler_static_F77='-Bstatic'
17566 lt_prog_compiler_wl_F77='-Wl,'
17568 *Sun\ F*)
17569 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17570 lt_prog_compiler_pic_F77='-KPIC'
17571 lt_prog_compiler_static_F77='-Bstatic'
17572 lt_prog_compiler_wl_F77=''
17574 esac
17576 esac
17579 osf3* | osf4* | osf5*)
17580 lt_prog_compiler_wl_F77='-Wl,'
17581 # All OSF/1 code is PIC.
17582 lt_prog_compiler_static_F77='-non_shared'
17585 rdos*)
17586 lt_prog_compiler_static_F77='-non_shared'
17589 solaris*)
17590 lt_prog_compiler_pic_F77='-KPIC'
17591 lt_prog_compiler_static_F77='-Bstatic'
17592 case $cc_basename in
17593 f77* | f90* | f95*)
17594 lt_prog_compiler_wl_F77='-Qoption ld ';;
17596 lt_prog_compiler_wl_F77='-Wl,';;
17597 esac
17600 sunos4*)
17601 lt_prog_compiler_wl_F77='-Qoption ld '
17602 lt_prog_compiler_pic_F77='-PIC'
17603 lt_prog_compiler_static_F77='-Bstatic'
17606 sysv4 | sysv4.2uw2* | sysv4.3*)
17607 lt_prog_compiler_wl_F77='-Wl,'
17608 lt_prog_compiler_pic_F77='-KPIC'
17609 lt_prog_compiler_static_F77='-Bstatic'
17612 sysv4*MP*)
17613 if test -d /usr/nec ;then
17614 lt_prog_compiler_pic_F77='-Kconform_pic'
17615 lt_prog_compiler_static_F77='-Bstatic'
17619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17620 lt_prog_compiler_wl_F77='-Wl,'
17621 lt_prog_compiler_pic_F77='-KPIC'
17622 lt_prog_compiler_static_F77='-Bstatic'
17625 unicos*)
17626 lt_prog_compiler_wl_F77='-Wl,'
17627 lt_prog_compiler_can_build_shared_F77=no
17630 uts4*)
17631 lt_prog_compiler_pic_F77='-pic'
17632 lt_prog_compiler_static_F77='-Bstatic'
17636 lt_prog_compiler_can_build_shared_F77=no
17638 esac
17641 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17642 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17645 # Check to make sure the PIC flag actually works.
17647 if test -n "$lt_prog_compiler_pic_F77"; then
17649 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17650 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17651 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654 lt_cv_prog_compiler_pic_works_F77=no
17655 ac_outfile=conftest.$ac_objext
17656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17657 lt_compiler_flag="$lt_prog_compiler_pic_F77"
17658 # Insert the option either (1) after the last *FLAGS variable, or
17659 # (2) before a word containing "conftest.", or (3) at the end.
17660 # Note that $ac_compile itself does not contain backslashes and begins
17661 # with a dollar sign (not a hyphen), so the echo should work correctly.
17662 # The option is referenced via a variable to avoid confusing sed.
17663 lt_compile=`echo "$ac_compile" | $SED \
17664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17666 -e 's:$: $lt_compiler_flag:'`
17667 (eval echo "\"\$as_me:17667: $lt_compile\"" >&5)
17668 (eval "$lt_compile" 2>conftest.err)
17669 ac_status=$?
17670 cat conftest.err >&5
17671 echo "$as_me:17671: \$? = $ac_status" >&5
17672 if (exit $ac_status) && test -s "$ac_outfile"; then
17673 # The compiler can only warn and ignore the option if not recognized
17674 # So say no if there are warnings other than the usual output.
17675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17678 lt_cv_prog_compiler_pic_works_F77=yes
17681 $rm conftest*
17684 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17685 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
17687 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17688 case $lt_prog_compiler_pic_F77 in
17689 "" | " "*) ;;
17690 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17691 esac
17692 else
17693 lt_prog_compiler_pic_F77=
17694 lt_prog_compiler_can_build_shared_F77=no
17698 case $host_os in
17699 # For platforms which do not support PIC, -DPIC is meaningless:
17700 *djgpp*)
17701 lt_prog_compiler_pic_F77=
17704 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17706 esac
17709 # Check to make sure the static flag actually works.
17711 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17712 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17713 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17714 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 lt_cv_prog_compiler_static_works_F77=no
17718 save_LDFLAGS="$LDFLAGS"
17719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17722 # The linker can only warn and ignore the option if not recognized
17723 # So say no if there are warnings
17724 if test -s conftest.err; then
17725 # Append any errors to the config.log.
17726 cat conftest.err 1>&5
17727 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17729 if diff conftest.exp conftest.er2 >/dev/null; then
17730 lt_cv_prog_compiler_static_works_F77=yes
17732 else
17733 lt_cv_prog_compiler_static_works_F77=yes
17736 $rm -r conftest*
17737 LDFLAGS="$save_LDFLAGS"
17740 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
17741 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
17743 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17745 else
17746 lt_prog_compiler_static_F77=
17750 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17751 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17752 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755 lt_cv_prog_compiler_c_o_F77=no
17756 $rm -r conftest 2>/dev/null
17757 mkdir conftest
17758 cd conftest
17759 mkdir out
17760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17762 lt_compiler_flag="-o out/conftest2.$ac_objext"
17763 # Insert the option either (1) after the last *FLAGS variable, or
17764 # (2) before a word containing "conftest.", or (3) at the end.
17765 # Note that $ac_compile itself does not contain backslashes and begins
17766 # with a dollar sign (not a hyphen), so the echo should work correctly.
17767 lt_compile=`echo "$ac_compile" | $SED \
17768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17770 -e 's:$: $lt_compiler_flag:'`
17771 (eval echo "\"\$as_me:17771: $lt_compile\"" >&5)
17772 (eval "$lt_compile" 2>out/conftest.err)
17773 ac_status=$?
17774 cat out/conftest.err >&5
17775 echo "$as_me:17775: \$? = $ac_status" >&5
17776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17777 then
17778 # The compiler can only warn and ignore the option if not recognized
17779 # So say no if there are warnings
17780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17783 lt_cv_prog_compiler_c_o_F77=yes
17786 chmod u+w . 2>&5
17787 $rm conftest*
17788 # SGI C++ compiler will create directory out/ii_files/ for
17789 # template instantiation
17790 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17791 $rm out/* && rmdir out
17792 cd ..
17793 rmdir conftest
17794 $rm conftest*
17797 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17798 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17801 hard_links="nottested"
17802 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17803 # do not overwrite the value of need_locks provided by the user
17804 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17805 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17806 hard_links=yes
17807 $rm conftest*
17808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17809 touch conftest.a
17810 ln conftest.a conftest.b 2>&5 || hard_links=no
17811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17812 { echo "$as_me:$LINENO: result: $hard_links" >&5
17813 echo "${ECHO_T}$hard_links" >&6; }
17814 if test "$hard_links" = no; then
17815 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17816 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17817 need_locks=warn
17819 else
17820 need_locks=no
17823 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17824 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17826 runpath_var=
17827 allow_undefined_flag_F77=
17828 enable_shared_with_static_runtimes_F77=no
17829 archive_cmds_F77=
17830 archive_expsym_cmds_F77=
17831 old_archive_From_new_cmds_F77=
17832 old_archive_from_expsyms_cmds_F77=
17833 export_dynamic_flag_spec_F77=
17834 whole_archive_flag_spec_F77=
17835 thread_safe_flag_spec_F77=
17836 hardcode_libdir_flag_spec_F77=
17837 hardcode_libdir_flag_spec_ld_F77=
17838 hardcode_libdir_separator_F77=
17839 hardcode_direct_F77=no
17840 hardcode_minus_L_F77=no
17841 hardcode_shlibpath_var_F77=unsupported
17842 link_all_deplibs_F77=unknown
17843 hardcode_automatic_F77=no
17844 module_cmds_F77=
17845 module_expsym_cmds_F77=
17846 always_export_symbols_F77=no
17847 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17848 # include_expsyms should be a list of space-separated symbols to be *always*
17849 # included in the symbol list
17850 include_expsyms_F77=
17851 # exclude_expsyms can be an extended regexp of symbols to exclude
17852 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17853 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17854 # as well as any symbol that contains `d'.
17855 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17857 # platforms (ab)use it in PIC code, but their linkers get confused if
17858 # the symbol is explicitly referenced. Since portable code cannot
17859 # rely on this symbol name, it's probably fine to never include it in
17860 # preloaded symbol tables.
17861 # Exclude shared library initialization/finalization symbols.
17862 extract_expsyms_cmds=
17863 # Just being paranoid about ensuring that cc_basename is set.
17864 for cc_temp in $compiler""; do
17865 case $cc_temp in
17866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17868 \-*) ;;
17869 *) break;;
17870 esac
17871 done
17872 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17874 case $host_os in
17875 cygwin* | mingw* | pw32*)
17876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877 # When not using gcc, we currently assume that we are using
17878 # Microsoft Visual C++.
17879 if test "$GCC" != yes; then
17880 with_gnu_ld=no
17883 interix*)
17884 # we just hope/assume this is gcc and not c89 (= MSVC++)
17885 with_gnu_ld=yes
17887 openbsd*)
17888 with_gnu_ld=no
17890 esac
17892 ld_shlibs_F77=yes
17893 if test "$with_gnu_ld" = yes; then
17894 # If archive_cmds runs LD, not CC, wlarc should be empty
17895 wlarc='${wl}'
17897 # Set some defaults for GNU ld with shared library support. These
17898 # are reset later if shared libraries are not supported. Putting them
17899 # here allows them to be overridden if necessary.
17900 runpath_var=LD_RUN_PATH
17901 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17902 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17903 # ancient GNU ld didn't support --whole-archive et. al.
17904 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17905 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17906 else
17907 whole_archive_flag_spec_F77=
17909 supports_anon_versioning=no
17910 case `$LD -v 2>/dev/null` in
17911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17914 *\ 2.11.*) ;; # other 2.11 versions
17915 *) supports_anon_versioning=yes ;;
17916 esac
17918 # See if GNU ld supports shared libraries.
17919 case $host_os in
17920 aix[3-9]*)
17921 # On AIX/PPC, the GNU linker is very broken
17922 if test "$host_cpu" != ia64; then
17923 ld_shlibs_F77=no
17924 cat <<EOF 1>&2
17926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17927 *** to be unable to reliably create shared libraries on AIX.
17928 *** Therefore, libtool is disabling shared libraries support. If you
17929 *** really care for shared libraries, you may want to modify your PATH
17930 *** so that a non-GNU linker is found, and then restart.
17936 amigaos*)
17937 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)'
17938 hardcode_libdir_flag_spec_F77='-L$libdir'
17939 hardcode_minus_L_F77=yes
17941 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17942 # that the semantics of dynamic libraries on AmigaOS, at least up
17943 # to version 4, is to share data among multiple programs linked
17944 # with the same dynamic library. Since this doesn't match the
17945 # behavior of shared libraries on other platforms, we can't use
17946 # them.
17947 ld_shlibs_F77=no
17950 beos*)
17951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952 allow_undefined_flag_F77=unsupported
17953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17954 # support --undefined. This deserves some investigation. FIXME
17955 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17956 else
17957 ld_shlibs_F77=no
17961 cygwin* | mingw* | pw32*)
17962 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17963 # as there is no search path for DLLs.
17964 hardcode_libdir_flag_spec_F77='-L$libdir'
17965 allow_undefined_flag_F77=unsupported
17966 always_export_symbols_F77=no
17967 enable_shared_with_static_runtimes_F77=yes
17968 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17970 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17971 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17972 # If the export-symbols file already is a .def file (1st line
17973 # is EXPORTS), use it as is; otherwise, prepend...
17974 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17975 cp $export_symbols $output_objdir/$soname.def;
17976 else
17977 echo EXPORTS > $output_objdir/$soname.def;
17978 cat $export_symbols >> $output_objdir/$soname.def;
17980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17981 else
17982 ld_shlibs_F77=no
17986 interix[3-9]*)
17987 hardcode_direct_F77=no
17988 hardcode_shlibpath_var_F77=no
17989 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17990 export_dynamic_flag_spec_F77='${wl}-E'
17991 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17992 # Instead, shared libraries are loaded at an image base (0x10000000 by
17993 # default) and relocated if they conflict, which is a slow very memory
17994 # consuming and fragmenting process. To avoid this, we pick a random,
17995 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17996 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17997 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'
17998 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'
18001 gnu* | linux* | k*bsd*-gnu)
18002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18003 tmp_addflag=
18004 case $cc_basename,$host_cpu in
18005 pgcc*) # Portland Group C compiler
18006 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'
18007 tmp_addflag=' $pic_flag'
18009 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18010 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'
18011 tmp_addflag=' $pic_flag -Mnomain' ;;
18012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18013 tmp_addflag=' -i_dynamic' ;;
18014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18015 tmp_addflag=' -i_dynamic -nofor_main' ;;
18016 ifc* | ifort*) # Intel Fortran compiler
18017 tmp_addflag=' -nofor_main' ;;
18018 esac
18019 case `$CC -V 2>&1 | sed 5q` in
18020 *Sun\ C*) # Sun C 5.9
18021 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18022 tmp_sharedflag='-G' ;;
18023 *Sun\ F*) # Sun Fortran 8.3
18024 tmp_sharedflag='-G' ;;
18026 tmp_sharedflag='-shared' ;;
18027 esac
18028 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18030 if test $supports_anon_versioning = yes; then
18031 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
18032 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18033 $echo "local: *; };" >> $output_objdir/$libname.ver~
18034 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18036 link_all_deplibs_F77=no
18037 else
18038 ld_shlibs_F77=no
18042 netbsd* | netbsdelf*-gnu)
18043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18044 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18045 wlarc=
18046 else
18047 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18048 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18052 solaris*)
18053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18054 ld_shlibs_F77=no
18055 cat <<EOF 1>&2
18057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18058 *** create shared libraries on Solaris systems. Therefore, libtool
18059 *** is disabling shared libraries support. We urge you to upgrade GNU
18060 *** binutils to release 2.9.1 or newer. Another option is to modify
18061 *** your PATH or compiler configuration so that the native linker is
18062 *** used, and then restart.
18065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18068 else
18069 ld_shlibs_F77=no
18073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18074 case `$LD -v 2>&1` in
18075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18076 ld_shlibs_F77=no
18077 cat <<_LT_EOF 1>&2
18079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18080 *** reliably create shared libraries on SCO systems. Therefore, libtool
18081 *** is disabling shared libraries support. We urge you to upgrade GNU
18082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18083 *** your PATH or compiler configuration so that the native linker is
18084 *** used, and then restart.
18086 _LT_EOF
18089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18090 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18091 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18092 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18093 else
18094 ld_shlibs_F77=no
18097 esac
18100 sunos4*)
18101 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18102 wlarc=
18103 hardcode_direct_F77=yes
18104 hardcode_shlibpath_var_F77=no
18108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18110 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18111 else
18112 ld_shlibs_F77=no
18115 esac
18117 if test "$ld_shlibs_F77" = no; then
18118 runpath_var=
18119 hardcode_libdir_flag_spec_F77=
18120 export_dynamic_flag_spec_F77=
18121 whole_archive_flag_spec_F77=
18123 else
18124 # PORTME fill in a description of your system's linker (not GNU ld)
18125 case $host_os in
18126 aix3*)
18127 allow_undefined_flag_F77=unsupported
18128 always_export_symbols_F77=yes
18129 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'
18130 # Note: this linker hardcodes the directories in LIBPATH if there
18131 # are no directories specified by -L.
18132 hardcode_minus_L_F77=yes
18133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18134 # Neither direct hardcoding nor static linking is supported with a
18135 # broken collect2.
18136 hardcode_direct_F77=unsupported
18140 aix[4-9]*)
18141 if test "$host_cpu" = ia64; then
18142 # On IA64, the linker does run time linking by default, so we don't
18143 # have to do anything special.
18144 aix_use_runtimelinking=no
18145 exp_sym_flag='-Bexport'
18146 no_entry_flag=""
18147 else
18148 # If we're using GNU nm, then we don't want the "-C" option.
18149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18151 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'
18152 else
18153 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'
18155 aix_use_runtimelinking=no
18157 # Test if we are trying to use run time linking or normal
18158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18159 # need to do runtime linking.
18160 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18161 for ld_flag in $LDFLAGS; do
18162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18163 aix_use_runtimelinking=yes
18164 break
18166 done
18168 esac
18170 exp_sym_flag='-bexport'
18171 no_entry_flag='-bnoentry'
18174 # When large executables or shared objects are built, AIX ld can
18175 # have problems creating the table of contents. If linking a library
18176 # or program results in "error TOC overflow" add -mminimal-toc to
18177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18180 archive_cmds_F77=''
18181 hardcode_direct_F77=yes
18182 hardcode_libdir_separator_F77=':'
18183 link_all_deplibs_F77=yes
18185 if test "$GCC" = yes; then
18186 case $host_os in aix4.[012]|aix4.[012].*)
18187 # We only want to do this on AIX 4.2 and lower, the check
18188 # below for broken collect2 doesn't work under 4.3+
18189 collect2name=`${CC} -print-prog-name=collect2`
18190 if test -f "$collect2name" && \
18191 strings "$collect2name" | grep resolve_lib_name >/dev/null
18192 then
18193 # We have reworked collect2
18195 else
18196 # We have old collect2
18197 hardcode_direct_F77=unsupported
18198 # It fails to find uninstalled libraries when the uninstalled
18199 # path is not listed in the libpath. Setting hardcode_minus_L
18200 # to unsupported forces relinking
18201 hardcode_minus_L_F77=yes
18202 hardcode_libdir_flag_spec_F77='-L$libdir'
18203 hardcode_libdir_separator_F77=
18206 esac
18207 shared_flag='-shared'
18208 if test "$aix_use_runtimelinking" = yes; then
18209 shared_flag="$shared_flag "'${wl}-G'
18211 else
18212 # not using gcc
18213 if test "$host_cpu" = ia64; then
18214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18215 # chokes on -Wl,-G. The following line is correct:
18216 shared_flag='-G'
18217 else
18218 if test "$aix_use_runtimelinking" = yes; then
18219 shared_flag='${wl}-G'
18220 else
18221 shared_flag='${wl}-bM:SRE'
18226 # It seems that -bexpall does not export symbols beginning with
18227 # underscore (_), so it is better to generate a list of symbols to export.
18228 always_export_symbols_F77=yes
18229 if test "$aix_use_runtimelinking" = yes; then
18230 # Warning - without using the other runtime loading flags (-brtl),
18231 # -berok will link without error, but may produce a broken library.
18232 allow_undefined_flag_F77='-berok'
18233 # Determine the default libpath from the value encoded in an empty executable.
18234 cat >conftest.$ac_ext <<_ACEOF
18235 program main
18238 _ACEOF
18239 rm -f conftest.$ac_objext conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>conftest.er1
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } && {
18253 test -z "$ac_f77_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest$ac_exeext &&
18256 $as_test_x conftest$ac_exeext; then
18258 lt_aix_libpath_sed='
18259 /Import File Strings/,/^$/ {
18260 /^0/ {
18261 s/^0 *\(.*\)$/\1/
18265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18266 # Check for a 64-bit object if we didn't find anything.
18267 if test -z "$aix_libpath"; then
18268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18270 else
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18281 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18282 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"
18283 else
18284 if test "$host_cpu" = ia64; then
18285 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18286 allow_undefined_flag_F77="-z nodefs"
18287 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"
18288 else
18289 # Determine the default libpath from the value encoded in an empty executable.
18290 cat >conftest.$ac_ext <<_ACEOF
18291 program main
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (ac_try="$ac_link"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_link") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_f77_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest$ac_exeext &&
18312 $as_test_x conftest$ac_exeext; then
18314 lt_aix_libpath_sed='
18315 /Import File Strings/,/^$/ {
18316 /^0/ {
18317 s/^0 *\(.*\)$/\1/
18321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18322 # Check for a 64-bit object if we didn't find anything.
18323 if test -z "$aix_libpath"; then
18324 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18326 else
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18334 conftest$ac_exeext conftest.$ac_ext
18335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18337 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18338 # Warning - without using the other run time loading flags,
18339 # -berok will link without error, but may produce a broken library.
18340 no_undefined_flag_F77=' ${wl}-bernotok'
18341 allow_undefined_flag_F77=' ${wl}-berok'
18342 # Exported symbols can be pulled into shared objects from archives
18343 whole_archive_flag_spec_F77='$convenience'
18344 archive_cmds_need_lc_F77=yes
18345 # This is similar to how AIX traditionally builds its shared libraries.
18346 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'
18351 amigaos*)
18352 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)'
18353 hardcode_libdir_flag_spec_F77='-L$libdir'
18354 hardcode_minus_L_F77=yes
18355 # see comment about different semantics on the GNU ld section
18356 ld_shlibs_F77=no
18359 bsdi[45]*)
18360 export_dynamic_flag_spec_F77=-rdynamic
18363 cygwin* | mingw* | pw32*)
18364 # When not using gcc, we currently assume that we are using
18365 # Microsoft Visual C++.
18366 # hardcode_libdir_flag_spec is actually meaningless, as there is
18367 # no search path for DLLs.
18368 hardcode_libdir_flag_spec_F77=' '
18369 allow_undefined_flag_F77=unsupported
18370 # Tell ltmain to make .lib files, not .a files.
18371 libext=lib
18372 # Tell ltmain to make .dll files, not .so files.
18373 shrext_cmds=".dll"
18374 # FIXME: Setting linknames here is a bad hack.
18375 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18376 # The linker will automatically build a .lib file if we build a DLL.
18377 old_archive_From_new_cmds_F77='true'
18378 # FIXME: Should let the user specify the lib program.
18379 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18380 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18381 enable_shared_with_static_runtimes_F77=yes
18384 darwin* | rhapsody*)
18385 case $host_os in
18386 rhapsody* | darwin1.[012])
18387 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18389 *) # Darwin 1.3 on
18390 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18391 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18392 else
18393 case ${MACOSX_DEPLOYMENT_TARGET} in
18394 10.[012])
18395 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18397 10.*)
18398 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18400 esac
18403 esac
18404 archive_cmds_need_lc_F77=no
18405 hardcode_direct_F77=no
18406 hardcode_automatic_F77=yes
18407 hardcode_shlibpath_var_F77=unsupported
18408 whole_archive_flag_spec_F77=''
18409 link_all_deplibs_F77=yes
18410 if test "$GCC" = yes ; then
18411 output_verbose_link_cmd='echo'
18412 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18413 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18414 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18415 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18416 else
18417 case $cc_basename in
18418 xlc*)
18419 output_verbose_link_cmd='echo'
18420 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18421 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18422 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18423 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18424 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}'
18427 ld_shlibs_F77=no
18429 esac
18433 dgux*)
18434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18435 hardcode_libdir_flag_spec_F77='-L$libdir'
18436 hardcode_shlibpath_var_F77=no
18439 freebsd1*)
18440 ld_shlibs_F77=no
18443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18444 # support. Future versions do this automatically, but an explicit c++rt0.o
18445 # does not break anything, and helps significantly (at the cost of a little
18446 # extra space).
18447 freebsd2.2*)
18448 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18449 hardcode_libdir_flag_spec_F77='-R$libdir'
18450 hardcode_direct_F77=yes
18451 hardcode_shlibpath_var_F77=no
18454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18455 freebsd2*)
18456 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18457 hardcode_direct_F77=yes
18458 hardcode_minus_L_F77=yes
18459 hardcode_shlibpath_var_F77=no
18462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18463 freebsd* | dragonfly*)
18464 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18465 hardcode_libdir_flag_spec_F77='-R$libdir'
18466 hardcode_direct_F77=yes
18467 hardcode_shlibpath_var_F77=no
18470 hpux9*)
18471 if test "$GCC" = yes; then
18472 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'
18473 else
18474 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'
18476 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18477 hardcode_libdir_separator_F77=:
18478 hardcode_direct_F77=yes
18480 # hardcode_minus_L: Not really in the search PATH,
18481 # but as the default location of the library.
18482 hardcode_minus_L_F77=yes
18483 export_dynamic_flag_spec_F77='${wl}-E'
18486 hpux10*)
18487 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18488 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18489 else
18490 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18492 if test "$with_gnu_ld" = no; then
18493 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18494 hardcode_libdir_separator_F77=:
18496 hardcode_direct_F77=yes
18497 export_dynamic_flag_spec_F77='${wl}-E'
18499 # hardcode_minus_L: Not really in the search PATH,
18500 # but as the default location of the library.
18501 hardcode_minus_L_F77=yes
18505 hpux11*)
18506 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18507 case $host_cpu in
18508 hppa*64*)
18509 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 ia64*)
18512 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18515 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18517 esac
18518 else
18519 case $host_cpu in
18520 hppa*64*)
18521 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18523 ia64*)
18524 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18527 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18529 esac
18531 if test "$with_gnu_ld" = no; then
18532 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18533 hardcode_libdir_separator_F77=:
18535 case $host_cpu in
18536 hppa*64*|ia64*)
18537 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18538 hardcode_direct_F77=no
18539 hardcode_shlibpath_var_F77=no
18542 hardcode_direct_F77=yes
18543 export_dynamic_flag_spec_F77='${wl}-E'
18545 # hardcode_minus_L: Not really in the search PATH,
18546 # but as the default location of the library.
18547 hardcode_minus_L_F77=yes
18549 esac
18553 irix5* | irix6* | nonstopux*)
18554 if test "$GCC" = yes; then
18555 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'
18556 else
18557 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'
18558 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18560 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18561 hardcode_libdir_separator_F77=:
18562 link_all_deplibs_F77=yes
18565 netbsd* | netbsdelf*-gnu)
18566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18568 else
18569 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18571 hardcode_libdir_flag_spec_F77='-R$libdir'
18572 hardcode_direct_F77=yes
18573 hardcode_shlibpath_var_F77=no
18576 newsos6)
18577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18578 hardcode_direct_F77=yes
18579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18580 hardcode_libdir_separator_F77=:
18581 hardcode_shlibpath_var_F77=no
18584 openbsd*)
18585 if test -f /usr/libexec/ld.so; then
18586 hardcode_direct_F77=yes
18587 hardcode_shlibpath_var_F77=no
18588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18589 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18591 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18592 export_dynamic_flag_spec_F77='${wl}-E'
18593 else
18594 case $host_os in
18595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18596 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18597 hardcode_libdir_flag_spec_F77='-R$libdir'
18600 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18601 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18603 esac
18605 else
18606 ld_shlibs_F77=no
18610 os2*)
18611 hardcode_libdir_flag_spec_F77='-L$libdir'
18612 hardcode_minus_L_F77=yes
18613 allow_undefined_flag_F77=unsupported
18614 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'
18615 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18618 osf3*)
18619 if test "$GCC" = yes; then
18620 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18621 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'
18622 else
18623 allow_undefined_flag_F77=' -expect_unresolved \*'
18624 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'
18626 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18627 hardcode_libdir_separator_F77=:
18630 osf4* | osf5*) # as osf3* with the addition of -msym flag
18631 if test "$GCC" = yes; then
18632 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18633 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'
18634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18635 else
18636 allow_undefined_flag_F77=' -expect_unresolved \*'
18637 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'
18638 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~
18639 $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'
18641 # Both c and cxx compiler support -rpath directly
18642 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18644 hardcode_libdir_separator_F77=:
18647 solaris*)
18648 no_undefined_flag_F77=' -z text'
18649 if test "$GCC" = yes; then
18650 wlarc='${wl}'
18651 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18654 else
18655 wlarc=''
18656 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18657 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18660 hardcode_libdir_flag_spec_F77='-R$libdir'
18661 hardcode_shlibpath_var_F77=no
18662 case $host_os in
18663 solaris2.[0-5] | solaris2.[0-5].*) ;;
18665 # The compiler driver will combine and reorder linker options,
18666 # but understands `-z linker_flag'. GCC discards it without `$wl',
18667 # but is careful enough not to reorder.
18668 # Supported since Solaris 2.6 (maybe 2.5.1?)
18669 if test "$GCC" = yes; then
18670 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18671 else
18672 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18675 esac
18676 link_all_deplibs_F77=yes
18679 sunos4*)
18680 if test "x$host_vendor" = xsequent; then
18681 # Use $CC to link under sequent, because it throws in some extra .o
18682 # files that make .init and .fini sections work.
18683 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18684 else
18685 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18687 hardcode_libdir_flag_spec_F77='-L$libdir'
18688 hardcode_direct_F77=yes
18689 hardcode_minus_L_F77=yes
18690 hardcode_shlibpath_var_F77=no
18693 sysv4)
18694 case $host_vendor in
18695 sni)
18696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18697 hardcode_direct_F77=yes # is this really true???
18699 siemens)
18700 ## LD is ld it makes a PLAMLIB
18701 ## CC just makes a GrossModule.
18702 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18703 reload_cmds_F77='$CC -r -o $output$reload_objs'
18704 hardcode_direct_F77=no
18706 motorola)
18707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18708 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18710 esac
18711 runpath_var='LD_RUN_PATH'
18712 hardcode_shlibpath_var_F77=no
18715 sysv4.3*)
18716 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18717 hardcode_shlibpath_var_F77=no
18718 export_dynamic_flag_spec_F77='-Bexport'
18721 sysv4*MP*)
18722 if test -d /usr/nec; then
18723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18724 hardcode_shlibpath_var_F77=no
18725 runpath_var=LD_RUN_PATH
18726 hardcode_runpath_var=yes
18727 ld_shlibs_F77=yes
18731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18732 no_undefined_flag_F77='${wl}-z,text'
18733 archive_cmds_need_lc_F77=no
18734 hardcode_shlibpath_var_F77=no
18735 runpath_var='LD_RUN_PATH'
18737 if test "$GCC" = yes; then
18738 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18739 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 else
18741 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18746 sysv5* | sco3.2v5* | sco5v6*)
18747 # Note: We can NOT use -z defs as we might desire, because we do not
18748 # link with -lc, and that would cause any symbols used from libc to
18749 # always be unresolved, which means just about no library would
18750 # ever link correctly. If we're not using GNU ld we use -z text
18751 # though, which does catch some bad symbols but isn't as heavy-handed
18752 # as -z defs.
18753 no_undefined_flag_F77='${wl}-z,text'
18754 allow_undefined_flag_F77='${wl}-z,nodefs'
18755 archive_cmds_need_lc_F77=no
18756 hardcode_shlibpath_var_F77=no
18757 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18758 hardcode_libdir_separator_F77=':'
18759 link_all_deplibs_F77=yes
18760 export_dynamic_flag_spec_F77='${wl}-Bexport'
18761 runpath_var='LD_RUN_PATH'
18763 if test "$GCC" = yes; then
18764 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18765 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18766 else
18767 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18768 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18772 uts4*)
18773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18774 hardcode_libdir_flag_spec_F77='-L$libdir'
18775 hardcode_shlibpath_var_F77=no
18779 ld_shlibs_F77=no
18781 esac
18784 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18785 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18786 test "$ld_shlibs_F77" = no && can_build_shared=no
18789 # Do we need to explicitly link libc?
18791 case "x$archive_cmds_need_lc_F77" in
18792 x|xyes)
18793 # Assume -lc should be added
18794 archive_cmds_need_lc_F77=yes
18796 if test "$enable_shared" = yes && test "$GCC" = yes; then
18797 case $archive_cmds_F77 in
18798 *'~'*)
18799 # FIXME: we may have to deal with multi-command sequences.
18801 '$CC '*)
18802 # Test whether the compiler implicitly links with -lc since on some
18803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18804 # to ld, don't add -lc before -lgcc.
18805 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18806 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18807 $rm conftest*
18808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } 2>conftest.err; then
18815 soname=conftest
18816 lib=conftest
18817 libobjs=conftest.$ac_objext
18818 deplibs=
18819 wl=$lt_prog_compiler_wl_F77
18820 pic_flag=$lt_prog_compiler_pic_F77
18821 compiler_flags=-v
18822 linker_flags=-v
18823 verstring=
18824 output_objdir=.
18825 libname=conftest
18826 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18827 allow_undefined_flag_F77=
18828 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18829 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }
18833 then
18834 archive_cmds_need_lc_F77=no
18835 else
18836 archive_cmds_need_lc_F77=yes
18838 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18839 else
18840 cat conftest.err 1>&5
18842 $rm conftest*
18843 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18844 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18846 esac
18849 esac
18851 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18852 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18853 library_names_spec=
18854 libname_spec='lib$name'
18855 soname_spec=
18856 shrext_cmds=".so"
18857 postinstall_cmds=
18858 postuninstall_cmds=
18859 finish_cmds=
18860 finish_eval=
18861 shlibpath_var=
18862 shlibpath_overrides_runpath=unknown
18863 version_type=none
18864 dynamic_linker="$host_os ld.so"
18865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18867 need_lib_prefix=unknown
18868 hardcode_into_libs=no
18870 # when you set need_version to no, make sure it does not cause -set_version
18871 # flags to be left without arguments
18872 need_version=unknown
18874 case $host_os in
18875 aix3*)
18876 version_type=linux
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18878 shlibpath_var=LIBPATH
18880 # AIX 3 has no versioning support, so we append a major version to the name.
18881 soname_spec='${libname}${release}${shared_ext}$major'
18884 aix[4-9]*)
18885 version_type=linux
18886 need_lib_prefix=no
18887 need_version=no
18888 hardcode_into_libs=yes
18889 if test "$host_cpu" = ia64; then
18890 # AIX 5 supports IA64
18891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 else
18894 # With GCC up to 2.95.x, collect2 would create an import file
18895 # for dependence libraries. The import file would start with
18896 # the line `#! .'. This would cause the generated library to
18897 # depend on `.', always an invalid library. This was fixed in
18898 # development snapshots of GCC prior to 3.0.
18899 case $host_os in
18900 aix4 | aix4.[01] | aix4.[01].*)
18901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18902 echo ' yes '
18903 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18905 else
18906 can_build_shared=no
18909 esac
18910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18911 # soname into executable. Probably we can add versioning support to
18912 # collect2, so additional links can be useful in future.
18913 if test "$aix_use_runtimelinking" = yes; then
18914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18915 # instead of lib<name>.a to let people know that these are not
18916 # typical AIX shared libraries.
18917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918 else
18919 # We preserve .a as extension for shared libraries through AIX4.2
18920 # and later when we are not doing run time linking.
18921 library_names_spec='${libname}${release}.a $libname.a'
18922 soname_spec='${libname}${release}${shared_ext}$major'
18924 shlibpath_var=LIBPATH
18928 amigaos*)
18929 library_names_spec='$libname.ixlibrary $libname.a'
18930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18931 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'
18934 beos*)
18935 library_names_spec='${libname}${shared_ext}'
18936 dynamic_linker="$host_os ld.so"
18937 shlibpath_var=LIBRARY_PATH
18940 bsdi[45]*)
18941 version_type=linux
18942 need_version=no
18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18944 soname_spec='${libname}${release}${shared_ext}$major'
18945 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18946 shlibpath_var=LD_LIBRARY_PATH
18947 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18948 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18949 # the default ld.so.conf also contains /usr/contrib/lib and
18950 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18951 # libtool to hard-code these into programs
18954 cygwin* | mingw* | pw32*)
18955 version_type=windows
18956 shrext_cmds=".dll"
18957 need_version=no
18958 need_lib_prefix=no
18960 case $GCC,$host_os in
18961 yes,cygwin* | yes,mingw* | yes,pw32*)
18962 library_names_spec='$libname.dll.a'
18963 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18964 postinstall_cmds='base_file=`basename \${file}`~
18965 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18966 dldir=$destdir/`dirname \$dlpath`~
18967 test -d \$dldir || mkdir -p \$dldir~
18968 $install_prog $dir/$dlname \$dldir/$dlname~
18969 chmod a+x \$dldir/$dlname'
18970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18971 dlpath=$dir/\$dldll~
18972 $rm \$dlpath'
18973 shlibpath_overrides_runpath=yes
18975 case $host_os in
18976 cygwin*)
18977 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18978 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18979 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18981 mingw*)
18982 # MinGW DLLs use traditional 'lib' prefix
18983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18984 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18985 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18986 # It is most probably a Windows format PATH printed by
18987 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18988 # path with ; separators, and with drive letters. We can handle the
18989 # drive letters (cygwin fileutils understands them), so leave them,
18990 # especially as we might pass files found there to a mingw objdump,
18991 # which wouldn't understand a cygwinified path. Ahh.
18992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18993 else
18994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18997 pw32*)
18998 # pw32 DLLs use 'pw' prefix rather than 'lib'
18999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19001 esac
19005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19007 esac
19008 dynamic_linker='Win32 ld.exe'
19009 # FIXME: first we should search . and the directory the executable is in
19010 shlibpath_var=PATH
19013 darwin* | rhapsody*)
19014 dynamic_linker="$host_os dyld"
19015 version_type=darwin
19016 need_lib_prefix=no
19017 need_version=no
19018 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19019 soname_spec='${libname}${release}${major}$shared_ext'
19020 shlibpath_overrides_runpath=yes
19021 shlibpath_var=DYLD_LIBRARY_PATH
19022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19027 dgux*)
19028 version_type=linux
19029 need_lib_prefix=no
19030 need_version=no
19031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19032 soname_spec='${libname}${release}${shared_ext}$major'
19033 shlibpath_var=LD_LIBRARY_PATH
19036 freebsd1*)
19037 dynamic_linker=no
19040 freebsd* | dragonfly*)
19041 # DragonFly does not have aout. When/if they implement a new
19042 # versioning mechanism, adjust this.
19043 if test -x /usr/bin/objformat; then
19044 objformat=`/usr/bin/objformat`
19045 else
19046 case $host_os in
19047 freebsd[123]*) objformat=aout ;;
19048 *) objformat=elf ;;
19049 esac
19051 version_type=freebsd-$objformat
19052 case $version_type in
19053 freebsd-elf*)
19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19055 need_version=no
19056 need_lib_prefix=no
19058 freebsd-*)
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19060 need_version=yes
19062 esac
19063 shlibpath_var=LD_LIBRARY_PATH
19064 case $host_os in
19065 freebsd2*)
19066 shlibpath_overrides_runpath=yes
19068 freebsd3.[01]* | freebsdelf3.[01]*)
19069 shlibpath_overrides_runpath=yes
19070 hardcode_into_libs=yes
19072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19074 shlibpath_overrides_runpath=no
19075 hardcode_into_libs=yes
19077 *) # from 4.6 on, and DragonFly
19078 shlibpath_overrides_runpath=yes
19079 hardcode_into_libs=yes
19081 esac
19084 gnu*)
19085 version_type=linux
19086 need_lib_prefix=no
19087 need_version=no
19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 shlibpath_var=LD_LIBRARY_PATH
19091 hardcode_into_libs=yes
19094 hpux9* | hpux10* | hpux11*)
19095 # Give a soname corresponding to the major version so that dld.sl refuses to
19096 # link against other versions.
19097 version_type=sunos
19098 need_lib_prefix=no
19099 need_version=no
19100 case $host_cpu in
19101 ia64*)
19102 shrext_cmds='.so'
19103 hardcode_into_libs=yes
19104 dynamic_linker="$host_os dld.so"
19105 shlibpath_var=LD_LIBRARY_PATH
19106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19108 soname_spec='${libname}${release}${shared_ext}$major'
19109 if test "X$HPUX_IA64_MODE" = X32; then
19110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19111 else
19112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19116 hppa*64*)
19117 shrext_cmds='.sl'
19118 hardcode_into_libs=yes
19119 dynamic_linker="$host_os dld.sl"
19120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19123 soname_spec='${libname}${release}${shared_ext}$major'
19124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19128 shrext_cmds='.sl'
19129 dynamic_linker="$host_os dld.sl"
19130 shlibpath_var=SHLIB_PATH
19131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19133 soname_spec='${libname}${release}${shared_ext}$major'
19135 esac
19136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19137 postinstall_cmds='chmod 555 $lib'
19140 interix[3-9]*)
19141 version_type=linux
19142 need_lib_prefix=no
19143 need_version=no
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19145 soname_spec='${libname}${release}${shared_ext}$major'
19146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19147 shlibpath_var=LD_LIBRARY_PATH
19148 shlibpath_overrides_runpath=no
19149 hardcode_into_libs=yes
19152 irix5* | irix6* | nonstopux*)
19153 case $host_os in
19154 nonstopux*) version_type=nonstopux ;;
19156 if test "$lt_cv_prog_gnu_ld" = yes; then
19157 version_type=linux
19158 else
19159 version_type=irix
19160 fi ;;
19161 esac
19162 need_lib_prefix=no
19163 need_version=no
19164 soname_spec='${libname}${release}${shared_ext}$major'
19165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19166 case $host_os in
19167 irix5* | nonstopux*)
19168 libsuff= shlibsuff=
19171 case $LD in # libtool.m4 will add one of these switches to LD
19172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19173 libsuff= shlibsuff= libmagic=32-bit;;
19174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19175 libsuff=32 shlibsuff=N32 libmagic=N32;;
19176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19178 *) libsuff= shlibsuff= libmagic=never-match;;
19179 esac
19181 esac
19182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19183 shlibpath_overrides_runpath=no
19184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19186 hardcode_into_libs=yes
19189 # No shared lib support for Linux oldld, aout, or coff.
19190 linux*oldld* | linux*aout* | linux*coff*)
19191 dynamic_linker=no
19194 # This must be Linux ELF.
19195 linux* | k*bsd*-gnu)
19196 version_type=linux
19197 need_lib_prefix=no
19198 need_version=no
19199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19200 soname_spec='${libname}${release}${shared_ext}$major'
19201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19202 shlibpath_var=LD_LIBRARY_PATH
19203 shlibpath_overrides_runpath=no
19204 # This implies no fast_install, which is unacceptable.
19205 # Some rework will be needed to allow for fast_install
19206 # before this can be enabled.
19207 hardcode_into_libs=yes
19209 # Append ld.so.conf contents to the search path
19210 if test -f /etc/ld.so.conf; then
19211 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19215 # We used to test for /lib/ld.so.1 and disable shared libraries on
19216 # powerpc, because MkLinux only supported shared libraries with the
19217 # GNU dynamic linker. Since this was broken with cross compilers,
19218 # most powerpc-linux boxes support dynamic linking these days and
19219 # people can always --disable-shared, the test was removed, and we
19220 # assume the GNU/Linux dynamic linker is in use.
19221 dynamic_linker='GNU/Linux ld.so'
19224 netbsdelf*-gnu)
19225 version_type=linux
19226 need_lib_prefix=no
19227 need_version=no
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19229 soname_spec='${libname}${release}${shared_ext}$major'
19230 shlibpath_var=LD_LIBRARY_PATH
19231 shlibpath_overrides_runpath=no
19232 hardcode_into_libs=yes
19233 dynamic_linker='NetBSD ld.elf_so'
19236 netbsd*)
19237 version_type=sunos
19238 need_lib_prefix=no
19239 need_version=no
19240 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19243 dynamic_linker='NetBSD (a.out) ld.so'
19244 else
19245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19246 soname_spec='${libname}${release}${shared_ext}$major'
19247 dynamic_linker='NetBSD ld.elf_so'
19249 shlibpath_var=LD_LIBRARY_PATH
19250 shlibpath_overrides_runpath=yes
19251 hardcode_into_libs=yes
19254 newsos6)
19255 version_type=linux
19256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257 shlibpath_var=LD_LIBRARY_PATH
19258 shlibpath_overrides_runpath=yes
19261 nto-qnx*)
19262 version_type=linux
19263 need_lib_prefix=no
19264 need_version=no
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 shlibpath_var=LD_LIBRARY_PATH
19268 shlibpath_overrides_runpath=yes
19271 openbsd*)
19272 version_type=sunos
19273 sys_lib_dlsearch_path_spec="/usr/lib"
19274 need_lib_prefix=no
19275 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19276 case $host_os in
19277 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19278 *) need_version=no ;;
19279 esac
19280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19282 shlibpath_var=LD_LIBRARY_PATH
19283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19284 case $host_os in
19285 openbsd2.[89] | openbsd2.[89].*)
19286 shlibpath_overrides_runpath=no
19289 shlibpath_overrides_runpath=yes
19291 esac
19292 else
19293 shlibpath_overrides_runpath=yes
19297 os2*)
19298 libname_spec='$name'
19299 shrext_cmds=".dll"
19300 need_lib_prefix=no
19301 library_names_spec='$libname${shared_ext} $libname.a'
19302 dynamic_linker='OS/2 ld.exe'
19303 shlibpath_var=LIBPATH
19306 osf3* | osf4* | osf5*)
19307 version_type=osf
19308 need_lib_prefix=no
19309 need_version=no
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19312 shlibpath_var=LD_LIBRARY_PATH
19313 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19314 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19317 rdos*)
19318 dynamic_linker=no
19321 solaris*)
19322 version_type=linux
19323 need_lib_prefix=no
19324 need_version=no
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19326 soname_spec='${libname}${release}${shared_ext}$major'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 hardcode_into_libs=yes
19330 # ldd complains unless libraries are executable
19331 postinstall_cmds='chmod +x $lib'
19334 sunos4*)
19335 version_type=sunos
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19337 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath=yes
19340 if test "$with_gnu_ld" = yes; then
19341 need_lib_prefix=no
19343 need_version=yes
19346 sysv4 | sysv4.3*)
19347 version_type=linux
19348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349 soname_spec='${libname}${release}${shared_ext}$major'
19350 shlibpath_var=LD_LIBRARY_PATH
19351 case $host_vendor in
19352 sni)
19353 shlibpath_overrides_runpath=no
19354 need_lib_prefix=no
19355 export_dynamic_flag_spec='${wl}-Blargedynsym'
19356 runpath_var=LD_RUN_PATH
19358 siemens)
19359 need_lib_prefix=no
19361 motorola)
19362 need_lib_prefix=no
19363 need_version=no
19364 shlibpath_overrides_runpath=no
19365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19367 esac
19370 sysv4*MP*)
19371 if test -d /usr/nec ;then
19372 version_type=linux
19373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19374 soname_spec='$libname${shared_ext}.$major'
19375 shlibpath_var=LD_LIBRARY_PATH
19379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19380 version_type=freebsd-elf
19381 need_lib_prefix=no
19382 need_version=no
19383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19384 soname_spec='${libname}${release}${shared_ext}$major'
19385 shlibpath_var=LD_LIBRARY_PATH
19386 hardcode_into_libs=yes
19387 if test "$with_gnu_ld" = yes; then
19388 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19389 shlibpath_overrides_runpath=no
19390 else
19391 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19392 shlibpath_overrides_runpath=yes
19393 case $host_os in
19394 sco3.2v5*)
19395 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19397 esac
19399 sys_lib_dlsearch_path_spec='/usr/lib'
19402 uts4*)
19403 version_type=linux
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 shlibpath_var=LD_LIBRARY_PATH
19410 dynamic_linker=no
19412 esac
19413 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19414 echo "${ECHO_T}$dynamic_linker" >&6; }
19415 test "$dynamic_linker" = no && can_build_shared=no
19417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19430 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19432 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19433 if test "$GCC" = yes; then
19434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19437 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19438 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19439 hardcode_action_F77=
19440 if test -n "$hardcode_libdir_flag_spec_F77" || \
19441 test -n "$runpath_var_F77" || \
19442 test "X$hardcode_automatic_F77" = "Xyes" ; then
19444 # We can hardcode non-existant directories.
19445 if test "$hardcode_direct_F77" != no &&
19446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19447 # have to relink, otherwise we might link with an installed library
19448 # when we should be linking with a yet-to-be-installed one
19449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19450 test "$hardcode_minus_L_F77" != no; then
19451 # Linking always hardcodes the temporary library directory.
19452 hardcode_action_F77=relink
19453 else
19454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19455 hardcode_action_F77=immediate
19457 else
19458 # We cannot hardcode anything, or else we can only hardcode existing
19459 # directories.
19460 hardcode_action_F77=unsupported
19462 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19463 echo "${ECHO_T}$hardcode_action_F77" >&6; }
19465 if test "$hardcode_action_F77" = relink; then
19466 # Fast installation is not supported
19467 enable_fast_install=no
19468 elif test "$shlibpath_overrides_runpath" = yes ||
19469 test "$enable_shared" = no; then
19470 # Fast installation is not necessary
19471 enable_fast_install=needless
19475 # The else clause should only fire when bootstrapping the
19476 # libtool distribution, otherwise you forgot to ship ltmain.sh
19477 # with your package, and you will get complaints that there are
19478 # no rules to generate ltmain.sh.
19479 if test -f "$ltmain"; then
19480 # See if we are running on zsh, and set the options which allow our commands through
19481 # without removal of \ escapes.
19482 if test -n "${ZSH_VERSION+set}" ; then
19483 setopt NO_GLOB_SUBST
19485 # Now quote all the things that may contain metacharacters while being
19486 # careful not to overquote the AC_SUBSTed values. We take copies of the
19487 # variables and quote the copies for generation of the libtool script.
19488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19489 SED SHELL STRIP \
19490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19492 deplibs_check_method reload_flag reload_cmds need_locks \
19493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19494 lt_cv_sys_global_symbol_to_c_name_address \
19495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19496 old_postinstall_cmds old_postuninstall_cmds \
19497 compiler_F77 \
19498 CC_F77 \
19499 LD_F77 \
19500 lt_prog_compiler_wl_F77 \
19501 lt_prog_compiler_pic_F77 \
19502 lt_prog_compiler_static_F77 \
19503 lt_prog_compiler_no_builtin_flag_F77 \
19504 export_dynamic_flag_spec_F77 \
19505 thread_safe_flag_spec_F77 \
19506 whole_archive_flag_spec_F77 \
19507 enable_shared_with_static_runtimes_F77 \
19508 old_archive_cmds_F77 \
19509 old_archive_from_new_cmds_F77 \
19510 predep_objects_F77 \
19511 postdep_objects_F77 \
19512 predeps_F77 \
19513 postdeps_F77 \
19514 compiler_lib_search_path_F77 \
19515 compiler_lib_search_dirs_F77 \
19516 archive_cmds_F77 \
19517 archive_expsym_cmds_F77 \
19518 postinstall_cmds_F77 \
19519 postuninstall_cmds_F77 \
19520 old_archive_from_expsyms_cmds_F77 \
19521 allow_undefined_flag_F77 \
19522 no_undefined_flag_F77 \
19523 export_symbols_cmds_F77 \
19524 hardcode_libdir_flag_spec_F77 \
19525 hardcode_libdir_flag_spec_ld_F77 \
19526 hardcode_libdir_separator_F77 \
19527 hardcode_automatic_F77 \
19528 module_cmds_F77 \
19529 module_expsym_cmds_F77 \
19530 lt_cv_prog_compiler_c_o_F77 \
19531 fix_srcfile_path_F77 \
19532 exclude_expsyms_F77 \
19533 include_expsyms_F77; do
19535 case $var in
19536 old_archive_cmds_F77 | \
19537 old_archive_from_new_cmds_F77 | \
19538 archive_cmds_F77 | \
19539 archive_expsym_cmds_F77 | \
19540 module_cmds_F77 | \
19541 module_expsym_cmds_F77 | \
19542 old_archive_from_expsyms_cmds_F77 | \
19543 export_symbols_cmds_F77 | \
19544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19545 postinstall_cmds | postuninstall_cmds | \
19546 old_postinstall_cmds | old_postuninstall_cmds | \
19547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19548 # Double-quote double-evaled strings.
19549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19554 esac
19555 done
19557 case $lt_echo in
19558 *'\$0 --fallback-echo"')
19559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19561 esac
19563 cfgfile="$ofile"
19565 cat <<__EOF__ >> "$cfgfile"
19566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19570 # Shell to use when invoking shell scripts.
19571 SHELL=$lt_SHELL
19573 # Whether or not to build shared libraries.
19574 build_libtool_libs=$enable_shared
19576 # Whether or not to build static libraries.
19577 build_old_libs=$enable_static
19579 # Whether or not to add -lc for building shared libraries.
19580 build_libtool_need_lc=$archive_cmds_need_lc_F77
19582 # Whether or not to disallow shared libs when runtime libs are static
19583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19585 # Whether or not to optimize for fast installation.
19586 fast_install=$enable_fast_install
19588 # The host system.
19589 host_alias=$host_alias
19590 host=$host
19591 host_os=$host_os
19593 # The build system.
19594 build_alias=$build_alias
19595 build=$build
19596 build_os=$build_os
19598 # An echo program that does not interpret backslashes.
19599 echo=$lt_echo
19601 # The archiver.
19602 AR=$lt_AR
19603 AR_FLAGS=$lt_AR_FLAGS
19605 # A C compiler.
19606 LTCC=$lt_LTCC
19608 # LTCC compiler flags.
19609 LTCFLAGS=$lt_LTCFLAGS
19611 # A language-specific compiler.
19612 CC=$lt_compiler_F77
19614 # Is the compiler the GNU C compiler?
19615 with_gcc=$GCC_F77
19617 # An ERE matcher.
19618 EGREP=$lt_EGREP
19620 # The linker used to build libraries.
19621 LD=$lt_LD_F77
19623 # Whether we need hard or soft links.
19624 LN_S=$lt_LN_S
19626 # A BSD-compatible nm program.
19627 NM=$lt_NM
19629 # A symbol stripping program
19630 STRIP=$lt_STRIP
19632 # Used to examine libraries when file_magic_cmd begins "file"
19633 MAGIC_CMD=$MAGIC_CMD
19635 # Used on cygwin: DLL creation program.
19636 DLLTOOL="$DLLTOOL"
19638 # Used on cygwin: object dumper.
19639 OBJDUMP="$OBJDUMP"
19641 # Used on cygwin: assembler.
19642 AS="$AS"
19644 # The name of the directory that contains temporary libtool files.
19645 objdir=$objdir
19647 # How to create reloadable object files.
19648 reload_flag=$lt_reload_flag
19649 reload_cmds=$lt_reload_cmds
19651 # How to pass a linker flag through the compiler.
19652 wl=$lt_lt_prog_compiler_wl_F77
19654 # Object file suffix (normally "o").
19655 objext="$ac_objext"
19657 # Old archive suffix (normally "a").
19658 libext="$libext"
19660 # Shared library suffix (normally ".so").
19661 shrext_cmds='$shrext_cmds'
19663 # Executable file suffix (normally "").
19664 exeext="$exeext"
19666 # Additional compiler flags for building library objects.
19667 pic_flag=$lt_lt_prog_compiler_pic_F77
19668 pic_mode=$pic_mode
19670 # What is the maximum length of a command?
19671 max_cmd_len=$lt_cv_sys_max_cmd_len
19673 # Does compiler simultaneously support -c and -o options?
19674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19676 # Must we lock files when doing compilation?
19677 need_locks=$lt_need_locks
19679 # Do we need the lib prefix for modules?
19680 need_lib_prefix=$need_lib_prefix
19682 # Do we need a version for libraries?
19683 need_version=$need_version
19685 # Whether dlopen is supported.
19686 dlopen_support=$enable_dlopen
19688 # Whether dlopen of programs is supported.
19689 dlopen_self=$enable_dlopen_self
19691 # Whether dlopen of statically linked programs is supported.
19692 dlopen_self_static=$enable_dlopen_self_static
19694 # Compiler flag to prevent dynamic linking.
19695 link_static_flag=$lt_lt_prog_compiler_static_F77
19697 # Compiler flag to turn off builtin functions.
19698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19700 # Compiler flag to allow reflexive dlopens.
19701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19703 # Compiler flag to generate shared objects directly from archives.
19704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19706 # Compiler flag to generate thread-safe objects.
19707 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19709 # Library versioning type.
19710 version_type=$version_type
19712 # Format of library name prefix.
19713 libname_spec=$lt_libname_spec
19715 # List of archive names. First name is the real one, the rest are links.
19716 # The last name is the one that the linker finds with -lNAME.
19717 library_names_spec=$lt_library_names_spec
19719 # The coded name of the library, if different from the real name.
19720 soname_spec=$lt_soname_spec
19722 # Commands used to build and install an old-style archive.
19723 RANLIB=$lt_RANLIB
19724 old_archive_cmds=$lt_old_archive_cmds_F77
19725 old_postinstall_cmds=$lt_old_postinstall_cmds
19726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19728 # Create an old-style archive from a shared archive.
19729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19731 # Create a temporary old-style archive to link instead of a shared archive.
19732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19734 # Commands used to build and install a shared archive.
19735 archive_cmds=$lt_archive_cmds_F77
19736 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19737 postinstall_cmds=$lt_postinstall_cmds
19738 postuninstall_cmds=$lt_postuninstall_cmds
19740 # Commands used to build a loadable module (assumed same as above if empty)
19741 module_cmds=$lt_module_cmds_F77
19742 module_expsym_cmds=$lt_module_expsym_cmds_F77
19744 # Commands to strip libraries.
19745 old_striplib=$lt_old_striplib
19746 striplib=$lt_striplib
19748 # Dependencies to place before the objects being linked to create a
19749 # shared library.
19750 predep_objects=$lt_predep_objects_F77
19752 # Dependencies to place after the objects being linked to create a
19753 # shared library.
19754 postdep_objects=$lt_postdep_objects_F77
19756 # Dependencies to place before the objects being linked to create a
19757 # shared library.
19758 predeps=$lt_predeps_F77
19760 # Dependencies to place after the objects being linked to create a
19761 # shared library.
19762 postdeps=$lt_postdeps_F77
19764 # The directories searched by this compiler when creating a shared
19765 # library
19766 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
19768 # The library search path used internally by the compiler when linking
19769 # a shared library.
19770 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19772 # Method to check whether dependent libraries are shared objects.
19773 deplibs_check_method=$lt_deplibs_check_method
19775 # Command to use when deplibs_check_method == file_magic.
19776 file_magic_cmd=$lt_file_magic_cmd
19778 # Flag that allows shared libraries with undefined symbols to be built.
19779 allow_undefined_flag=$lt_allow_undefined_flag_F77
19781 # Flag that forces no undefined symbols.
19782 no_undefined_flag=$lt_no_undefined_flag_F77
19784 # Commands used to finish a libtool library installation in a directory.
19785 finish_cmds=$lt_finish_cmds
19787 # Same as above, but a single script fragment to be evaled but not shown.
19788 finish_eval=$lt_finish_eval
19790 # Take the output of nm and produce a listing of raw symbols and C names.
19791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19793 # Transform the output of nm in a proper C declaration
19794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19796 # Transform the output of nm in a C name address pair
19797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19799 # This is the shared library runtime path variable.
19800 runpath_var=$runpath_var
19802 # This is the shared library path variable.
19803 shlibpath_var=$shlibpath_var
19805 # Is shlibpath searched before the hard-coded library search path?
19806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19808 # How to hardcode a shared library path into an executable.
19809 hardcode_action=$hardcode_action_F77
19811 # Whether we should hardcode library paths into libraries.
19812 hardcode_into_libs=$hardcode_into_libs
19814 # Flag to hardcode \$libdir into a binary during linking.
19815 # This must work even if \$libdir does not exist.
19816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19818 # If ld is used when linking, flag to hardcode \$libdir into
19819 # a binary during linking. This must work even if \$libdir does
19820 # not exist.
19821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19823 # Whether we need a single -rpath flag with a separated argument.
19824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19827 # resulting binary.
19828 hardcode_direct=$hardcode_direct_F77
19830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19831 # resulting binary.
19832 hardcode_minus_L=$hardcode_minus_L_F77
19834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19835 # the resulting binary.
19836 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19838 # Set to yes if building a shared library automatically hardcodes DIR into the library
19839 # and all subsequent libraries and executables linked against it.
19840 hardcode_automatic=$hardcode_automatic_F77
19842 # Variables whose values should be saved in libtool wrapper scripts and
19843 # restored at relink time.
19844 variables_saved_for_relink="$variables_saved_for_relink"
19846 # Whether libtool must link a program against all its dependency libraries.
19847 link_all_deplibs=$link_all_deplibs_F77
19849 # Compile-time system search path for libraries
19850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19852 # Run-time system search path for libraries
19853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19855 # Fix the shell variable \$srcfile for the compiler.
19856 fix_srcfile_path=$lt_fix_srcfile_path
19858 # Set to yes if exported symbols are required.
19859 always_export_symbols=$always_export_symbols_F77
19861 # The commands to list exported symbols.
19862 export_symbols_cmds=$lt_export_symbols_cmds_F77
19864 # The commands to extract the exported symbol list from a shared archive.
19865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19867 # Symbols that should not be listed in the preloaded symbols.
19868 exclude_expsyms=$lt_exclude_expsyms_F77
19870 # Symbols that must always be exported.
19871 include_expsyms=$lt_include_expsyms_F77
19873 # ### END LIBTOOL TAG CONFIG: $tagname
19875 __EOF__
19878 else
19879 # If there is no Makefile yet, we rely on a make rule to execute
19880 # `config.status --recheck' to rerun these tests and create the
19881 # libtool script then.
19882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19883 if test -f "$ltmain_in"; then
19884 test -f Makefile && make "$ltmain"
19889 ac_ext=c
19890 ac_cpp='$CPP $CPPFLAGS'
19891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19895 CC="$lt_save_CC"
19897 else
19898 tagname=""
19902 GCJ)
19903 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19906 # Source file extension for Java test sources.
19907 ac_ext=java
19909 # Object file extension for compiled Java test sources.
19910 objext=o
19911 objext_GCJ=$objext
19913 # Code to be used in simple compile tests
19914 lt_simple_compile_test_code="class foo {}"
19916 # Code to be used in simple link tests
19917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19921 # If no C compiler was specified, use CC.
19922 LTCC=${LTCC-"$CC"}
19924 # If no C compiler flags were specified, use CFLAGS.
19925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19927 # Allow CC to be a program name with arguments.
19928 compiler=$CC
19931 # save warnings/boilerplate of simple test code
19932 ac_outfile=conftest.$ac_objext
19933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19935 _lt_compiler_boilerplate=`cat conftest.err`
19936 $rm conftest*
19938 ac_outfile=conftest.$ac_objext
19939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19941 _lt_linker_boilerplate=`cat conftest.err`
19942 $rm -r conftest*
19945 # Allow CC to be a program name with arguments.
19946 lt_save_CC="$CC"
19947 CC=${GCJ-"gcj"}
19948 compiler=$CC
19949 compiler_GCJ=$CC
19950 for cc_temp in $compiler""; do
19951 case $cc_temp in
19952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19954 \-*) ;;
19955 *) break;;
19956 esac
19957 done
19958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19962 archive_cmds_need_lc_GCJ=no
19964 old_archive_cmds_GCJ=$old_archive_cmds
19967 lt_prog_compiler_no_builtin_flag_GCJ=
19969 if test "$GCC" = yes; then
19970 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978 lt_cv_prog_compiler_rtti_exceptions=no
19979 ac_outfile=conftest.$ac_objext
19980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19981 lt_compiler_flag="-fno-rtti -fno-exceptions"
19982 # Insert the option either (1) after the last *FLAGS variable, or
19983 # (2) before a word containing "conftest.", or (3) at the end.
19984 # Note that $ac_compile itself does not contain backslashes and begins
19985 # with a dollar sign (not a hyphen), so the echo should work correctly.
19986 # The option is referenced via a variable to avoid confusing sed.
19987 lt_compile=`echo "$ac_compile" | $SED \
19988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19990 -e 's:$: $lt_compiler_flag:'`
19991 (eval echo "\"\$as_me:19991: $lt_compile\"" >&5)
19992 (eval "$lt_compile" 2>conftest.err)
19993 ac_status=$?
19994 cat conftest.err >&5
19995 echo "$as_me:19995: \$? = $ac_status" >&5
19996 if (exit $ac_status) && test -s "$ac_outfile"; then
19997 # The compiler can only warn and ignore the option if not recognized
19998 # So say no if there are warnings other than the usual output.
19999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20002 lt_cv_prog_compiler_rtti_exceptions=yes
20005 $rm conftest*
20008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
20011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20012 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20013 else
20019 lt_prog_compiler_wl_GCJ=
20020 lt_prog_compiler_pic_GCJ=
20021 lt_prog_compiler_static_GCJ=
20023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20026 if test "$GCC" = yes; then
20027 lt_prog_compiler_wl_GCJ='-Wl,'
20028 lt_prog_compiler_static_GCJ='-static'
20030 case $host_os in
20031 aix*)
20032 # All AIX code is PIC.
20033 if test "$host_cpu" = ia64; then
20034 # AIX 5 now supports IA64 processor
20035 lt_prog_compiler_static_GCJ='-Bstatic'
20039 amigaos*)
20040 # FIXME: we need at least 68020 code to build shared libraries, but
20041 # adding the `-m68020' flag to GCC prevents building anything better,
20042 # like `-m68040'.
20043 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20047 # PIC is the default for these OSes.
20050 mingw* | cygwin* | pw32* | os2*)
20051 # This hack is so that the source file can tell whether it is being
20052 # built for inclusion in a dll (and should export symbols for example).
20053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20054 # (--disable-auto-import) libraries
20058 darwin* | rhapsody*)
20059 # PIC is the default on this platform
20060 # Common symbols not allowed in MH_DYLIB files
20061 lt_prog_compiler_pic_GCJ='-fno-common'
20064 interix[3-9]*)
20065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20066 # Instead, we relocate shared libraries at runtime.
20069 msdosdjgpp*)
20070 # Just because we use GCC doesn't mean we suddenly get shared libraries
20071 # on systems that don't support them.
20072 lt_prog_compiler_can_build_shared_GCJ=no
20073 enable_shared=no
20076 sysv4*MP*)
20077 if test -d /usr/nec; then
20078 lt_prog_compiler_pic_GCJ=-Kconform_pic
20082 hpux*)
20083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20084 # not for PA HP-UX.
20085 case $host_cpu in
20086 hppa*64*|ia64*)
20087 # +Z the default
20090 lt_prog_compiler_pic_GCJ='-fPIC'
20092 esac
20096 lt_prog_compiler_pic_GCJ='-fPIC'
20098 esac
20099 else
20100 # PORTME Check for flag to pass linker flags through the system compiler.
20101 case $host_os in
20102 aix*)
20103 lt_prog_compiler_wl_GCJ='-Wl,'
20104 if test "$host_cpu" = ia64; then
20105 # AIX 5 now supports IA64 processor
20106 lt_prog_compiler_static_GCJ='-Bstatic'
20107 else
20108 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20111 darwin*)
20112 # PIC is the default on this platform
20113 # Common symbols not allowed in MH_DYLIB files
20114 case $cc_basename in
20115 xlc*)
20116 lt_prog_compiler_pic_GCJ='-qnocommon'
20117 lt_prog_compiler_wl_GCJ='-Wl,'
20119 esac
20122 mingw* | cygwin* | pw32* | os2*)
20123 # This hack is so that the source file can tell whether it is being
20124 # built for inclusion in a dll (and should export symbols for example).
20128 hpux9* | hpux10* | hpux11*)
20129 lt_prog_compiler_wl_GCJ='-Wl,'
20130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20131 # not for PA HP-UX.
20132 case $host_cpu in
20133 hppa*64*|ia64*)
20134 # +Z the default
20137 lt_prog_compiler_pic_GCJ='+Z'
20139 esac
20140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20141 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20144 irix5* | irix6* | nonstopux*)
20145 lt_prog_compiler_wl_GCJ='-Wl,'
20146 # PIC (with -KPIC) is the default.
20147 lt_prog_compiler_static_GCJ='-non_shared'
20150 newsos6)
20151 lt_prog_compiler_pic_GCJ='-KPIC'
20152 lt_prog_compiler_static_GCJ='-Bstatic'
20155 linux* | k*bsd*-gnu)
20156 case $cc_basename in
20157 icc* | ecc*)
20158 lt_prog_compiler_wl_GCJ='-Wl,'
20159 lt_prog_compiler_pic_GCJ='-KPIC'
20160 lt_prog_compiler_static_GCJ='-static'
20162 pgcc* | pgf77* | pgf90* | pgf95*)
20163 # Portland Group compilers (*not* the Pentium gcc compiler,
20164 # which looks to be a dead project)
20165 lt_prog_compiler_wl_GCJ='-Wl,'
20166 lt_prog_compiler_pic_GCJ='-fpic'
20167 lt_prog_compiler_static_GCJ='-Bstatic'
20169 ccc*)
20170 lt_prog_compiler_wl_GCJ='-Wl,'
20171 # All Alpha code is PIC.
20172 lt_prog_compiler_static_GCJ='-non_shared'
20175 case `$CC -V 2>&1 | sed 5q` in
20176 *Sun\ C*)
20177 # Sun C 5.9
20178 lt_prog_compiler_pic_GCJ='-KPIC'
20179 lt_prog_compiler_static_GCJ='-Bstatic'
20180 lt_prog_compiler_wl_GCJ='-Wl,'
20182 *Sun\ F*)
20183 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20184 lt_prog_compiler_pic_GCJ='-KPIC'
20185 lt_prog_compiler_static_GCJ='-Bstatic'
20186 lt_prog_compiler_wl_GCJ=''
20188 esac
20190 esac
20193 osf3* | osf4* | osf5*)
20194 lt_prog_compiler_wl_GCJ='-Wl,'
20195 # All OSF/1 code is PIC.
20196 lt_prog_compiler_static_GCJ='-non_shared'
20199 rdos*)
20200 lt_prog_compiler_static_GCJ='-non_shared'
20203 solaris*)
20204 lt_prog_compiler_pic_GCJ='-KPIC'
20205 lt_prog_compiler_static_GCJ='-Bstatic'
20206 case $cc_basename in
20207 f77* | f90* | f95*)
20208 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20210 lt_prog_compiler_wl_GCJ='-Wl,';;
20211 esac
20214 sunos4*)
20215 lt_prog_compiler_wl_GCJ='-Qoption ld '
20216 lt_prog_compiler_pic_GCJ='-PIC'
20217 lt_prog_compiler_static_GCJ='-Bstatic'
20220 sysv4 | sysv4.2uw2* | sysv4.3*)
20221 lt_prog_compiler_wl_GCJ='-Wl,'
20222 lt_prog_compiler_pic_GCJ='-KPIC'
20223 lt_prog_compiler_static_GCJ='-Bstatic'
20226 sysv4*MP*)
20227 if test -d /usr/nec ;then
20228 lt_prog_compiler_pic_GCJ='-Kconform_pic'
20229 lt_prog_compiler_static_GCJ='-Bstatic'
20233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20234 lt_prog_compiler_wl_GCJ='-Wl,'
20235 lt_prog_compiler_pic_GCJ='-KPIC'
20236 lt_prog_compiler_static_GCJ='-Bstatic'
20239 unicos*)
20240 lt_prog_compiler_wl_GCJ='-Wl,'
20241 lt_prog_compiler_can_build_shared_GCJ=no
20244 uts4*)
20245 lt_prog_compiler_pic_GCJ='-pic'
20246 lt_prog_compiler_static_GCJ='-Bstatic'
20250 lt_prog_compiler_can_build_shared_GCJ=no
20252 esac
20255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
20259 # Check to make sure the PIC flag actually works.
20261 if test -n "$lt_prog_compiler_pic_GCJ"; then
20263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
20265 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 lt_cv_prog_compiler_pic_works_GCJ=no
20269 ac_outfile=conftest.$ac_objext
20270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20271 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20272 # Insert the option either (1) after the last *FLAGS variable, or
20273 # (2) before a word containing "conftest.", or (3) at the end.
20274 # Note that $ac_compile itself does not contain backslashes and begins
20275 # with a dollar sign (not a hyphen), so the echo should work correctly.
20276 # The option is referenced via a variable to avoid confusing sed.
20277 lt_compile=`echo "$ac_compile" | $SED \
20278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20280 -e 's:$: $lt_compiler_flag:'`
20281 (eval echo "\"\$as_me:20281: $lt_compile\"" >&5)
20282 (eval "$lt_compile" 2>conftest.err)
20283 ac_status=$?
20284 cat conftest.err >&5
20285 echo "$as_me:20285: \$? = $ac_status" >&5
20286 if (exit $ac_status) && test -s "$ac_outfile"; then
20287 # The compiler can only warn and ignore the option if not recognized
20288 # So say no if there are warnings other than the usual output.
20289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20292 lt_cv_prog_compiler_pic_works_GCJ=yes
20295 $rm conftest*
20298 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
20299 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
20301 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
20302 case $lt_prog_compiler_pic_GCJ in
20303 "" | " "*) ;;
20304 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20305 esac
20306 else
20307 lt_prog_compiler_pic_GCJ=
20308 lt_prog_compiler_can_build_shared_GCJ=no
20312 case $host_os in
20313 # For platforms which do not support PIC, -DPIC is meaningless:
20314 *djgpp*)
20315 lt_prog_compiler_pic_GCJ=
20318 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20320 esac
20323 # Check to make sure the static flag actually works.
20325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20328 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20330 else
20331 lt_cv_prog_compiler_static_works_GCJ=no
20332 save_LDFLAGS="$LDFLAGS"
20333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20336 # The linker can only warn and ignore the option if not recognized
20337 # So say no if there are warnings
20338 if test -s conftest.err; then
20339 # Append any errors to the config.log.
20340 cat conftest.err 1>&5
20341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20343 if diff conftest.exp conftest.er2 >/dev/null; then
20344 lt_cv_prog_compiler_static_works_GCJ=yes
20346 else
20347 lt_cv_prog_compiler_static_works_GCJ=yes
20350 $rm -r conftest*
20351 LDFLAGS="$save_LDFLAGS"
20354 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20355 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20357 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
20359 else
20360 lt_prog_compiler_static_GCJ=
20364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369 lt_cv_prog_compiler_c_o_GCJ=no
20370 $rm -r conftest 2>/dev/null
20371 mkdir conftest
20372 cd conftest
20373 mkdir out
20374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20376 lt_compiler_flag="-o out/conftest2.$ac_objext"
20377 # Insert the option either (1) after the last *FLAGS variable, or
20378 # (2) before a word containing "conftest.", or (3) at the end.
20379 # Note that $ac_compile itself does not contain backslashes and begins
20380 # with a dollar sign (not a hyphen), so the echo should work correctly.
20381 lt_compile=`echo "$ac_compile" | $SED \
20382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20384 -e 's:$: $lt_compiler_flag:'`
20385 (eval echo "\"\$as_me:20385: $lt_compile\"" >&5)
20386 (eval "$lt_compile" 2>out/conftest.err)
20387 ac_status=$?
20388 cat out/conftest.err >&5
20389 echo "$as_me:20389: \$? = $ac_status" >&5
20390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20391 then
20392 # The compiler can only warn and ignore the option if not recognized
20393 # So say no if there are warnings
20394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20397 lt_cv_prog_compiler_c_o_GCJ=yes
20400 chmod u+w . 2>&5
20401 $rm conftest*
20402 # SGI C++ compiler will create directory out/ii_files/ for
20403 # template instantiation
20404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20405 $rm out/* && rmdir out
20406 cd ..
20407 rmdir conftest
20408 $rm conftest*
20411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20415 hard_links="nottested"
20416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20417 # do not overwrite the value of need_locks provided by the user
20418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20420 hard_links=yes
20421 $rm conftest*
20422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20423 touch conftest.a
20424 ln conftest.a conftest.b 2>&5 || hard_links=no
20425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20426 { echo "$as_me:$LINENO: result: $hard_links" >&5
20427 echo "${ECHO_T}$hard_links" >&6; }
20428 if test "$hard_links" = no; then
20429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20431 need_locks=warn
20433 else
20434 need_locks=no
20437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20440 runpath_var=
20441 allow_undefined_flag_GCJ=
20442 enable_shared_with_static_runtimes_GCJ=no
20443 archive_cmds_GCJ=
20444 archive_expsym_cmds_GCJ=
20445 old_archive_From_new_cmds_GCJ=
20446 old_archive_from_expsyms_cmds_GCJ=
20447 export_dynamic_flag_spec_GCJ=
20448 whole_archive_flag_spec_GCJ=
20449 thread_safe_flag_spec_GCJ=
20450 hardcode_libdir_flag_spec_GCJ=
20451 hardcode_libdir_flag_spec_ld_GCJ=
20452 hardcode_libdir_separator_GCJ=
20453 hardcode_direct_GCJ=no
20454 hardcode_minus_L_GCJ=no
20455 hardcode_shlibpath_var_GCJ=unsupported
20456 link_all_deplibs_GCJ=unknown
20457 hardcode_automatic_GCJ=no
20458 module_cmds_GCJ=
20459 module_expsym_cmds_GCJ=
20460 always_export_symbols_GCJ=no
20461 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20462 # include_expsyms should be a list of space-separated symbols to be *always*
20463 # included in the symbol list
20464 include_expsyms_GCJ=
20465 # exclude_expsyms can be an extended regexp of symbols to exclude
20466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20468 # as well as any symbol that contains `d'.
20469 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20471 # platforms (ab)use it in PIC code, but their linkers get confused if
20472 # the symbol is explicitly referenced. Since portable code cannot
20473 # rely on this symbol name, it's probably fine to never include it in
20474 # preloaded symbol tables.
20475 # Exclude shared library initialization/finalization symbols.
20476 extract_expsyms_cmds=
20477 # Just being paranoid about ensuring that cc_basename is set.
20478 for cc_temp in $compiler""; do
20479 case $cc_temp in
20480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20482 \-*) ;;
20483 *) break;;
20484 esac
20485 done
20486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20488 case $host_os in
20489 cygwin* | mingw* | pw32*)
20490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20491 # When not using gcc, we currently assume that we are using
20492 # Microsoft Visual C++.
20493 if test "$GCC" != yes; then
20494 with_gnu_ld=no
20497 interix*)
20498 # we just hope/assume this is gcc and not c89 (= MSVC++)
20499 with_gnu_ld=yes
20501 openbsd*)
20502 with_gnu_ld=no
20504 esac
20506 ld_shlibs_GCJ=yes
20507 if test "$with_gnu_ld" = yes; then
20508 # If archive_cmds runs LD, not CC, wlarc should be empty
20509 wlarc='${wl}'
20511 # Set some defaults for GNU ld with shared library support. These
20512 # are reset later if shared libraries are not supported. Putting them
20513 # here allows them to be overridden if necessary.
20514 runpath_var=LD_RUN_PATH
20515 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20516 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20517 # ancient GNU ld didn't support --whole-archive et. al.
20518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20519 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20520 else
20521 whole_archive_flag_spec_GCJ=
20523 supports_anon_versioning=no
20524 case `$LD -v 2>/dev/null` in
20525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20528 *\ 2.11.*) ;; # other 2.11 versions
20529 *) supports_anon_versioning=yes ;;
20530 esac
20532 # See if GNU ld supports shared libraries.
20533 case $host_os in
20534 aix[3-9]*)
20535 # On AIX/PPC, the GNU linker is very broken
20536 if test "$host_cpu" != ia64; then
20537 ld_shlibs_GCJ=no
20538 cat <<EOF 1>&2
20540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20541 *** to be unable to reliably create shared libraries on AIX.
20542 *** Therefore, libtool is disabling shared libraries support. If you
20543 *** really care for shared libraries, you may want to modify your PATH
20544 *** so that a non-GNU linker is found, and then restart.
20550 amigaos*)
20551 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)'
20552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20553 hardcode_minus_L_GCJ=yes
20555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20556 # that the semantics of dynamic libraries on AmigaOS, at least up
20557 # to version 4, is to share data among multiple programs linked
20558 # with the same dynamic library. Since this doesn't match the
20559 # behavior of shared libraries on other platforms, we can't use
20560 # them.
20561 ld_shlibs_GCJ=no
20564 beos*)
20565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20566 allow_undefined_flag_GCJ=unsupported
20567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20568 # support --undefined. This deserves some investigation. FIXME
20569 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20570 else
20571 ld_shlibs_GCJ=no
20575 cygwin* | mingw* | pw32*)
20576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20577 # as there is no search path for DLLs.
20578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20579 allow_undefined_flag_GCJ=unsupported
20580 always_export_symbols_GCJ=no
20581 enable_shared_with_static_runtimes_GCJ=yes
20582 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20585 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20586 # If the export-symbols file already is a .def file (1st line
20587 # is EXPORTS), use it as is; otherwise, prepend...
20588 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20589 cp $export_symbols $output_objdir/$soname.def;
20590 else
20591 echo EXPORTS > $output_objdir/$soname.def;
20592 cat $export_symbols >> $output_objdir/$soname.def;
20594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20595 else
20596 ld_shlibs_GCJ=no
20600 interix[3-9]*)
20601 hardcode_direct_GCJ=no
20602 hardcode_shlibpath_var_GCJ=no
20603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20604 export_dynamic_flag_spec_GCJ='${wl}-E'
20605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20606 # Instead, shared libraries are loaded at an image base (0x10000000 by
20607 # default) and relocated if they conflict, which is a slow very memory
20608 # consuming and fragmenting process. To avoid this, we pick a random,
20609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20611 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'
20612 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'
20615 gnu* | linux* | k*bsd*-gnu)
20616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20617 tmp_addflag=
20618 case $cc_basename,$host_cpu in
20619 pgcc*) # Portland Group C compiler
20620 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'
20621 tmp_addflag=' $pic_flag'
20623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20624 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'
20625 tmp_addflag=' $pic_flag -Mnomain' ;;
20626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20627 tmp_addflag=' -i_dynamic' ;;
20628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20629 tmp_addflag=' -i_dynamic -nofor_main' ;;
20630 ifc* | ifort*) # Intel Fortran compiler
20631 tmp_addflag=' -nofor_main' ;;
20632 esac
20633 case `$CC -V 2>&1 | sed 5q` in
20634 *Sun\ C*) # Sun C 5.9
20635 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20636 tmp_sharedflag='-G' ;;
20637 *Sun\ F*) # Sun Fortran 8.3
20638 tmp_sharedflag='-G' ;;
20640 tmp_sharedflag='-shared' ;;
20641 esac
20642 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20644 if test $supports_anon_versioning = yes; then
20645 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20647 $echo "local: *; };" >> $output_objdir/$libname.ver~
20648 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20650 link_all_deplibs_GCJ=no
20651 else
20652 ld_shlibs_GCJ=no
20656 netbsd* | netbsdelf*-gnu)
20657 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20658 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20659 wlarc=
20660 else
20661 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20662 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20666 solaris*)
20667 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20668 ld_shlibs_GCJ=no
20669 cat <<EOF 1>&2
20671 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20672 *** create shared libraries on Solaris systems. Therefore, libtool
20673 *** is disabling shared libraries support. We urge you to upgrade GNU
20674 *** binutils to release 2.9.1 or newer. Another option is to modify
20675 *** your PATH or compiler configuration so that the native linker is
20676 *** used, and then restart.
20679 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20680 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20681 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20682 else
20683 ld_shlibs_GCJ=no
20687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20688 case `$LD -v 2>&1` in
20689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20690 ld_shlibs_GCJ=no
20691 cat <<_LT_EOF 1>&2
20693 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20694 *** reliably create shared libraries on SCO systems. Therefore, libtool
20695 *** is disabling shared libraries support. We urge you to upgrade GNU
20696 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20697 *** your PATH or compiler configuration so that the native linker is
20698 *** used, and then restart.
20700 _LT_EOF
20703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20704 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20705 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20706 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20707 else
20708 ld_shlibs_GCJ=no
20711 esac
20714 sunos4*)
20715 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20716 wlarc=
20717 hardcode_direct_GCJ=yes
20718 hardcode_shlibpath_var_GCJ=no
20722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20723 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20724 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20725 else
20726 ld_shlibs_GCJ=no
20729 esac
20731 if test "$ld_shlibs_GCJ" = no; then
20732 runpath_var=
20733 hardcode_libdir_flag_spec_GCJ=
20734 export_dynamic_flag_spec_GCJ=
20735 whole_archive_flag_spec_GCJ=
20737 else
20738 # PORTME fill in a description of your system's linker (not GNU ld)
20739 case $host_os in
20740 aix3*)
20741 allow_undefined_flag_GCJ=unsupported
20742 always_export_symbols_GCJ=yes
20743 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'
20744 # Note: this linker hardcodes the directories in LIBPATH if there
20745 # are no directories specified by -L.
20746 hardcode_minus_L_GCJ=yes
20747 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20748 # Neither direct hardcoding nor static linking is supported with a
20749 # broken collect2.
20750 hardcode_direct_GCJ=unsupported
20754 aix[4-9]*)
20755 if test "$host_cpu" = ia64; then
20756 # On IA64, the linker does run time linking by default, so we don't
20757 # have to do anything special.
20758 aix_use_runtimelinking=no
20759 exp_sym_flag='-Bexport'
20760 no_entry_flag=""
20761 else
20762 # If we're using GNU nm, then we don't want the "-C" option.
20763 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20764 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20765 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'
20766 else
20767 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'
20769 aix_use_runtimelinking=no
20771 # Test if we are trying to use run time linking or normal
20772 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20773 # need to do runtime linking.
20774 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20775 for ld_flag in $LDFLAGS; do
20776 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20777 aix_use_runtimelinking=yes
20778 break
20780 done
20782 esac
20784 exp_sym_flag='-bexport'
20785 no_entry_flag='-bnoentry'
20788 # When large executables or shared objects are built, AIX ld can
20789 # have problems creating the table of contents. If linking a library
20790 # or program results in "error TOC overflow" add -mminimal-toc to
20791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20794 archive_cmds_GCJ=''
20795 hardcode_direct_GCJ=yes
20796 hardcode_libdir_separator_GCJ=':'
20797 link_all_deplibs_GCJ=yes
20799 if test "$GCC" = yes; then
20800 case $host_os in aix4.[012]|aix4.[012].*)
20801 # We only want to do this on AIX 4.2 and lower, the check
20802 # below for broken collect2 doesn't work under 4.3+
20803 collect2name=`${CC} -print-prog-name=collect2`
20804 if test -f "$collect2name" && \
20805 strings "$collect2name" | grep resolve_lib_name >/dev/null
20806 then
20807 # We have reworked collect2
20809 else
20810 # We have old collect2
20811 hardcode_direct_GCJ=unsupported
20812 # It fails to find uninstalled libraries when the uninstalled
20813 # path is not listed in the libpath. Setting hardcode_minus_L
20814 # to unsupported forces relinking
20815 hardcode_minus_L_GCJ=yes
20816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20817 hardcode_libdir_separator_GCJ=
20820 esac
20821 shared_flag='-shared'
20822 if test "$aix_use_runtimelinking" = yes; then
20823 shared_flag="$shared_flag "'${wl}-G'
20825 else
20826 # not using gcc
20827 if test "$host_cpu" = ia64; then
20828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20829 # chokes on -Wl,-G. The following line is correct:
20830 shared_flag='-G'
20831 else
20832 if test "$aix_use_runtimelinking" = yes; then
20833 shared_flag='${wl}-G'
20834 else
20835 shared_flag='${wl}-bM:SRE'
20840 # It seems that -bexpall does not export symbols beginning with
20841 # underscore (_), so it is better to generate a list of symbols to export.
20842 always_export_symbols_GCJ=yes
20843 if test "$aix_use_runtimelinking" = yes; then
20844 # Warning - without using the other runtime loading flags (-brtl),
20845 # -berok will link without error, but may produce a broken library.
20846 allow_undefined_flag_GCJ='-berok'
20847 # Determine the default libpath from the value encoded in an empty executable.
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20856 main ()
20860 return 0;
20862 _ACEOF
20863 rm -f conftest.$ac_objext conftest$ac_exeext
20864 if { (ac_try="$ac_link"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_link") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest$ac_exeext &&
20880 $as_test_x conftest$ac_exeext; then
20882 lt_aix_libpath_sed='
20883 /Import File Strings/,/^$/ {
20884 /^0/ {
20885 s/^0 *\(.*\)$/\1/
20889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20890 # Check for a 64-bit object if we didn't find anything.
20891 if test -z "$aix_libpath"; then
20892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20894 else
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20902 conftest$ac_exeext conftest.$ac_ext
20903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20905 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20906 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"
20907 else
20908 if test "$host_cpu" = ia64; then
20909 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20910 allow_undefined_flag_GCJ="-z nodefs"
20911 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"
20912 else
20913 # Determine the default libpath from the value encoded in an empty executable.
20914 cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h. */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20922 main ()
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_link") 2>conftest.er1
20937 ac_status=$?
20938 grep -v '^ *+' conftest.er1 >conftest.err
20939 rm -f conftest.er1
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest$ac_exeext &&
20946 $as_test_x conftest$ac_exeext; then
20948 lt_aix_libpath_sed='
20949 /Import File Strings/,/^$/ {
20950 /^0/ {
20951 s/^0 *\(.*\)$/\1/
20955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20956 # Check for a 64-bit object if we didn't find anything.
20957 if test -z "$aix_libpath"; then
20958 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20960 else
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20971 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20972 # Warning - without using the other run time loading flags,
20973 # -berok will link without error, but may produce a broken library.
20974 no_undefined_flag_GCJ=' ${wl}-bernotok'
20975 allow_undefined_flag_GCJ=' ${wl}-berok'
20976 # Exported symbols can be pulled into shared objects from archives
20977 whole_archive_flag_spec_GCJ='$convenience'
20978 archive_cmds_need_lc_GCJ=yes
20979 # This is similar to how AIX traditionally builds its shared libraries.
20980 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'
20985 amigaos*)
20986 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)'
20987 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20988 hardcode_minus_L_GCJ=yes
20989 # see comment about different semantics on the GNU ld section
20990 ld_shlibs_GCJ=no
20993 bsdi[45]*)
20994 export_dynamic_flag_spec_GCJ=-rdynamic
20997 cygwin* | mingw* | pw32*)
20998 # When not using gcc, we currently assume that we are using
20999 # Microsoft Visual C++.
21000 # hardcode_libdir_flag_spec is actually meaningless, as there is
21001 # no search path for DLLs.
21002 hardcode_libdir_flag_spec_GCJ=' '
21003 allow_undefined_flag_GCJ=unsupported
21004 # Tell ltmain to make .lib files, not .a files.
21005 libext=lib
21006 # Tell ltmain to make .dll files, not .so files.
21007 shrext_cmds=".dll"
21008 # FIXME: Setting linknames here is a bad hack.
21009 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21010 # The linker will automatically build a .lib file if we build a DLL.
21011 old_archive_From_new_cmds_GCJ='true'
21012 # FIXME: Should let the user specify the lib program.
21013 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
21014 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
21015 enable_shared_with_static_runtimes_GCJ=yes
21018 darwin* | rhapsody*)
21019 case $host_os in
21020 rhapsody* | darwin1.[012])
21021 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21023 *) # Darwin 1.3 on
21024 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21025 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21026 else
21027 case ${MACOSX_DEPLOYMENT_TARGET} in
21028 10.[012])
21029 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21031 10.*)
21032 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21034 esac
21037 esac
21038 archive_cmds_need_lc_GCJ=no
21039 hardcode_direct_GCJ=no
21040 hardcode_automatic_GCJ=yes
21041 hardcode_shlibpath_var_GCJ=unsupported
21042 whole_archive_flag_spec_GCJ=''
21043 link_all_deplibs_GCJ=yes
21044 if test "$GCC" = yes ; then
21045 output_verbose_link_cmd='echo'
21046 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
21047 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21048 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
21049 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
21050 else
21051 case $cc_basename in
21052 xlc*)
21053 output_verbose_link_cmd='echo'
21054 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21055 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21056 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21057 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21058 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}'
21061 ld_shlibs_GCJ=no
21063 esac
21067 dgux*)
21068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21070 hardcode_shlibpath_var_GCJ=no
21073 freebsd1*)
21074 ld_shlibs_GCJ=no
21077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21078 # support. Future versions do this automatically, but an explicit c++rt0.o
21079 # does not break anything, and helps significantly (at the cost of a little
21080 # extra space).
21081 freebsd2.2*)
21082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21084 hardcode_direct_GCJ=yes
21085 hardcode_shlibpath_var_GCJ=no
21088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21089 freebsd2*)
21090 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21091 hardcode_direct_GCJ=yes
21092 hardcode_minus_L_GCJ=yes
21093 hardcode_shlibpath_var_GCJ=no
21096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21097 freebsd* | dragonfly*)
21098 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21099 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21100 hardcode_direct_GCJ=yes
21101 hardcode_shlibpath_var_GCJ=no
21104 hpux9*)
21105 if test "$GCC" = yes; then
21106 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'
21107 else
21108 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'
21110 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21111 hardcode_libdir_separator_GCJ=:
21112 hardcode_direct_GCJ=yes
21114 # hardcode_minus_L: Not really in the search PATH,
21115 # but as the default location of the library.
21116 hardcode_minus_L_GCJ=yes
21117 export_dynamic_flag_spec_GCJ='${wl}-E'
21120 hpux10*)
21121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21122 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21123 else
21124 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21126 if test "$with_gnu_ld" = no; then
21127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21128 hardcode_libdir_separator_GCJ=:
21130 hardcode_direct_GCJ=yes
21131 export_dynamic_flag_spec_GCJ='${wl}-E'
21133 # hardcode_minus_L: Not really in the search PATH,
21134 # but as the default location of the library.
21135 hardcode_minus_L_GCJ=yes
21139 hpux11*)
21140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21141 case $host_cpu in
21142 hppa*64*)
21143 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21145 ia64*)
21146 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21149 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21151 esac
21152 else
21153 case $host_cpu in
21154 hppa*64*)
21155 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21157 ia64*)
21158 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21161 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21163 esac
21165 if test "$with_gnu_ld" = no; then
21166 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21167 hardcode_libdir_separator_GCJ=:
21169 case $host_cpu in
21170 hppa*64*|ia64*)
21171 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21172 hardcode_direct_GCJ=no
21173 hardcode_shlibpath_var_GCJ=no
21176 hardcode_direct_GCJ=yes
21177 export_dynamic_flag_spec_GCJ='${wl}-E'
21179 # hardcode_minus_L: Not really in the search PATH,
21180 # but as the default location of the library.
21181 hardcode_minus_L_GCJ=yes
21183 esac
21187 irix5* | irix6* | nonstopux*)
21188 if test "$GCC" = yes; then
21189 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'
21190 else
21191 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'
21192 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21194 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21195 hardcode_libdir_separator_GCJ=:
21196 link_all_deplibs_GCJ=yes
21199 netbsd* | netbsdelf*-gnu)
21200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21201 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21202 else
21203 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21206 hardcode_direct_GCJ=yes
21207 hardcode_shlibpath_var_GCJ=no
21210 newsos6)
21211 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21212 hardcode_direct_GCJ=yes
21213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21214 hardcode_libdir_separator_GCJ=:
21215 hardcode_shlibpath_var_GCJ=no
21218 openbsd*)
21219 if test -f /usr/libexec/ld.so; then
21220 hardcode_direct_GCJ=yes
21221 hardcode_shlibpath_var_GCJ=no
21222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21223 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21224 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21226 export_dynamic_flag_spec_GCJ='${wl}-E'
21227 else
21228 case $host_os in
21229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21231 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21234 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21237 esac
21239 else
21240 ld_shlibs_GCJ=no
21244 os2*)
21245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21246 hardcode_minus_L_GCJ=yes
21247 allow_undefined_flag_GCJ=unsupported
21248 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'
21249 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21252 osf3*)
21253 if test "$GCC" = yes; then
21254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21255 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'
21256 else
21257 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21258 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'
21260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21261 hardcode_libdir_separator_GCJ=:
21264 osf4* | osf5*) # as osf3* with the addition of -msym flag
21265 if test "$GCC" = yes; then
21266 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21267 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'
21268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21269 else
21270 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21271 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'
21272 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~
21273 $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'
21275 # Both c and cxx compiler support -rpath directly
21276 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21278 hardcode_libdir_separator_GCJ=:
21281 solaris*)
21282 no_undefined_flag_GCJ=' -z text'
21283 if test "$GCC" = yes; then
21284 wlarc='${wl}'
21285 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21286 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21287 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21288 else
21289 wlarc=''
21290 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21294 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21295 hardcode_shlibpath_var_GCJ=no
21296 case $host_os in
21297 solaris2.[0-5] | solaris2.[0-5].*) ;;
21299 # The compiler driver will combine and reorder linker options,
21300 # but understands `-z linker_flag'. GCC discards it without `$wl',
21301 # but is careful enough not to reorder.
21302 # Supported since Solaris 2.6 (maybe 2.5.1?)
21303 if test "$GCC" = yes; then
21304 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21305 else
21306 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
21309 esac
21310 link_all_deplibs_GCJ=yes
21313 sunos4*)
21314 if test "x$host_vendor" = xsequent; then
21315 # Use $CC to link under sequent, because it throws in some extra .o
21316 # files that make .init and .fini sections work.
21317 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21318 else
21319 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21321 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21322 hardcode_direct_GCJ=yes
21323 hardcode_minus_L_GCJ=yes
21324 hardcode_shlibpath_var_GCJ=no
21327 sysv4)
21328 case $host_vendor in
21329 sni)
21330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21331 hardcode_direct_GCJ=yes # is this really true???
21333 siemens)
21334 ## LD is ld it makes a PLAMLIB
21335 ## CC just makes a GrossModule.
21336 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21337 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21338 hardcode_direct_GCJ=no
21340 motorola)
21341 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21342 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21344 esac
21345 runpath_var='LD_RUN_PATH'
21346 hardcode_shlibpath_var_GCJ=no
21349 sysv4.3*)
21350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21351 hardcode_shlibpath_var_GCJ=no
21352 export_dynamic_flag_spec_GCJ='-Bexport'
21355 sysv4*MP*)
21356 if test -d /usr/nec; then
21357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21358 hardcode_shlibpath_var_GCJ=no
21359 runpath_var=LD_RUN_PATH
21360 hardcode_runpath_var=yes
21361 ld_shlibs_GCJ=yes
21365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21366 no_undefined_flag_GCJ='${wl}-z,text'
21367 archive_cmds_need_lc_GCJ=no
21368 hardcode_shlibpath_var_GCJ=no
21369 runpath_var='LD_RUN_PATH'
21371 if test "$GCC" = yes; then
21372 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21373 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21374 else
21375 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21376 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21380 sysv5* | sco3.2v5* | sco5v6*)
21381 # Note: We can NOT use -z defs as we might desire, because we do not
21382 # link with -lc, and that would cause any symbols used from libc to
21383 # always be unresolved, which means just about no library would
21384 # ever link correctly. If we're not using GNU ld we use -z text
21385 # though, which does catch some bad symbols but isn't as heavy-handed
21386 # as -z defs.
21387 no_undefined_flag_GCJ='${wl}-z,text'
21388 allow_undefined_flag_GCJ='${wl}-z,nodefs'
21389 archive_cmds_need_lc_GCJ=no
21390 hardcode_shlibpath_var_GCJ=no
21391 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21392 hardcode_libdir_separator_GCJ=':'
21393 link_all_deplibs_GCJ=yes
21394 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21395 runpath_var='LD_RUN_PATH'
21397 if test "$GCC" = yes; then
21398 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21399 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21400 else
21401 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21402 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21406 uts4*)
21407 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21409 hardcode_shlibpath_var_GCJ=no
21413 ld_shlibs_GCJ=no
21415 esac
21418 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21419 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21420 test "$ld_shlibs_GCJ" = no && can_build_shared=no
21423 # Do we need to explicitly link libc?
21425 case "x$archive_cmds_need_lc_GCJ" in
21426 x|xyes)
21427 # Assume -lc should be added
21428 archive_cmds_need_lc_GCJ=yes
21430 if test "$enable_shared" = yes && test "$GCC" = yes; then
21431 case $archive_cmds_GCJ in
21432 *'~'*)
21433 # FIXME: we may have to deal with multi-command sequences.
21435 '$CC '*)
21436 # Test whether the compiler implicitly links with -lc since on some
21437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21438 # to ld, don't add -lc before -lgcc.
21439 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21441 $rm conftest*
21442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21445 (eval $ac_compile) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } 2>conftest.err; then
21449 soname=conftest
21450 lib=conftest
21451 libobjs=conftest.$ac_objext
21452 deplibs=
21453 wl=$lt_prog_compiler_wl_GCJ
21454 pic_flag=$lt_prog_compiler_pic_GCJ
21455 compiler_flags=-v
21456 linker_flags=-v
21457 verstring=
21458 output_objdir=.
21459 libname=conftest
21460 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21461 allow_undefined_flag_GCJ=
21462 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21463 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }
21467 then
21468 archive_cmds_need_lc_GCJ=no
21469 else
21470 archive_cmds_need_lc_GCJ=yes
21472 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21473 else
21474 cat conftest.err 1>&5
21476 $rm conftest*
21477 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21478 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21480 esac
21483 esac
21485 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21486 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21487 library_names_spec=
21488 libname_spec='lib$name'
21489 soname_spec=
21490 shrext_cmds=".so"
21491 postinstall_cmds=
21492 postuninstall_cmds=
21493 finish_cmds=
21494 finish_eval=
21495 shlibpath_var=
21496 shlibpath_overrides_runpath=unknown
21497 version_type=none
21498 dynamic_linker="$host_os ld.so"
21499 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21501 need_lib_prefix=unknown
21502 hardcode_into_libs=no
21504 # when you set need_version to no, make sure it does not cause -set_version
21505 # flags to be left without arguments
21506 need_version=unknown
21508 case $host_os in
21509 aix3*)
21510 version_type=linux
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21512 shlibpath_var=LIBPATH
21514 # AIX 3 has no versioning support, so we append a major version to the name.
21515 soname_spec='${libname}${release}${shared_ext}$major'
21518 aix[4-9]*)
21519 version_type=linux
21520 need_lib_prefix=no
21521 need_version=no
21522 hardcode_into_libs=yes
21523 if test "$host_cpu" = ia64; then
21524 # AIX 5 supports IA64
21525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21526 shlibpath_var=LD_LIBRARY_PATH
21527 else
21528 # With GCC up to 2.95.x, collect2 would create an import file
21529 # for dependence libraries. The import file would start with
21530 # the line `#! .'. This would cause the generated library to
21531 # depend on `.', always an invalid library. This was fixed in
21532 # development snapshots of GCC prior to 3.0.
21533 case $host_os in
21534 aix4 | aix4.[01] | aix4.[01].*)
21535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21536 echo ' yes '
21537 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21539 else
21540 can_build_shared=no
21543 esac
21544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21545 # soname into executable. Probably we can add versioning support to
21546 # collect2, so additional links can be useful in future.
21547 if test "$aix_use_runtimelinking" = yes; then
21548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21549 # instead of lib<name>.a to let people know that these are not
21550 # typical AIX shared libraries.
21551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21552 else
21553 # We preserve .a as extension for shared libraries through AIX4.2
21554 # and later when we are not doing run time linking.
21555 library_names_spec='${libname}${release}.a $libname.a'
21556 soname_spec='${libname}${release}${shared_ext}$major'
21558 shlibpath_var=LIBPATH
21562 amigaos*)
21563 library_names_spec='$libname.ixlibrary $libname.a'
21564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21565 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'
21568 beos*)
21569 library_names_spec='${libname}${shared_ext}'
21570 dynamic_linker="$host_os ld.so"
21571 shlibpath_var=LIBRARY_PATH
21574 bsdi[45]*)
21575 version_type=linux
21576 need_version=no
21577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21578 soname_spec='${libname}${release}${shared_ext}$major'
21579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21580 shlibpath_var=LD_LIBRARY_PATH
21581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21583 # the default ld.so.conf also contains /usr/contrib/lib and
21584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21585 # libtool to hard-code these into programs
21588 cygwin* | mingw* | pw32*)
21589 version_type=windows
21590 shrext_cmds=".dll"
21591 need_version=no
21592 need_lib_prefix=no
21594 case $GCC,$host_os in
21595 yes,cygwin* | yes,mingw* | yes,pw32*)
21596 library_names_spec='$libname.dll.a'
21597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21598 postinstall_cmds='base_file=`basename \${file}`~
21599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21600 dldir=$destdir/`dirname \$dlpath`~
21601 test -d \$dldir || mkdir -p \$dldir~
21602 $install_prog $dir/$dlname \$dldir/$dlname~
21603 chmod a+x \$dldir/$dlname'
21604 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21605 dlpath=$dir/\$dldll~
21606 $rm \$dlpath'
21607 shlibpath_overrides_runpath=yes
21609 case $host_os in
21610 cygwin*)
21611 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21612 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21613 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21615 mingw*)
21616 # MinGW DLLs use traditional 'lib' prefix
21617 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21619 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21620 # It is most probably a Windows format PATH printed by
21621 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21622 # path with ; separators, and with drive letters. We can handle the
21623 # drive letters (cygwin fileutils understands them), so leave them,
21624 # especially as we might pass files found there to a mingw objdump,
21625 # which wouldn't understand a cygwinified path. Ahh.
21626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21627 else
21628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21631 pw32*)
21632 # pw32 DLLs use 'pw' prefix rather than 'lib'
21633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21635 esac
21639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21641 esac
21642 dynamic_linker='Win32 ld.exe'
21643 # FIXME: first we should search . and the directory the executable is in
21644 shlibpath_var=PATH
21647 darwin* | rhapsody*)
21648 dynamic_linker="$host_os dyld"
21649 version_type=darwin
21650 need_lib_prefix=no
21651 need_version=no
21652 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21653 soname_spec='${libname}${release}${major}$shared_ext'
21654 shlibpath_overrides_runpath=yes
21655 shlibpath_var=DYLD_LIBRARY_PATH
21656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21661 dgux*)
21662 version_type=linux
21663 need_lib_prefix=no
21664 need_version=no
21665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21666 soname_spec='${libname}${release}${shared_ext}$major'
21667 shlibpath_var=LD_LIBRARY_PATH
21670 freebsd1*)
21671 dynamic_linker=no
21674 freebsd* | dragonfly*)
21675 # DragonFly does not have aout. When/if they implement a new
21676 # versioning mechanism, adjust this.
21677 if test -x /usr/bin/objformat; then
21678 objformat=`/usr/bin/objformat`
21679 else
21680 case $host_os in
21681 freebsd[123]*) objformat=aout ;;
21682 *) objformat=elf ;;
21683 esac
21685 version_type=freebsd-$objformat
21686 case $version_type in
21687 freebsd-elf*)
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21689 need_version=no
21690 need_lib_prefix=no
21692 freebsd-*)
21693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21694 need_version=yes
21696 esac
21697 shlibpath_var=LD_LIBRARY_PATH
21698 case $host_os in
21699 freebsd2*)
21700 shlibpath_overrides_runpath=yes
21702 freebsd3.[01]* | freebsdelf3.[01]*)
21703 shlibpath_overrides_runpath=yes
21704 hardcode_into_libs=yes
21706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21708 shlibpath_overrides_runpath=no
21709 hardcode_into_libs=yes
21711 *) # from 4.6 on, and DragonFly
21712 shlibpath_overrides_runpath=yes
21713 hardcode_into_libs=yes
21715 esac
21718 gnu*)
21719 version_type=linux
21720 need_lib_prefix=no
21721 need_version=no
21722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21723 soname_spec='${libname}${release}${shared_ext}$major'
21724 shlibpath_var=LD_LIBRARY_PATH
21725 hardcode_into_libs=yes
21728 hpux9* | hpux10* | hpux11*)
21729 # Give a soname corresponding to the major version so that dld.sl refuses to
21730 # link against other versions.
21731 version_type=sunos
21732 need_lib_prefix=no
21733 need_version=no
21734 case $host_cpu in
21735 ia64*)
21736 shrext_cmds='.so'
21737 hardcode_into_libs=yes
21738 dynamic_linker="$host_os dld.so"
21739 shlibpath_var=LD_LIBRARY_PATH
21740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21742 soname_spec='${libname}${release}${shared_ext}$major'
21743 if test "X$HPUX_IA64_MODE" = X32; then
21744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21745 else
21746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21750 hppa*64*)
21751 shrext_cmds='.sl'
21752 hardcode_into_libs=yes
21753 dynamic_linker="$host_os dld.sl"
21754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21757 soname_spec='${libname}${release}${shared_ext}$major'
21758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21762 shrext_cmds='.sl'
21763 dynamic_linker="$host_os dld.sl"
21764 shlibpath_var=SHLIB_PATH
21765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21767 soname_spec='${libname}${release}${shared_ext}$major'
21769 esac
21770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21771 postinstall_cmds='chmod 555 $lib'
21774 interix[3-9]*)
21775 version_type=linux
21776 need_lib_prefix=no
21777 need_version=no
21778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21779 soname_spec='${libname}${release}${shared_ext}$major'
21780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21781 shlibpath_var=LD_LIBRARY_PATH
21782 shlibpath_overrides_runpath=no
21783 hardcode_into_libs=yes
21786 irix5* | irix6* | nonstopux*)
21787 case $host_os in
21788 nonstopux*) version_type=nonstopux ;;
21790 if test "$lt_cv_prog_gnu_ld" = yes; then
21791 version_type=linux
21792 else
21793 version_type=irix
21794 fi ;;
21795 esac
21796 need_lib_prefix=no
21797 need_version=no
21798 soname_spec='${libname}${release}${shared_ext}$major'
21799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21800 case $host_os in
21801 irix5* | nonstopux*)
21802 libsuff= shlibsuff=
21805 case $LD in # libtool.m4 will add one of these switches to LD
21806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21807 libsuff= shlibsuff= libmagic=32-bit;;
21808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21809 libsuff=32 shlibsuff=N32 libmagic=N32;;
21810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21812 *) libsuff= shlibsuff= libmagic=never-match;;
21813 esac
21815 esac
21816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21817 shlibpath_overrides_runpath=no
21818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21820 hardcode_into_libs=yes
21823 # No shared lib support for Linux oldld, aout, or coff.
21824 linux*oldld* | linux*aout* | linux*coff*)
21825 dynamic_linker=no
21828 # This must be Linux ELF.
21829 linux* | k*bsd*-gnu)
21830 version_type=linux
21831 need_lib_prefix=no
21832 need_version=no
21833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21834 soname_spec='${libname}${release}${shared_ext}$major'
21835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21836 shlibpath_var=LD_LIBRARY_PATH
21837 shlibpath_overrides_runpath=no
21838 # This implies no fast_install, which is unacceptable.
21839 # Some rework will be needed to allow for fast_install
21840 # before this can be enabled.
21841 hardcode_into_libs=yes
21843 # Append ld.so.conf contents to the search path
21844 if test -f /etc/ld.so.conf; then
21845 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21849 # We used to test for /lib/ld.so.1 and disable shared libraries on
21850 # powerpc, because MkLinux only supported shared libraries with the
21851 # GNU dynamic linker. Since this was broken with cross compilers,
21852 # most powerpc-linux boxes support dynamic linking these days and
21853 # people can always --disable-shared, the test was removed, and we
21854 # assume the GNU/Linux dynamic linker is in use.
21855 dynamic_linker='GNU/Linux ld.so'
21858 netbsdelf*-gnu)
21859 version_type=linux
21860 need_lib_prefix=no
21861 need_version=no
21862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21863 soname_spec='${libname}${release}${shared_ext}$major'
21864 shlibpath_var=LD_LIBRARY_PATH
21865 shlibpath_overrides_runpath=no
21866 hardcode_into_libs=yes
21867 dynamic_linker='NetBSD ld.elf_so'
21870 netbsd*)
21871 version_type=sunos
21872 need_lib_prefix=no
21873 need_version=no
21874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21877 dynamic_linker='NetBSD (a.out) ld.so'
21878 else
21879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21880 soname_spec='${libname}${release}${shared_ext}$major'
21881 dynamic_linker='NetBSD ld.elf_so'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath=yes
21885 hardcode_into_libs=yes
21888 newsos6)
21889 version_type=linux
21890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21891 shlibpath_var=LD_LIBRARY_PATH
21892 shlibpath_overrides_runpath=yes
21895 nto-qnx*)
21896 version_type=linux
21897 need_lib_prefix=no
21898 need_version=no
21899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21900 soname_spec='${libname}${release}${shared_ext}$major'
21901 shlibpath_var=LD_LIBRARY_PATH
21902 shlibpath_overrides_runpath=yes
21905 openbsd*)
21906 version_type=sunos
21907 sys_lib_dlsearch_path_spec="/usr/lib"
21908 need_lib_prefix=no
21909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21910 case $host_os in
21911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21912 *) need_version=no ;;
21913 esac
21914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21916 shlibpath_var=LD_LIBRARY_PATH
21917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21918 case $host_os in
21919 openbsd2.[89] | openbsd2.[89].*)
21920 shlibpath_overrides_runpath=no
21923 shlibpath_overrides_runpath=yes
21925 esac
21926 else
21927 shlibpath_overrides_runpath=yes
21931 os2*)
21932 libname_spec='$name'
21933 shrext_cmds=".dll"
21934 need_lib_prefix=no
21935 library_names_spec='$libname${shared_ext} $libname.a'
21936 dynamic_linker='OS/2 ld.exe'
21937 shlibpath_var=LIBPATH
21940 osf3* | osf4* | osf5*)
21941 version_type=osf
21942 need_lib_prefix=no
21943 need_version=no
21944 soname_spec='${libname}${release}${shared_ext}$major'
21945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21946 shlibpath_var=LD_LIBRARY_PATH
21947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21951 rdos*)
21952 dynamic_linker=no
21955 solaris*)
21956 version_type=linux
21957 need_lib_prefix=no
21958 need_version=no
21959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960 soname_spec='${libname}${release}${shared_ext}$major'
21961 shlibpath_var=LD_LIBRARY_PATH
21962 shlibpath_overrides_runpath=yes
21963 hardcode_into_libs=yes
21964 # ldd complains unless libraries are executable
21965 postinstall_cmds='chmod +x $lib'
21968 sunos4*)
21969 version_type=sunos
21970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21972 shlibpath_var=LD_LIBRARY_PATH
21973 shlibpath_overrides_runpath=yes
21974 if test "$with_gnu_ld" = yes; then
21975 need_lib_prefix=no
21977 need_version=yes
21980 sysv4 | sysv4.3*)
21981 version_type=linux
21982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21983 soname_spec='${libname}${release}${shared_ext}$major'
21984 shlibpath_var=LD_LIBRARY_PATH
21985 case $host_vendor in
21986 sni)
21987 shlibpath_overrides_runpath=no
21988 need_lib_prefix=no
21989 export_dynamic_flag_spec='${wl}-Blargedynsym'
21990 runpath_var=LD_RUN_PATH
21992 siemens)
21993 need_lib_prefix=no
21995 motorola)
21996 need_lib_prefix=no
21997 need_version=no
21998 shlibpath_overrides_runpath=no
21999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22001 esac
22004 sysv4*MP*)
22005 if test -d /usr/nec ;then
22006 version_type=linux
22007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22008 soname_spec='$libname${shared_ext}.$major'
22009 shlibpath_var=LD_LIBRARY_PATH
22013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22014 version_type=freebsd-elf
22015 need_lib_prefix=no
22016 need_version=no
22017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22018 soname_spec='${libname}${release}${shared_ext}$major'
22019 shlibpath_var=LD_LIBRARY_PATH
22020 hardcode_into_libs=yes
22021 if test "$with_gnu_ld" = yes; then
22022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22023 shlibpath_overrides_runpath=no
22024 else
22025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22026 shlibpath_overrides_runpath=yes
22027 case $host_os in
22028 sco3.2v5*)
22029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22031 esac
22033 sys_lib_dlsearch_path_spec='/usr/lib'
22036 uts4*)
22037 version_type=linux
22038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22039 soname_spec='${libname}${release}${shared_ext}$major'
22040 shlibpath_var=LD_LIBRARY_PATH
22044 dynamic_linker=no
22046 esac
22047 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22048 echo "${ECHO_T}$dynamic_linker" >&6; }
22049 test "$dynamic_linker" = no && can_build_shared=no
22051 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22057 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22060 else
22061 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22064 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22067 if test "$GCC" = yes; then
22068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22073 hardcode_action_GCJ=
22074 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22075 test -n "$runpath_var_GCJ" || \
22076 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22078 # We can hardcode non-existant directories.
22079 if test "$hardcode_direct_GCJ" != no &&
22080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22081 # have to relink, otherwise we might link with an installed library
22082 # when we should be linking with a yet-to-be-installed one
22083 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22084 test "$hardcode_minus_L_GCJ" != no; then
22085 # Linking always hardcodes the temporary library directory.
22086 hardcode_action_GCJ=relink
22087 else
22088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22089 hardcode_action_GCJ=immediate
22091 else
22092 # We cannot hardcode anything, or else we can only hardcode existing
22093 # directories.
22094 hardcode_action_GCJ=unsupported
22096 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22097 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
22099 if test "$hardcode_action_GCJ" = relink; then
22100 # Fast installation is not supported
22101 enable_fast_install=no
22102 elif test "$shlibpath_overrides_runpath" = yes ||
22103 test "$enable_shared" = no; then
22104 # Fast installation is not necessary
22105 enable_fast_install=needless
22109 # The else clause should only fire when bootstrapping the
22110 # libtool distribution, otherwise you forgot to ship ltmain.sh
22111 # with your package, and you will get complaints that there are
22112 # no rules to generate ltmain.sh.
22113 if test -f "$ltmain"; then
22114 # See if we are running on zsh, and set the options which allow our commands through
22115 # without removal of \ escapes.
22116 if test -n "${ZSH_VERSION+set}" ; then
22117 setopt NO_GLOB_SUBST
22119 # Now quote all the things that may contain metacharacters while being
22120 # careful not to overquote the AC_SUBSTed values. We take copies of the
22121 # variables and quote the copies for generation of the libtool script.
22122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22123 SED SHELL STRIP \
22124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22126 deplibs_check_method reload_flag reload_cmds need_locks \
22127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22128 lt_cv_sys_global_symbol_to_c_name_address \
22129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22130 old_postinstall_cmds old_postuninstall_cmds \
22131 compiler_GCJ \
22132 CC_GCJ \
22133 LD_GCJ \
22134 lt_prog_compiler_wl_GCJ \
22135 lt_prog_compiler_pic_GCJ \
22136 lt_prog_compiler_static_GCJ \
22137 lt_prog_compiler_no_builtin_flag_GCJ \
22138 export_dynamic_flag_spec_GCJ \
22139 thread_safe_flag_spec_GCJ \
22140 whole_archive_flag_spec_GCJ \
22141 enable_shared_with_static_runtimes_GCJ \
22142 old_archive_cmds_GCJ \
22143 old_archive_from_new_cmds_GCJ \
22144 predep_objects_GCJ \
22145 postdep_objects_GCJ \
22146 predeps_GCJ \
22147 postdeps_GCJ \
22148 compiler_lib_search_path_GCJ \
22149 compiler_lib_search_dirs_GCJ \
22150 archive_cmds_GCJ \
22151 archive_expsym_cmds_GCJ \
22152 postinstall_cmds_GCJ \
22153 postuninstall_cmds_GCJ \
22154 old_archive_from_expsyms_cmds_GCJ \
22155 allow_undefined_flag_GCJ \
22156 no_undefined_flag_GCJ \
22157 export_symbols_cmds_GCJ \
22158 hardcode_libdir_flag_spec_GCJ \
22159 hardcode_libdir_flag_spec_ld_GCJ \
22160 hardcode_libdir_separator_GCJ \
22161 hardcode_automatic_GCJ \
22162 module_cmds_GCJ \
22163 module_expsym_cmds_GCJ \
22164 lt_cv_prog_compiler_c_o_GCJ \
22165 fix_srcfile_path_GCJ \
22166 exclude_expsyms_GCJ \
22167 include_expsyms_GCJ; do
22169 case $var in
22170 old_archive_cmds_GCJ | \
22171 old_archive_from_new_cmds_GCJ | \
22172 archive_cmds_GCJ | \
22173 archive_expsym_cmds_GCJ | \
22174 module_cmds_GCJ | \
22175 module_expsym_cmds_GCJ | \
22176 old_archive_from_expsyms_cmds_GCJ | \
22177 export_symbols_cmds_GCJ | \
22178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22179 postinstall_cmds | postuninstall_cmds | \
22180 old_postinstall_cmds | old_postuninstall_cmds | \
22181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22182 # Double-quote double-evaled strings.
22183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22188 esac
22189 done
22191 case $lt_echo in
22192 *'\$0 --fallback-echo"')
22193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22195 esac
22197 cfgfile="$ofile"
22199 cat <<__EOF__ >> "$cfgfile"
22200 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22204 # Shell to use when invoking shell scripts.
22205 SHELL=$lt_SHELL
22207 # Whether or not to build shared libraries.
22208 build_libtool_libs=$enable_shared
22210 # Whether or not to build static libraries.
22211 build_old_libs=$enable_static
22213 # Whether or not to add -lc for building shared libraries.
22214 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22216 # Whether or not to disallow shared libs when runtime libs are static
22217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22219 # Whether or not to optimize for fast installation.
22220 fast_install=$enable_fast_install
22222 # The host system.
22223 host_alias=$host_alias
22224 host=$host
22225 host_os=$host_os
22227 # The build system.
22228 build_alias=$build_alias
22229 build=$build
22230 build_os=$build_os
22232 # An echo program that does not interpret backslashes.
22233 echo=$lt_echo
22235 # The archiver.
22236 AR=$lt_AR
22237 AR_FLAGS=$lt_AR_FLAGS
22239 # A C compiler.
22240 LTCC=$lt_LTCC
22242 # LTCC compiler flags.
22243 LTCFLAGS=$lt_LTCFLAGS
22245 # A language-specific compiler.
22246 CC=$lt_compiler_GCJ
22248 # Is the compiler the GNU C compiler?
22249 with_gcc=$GCC_GCJ
22251 # An ERE matcher.
22252 EGREP=$lt_EGREP
22254 # The linker used to build libraries.
22255 LD=$lt_LD_GCJ
22257 # Whether we need hard or soft links.
22258 LN_S=$lt_LN_S
22260 # A BSD-compatible nm program.
22261 NM=$lt_NM
22263 # A symbol stripping program
22264 STRIP=$lt_STRIP
22266 # Used to examine libraries when file_magic_cmd begins "file"
22267 MAGIC_CMD=$MAGIC_CMD
22269 # Used on cygwin: DLL creation program.
22270 DLLTOOL="$DLLTOOL"
22272 # Used on cygwin: object dumper.
22273 OBJDUMP="$OBJDUMP"
22275 # Used on cygwin: assembler.
22276 AS="$AS"
22278 # The name of the directory that contains temporary libtool files.
22279 objdir=$objdir
22281 # How to create reloadable object files.
22282 reload_flag=$lt_reload_flag
22283 reload_cmds=$lt_reload_cmds
22285 # How to pass a linker flag through the compiler.
22286 wl=$lt_lt_prog_compiler_wl_GCJ
22288 # Object file suffix (normally "o").
22289 objext="$ac_objext"
22291 # Old archive suffix (normally "a").
22292 libext="$libext"
22294 # Shared library suffix (normally ".so").
22295 shrext_cmds='$shrext_cmds'
22297 # Executable file suffix (normally "").
22298 exeext="$exeext"
22300 # Additional compiler flags for building library objects.
22301 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22302 pic_mode=$pic_mode
22304 # What is the maximum length of a command?
22305 max_cmd_len=$lt_cv_sys_max_cmd_len
22307 # Does compiler simultaneously support -c and -o options?
22308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22310 # Must we lock files when doing compilation?
22311 need_locks=$lt_need_locks
22313 # Do we need the lib prefix for modules?
22314 need_lib_prefix=$need_lib_prefix
22316 # Do we need a version for libraries?
22317 need_version=$need_version
22319 # Whether dlopen is supported.
22320 dlopen_support=$enable_dlopen
22322 # Whether dlopen of programs is supported.
22323 dlopen_self=$enable_dlopen_self
22325 # Whether dlopen of statically linked programs is supported.
22326 dlopen_self_static=$enable_dlopen_self_static
22328 # Compiler flag to prevent dynamic linking.
22329 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22331 # Compiler flag to turn off builtin functions.
22332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22334 # Compiler flag to allow reflexive dlopens.
22335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22337 # Compiler flag to generate shared objects directly from archives.
22338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22340 # Compiler flag to generate thread-safe objects.
22341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22343 # Library versioning type.
22344 version_type=$version_type
22346 # Format of library name prefix.
22347 libname_spec=$lt_libname_spec
22349 # List of archive names. First name is the real one, the rest are links.
22350 # The last name is the one that the linker finds with -lNAME.
22351 library_names_spec=$lt_library_names_spec
22353 # The coded name of the library, if different from the real name.
22354 soname_spec=$lt_soname_spec
22356 # Commands used to build and install an old-style archive.
22357 RANLIB=$lt_RANLIB
22358 old_archive_cmds=$lt_old_archive_cmds_GCJ
22359 old_postinstall_cmds=$lt_old_postinstall_cmds
22360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22362 # Create an old-style archive from a shared archive.
22363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22365 # Create a temporary old-style archive to link instead of a shared archive.
22366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22368 # Commands used to build and install a shared archive.
22369 archive_cmds=$lt_archive_cmds_GCJ
22370 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22371 postinstall_cmds=$lt_postinstall_cmds
22372 postuninstall_cmds=$lt_postuninstall_cmds
22374 # Commands used to build a loadable module (assumed same as above if empty)
22375 module_cmds=$lt_module_cmds_GCJ
22376 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22378 # Commands to strip libraries.
22379 old_striplib=$lt_old_striplib
22380 striplib=$lt_striplib
22382 # Dependencies to place before the objects being linked to create a
22383 # shared library.
22384 predep_objects=$lt_predep_objects_GCJ
22386 # Dependencies to place after the objects being linked to create a
22387 # shared library.
22388 postdep_objects=$lt_postdep_objects_GCJ
22390 # Dependencies to place before the objects being linked to create a
22391 # shared library.
22392 predeps=$lt_predeps_GCJ
22394 # Dependencies to place after the objects being linked to create a
22395 # shared library.
22396 postdeps=$lt_postdeps_GCJ
22398 # The directories searched by this compiler when creating a shared
22399 # library
22400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22402 # The library search path used internally by the compiler when linking
22403 # a shared library.
22404 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22406 # Method to check whether dependent libraries are shared objects.
22407 deplibs_check_method=$lt_deplibs_check_method
22409 # Command to use when deplibs_check_method == file_magic.
22410 file_magic_cmd=$lt_file_magic_cmd
22412 # Flag that allows shared libraries with undefined symbols to be built.
22413 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22415 # Flag that forces no undefined symbols.
22416 no_undefined_flag=$lt_no_undefined_flag_GCJ
22418 # Commands used to finish a libtool library installation in a directory.
22419 finish_cmds=$lt_finish_cmds
22421 # Same as above, but a single script fragment to be evaled but not shown.
22422 finish_eval=$lt_finish_eval
22424 # Take the output of nm and produce a listing of raw symbols and C names.
22425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22427 # Transform the output of nm in a proper C declaration
22428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22430 # Transform the output of nm in a C name address pair
22431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22433 # This is the shared library runtime path variable.
22434 runpath_var=$runpath_var
22436 # This is the shared library path variable.
22437 shlibpath_var=$shlibpath_var
22439 # Is shlibpath searched before the hard-coded library search path?
22440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22442 # How to hardcode a shared library path into an executable.
22443 hardcode_action=$hardcode_action_GCJ
22445 # Whether we should hardcode library paths into libraries.
22446 hardcode_into_libs=$hardcode_into_libs
22448 # Flag to hardcode \$libdir into a binary during linking.
22449 # This must work even if \$libdir does not exist.
22450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22452 # If ld is used when linking, flag to hardcode \$libdir into
22453 # a binary during linking. This must work even if \$libdir does
22454 # not exist.
22455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22457 # Whether we need a single -rpath flag with a separated argument.
22458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22461 # resulting binary.
22462 hardcode_direct=$hardcode_direct_GCJ
22464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22465 # resulting binary.
22466 hardcode_minus_L=$hardcode_minus_L_GCJ
22468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22469 # the resulting binary.
22470 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22472 # Set to yes if building a shared library automatically hardcodes DIR into the library
22473 # and all subsequent libraries and executables linked against it.
22474 hardcode_automatic=$hardcode_automatic_GCJ
22476 # Variables whose values should be saved in libtool wrapper scripts and
22477 # restored at relink time.
22478 variables_saved_for_relink="$variables_saved_for_relink"
22480 # Whether libtool must link a program against all its dependency libraries.
22481 link_all_deplibs=$link_all_deplibs_GCJ
22483 # Compile-time system search path for libraries
22484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22486 # Run-time system search path for libraries
22487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22489 # Fix the shell variable \$srcfile for the compiler.
22490 fix_srcfile_path=$lt_fix_srcfile_path
22492 # Set to yes if exported symbols are required.
22493 always_export_symbols=$always_export_symbols_GCJ
22495 # The commands to list exported symbols.
22496 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22498 # The commands to extract the exported symbol list from a shared archive.
22499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22501 # Symbols that should not be listed in the preloaded symbols.
22502 exclude_expsyms=$lt_exclude_expsyms_GCJ
22504 # Symbols that must always be exported.
22505 include_expsyms=$lt_include_expsyms_GCJ
22507 # ### END LIBTOOL TAG CONFIG: $tagname
22509 __EOF__
22512 else
22513 # If there is no Makefile yet, we rely on a make rule to execute
22514 # `config.status --recheck' to rerun these tests and create the
22515 # libtool script then.
22516 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22517 if test -f "$ltmain_in"; then
22518 test -f Makefile && make "$ltmain"
22523 ac_ext=c
22524 ac_cpp='$CPP $CPPFLAGS'
22525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22529 CC="$lt_save_CC"
22531 else
22532 tagname=""
22539 # Source file extension for RC test sources.
22540 ac_ext=rc
22542 # Object file extension for compiled RC test sources.
22543 objext=o
22544 objext_RC=$objext
22546 # Code to be used in simple compile tests
22547 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22549 # Code to be used in simple link tests
22550 lt_simple_link_test_code="$lt_simple_compile_test_code"
22552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22554 # If no C compiler was specified, use CC.
22555 LTCC=${LTCC-"$CC"}
22557 # If no C compiler flags were specified, use CFLAGS.
22558 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22560 # Allow CC to be a program name with arguments.
22561 compiler=$CC
22564 # save warnings/boilerplate of simple test code
22565 ac_outfile=conftest.$ac_objext
22566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22568 _lt_compiler_boilerplate=`cat conftest.err`
22569 $rm conftest*
22571 ac_outfile=conftest.$ac_objext
22572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22574 _lt_linker_boilerplate=`cat conftest.err`
22575 $rm -r conftest*
22578 # Allow CC to be a program name with arguments.
22579 lt_save_CC="$CC"
22580 CC=${RC-"windres"}
22581 compiler=$CC
22582 compiler_RC=$CC
22583 for cc_temp in $compiler""; do
22584 case $cc_temp in
22585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22587 \-*) ;;
22588 *) break;;
22589 esac
22590 done
22591 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22593 lt_cv_prog_compiler_c_o_RC=yes
22595 # The else clause should only fire when bootstrapping the
22596 # libtool distribution, otherwise you forgot to ship ltmain.sh
22597 # with your package, and you will get complaints that there are
22598 # no rules to generate ltmain.sh.
22599 if test -f "$ltmain"; then
22600 # See if we are running on zsh, and set the options which allow our commands through
22601 # without removal of \ escapes.
22602 if test -n "${ZSH_VERSION+set}" ; then
22603 setopt NO_GLOB_SUBST
22605 # Now quote all the things that may contain metacharacters while being
22606 # careful not to overquote the AC_SUBSTed values. We take copies of the
22607 # variables and quote the copies for generation of the libtool script.
22608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22609 SED SHELL STRIP \
22610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22612 deplibs_check_method reload_flag reload_cmds need_locks \
22613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22614 lt_cv_sys_global_symbol_to_c_name_address \
22615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22616 old_postinstall_cmds old_postuninstall_cmds \
22617 compiler_RC \
22618 CC_RC \
22619 LD_RC \
22620 lt_prog_compiler_wl_RC \
22621 lt_prog_compiler_pic_RC \
22622 lt_prog_compiler_static_RC \
22623 lt_prog_compiler_no_builtin_flag_RC \
22624 export_dynamic_flag_spec_RC \
22625 thread_safe_flag_spec_RC \
22626 whole_archive_flag_spec_RC \
22627 enable_shared_with_static_runtimes_RC \
22628 old_archive_cmds_RC \
22629 old_archive_from_new_cmds_RC \
22630 predep_objects_RC \
22631 postdep_objects_RC \
22632 predeps_RC \
22633 postdeps_RC \
22634 compiler_lib_search_path_RC \
22635 compiler_lib_search_dirs_RC \
22636 archive_cmds_RC \
22637 archive_expsym_cmds_RC \
22638 postinstall_cmds_RC \
22639 postuninstall_cmds_RC \
22640 old_archive_from_expsyms_cmds_RC \
22641 allow_undefined_flag_RC \
22642 no_undefined_flag_RC \
22643 export_symbols_cmds_RC \
22644 hardcode_libdir_flag_spec_RC \
22645 hardcode_libdir_flag_spec_ld_RC \
22646 hardcode_libdir_separator_RC \
22647 hardcode_automatic_RC \
22648 module_cmds_RC \
22649 module_expsym_cmds_RC \
22650 lt_cv_prog_compiler_c_o_RC \
22651 fix_srcfile_path_RC \
22652 exclude_expsyms_RC \
22653 include_expsyms_RC; do
22655 case $var in
22656 old_archive_cmds_RC | \
22657 old_archive_from_new_cmds_RC | \
22658 archive_cmds_RC | \
22659 archive_expsym_cmds_RC | \
22660 module_cmds_RC | \
22661 module_expsym_cmds_RC | \
22662 old_archive_from_expsyms_cmds_RC | \
22663 export_symbols_cmds_RC | \
22664 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22665 postinstall_cmds | postuninstall_cmds | \
22666 old_postinstall_cmds | old_postuninstall_cmds | \
22667 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22668 # Double-quote double-evaled strings.
22669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22674 esac
22675 done
22677 case $lt_echo in
22678 *'\$0 --fallback-echo"')
22679 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22681 esac
22683 cfgfile="$ofile"
22685 cat <<__EOF__ >> "$cfgfile"
22686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22690 # Shell to use when invoking shell scripts.
22691 SHELL=$lt_SHELL
22693 # Whether or not to build shared libraries.
22694 build_libtool_libs=$enable_shared
22696 # Whether or not to build static libraries.
22697 build_old_libs=$enable_static
22699 # Whether or not to add -lc for building shared libraries.
22700 build_libtool_need_lc=$archive_cmds_need_lc_RC
22702 # Whether or not to disallow shared libs when runtime libs are static
22703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22705 # Whether or not to optimize for fast installation.
22706 fast_install=$enable_fast_install
22708 # The host system.
22709 host_alias=$host_alias
22710 host=$host
22711 host_os=$host_os
22713 # The build system.
22714 build_alias=$build_alias
22715 build=$build
22716 build_os=$build_os
22718 # An echo program that does not interpret backslashes.
22719 echo=$lt_echo
22721 # The archiver.
22722 AR=$lt_AR
22723 AR_FLAGS=$lt_AR_FLAGS
22725 # A C compiler.
22726 LTCC=$lt_LTCC
22728 # LTCC compiler flags.
22729 LTCFLAGS=$lt_LTCFLAGS
22731 # A language-specific compiler.
22732 CC=$lt_compiler_RC
22734 # Is the compiler the GNU C compiler?
22735 with_gcc=$GCC_RC
22737 # An ERE matcher.
22738 EGREP=$lt_EGREP
22740 # The linker used to build libraries.
22741 LD=$lt_LD_RC
22743 # Whether we need hard or soft links.
22744 LN_S=$lt_LN_S
22746 # A BSD-compatible nm program.
22747 NM=$lt_NM
22749 # A symbol stripping program
22750 STRIP=$lt_STRIP
22752 # Used to examine libraries when file_magic_cmd begins "file"
22753 MAGIC_CMD=$MAGIC_CMD
22755 # Used on cygwin: DLL creation program.
22756 DLLTOOL="$DLLTOOL"
22758 # Used on cygwin: object dumper.
22759 OBJDUMP="$OBJDUMP"
22761 # Used on cygwin: assembler.
22762 AS="$AS"
22764 # The name of the directory that contains temporary libtool files.
22765 objdir=$objdir
22767 # How to create reloadable object files.
22768 reload_flag=$lt_reload_flag
22769 reload_cmds=$lt_reload_cmds
22771 # How to pass a linker flag through the compiler.
22772 wl=$lt_lt_prog_compiler_wl_RC
22774 # Object file suffix (normally "o").
22775 objext="$ac_objext"
22777 # Old archive suffix (normally "a").
22778 libext="$libext"
22780 # Shared library suffix (normally ".so").
22781 shrext_cmds='$shrext_cmds'
22783 # Executable file suffix (normally "").
22784 exeext="$exeext"
22786 # Additional compiler flags for building library objects.
22787 pic_flag=$lt_lt_prog_compiler_pic_RC
22788 pic_mode=$pic_mode
22790 # What is the maximum length of a command?
22791 max_cmd_len=$lt_cv_sys_max_cmd_len
22793 # Does compiler simultaneously support -c and -o options?
22794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22796 # Must we lock files when doing compilation?
22797 need_locks=$lt_need_locks
22799 # Do we need the lib prefix for modules?
22800 need_lib_prefix=$need_lib_prefix
22802 # Do we need a version for libraries?
22803 need_version=$need_version
22805 # Whether dlopen is supported.
22806 dlopen_support=$enable_dlopen
22808 # Whether dlopen of programs is supported.
22809 dlopen_self=$enable_dlopen_self
22811 # Whether dlopen of statically linked programs is supported.
22812 dlopen_self_static=$enable_dlopen_self_static
22814 # Compiler flag to prevent dynamic linking.
22815 link_static_flag=$lt_lt_prog_compiler_static_RC
22817 # Compiler flag to turn off builtin functions.
22818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22820 # Compiler flag to allow reflexive dlopens.
22821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22823 # Compiler flag to generate shared objects directly from archives.
22824 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22826 # Compiler flag to generate thread-safe objects.
22827 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22829 # Library versioning type.
22830 version_type=$version_type
22832 # Format of library name prefix.
22833 libname_spec=$lt_libname_spec
22835 # List of archive names. First name is the real one, the rest are links.
22836 # The last name is the one that the linker finds with -lNAME.
22837 library_names_spec=$lt_library_names_spec
22839 # The coded name of the library, if different from the real name.
22840 soname_spec=$lt_soname_spec
22842 # Commands used to build and install an old-style archive.
22843 RANLIB=$lt_RANLIB
22844 old_archive_cmds=$lt_old_archive_cmds_RC
22845 old_postinstall_cmds=$lt_old_postinstall_cmds
22846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22848 # Create an old-style archive from a shared archive.
22849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22851 # Create a temporary old-style archive to link instead of a shared archive.
22852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22854 # Commands used to build and install a shared archive.
22855 archive_cmds=$lt_archive_cmds_RC
22856 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22857 postinstall_cmds=$lt_postinstall_cmds
22858 postuninstall_cmds=$lt_postuninstall_cmds
22860 # Commands used to build a loadable module (assumed same as above if empty)
22861 module_cmds=$lt_module_cmds_RC
22862 module_expsym_cmds=$lt_module_expsym_cmds_RC
22864 # Commands to strip libraries.
22865 old_striplib=$lt_old_striplib
22866 striplib=$lt_striplib
22868 # Dependencies to place before the objects being linked to create a
22869 # shared library.
22870 predep_objects=$lt_predep_objects_RC
22872 # Dependencies to place after the objects being linked to create a
22873 # shared library.
22874 postdep_objects=$lt_postdep_objects_RC
22876 # Dependencies to place before the objects being linked to create a
22877 # shared library.
22878 predeps=$lt_predeps_RC
22880 # Dependencies to place after the objects being linked to create a
22881 # shared library.
22882 postdeps=$lt_postdeps_RC
22884 # The directories searched by this compiler when creating a shared
22885 # library
22886 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22888 # The library search path used internally by the compiler when linking
22889 # a shared library.
22890 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22892 # Method to check whether dependent libraries are shared objects.
22893 deplibs_check_method=$lt_deplibs_check_method
22895 # Command to use when deplibs_check_method == file_magic.
22896 file_magic_cmd=$lt_file_magic_cmd
22898 # Flag that allows shared libraries with undefined symbols to be built.
22899 allow_undefined_flag=$lt_allow_undefined_flag_RC
22901 # Flag that forces no undefined symbols.
22902 no_undefined_flag=$lt_no_undefined_flag_RC
22904 # Commands used to finish a libtool library installation in a directory.
22905 finish_cmds=$lt_finish_cmds
22907 # Same as above, but a single script fragment to be evaled but not shown.
22908 finish_eval=$lt_finish_eval
22910 # Take the output of nm and produce a listing of raw symbols and C names.
22911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22913 # Transform the output of nm in a proper C declaration
22914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22916 # Transform the output of nm in a C name address pair
22917 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22919 # This is the shared library runtime path variable.
22920 runpath_var=$runpath_var
22922 # This is the shared library path variable.
22923 shlibpath_var=$shlibpath_var
22925 # Is shlibpath searched before the hard-coded library search path?
22926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22928 # How to hardcode a shared library path into an executable.
22929 hardcode_action=$hardcode_action_RC
22931 # Whether we should hardcode library paths into libraries.
22932 hardcode_into_libs=$hardcode_into_libs
22934 # Flag to hardcode \$libdir into a binary during linking.
22935 # This must work even if \$libdir does not exist.
22936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22938 # If ld is used when linking, flag to hardcode \$libdir into
22939 # a binary during linking. This must work even if \$libdir does
22940 # not exist.
22941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22943 # Whether we need a single -rpath flag with a separated argument.
22944 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22946 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22947 # resulting binary.
22948 hardcode_direct=$hardcode_direct_RC
22950 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22951 # resulting binary.
22952 hardcode_minus_L=$hardcode_minus_L_RC
22954 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22955 # the resulting binary.
22956 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22958 # Set to yes if building a shared library automatically hardcodes DIR into the library
22959 # and all subsequent libraries and executables linked against it.
22960 hardcode_automatic=$hardcode_automatic_RC
22962 # Variables whose values should be saved in libtool wrapper scripts and
22963 # restored at relink time.
22964 variables_saved_for_relink="$variables_saved_for_relink"
22966 # Whether libtool must link a program against all its dependency libraries.
22967 link_all_deplibs=$link_all_deplibs_RC
22969 # Compile-time system search path for libraries
22970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22972 # Run-time system search path for libraries
22973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22975 # Fix the shell variable \$srcfile for the compiler.
22976 fix_srcfile_path=$lt_fix_srcfile_path
22978 # Set to yes if exported symbols are required.
22979 always_export_symbols=$always_export_symbols_RC
22981 # The commands to list exported symbols.
22982 export_symbols_cmds=$lt_export_symbols_cmds_RC
22984 # The commands to extract the exported symbol list from a shared archive.
22985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22987 # Symbols that should not be listed in the preloaded symbols.
22988 exclude_expsyms=$lt_exclude_expsyms_RC
22990 # Symbols that must always be exported.
22991 include_expsyms=$lt_include_expsyms_RC
22993 # ### END LIBTOOL TAG CONFIG: $tagname
22995 __EOF__
22998 else
22999 # If there is no Makefile yet, we rely on a make rule to execute
23000 # `config.status --recheck' to rerun these tests and create the
23001 # libtool script then.
23002 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23003 if test -f "$ltmain_in"; then
23004 test -f Makefile && make "$ltmain"
23009 ac_ext=c
23010 ac_cpp='$CPP $CPPFLAGS'
23011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23015 CC="$lt_save_CC"
23020 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23021 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23022 { (exit 1); exit 1; }; }
23024 esac
23026 # Append the new tag name to the list of available tags.
23027 if test -n "$tagname" ; then
23028 available_tags="$available_tags $tagname"
23031 done
23032 IFS="$lt_save_ifs"
23034 # Now substitute the updated list of available tags.
23035 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23036 mv "${ofile}T" "$ofile"
23037 chmod +x "$ofile"
23038 else
23039 rm -f "${ofile}T"
23040 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23041 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23042 { (exit 1); exit 1; }; }
23048 # This can be used to rebuild libtool when needed
23049 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23051 # Always use our own libtool.
23052 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23054 # Prevent multiple expansion
23076 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
23077 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
23078 if test "${ac_cv_path_SED+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23082 for ac_i in 1 2 3 4 5 6 7; do
23083 ac_script="$ac_script$as_nl$ac_script"
23084 done
23085 echo "$ac_script" | sed 99q >conftest.sed
23086 $as_unset ac_script || ac_script=
23087 # Extract the first word of "sed gsed" to use in msg output
23088 if test -z "$SED"; then
23089 set dummy sed gsed; ac_prog_name=$2
23090 if test "${ac_cv_path_SED+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093 ac_path_SED_found=false
23094 # Loop through the user's path and test for each of PROGNAME-LIST
23095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23096 for as_dir in $PATH
23098 IFS=$as_save_IFS
23099 test -z "$as_dir" && as_dir=.
23100 for ac_prog in sed gsed; do
23101 for ac_exec_ext in '' $ac_executable_extensions; do
23102 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23103 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
23104 # Check for GNU ac_path_SED and select it if it is found.
23105 # Check for GNU $ac_path_SED
23106 case `"$ac_path_SED" --version 2>&1` in
23107 *GNU*)
23108 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23110 ac_count=0
23111 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
23112 while :
23114 cat "conftest.in" "conftest.in" >"conftest.tmp"
23115 mv "conftest.tmp" "conftest.in"
23116 cp "conftest.in" "conftest.nl"
23117 echo '' >> "conftest.nl"
23118 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23120 ac_count=`expr $ac_count + 1`
23121 if test $ac_count -gt ${ac_path_SED_max-0}; then
23122 # Best one so far, save it but keep looking for a better one
23123 ac_cv_path_SED="$ac_path_SED"
23124 ac_path_SED_max=$ac_count
23126 # 10*(2^10) chars as input seems more than enough
23127 test $ac_count -gt 10 && break
23128 done
23129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23130 esac
23133 $ac_path_SED_found && break 3
23134 done
23135 done
23137 done
23138 IFS=$as_save_IFS
23143 SED="$ac_cv_path_SED"
23144 if test -z "$SED"; then
23145 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
23146 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
23147 { (exit 1); exit 1; }; }
23150 else
23151 ac_cv_path_SED=$SED
23155 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
23156 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
23157 SED="$ac_cv_path_SED"
23158 rm -f conftest.sed
23165 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
23167 { echo "$as_me:$LINENO: checking whether the C compiler accepts the -fvisibility=hidden flag" >&5
23168 echo $ECHO_N "checking whether the C compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
23169 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
23170 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 else
23174 ac_ext=c
23175 ac_cpp='$CPP $CPPFLAGS'
23176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23181 save_CFLAGS="$CFLAGS"
23182 CFLAGS="$CFLAGS -fvisibility=hidden"
23183 cat >conftest.$ac_ext <<_ACEOF
23185 /* confdefs.h. */
23186 _ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23192 main ()
23196 return 0;
23199 _ACEOF
23200 rm -f conftest.$ac_objext
23201 if { (ac_try="$ac_compile"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_compile") 2>conftest.er1
23208 ac_status=$?
23209 grep -v '^ *+' conftest.er1 >conftest.err
23210 rm -f conftest.er1
23211 cat conftest.err >&5
23212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); } && {
23214 test -z "$ac_c_werror_flag" ||
23215 test ! -s conftest.err
23216 } && test -s conftest.$ac_objext; then
23218 eval "ax_cv_c_check_flag_$flag=yes"
23220 else
23221 echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23225 eval "ax_cv_c_check_flag_$flag=no"
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231 CFLAGS="$save_CFLAGS"
23233 ac_ext=c
23234 ac_cpp='$CPP $CPPFLAGS'
23235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23242 ac_res=`eval echo '${'ax_cv_c_check_flag_$flag'}'`
23243 { echo "$as_me:$LINENO: result: $ac_res" >&5
23244 echo "${ECHO_T}$ac_res" >&6; }
23246 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
23249 HAVE_C_GCCVISIBILITY=1
23251 else
23254 HAVE_C_GCCVISIBILITY=0
23264 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
23266 { echo "$as_me:$LINENO: checking whether the C++ compiler accepts the -fvisibility=hidden flag" >&5
23267 echo $ECHO_N "checking whether the C++ compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
23268 if { as_var=ax_cv_cxx_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
23269 echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23273 ac_ext=cpp
23274 ac_cpp='$CXXCPP $CPPFLAGS'
23275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23280 save_CXXFLAGS="$CXXFLAGS"
23281 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
23282 cat >conftest.$ac_ext <<_ACEOF
23284 /* confdefs.h. */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23291 main ()
23295 return 0;
23298 _ACEOF
23299 rm -f conftest.$ac_objext
23300 if { (ac_try="$ac_compile"
23301 case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_compile") 2>conftest.er1
23307 ac_status=$?
23308 grep -v '^ *+' conftest.er1 >conftest.err
23309 rm -f conftest.er1
23310 cat conftest.err >&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); } && {
23313 test -z "$ac_cxx_werror_flag" ||
23314 test ! -s conftest.err
23315 } && test -s conftest.$ac_objext; then
23317 eval "ax_cv_cxx_check_flag_$flag=yes"
23319 else
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23324 eval "ax_cv_cxx_check_flag_$flag=no"
23328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23330 CXXFLAGS="$save_CXXFLAGS"
23332 ac_ext=c
23333 ac_cpp='$CPP $CPPFLAGS'
23334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23341 ac_res=`eval echo '${'ax_cv_cxx_check_flag_$flag'}'`
23342 { echo "$as_me:$LINENO: result: $ac_res" >&5
23343 echo "${ECHO_T}$ac_res" >&6; }
23345 if eval "test \"`echo '$ax_cv_cxx_check_flag_'$flag`\" = yes"; then
23348 HAVE_CXX_GCCVISIBILITY=1
23350 else
23353 HAVE_CXX_GCCVISIBILITY=0
23358 if test "$HAVE_C_GCCVISIBILITY" = "1" -a "$HAVE_CXX_GCCVISIBILITY" = "1"; then
23359 WITH_GCCVISIBILITY_TRUE=
23360 WITH_GCCVISIBILITY_FALSE='#'
23361 else
23362 WITH_GCCVISIBILITY_TRUE='#'
23363 WITH_GCCVISIBILITY_FALSE=
23367 ac_ext=cpp
23368 ac_cpp='$CXXCPP $CPPFLAGS'
23369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23375 # Checks for libraries.
23378 # libtar and libz don't have pkg-config files on many systems.
23379 # libz we can assume, but libtar we need to test for
23381 # Check whether --with-libtar was given.
23382 if test "${with_libtar+set}" = set; then
23383 withval=$with_libtar; LIBTAR_CFLAGS="-I$with_libtar/include"
23384 LIBTAR_LIBS="-L$with_libtar/lib -ltar"
23385 else
23386 echo "Guessing libtar location... may not compile...";
23387 LIBTAR_CFLAGS=""
23388 LIBTAR_LIBS="-ltar"
23394 { echo "$as_me:$LINENO: checking for tar_open in -ltar" >&5
23395 echo $ECHO_N "checking for tar_open in -ltar... $ECHO_C" >&6; }
23396 if test "${ac_cv_lib_tar_tar_open+set}" = set; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399 ac_check_lib_save_LIBS=$LIBS
23400 LIBS="-ltar $LIBTAR_CFLAGS $LIBTAR_LIBS $LIBS"
23401 cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h. */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23408 /* Override any GCC internal prototype to avoid an error.
23409 Use char because int might match the return type of a GCC
23410 builtin and then its argument prototype would still apply. */
23411 #ifdef __cplusplus
23412 extern "C"
23413 #endif
23414 char tar_open ();
23416 main ()
23418 return tar_open ();
23420 return 0;
23422 _ACEOF
23423 rm -f conftest.$ac_objext conftest$ac_exeext
23424 if { (ac_try="$ac_link"
23425 case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428 esac
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_link") 2>conftest.er1
23431 ac_status=$?
23432 grep -v '^ *+' conftest.er1 >conftest.err
23433 rm -f conftest.er1
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } && {
23437 test -z "$ac_cxx_werror_flag" ||
23438 test ! -s conftest.err
23439 } && test -s conftest$ac_exeext &&
23440 $as_test_x conftest$ac_exeext; then
23441 ac_cv_lib_tar_tar_open=yes
23442 else
23443 echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23446 ac_cv_lib_tar_tar_open=no
23449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23450 conftest$ac_exeext conftest.$ac_ext
23451 LIBS=$ac_check_lib_save_LIBS
23453 { echo "$as_me:$LINENO: result: $ac_cv_lib_tar_tar_open" >&5
23454 echo "${ECHO_T}$ac_cv_lib_tar_tar_open" >&6; }
23455 if test $ac_cv_lib_tar_tar_open = yes; then
23456 LIBTAR_FOUND=1
23457 { echo "$as_me:$LINENO: Found libtar, enabling libbarrybackup" >&5
23458 echo "$as_me: Found libtar, enabling libbarrybackup" >&6;}
23459 else
23460 LIBTAR_FOUND=0
23461 { echo "$as_me:$LINENO: Libtar NOT found, disabling libbarrybackup" >&5
23462 echo "$as_me: Libtar NOT found, disabling libbarrybackup" >&6;}
23467 # Check whether --with-libz was given.
23468 if test "${with_libz+set}" = set; then
23469 withval=$with_libz; LIBZ_CFLAGS="-I$with_libtar/include"
23470 LIBZ_LIBS="-L$with_libtar/lib -ltar"
23471 else
23472 echo "Guessing zlib location... may not compile...";
23473 LIBZ_CFLAGS=""
23474 LIBZ_LIBS="-lz"
23480 if test "$LIBTAR_FOUND" = "1"; then
23481 WITH_BACKUP_TRUE=
23482 WITH_BACKUP_FALSE='#'
23483 else
23484 WITH_BACKUP_TRUE='#'
23485 WITH_BACKUP_FALSE=
23489 # generates LIBUSB_CFLAGS and LIBUSB_LIBS for us
23492 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23493 if test -n "$ac_tool_prefix"; then
23494 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23495 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23498 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501 case $PKG_CONFIG in
23502 [\\/]* | ?:[\\/]*)
23503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23507 for as_dir in $PATH
23509 IFS=$as_save_IFS
23510 test -z "$as_dir" && as_dir=.
23511 for ac_exec_ext in '' $ac_executable_extensions; do
23512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23515 break 2
23517 done
23518 done
23519 IFS=$as_save_IFS
23522 esac
23524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23525 if test -n "$PKG_CONFIG"; then
23526 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23527 echo "${ECHO_T}$PKG_CONFIG" >&6; }
23528 else
23529 { echo "$as_me:$LINENO: result: no" >&5
23530 echo "${ECHO_T}no" >&6; }
23535 if test -z "$ac_cv_path_PKG_CONFIG"; then
23536 ac_pt_PKG_CONFIG=$PKG_CONFIG
23537 # Extract the first word of "pkg-config", so it can be a program name with args.
23538 set dummy pkg-config; ac_word=$2
23539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23541 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23543 else
23544 case $ac_pt_PKG_CONFIG in
23545 [\\/]* | ?:[\\/]*)
23546 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23550 for as_dir in $PATH
23552 IFS=$as_save_IFS
23553 test -z "$as_dir" && as_dir=.
23554 for ac_exec_ext in '' $ac_executable_extensions; do
23555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23556 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23558 break 2
23560 done
23561 done
23562 IFS=$as_save_IFS
23565 esac
23567 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23568 if test -n "$ac_pt_PKG_CONFIG"; then
23569 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23570 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
23571 else
23572 { echo "$as_me:$LINENO: result: no" >&5
23573 echo "${ECHO_T}no" >&6; }
23576 if test "x$ac_pt_PKG_CONFIG" = x; then
23577 PKG_CONFIG=""
23578 else
23579 case $cross_compiling:$ac_tool_warned in
23580 yes:)
23581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23582 whose name does not start with the host triplet. If you think this
23583 configuration is useful to you, please write to autoconf@gnu.org." >&5
23584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23585 whose name does not start with the host triplet. If you think this
23586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23587 ac_tool_warned=yes ;;
23588 esac
23589 PKG_CONFIG=$ac_pt_PKG_CONFIG
23591 else
23592 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23596 if test -n "$PKG_CONFIG"; then
23597 _pkg_min_version=0.9.0
23598 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23599 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
23600 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23601 { echo "$as_me:$LINENO: result: yes" >&5
23602 echo "${ECHO_T}yes" >&6; }
23603 else
23604 { echo "$as_me:$LINENO: result: no" >&5
23605 echo "${ECHO_T}no" >&6; }
23606 PKG_CONFIG=""
23611 pkg_failed=no
23612 { echo "$as_me:$LINENO: checking for LIBUSB" >&5
23613 echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; }
23615 if test -n "$PKG_CONFIG"; then
23616 if test -n "$LIBUSB_CFLAGS"; then
23617 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
23618 else
23619 if test -n "$PKG_CONFIG" && \
23620 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
23621 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; then
23625 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
23626 else
23627 pkg_failed=yes
23630 else
23631 pkg_failed=untried
23633 if test -n "$PKG_CONFIG"; then
23634 if test -n "$LIBUSB_LIBS"; then
23635 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
23636 else
23637 if test -n "$PKG_CONFIG" && \
23638 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
23639 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; then
23643 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null`
23644 else
23645 pkg_failed=yes
23648 else
23649 pkg_failed=untried
23654 if test $pkg_failed = yes; then
23656 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23657 _pkg_short_errors_supported=yes
23658 else
23659 _pkg_short_errors_supported=no
23661 if test $_pkg_short_errors_supported = yes; then
23662 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
23663 else
23664 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
23666 # Put the nasty error message in config.log where it belongs
23667 echo "$LIBUSB_PKG_ERRORS" >&5
23669 { echo "$as_me:$LINENO: result: no" >&5
23670 echo "${ECHO_T}no" >&6; }
23671 echo "ERROR: Libusb not found automatically... build may fail if you don't specify --with-libusb";LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb"
23672 elif test $pkg_failed = untried; then
23673 echo "ERROR: Libusb not found automatically... build may fail if you don't specify --with-libusb";LIBUSB_CFLAGS="-I/usr/include" LIBUSB_LIBS="-lusb"
23674 else
23675 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
23676 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
23677 { echo "$as_me:$LINENO: result: yes" >&5
23678 echo "${ECHO_T}yes" >&6; }
23683 # Check whether --with-libusb was given.
23684 if test "${with_libusb+set}" = set; then
23685 withval=$with_libusb; LIBUSB_CFLAGS="-I$with_libusb/include"
23686 LIBUSB_LIBS="-L$with_libusb/lib -lusb"
23691 # Boost library configuration
23693 # Ok, the requirements:
23695 # - let the user enable/disable Boost support from configure
23696 # - default to disabled
23697 # - if enabled, and not available, error
23699 # - let user specify include path, and lib path, separately,
23700 # since some Boost installations have an additional boost-1.34.1
23701 # style directory in them
23702 # - default to using no path overrides, assuming everything
23703 # that is needed is in default distro locations
23705 # - let user specify the name of the serialization library, since
23706 # the name of the library can change whether you're building
23707 # from source or not
23708 # - default to searching for boost_serialization or
23709 # boost_serialization-mt, and error if not found
23711 # Therefore:
23713 # --enable-boost Handles enable/disable
23714 # --with-boost-include=path Override the include path
23715 # --with-boost-lib=path Override the lib path
23716 # --with-boost-serialization=name Override the name of serialization
23717 # library to link with
23720 # Check whether --enable-boost was given.
23721 if test "${enable_boost+set}" = set; then
23722 enableval=$enable_boost;
23723 if test x"$enableval" = "xno" ; then
23724 BOOST_ENABLED=no
23725 else
23726 BOOST_ENABLED=yes
23729 else
23730 BOOST_ENABLED=no
23735 # Check whether --with-boost-include was given.
23736 if test "${with_boost_include+set}" = set; then
23737 withval=$with_boost_include; BOOST_INC_PATH="-I$withval"
23738 else
23739 BOOST_INC_PATH=""
23744 # Check whether --with-boost-lib was given.
23745 if test "${with_boost_lib+set}" = set; then
23746 withval=$with_boost_lib; BOOST_LIB_PATH="-L$withval"
23747 else
23748 BOOST_LIB_PATH=""
23753 # Check whether --with-boost-serialization was given.
23754 if test "${with_boost_serialization+set}" = set; then
23755 withval=$with_boost_serialization; boost_serialization_name=$withval
23756 else
23757 boost_serialization_name="boost_serialization"
23761 { echo "$as_me:$LINENO: using BOOST library... $BOOST_ENABLED" >&5
23762 echo "$as_me: using BOOST library... $BOOST_ENABLED" >&6;}
23763 if test x"$BOOST_INC_PATH$BOOST_LIB_PATH" != x ; then
23764 { echo "$as_me:$LINENO: BOOST include options: $BOOST_INC_PATH" >&5
23765 echo "$as_me: BOOST include options: $BOOST_INC_PATH" >&6;}
23766 { echo "$as_me:$LINENO: BOOST library options: $BOOST_LIB_PATH" >&5
23767 echo "$as_me: BOOST library options: $BOOST_LIB_PATH" >&6;}
23770 if test x"$BOOST_ENABLED" = "xyes" ; then
23771 # Only $BOOST_LIB_PATH is given for this check, since no
23772 # headers are included in the autoconf main() test snippet.
23773 as_ac_Lib=`echo "ac_cv_lib_$boost_serialization_name''_main" | $as_tr_sh`
23774 { echo "$as_me:$LINENO: checking for main in -l$boost_serialization_name" >&5
23775 echo $ECHO_N "checking for main in -l$boost_serialization_name... $ECHO_C" >&6; }
23776 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23777 echo $ECHO_N "(cached) $ECHO_C" >&6
23778 else
23779 ac_check_lib_save_LIBS=$LIBS
23780 LIBS="-l$boost_serialization_name $BOOST_LIB_PATH $LIBS"
23781 cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h. */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h. */
23790 main ()
23792 return main ();
23794 return 0;
23796 _ACEOF
23797 rm -f conftest.$ac_objext conftest$ac_exeext
23798 if { (ac_try="$ac_link"
23799 case "(($ac_try" in
23800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801 *) ac_try_echo=$ac_try;;
23802 esac
23803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23804 (eval "$ac_link") 2>conftest.er1
23805 ac_status=$?
23806 grep -v '^ *+' conftest.er1 >conftest.err
23807 rm -f conftest.er1
23808 cat conftest.err >&5
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); } && {
23811 test -z "$ac_cxx_werror_flag" ||
23812 test ! -s conftest.err
23813 } && test -s conftest$ac_exeext &&
23814 $as_test_x conftest$ac_exeext; then
23815 eval "$as_ac_Lib=yes"
23816 else
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23820 eval "$as_ac_Lib=no"
23823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23824 conftest$ac_exeext conftest.$ac_ext
23825 LIBS=$ac_check_lib_save_LIBS
23827 ac_res=`eval echo '${'$as_ac_Lib'}'`
23828 { echo "$as_me:$LINENO: result: $ac_res" >&5
23829 echo "${ECHO_T}$ac_res" >&6; }
23830 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23831 BOOST_LDADD="-l$boost_serialization_name"
23832 else
23834 { echo "$as_me:$LINENO: checking for main in -lboost_serialization-mt" >&5
23835 echo $ECHO_N "checking for main in -lboost_serialization-mt... $ECHO_C" >&6; }
23836 if test "${ac_cv_lib_boost_serialization_mt_main+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839 ac_check_lib_save_LIBS=$LIBS
23840 LIBS="-lboost_serialization-mt $BOOST_LIB_PATH
23841 $LIBS"
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h. */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h. */
23851 main ()
23853 return main ();
23855 return 0;
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (ac_try="$ac_link"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_link") 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_cxx_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest$ac_exeext &&
23875 $as_test_x conftest$ac_exeext; then
23876 ac_cv_lib_boost_serialization_mt_main=yes
23877 else
23878 echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23881 ac_cv_lib_boost_serialization_mt_main=no
23884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23885 conftest$ac_exeext conftest.$ac_ext
23886 LIBS=$ac_check_lib_save_LIBS
23888 { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_serialization_mt_main" >&5
23889 echo "${ECHO_T}$ac_cv_lib_boost_serialization_mt_main" >&6; }
23890 if test $ac_cv_lib_boost_serialization_mt_main = yes; then
23891 BOOST_LDADD="-lboost_serialization-mt"
23892 else
23893 { { echo "$as_me:$LINENO: error: boost_serialization not found" >&5
23894 echo "$as_me: error: boost_serialization not found" >&2;}
23895 { (exit 1); exit 1; }; }
23902 if test x"$BOOST_LDADD" != x ; then
23903 { echo "$as_me:$LINENO: BOOST library name: $BOOST_LDADD" >&5
23904 echo "$as_me: BOOST library name: $BOOST_LDADD" >&6;}
23905 else
23906 { { echo "$as_me:$LINENO: error: boost_serialization library not found" >&5
23907 echo "$as_me: error: boost_serialization library not found" >&2;}
23908 { (exit 1); exit 1; }; }
23915 if test "$BOOST_ENABLED" = "yes"; then
23916 WITH_BOOST_TRUE=
23917 WITH_BOOST_FALSE='#'
23918 else
23919 WITH_BOOST_TRUE='#'
23920 WITH_BOOST_FALSE=
23925 #PKG_CHECK_MODULES([OPENSSL], [openssl])
23928 pkg_failed=no
23929 { echo "$as_me:$LINENO: checking for FUSE" >&5
23930 echo $ECHO_N "checking for FUSE... $ECHO_C" >&6; }
23932 if test -n "$PKG_CONFIG"; then
23933 if test -n "$FUSE_CFLAGS"; then
23934 pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS"
23935 else
23936 if test -n "$PKG_CONFIG" && \
23937 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\"") >&5
23938 ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; then
23942 pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.5" 2>/dev/null`
23943 else
23944 pkg_failed=yes
23947 else
23948 pkg_failed=untried
23950 if test -n "$PKG_CONFIG"; then
23951 if test -n "$FUSE_LIBS"; then
23952 pkg_cv_FUSE_LIBS="$FUSE_LIBS"
23953 else
23954 if test -n "$PKG_CONFIG" && \
23955 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.5\"") >&5
23956 ($PKG_CONFIG --exists --print-errors "fuse >= 2.5") 2>&5
23957 ac_status=$?
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; then
23960 pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.5" 2>/dev/null`
23961 else
23962 pkg_failed=yes
23965 else
23966 pkg_failed=untried
23971 if test $pkg_failed = yes; then
23973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23974 _pkg_short_errors_supported=yes
23975 else
23976 _pkg_short_errors_supported=no
23978 if test $_pkg_short_errors_supported = yes; then
23979 FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fuse >= 2.5"`
23980 else
23981 FUSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fuse >= 2.5"`
23983 # Put the nasty error message in config.log where it belongs
23984 echo "$FUSE_PKG_ERRORS" >&5
23986 { echo "$as_me:$LINENO: result: no" >&5
23987 echo "${ECHO_T}no" >&6; }
23988 echo "FUSE library not found, skipping fuse module."; FUSE_FOUND=0
23990 elif test $pkg_failed = untried; then
23991 echo "FUSE library not found, skipping fuse module."; FUSE_FOUND=0
23993 else
23994 FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS
23995 FUSE_LIBS=$pkg_cv_FUSE_LIBS
23996 { echo "$as_me:$LINENO: result: yes" >&5
23997 echo "${ECHO_T}yes" >&6; }
23998 FUSE_FOUND=1
24002 pkg_failed=no
24003 { echo "$as_me:$LINENO: checking for GLIB2" >&5
24004 echo $ECHO_N "checking for GLIB2... $ECHO_C" >&6; }
24006 if test -n "$PKG_CONFIG"; then
24007 if test -n "$GLIB2_CFLAGS"; then
24008 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
24009 else
24010 if test -n "$PKG_CONFIG" && \
24011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
24012 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
24013 ac_status=$?
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; then
24016 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
24017 else
24018 pkg_failed=yes
24021 else
24022 pkg_failed=untried
24024 if test -n "$PKG_CONFIG"; then
24025 if test -n "$GLIB2_LIBS"; then
24026 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
24027 else
24028 if test -n "$PKG_CONFIG" && \
24029 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
24030 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
24031 ac_status=$?
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); }; then
24034 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
24035 else
24036 pkg_failed=yes
24039 else
24040 pkg_failed=untried
24045 if test $pkg_failed = yes; then
24047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24048 _pkg_short_errors_supported=yes
24049 else
24050 _pkg_short_errors_supported=no
24052 if test $_pkg_short_errors_supported = yes; then
24053 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
24054 else
24055 GLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
24057 # Put the nasty error message in config.log where it belongs
24058 echo "$GLIB2_PKG_ERRORS" >&5
24060 { echo "$as_me:$LINENO: result: no" >&5
24061 echo "${ECHO_T}no" >&6; }
24062 echo "GLIB 2.0 not found, skipping sync library."; GLIB2_FOUND=0
24064 elif test $pkg_failed = untried; then
24065 echo "GLIB 2.0 not found, skipping sync library."; GLIB2_FOUND=0
24067 else
24068 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
24069 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
24070 { echo "$as_me:$LINENO: result: yes" >&5
24071 echo "${ECHO_T}yes" >&6; }
24072 GLIB2_FOUND=1
24075 pkgconfigdir=${libdir}/pkgconfig
24081 if test "$FUSE_FOUND" = "1"; then
24082 WITH_FUSE_TRUE=
24083 WITH_FUSE_FALSE='#'
24084 else
24085 WITH_FUSE_TRUE='#'
24086 WITH_FUSE_FALSE=
24089 if test "$GLIB2_FOUND" = "1"; then
24090 WITH_SYNC_TRUE=
24091 WITH_SYNC_FALSE='#'
24092 else
24093 WITH_SYNC_TRUE='#'
24094 WITH_SYNC_FALSE=
24098 #AC_CHECK_LIB([IOKit], [main])
24099 #AC_CHECK_LIB([libusb], [libusb_init])
24101 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
24102 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
24103 if test "${ac_cv_lib_pthread_main+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 else
24106 ac_check_lib_save_LIBS=$LIBS
24107 LIBS="-lpthread $LIBS"
24108 cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h. */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24117 main ()
24119 return main ();
24121 return 0;
24123 _ACEOF
24124 rm -f conftest.$ac_objext conftest$ac_exeext
24125 if { (ac_try="$ac_link"
24126 case "(($ac_try" in
24127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_link") 2>conftest.er1
24132 ac_status=$?
24133 grep -v '^ *+' conftest.er1 >conftest.err
24134 rm -f conftest.er1
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } && {
24138 test -z "$ac_cxx_werror_flag" ||
24139 test ! -s conftest.err
24140 } && test -s conftest$ac_exeext &&
24141 $as_test_x conftest$ac_exeext; then
24142 ac_cv_lib_pthread_main=yes
24143 else
24144 echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 ac_cv_lib_pthread_main=no
24150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24151 conftest$ac_exeext conftest.$ac_ext
24152 LIBS=$ac_check_lib_save_LIBS
24154 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
24155 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
24156 if test $ac_cv_lib_pthread_main = yes; then
24157 cat >>confdefs.h <<_ACEOF
24158 #define HAVE_LIBPTHREAD 1
24159 _ACEOF
24161 LIBS="-lpthread $LIBS"
24167 # Check whether --with-zlib was given.
24168 if test "${with_zlib+set}" = set; then
24169 withval=$with_zlib; force_zlib=$withval
24170 else
24171 force_zlib=no
24175 { echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
24176 echo $ECHO_N "checking for crc32 in -lz... $ECHO_C" >&6; }
24177 if test "${ac_cv_lib_z_crc32+set}" = set; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24179 else
24180 ac_check_lib_save_LIBS=$LIBS
24181 LIBS="-lz $LIBS"
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h. */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24189 /* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 char crc32 ();
24197 main ()
24199 return crc32 ();
24201 return 0;
24203 _ACEOF
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (ac_try="$ac_link"
24206 case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24209 esac
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_link") 2>conftest.er1
24212 ac_status=$?
24213 grep -v '^ *+' conftest.er1 >conftest.err
24214 rm -f conftest.er1
24215 cat conftest.err >&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_cxx_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest$ac_exeext &&
24221 $as_test_x conftest$ac_exeext; then
24222 ac_cv_lib_z_crc32=yes
24223 else
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ac_cv_lib_z_crc32=no
24230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24231 conftest$ac_exeext conftest.$ac_ext
24232 LIBS=$ac_check_lib_save_LIBS
24234 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
24235 echo "${ECHO_T}$ac_cv_lib_z_crc32" >&6; }
24236 if test $ac_cv_lib_z_crc32 = yes; then
24239 cat >>confdefs.h <<\_ACEOF
24240 #define HAVE_ZLIB 1
24241 _ACEOF
24244 ZLIB_LIBS="-lz"
24246 else
24248 echo "*****************************************************************"
24249 echo "WARNING: zlib not found... packed .cod files will fail crc checks"
24250 echo "*****************************************************************"
24252 ZLIB_LIBS=""
24253 if test "x$force_zlib" != xno ; then
24254 { { echo "$as_me:$LINENO: error: --with-zlib specified, but zlib not found
24255 See \`config.log' for more details." >&5
24256 echo "$as_me: error: --with-zlib specified, but zlib not found
24257 See \`config.log' for more details." >&2;}
24258 { (exit 1); exit 1; }; }
24266 pkg_failed=no
24267 { echo "$as_me:$LINENO: checking for LIBXMLXX" >&5
24268 echo $ECHO_N "checking for LIBXMLXX... $ECHO_C" >&6; }
24270 if test -n "$PKG_CONFIG"; then
24271 if test -n "$LIBXMLXX_CFLAGS"; then
24272 pkg_cv_LIBXMLXX_CFLAGS="$LIBXMLXX_CFLAGS"
24273 else
24274 if test -n "$PKG_CONFIG" && \
24275 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml++-2.6\"") >&5
24276 ($PKG_CONFIG --exists --print-errors "libxml++-2.6") 2>&5
24277 ac_status=$?
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; then
24280 pkg_cv_LIBXMLXX_CFLAGS=`$PKG_CONFIG --cflags "libxml++-2.6" 2>/dev/null`
24281 else
24282 pkg_failed=yes
24285 else
24286 pkg_failed=untried
24288 if test -n "$PKG_CONFIG"; then
24289 if test -n "$LIBXMLXX_LIBS"; then
24290 pkg_cv_LIBXMLXX_LIBS="$LIBXMLXX_LIBS"
24291 else
24292 if test -n "$PKG_CONFIG" && \
24293 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml++-2.6\"") >&5
24294 ($PKG_CONFIG --exists --print-errors "libxml++-2.6") 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; then
24298 pkg_cv_LIBXMLXX_LIBS=`$PKG_CONFIG --libs "libxml++-2.6" 2>/dev/null`
24299 else
24300 pkg_failed=yes
24303 else
24304 pkg_failed=untried
24309 if test $pkg_failed = yes; then
24311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24312 _pkg_short_errors_supported=yes
24313 else
24314 _pkg_short_errors_supported=no
24316 if test $_pkg_short_errors_supported = yes; then
24317 LIBXMLXX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml++-2.6"`
24318 else
24319 LIBXMLXX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml++-2.6"`
24321 # Put the nasty error message in config.log where it belongs
24322 echo "$LIBXMLXX_PKG_ERRORS" >&5
24324 { echo "$as_me:$LINENO: result: no" >&5
24325 echo "${ECHO_T}no" >&6; }
24327 echo "*****************************************************************"
24328 echo "WARNING: libxml++ not found... ALX parser not included"
24329 echo "*****************************************************************"
24330 LIBXMLXX_FOUND=0
24333 elif test $pkg_failed = untried; then
24335 echo "*****************************************************************"
24336 echo "WARNING: libxml++ not found... ALX parser not included"
24337 echo "*****************************************************************"
24338 LIBXMLXX_FOUND=0
24341 else
24342 LIBXMLXX_CFLAGS=$pkg_cv_LIBXMLXX_CFLAGS
24343 LIBXMLXX_LIBS=$pkg_cv_LIBXMLXX_LIBS
24344 { echo "$as_me:$LINENO: result: yes" >&5
24345 echo "${ECHO_T}yes" >&6; }
24346 LIBXMLXX_FOUND=1
24349 if test "$LIBXMLXX_FOUND" = "1"; then
24350 WITH_ALX_TRUE=
24351 WITH_ALX_FALSE='#'
24352 else
24353 WITH_ALX_TRUE='#'
24354 WITH_ALX_FALSE=
24364 am_save_CPPFLAGS="$CPPFLAGS"
24366 for element in $INCICONV; do
24367 haveit=
24368 for x in $CPPFLAGS; do
24370 acl_save_prefix="$prefix"
24371 prefix="$acl_final_prefix"
24372 acl_save_exec_prefix="$exec_prefix"
24373 exec_prefix="$acl_final_exec_prefix"
24374 eval x=\"$x\"
24375 exec_prefix="$acl_save_exec_prefix"
24376 prefix="$acl_save_prefix"
24378 if test "X$x" = "X$element"; then
24379 haveit=yes
24380 break
24382 done
24383 if test -z "$haveit"; then
24384 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24386 done
24389 { echo "$as_me:$LINENO: checking for iconv" >&5
24390 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
24391 if test "${am_cv_func_iconv+set}" = set; then
24392 echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24395 am_cv_func_iconv="no, consider installing GNU libiconv"
24396 am_cv_lib_iconv=no
24397 cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h. */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24403 #include <stdlib.h>
24404 #include <iconv.h>
24406 main ()
24408 iconv_t cd = iconv_open("","");
24409 iconv(cd,NULL,NULL,NULL,NULL);
24410 iconv_close(cd);
24412 return 0;
24414 _ACEOF
24415 rm -f conftest.$ac_objext conftest$ac_exeext
24416 if { (ac_try="$ac_link"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_link") 2>conftest.er1
24423 ac_status=$?
24424 grep -v '^ *+' conftest.er1 >conftest.err
24425 rm -f conftest.er1
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_cxx_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest$ac_exeext &&
24432 $as_test_x conftest$ac_exeext; then
24433 am_cv_func_iconv=yes
24434 else
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24443 if test "$am_cv_func_iconv" != yes; then
24444 am_save_LIBS="$LIBS"
24445 LIBS="$LIBS $LIBICONV"
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h. */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h. */
24452 #include <stdlib.h>
24453 #include <iconv.h>
24455 main ()
24457 iconv_t cd = iconv_open("","");
24458 iconv(cd,NULL,NULL,NULL,NULL);
24459 iconv_close(cd);
24461 return 0;
24463 _ACEOF
24464 rm -f conftest.$ac_objext conftest$ac_exeext
24465 if { (ac_try="$ac_link"
24466 case "(($ac_try" in
24467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468 *) ac_try_echo=$ac_try;;
24469 esac
24470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24471 (eval "$ac_link") 2>conftest.er1
24472 ac_status=$?
24473 grep -v '^ *+' conftest.er1 >conftest.err
24474 rm -f conftest.er1
24475 cat conftest.err >&5
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_cxx_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest$ac_exeext &&
24481 $as_test_x conftest$ac_exeext; then
24482 am_cv_lib_iconv=yes
24483 am_cv_func_iconv=yes
24484 else
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24492 conftest$ac_exeext conftest.$ac_ext
24493 LIBS="$am_save_LIBS"
24497 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24498 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
24499 if test "$am_cv_func_iconv" = yes; then
24500 { echo "$as_me:$LINENO: checking for working iconv" >&5
24501 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
24502 if test "${am_cv_func_iconv_works+set}" = set; then
24503 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 else
24506 am_save_LIBS="$LIBS"
24507 if test $am_cv_lib_iconv = yes; then
24508 LIBS="$LIBS $LIBICONV"
24510 if test "$cross_compiling" = yes; then
24511 case "$host_os" in
24512 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
24513 *) am_cv_func_iconv_works="guessing yes" ;;
24514 esac
24515 else
24516 cat >conftest.$ac_ext <<_ACEOF
24517 /* confdefs.h. */
24518 _ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h. */
24523 #include <iconv.h>
24524 #include <string.h>
24525 int main ()
24527 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
24528 returns. */
24530 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
24531 if (cd_utf8_to_88591 != (iconv_t)(-1))
24533 static const char input[] = "\342\202\254"; /* EURO SIGN */
24534 char buf[10];
24535 const char *inptr = input;
24536 size_t inbytesleft = strlen (input);
24537 char *outptr = buf;
24538 size_t outbytesleft = sizeof (buf);
24539 size_t res = iconv (cd_utf8_to_88591,
24540 (char **) &inptr, &inbytesleft,
24541 &outptr, &outbytesleft);
24542 if (res == 0)
24543 return 1;
24546 #if 0 /* This bug could be worked around by the caller. */
24547 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
24549 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
24550 if (cd_88591_to_utf8 != (iconv_t)(-1))
24552 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
24553 char buf[50];
24554 const char *inptr = input;
24555 size_t inbytesleft = strlen (input);
24556 char *outptr = buf;
24557 size_t outbytesleft = sizeof (buf);
24558 size_t res = iconv (cd_88591_to_utf8,
24559 (char **) &inptr, &inbytesleft,
24560 &outptr, &outbytesleft);
24561 if ((int)res > 0)
24562 return 1;
24565 #endif
24566 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
24567 provided. */
24568 if (/* Try standardized names. */
24569 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
24570 /* Try IRIX, OSF/1 names. */
24571 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
24572 /* Try AIX names. */
24573 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
24574 /* Try HP-UX names. */
24575 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
24576 return 1;
24577 return 0;
24579 _ACEOF
24580 rm -f conftest$ac_exeext
24581 if { (ac_try="$ac_link"
24582 case "(($ac_try" in
24583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24584 *) ac_try_echo=$ac_try;;
24585 esac
24586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24587 (eval "$ac_link") 2>&5
24588 ac_status=$?
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24591 { (case "(($ac_try" in
24592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593 *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596 (eval "$ac_try") 2>&5
24597 ac_status=$?
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); }; }; then
24600 am_cv_func_iconv_works=yes
24601 else
24602 echo "$as_me: program exited with status $ac_status" >&5
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 ( exit $ac_status )
24607 am_cv_func_iconv_works=no
24609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24613 LIBS="$am_save_LIBS"
24616 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
24617 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
24618 case "$am_cv_func_iconv_works" in
24619 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
24620 *) am_func_iconv=yes ;;
24621 esac
24622 else
24623 am_func_iconv=no am_cv_lib_iconv=no
24625 if test "$am_func_iconv" = yes; then
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_ICONV 1
24629 _ACEOF
24632 if test "$am_cv_lib_iconv" = yes; then
24633 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
24634 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
24635 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
24636 echo "${ECHO_T}$LIBICONV" >&6; }
24637 else
24638 CPPFLAGS="$am_save_CPPFLAGS"
24639 LIBICONV=
24640 LTLIBICONV=
24645 if test "$am_cv_func_iconv" = yes; then
24646 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
24647 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
24648 if test "${am_cv_proto_iconv+set}" = set; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24652 cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h. */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24659 #include <stdlib.h>
24660 #include <iconv.h>
24661 extern
24662 #ifdef __cplusplus
24664 #endif
24665 #if defined(__STDC__) || defined(__cplusplus)
24666 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24667 #else
24668 size_t iconv();
24669 #endif
24672 main ()
24676 return 0;
24678 _ACEOF
24679 rm -f conftest.$ac_objext
24680 if { (ac_try="$ac_compile"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_compile") 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_cxx_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest.$ac_objext; then
24696 am_cv_proto_iconv_arg1=""
24697 else
24698 echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 am_cv_proto_iconv_arg1="const"
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
24708 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
24709 { echo "$as_me:$LINENO: result: ${ac_t:-
24710 }$am_cv_proto_iconv" >&5
24711 echo "${ECHO_T}${ac_t:-
24712 }$am_cv_proto_iconv" >&6; }
24714 cat >>confdefs.h <<_ACEOF
24715 #define ICONV_CONST $am_cv_proto_iconv_arg1
24716 _ACEOF
24723 # Checks for header files.
24730 ac_header_dirent=no
24731 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24732 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24733 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24734 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <sys/types.h>
24745 #include <$ac_hdr>
24748 main ()
24750 if ((DIR *) 0)
24751 return 0;
24753 return 0;
24755 _ACEOF
24756 rm -f conftest.$ac_objext
24757 if { (ac_try="$ac_compile"
24758 case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761 esac
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_compile") 2>conftest.er1
24764 ac_status=$?
24765 grep -v '^ *+' conftest.er1 >conftest.err
24766 rm -f conftest.er1
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && {
24770 test -z "$ac_cxx_werror_flag" ||
24771 test ! -s conftest.err
24772 } && test -s conftest.$ac_objext; then
24773 eval "$as_ac_Header=yes"
24774 else
24775 echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 eval "$as_ac_Header=no"
24781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 ac_res=`eval echo '${'$as_ac_Header'}'`
24784 { echo "$as_me:$LINENO: result: $ac_res" >&5
24785 echo "${ECHO_T}$ac_res" >&6; }
24786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24787 cat >>confdefs.h <<_ACEOF
24788 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24789 _ACEOF
24791 ac_header_dirent=$ac_hdr; break
24794 done
24795 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24796 if test $ac_header_dirent = dirent.h; then
24797 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24799 if test "${ac_cv_search_opendir+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 else
24802 ac_func_search_save_LIBS=$LIBS
24803 cat >conftest.$ac_ext <<_ACEOF
24804 /* confdefs.h. */
24805 _ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24810 /* Override any GCC internal prototype to avoid an error.
24811 Use char because int might match the return type of a GCC
24812 builtin and then its argument prototype would still apply. */
24813 #ifdef __cplusplus
24814 extern "C"
24815 #endif
24816 char opendir ();
24818 main ()
24820 return opendir ();
24822 return 0;
24824 _ACEOF
24825 for ac_lib in '' dir; do
24826 if test -z "$ac_lib"; then
24827 ac_res="none required"
24828 else
24829 ac_res=-l$ac_lib
24830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24832 rm -f conftest.$ac_objext conftest$ac_exeext
24833 if { (ac_try="$ac_link"
24834 case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24837 esac
24838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839 (eval "$ac_link") 2>conftest.er1
24840 ac_status=$?
24841 grep -v '^ *+' conftest.er1 >conftest.err
24842 rm -f conftest.er1
24843 cat conftest.err >&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_cxx_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest$ac_exeext &&
24849 $as_test_x conftest$ac_exeext; then
24850 ac_cv_search_opendir=$ac_res
24851 else
24852 echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24859 conftest$ac_exeext
24860 if test "${ac_cv_search_opendir+set}" = set; then
24861 break
24863 done
24864 if test "${ac_cv_search_opendir+set}" = set; then
24866 else
24867 ac_cv_search_opendir=no
24869 rm conftest.$ac_ext
24870 LIBS=$ac_func_search_save_LIBS
24872 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24873 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24874 ac_res=$ac_cv_search_opendir
24875 if test "$ac_res" != no; then
24876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24880 else
24881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24883 if test "${ac_cv_search_opendir+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24886 ac_func_search_save_LIBS=$LIBS
24887 cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h. */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h. */
24894 /* Override any GCC internal prototype to avoid an error.
24895 Use char because int might match the return type of a GCC
24896 builtin and then its argument prototype would still apply. */
24897 #ifdef __cplusplus
24898 extern "C"
24899 #endif
24900 char opendir ();
24902 main ()
24904 return opendir ();
24906 return 0;
24908 _ACEOF
24909 for ac_lib in '' x; do
24910 if test -z "$ac_lib"; then
24911 ac_res="none required"
24912 else
24913 ac_res=-l$ac_lib
24914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24916 rm -f conftest.$ac_objext conftest$ac_exeext
24917 if { (ac_try="$ac_link"
24918 case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921 esac
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
24924 ac_status=$?
24925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_cxx_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest$ac_exeext &&
24933 $as_test_x conftest$ac_exeext; then
24934 ac_cv_search_opendir=$ac_res
24935 else
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24943 conftest$ac_exeext
24944 if test "${ac_cv_search_opendir+set}" = set; then
24945 break
24947 done
24948 if test "${ac_cv_search_opendir+set}" = set; then
24950 else
24951 ac_cv_search_opendir=no
24953 rm conftest.$ac_ext
24954 LIBS=$ac_func_search_save_LIBS
24956 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24957 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24958 ac_res=$ac_cv_search_opendir
24959 if test "$ac_res" != no; then
24960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24969 if test "${ac_cv_header_stdc+set}" = set; then
24970 echo $ECHO_N "(cached) $ECHO_C" >&6
24971 else
24972 cat >conftest.$ac_ext <<_ACEOF
24973 /* confdefs.h. */
24974 _ACEOF
24975 cat confdefs.h >>conftest.$ac_ext
24976 cat >>conftest.$ac_ext <<_ACEOF
24977 /* end confdefs.h. */
24978 #include <stdlib.h>
24979 #include <stdarg.h>
24980 #include <string.h>
24981 #include <float.h>
24984 main ()
24988 return 0;
24990 _ACEOF
24991 rm -f conftest.$ac_objext
24992 if { (ac_try="$ac_compile"
24993 case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24996 esac
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998 (eval "$ac_compile") 2>conftest.er1
24999 ac_status=$?
25000 grep -v '^ *+' conftest.er1 >conftest.err
25001 rm -f conftest.er1
25002 cat conftest.err >&5
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); } && {
25005 test -z "$ac_cxx_werror_flag" ||
25006 test ! -s conftest.err
25007 } && test -s conftest.$ac_objext; then
25008 ac_cv_header_stdc=yes
25009 else
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25013 ac_cv_header_stdc=no
25016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 if test $ac_cv_header_stdc = yes; then
25019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25020 cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h. */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h. */
25026 #include <string.h>
25028 _ACEOF
25029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25030 $EGREP "memchr" >/dev/null 2>&1; then
25032 else
25033 ac_cv_header_stdc=no
25035 rm -f conftest*
25039 if test $ac_cv_header_stdc = yes; then
25040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25041 cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h. */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25047 #include <stdlib.h>
25049 _ACEOF
25050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25051 $EGREP "free" >/dev/null 2>&1; then
25053 else
25054 ac_cv_header_stdc=no
25056 rm -f conftest*
25060 if test $ac_cv_header_stdc = yes; then
25061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25062 if test "$cross_compiling" = yes; then
25064 else
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 #include <ctype.h>
25072 #include <stdlib.h>
25073 #if ((' ' & 0x0FF) == 0x020)
25074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25076 #else
25077 # define ISLOWER(c) \
25078 (('a' <= (c) && (c) <= 'i') \
25079 || ('j' <= (c) && (c) <= 'r') \
25080 || ('s' <= (c) && (c) <= 'z'))
25081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25082 #endif
25084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25086 main ()
25088 int i;
25089 for (i = 0; i < 256; i++)
25090 if (XOR (islower (i), ISLOWER (i))
25091 || toupper (i) != TOUPPER (i))
25092 return 2;
25093 return 0;
25095 _ACEOF
25096 rm -f conftest$ac_exeext
25097 if { (ac_try="$ac_link"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_link") 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25107 { (case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112 (eval "$ac_try") 2>&5
25113 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; }; then
25117 else
25118 echo "$as_me: program exited with status $ac_status" >&5
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25122 ( exit $ac_status )
25123 ac_cv_header_stdc=no
25125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
25133 if test $ac_cv_header_stdc = yes; then
25135 cat >>confdefs.h <<\_ACEOF
25136 #define STDC_HEADERS 1
25137 _ACEOF
25144 for ac_header in assert.h stdint.h time.h
25146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ac_res=`eval echo '${'$as_ac_Header'}'`
25154 { echo "$as_me:$LINENO: result: $ac_res" >&5
25155 echo "${ECHO_T}$ac_res" >&6; }
25156 else
25157 # Is the header compilable?
25158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25167 #include <$ac_header>
25168 _ACEOF
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_compile") 2>conftest.er1
25177 ac_status=$?
25178 grep -v '^ *+' conftest.er1 >conftest.err
25179 rm -f conftest.er1
25180 cat conftest.err >&5
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && {
25183 test -z "$ac_cxx_werror_flag" ||
25184 test ! -s conftest.err
25185 } && test -s conftest.$ac_objext; then
25186 ac_header_compiler=yes
25187 else
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 ac_header_compiler=no
25194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196 echo "${ECHO_T}$ac_header_compiler" >&6; }
25198 # Is the header present?
25199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h. */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 #include <$ac_header>
25208 _ACEOF
25209 if { (ac_try="$ac_cpp conftest.$ac_ext"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25216 ac_status=$?
25217 grep -v '^ *+' conftest.er1 >conftest.err
25218 rm -f conftest.er1
25219 cat conftest.err >&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } >/dev/null && {
25222 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25223 test ! -s conftest.err
25224 }; then
25225 ac_header_preproc=yes
25226 else
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ac_header_preproc=no
25233 rm -f conftest.err conftest.$ac_ext
25234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25235 echo "${ECHO_T}$ac_header_preproc" >&6; }
25237 # So? What about this header?
25238 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25239 yes:no: )
25240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25244 ac_header_preproc=yes
25246 no:yes:* )
25247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25259 ( cat <<\_ASBOX
25260 ## ------------------------------------------------ ##
25261 ## Report this to barry-devel@lists.sourceforge.net ##
25262 ## ------------------------------------------------ ##
25263 _ASBOX
25264 ) | sed "s/^/$as_me: WARNING: /" >&2
25266 esac
25267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25272 eval "$as_ac_Header=\$ac_header_preproc"
25274 ac_res=`eval echo '${'$as_ac_Header'}'`
25275 { echo "$as_me:$LINENO: result: $ac_res" >&5
25276 echo "${ECHO_T}$ac_res" >&6; }
25279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25280 cat >>confdefs.h <<_ACEOF
25281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25282 _ACEOF
25286 done
25290 # Checks for typedefs, structures, and compiler characteristics.
25292 #AC_TYPE_SIZE_T
25293 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25295 if test "${ac_cv_header_time+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 else
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h. */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 #include <sys/types.h>
25305 #include <sys/time.h>
25306 #include <time.h>
25309 main ()
25311 if ((struct tm *) 0)
25312 return 0;
25314 return 0;
25316 _ACEOF
25317 rm -f conftest.$ac_objext
25318 if { (ac_try="$ac_compile"
25319 case "(($ac_try" in
25320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321 *) ac_try_echo=$ac_try;;
25322 esac
25323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324 (eval "$ac_compile") 2>conftest.er1
25325 ac_status=$?
25326 grep -v '^ *+' conftest.er1 >conftest.err
25327 rm -f conftest.er1
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && {
25331 test -z "$ac_cxx_werror_flag" ||
25332 test ! -s conftest.err
25333 } && test -s conftest.$ac_objext; then
25334 ac_cv_header_time=yes
25335 else
25336 echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 ac_cv_header_time=no
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25345 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25346 if test $ac_cv_header_time = yes; then
25348 cat >>confdefs.h <<\_ACEOF
25349 #define TIME_WITH_SYS_TIME 1
25350 _ACEOF
25354 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25355 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25356 if test "${ac_cv_struct_tm+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h. */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 #include <sys/types.h>
25366 #include <time.h>
25369 main ()
25371 struct tm tm;
25372 int *p = &tm.tm_sec;
25373 return !p;
25375 return 0;
25377 _ACEOF
25378 rm -f conftest.$ac_objext
25379 if { (ac_try="$ac_compile"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_cxx_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25395 ac_cv_struct_tm=time.h
25396 else
25397 echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25400 ac_cv_struct_tm=sys/time.h
25403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25406 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25407 if test $ac_cv_struct_tm = sys/time.h; then
25409 cat >>confdefs.h <<\_ACEOF
25410 #define TM_IN_SYS_TIME 1
25411 _ACEOF
25417 # Checks for library functions.
25420 # checks that are buggy and need a C compiler only
25421 ac_ext=c
25422 ac_cpp='$CPP $CPPFLAGS'
25423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25427 # AC_FUNC_STRNLEN changes linker options for us, and depends on a src/strnlen.c
25428 { echo "$as_me:$LINENO: checking for working strnlen" >&5
25429 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
25430 if test "${ac_cv_func_strnlen_working+set}" = set; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433 if test "$cross_compiling" = yes; then
25434 ac_cv_func_strnlen_working=no
25435 else
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h. */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25444 main ()
25447 #define S "foobar"
25448 #define S_LEN (sizeof S - 1)
25450 /* At least one implementation is buggy: that of AIX 4.3 would
25451 give strnlen (S, 1) == 3. */
25453 int i;
25454 for (i = 0; i < S_LEN + 1; ++i)
25456 int expected = i <= S_LEN ? i : S_LEN;
25457 if (strnlen (S, i) != expected)
25458 return 1;
25460 return 0;
25463 return 0;
25465 _ACEOF
25466 rm -f conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_link") 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25477 { (case "(($ac_try" in
25478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482 (eval "$ac_try") 2>&5
25483 ac_status=$?
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; }; then
25486 ac_cv_func_strnlen_working=yes
25487 else
25488 echo "$as_me: program exited with status $ac_status" >&5
25489 echo "$as_me: failed program was:" >&5
25490 sed 's/^/| /' conftest.$ac_ext >&5
25492 ( exit $ac_status )
25493 ac_cv_func_strnlen_working=no
25495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25500 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
25501 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
25502 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
25503 *" strnlen.$ac_objext "* ) ;;
25504 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
25506 esac
25509 if test $ac_cv_func_strnlen_working = yes ; then
25511 cat >>confdefs.h <<\_ACEOF
25512 #define HAVE_WORKING_STRNLEN 1
25513 _ACEOF
25516 if test $ac_cv_func_strnlen_working = no ; then
25518 cat >>confdefs.h <<\_ACEOF
25519 #define HAVE_WORKING_STRNLEN 0
25520 _ACEOF
25524 # checks that work with C++
25525 ac_ext=cpp
25526 ac_cpp='$CXXCPP $CPPFLAGS'
25527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25531 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25532 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25533 if test "${ac_cv_func_closedir_void+set}" = set; then
25534 echo $ECHO_N "(cached) $ECHO_C" >&6
25535 else
25536 if test "$cross_compiling" = yes; then
25537 ac_cv_func_closedir_void=yes
25538 else
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h. */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 $ac_includes_default
25546 #include <$ac_header_dirent>
25547 #ifndef __cplusplus
25548 int closedir ();
25549 #endif
25552 main ()
25554 return closedir (opendir (".")) != 0;
25556 return 0;
25558 _ACEOF
25559 rm -f conftest$ac_exeext
25560 if { (ac_try="$ac_link"
25561 case "(($ac_try" in
25562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563 *) ac_try_echo=$ac_try;;
25564 esac
25565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25566 (eval "$ac_link") 2>&5
25567 ac_status=$?
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25570 { (case "(($ac_try" in
25571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 *) ac_try_echo=$ac_try;;
25573 esac
25574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 (eval "$ac_try") 2>&5
25576 ac_status=$?
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; }; then
25579 ac_cv_func_closedir_void=no
25580 else
25581 echo "$as_me: program exited with status $ac_status" >&5
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ( exit $ac_status )
25586 ac_cv_func_closedir_void=yes
25588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25594 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25595 if test $ac_cv_func_closedir_void = yes; then
25597 cat >>confdefs.h <<\_ACEOF
25598 #define CLOSEDIR_VOID 1
25599 _ACEOF
25603 if test $ac_cv_c_compiler_gnu = yes; then
25604 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25605 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25606 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25607 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 else
25609 ac_pattern="Autoconf.*'x'"
25610 cat >conftest.$ac_ext <<_ACEOF
25611 /* confdefs.h. */
25612 _ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h. */
25616 #include <sgtty.h>
25617 Autoconf TIOCGETP
25618 _ACEOF
25619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25620 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25621 ac_cv_prog_gcc_traditional=yes
25622 else
25623 ac_cv_prog_gcc_traditional=no
25625 rm -f conftest*
25628 if test $ac_cv_prog_gcc_traditional = no; then
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h. */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h. */
25635 #include <termio.h>
25636 Autoconf TCGETA
25637 _ACEOF
25638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25639 $EGREP "$ac_pattern" >/dev/null 2>&1; then
25640 ac_cv_prog_gcc_traditional=yes
25642 rm -f conftest*
25646 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25647 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25648 if test $ac_cv_prog_gcc_traditional = yes; then
25649 CC="$CC -traditional"
25653 #AC_FUNC_MALLOC
25654 #AC_FUNC_MKTIME
25655 #AC_FUNC_REALLOC
25658 for ac_header in sys/select.h sys/socket.h
25660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 ac_res=`eval echo '${'$as_ac_Header'}'`
25668 { echo "$as_me:$LINENO: result: $ac_res" >&5
25669 echo "${ECHO_T}$ac_res" >&6; }
25670 else
25671 # Is the header compilable?
25672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25674 cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h. */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h. */
25680 $ac_includes_default
25681 #include <$ac_header>
25682 _ACEOF
25683 rm -f conftest.$ac_objext
25684 if { (ac_try="$ac_compile"
25685 case "(($ac_try" in
25686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687 *) ac_try_echo=$ac_try;;
25688 esac
25689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25690 (eval "$ac_compile") 2>conftest.er1
25691 ac_status=$?
25692 grep -v '^ *+' conftest.er1 >conftest.err
25693 rm -f conftest.er1
25694 cat conftest.err >&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } && {
25697 test -z "$ac_cxx_werror_flag" ||
25698 test ! -s conftest.err
25699 } && test -s conftest.$ac_objext; then
25700 ac_header_compiler=yes
25701 else
25702 echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25705 ac_header_compiler=no
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25710 echo "${ECHO_T}$ac_header_compiler" >&6; }
25712 # Is the header present?
25713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25715 cat >conftest.$ac_ext <<_ACEOF
25716 /* confdefs.h. */
25717 _ACEOF
25718 cat confdefs.h >>conftest.$ac_ext
25719 cat >>conftest.$ac_ext <<_ACEOF
25720 /* end confdefs.h. */
25721 #include <$ac_header>
25722 _ACEOF
25723 if { (ac_try="$ac_cpp conftest.$ac_ext"
25724 case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25727 esac
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25730 ac_status=$?
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } >/dev/null && {
25736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25737 test ! -s conftest.err
25738 }; then
25739 ac_header_preproc=yes
25740 else
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 ac_header_preproc=no
25747 rm -f conftest.err conftest.$ac_ext
25748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25749 echo "${ECHO_T}$ac_header_preproc" >&6; }
25751 # So? What about this header?
25752 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25753 yes:no: )
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25758 ac_header_preproc=yes
25760 no:yes:* )
25761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25773 ( cat <<\_ASBOX
25774 ## ------------------------------------------------ ##
25775 ## Report this to barry-devel@lists.sourceforge.net ##
25776 ## ------------------------------------------------ ##
25777 _ASBOX
25778 ) | sed "s/^/$as_me: WARNING: /" >&2
25780 esac
25781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786 eval "$as_ac_Header=\$ac_header_preproc"
25788 ac_res=`eval echo '${'$as_ac_Header'}'`
25789 { echo "$as_me:$LINENO: result: $ac_res" >&5
25790 echo "${ECHO_T}$ac_res" >&6; }
25793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25794 cat >>confdefs.h <<_ACEOF
25795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25796 _ACEOF
25800 done
25802 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
25803 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
25804 if test "${ac_cv_func_select_args+set}" = set; then
25805 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 else
25807 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25808 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25809 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25810 cat >conftest.$ac_ext <<_ACEOF
25811 /* confdefs.h. */
25812 _ACEOF
25813 cat confdefs.h >>conftest.$ac_ext
25814 cat >>conftest.$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 $ac_includes_default
25817 #ifdef HAVE_SYS_SELECT_H
25818 # include <sys/select.h>
25819 #endif
25820 #ifdef HAVE_SYS_SOCKET_H
25821 # include <sys/socket.h>
25822 #endif
25825 main ()
25827 extern int select ($ac_arg1,
25828 $ac_arg234, $ac_arg234, $ac_arg234,
25829 $ac_arg5);
25831 return 0;
25833 _ACEOF
25834 rm -f conftest.$ac_objext
25835 if { (ac_try="$ac_compile"
25836 case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25839 esac
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_compile") 2>conftest.er1
25842 ac_status=$?
25843 grep -v '^ *+' conftest.er1 >conftest.err
25844 rm -f conftest.er1
25845 cat conftest.err >&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); } && {
25848 test -z "$ac_cxx_werror_flag" ||
25849 test ! -s conftest.err
25850 } && test -s conftest.$ac_objext; then
25851 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25852 else
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25860 done
25861 done
25862 done
25863 # Provide a safe default value.
25864 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25867 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25868 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
25869 ac_save_IFS=$IFS; IFS=','
25870 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25871 IFS=$ac_save_IFS
25872 shift
25874 cat >>confdefs.h <<_ACEOF
25875 #define SELECT_TYPE_ARG1 $1
25876 _ACEOF
25879 cat >>confdefs.h <<_ACEOF
25880 #define SELECT_TYPE_ARG234 ($2)
25881 _ACEOF
25884 cat >>confdefs.h <<_ACEOF
25885 #define SELECT_TYPE_ARG5 ($3)
25886 _ACEOF
25888 rm -f conftest*
25890 #AC_FUNC_STAT
25901 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
25903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25908 else
25909 cat >conftest.$ac_ext <<_ACEOF
25910 /* confdefs.h. */
25911 _ACEOF
25912 cat confdefs.h >>conftest.$ac_ext
25913 cat >>conftest.$ac_ext <<_ACEOF
25914 /* end confdefs.h. */
25915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25917 #define $ac_func innocuous_$ac_func
25919 /* System header to define __stub macros and hopefully few prototypes,
25920 which can conflict with char $ac_func (); below.
25921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25922 <limits.h> exists even on freestanding compilers. */
25924 #ifdef __STDC__
25925 # include <limits.h>
25926 #else
25927 # include <assert.h>
25928 #endif
25930 #undef $ac_func
25932 /* Override any GCC internal prototype to avoid an error.
25933 Use char because int might match the return type of a GCC
25934 builtin and then its argument prototype would still apply. */
25935 #ifdef __cplusplus
25936 extern "C"
25937 #endif
25938 char $ac_func ();
25939 /* The GNU C library defines this for functions which it implements
25940 to always fail with ENOSYS. Some functions are actually named
25941 something starting with __ and the normal name is an alias. */
25942 #if defined __stub_$ac_func || defined __stub___$ac_func
25943 choke me
25944 #endif
25947 main ()
25949 return $ac_func ();
25951 return 0;
25953 _ACEOF
25954 rm -f conftest.$ac_objext conftest$ac_exeext
25955 if { (ac_try="$ac_link"
25956 case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_link") 2>conftest.er1
25962 ac_status=$?
25963 grep -v '^ *+' conftest.er1 >conftest.err
25964 rm -f conftest.er1
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } && {
25968 test -z "$ac_cxx_werror_flag" ||
25969 test ! -s conftest.err
25970 } && test -s conftest$ac_exeext &&
25971 $as_test_x conftest$ac_exeext; then
25972 eval "$as_ac_var=yes"
25973 else
25974 echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25977 eval "$as_ac_var=no"
25980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25981 conftest$ac_exeext conftest.$ac_ext
25983 ac_res=`eval echo '${'$as_ac_var'}'`
25984 { echo "$as_me:$LINENO: result: $ac_res" >&5
25985 echo "${ECHO_T}$ac_res" >&6; }
25986 if test `eval echo '${'$as_ac_var'}'` = yes; then
25987 cat >>confdefs.h <<_ACEOF
25988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25989 _ACEOF
25992 done
25994 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25995 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25996 if test "${ac_cv_c_bigendian+set}" = set; then
25997 echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999 # See if sys/param.h defines the BYTE_ORDER macro.
26000 cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h. */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <sys/types.h>
26007 #include <sys/param.h>
26010 main ()
26012 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
26013 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
26014 bogus endian macros
26015 #endif
26018 return 0;
26020 _ACEOF
26021 rm -f conftest.$ac_objext
26022 if { (ac_try="$ac_compile"
26023 case "(($ac_try" in
26024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025 *) ac_try_echo=$ac_try;;
26026 esac
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028 (eval "$ac_compile") 2>conftest.er1
26029 ac_status=$?
26030 grep -v '^ *+' conftest.er1 >conftest.err
26031 rm -f conftest.er1
26032 cat conftest.err >&5
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } && {
26035 test -z "$ac_cxx_werror_flag" ||
26036 test ! -s conftest.err
26037 } && test -s conftest.$ac_objext; then
26038 # It does; now see whether it defined to BIG_ENDIAN or not.
26039 cat >conftest.$ac_ext <<_ACEOF
26040 /* confdefs.h. */
26041 _ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26045 #include <sys/types.h>
26046 #include <sys/param.h>
26049 main ()
26051 #if BYTE_ORDER != BIG_ENDIAN
26052 not big endian
26053 #endif
26056 return 0;
26058 _ACEOF
26059 rm -f conftest.$ac_objext
26060 if { (ac_try="$ac_compile"
26061 case "(($ac_try" in
26062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063 *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066 (eval "$ac_compile") 2>conftest.er1
26067 ac_status=$?
26068 grep -v '^ *+' conftest.er1 >conftest.err
26069 rm -f conftest.er1
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_cxx_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest.$ac_objext; then
26076 ac_cv_c_bigendian=yes
26077 else
26078 echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26081 ac_cv_c_bigendian=no
26084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085 else
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 # It does not; compile a test program.
26090 if test "$cross_compiling" = yes; then
26091 # try to guess the endianness by grepping values into an object file
26092 ac_cv_c_bigendian=unknown
26093 cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h. */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h. */
26099 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26100 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26101 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26102 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26103 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26104 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26106 main ()
26108 _ascii (); _ebcdic ();
26110 return 0;
26112 _ACEOF
26113 rm -f conftest.$ac_objext
26114 if { (ac_try="$ac_compile"
26115 case "(($ac_try" in
26116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26117 *) ac_try_echo=$ac_try;;
26118 esac
26119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26120 (eval "$ac_compile") 2>conftest.er1
26121 ac_status=$?
26122 grep -v '^ *+' conftest.er1 >conftest.err
26123 rm -f conftest.er1
26124 cat conftest.err >&5
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } && {
26127 test -z "$ac_cxx_werror_flag" ||
26128 test ! -s conftest.err
26129 } && test -s conftest.$ac_objext; then
26130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26131 ac_cv_c_bigendian=yes
26133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26134 if test "$ac_cv_c_bigendian" = unknown; then
26135 ac_cv_c_bigendian=no
26136 else
26137 # finding both strings is unlikely to happen, but who knows?
26138 ac_cv_c_bigendian=unknown
26141 else
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 else
26150 cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h. */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h. */
26156 $ac_includes_default
26158 main ()
26161 /* Are we little or big endian? From Harbison&Steele. */
26162 union
26164 long int l;
26165 char c[sizeof (long int)];
26166 } u;
26167 u.l = 1;
26168 return u.c[sizeof (long int) - 1] == 1;
26171 return 0;
26173 _ACEOF
26174 rm -f conftest$ac_exeext
26175 if { (ac_try="$ac_link"
26176 case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26179 esac
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181 (eval "$ac_link") 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26185 { (case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26188 esac
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190 (eval "$ac_try") 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; }; then
26194 ac_cv_c_bigendian=no
26195 else
26196 echo "$as_me: program exited with status $ac_status" >&5
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26200 ( exit $ac_status )
26201 ac_cv_c_bigendian=yes
26203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26213 case $ac_cv_c_bigendian in
26214 yes)
26216 cat >>confdefs.h <<\_ACEOF
26217 #define WORDS_BIGENDIAN 1
26218 _ACEOF
26223 { { echo "$as_me:$LINENO: error: unknown endianness
26224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26225 echo "$as_me: error: unknown endianness
26226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26227 { (exit 1); exit 1; }; } ;;
26228 esac
26231 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile tools/Makefile examples/Makefile man/Makefile libbarry-0.pc libbarrydp-0.pc libbarryjdwp-0.pc libbarrysync-0.pc libbarrybackup-0.pc libbarryalx-0.pc"
26235 # nested packages
26237 # Check whether --enable-gui was given.
26238 if test "${enable_gui+set}" = set; then
26239 enableval=$enable_gui;
26242 # Check whether --enable-opensync-plugin was given.
26243 if test "${enable_opensync_plugin+set}" = set; then
26244 enableval=$enable_opensync_plugin;
26247 # Check whether --enable-opensync-plugin-4x was given.
26248 if test "${enable_opensync_plugin_4x+set}" = set; then
26249 enableval=$enable_opensync_plugin_4x;
26253 # make sure that the environment is setup before anything else
26254 if test "$enable_gui" = yes || test "$enable_opensync_plugin" = yes || test "$enable_opensync_plugin_4x" = yes; then
26255 export TREE_BUILD_CXXFLAGS="-I`pwd`"
26256 export TREE_BUILD_LDFLAGS="-L`pwd`/src"
26257 export PKG_CONFIG_PATH="`pwd`:$PKG_CONFIG_PATH"
26260 # conditionally enable the subdirectory packages
26261 if test "$enable_gui" = yes; then
26262 subdirs="$subdirs gui"
26265 if test "$enable_opensync_plugin" = yes; then
26266 subdirs="$subdirs opensync-plugin"
26269 if test "$enable_opensync_plugin_4x" = yes; then
26270 subdirs="$subdirs opensync-plugin-0.4x"
26275 # Generate the scripts!
26277 cat >confcache <<\_ACEOF
26278 # This file is a shell script that caches the results of configure
26279 # tests run on this system so they can be shared between configure
26280 # scripts and configure runs, see configure's option --config-cache.
26281 # It is not useful on other systems. If it contains results you don't
26282 # want to keep, you may remove or edit it.
26284 # config.status only pays attention to the cache file if you give it
26285 # the --recheck option to rerun configure.
26287 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26288 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26289 # following values.
26291 _ACEOF
26293 # The following way of writing the cache mishandles newlines in values,
26294 # but we know of no workaround that is simple, portable, and efficient.
26295 # So, we kill variables containing newlines.
26296 # Ultrix sh set writes to stderr and can't be redirected directly,
26297 # and sets the high bit in the cache file unless we assign to the vars.
26299 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26300 eval ac_val=\$$ac_var
26301 case $ac_val in #(
26302 *${as_nl}*)
26303 case $ac_var in #(
26304 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26305 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26306 esac
26307 case $ac_var in #(
26308 _ | IFS | as_nl) ;; #(
26309 *) $as_unset $ac_var ;;
26310 esac ;;
26311 esac
26312 done
26314 (set) 2>&1 |
26315 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26316 *${as_nl}ac_space=\ *)
26317 # `set' does not quote correctly, so add quotes (double-quote
26318 # substitution turns \\\\ into \\, and sed turns \\ into \).
26319 sed -n \
26320 "s/'/'\\\\''/g;
26321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26322 ;; #(
26324 # `set' quotes correctly as required by POSIX, so do not add quotes.
26325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26327 esac |
26328 sort
26330 sed '
26331 /^ac_cv_env_/b end
26332 t clear
26333 :clear
26334 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26335 t end
26336 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26337 :end' >>confcache
26338 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26339 if test -w "$cache_file"; then
26340 test "x$cache_file" != "x/dev/null" &&
26341 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26342 echo "$as_me: updating cache $cache_file" >&6;}
26343 cat confcache >$cache_file
26344 else
26345 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26346 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26349 rm -f confcache
26351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26352 # Let make expand exec_prefix.
26353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26355 DEFS=-DHAVE_CONFIG_H
26357 ac_libobjs=
26358 ac_ltlibobjs=
26359 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26360 # 1. Remove the extension, and $U if already installed.
26361 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26362 ac_i=`echo "$ac_i" | sed "$ac_script"`
26363 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26364 # will be set to the directory where LIBOBJS objects are built.
26365 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26366 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26367 done
26368 LIBOBJS=$ac_libobjs
26370 LTLIBOBJS=$ac_ltlibobjs
26373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26374 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26375 Usually this means the macro was only invoked conditionally." >&5
26376 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26377 Usually this means the macro was only invoked conditionally." >&2;}
26378 { (exit 1); exit 1; }; }
26380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26382 Usually this means the macro was only invoked conditionally." >&5
26383 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26384 Usually this means the macro was only invoked conditionally." >&2;}
26385 { (exit 1); exit 1; }; }
26387 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26388 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26389 Usually this means the macro was only invoked conditionally." >&5
26390 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26391 Usually this means the macro was only invoked conditionally." >&2;}
26392 { (exit 1); exit 1; }; }
26394 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26395 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26396 Usually this means the macro was only invoked conditionally." >&5
26397 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26398 Usually this means the macro was only invoked conditionally." >&2;}
26399 { (exit 1); exit 1; }; }
26401 if test -z "${WITH_GCCVISIBILITY_TRUE}" && test -z "${WITH_GCCVISIBILITY_FALSE}"; then
26402 { { echo "$as_me:$LINENO: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
26403 Usually this means the macro was only invoked conditionally." >&5
26404 echo "$as_me: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
26405 Usually this means the macro was only invoked conditionally." >&2;}
26406 { (exit 1); exit 1; }; }
26408 if test -z "${WITH_BACKUP_TRUE}" && test -z "${WITH_BACKUP_FALSE}"; then
26409 { { echo "$as_me:$LINENO: error: conditional \"WITH_BACKUP\" was never defined.
26410 Usually this means the macro was only invoked conditionally." >&5
26411 echo "$as_me: error: conditional \"WITH_BACKUP\" was never defined.
26412 Usually this means the macro was only invoked conditionally." >&2;}
26413 { (exit 1); exit 1; }; }
26415 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
26416 { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
26417 Usually this means the macro was only invoked conditionally." >&5
26418 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
26419 Usually this means the macro was only invoked conditionally." >&2;}
26420 { (exit 1); exit 1; }; }
26422 if test -z "${WITH_FUSE_TRUE}" && test -z "${WITH_FUSE_FALSE}"; then
26423 { { echo "$as_me:$LINENO: error: conditional \"WITH_FUSE\" was never defined.
26424 Usually this means the macro was only invoked conditionally." >&5
26425 echo "$as_me: error: conditional \"WITH_FUSE\" was never defined.
26426 Usually this means the macro was only invoked conditionally." >&2;}
26427 { (exit 1); exit 1; }; }
26429 if test -z "${WITH_SYNC_TRUE}" && test -z "${WITH_SYNC_FALSE}"; then
26430 { { echo "$as_me:$LINENO: error: conditional \"WITH_SYNC\" was never defined.
26431 Usually this means the macro was only invoked conditionally." >&5
26432 echo "$as_me: error: conditional \"WITH_SYNC\" was never defined.
26433 Usually this means the macro was only invoked conditionally." >&2;}
26434 { (exit 1); exit 1; }; }
26436 if test -z "${WITH_ALX_TRUE}" && test -z "${WITH_ALX_FALSE}"; then
26437 { { echo "$as_me:$LINENO: error: conditional \"WITH_ALX\" was never defined.
26438 Usually this means the macro was only invoked conditionally." >&5
26439 echo "$as_me: error: conditional \"WITH_ALX\" was never defined.
26440 Usually this means the macro was only invoked conditionally." >&2;}
26441 { (exit 1); exit 1; }; }
26444 : ${CONFIG_STATUS=./config.status}
26445 ac_clean_files_save=$ac_clean_files
26446 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26447 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26448 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26449 cat >$CONFIG_STATUS <<_ACEOF
26450 #! $SHELL
26451 # Generated by $as_me.
26452 # Run this file to recreate the current configuration.
26453 # Compiler output produced by configure, useful for debugging
26454 # configure, is in config.log if it exists.
26456 debug=false
26457 ac_cs_recheck=false
26458 ac_cs_silent=false
26459 SHELL=\${CONFIG_SHELL-$SHELL}
26460 _ACEOF
26462 cat >>$CONFIG_STATUS <<\_ACEOF
26463 ## --------------------- ##
26464 ## M4sh Initialization. ##
26465 ## --------------------- ##
26467 # Be more Bourne compatible
26468 DUALCASE=1; export DUALCASE # for MKS sh
26469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26470 emulate sh
26471 NULLCMD=:
26472 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26473 # is contrary to our usage. Disable this feature.
26474 alias -g '${1+"$@"}'='"$@"'
26475 setopt NO_GLOB_SUBST
26476 else
26477 case `(set -o) 2>/dev/null` in
26478 *posix*) set -o posix ;;
26479 esac
26486 # PATH needs CR
26487 # Avoid depending upon Character Ranges.
26488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26491 as_cr_digits='0123456789'
26492 as_cr_alnum=$as_cr_Letters$as_cr_digits
26494 # The user is always right.
26495 if test "${PATH_SEPARATOR+set}" != set; then
26496 echo "#! /bin/sh" >conf$$.sh
26497 echo "exit 0" >>conf$$.sh
26498 chmod +x conf$$.sh
26499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26500 PATH_SEPARATOR=';'
26501 else
26502 PATH_SEPARATOR=:
26504 rm -f conf$$.sh
26507 # Support unset when possible.
26508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26509 as_unset=unset
26510 else
26511 as_unset=false
26515 # IFS
26516 # We need space, tab and new line, in precisely that order. Quoting is
26517 # there to prevent editors from complaining about space-tab.
26518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26519 # splitting by setting IFS to empty value.)
26520 as_nl='
26522 IFS=" "" $as_nl"
26524 # Find who we are. Look in the path if we contain no directory separator.
26525 case $0 in
26526 *[\\/]* ) as_myself=$0 ;;
26527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26528 for as_dir in $PATH
26530 IFS=$as_save_IFS
26531 test -z "$as_dir" && as_dir=.
26532 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26533 done
26534 IFS=$as_save_IFS
26537 esac
26538 # We did not find ourselves, most probably we were run as `sh COMMAND'
26539 # in which case we are not to be found in the path.
26540 if test "x$as_myself" = x; then
26541 as_myself=$0
26543 if test ! -f "$as_myself"; then
26544 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26545 { (exit 1); exit 1; }
26548 # Work around bugs in pre-3.0 UWIN ksh.
26549 for as_var in ENV MAIL MAILPATH
26550 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26551 done
26552 PS1='$ '
26553 PS2='> '
26554 PS4='+ '
26556 # NLS nuisances.
26557 for as_var in \
26558 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26559 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26560 LC_TELEPHONE LC_TIME
26562 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26563 eval $as_var=C; export $as_var
26564 else
26565 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26567 done
26569 # Required to use basename.
26570 if expr a : '\(a\)' >/dev/null 2>&1 &&
26571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26572 as_expr=expr
26573 else
26574 as_expr=false
26577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26578 as_basename=basename
26579 else
26580 as_basename=false
26584 # Name of the executable.
26585 as_me=`$as_basename -- "$0" ||
26586 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26587 X"$0" : 'X\(//\)$' \| \
26588 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26589 echo X/"$0" |
26590 sed '/^.*\/\([^/][^/]*\)\/*$/{
26591 s//\1/
26594 /^X\/\(\/\/\)$/{
26595 s//\1/
26598 /^X\/\(\/\).*/{
26599 s//\1/
26602 s/.*/./; q'`
26604 # CDPATH.
26605 $as_unset CDPATH
26609 as_lineno_1=$LINENO
26610 as_lineno_2=$LINENO
26611 test "x$as_lineno_1" != "x$as_lineno_2" &&
26612 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26614 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26615 # uniformly replaced by the line number. The first 'sed' inserts a
26616 # line-number line after each line using $LINENO; the second 'sed'
26617 # does the real work. The second script uses 'N' to pair each
26618 # line-number line with the line containing $LINENO, and appends
26619 # trailing '-' during substitution so that $LINENO is not a special
26620 # case at line end.
26621 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26622 # scripts with optimization help from Paolo Bonzini. Blame Lee
26623 # E. McMahon (1931-1989) for sed's syntax. :-)
26624 sed -n '
26626 /[$]LINENO/=
26627 ' <$as_myself |
26628 sed '
26629 s/[$]LINENO.*/&-/
26630 t lineno
26632 :lineno
26634 :loop
26635 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26636 t loop
26637 s/-\n.*//
26638 ' >$as_me.lineno &&
26639 chmod +x "$as_me.lineno" ||
26640 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26641 { (exit 1); exit 1; }; }
26643 # Don't try to exec as it changes $[0], causing all sort of problems
26644 # (the dirname of $[0] is not the place where we might find the
26645 # original and so on. Autoconf is especially sensitive to this).
26646 . "./$as_me.lineno"
26647 # Exit status is that of the last command.
26648 exit
26652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26653 as_dirname=dirname
26654 else
26655 as_dirname=false
26658 ECHO_C= ECHO_N= ECHO_T=
26659 case `echo -n x` in
26660 -n*)
26661 case `echo 'x\c'` in
26662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26663 *) ECHO_C='\c';;
26664 esac;;
26666 ECHO_N='-n';;
26667 esac
26669 if expr a : '\(a\)' >/dev/null 2>&1 &&
26670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26671 as_expr=expr
26672 else
26673 as_expr=false
26676 rm -f conf$$ conf$$.exe conf$$.file
26677 if test -d conf$$.dir; then
26678 rm -f conf$$.dir/conf$$.file
26679 else
26680 rm -f conf$$.dir
26681 mkdir conf$$.dir
26683 echo >conf$$.file
26684 if ln -s conf$$.file conf$$ 2>/dev/null; then
26685 as_ln_s='ln -s'
26686 # ... but there are two gotchas:
26687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26689 # In both cases, we have to default to `cp -p'.
26690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26691 as_ln_s='cp -p'
26692 elif ln conf$$.file conf$$ 2>/dev/null; then
26693 as_ln_s=ln
26694 else
26695 as_ln_s='cp -p'
26697 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26698 rmdir conf$$.dir 2>/dev/null
26700 if mkdir -p . 2>/dev/null; then
26701 as_mkdir_p=:
26702 else
26703 test -d ./-p && rmdir ./-p
26704 as_mkdir_p=false
26707 if test -x / >/dev/null 2>&1; then
26708 as_test_x='test -x'
26709 else
26710 if ls -dL / >/dev/null 2>&1; then
26711 as_ls_L_option=L
26712 else
26713 as_ls_L_option=
26715 as_test_x='
26716 eval sh -c '\''
26717 if test -d "$1"; then
26718 test -d "$1/.";
26719 else
26720 case $1 in
26721 -*)set "./$1";;
26722 esac;
26723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26724 ???[sx]*):;;*)false;;esac;fi
26725 '\'' sh
26728 as_executable_p=$as_test_x
26730 # Sed expression to map a string onto a valid CPP name.
26731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26733 # Sed expression to map a string onto a valid variable name.
26734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26737 exec 6>&1
26739 # Save the log message, to keep $[0] and so on meaningful, and to
26740 # report actual input values of CONFIG_FILES etc. instead of their
26741 # values after options handling.
26742 ac_log="
26743 This file was extended by barry $as_me 0.17.0, which was
26744 generated by GNU Autoconf 2.61. Invocation command line was
26746 CONFIG_FILES = $CONFIG_FILES
26747 CONFIG_HEADERS = $CONFIG_HEADERS
26748 CONFIG_LINKS = $CONFIG_LINKS
26749 CONFIG_COMMANDS = $CONFIG_COMMANDS
26750 $ $0 $@
26752 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26755 _ACEOF
26757 cat >>$CONFIG_STATUS <<_ACEOF
26758 # Files that config.status was made for.
26759 config_files="$ac_config_files"
26760 config_headers="$ac_config_headers"
26761 config_commands="$ac_config_commands"
26763 _ACEOF
26765 cat >>$CONFIG_STATUS <<\_ACEOF
26766 ac_cs_usage="\
26767 \`$as_me' instantiates files from templates according to the
26768 current configuration.
26770 Usage: $0 [OPTIONS] [FILE]...
26772 -h, --help print this help, then exit
26773 -V, --version print version number and configuration settings, then exit
26774 -q, --quiet do not print progress messages
26775 -d, --debug don't remove temporary files
26776 --recheck update $as_me by reconfiguring in the same conditions
26777 --file=FILE[:TEMPLATE]
26778 instantiate the configuration file FILE
26779 --header=FILE[:TEMPLATE]
26780 instantiate the configuration header FILE
26782 Configuration files:
26783 $config_files
26785 Configuration headers:
26786 $config_headers
26788 Configuration commands:
26789 $config_commands
26791 Report bugs to <bug-autoconf@gnu.org>."
26793 _ACEOF
26794 cat >>$CONFIG_STATUS <<_ACEOF
26795 ac_cs_version="\\
26796 barry config.status 0.17.0
26797 configured by $0, generated by GNU Autoconf 2.61,
26798 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26800 Copyright (C) 2006 Free Software Foundation, Inc.
26801 This config.status script is free software; the Free Software Foundation
26802 gives unlimited permission to copy, distribute and modify it."
26804 ac_pwd='$ac_pwd'
26805 srcdir='$srcdir'
26806 INSTALL='$INSTALL'
26807 MKDIR_P='$MKDIR_P'
26808 _ACEOF
26810 cat >>$CONFIG_STATUS <<\_ACEOF
26811 # If no file are specified by the user, then we need to provide default
26812 # value. By we need to know if files were specified by the user.
26813 ac_need_defaults=:
26814 while test $# != 0
26816 case $1 in
26817 --*=*)
26818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26820 ac_shift=:
26823 ac_option=$1
26824 ac_optarg=$2
26825 ac_shift=shift
26827 esac
26829 case $ac_option in
26830 # Handling of the options.
26831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26832 ac_cs_recheck=: ;;
26833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26834 echo "$ac_cs_version"; exit ;;
26835 --debug | --debu | --deb | --de | --d | -d )
26836 debug=: ;;
26837 --file | --fil | --fi | --f )
26838 $ac_shift
26839 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26840 ac_need_defaults=false;;
26841 --header | --heade | --head | --hea )
26842 $ac_shift
26843 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26844 ac_need_defaults=false;;
26845 --he | --h)
26846 # Conflict between --help and --header
26847 { echo "$as_me: error: ambiguous option: $1
26848 Try \`$0 --help' for more information." >&2
26849 { (exit 1); exit 1; }; };;
26850 --help | --hel | -h )
26851 echo "$ac_cs_usage"; exit ;;
26852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26854 ac_cs_silent=: ;;
26856 # This is an error.
26857 -*) { echo "$as_me: error: unrecognized option: $1
26858 Try \`$0 --help' for more information." >&2
26859 { (exit 1); exit 1; }; } ;;
26861 *) ac_config_targets="$ac_config_targets $1"
26862 ac_need_defaults=false ;;
26864 esac
26865 shift
26866 done
26868 ac_configure_extra_args=
26870 if $ac_cs_silent; then
26871 exec 6>/dev/null
26872 ac_configure_extra_args="$ac_configure_extra_args --silent"
26875 _ACEOF
26876 cat >>$CONFIG_STATUS <<_ACEOF
26877 if \$ac_cs_recheck; then
26878 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26879 CONFIG_SHELL=$SHELL
26880 export CONFIG_SHELL
26881 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26884 _ACEOF
26885 cat >>$CONFIG_STATUS <<\_ACEOF
26886 exec 5>>config.log
26888 echo
26889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26890 ## Running $as_me. ##
26891 _ASBOX
26892 echo "$ac_log"
26893 } >&5
26895 _ACEOF
26896 cat >>$CONFIG_STATUS <<_ACEOF
26898 # INIT-COMMANDS
26900 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26901 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26902 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26903 # from automake < 1.5.
26904 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26905 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26906 LINGUAS="${LINGUAS-%UNSET%}"
26909 _ACEOF
26911 cat >>$CONFIG_STATUS <<\_ACEOF
26913 # Handling of arguments.
26914 for ac_config_target in $ac_config_targets
26916 case $ac_config_target in
26917 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
26918 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26919 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
26920 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26921 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26922 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26923 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26924 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26925 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26926 "libbarry-0.pc") CONFIG_FILES="$CONFIG_FILES libbarry-0.pc" ;;
26927 "libbarrydp-0.pc") CONFIG_FILES="$CONFIG_FILES libbarrydp-0.pc" ;;
26928 "libbarryjdwp-0.pc") CONFIG_FILES="$CONFIG_FILES libbarryjdwp-0.pc" ;;
26929 "libbarrysync-0.pc") CONFIG_FILES="$CONFIG_FILES libbarrysync-0.pc" ;;
26930 "libbarrybackup-0.pc") CONFIG_FILES="$CONFIG_FILES libbarrybackup-0.pc" ;;
26931 "libbarryalx-0.pc") CONFIG_FILES="$CONFIG_FILES libbarryalx-0.pc" ;;
26933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26935 { (exit 1); exit 1; }; };;
26936 esac
26937 done
26940 # If the user did not use the arguments to specify the items to instantiate,
26941 # then the envvar interface is used. Set only those that are not.
26942 # We use the long form for the default assignment because of an extremely
26943 # bizarre bug on SunOS 4.1.3.
26944 if $ac_need_defaults; then
26945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26946 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26950 # Have a temporary directory for convenience. Make it in the build tree
26951 # simply because there is no reason against having it here, and in addition,
26952 # creating and moving files from /tmp can sometimes cause problems.
26953 # Hook for its removal unless debugging.
26954 # Note that there is a small window in which the directory will not be cleaned:
26955 # after its creation but before its name has been assigned to `$tmp'.
26956 $debug ||
26958 tmp=
26959 trap 'exit_status=$?
26960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26962 trap '{ (exit 1); exit 1; }' 1 2 13 15
26964 # Create a (secure) tmp directory for tmp files.
26967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26968 test -n "$tmp" && test -d "$tmp"
26969 } ||
26971 tmp=./conf$$-$RANDOM
26972 (umask 077 && mkdir "$tmp")
26973 } ||
26975 echo "$me: cannot create a temporary directory in ." >&2
26976 { (exit 1); exit 1; }
26980 # Set up the sed scripts for CONFIG_FILES section.
26983 # No need to generate the scripts if there are no CONFIG_FILES.
26984 # This happens for instance when ./config.status config.h
26985 if test -n "$CONFIG_FILES"; then
26987 _ACEOF
26991 ac_delim='%!_!# '
26992 for ac_last_try in false false false false false :; do
26993 cat >conf$$subs.sed <<_ACEOF
26994 SHELL!$SHELL$ac_delim
26995 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26996 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26997 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26998 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26999 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27000 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27001 exec_prefix!$exec_prefix$ac_delim
27002 prefix!$prefix$ac_delim
27003 program_transform_name!$program_transform_name$ac_delim
27004 bindir!$bindir$ac_delim
27005 sbindir!$sbindir$ac_delim
27006 libexecdir!$libexecdir$ac_delim
27007 datarootdir!$datarootdir$ac_delim
27008 datadir!$datadir$ac_delim
27009 sysconfdir!$sysconfdir$ac_delim
27010 sharedstatedir!$sharedstatedir$ac_delim
27011 localstatedir!$localstatedir$ac_delim
27012 includedir!$includedir$ac_delim
27013 oldincludedir!$oldincludedir$ac_delim
27014 docdir!$docdir$ac_delim
27015 infodir!$infodir$ac_delim
27016 htmldir!$htmldir$ac_delim
27017 dvidir!$dvidir$ac_delim
27018 pdfdir!$pdfdir$ac_delim
27019 psdir!$psdir$ac_delim
27020 libdir!$libdir$ac_delim
27021 localedir!$localedir$ac_delim
27022 mandir!$mandir$ac_delim
27023 DEFS!$DEFS$ac_delim
27024 ECHO_C!$ECHO_C$ac_delim
27025 ECHO_N!$ECHO_N$ac_delim
27026 ECHO_T!$ECHO_T$ac_delim
27027 LIBS!$LIBS$ac_delim
27028 build_alias!$build_alias$ac_delim
27029 host_alias!$host_alias$ac_delim
27030 target_alias!$target_alias$ac_delim
27031 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27032 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27033 INSTALL_DATA!$INSTALL_DATA$ac_delim
27034 am__isrc!$am__isrc$ac_delim
27035 CYGPATH_W!$CYGPATH_W$ac_delim
27036 PACKAGE!$PACKAGE$ac_delim
27037 VERSION!$VERSION$ac_delim
27038 ACLOCAL!$ACLOCAL$ac_delim
27039 AUTOCONF!$AUTOCONF$ac_delim
27040 AUTOMAKE!$AUTOMAKE$ac_delim
27041 AUTOHEADER!$AUTOHEADER$ac_delim
27042 MAKEINFO!$MAKEINFO$ac_delim
27043 install_sh!$install_sh$ac_delim
27044 STRIP!$STRIP$ac_delim
27045 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27046 mkdir_p!$mkdir_p$ac_delim
27047 AWK!$AWK$ac_delim
27048 SET_MAKE!$SET_MAKE$ac_delim
27049 am__leading_dot!$am__leading_dot$ac_delim
27050 AMTAR!$AMTAR$ac_delim
27051 am__tar!$am__tar$ac_delim
27052 am__untar!$am__untar$ac_delim
27053 CC!$CC$ac_delim
27054 CFLAGS!$CFLAGS$ac_delim
27055 LDFLAGS!$LDFLAGS$ac_delim
27056 CPPFLAGS!$CPPFLAGS$ac_delim
27057 ac_ct_CC!$ac_ct_CC$ac_delim
27058 EXEEXT!$EXEEXT$ac_delim
27059 OBJEXT!$OBJEXT$ac_delim
27060 DEPDIR!$DEPDIR$ac_delim
27061 am__include!$am__include$ac_delim
27062 am__quote!$am__quote$ac_delim
27063 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27064 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27065 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27066 CCDEPMODE!$CCDEPMODE$ac_delim
27067 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27068 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27069 CPP!$CPP$ac_delim
27070 GREP!$GREP$ac_delim
27071 EGREP!$EGREP$ac_delim
27072 USE_NLS!$USE_NLS$ac_delim
27073 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
27074 MSGFMT!$MSGFMT$ac_delim
27075 GMSGFMT!$GMSGFMT$ac_delim
27076 MSGFMT_015!$MSGFMT_015$ac_delim
27077 GMSGFMT_015!$GMSGFMT_015$ac_delim
27078 XGETTEXT!$XGETTEXT$ac_delim
27079 XGETTEXT_015!$XGETTEXT_015$ac_delim
27080 MSGMERGE!$MSGMERGE$ac_delim
27081 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
27082 build!$build$ac_delim
27083 build_cpu!$build_cpu$ac_delim
27084 build_vendor!$build_vendor$ac_delim
27085 build_os!$build_os$ac_delim
27086 host!$host$ac_delim
27087 host_cpu!$host_cpu$ac_delim
27088 host_vendor!$host_vendor$ac_delim
27089 host_os!$host_os$ac_delim
27090 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
27091 _ACEOF
27093 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27094 break
27095 elif $ac_last_try; then
27096 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27097 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27098 { (exit 1); exit 1; }; }
27099 else
27100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27102 done
27104 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27105 if test -n "$ac_eof"; then
27106 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27107 ac_eof=`expr $ac_eof + 1`
27110 cat >>$CONFIG_STATUS <<_ACEOF
27111 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27113 _ACEOF
27114 sed '
27115 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27116 s/^/s,@/; s/!/@,|#_!!_#|/
27119 s/'"$ac_delim"'$/,g/; t
27120 s/$/\\/; p
27121 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27122 ' >>$CONFIG_STATUS <conf$$subs.sed
27123 rm -f conf$$subs.sed
27124 cat >>$CONFIG_STATUS <<_ACEOF
27125 CEOF$ac_eof
27126 _ACEOF
27129 ac_delim='%!_!# '
27130 for ac_last_try in false false false false false :; do
27131 cat >conf$$subs.sed <<_ACEOF
27132 LIBICONV!$LIBICONV$ac_delim
27133 LTLIBICONV!$LTLIBICONV$ac_delim
27134 INTLLIBS!$INTLLIBS$ac_delim
27135 LIBINTL!$LIBINTL$ac_delim
27136 LTLIBINTL!$LTLIBINTL$ac_delim
27137 POSUB!$POSUB$ac_delim
27138 CXX!$CXX$ac_delim
27139 CXXFLAGS!$CXXFLAGS$ac_delim
27140 ac_ct_CXX!$ac_ct_CXX$ac_delim
27141 CXXDEPMODE!$CXXDEPMODE$ac_delim
27142 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27143 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27144 SED!$SED$ac_delim
27145 LN_S!$LN_S$ac_delim
27146 ECHO!$ECHO$ac_delim
27147 AR!$AR$ac_delim
27148 RANLIB!$RANLIB$ac_delim
27149 DSYMUTIL!$DSYMUTIL$ac_delim
27150 NMEDIT!$NMEDIT$ac_delim
27151 CXXCPP!$CXXCPP$ac_delim
27152 F77!$F77$ac_delim
27153 FFLAGS!$FFLAGS$ac_delim
27154 ac_ct_F77!$ac_ct_F77$ac_delim
27155 LIBTOOL!$LIBTOOL$ac_delim
27156 WITH_GCCVISIBILITY_TRUE!$WITH_GCCVISIBILITY_TRUE$ac_delim
27157 WITH_GCCVISIBILITY_FALSE!$WITH_GCCVISIBILITY_FALSE$ac_delim
27158 LIBTAR_CFLAGS!$LIBTAR_CFLAGS$ac_delim
27159 LIBTAR_LIBS!$LIBTAR_LIBS$ac_delim
27160 LIBZ_CFLAGS!$LIBZ_CFLAGS$ac_delim
27161 LIBZ_LIBS!$LIBZ_LIBS$ac_delim
27162 WITH_BACKUP_TRUE!$WITH_BACKUP_TRUE$ac_delim
27163 WITH_BACKUP_FALSE!$WITH_BACKUP_FALSE$ac_delim
27164 PKG_CONFIG!$PKG_CONFIG$ac_delim
27165 LIBUSB_CFLAGS!$LIBUSB_CFLAGS$ac_delim
27166 LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
27167 BOOST_LIB_PATH!$BOOST_LIB_PATH$ac_delim
27168 BOOST_INC_PATH!$BOOST_INC_PATH$ac_delim
27169 BOOST_LDADD!$BOOST_LDADD$ac_delim
27170 WITH_BOOST_TRUE!$WITH_BOOST_TRUE$ac_delim
27171 WITH_BOOST_FALSE!$WITH_BOOST_FALSE$ac_delim
27172 FUSE_CFLAGS!$FUSE_CFLAGS$ac_delim
27173 FUSE_LIBS!$FUSE_LIBS$ac_delim
27174 GLIB2_CFLAGS!$GLIB2_CFLAGS$ac_delim
27175 GLIB2_LIBS!$GLIB2_LIBS$ac_delim
27176 pkgconfigdir!$pkgconfigdir$ac_delim
27177 WITH_FUSE_TRUE!$WITH_FUSE_TRUE$ac_delim
27178 WITH_FUSE_FALSE!$WITH_FUSE_FALSE$ac_delim
27179 WITH_SYNC_TRUE!$WITH_SYNC_TRUE$ac_delim
27180 WITH_SYNC_FALSE!$WITH_SYNC_FALSE$ac_delim
27181 ZLIB_LIBS!$ZLIB_LIBS$ac_delim
27182 LIBXMLXX_CFLAGS!$LIBXMLXX_CFLAGS$ac_delim
27183 LIBXMLXX_LIBS!$LIBXMLXX_LIBS$ac_delim
27184 WITH_ALX_TRUE!$WITH_ALX_TRUE$ac_delim
27185 WITH_ALX_FALSE!$WITH_ALX_FALSE$ac_delim
27186 LIBOBJS!$LIBOBJS$ac_delim
27187 subdirs!$subdirs$ac_delim
27188 LTLIBOBJS!$LTLIBOBJS$ac_delim
27189 _ACEOF
27191 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
27192 break
27193 elif $ac_last_try; then
27194 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27195 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27196 { (exit 1); exit 1; }; }
27197 else
27198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27200 done
27202 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27203 if test -n "$ac_eof"; then
27204 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27205 ac_eof=`expr $ac_eof + 1`
27208 cat >>$CONFIG_STATUS <<_ACEOF
27209 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27211 _ACEOF
27212 sed '
27213 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27214 s/^/s,@/; s/!/@,|#_!!_#|/
27217 s/'"$ac_delim"'$/,g/; t
27218 s/$/\\/; p
27219 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27220 ' >>$CONFIG_STATUS <conf$$subs.sed
27221 rm -f conf$$subs.sed
27222 cat >>$CONFIG_STATUS <<_ACEOF
27223 :end
27224 s/|#_!!_#|//g
27225 CEOF$ac_eof
27226 _ACEOF
27229 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27230 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27231 # trailing colons and then remove the whole line if VPATH becomes empty
27232 # (actually we leave an empty line to preserve line numbers).
27233 if test "x$srcdir" = x.; then
27234 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27235 s/:*\$(srcdir):*/:/
27236 s/:*\${srcdir}:*/:/
27237 s/:*@srcdir@:*/:/
27238 s/^\([^=]*=[ ]*\):*/\1/
27239 s/:*$//
27240 s/^[^=]*=[ ]*$//
27244 cat >>$CONFIG_STATUS <<\_ACEOF
27245 fi # test -n "$CONFIG_FILES"
27248 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27250 case $ac_tag in
27251 :[FHLC]) ac_mode=$ac_tag; continue;;
27252 esac
27253 case $ac_mode$ac_tag in
27254 :[FHL]*:*);;
27255 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27256 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27257 { (exit 1); exit 1; }; };;
27258 :[FH]-) ac_tag=-:-;;
27259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27260 esac
27261 ac_save_IFS=$IFS
27262 IFS=:
27263 set x $ac_tag
27264 IFS=$ac_save_IFS
27265 shift
27266 ac_file=$1
27267 shift
27269 case $ac_mode in
27270 :L) ac_source=$1;;
27271 :[FH])
27272 ac_file_inputs=
27273 for ac_f
27275 case $ac_f in
27276 -) ac_f="$tmp/stdin";;
27277 *) # Look for the file first in the build tree, then in the source tree
27278 # (if the path is not absolute). The absolute path cannot be DOS-style,
27279 # because $ac_f cannot contain `:'.
27280 test -f "$ac_f" ||
27281 case $ac_f in
27282 [\\/$]*) false;;
27283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27284 esac ||
27285 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27286 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27287 { (exit 1); exit 1; }; };;
27288 esac
27289 ac_file_inputs="$ac_file_inputs $ac_f"
27290 done
27292 # Let's still pretend it is `configure' which instantiates (i.e., don't
27293 # use $as_me), people would be surprised to read:
27294 # /* config.h. Generated by config.status. */
27295 configure_input="Generated from "`IFS=:
27296 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27297 if test x"$ac_file" != x-; then
27298 configure_input="$ac_file. $configure_input"
27299 { echo "$as_me:$LINENO: creating $ac_file" >&5
27300 echo "$as_me: creating $ac_file" >&6;}
27303 case $ac_tag in
27304 *:-:* | *:-) cat >"$tmp/stdin";;
27305 esac
27307 esac
27309 ac_dir=`$as_dirname -- "$ac_file" ||
27310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27311 X"$ac_file" : 'X\(//\)[^/]' \| \
27312 X"$ac_file" : 'X\(//\)$' \| \
27313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27314 echo X"$ac_file" |
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27316 s//\1/
27319 /^X\(\/\/\)[^/].*/{
27320 s//\1/
27323 /^X\(\/\/\)$/{
27324 s//\1/
27327 /^X\(\/\).*/{
27328 s//\1/
27331 s/.*/./; q'`
27332 { as_dir="$ac_dir"
27333 case $as_dir in #(
27334 -*) as_dir=./$as_dir;;
27335 esac
27336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27337 as_dirs=
27338 while :; do
27339 case $as_dir in #(
27340 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27341 *) as_qdir=$as_dir;;
27342 esac
27343 as_dirs="'$as_qdir' $as_dirs"
27344 as_dir=`$as_dirname -- "$as_dir" ||
27345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$as_dir" : 'X\(//\)[^/]' \| \
27347 X"$as_dir" : 'X\(//\)$' \| \
27348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27349 echo X"$as_dir" |
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27351 s//\1/
27354 /^X\(\/\/\)[^/].*/{
27355 s//\1/
27358 /^X\(\/\/\)$/{
27359 s//\1/
27362 /^X\(\/\).*/{
27363 s//\1/
27366 s/.*/./; q'`
27367 test -d "$as_dir" && break
27368 done
27369 test -z "$as_dirs" || eval "mkdir $as_dirs"
27370 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27371 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27372 { (exit 1); exit 1; }; }; }
27373 ac_builddir=.
27375 case "$ac_dir" in
27376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27379 # A ".." for each directory in $ac_dir_suffix.
27380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27381 case $ac_top_builddir_sub in
27382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27384 esac ;;
27385 esac
27386 ac_abs_top_builddir=$ac_pwd
27387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27388 # for backward compatibility:
27389 ac_top_builddir=$ac_top_build_prefix
27391 case $srcdir in
27392 .) # We are building in place.
27393 ac_srcdir=.
27394 ac_top_srcdir=$ac_top_builddir_sub
27395 ac_abs_top_srcdir=$ac_pwd ;;
27396 [\\/]* | ?:[\\/]* ) # Absolute name.
27397 ac_srcdir=$srcdir$ac_dir_suffix;
27398 ac_top_srcdir=$srcdir
27399 ac_abs_top_srcdir=$srcdir ;;
27400 *) # Relative name.
27401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27402 ac_top_srcdir=$ac_top_build_prefix$srcdir
27403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27404 esac
27405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27408 case $ac_mode in
27411 # CONFIG_FILE
27414 case $INSTALL in
27415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27417 esac
27418 ac_MKDIR_P=$MKDIR_P
27419 case $MKDIR_P in
27420 [\\/$]* | ?:[\\/]* ) ;;
27421 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27422 esac
27423 _ACEOF
27425 cat >>$CONFIG_STATUS <<\_ACEOF
27426 # If the template does not know about datarootdir, expand it.
27427 # FIXME: This hack should be removed a few years after 2.60.
27428 ac_datarootdir_hack=; ac_datarootdir_seen=
27430 case `sed -n '/datarootdir/ {
27434 /@datadir@/p
27435 /@docdir@/p
27436 /@infodir@/p
27437 /@localedir@/p
27438 /@mandir@/p
27439 ' $ac_file_inputs` in
27440 *datarootdir*) ac_datarootdir_seen=yes;;
27441 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27442 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27443 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27444 _ACEOF
27445 cat >>$CONFIG_STATUS <<_ACEOF
27446 ac_datarootdir_hack='
27447 s&@datadir@&$datadir&g
27448 s&@docdir@&$docdir&g
27449 s&@infodir@&$infodir&g
27450 s&@localedir@&$localedir&g
27451 s&@mandir@&$mandir&g
27452 s&\\\${datarootdir}&$datarootdir&g' ;;
27453 esac
27454 _ACEOF
27456 # Neutralize VPATH when `$srcdir' = `.'.
27457 # Shell code in configure.ac might set extrasub.
27458 # FIXME: do we really want to maintain this feature?
27459 cat >>$CONFIG_STATUS <<_ACEOF
27460 sed "$ac_vpsub
27461 $extrasub
27462 _ACEOF
27463 cat >>$CONFIG_STATUS <<\_ACEOF
27465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27466 s&@configure_input@&$configure_input&;t t
27467 s&@top_builddir@&$ac_top_builddir_sub&;t t
27468 s&@srcdir@&$ac_srcdir&;t t
27469 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27470 s&@top_srcdir@&$ac_top_srcdir&;t t
27471 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27472 s&@builddir@&$ac_builddir&;t t
27473 s&@abs_builddir@&$ac_abs_builddir&;t t
27474 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27475 s&@INSTALL@&$ac_INSTALL&;t t
27476 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27477 $ac_datarootdir_hack
27478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27484 which seems to be undefined. Please make sure it is defined." >&5
27485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27486 which seems to be undefined. Please make sure it is defined." >&2;}
27488 rm -f "$tmp/stdin"
27489 case $ac_file in
27490 -) cat "$tmp/out"; rm -f "$tmp/out";;
27491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27492 esac
27496 # CONFIG_HEADER
27498 _ACEOF
27500 # Transform confdefs.h into a sed script `conftest.defines', that
27501 # substitutes the proper values into config.h.in to produce config.h.
27502 rm -f conftest.defines conftest.tail
27503 # First, append a space to every undef/define line, to ease matching.
27504 echo 's/$/ /' >conftest.defines
27505 # Then, protect against being on the right side of a sed subst, or in
27506 # an unquoted here document, in config.status. If some macros were
27507 # called several times there might be several #defines for the same
27508 # symbol, which is useless. But do not sort them, since the last
27509 # AC_DEFINE must be honored.
27510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27513 # PARAMS is the parameter list in the macro definition--in most cases, it's
27514 # just an empty string.
27515 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27516 ac_dB='\\)[ (].*,\\1define\\2'
27517 ac_dC=' '
27518 ac_dD=' ,'
27520 uniq confdefs.h |
27521 sed -n '
27522 t rset
27523 :rset
27524 s/^[ ]*#[ ]*define[ ][ ]*//
27525 t ok
27528 s/[\\&,]/\\&/g
27529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27531 ' >>conftest.defines
27533 # Remove the space that was appended to ease matching.
27534 # Then replace #undef with comments. This is necessary, for
27535 # example, in the case of _POSIX_SOURCE, which is predefined and required
27536 # on some systems where configure will not decide to define it.
27537 # (The regexp can be short, since the line contains either #define or #undef.)
27538 echo 's/ $//
27539 s,^[ #]*u.*,/* & */,' >>conftest.defines
27541 # Break up conftest.defines:
27542 ac_max_sed_lines=50
27544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27547 # et cetera.
27548 ac_in='$ac_file_inputs'
27549 ac_out='"$tmp/out1"'
27550 ac_nxt='"$tmp/out2"'
27552 while :
27554 # Write a here document:
27555 cat >>$CONFIG_STATUS <<_ACEOF
27556 # First, check the format of the line:
27557 cat >"\$tmp/defines.sed" <<\\CEOF
27558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27561 :def
27562 _ACEOF
27563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27564 echo 'CEOF
27565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27568 grep . conftest.tail >/dev/null || break
27569 rm -f conftest.defines
27570 mv conftest.tail conftest.defines
27571 done
27572 rm -f conftest.defines conftest.tail
27574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27575 cat >>$CONFIG_STATUS <<\_ACEOF
27576 if test x"$ac_file" != x-; then
27577 echo "/* $configure_input */" >"$tmp/config.h"
27578 cat "$ac_result" >>"$tmp/config.h"
27579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27581 echo "$as_me: $ac_file is unchanged" >&6;}
27582 else
27583 rm -f $ac_file
27584 mv "$tmp/config.h" $ac_file
27586 else
27587 echo "/* $configure_input */"
27588 cat "$ac_result"
27590 rm -f "$tmp/out12"
27591 # Compute $ac_file's index in $config_headers.
27592 _am_arg=$ac_file
27593 _am_stamp_count=1
27594 for _am_header in $config_headers :; do
27595 case $_am_header in
27596 $_am_arg | $_am_arg:* )
27597 break ;;
27599 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27600 esac
27601 done
27602 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27603 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27604 X"$_am_arg" : 'X\(//\)[^/]' \| \
27605 X"$_am_arg" : 'X\(//\)$' \| \
27606 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27607 echo X"$_am_arg" |
27608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27609 s//\1/
27612 /^X\(\/\/\)[^/].*/{
27613 s//\1/
27616 /^X\(\/\/\)$/{
27617 s//\1/
27620 /^X\(\/\).*/{
27621 s//\1/
27624 s/.*/./; q'`/stamp-h$_am_stamp_count
27627 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27628 echo "$as_me: executing $ac_file commands" >&6;}
27630 esac
27633 case $ac_file$ac_mode in
27634 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27635 # Strip MF so we end up with the name of the file.
27636 mf=`echo "$mf" | sed -e 's/:.*$//'`
27637 # Check whether this is an Automake generated Makefile or not.
27638 # We used to match only the files named `Makefile.in', but
27639 # some people rename them; so instead we look at the file content.
27640 # Grep'ing the first line is not enough: some people post-process
27641 # each Makefile.in and add a new line on top of each file to say so.
27642 # Grep'ing the whole file is not good either: AIX grep has a line
27643 # limit of 2048, but all sed's we know have understand at least 4000.
27644 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27645 dirpart=`$as_dirname -- "$mf" ||
27646 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27647 X"$mf" : 'X\(//\)[^/]' \| \
27648 X"$mf" : 'X\(//\)$' \| \
27649 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27650 echo X"$mf" |
27651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27652 s//\1/
27655 /^X\(\/\/\)[^/].*/{
27656 s//\1/
27659 /^X\(\/\/\)$/{
27660 s//\1/
27663 /^X\(\/\).*/{
27664 s//\1/
27667 s/.*/./; q'`
27668 else
27669 continue
27671 # Extract the definition of DEPDIR, am__include, and am__quote
27672 # from the Makefile without running `make'.
27673 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27674 test -z "$DEPDIR" && continue
27675 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27676 test -z "am__include" && continue
27677 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27678 # When using ansi2knr, U may be empty or an underscore; expand it
27679 U=`sed -n 's/^U = //p' < "$mf"`
27680 # Find all dependency output files, they are included files with
27681 # $(DEPDIR) in their names. We invoke sed twice because it is the
27682 # simplest approach to changing $(DEPDIR) to its actual value in the
27683 # expansion.
27684 for file in `sed -n "
27685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27687 # Make sure the directory exists.
27688 test -f "$dirpart/$file" && continue
27689 fdir=`$as_dirname -- "$file" ||
27690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27691 X"$file" : 'X\(//\)[^/]' \| \
27692 X"$file" : 'X\(//\)$' \| \
27693 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27694 echo X"$file" |
27695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27696 s//\1/
27699 /^X\(\/\/\)[^/].*/{
27700 s//\1/
27703 /^X\(\/\/\)$/{
27704 s//\1/
27707 /^X\(\/\).*/{
27708 s//\1/
27711 s/.*/./; q'`
27712 { as_dir=$dirpart/$fdir
27713 case $as_dir in #(
27714 -*) as_dir=./$as_dir;;
27715 esac
27716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27717 as_dirs=
27718 while :; do
27719 case $as_dir in #(
27720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27721 *) as_qdir=$as_dir;;
27722 esac
27723 as_dirs="'$as_qdir' $as_dirs"
27724 as_dir=`$as_dirname -- "$as_dir" ||
27725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27726 X"$as_dir" : 'X\(//\)[^/]' \| \
27727 X"$as_dir" : 'X\(//\)$' \| \
27728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27729 echo X"$as_dir" |
27730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27731 s//\1/
27734 /^X\(\/\/\)[^/].*/{
27735 s//\1/
27738 /^X\(\/\/\)$/{
27739 s//\1/
27742 /^X\(\/\).*/{
27743 s//\1/
27746 s/.*/./; q'`
27747 test -d "$as_dir" && break
27748 done
27749 test -z "$as_dirs" || eval "mkdir $as_dirs"
27750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27752 { (exit 1); exit 1; }; }; }
27753 # echo "creating $dirpart/$file"
27754 echo '# dummy' > "$dirpart/$file"
27755 done
27756 done
27758 "po-directories":C)
27759 for ac_file in $CONFIG_FILES; do
27760 # Support "outfile[:infile[:infile...]]"
27761 case "$ac_file" in
27762 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27763 esac
27764 # PO directories have a Makefile.in generated from Makefile.in.in.
27765 case "$ac_file" in */Makefile.in)
27766 # Adjust a relative srcdir.
27767 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27768 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
27769 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27770 # In autoconf-2.13 it is called $ac_given_srcdir.
27771 # In autoconf-2.50 it is called $srcdir.
27772 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27773 case "$ac_given_srcdir" in
27774 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27775 /*) top_srcdir="$ac_given_srcdir" ;;
27776 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
27777 esac
27778 # Treat a directory as a PO directory if and only if it has a
27779 # POTFILES.in file. This allows packages to have multiple PO
27780 # directories under different names or in different locations.
27781 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27782 rm -f "$ac_dir/POTFILES"
27783 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27784 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27785 POMAKEFILEDEPS="POTFILES.in"
27786 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27787 # on $ac_dir but don't depend on user-specified configuration
27788 # parameters.
27789 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27790 # The LINGUAS file contains the set of available languages.
27791 if test -n "$OBSOLETE_ALL_LINGUAS"; then
27792 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27794 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27795 # Hide the ALL_LINGUAS assigment from automake < 1.5.
27796 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27797 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27798 else
27799 # The set of available languages was given in configure.in.
27800 # Hide the ALL_LINGUAS assigment from automake < 1.5.
27801 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27803 # Compute POFILES
27804 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27805 # Compute UPDATEPOFILES
27806 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27807 # Compute DUMMYPOFILES
27808 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27809 # Compute GMOFILES
27810 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27811 case "$ac_given_srcdir" in
27812 .) srcdirpre= ;;
27813 *) srcdirpre='$(srcdir)/' ;;
27814 esac
27815 POFILES=
27816 UPDATEPOFILES=
27817 DUMMYPOFILES=
27818 GMOFILES=
27819 for lang in $ALL_LINGUAS; do
27820 POFILES="$POFILES $srcdirpre$lang.po"
27821 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27822 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27823 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27824 done
27825 # CATALOGS depends on both $ac_dir and the user's LINGUAS
27826 # environment variable.
27827 INST_LINGUAS=
27828 if test -n "$ALL_LINGUAS"; then
27829 for presentlang in $ALL_LINGUAS; do
27830 useit=no
27831 if test "%UNSET%" != "$LINGUAS"; then
27832 desiredlanguages="$LINGUAS"
27833 else
27834 desiredlanguages="$ALL_LINGUAS"
27836 for desiredlang in $desiredlanguages; do
27837 # Use the presentlang catalog if desiredlang is
27838 # a. equal to presentlang, or
27839 # b. a variant of presentlang (because in this case,
27840 # presentlang can be used as a fallback for messages
27841 # which are not translated in the desiredlang catalog).
27842 case "$desiredlang" in
27843 "$presentlang"*) useit=yes;;
27844 esac
27845 done
27846 if test $useit = yes; then
27847 INST_LINGUAS="$INST_LINGUAS $presentlang"
27849 done
27851 CATALOGS=
27852 if test -n "$INST_LINGUAS"; then
27853 for lang in $INST_LINGUAS; do
27854 CATALOGS="$CATALOGS $lang.gmo"
27855 done
27857 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27858 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27859 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27860 if test -f "$f"; then
27861 case "$f" in
27862 *.orig | *.bak | *~) ;;
27863 *) cat "$f" >> "$ac_dir/Makefile" ;;
27864 esac
27866 done
27869 esac
27870 done ;;
27872 esac
27873 done # for ac_tag
27876 { (exit 0); exit 0; }
27877 _ACEOF
27878 chmod +x $CONFIG_STATUS
27879 ac_clean_files=$ac_clean_files_save
27882 # configure is writing to config.log, and then calls config.status.
27883 # config.status does its own redirection, appending to config.log.
27884 # Unfortunately, on DOS this fails, as config.log is still kept open
27885 # by configure, so config.status won't be able to write to it; its
27886 # output is simply discarded. So we exec the FD to /dev/null,
27887 # effectively closing config.log, so it can be properly (re)opened and
27888 # appended to by config.status. When coming back to configure, we
27889 # need to make the FD available again.
27890 if test "$no_create" != yes; then
27891 ac_cs_success=:
27892 ac_config_status_args=
27893 test "$silent" = yes &&
27894 ac_config_status_args="$ac_config_status_args --quiet"
27895 exec 5>/dev/null
27896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27897 exec 5>>config.log
27898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27899 # would make configure fail if this is the last instruction.
27900 $ac_cs_success || { (exit 1); exit 1; }
27904 # CONFIG_SUBDIRS section.
27906 if test "$no_recursion" != yes; then
27908 # Remove --cache-file and --srcdir arguments so they do not pile up.
27909 ac_sub_configure_args=
27910 ac_prev=
27911 eval "set x $ac_configure_args"
27912 shift
27913 for ac_arg
27915 if test -n "$ac_prev"; then
27916 ac_prev=
27917 continue
27919 case $ac_arg in
27920 -cache-file | --cache-file | --cache-fil | --cache-fi \
27921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27922 ac_prev=cache_file ;;
27923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27925 | --c=*)
27927 --config-cache | -C)
27929 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27930 ac_prev=srcdir ;;
27931 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27934 ac_prev=prefix ;;
27935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27938 case $ac_arg in
27939 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27940 esac
27941 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27942 esac
27943 done
27945 # Always prepend --prefix to ensure using the same prefix
27946 # in subdir configurations.
27947 ac_arg="--prefix=$prefix"
27948 case $ac_arg in
27949 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27950 esac
27951 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27953 # Pass --silent
27954 if test "$silent" = yes; then
27955 ac_sub_configure_args="--silent $ac_sub_configure_args"
27958 ac_popdir=`pwd`
27959 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27961 # Do not complain, so a configure script can configure whichever
27962 # parts of a large source tree are present.
27963 test -d "$srcdir/$ac_dir" || continue
27965 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27966 echo "$as_me:$LINENO: $ac_msg" >&5
27967 echo "$ac_msg" >&6
27968 { as_dir="$ac_dir"
27969 case $as_dir in #(
27970 -*) as_dir=./$as_dir;;
27971 esac
27972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27973 as_dirs=
27974 while :; do
27975 case $as_dir in #(
27976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27977 *) as_qdir=$as_dir;;
27978 esac
27979 as_dirs="'$as_qdir' $as_dirs"
27980 as_dir=`$as_dirname -- "$as_dir" ||
27981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27982 X"$as_dir" : 'X\(//\)[^/]' \| \
27983 X"$as_dir" : 'X\(//\)$' \| \
27984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27985 echo X"$as_dir" |
27986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27987 s//\1/
27990 /^X\(\/\/\)[^/].*/{
27991 s//\1/
27994 /^X\(\/\/\)$/{
27995 s//\1/
27998 /^X\(\/\).*/{
27999 s//\1/
28002 s/.*/./; q'`
28003 test -d "$as_dir" && break
28004 done
28005 test -z "$as_dirs" || eval "mkdir $as_dirs"
28006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28007 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28008 { (exit 1); exit 1; }; }; }
28009 ac_builddir=.
28011 case "$ac_dir" in
28012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28015 # A ".." for each directory in $ac_dir_suffix.
28016 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28017 case $ac_top_builddir_sub in
28018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28020 esac ;;
28021 esac
28022 ac_abs_top_builddir=$ac_pwd
28023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28024 # for backward compatibility:
28025 ac_top_builddir=$ac_top_build_prefix
28027 case $srcdir in
28028 .) # We are building in place.
28029 ac_srcdir=.
28030 ac_top_srcdir=$ac_top_builddir_sub
28031 ac_abs_top_srcdir=$ac_pwd ;;
28032 [\\/]* | ?:[\\/]* ) # Absolute name.
28033 ac_srcdir=$srcdir$ac_dir_suffix;
28034 ac_top_srcdir=$srcdir
28035 ac_abs_top_srcdir=$srcdir ;;
28036 *) # Relative name.
28037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28038 ac_top_srcdir=$ac_top_build_prefix$srcdir
28039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28040 esac
28041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28044 cd "$ac_dir"
28046 # Check for guested configure; otherwise get Cygnus style configure.
28047 if test -f "$ac_srcdir/configure.gnu"; then
28048 ac_sub_configure=$ac_srcdir/configure.gnu
28049 elif test -f "$ac_srcdir/configure"; then
28050 ac_sub_configure=$ac_srcdir/configure
28051 elif test -f "$ac_srcdir/configure.in"; then
28052 # This should be Cygnus configure.
28053 ac_sub_configure=$ac_aux_dir/configure
28054 else
28055 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28057 ac_sub_configure=
28060 # The recursion is here.
28061 if test -n "$ac_sub_configure"; then
28062 # Make the cache file name correct relative to the subdirectory.
28063 case $cache_file in
28064 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28065 *) # Relative name.
28066 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28067 esac
28069 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28070 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28071 # The eval makes quoting arguments work.
28072 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28073 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28074 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28075 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28076 { (exit 1); exit 1; }; }
28079 cd "$ac_popdir"
28080 done