Tarball tree for barry-0.17.0.tar.bz2
[barry.git] / gui / configure
blob7d26b31ed58e62e8fece9bcaff5fe39953d530ff
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for barry-backup 0.17.
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-backup'
730 PACKAGE_TARNAME='barry-backup'
731 PACKAGE_VERSION='0.17'
732 PACKAGE_STRING='barry-backup 0.17'
733 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
735 ac_unique_file="src/main.cc"
736 gt_needs=
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 # include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 # include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
773 ac_header_list=
774 ac_func_list=
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 INSTALL_PROGRAM
813 INSTALL_SCRIPT
814 INSTALL_DATA
815 am__isrc
816 CYGPATH_W
817 PACKAGE
818 VERSION
819 ACLOCAL
820 AUTOCONF
821 AUTOMAKE
822 AUTOHEADER
823 MAKEINFO
824 install_sh
825 STRIP
826 INSTALL_STRIP_PROGRAM
827 mkdir_p
829 SET_MAKE
830 am__leading_dot
831 AMTAR
832 am__tar
833 am__untar
834 USE_NLS
835 GETTEXT_MACRO_VERSION
836 MSGFMT
837 GMSGFMT
838 MSGFMT_015
839 GMSGFMT_015
840 XGETTEXT
841 XGETTEXT_015
842 MSGMERGE
843 XGETTEXT_EXTRA_OPTIONS
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 ac_ct_CC
849 EXEEXT
850 OBJEXT
851 DEPDIR
852 am__include
853 am__quote
854 AMDEP_TRUE
855 AMDEP_FALSE
856 AMDEPBACKSLASH
857 CCDEPMODE
858 am__fastdepCC_TRUE
859 am__fastdepCC_FALSE
860 build
861 build_cpu
862 build_vendor
863 build_os
864 host
865 host_cpu
866 host_vendor
867 host_os
868 INTL_MACOSX_LIBS
869 LIBICONV
870 LTLIBICONV
871 INTLLIBS
872 LIBINTL
873 LTLIBINTL
874 POSUB
876 CXXFLAGS
877 ac_ct_CXX
878 CXXDEPMODE
879 am__fastdepCXX_TRUE
880 am__fastdepCXX_FALSE
882 GREP
883 EGREP
884 LN_S
885 ECHO
887 RANLIB
888 DSYMUTIL
889 NMEDIT
891 CXXCPP
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 PKG_CONFIG
897 BARRY_CFLAGS
898 BARRY_LIBS
899 BARRYBACKUP_CFLAGS
900 BARRYBACKUP_LIBS
901 GTKMM_CFLAGS
902 GTKMM_LIBS
903 TREE_BUILD_CXXFLAGS
904 TREE_BUILD_LDFLAGS
905 gladedir
906 LIBOBJS
907 LTLIBOBJS'
908 ac_subst_files=''
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
918 CXXFLAGS
921 CXXCPP
923 FFLAGS
924 PKG_CONFIG
925 BARRY_CFLAGS
926 BARRY_LIBS
927 BARRYBACKUP_CFLAGS
928 BARRYBACKUP_LIBS
929 GTKMM_CFLAGS
930 GTKMM_LIBS'
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
979 ac_prev=
980 ac_dashdash=
981 for ac_option
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
990 case $ac_option in
991 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *) ac_optarg=yes ;;
993 esac
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
999 ac_dashdash=yes ;;
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059 eval enable_$ac_feature=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1249 -with-* | --with-*)
1250 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid package name: $ac_package" >&2
1254 { (exit 1); exit 1; }; }
1255 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256 eval with_$ac_package=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid package name: $ac_package" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265 eval with_$ac_package=no ;;
1267 --x)
1268 # Obsolete; use --with-x.
1269 with_x=yes ;;
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287 { (exit 1); exit 1; }; }
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295 { (exit 1); exit 1; }; }
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 esac
1308 done
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 { echo "$as_me: error: missing argument to $ac_option" >&2
1313 { (exit 1); exit 1; }; }
1316 # Be sure to have absolute directory names.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328 { (exit 1); exit 1; }; }
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 { echo "$as_me: error: Working directory cannot be determined" >&2
1359 { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 { (exit 1); exit 1; }; }
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$0" : 'X\(//\)[^/]' \| \
1372 X"$0" : 'X\(//\)$' \| \
1373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1383 /^X\(\/\/\)$/{
1384 s//\1/
1387 /^X\(\/\).*/{
1388 s//\1/
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1396 else
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402 { (exit 1); exit 1; }; }
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407 { (exit 1); exit 1; }; }
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures barry-backup 0.17 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/barry-backup]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1488 cat <<\_ACEOF
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of barry-backup 0.17:";;
1504 esac
1505 cat <<\_ACEOF
1507 Optional Features:
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --disable-nls do not use Native Language Support
1511 --disable-dependency-tracking speeds up one-time build
1512 --enable-dependency-tracking do not reject slow dependency extractors
1513 --disable-rpath do not hardcode runtime library paths
1514 --enable-shared[=PKGS] build shared libraries [default=yes]
1515 --enable-static[=PKGS] build static libraries [default=yes]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
1518 --disable-libtool-lock avoid locking (might break parallel builds)
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-gnu-ld assume the C compiler uses GNU ld default=no
1524 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1525 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-tags[=TAGS] include additional configurations [automatic]
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CPP C preprocessor
1544 CXXCPP C++ preprocessor
1545 F77 Fortran 77 compiler command
1546 FFLAGS Fortran 77 compiler flags
1547 PKG_CONFIG path to pkg-config utility
1548 BARRY_CFLAGS
1549 C compiler flags for BARRY, overriding pkg-config
1550 BARRY_LIBS linker flags for BARRY, overriding pkg-config
1551 BARRYBACKUP_CFLAGS
1552 C compiler flags for BARRYBACKUP, overriding pkg-config
1553 BARRYBACKUP_LIBS
1554 linker flags for BARRYBACKUP, overriding pkg-config
1555 GTKMM_CFLAGS
1556 C compiler flags for GTKMM, overriding pkg-config
1557 GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <barry-devel@lists.sourceforge.net>.
1563 _ACEOF
1564 ac_status=$?
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" || continue
1571 ac_builddir=.
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 barry-backup configure 0.17
1624 generated by GNU Autoconf 2.61
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631 exit
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by barry-backup $as_me 0.17, which was
1638 generated by GNU Autoconf 2.61. Invocation command line was
1640 $ $0 $@
1642 _ACEOF
1643 exec 5>>config.log
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1667 _ASUNAME
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 echo "PATH: $as_dir"
1675 done
1676 IFS=$as_save_IFS
1678 } >&5
1680 cat >&5 <<_ACEOF
1683 ## ----------- ##
1684 ## Core tests. ##
1685 ## ----------- ##
1687 _ACEOF
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_configure_args=
1696 ac_configure_args0=
1697 ac_configure_args1=
1698 ac_must_keep_next=false
1699 for ac_pass in 1 2
1701 for ac_arg
1703 case $ac_arg in
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1707 continue ;;
1708 *\'*)
1709 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710 esac
1711 case $ac_pass in
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1717 else
1718 case $ac_arg in
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725 esac
1727 -* ) ac_must_keep_next=true ;;
1728 esac
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 esac
1733 done
1734 done
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1746 echo
1748 cat <<\_ASBOX
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1752 _ASBOX
1753 echo
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in #(
1759 *${as_nl}*)
1760 case $ac_var in #(
1761 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763 esac
1764 case $ac_var in #(
1765 _ | IFS | as_nl) ;; #(
1766 *) $as_unset $ac_var ;;
1767 esac ;;
1768 esac
1769 done
1770 (set) 2>&1 |
1771 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772 *${as_nl}ac_space=\ *)
1773 sed -n \
1774 "s/'\''/'\''\\\\'\'''\''/g;
1775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 ;; #(
1778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780 esac |
1781 sort
1783 echo
1785 cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_vars
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1801 if test -n "$ac_subst_files"; then
1802 cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807 echo
1808 for ac_var in $ac_subst_files
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 echo "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1819 if test -s confdefs.h; then
1820 cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825 echo
1826 cat confdefs.h
1827 echo
1829 test "$ac_signal" != 0 &&
1830 echo "$as_me: caught signal $ac_signal"
1831 echo "$as_me: exit $exit_status"
1832 } >&5
1833 rm -f core *.core core.conftest.* &&
1834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 exit $exit_status
1837 for ac_signal in 1 2 13 15; do
1838 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1845 # Predefined preprocessor variables.
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879 set x "$ac_default_prefix/share/config.site" \
1880 "$ac_default_prefix/etc/config.site"
1882 shift
1883 for ac_site_file
1885 if test -r "$ac_site_file"; then
1886 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888 sed 's/^/| /' "$ac_site_file" >&5
1889 . "$ac_site_file"
1891 done
1893 if test -r "$cache_file"; then
1894 # Some versions of bash will fail to source /dev/null (special
1895 # files actually), so we avoid doing that.
1896 if test -f "$cache_file"; then
1897 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1899 case $cache_file in
1900 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901 *) . "./$cache_file";;
1902 esac
1904 else
1905 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1907 >$cache_file
1910 gt_needs="$gt_needs "
1911 ac_header_list="$ac_header_list sys/time.h"
1912 ac_header_list="$ac_header_list unistd.h"
1913 ac_func_list="$ac_func_list alarm"
1914 # Check that the precious variables saved in the cache have kept the same
1915 # value.
1916 ac_cache_corrupted=false
1917 for ac_var in $ac_precious_vars; do
1918 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1919 eval ac_new_set=\$ac_env_${ac_var}_set
1920 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1921 eval ac_new_val=\$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in
1923 set,)
1924 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1927 ,set)
1928 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1931 ,);;
1933 if test "x$ac_old_val" != "x$ac_new_val"; then
1934 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1936 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1937 echo "$as_me: former value: $ac_old_val" >&2;}
1938 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1939 echo "$as_me: current value: $ac_new_val" >&2;}
1940 ac_cache_corrupted=:
1941 fi;;
1942 esac
1943 # Pass precious variables to config.status.
1944 if test "$ac_new_set" = set; then
1945 case $ac_new_val in
1946 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 *) ac_arg=$ac_var=$ac_new_val ;;
1948 esac
1949 case " $ac_configure_args " in
1950 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1951 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1952 esac
1954 done
1955 if $ac_cache_corrupted; then
1956 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1957 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1958 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1959 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1960 { (exit 1); exit 1; }; }
1987 ac_ext=c
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 #AM_CONFIG_HEADER(config.h)
1996 ac_config_headers="$ac_config_headers config.h:config.h.in"
1998 ac_aux_dir=
1999 for ac_dir in . "$srcdir"/.; do
2000 if test -f "$ac_dir/install-sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f "$ac_dir/install.sh"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f "$ac_dir/shtool"; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2013 done
2014 if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2016 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2017 { (exit 1); exit 1; }; }
2020 # These three variables are undocumented and unsupported,
2021 # and are intended to be withdrawn in a future Autoconf release.
2022 # They can cause serious problems if a builder's source tree is in a directory
2023 # whose full name contains unusual characters.
2024 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2025 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2026 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2030 am__api_version='1.10'
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2038 # AIX /bin/install
2039 # AmigaOS /C/install, which installs bootblocks on floppy discs
2040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2043 # OS/2's system install, which has a completely different semantic
2044 # ./install, which can be erroneously created by make from ./install.sh.
2045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2047 if test -z "$INSTALL"; then
2048 if test "${ac_cv_path_install+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 # Account for people who put trailing slashes in PATH elements.
2057 case $as_dir/ in
2058 ./ | .// | /cC/* | \
2059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2060 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2061 /usr/ucb/* ) ;;
2063 # OSF1 and SCO ODT 3.0 have their own names for install.
2064 # Don't use installbsd from OSF since it installs stuff as root
2065 # by default.
2066 for ac_prog in ginstall scoinst install; do
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2069 if test $ac_prog = install &&
2070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2071 # AIX install. It has an incompatible calling convention.
2073 elif test $ac_prog = install &&
2074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2075 # program-specific install script used by HP pwplus--don't use.
2077 else
2078 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2079 break 3
2082 done
2083 done
2085 esac
2086 done
2087 IFS=$as_save_IFS
2091 if test "${ac_cv_path_install+set}" = set; then
2092 INSTALL=$ac_cv_path_install
2093 else
2094 # As a last resort, use the slow shell script. Don't cache a
2095 # value for INSTALL within a source directory, because that will
2096 # break other packages using the cache if that directory is
2097 # removed, or if the value is a relative name.
2098 INSTALL=$ac_install_sh
2101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2102 echo "${ECHO_T}$INSTALL" >&6; }
2104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2105 # It thinks the first close brace ends the variable substitution.
2106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2112 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2113 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2114 # Just in case
2115 sleep 1
2116 echo timestamp > conftest.file
2117 # Do `set' in a subshell so we don't clobber the current shell's
2118 # arguments. Must try -L first in case configure is actually a
2119 # symlink; some systems play weird games with the mod time of symlinks
2120 # (eg FreeBSD returns the mod time of the symlink's containing
2121 # directory).
2122 if (
2123 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2124 if test "$*" = "X"; then
2125 # -L didn't work.
2126 set X `ls -t $srcdir/configure conftest.file`
2128 rm -f conftest.file
2129 if test "$*" != "X $srcdir/configure conftest.file" \
2130 && test "$*" != "X conftest.file $srcdir/configure"; then
2132 # If neither matched, then we have a broken ls. This can happen
2133 # if, for instance, CONFIG_SHELL is bash and it inherits a
2134 # broken ls alias from the environment. This has actually
2135 # happened. Such a system could not be considered "sane".
2136 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2137 alias in your environment" >&5
2138 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2139 alias in your environment" >&2;}
2140 { (exit 1); exit 1; }; }
2143 test "$2" = conftest.file
2145 then
2146 # Ok.
2148 else
2149 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2150 Check your system clock" >&5
2151 echo "$as_me: error: newly created file is older than distributed files!
2152 Check your system clock" >&2;}
2153 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6; }
2157 test "$program_prefix" != NONE &&
2158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2159 # Use a double $ so make ignores it.
2160 test "$program_suffix" != NONE &&
2161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2162 # Double any \ or $. echo might interpret backslashes.
2163 # By default was `s,x,x', remove it if useless.
2164 cat <<\_ACEOF >conftest.sed
2165 s/[\\$]/&&/g;s/;s,x,x,$//
2166 _ACEOF
2167 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2168 rm -f conftest.sed
2170 # expand $ac_aux_dir to an absolute path
2171 am_aux_dir=`cd $ac_aux_dir && pwd`
2173 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2174 # Use eval to expand $SHELL
2175 if eval "$MISSING --run true"; then
2176 am_missing_run="$MISSING --run "
2177 else
2178 am_missing_run=
2179 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2180 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2183 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2184 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2185 if test -z "$MKDIR_P"; then
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_prog in mkdir gmkdir; do
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2197 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2198 'mkdir (GNU coreutils) '* | \
2199 'mkdir (coreutils) '* | \
2200 'mkdir (fileutils) '4.1*)
2201 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2202 break 3;;
2203 esac
2204 done
2205 done
2206 done
2207 IFS=$as_save_IFS
2211 if test "${ac_cv_path_mkdir+set}" = set; then
2212 MKDIR_P="$ac_cv_path_mkdir -p"
2213 else
2214 # As a last resort, use the slow shell script. Don't cache a
2215 # value for MKDIR_P within a source directory, because that will
2216 # break other packages using the cache if that directory is
2217 # removed, or if the value is a relative name.
2218 test -d ./--version && rmdir ./--version
2219 MKDIR_P="$ac_install_sh -d"
2222 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2223 echo "${ECHO_T}$MKDIR_P" >&6; }
2225 mkdir_p="$MKDIR_P"
2226 case $mkdir_p in
2227 [\\/$]* | ?:[\\/]*) ;;
2228 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2229 esac
2231 for ac_prog in gawk mawk nawk awk
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_prog_AWK+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 if test -n "$AWK"; then
2241 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_AWK="$ac_prog"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2254 done
2255 done
2256 IFS=$as_save_IFS
2260 AWK=$ac_cv_prog_AWK
2261 if test -n "$AWK"; then
2262 { echo "$as_me:$LINENO: result: $AWK" >&5
2263 echo "${ECHO_T}$AWK" >&6; }
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2270 test -n "$AWK" && break
2271 done
2273 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2274 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2275 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2276 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 cat >conftest.make <<\_ACEOF
2280 SHELL = /bin/sh
2281 all:
2282 @echo '@@@%%%=$(MAKE)=@@@%%%'
2283 _ACEOF
2284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2286 *@@@%%%=?*=@@@%%%*)
2287 eval ac_cv_prog_make_${ac_make}_set=yes;;
2289 eval ac_cv_prog_make_${ac_make}_set=no;;
2290 esac
2291 rm -f conftest.make
2293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2294 { echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6; }
2296 SET_MAKE=
2297 else
2298 { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2300 SET_MAKE="MAKE=${MAKE-make}"
2303 rm -rf .tst 2>/dev/null
2304 mkdir .tst 2>/dev/null
2305 if test -d .tst; then
2306 am__leading_dot=.
2307 else
2308 am__leading_dot=_
2310 rmdir .tst 2>/dev/null
2312 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2313 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2314 # is not polluted with repeated "-I."
2315 am__isrc=' -I$(srcdir)'
2316 # test to see if srcdir already configured
2317 if test -f $srcdir/config.status; then
2318 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2320 { (exit 1); exit 1; }; }
2324 # test whether we have cygpath
2325 if test -z "$CYGPATH_W"; then
2326 if (cygpath --version) >/dev/null 2>/dev/null; then
2327 CYGPATH_W='cygpath -w'
2328 else
2329 CYGPATH_W=echo
2334 # Define the identity of the package.
2335 PACKAGE='barry-backup'
2336 VERSION='0.17'
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE "$PACKAGE"
2341 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define VERSION "$VERSION"
2346 _ACEOF
2348 # Some tools Automake needs.
2350 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2353 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2356 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2359 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2362 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2364 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2366 # Installed binaries are usually stripped using `strip' when the user
2367 # run `make install-strip'. However `strip' might not be the right
2368 # tool to use in cross-compilation environments, therefore Automake
2369 # will honor the `STRIP' environment variable to overrule this program.
2370 if test "$cross_compiling" != no; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}strip; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_STRIP+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$STRIP"; then
2380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2393 done
2394 done
2395 IFS=$as_save_IFS
2399 STRIP=$ac_cv_prog_STRIP
2400 if test -n "$STRIP"; then
2401 { echo "$as_me:$LINENO: result: $STRIP" >&5
2402 echo "${ECHO_T}$STRIP" >&6; }
2403 else
2404 { echo "$as_me:$LINENO: result: no" >&5
2405 echo "${ECHO_T}no" >&6; }
2410 if test -z "$ac_cv_prog_STRIP"; then
2411 ac_ct_STRIP=$STRIP
2412 # Extract the first word of "strip", so it can be a program name with args.
2413 set dummy strip; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 if test -n "$ac_ct_STRIP"; then
2420 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_STRIP="strip"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2433 done
2434 done
2435 IFS=$as_save_IFS
2439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2440 if test -n "$ac_ct_STRIP"; then
2441 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2442 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2443 else
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2448 if test "x$ac_ct_STRIP" = x; then
2449 STRIP=":"
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452 yes:)
2453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2454 whose name does not start with the host triplet. If you think this
2455 configuration is useful to you, please write to autoconf@gnu.org." >&5
2456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2457 whose name does not start with the host triplet. If you think this
2458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461 STRIP=$ac_ct_STRIP
2463 else
2464 STRIP="$ac_cv_prog_STRIP"
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2470 # We need awk for the "check" target. The system "awk" is bad on
2471 # some platforms.
2472 # Always define AMTAR for backward compatibility.
2474 AMTAR=${AMTAR-"${am_missing_run}tar"}
2476 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2484 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2485 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2486 # Check whether --enable-nls was given.
2487 if test "${enable_nls+set}" = set; then
2488 enableval=$enable_nls; USE_NLS=$enableval
2489 else
2490 USE_NLS=yes
2493 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2494 echo "${ECHO_T}$USE_NLS" >&6; }
2499 GETTEXT_MACRO_VERSION=0.17
2504 # Prepare PATH_SEPARATOR.
2505 # The user is always right.
2506 if test "${PATH_SEPARATOR+set}" != set; then
2507 echo "#! /bin/sh" >conf$$.sh
2508 echo "exit 0" >>conf$$.sh
2509 chmod +x conf$$.sh
2510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2511 PATH_SEPARATOR=';'
2512 else
2513 PATH_SEPARATOR=:
2515 rm -f conf$$.sh
2518 # Find out how to test for executable files. Don't use a zero-byte file,
2519 # as systems may use methods other than mode bits to determine executability.
2520 cat >conf$$.file <<_ASEOF
2521 #! /bin/sh
2522 exit 0
2523 _ASEOF
2524 chmod +x conf$$.file
2525 if test -x conf$$.file >/dev/null 2>&1; then
2526 ac_executable_p="test -x"
2527 else
2528 ac_executable_p="test -f"
2530 rm -f conf$$.file
2532 # Extract the first word of "msgfmt", so it can be a program name with args.
2533 set dummy msgfmt; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_path_MSGFMT+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539 case "$MSGFMT" in
2540 [\\/]* | ?:[\\/]*)
2541 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2544 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2545 for ac_dir in $PATH; do
2546 IFS="$ac_save_IFS"
2547 test -z "$ac_dir" && ac_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2550 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2551 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2552 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2553 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2554 break 2
2557 done
2558 done
2559 IFS="$ac_save_IFS"
2560 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2562 esac
2564 MSGFMT="$ac_cv_path_MSGFMT"
2565 if test "$MSGFMT" != ":"; then
2566 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2567 echo "${ECHO_T}$MSGFMT" >&6; }
2568 else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2573 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2574 set dummy gmsgfmt; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 case $GMSGFMT in
2581 [\\/]* | ?:[\\/]*)
2582 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2596 done
2597 done
2598 IFS=$as_save_IFS
2600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2602 esac
2604 GMSGFMT=$ac_cv_path_GMSGFMT
2605 if test -n "$GMSGFMT"; then
2606 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2607 echo "${ECHO_T}$GMSGFMT" >&6; }
2608 else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2615 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2616 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2617 *) MSGFMT_015=$MSGFMT ;;
2618 esac
2620 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2621 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2622 *) GMSGFMT_015=$GMSGFMT ;;
2623 esac
2627 # Prepare PATH_SEPARATOR.
2628 # The user is always right.
2629 if test "${PATH_SEPARATOR+set}" != set; then
2630 echo "#! /bin/sh" >conf$$.sh
2631 echo "exit 0" >>conf$$.sh
2632 chmod +x conf$$.sh
2633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2634 PATH_SEPARATOR=';'
2635 else
2636 PATH_SEPARATOR=:
2638 rm -f conf$$.sh
2641 # Find out how to test for executable files. Don't use a zero-byte file,
2642 # as systems may use methods other than mode bits to determine executability.
2643 cat >conf$$.file <<_ASEOF
2644 #! /bin/sh
2645 exit 0
2646 _ASEOF
2647 chmod +x conf$$.file
2648 if test -x conf$$.file >/dev/null 2>&1; then
2649 ac_executable_p="test -x"
2650 else
2651 ac_executable_p="test -f"
2653 rm -f conf$$.file
2655 # Extract the first word of "xgettext", so it can be a program name with args.
2656 set dummy xgettext; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 case "$XGETTEXT" in
2663 [\\/]* | ?:[\\/]*)
2664 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2667 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2668 for ac_dir in $PATH; do
2669 IFS="$ac_save_IFS"
2670 test -z "$ac_dir" && ac_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2673 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2674 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2675 (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
2676 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2677 break 2
2680 done
2681 done
2682 IFS="$ac_save_IFS"
2683 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2685 esac
2687 XGETTEXT="$ac_cv_path_XGETTEXT"
2688 if test "$XGETTEXT" != ":"; then
2689 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2690 echo "${ECHO_T}$XGETTEXT" >&6; }
2691 else
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2696 rm -f messages.po
2698 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2699 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2700 *) XGETTEXT_015=$XGETTEXT ;;
2701 esac
2705 # Prepare PATH_SEPARATOR.
2706 # The user is always right.
2707 if test "${PATH_SEPARATOR+set}" != set; then
2708 echo "#! /bin/sh" >conf$$.sh
2709 echo "exit 0" >>conf$$.sh
2710 chmod +x conf$$.sh
2711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2712 PATH_SEPARATOR=';'
2713 else
2714 PATH_SEPARATOR=:
2716 rm -f conf$$.sh
2719 # Find out how to test for executable files. Don't use a zero-byte file,
2720 # as systems may use methods other than mode bits to determine executability.
2721 cat >conf$$.file <<_ASEOF
2722 #! /bin/sh
2723 exit 0
2724 _ASEOF
2725 chmod +x conf$$.file
2726 if test -x conf$$.file >/dev/null 2>&1; then
2727 ac_executable_p="test -x"
2728 else
2729 ac_executable_p="test -f"
2731 rm -f conf$$.file
2733 # Extract the first word of "msgmerge", so it can be a program name with args.
2734 set dummy msgmerge; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 case "$MSGMERGE" in
2741 [\\/]* | ?:[\\/]*)
2742 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2745 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2746 for ac_dir in $PATH; do
2747 IFS="$ac_save_IFS"
2748 test -z "$ac_dir" && ac_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2751 echo "$as_me: trying $ac_dir/$ac_word..." >&5
2752 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2753 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2754 break 2
2757 done
2758 done
2759 IFS="$ac_save_IFS"
2760 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2762 esac
2764 MSGMERGE="$ac_cv_path_MSGMERGE"
2765 if test "$MSGMERGE" != ":"; then
2766 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2767 echo "${ECHO_T}$MSGMERGE" >&6; }
2768 else
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2774 test -n "$localedir" || localedir='${datadir}/locale'
2777 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
2780 ac_config_commands="$ac_config_commands po-directories"
2784 if test "X$prefix" = "XNONE"; then
2785 acl_final_prefix="$ac_default_prefix"
2786 else
2787 acl_final_prefix="$prefix"
2789 if test "X$exec_prefix" = "XNONE"; then
2790 acl_final_exec_prefix='${prefix}'
2791 else
2792 acl_final_exec_prefix="$exec_prefix"
2794 acl_save_prefix="$prefix"
2795 prefix="$acl_final_prefix"
2796 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2797 prefix="$acl_save_prefix"
2799 DEPDIR="${am__leading_dot}deps"
2801 ac_config_commands="$ac_config_commands depfiles"
2804 am_make=${MAKE-make}
2805 cat > confinc << 'END'
2806 am__doit:
2807 @echo done
2808 .PHONY: am__doit
2810 # If we don't find an include directive, just comment out the code.
2811 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2812 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2813 am__include="#"
2814 am__quote=
2815 _am_result=none
2816 # First try GNU make style include.
2817 echo "include confinc" > confmf
2818 # We grep out `Entering directory' and `Leaving directory'
2819 # messages which can occur if `w' ends up in MAKEFLAGS.
2820 # In particular we don't look at `^make:' because GNU make might
2821 # be invoked under some other name (usually "gmake"), in which
2822 # case it prints its new name instead of `make'.
2823 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2824 am__include=include
2825 am__quote=
2826 _am_result=GNU
2828 # Now try BSD make style include.
2829 if test "$am__include" = "#"; then
2830 echo '.include "confinc"' > confmf
2831 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2832 am__include=.include
2833 am__quote="\""
2834 _am_result=BSD
2839 { echo "$as_me:$LINENO: result: $_am_result" >&5
2840 echo "${ECHO_T}$_am_result" >&6; }
2841 rm -f confinc confmf
2843 # Check whether --enable-dependency-tracking was given.
2844 if test "${enable_dependency_tracking+set}" = set; then
2845 enableval=$enable_dependency_tracking;
2848 if test "x$enable_dependency_tracking" != xno; then
2849 am_depcomp="$ac_aux_dir/depcomp"
2850 AMDEPBACKSLASH='\'
2852 if test "x$enable_dependency_tracking" != xno; then
2853 AMDEP_TRUE=
2854 AMDEP_FALSE='#'
2855 else
2856 AMDEP_TRUE='#'
2857 AMDEP_FALSE=
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2871 if test "${ac_cv_prog_CC+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6; }
2898 else
2899 { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2905 if test -z "$ac_cv_prog_CC"; then
2906 ac_ct_CC=$CC
2907 # Extract the first word of "gcc", so it can be a program name with args.
2908 set dummy gcc; ac_word=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_CC="gcc"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2937 echo "${ECHO_T}$ac_ct_CC" >&6; }
2938 else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet. If you think this
2950 configuration is useful to you, please write to autoconf@gnu.org." >&5
2951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2952 whose name does not start with the host triplet. If you think this
2953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2954 ac_tool_warned=yes ;;
2955 esac
2956 CC=$ac_ct_CC
2958 else
2959 CC="$ac_cv_prog_CC"
2962 if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}cc; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC="${ac_tool_prefix}cc"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { echo "$as_me:$LINENO: result: $CC" >&5
2994 echo "${ECHO_T}$CC" >&6; }
2995 else
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3003 if test -z "$CC"; then
3004 # Extract the first word of "cc", so it can be a program name with args.
3005 set dummy cc; ac_word=$2
3006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 ac_prog_rejected=no
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3023 ac_prog_rejected=yes
3024 continue
3026 ac_cv_prog_CC="cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3032 IFS=$as_save_IFS
3034 if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3037 shift
3038 if test $# != 0; then
3039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3042 shift
3043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { echo "$as_me:$LINENO: result: $CC" >&5
3051 echo "${ECHO_T}$CC" >&6; }
3052 else
3053 { echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6; }
3059 if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog in cl.exe
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3094 else
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3100 test -n "$CC" && break
3101 done
3103 if test -z "$CC"; then
3104 ac_ct_CC=$CC
3105 for ac_prog in cl.exe
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_ac_ct_CC="$ac_prog"
3125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3128 done
3129 done
3130 IFS=$as_save_IFS
3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135 if test -n "$ac_ct_CC"; then
3136 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137 echo "${ECHO_T}$ac_ct_CC" >&6; }
3138 else
3139 { echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6; }
3144 test -n "$ac_ct_CC" && break
3145 done
3147 if test "x$ac_ct_CC" = x; then
3148 CC=""
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet. If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&5
3155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3156 whose name does not start with the host triplet. If you think this
3157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." >&2;}
3171 { (exit 1); exit 1; }; }
3173 # Provide some information about the compiler.
3174 echo "$as_me:$LINENO: checking for C compiler version" >&5
3175 ac_compiler=`set X $ac_compile; echo $2`
3176 { (ac_try="$ac_compiler --version >&5"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compiler --version >&5") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (ac_try="$ac_compiler -v >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compiler -v >&5") 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }
3196 { (ac_try="$ac_compiler -V >&5"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compiler -V >&5") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 ac_clean_files_save=$ac_clean_files
3223 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3224 # Try to create an executable without -o first, disregard a.out.
3225 # It will help us diagnose broken compilers, and finding out an intuition
3226 # of exeext.
3227 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3228 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3229 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3231 # List of possible output files, starting from the most likely.
3232 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3233 # only as a last resort. b.out is created by i960 compilers.
3234 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3236 # The IRIX 6 linker writes into existing files which may not be
3237 # executable, retaining their permissions. Remove them first so a
3238 # subsequent execution test works.
3239 ac_rmfiles=
3240 for ac_file in $ac_files
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246 done
3247 rm -f $ac_rmfiles
3249 if { (ac_try="$ac_link_default"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_link_default") 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; then
3259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3263 # Autoconf.
3264 for ac_file in $ac_files ''
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3270 [ab].out )
3271 # We found the default executable, but exeext='' is most
3272 # certainly right.
3273 break;;
3274 *.* )
3275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276 then :; else
3277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 # We set ac_cv_exeext here because the later test for it is not
3280 # safe: cross compilers may not add the suffix if given an `-o'
3281 # argument, so we may need to know it at that point already.
3282 # Even if this section looks crufty: it has the advantage of
3283 # actually working.
3284 break;;
3286 break;;
3287 esac
3288 done
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 else
3292 ac_file=''
3295 { echo "$as_me:$LINENO: result: $ac_file" >&5
3296 echo "${ECHO_T}$ac_file" >&6; }
3297 if test -z "$ac_file"; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: C compiler cannot create executables
3304 See \`config.log' for more details." >&2;}
3305 { (exit 77); exit 77; }; }
3308 ac_exeext=$ac_cv_exeext
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3313 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3315 # If not cross compiling, check that we can run a simple program.
3316 if test "$cross_compiling" != yes; then
3317 if { ac_try='./$ac_file'
3318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_try") 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 cross_compiling=no
3328 else
3329 if test "$cross_compiling" = maybe; then
3330 cross_compiling=yes
3331 else
3332 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3333 If you meant to cross compile, use \`--host'.
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: cannot run C compiled programs.
3336 If you meant to cross compile, use \`--host'.
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }
3342 { echo "$as_me:$LINENO: result: yes" >&5
3343 echo "${ECHO_T}yes" >&6; }
3345 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3346 ac_clean_files=$ac_clean_files_save
3347 # Check that the compiler produces executables we can run. If not, either
3348 # the compiler is broken, or we cross compile.
3349 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3350 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3351 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3352 echo "${ECHO_T}$cross_compiling" >&6; }
3354 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3355 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3356 if { (ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_link") 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; then
3366 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3368 # work properly (i.e., refer to `conftest.exe'), while it won't with
3369 # `rm'.
3370 for ac_file in conftest.exe conftest conftest.*; do
3371 test -f "$ac_file" || continue
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375 break;;
3376 * ) break;;
3377 esac
3378 done
3379 else
3380 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3381 See \`config.log' for more details." >&5
3382 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details." >&2;}
3384 { (exit 1); exit 1; }; }
3387 rm -f conftest$ac_cv_exeext
3388 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3389 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3391 rm -f conftest.$ac_ext
3392 EXEEXT=$ac_cv_exeext
3393 ac_exeext=$EXEEXT
3394 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3395 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3396 if test "${ac_cv_objext+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h. */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 rm -f conftest.o conftest.obj
3415 if { (ac_try="$ac_compile"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_compile") 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; then
3425 for ac_file in conftest.o conftest.obj conftest.*; do
3426 test -f "$ac_file" || continue;
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3430 break;;
3431 esac
3432 done
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details." >&5
3439 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3440 See \`config.log' for more details." >&2;}
3441 { (exit 1); exit 1; }; }
3444 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3446 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3447 echo "${ECHO_T}$ac_cv_objext" >&6; }
3448 OBJEXT=$ac_cv_objext
3449 ac_objext=$OBJEXT
3450 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3451 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3452 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3463 main ()
3465 #ifndef __GNUC__
3466 choke me
3467 #endif
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_compiler_gnu=yes
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 ac_compiler_gnu=no
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3504 GCC=`test $ac_compiler_gnu = yes && echo yes`
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cc_g+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3514 ac_cv_prog_cc_g=no
3515 CFLAGS="-g"
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3524 main ()
3528 return 0;
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_compile") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && {
3545 test -z "$ac_c_werror_flag" ||
3546 test ! -s conftest.err
3547 } && test -s conftest.$ac_objext; then
3548 ac_cv_prog_cc_g=yes
3549 else
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 CFLAGS=""
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3562 main ()
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3592 CFLAGS="-g"
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3601 main ()
3605 return 0;
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } && {
3622 test -z "$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3624 } && test -s conftest.$ac_objext; then
3625 ac_cv_prog_cc_g=yes
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3644 if test "$ac_test_CFLAGS" = set; then
3645 CFLAGS=$ac_save_CFLAGS
3646 elif test $ac_cv_prog_cc_g = yes; then
3647 if test "$GCC" = yes; then
3648 CFLAGS="-g -O2"
3649 else
3650 CFLAGS="-g"
3652 else
3653 if test "$GCC" = yes; then
3654 CFLAGS="-O2"
3655 else
3656 CFLAGS=
3659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3661 if test "${ac_cv_prog_cc_c89+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664 ac_cv_prog_cc_c89=no
3665 ac_save_CC=$CC
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <stdarg.h>
3673 #include <stdio.h>
3674 #include <sys/types.h>
3675 #include <sys/stat.h>
3676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677 struct buf { int x; };
3678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679 static char *e (p, i)
3680 char **p;
3681 int i;
3683 return p[i];
3685 static char *f (char * (*g) (char **, int), char **p, ...)
3687 char *s;
3688 va_list v;
3689 va_start (v,p);
3690 s = g (p, va_arg (v,int));
3691 va_end (v);
3692 return s;
3695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
3698 as 'x'. The following induces an error, until -std is added to get
3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
3701 that's true only with -std. */
3702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705 inside strings and character constants. */
3706 #define FOO(x) 'x'
3707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 int argc;
3714 char **argv;
3716 main ()
3718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 return 0;
3722 _ACEOF
3723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726 CC="$ac_save_CC $ac_arg"
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3744 ac_cv_prog_cc_c89=$ac_arg
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f core conftest.err conftest.$ac_objext
3753 test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 done
3755 rm -f conftest.$ac_ext
3756 CC=$ac_save_CC
3759 # AC_CACHE_VAL
3760 case "x$ac_cv_prog_cc_c89" in
3762 { echo "$as_me:$LINENO: result: none needed" >&5
3763 echo "${ECHO_T}none needed" >&6; } ;;
3764 xno)
3765 { echo "$as_me:$LINENO: result: unsupported" >&5
3766 echo "${ECHO_T}unsupported" >&6; } ;;
3768 CC="$CC $ac_cv_prog_cc_c89"
3769 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3771 esac
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 depcc="$CC" am_compiler_list=
3782 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3783 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3784 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788 # We make a subdir and do the tests there. Otherwise we can end up
3789 # making bogus files that we don't know about and never remove. For
3790 # instance it was reported that on HP-UX the gcc test will end up
3791 # making a dummy file named `D' -- because `-MD' means `put the output
3792 # in D'.
3793 mkdir conftest.dir
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3797 cd conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3803 # directory.
3804 mkdir sub
3806 am_cv_CC_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3818 : > sub/conftest.c
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822 # Solaris 8's {/usr,}/bin/sh.
3823 touch sub/conftst$i.h
3824 done
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827 case $depmode in
3828 nosideeffect)
3829 # after this tag, mechanisms are not by side-effect, so they'll
3830 # only be used when explicitly requested
3831 if test "x$enable_dependency_tracking" = xyes; then
3832 continue
3833 else
3834 break
3837 none) break ;;
3838 esac
3839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840 # mode. It turns out that the SunPro C++ compiler does not properly
3841 # handle `-M -o', and we need to detect this.
3842 if depmode=$depmode \
3843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3846 >/dev/null 2>conftest.err &&
3847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3851 # icc doesn't choke on unknown options, it will just issue warnings
3852 # or remarks (even with -Werror). So we grep stderr for any message
3853 # that says an option was ignored or not supported.
3854 # When given -MP, icc 7.0 and 7.1 complain thusly:
3855 # icc: Command line warning: ignoring option '-M'; no argument required
3856 # The diagnosis changed in icc 8.0:
3857 # icc: Command line remark: option '-MP' not supported
3858 if (grep 'ignoring option' conftest.err ||
3859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3860 am_cv_CC_dependencies_compiler_type=$depmode
3861 break
3864 done
3866 cd ..
3867 rm -rf conftest.dir
3868 else
3869 am_cv_CC_dependencies_compiler_type=none
3873 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3874 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3875 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3878 test "x$enable_dependency_tracking" != xno \
3879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3880 am__fastdepCC_TRUE=
3881 am__fastdepCC_FALSE='#'
3882 else
3883 am__fastdepCC_TRUE='#'
3884 am__fastdepCC_FALSE=
3888 # Make sure we can run config.sub.
3889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3890 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3891 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3892 { (exit 1); exit 1; }; }
3894 { echo "$as_me:$LINENO: checking build system type" >&5
3895 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3896 if test "${ac_cv_build+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_build_alias=$build_alias
3900 test "x$ac_build_alias" = x &&
3901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3902 test "x$ac_build_alias" = x &&
3903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3905 { (exit 1); exit 1; }; }
3906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3909 { (exit 1); exit 1; }; }
3912 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3913 echo "${ECHO_T}$ac_cv_build" >&6; }
3914 case $ac_cv_build in
3915 *-*-*) ;;
3916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3917 echo "$as_me: error: invalid value of canonical build" >&2;}
3918 { (exit 1); exit 1; }; };;
3919 esac
3920 build=$ac_cv_build
3921 ac_save_IFS=$IFS; IFS='-'
3922 set x $ac_cv_build
3923 shift
3924 build_cpu=$1
3925 build_vendor=$2
3926 shift; shift
3927 # Remember, the first character of IFS is used to create $*,
3928 # except with old shells:
3929 build_os=$*
3930 IFS=$ac_save_IFS
3931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3934 { echo "$as_me:$LINENO: checking host system type" >&5
3935 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3936 if test "${ac_cv_host+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 if test "x$host_alias" = x; then
3940 ac_cv_host=$ac_cv_build
3941 else
3942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3945 { (exit 1); exit 1; }; }
3949 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3950 echo "${ECHO_T}$ac_cv_host" >&6; }
3951 case $ac_cv_host in
3952 *-*-*) ;;
3953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3954 echo "$as_me: error: invalid value of canonical host" >&2;}
3955 { (exit 1); exit 1; }; };;
3956 esac
3957 host=$ac_cv_host
3958 ac_save_IFS=$IFS; IFS='-'
3959 set x $ac_cv_host
3960 shift
3961 host_cpu=$1
3962 host_vendor=$2
3963 shift; shift
3964 # Remember, the first character of IFS is used to create $*,
3965 # except with old shells:
3966 host_os=$*
3967 IFS=$ac_save_IFS
3968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3972 # Check whether --with-gnu-ld was given.
3973 if test "${with_gnu_ld+set}" = set; then
3974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3975 else
3976 with_gnu_ld=no
3979 # Prepare PATH_SEPARATOR.
3980 # The user is always right.
3981 if test "${PATH_SEPARATOR+set}" != set; then
3982 echo "#! /bin/sh" >conf$$.sh
3983 echo "exit 0" >>conf$$.sh
3984 chmod +x conf$$.sh
3985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3986 PATH_SEPARATOR=';'
3987 else
3988 PATH_SEPARATOR=:
3990 rm -f conf$$.sh
3992 ac_prog=ld
3993 if test "$GCC" = yes; then
3994 # Check if gcc -print-prog-name=ld gives a path.
3995 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3996 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
3997 case $host in
3998 *-*-mingw*)
3999 # gcc leaves a trailing carriage return which upsets mingw
4000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003 esac
4004 case $ac_prog in
4005 # Accept absolute paths.
4006 [\\/]* | [A-Za-z]:[\\/]*)
4007 re_direlt='/[^/][^/]*/\.\./'
4008 # Canonicalize the path of ld
4009 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4010 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4011 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4012 done
4013 test -z "$LD" && LD="$ac_prog"
4016 # If it fails, then pretend we aren't using GCC.
4017 ac_prog=ld
4020 # If it is relative, then search for the first ld in PATH.
4021 with_gnu_ld=unknown
4023 esac
4024 elif test "$with_gnu_ld" = yes; then
4025 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4026 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4027 else
4028 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4029 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4031 if test "${acl_cv_path_LD+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034 if test -z "$LD"; then
4035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4036 for ac_dir in $PATH; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4039 acl_cv_path_LD="$ac_dir/$ac_prog"
4040 # Check to see if the program is GNU ld. I'd rather use --version,
4041 # but apparently some GNU ld's only accept -v.
4042 # Break only if it was the GNU/non-GNU ld that we prefer.
4043 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4044 *GNU* | *'with BFD'*)
4045 test "$with_gnu_ld" != no && break ;;
4047 test "$with_gnu_ld" != yes && break ;;
4048 esac
4050 done
4051 IFS="$ac_save_ifs"
4052 else
4053 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4057 LD="$acl_cv_path_LD"
4058 if test -n "$LD"; then
4059 { echo "$as_me:$LINENO: result: $LD" >&5
4060 echo "${ECHO_T}$LD" >&6; }
4061 else
4062 { echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6; }
4065 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067 { (exit 1); exit 1; }; }
4068 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4070 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4074 case `$LD -v 2>&1 </dev/null` in
4075 *GNU* | *'with BFD'*)
4076 acl_cv_prog_gnu_ld=yes ;;
4078 acl_cv_prog_gnu_ld=no ;;
4079 esac
4081 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4082 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
4083 with_gnu_ld=$acl_cv_prog_gnu_ld
4088 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4089 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
4090 if test "${acl_cv_rpath+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4094 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4095 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4096 . ./conftest.sh
4097 rm -f ./conftest.sh
4098 acl_cv_rpath=done
4101 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4102 echo "${ECHO_T}$acl_cv_rpath" >&6; }
4103 wl="$acl_cv_wl"
4104 acl_libext="$acl_cv_libext"
4105 acl_shlibext="$acl_cv_shlibext"
4106 acl_libname_spec="$acl_cv_libname_spec"
4107 acl_library_names_spec="$acl_cv_library_names_spec"
4108 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4109 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4110 acl_hardcode_direct="$acl_cv_hardcode_direct"
4111 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4112 # Check whether --enable-rpath was given.
4113 if test "${enable_rpath+set}" = set; then
4114 enableval=$enable_rpath; :
4115 else
4116 enable_rpath=yes
4121 acl_libdirstem=lib
4122 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4123 if test -n "$searchpath"; then
4124 acl_save_IFS="${IFS= }"; IFS=":"
4125 for searchdir in $searchpath; do
4126 if test -d "$searchdir"; then
4127 case "$searchdir" in
4128 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4129 *) searchdir=`cd "$searchdir" && pwd`
4130 case "$searchdir" in
4131 */lib64 ) acl_libdirstem=lib64 ;;
4132 esac ;;
4133 esac
4135 done
4136 IFS="$acl_save_IFS"
4147 use_additional=yes
4149 acl_save_prefix="$prefix"
4150 prefix="$acl_final_prefix"
4151 acl_save_exec_prefix="$exec_prefix"
4152 exec_prefix="$acl_final_exec_prefix"
4154 eval additional_includedir=\"$includedir\"
4155 eval additional_libdir=\"$libdir\"
4157 exec_prefix="$acl_save_exec_prefix"
4158 prefix="$acl_save_prefix"
4161 # Check whether --with-libiconv-prefix was given.
4162 if test "${with_libiconv_prefix+set}" = set; then
4163 withval=$with_libiconv_prefix;
4164 if test "X$withval" = "Xno"; then
4165 use_additional=no
4166 else
4167 if test "X$withval" = "X"; then
4169 acl_save_prefix="$prefix"
4170 prefix="$acl_final_prefix"
4171 acl_save_exec_prefix="$exec_prefix"
4172 exec_prefix="$acl_final_exec_prefix"
4174 eval additional_includedir=\"$includedir\"
4175 eval additional_libdir=\"$libdir\"
4177 exec_prefix="$acl_save_exec_prefix"
4178 prefix="$acl_save_prefix"
4180 else
4181 additional_includedir="$withval/include"
4182 additional_libdir="$withval/$acl_libdirstem"
4188 LIBICONV=
4189 LTLIBICONV=
4190 INCICONV=
4191 LIBICONV_PREFIX=
4192 rpathdirs=
4193 ltrpathdirs=
4194 names_already_handled=
4195 names_next_round='iconv '
4196 while test -n "$names_next_round"; do
4197 names_this_round="$names_next_round"
4198 names_next_round=
4199 for name in $names_this_round; do
4200 already_handled=
4201 for n in $names_already_handled; do
4202 if test "$n" = "$name"; then
4203 already_handled=yes
4204 break
4206 done
4207 if test -z "$already_handled"; then
4208 names_already_handled="$names_already_handled $name"
4209 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4210 eval value=\"\$HAVE_LIB$uppername\"
4211 if test -n "$value"; then
4212 if test "$value" = yes; then
4213 eval value=\"\$LIB$uppername\"
4214 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4215 eval value=\"\$LTLIB$uppername\"
4216 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4217 else
4220 else
4221 found_dir=
4222 found_la=
4223 found_so=
4224 found_a=
4225 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4226 if test -n "$acl_shlibext"; then
4227 shrext=".$acl_shlibext" # typically: shrext=.so
4228 else
4229 shrext=
4231 if test $use_additional = yes; then
4232 dir="$additional_libdir"
4233 if test -n "$acl_shlibext"; then
4234 if test -f "$dir/$libname$shrext"; then
4235 found_dir="$dir"
4236 found_so="$dir/$libname$shrext"
4237 else
4238 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4239 ver=`(cd "$dir" && \
4240 for f in "$libname$shrext".*; do echo "$f"; done \
4241 | sed -e "s,^$libname$shrext\\\\.,," \
4242 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4243 | sed 1q ) 2>/dev/null`
4244 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4245 found_dir="$dir"
4246 found_so="$dir/$libname$shrext.$ver"
4248 else
4249 eval library_names=\"$acl_library_names_spec\"
4250 for f in $library_names; do
4251 if test -f "$dir/$f"; then
4252 found_dir="$dir"
4253 found_so="$dir/$f"
4254 break
4256 done
4260 if test "X$found_dir" = "X"; then
4261 if test -f "$dir/$libname.$acl_libext"; then
4262 found_dir="$dir"
4263 found_a="$dir/$libname.$acl_libext"
4266 if test "X$found_dir" != "X"; then
4267 if test -f "$dir/$libname.la"; then
4268 found_la="$dir/$libname.la"
4272 if test "X$found_dir" = "X"; then
4273 for x in $LDFLAGS $LTLIBICONV; do
4275 acl_save_prefix="$prefix"
4276 prefix="$acl_final_prefix"
4277 acl_save_exec_prefix="$exec_prefix"
4278 exec_prefix="$acl_final_exec_prefix"
4279 eval x=\"$x\"
4280 exec_prefix="$acl_save_exec_prefix"
4281 prefix="$acl_save_prefix"
4283 case "$x" in
4284 -L*)
4285 dir=`echo "X$x" | sed -e 's/^X-L//'`
4286 if test -n "$acl_shlibext"; then
4287 if test -f "$dir/$libname$shrext"; then
4288 found_dir="$dir"
4289 found_so="$dir/$libname$shrext"
4290 else
4291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4292 ver=`(cd "$dir" && \
4293 for f in "$libname$shrext".*; do echo "$f"; done \
4294 | sed -e "s,^$libname$shrext\\\\.,," \
4295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4296 | sed 1q ) 2>/dev/null`
4297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4298 found_dir="$dir"
4299 found_so="$dir/$libname$shrext.$ver"
4301 else
4302 eval library_names=\"$acl_library_names_spec\"
4303 for f in $library_names; do
4304 if test -f "$dir/$f"; then
4305 found_dir="$dir"
4306 found_so="$dir/$f"
4307 break
4309 done
4313 if test "X$found_dir" = "X"; then
4314 if test -f "$dir/$libname.$acl_libext"; then
4315 found_dir="$dir"
4316 found_a="$dir/$libname.$acl_libext"
4319 if test "X$found_dir" != "X"; then
4320 if test -f "$dir/$libname.la"; then
4321 found_la="$dir/$libname.la"
4325 esac
4326 if test "X$found_dir" != "X"; then
4327 break
4329 done
4331 if test "X$found_dir" != "X"; then
4332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4333 if test "X$found_so" != "X"; then
4334 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4335 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4336 else
4337 haveit=
4338 for x in $ltrpathdirs; do
4339 if test "X$x" = "X$found_dir"; then
4340 haveit=yes
4341 break
4343 done
4344 if test -z "$haveit"; then
4345 ltrpathdirs="$ltrpathdirs $found_dir"
4347 if test "$acl_hardcode_direct" = yes; then
4348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4349 else
4350 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4351 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4352 haveit=
4353 for x in $rpathdirs; do
4354 if test "X$x" = "X$found_dir"; then
4355 haveit=yes
4356 break
4358 done
4359 if test -z "$haveit"; then
4360 rpathdirs="$rpathdirs $found_dir"
4362 else
4363 haveit=
4364 for x in $LDFLAGS $LIBICONV; do
4366 acl_save_prefix="$prefix"
4367 prefix="$acl_final_prefix"
4368 acl_save_exec_prefix="$exec_prefix"
4369 exec_prefix="$acl_final_exec_prefix"
4370 eval x=\"$x\"
4371 exec_prefix="$acl_save_exec_prefix"
4372 prefix="$acl_save_prefix"
4374 if test "X$x" = "X-L$found_dir"; then
4375 haveit=yes
4376 break
4378 done
4379 if test -z "$haveit"; then
4380 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4382 if test "$acl_hardcode_minus_L" != no; then
4383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4384 else
4385 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4390 else
4391 if test "X$found_a" != "X"; then
4392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4393 else
4394 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4397 additional_includedir=
4398 case "$found_dir" in
4399 */$acl_libdirstem | */$acl_libdirstem/)
4400 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4401 LIBICONV_PREFIX="$basedir"
4402 additional_includedir="$basedir/include"
4404 esac
4405 if test "X$additional_includedir" != "X"; then
4406 if test "X$additional_includedir" != "X/usr/include"; then
4407 haveit=
4408 if test "X$additional_includedir" = "X/usr/local/include"; then
4409 if test -n "$GCC"; then
4410 case $host_os in
4411 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4412 esac
4415 if test -z "$haveit"; then
4416 for x in $CPPFLAGS $INCICONV; do
4418 acl_save_prefix="$prefix"
4419 prefix="$acl_final_prefix"
4420 acl_save_exec_prefix="$exec_prefix"
4421 exec_prefix="$acl_final_exec_prefix"
4422 eval x=\"$x\"
4423 exec_prefix="$acl_save_exec_prefix"
4424 prefix="$acl_save_prefix"
4426 if test "X$x" = "X-I$additional_includedir"; then
4427 haveit=yes
4428 break
4430 done
4431 if test -z "$haveit"; then
4432 if test -d "$additional_includedir"; then
4433 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4439 if test -n "$found_la"; then
4440 save_libdir="$libdir"
4441 case "$found_la" in
4442 */* | *\\*) . "$found_la" ;;
4443 *) . "./$found_la" ;;
4444 esac
4445 libdir="$save_libdir"
4446 for dep in $dependency_libs; do
4447 case "$dep" in
4448 -L*)
4449 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4450 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4451 haveit=
4452 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4453 if test -n "$GCC"; then
4454 case $host_os in
4455 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4456 esac
4459 if test -z "$haveit"; then
4460 haveit=
4461 for x in $LDFLAGS $LIBICONV; do
4463 acl_save_prefix="$prefix"
4464 prefix="$acl_final_prefix"
4465 acl_save_exec_prefix="$exec_prefix"
4466 exec_prefix="$acl_final_exec_prefix"
4467 eval x=\"$x\"
4468 exec_prefix="$acl_save_exec_prefix"
4469 prefix="$acl_save_prefix"
4471 if test "X$x" = "X-L$additional_libdir"; then
4472 haveit=yes
4473 break
4475 done
4476 if test -z "$haveit"; then
4477 if test -d "$additional_libdir"; then
4478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4481 haveit=
4482 for x in $LDFLAGS $LTLIBICONV; do
4484 acl_save_prefix="$prefix"
4485 prefix="$acl_final_prefix"
4486 acl_save_exec_prefix="$exec_prefix"
4487 exec_prefix="$acl_final_exec_prefix"
4488 eval x=\"$x\"
4489 exec_prefix="$acl_save_exec_prefix"
4490 prefix="$acl_save_prefix"
4492 if test "X$x" = "X-L$additional_libdir"; then
4493 haveit=yes
4494 break
4496 done
4497 if test -z "$haveit"; then
4498 if test -d "$additional_libdir"; then
4499 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4505 -R*)
4506 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4507 if test "$enable_rpath" != no; then
4508 haveit=
4509 for x in $rpathdirs; do
4510 if test "X$x" = "X$dir"; then
4511 haveit=yes
4512 break
4514 done
4515 if test -z "$haveit"; then
4516 rpathdirs="$rpathdirs $dir"
4518 haveit=
4519 for x in $ltrpathdirs; do
4520 if test "X$x" = "X$dir"; then
4521 haveit=yes
4522 break
4524 done
4525 if test -z "$haveit"; then
4526 ltrpathdirs="$ltrpathdirs $dir"
4530 -l*)
4531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4533 *.la)
4534 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4537 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4538 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4540 esac
4541 done
4543 else
4544 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4549 done
4550 done
4551 if test "X$rpathdirs" != "X"; then
4552 if test -n "$acl_hardcode_libdir_separator"; then
4553 alldirs=
4554 for found_dir in $rpathdirs; do
4555 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4556 done
4557 acl_save_libdir="$libdir"
4558 libdir="$alldirs"
4559 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4560 libdir="$acl_save_libdir"
4561 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4562 else
4563 for found_dir in $rpathdirs; do
4564 acl_save_libdir="$libdir"
4565 libdir="$found_dir"
4566 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4567 libdir="$acl_save_libdir"
4568 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4569 done
4572 if test "X$ltrpathdirs" != "X"; then
4573 for found_dir in $ltrpathdirs; do
4574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4575 done
4603 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4604 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
4605 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 gt_save_LIBS="$LIBS"
4609 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <CoreFoundation/CFPreferences.h>
4618 main ()
4620 CFPreferencesCopyAppValue(NULL, NULL)
4622 return 0;
4624 _ACEOF
4625 rm -f conftest.$ac_objext conftest$ac_exeext
4626 if { (ac_try="$ac_link"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632 (eval "$ac_link") 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && {
4639 test -z "$ac_c_werror_flag" ||
4640 test ! -s conftest.err
4641 } && test -s conftest$ac_exeext &&
4642 $as_test_x conftest$ac_exeext; then
4643 gt_cv_func_CFPreferencesCopyAppValue=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 gt_cv_func_CFPreferencesCopyAppValue=no
4651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4652 conftest$ac_exeext conftest.$ac_ext
4653 LIBS="$gt_save_LIBS"
4655 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4656 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4657 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4659 cat >>confdefs.h <<\_ACEOF
4660 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4661 _ACEOF
4664 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4665 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
4666 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 gt_save_LIBS="$LIBS"
4670 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h. */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4677 #include <CoreFoundation/CFLocale.h>
4679 main ()
4681 CFLocaleCopyCurrent();
4683 return 0;
4685 _ACEOF
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (ac_try="$ac_link"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_link") 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest$ac_exeext &&
4703 $as_test_x conftest$ac_exeext; then
4704 gt_cv_func_CFLocaleCopyCurrent=yes
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 gt_cv_func_CFLocaleCopyCurrent=no
4712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4713 conftest$ac_exeext conftest.$ac_ext
4714 LIBS="$gt_save_LIBS"
4716 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4717 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4718 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4720 cat >>confdefs.h <<\_ACEOF
4721 #define HAVE_CFLOCALECOPYCURRENT 1
4722 _ACEOF
4725 INTL_MACOSX_LIBS=
4726 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4727 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4735 LIBINTL=
4736 LTLIBINTL=
4737 POSUB=
4739 case " $gt_needs " in
4740 *" need-formatstring-macros "*) gt_api_version=3 ;;
4741 *" need-ngettext "*) gt_api_version=2 ;;
4742 *) gt_api_version=1 ;;
4743 esac
4744 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
4745 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
4747 if test "$USE_NLS" = "yes"; then
4748 gt_use_preinstalled_gnugettext=no
4751 if test $gt_api_version -ge 3; then
4752 gt_revision_test_code='
4753 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
4754 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
4755 #endif
4756 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
4758 else
4759 gt_revision_test_code=
4761 if test $gt_api_version -ge 2; then
4762 gt_expression_test_code=' + * ngettext ("", "", 0)'
4763 else
4764 gt_expression_test_code=
4767 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4768 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
4769 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 #include <libintl.h>
4779 $gt_revision_test_code
4780 extern int _nl_msg_cat_cntr;
4781 extern int *_nl_domain_bindings;
4783 main ()
4785 bindtextdomain ("", "");
4786 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (ac_try="$ac_link"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_link") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest$ac_exeext &&
4808 $as_test_x conftest$ac_exeext; then
4809 eval "$gt_func_gnugettext_libc=yes"
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 eval "$gt_func_gnugettext_libc=no"
4817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4818 conftest$ac_exeext conftest.$ac_ext
4820 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
4821 { echo "$as_me:$LINENO: result: $ac_res" >&5
4822 echo "${ECHO_T}$ac_res" >&6; }
4824 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
4830 am_save_CPPFLAGS="$CPPFLAGS"
4832 for element in $INCICONV; do
4833 haveit=
4834 for x in $CPPFLAGS; do
4836 acl_save_prefix="$prefix"
4837 prefix="$acl_final_prefix"
4838 acl_save_exec_prefix="$exec_prefix"
4839 exec_prefix="$acl_final_exec_prefix"
4840 eval x=\"$x\"
4841 exec_prefix="$acl_save_exec_prefix"
4842 prefix="$acl_save_prefix"
4844 if test "X$x" = "X$element"; then
4845 haveit=yes
4846 break
4848 done
4849 if test -z "$haveit"; then
4850 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4852 done
4855 { echo "$as_me:$LINENO: checking for iconv" >&5
4856 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
4857 if test "${am_cv_func_iconv+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4861 am_cv_func_iconv="no, consider installing GNU libiconv"
4862 am_cv_lib_iconv=no
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <stdlib.h>
4870 #include <iconv.h>
4872 main ()
4874 iconv_t cd = iconv_open("","");
4875 iconv(cd,NULL,NULL,NULL,NULL);
4876 iconv_close(cd);
4878 return 0;
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest$ac_exeext &&
4898 $as_test_x conftest$ac_exeext; then
4899 am_cv_func_iconv=yes
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4908 conftest$ac_exeext conftest.$ac_ext
4909 if test "$am_cv_func_iconv" != yes; then
4910 am_save_LIBS="$LIBS"
4911 LIBS="$LIBS $LIBICONV"
4912 cat >conftest.$ac_ext <<_ACEOF
4913 /* confdefs.h. */
4914 _ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <stdlib.h>
4919 #include <iconv.h>
4921 main ()
4923 iconv_t cd = iconv_open("","");
4924 iconv(cd,NULL,NULL,NULL,NULL);
4925 iconv_close(cd);
4927 return 0;
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (ac_try="$ac_link"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_link") 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest$ac_exeext &&
4947 $as_test_x conftest$ac_exeext; then
4948 am_cv_lib_iconv=yes
4949 am_cv_func_iconv=yes
4950 else
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4958 conftest$ac_exeext conftest.$ac_ext
4959 LIBS="$am_save_LIBS"
4963 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4964 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
4965 if test "$am_cv_func_iconv" = yes; then
4966 { echo "$as_me:$LINENO: checking for working iconv" >&5
4967 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
4968 if test "${am_cv_func_iconv_works+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4972 am_save_LIBS="$LIBS"
4973 if test $am_cv_lib_iconv = yes; then
4974 LIBS="$LIBS $LIBICONV"
4976 if test "$cross_compiling" = yes; then
4977 case "$host_os" in
4978 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4979 *) am_cv_func_iconv_works="guessing yes" ;;
4980 esac
4981 else
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 #include <iconv.h>
4990 #include <string.h>
4991 int main ()
4993 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4994 returns. */
4996 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4997 if (cd_utf8_to_88591 != (iconv_t)(-1))
4999 static const char input[] = "\342\202\254"; /* EURO SIGN */
5000 char buf[10];
5001 const char *inptr = input;
5002 size_t inbytesleft = strlen (input);
5003 char *outptr = buf;
5004 size_t outbytesleft = sizeof (buf);
5005 size_t res = iconv (cd_utf8_to_88591,
5006 (char **) &inptr, &inbytesleft,
5007 &outptr, &outbytesleft);
5008 if (res == 0)
5009 return 1;
5012 #if 0 /* This bug could be worked around by the caller. */
5013 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5015 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5016 if (cd_88591_to_utf8 != (iconv_t)(-1))
5018 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5019 char buf[50];
5020 const char *inptr = input;
5021 size_t inbytesleft = strlen (input);
5022 char *outptr = buf;
5023 size_t outbytesleft = sizeof (buf);
5024 size_t res = iconv (cd_88591_to_utf8,
5025 (char **) &inptr, &inbytesleft,
5026 &outptr, &outbytesleft);
5027 if ((int)res > 0)
5028 return 1;
5031 #endif
5032 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5033 provided. */
5034 if (/* Try standardized names. */
5035 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5036 /* Try IRIX, OSF/1 names. */
5037 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5038 /* Try AIX names. */
5039 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5040 /* Try HP-UX names. */
5041 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5042 return 1;
5043 return 0;
5045 _ACEOF
5046 rm -f conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_link") 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_try") 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 am_cv_func_iconv_works=yes
5067 else
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ( exit $ac_status )
5073 am_cv_func_iconv_works=no
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5079 LIBS="$am_save_LIBS"
5082 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
5083 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
5084 case "$am_cv_func_iconv_works" in
5085 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5086 *) am_func_iconv=yes ;;
5087 esac
5088 else
5089 am_func_iconv=no am_cv_lib_iconv=no
5091 if test "$am_func_iconv" = yes; then
5093 cat >>confdefs.h <<\_ACEOF
5094 #define HAVE_ICONV 1
5095 _ACEOF
5098 if test "$am_cv_lib_iconv" = yes; then
5099 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5100 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
5101 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
5102 echo "${ECHO_T}$LIBICONV" >&6; }
5103 else
5104 CPPFLAGS="$am_save_CPPFLAGS"
5105 LIBICONV=
5106 LTLIBICONV=
5116 use_additional=yes
5118 acl_save_prefix="$prefix"
5119 prefix="$acl_final_prefix"
5120 acl_save_exec_prefix="$exec_prefix"
5121 exec_prefix="$acl_final_exec_prefix"
5123 eval additional_includedir=\"$includedir\"
5124 eval additional_libdir=\"$libdir\"
5126 exec_prefix="$acl_save_exec_prefix"
5127 prefix="$acl_save_prefix"
5130 # Check whether --with-libintl-prefix was given.
5131 if test "${with_libintl_prefix+set}" = set; then
5132 withval=$with_libintl_prefix;
5133 if test "X$withval" = "Xno"; then
5134 use_additional=no
5135 else
5136 if test "X$withval" = "X"; then
5138 acl_save_prefix="$prefix"
5139 prefix="$acl_final_prefix"
5140 acl_save_exec_prefix="$exec_prefix"
5141 exec_prefix="$acl_final_exec_prefix"
5143 eval additional_includedir=\"$includedir\"
5144 eval additional_libdir=\"$libdir\"
5146 exec_prefix="$acl_save_exec_prefix"
5147 prefix="$acl_save_prefix"
5149 else
5150 additional_includedir="$withval/include"
5151 additional_libdir="$withval/$acl_libdirstem"
5157 LIBINTL=
5158 LTLIBINTL=
5159 INCINTL=
5160 LIBINTL_PREFIX=
5161 rpathdirs=
5162 ltrpathdirs=
5163 names_already_handled=
5164 names_next_round='intl '
5165 while test -n "$names_next_round"; do
5166 names_this_round="$names_next_round"
5167 names_next_round=
5168 for name in $names_this_round; do
5169 already_handled=
5170 for n in $names_already_handled; do
5171 if test "$n" = "$name"; then
5172 already_handled=yes
5173 break
5175 done
5176 if test -z "$already_handled"; then
5177 names_already_handled="$names_already_handled $name"
5178 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5179 eval value=\"\$HAVE_LIB$uppername\"
5180 if test -n "$value"; then
5181 if test "$value" = yes; then
5182 eval value=\"\$LIB$uppername\"
5183 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5184 eval value=\"\$LTLIB$uppername\"
5185 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5186 else
5189 else
5190 found_dir=
5191 found_la=
5192 found_so=
5193 found_a=
5194 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5195 if test -n "$acl_shlibext"; then
5196 shrext=".$acl_shlibext" # typically: shrext=.so
5197 else
5198 shrext=
5200 if test $use_additional = yes; then
5201 dir="$additional_libdir"
5202 if test -n "$acl_shlibext"; then
5203 if test -f "$dir/$libname$shrext"; then
5204 found_dir="$dir"
5205 found_so="$dir/$libname$shrext"
5206 else
5207 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5208 ver=`(cd "$dir" && \
5209 for f in "$libname$shrext".*; do echo "$f"; done \
5210 | sed -e "s,^$libname$shrext\\\\.,," \
5211 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5212 | sed 1q ) 2>/dev/null`
5213 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5214 found_dir="$dir"
5215 found_so="$dir/$libname$shrext.$ver"
5217 else
5218 eval library_names=\"$acl_library_names_spec\"
5219 for f in $library_names; do
5220 if test -f "$dir/$f"; then
5221 found_dir="$dir"
5222 found_so="$dir/$f"
5223 break
5225 done
5229 if test "X$found_dir" = "X"; then
5230 if test -f "$dir/$libname.$acl_libext"; then
5231 found_dir="$dir"
5232 found_a="$dir/$libname.$acl_libext"
5235 if test "X$found_dir" != "X"; then
5236 if test -f "$dir/$libname.la"; then
5237 found_la="$dir/$libname.la"
5241 if test "X$found_dir" = "X"; then
5242 for x in $LDFLAGS $LTLIBINTL; do
5244 acl_save_prefix="$prefix"
5245 prefix="$acl_final_prefix"
5246 acl_save_exec_prefix="$exec_prefix"
5247 exec_prefix="$acl_final_exec_prefix"
5248 eval x=\"$x\"
5249 exec_prefix="$acl_save_exec_prefix"
5250 prefix="$acl_save_prefix"
5252 case "$x" in
5253 -L*)
5254 dir=`echo "X$x" | sed -e 's/^X-L//'`
5255 if test -n "$acl_shlibext"; then
5256 if test -f "$dir/$libname$shrext"; then
5257 found_dir="$dir"
5258 found_so="$dir/$libname$shrext"
5259 else
5260 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5261 ver=`(cd "$dir" && \
5262 for f in "$libname$shrext".*; do echo "$f"; done \
5263 | sed -e "s,^$libname$shrext\\\\.,," \
5264 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5265 | sed 1q ) 2>/dev/null`
5266 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5267 found_dir="$dir"
5268 found_so="$dir/$libname$shrext.$ver"
5270 else
5271 eval library_names=\"$acl_library_names_spec\"
5272 for f in $library_names; do
5273 if test -f "$dir/$f"; then
5274 found_dir="$dir"
5275 found_so="$dir/$f"
5276 break
5278 done
5282 if test "X$found_dir" = "X"; then
5283 if test -f "$dir/$libname.$acl_libext"; then
5284 found_dir="$dir"
5285 found_a="$dir/$libname.$acl_libext"
5288 if test "X$found_dir" != "X"; then
5289 if test -f "$dir/$libname.la"; then
5290 found_la="$dir/$libname.la"
5294 esac
5295 if test "X$found_dir" != "X"; then
5296 break
5298 done
5300 if test "X$found_dir" != "X"; then
5301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5302 if test "X$found_so" != "X"; then
5303 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5304 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5305 else
5306 haveit=
5307 for x in $ltrpathdirs; do
5308 if test "X$x" = "X$found_dir"; then
5309 haveit=yes
5310 break
5312 done
5313 if test -z "$haveit"; then
5314 ltrpathdirs="$ltrpathdirs $found_dir"
5316 if test "$acl_hardcode_direct" = yes; then
5317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5318 else
5319 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5320 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5321 haveit=
5322 for x in $rpathdirs; do
5323 if test "X$x" = "X$found_dir"; then
5324 haveit=yes
5325 break
5327 done
5328 if test -z "$haveit"; then
5329 rpathdirs="$rpathdirs $found_dir"
5331 else
5332 haveit=
5333 for x in $LDFLAGS $LIBINTL; do
5335 acl_save_prefix="$prefix"
5336 prefix="$acl_final_prefix"
5337 acl_save_exec_prefix="$exec_prefix"
5338 exec_prefix="$acl_final_exec_prefix"
5339 eval x=\"$x\"
5340 exec_prefix="$acl_save_exec_prefix"
5341 prefix="$acl_save_prefix"
5343 if test "X$x" = "X-L$found_dir"; then
5344 haveit=yes
5345 break
5347 done
5348 if test -z "$haveit"; then
5349 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5351 if test "$acl_hardcode_minus_L" != no; then
5352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5353 else
5354 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5359 else
5360 if test "X$found_a" != "X"; then
5361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5362 else
5363 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5366 additional_includedir=
5367 case "$found_dir" in
5368 */$acl_libdirstem | */$acl_libdirstem/)
5369 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5370 LIBINTL_PREFIX="$basedir"
5371 additional_includedir="$basedir/include"
5373 esac
5374 if test "X$additional_includedir" != "X"; then
5375 if test "X$additional_includedir" != "X/usr/include"; then
5376 haveit=
5377 if test "X$additional_includedir" = "X/usr/local/include"; then
5378 if test -n "$GCC"; then
5379 case $host_os in
5380 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5381 esac
5384 if test -z "$haveit"; then
5385 for x in $CPPFLAGS $INCINTL; do
5387 acl_save_prefix="$prefix"
5388 prefix="$acl_final_prefix"
5389 acl_save_exec_prefix="$exec_prefix"
5390 exec_prefix="$acl_final_exec_prefix"
5391 eval x=\"$x\"
5392 exec_prefix="$acl_save_exec_prefix"
5393 prefix="$acl_save_prefix"
5395 if test "X$x" = "X-I$additional_includedir"; then
5396 haveit=yes
5397 break
5399 done
5400 if test -z "$haveit"; then
5401 if test -d "$additional_includedir"; then
5402 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5408 if test -n "$found_la"; then
5409 save_libdir="$libdir"
5410 case "$found_la" in
5411 */* | *\\*) . "$found_la" ;;
5412 *) . "./$found_la" ;;
5413 esac
5414 libdir="$save_libdir"
5415 for dep in $dependency_libs; do
5416 case "$dep" in
5417 -L*)
5418 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5419 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5420 haveit=
5421 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5422 if test -n "$GCC"; then
5423 case $host_os in
5424 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5425 esac
5428 if test -z "$haveit"; then
5429 haveit=
5430 for x in $LDFLAGS $LIBINTL; do
5432 acl_save_prefix="$prefix"
5433 prefix="$acl_final_prefix"
5434 acl_save_exec_prefix="$exec_prefix"
5435 exec_prefix="$acl_final_exec_prefix"
5436 eval x=\"$x\"
5437 exec_prefix="$acl_save_exec_prefix"
5438 prefix="$acl_save_prefix"
5440 if test "X$x" = "X-L$additional_libdir"; then
5441 haveit=yes
5442 break
5444 done
5445 if test -z "$haveit"; then
5446 if test -d "$additional_libdir"; then
5447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5450 haveit=
5451 for x in $LDFLAGS $LTLIBINTL; do
5453 acl_save_prefix="$prefix"
5454 prefix="$acl_final_prefix"
5455 acl_save_exec_prefix="$exec_prefix"
5456 exec_prefix="$acl_final_exec_prefix"
5457 eval x=\"$x\"
5458 exec_prefix="$acl_save_exec_prefix"
5459 prefix="$acl_save_prefix"
5461 if test "X$x" = "X-L$additional_libdir"; then
5462 haveit=yes
5463 break
5465 done
5466 if test -z "$haveit"; then
5467 if test -d "$additional_libdir"; then
5468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5474 -R*)
5475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5476 if test "$enable_rpath" != no; then
5477 haveit=
5478 for x in $rpathdirs; do
5479 if test "X$x" = "X$dir"; then
5480 haveit=yes
5481 break
5483 done
5484 if test -z "$haveit"; then
5485 rpathdirs="$rpathdirs $dir"
5487 haveit=
5488 for x in $ltrpathdirs; do
5489 if test "X$x" = "X$dir"; then
5490 haveit=yes
5491 break
5493 done
5494 if test -z "$haveit"; then
5495 ltrpathdirs="$ltrpathdirs $dir"
5499 -l*)
5500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5502 *.la)
5503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5509 esac
5510 done
5512 else
5513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5518 done
5519 done
5520 if test "X$rpathdirs" != "X"; then
5521 if test -n "$acl_hardcode_libdir_separator"; then
5522 alldirs=
5523 for found_dir in $rpathdirs; do
5524 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5525 done
5526 acl_save_libdir="$libdir"
5527 libdir="$alldirs"
5528 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5529 libdir="$acl_save_libdir"
5530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5531 else
5532 for found_dir in $rpathdirs; do
5533 acl_save_libdir="$libdir"
5534 libdir="$found_dir"
5535 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5536 libdir="$acl_save_libdir"
5537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5538 done
5541 if test "X$ltrpathdirs" != "X"; then
5542 for found_dir in $ltrpathdirs; do
5543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5544 done
5547 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5548 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
5549 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 gt_save_CPPFLAGS="$CPPFLAGS"
5553 CPPFLAGS="$CPPFLAGS $INCINTL"
5554 gt_save_LIBS="$LIBS"
5555 LIBS="$LIBS $LIBINTL"
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 <libintl.h>
5563 $gt_revision_test_code
5564 extern int _nl_msg_cat_cntr;
5565 extern
5566 #ifdef __cplusplus
5568 #endif
5569 const char *_nl_expand_alias (const char *);
5571 main ()
5573 bindtextdomain ("", "");
5574 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5576 return 0;
5578 _ACEOF
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (ac_try="$ac_link"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_link") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest$ac_exeext &&
5596 $as_test_x conftest$ac_exeext; then
5597 eval "$gt_func_gnugettext_libintl=yes"
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 eval "$gt_func_gnugettext_libintl=no"
5605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5606 conftest$ac_exeext conftest.$ac_ext
5607 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5608 LIBS="$LIBS $LIBICONV"
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <libintl.h>
5616 $gt_revision_test_code
5617 extern int _nl_msg_cat_cntr;
5618 extern
5619 #ifdef __cplusplus
5621 #endif
5622 const char *_nl_expand_alias (const char *);
5624 main ()
5626 bindtextdomain ("", "");
5627 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
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 LIBINTL="$LIBINTL $LIBICONV"
5651 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5652 eval "$gt_func_gnugettext_libintl=yes"
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5662 conftest$ac_exeext conftest.$ac_ext
5664 CPPFLAGS="$gt_save_CPPFLAGS"
5665 LIBS="$gt_save_LIBS"
5667 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5672 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5673 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5674 && test "$PACKAGE" != gettext-runtime \
5675 && test "$PACKAGE" != gettext-tools; }; then
5676 gt_use_preinstalled_gnugettext=yes
5677 else
5678 LIBINTL=
5679 LTLIBINTL=
5680 INCINTL=
5685 if test -n "$INTL_MACOSX_LIBS"; then
5686 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5687 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5688 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5689 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5693 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5694 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5696 cat >>confdefs.h <<\_ACEOF
5697 #define ENABLE_NLS 1
5698 _ACEOF
5700 else
5701 USE_NLS=no
5705 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
5706 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
5707 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5708 echo "${ECHO_T}$USE_NLS" >&6; }
5709 if test "$USE_NLS" = "yes"; then
5710 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5711 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
5712 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5713 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5714 gt_source="external libintl"
5715 else
5716 gt_source="libc"
5718 else
5719 gt_source="included intl directory"
5721 { echo "$as_me:$LINENO: result: $gt_source" >&5
5722 echo "${ECHO_T}$gt_source" >&6; }
5725 if test "$USE_NLS" = "yes"; then
5727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5728 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5729 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
5730 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
5731 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
5732 echo "${ECHO_T}$LIBINTL" >&6; }
5734 for element in $INCINTL; do
5735 haveit=
5736 for x in $CPPFLAGS; do
5738 acl_save_prefix="$prefix"
5739 prefix="$acl_final_prefix"
5740 acl_save_exec_prefix="$exec_prefix"
5741 exec_prefix="$acl_final_exec_prefix"
5742 eval x=\"$x\"
5743 exec_prefix="$acl_save_exec_prefix"
5744 prefix="$acl_save_prefix"
5746 if test "X$x" = "X$element"; then
5747 haveit=yes
5748 break
5750 done
5751 if test -z "$haveit"; then
5752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5754 done
5759 cat >>confdefs.h <<\_ACEOF
5760 #define HAVE_GETTEXT 1
5761 _ACEOF
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_DCGETTEXT 1
5766 _ACEOF
5770 POSUB=po
5775 INTLLIBS="$LIBINTL"
5784 # Checks for programs.
5785 ac_ext=c
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795 if test "${ac_cv_prog_CC+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 if test -n "$CC"; then
5799 ac_cv_prog_CC="$CC" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5812 done
5813 done
5814 IFS=$as_save_IFS
5818 CC=$ac_cv_prog_CC
5819 if test -n "$CC"; then
5820 { echo "$as_me:$LINENO: result: $CC" >&5
5821 echo "${ECHO_T}$CC" >&6; }
5822 else
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5829 if test -z "$ac_cv_prog_CC"; then
5830 ac_ct_CC=$CC
5831 # Extract the first word of "gcc", so it can be a program name with args.
5832 set dummy gcc; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$ac_ct_CC"; then
5839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_ac_ct_CC="gcc"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5852 done
5853 done
5854 IFS=$as_save_IFS
5858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5859 if test -n "$ac_ct_CC"; then
5860 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5861 echo "${ECHO_T}$ac_ct_CC" >&6; }
5862 else
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5867 if test "x$ac_ct_CC" = x; then
5868 CC=""
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871 yes:)
5872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5873 whose name does not start with the host triplet. If you think this
5874 configuration is useful to you, please write to autoconf@gnu.org." >&5
5875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5876 whose name does not start with the host triplet. If you think this
5877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880 CC=$ac_ct_CC
5882 else
5883 CC="$ac_cv_prog_CC"
5886 if test -z "$CC"; then
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}cc; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_CC+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 if test -n "$CC"; then
5896 ac_cv_prog_CC="$CC" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_CC="${ac_tool_prefix}cc"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 CC=$ac_cv_prog_CC
5916 if test -n "$CC"; then
5917 { echo "$as_me:$LINENO: result: $CC" >&5
5918 echo "${ECHO_T}$CC" >&6; }
5919 else
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5927 if test -z "$CC"; then
5928 # Extract the first word of "cc", so it can be a program name with args.
5929 set dummy cc; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_prog_CC+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 if test -n "$CC"; then
5936 ac_cv_prog_CC="$CC" # Let the user override the test.
5937 else
5938 ac_prog_rejected=no
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5947 ac_prog_rejected=yes
5948 continue
5950 ac_cv_prog_CC="cc"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5956 IFS=$as_save_IFS
5958 if test $ac_prog_rejected = yes; then
5959 # We found a bogon in the path, so make sure we never use it.
5960 set dummy $ac_cv_prog_CC
5961 shift
5962 if test $# != 0; then
5963 # We chose a different compiler from the bogus one.
5964 # However, it has the same basename, so the bogon will be chosen
5965 # first if we set CC to just the basename; use the full file name.
5966 shift
5967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5972 CC=$ac_cv_prog_CC
5973 if test -n "$CC"; then
5974 { echo "$as_me:$LINENO: result: $CC" >&5
5975 echo "${ECHO_T}$CC" >&6; }
5976 else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5983 if test -z "$CC"; then
5984 if test -n "$ac_tool_prefix"; then
5985 for ac_prog in cl.exe
5987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_CC+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 if test -n "$CC"; then
5995 ac_cv_prog_CC="$CC" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6008 done
6009 done
6010 IFS=$as_save_IFS
6014 CC=$ac_cv_prog_CC
6015 if test -n "$CC"; then
6016 { echo "$as_me:$LINENO: result: $CC" >&5
6017 echo "${ECHO_T}$CC" >&6; }
6018 else
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 test -n "$CC" && break
6025 done
6027 if test -z "$CC"; then
6028 ac_ct_CC=$CC
6029 for ac_prog in cl.exe
6031 # Extract the first word of "$ac_prog", so it can be a program name with args.
6032 set dummy $ac_prog; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 if test -n "$ac_ct_CC"; then
6039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_ac_ct_CC="$ac_prog"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6059 if test -n "$ac_ct_CC"; then
6060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6061 echo "${ECHO_T}$ac_ct_CC" >&6; }
6062 else
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6068 test -n "$ac_ct_CC" && break
6069 done
6071 if test "x$ac_ct_CC" = x; then
6072 CC=""
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075 yes:)
6076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6077 whose name does not start with the host triplet. If you think this
6078 configuration is useful to you, please write to autoconf@gnu.org." >&5
6079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 CC=$ac_ct_CC
6091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6092 See \`config.log' for more details." >&5
6093 echo "$as_me: error: no acceptable C compiler found in \$PATH
6094 See \`config.log' for more details." >&2;}
6095 { (exit 1); exit 1; }; }
6097 # Provide some information about the compiler.
6098 echo "$as_me:$LINENO: checking for C compiler version" >&5
6099 ac_compiler=`set X $ac_compile; echo $2`
6100 { (ac_try="$ac_compiler --version >&5"
6101 case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compiler --version >&5") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }
6110 { (ac_try="$ac_compiler -v >&5"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler -v >&5") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 { (ac_try="$ac_compiler -V >&5"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -V >&5") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6144 main ()
6146 #ifndef __GNUC__
6147 choke me
6148 #endif
6151 return 0;
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 ac_compiler_gnu=yes
6172 else
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_compiler_gnu=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6183 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6185 GCC=`test $ac_compiler_gnu = yes && echo yes`
6186 ac_test_CFLAGS=${CFLAGS+set}
6187 ac_save_CFLAGS=$CFLAGS
6188 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6189 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_cc_g+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193 ac_save_c_werror_flag=$ac_c_werror_flag
6194 ac_c_werror_flag=yes
6195 ac_cv_prog_cc_g=no
6196 CFLAGS="-g"
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6205 main ()
6209 return 0;
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6229 ac_cv_prog_cc_g=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 CFLAGS=""
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6243 main ()
6247 return 0;
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_c_werror_flag=$ac_save_c_werror_flag
6273 CFLAGS="-g"
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6282 main ()
6286 return 0;
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_cv_prog_cc_g=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_c_werror_flag=$ac_save_c_werror_flag
6323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6324 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6325 if test "$ac_test_CFLAGS" = set; then
6326 CFLAGS=$ac_save_CFLAGS
6327 elif test $ac_cv_prog_cc_g = yes; then
6328 if test "$GCC" = yes; then
6329 CFLAGS="-g -O2"
6330 else
6331 CFLAGS="-g"
6333 else
6334 if test "$GCC" = yes; then
6335 CFLAGS="-O2"
6336 else
6337 CFLAGS=
6340 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6341 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6342 if test "${ac_cv_prog_cc_c89+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 ac_cv_prog_cc_c89=no
6346 ac_save_CC=$CC
6347 cat >conftest.$ac_ext <<_ACEOF
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353 #include <stdarg.h>
6354 #include <stdio.h>
6355 #include <sys/types.h>
6356 #include <sys/stat.h>
6357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6358 struct buf { int x; };
6359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6360 static char *e (p, i)
6361 char **p;
6362 int i;
6364 return p[i];
6366 static char *f (char * (*g) (char **, int), char **p, ...)
6368 char *s;
6369 va_list v;
6370 va_start (v,p);
6371 s = g (p, va_arg (v,int));
6372 va_end (v);
6373 return s;
6376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6377 function prototypes and stuff, but not '\xHH' hex character constants.
6378 These don't provoke an error unfortunately, instead are silently treated
6379 as 'x'. The following induces an error, until -std is added to get
6380 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6381 array size at least. It's necessary to write '\x00'==0 to get something
6382 that's true only with -std. */
6383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6386 inside strings and character constants. */
6387 #define FOO(x) 'x'
6388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6390 int test (int i, double x);
6391 struct s1 {int (*f) (int a);};
6392 struct s2 {int (*f) (double a);};
6393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6394 int argc;
6395 char **argv;
6397 main ()
6399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6401 return 0;
6403 _ACEOF
6404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6407 CC="$ac_save_CC $ac_arg"
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6425 ac_cv_prog_cc_c89=$ac_arg
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f core conftest.err conftest.$ac_objext
6434 test "x$ac_cv_prog_cc_c89" != "xno" && break
6435 done
6436 rm -f conftest.$ac_ext
6437 CC=$ac_save_CC
6440 # AC_CACHE_VAL
6441 case "x$ac_cv_prog_cc_c89" in
6443 { echo "$as_me:$LINENO: result: none needed" >&5
6444 echo "${ECHO_T}none needed" >&6; } ;;
6445 xno)
6446 { echo "$as_me:$LINENO: result: unsupported" >&5
6447 echo "${ECHO_T}unsupported" >&6; } ;;
6449 CC="$CC $ac_cv_prog_cc_c89"
6450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6451 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6452 esac
6455 ac_ext=c
6456 ac_cpp='$CPP $CPPFLAGS'
6457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461 depcc="$CC" am_compiler_list=
6463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6469 # We make a subdir and do the tests there. Otherwise we can end up
6470 # making bogus files that we don't know about and never remove. For
6471 # instance it was reported that on HP-UX the gcc test will end up
6472 # making a dummy file named `D' -- because `-MD' means `put the output
6473 # in D'.
6474 mkdir conftest.dir
6475 # Copy depcomp to subdir because otherwise we won't find it if we're
6476 # using a relative directory.
6477 cp "$am_depcomp" conftest.dir
6478 cd conftest.dir
6479 # We will build objects and dependencies in a subdirectory because
6480 # it helps to detect inapplicable dependency modes. For instance
6481 # both Tru64's cc and ICC support -MD to output dependencies as a
6482 # side effect of compilation, but ICC will put the dependencies in
6483 # the current directory while Tru64 will put them in the object
6484 # directory.
6485 mkdir sub
6487 am_cv_CC_dependencies_compiler_type=none
6488 if test "$am_compiler_list" = ""; then
6489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6491 for depmode in $am_compiler_list; do
6492 # Setup a source with many dependencies, because some compilers
6493 # like to wrap large dependency lists on column 80 (with \), and
6494 # we should not choose a depcomp mode which is confused by this.
6496 # We need to recreate these files for each test, as the compiler may
6497 # overwrite some of them when testing with obscure command lines.
6498 # This happens at least with the AIX C compiler.
6499 : > sub/conftest.c
6500 for i in 1 2 3 4 5 6; do
6501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6503 # Solaris 8's {/usr,}/bin/sh.
6504 touch sub/conftst$i.h
6505 done
6506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6508 case $depmode in
6509 nosideeffect)
6510 # after this tag, mechanisms are not by side-effect, so they'll
6511 # only be used when explicitly requested
6512 if test "x$enable_dependency_tracking" = xyes; then
6513 continue
6514 else
6515 break
6518 none) break ;;
6519 esac
6520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6521 # mode. It turns out that the SunPro C++ compiler does not properly
6522 # handle `-M -o', and we need to detect this.
6523 if depmode=$depmode \
6524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6527 >/dev/null 2>conftest.err &&
6528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6532 # icc doesn't choke on unknown options, it will just issue warnings
6533 # or remarks (even with -Werror). So we grep stderr for any message
6534 # that says an option was ignored or not supported.
6535 # When given -MP, icc 7.0 and 7.1 complain thusly:
6536 # icc: Command line warning: ignoring option '-M'; no argument required
6537 # The diagnosis changed in icc 8.0:
6538 # icc: Command line remark: option '-MP' not supported
6539 if (grep 'ignoring option' conftest.err ||
6540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6541 am_cv_CC_dependencies_compiler_type=$depmode
6542 break
6545 done
6547 cd ..
6548 rm -rf conftest.dir
6549 else
6550 am_cv_CC_dependencies_compiler_type=none
6554 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
6556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6559 test "x$enable_dependency_tracking" != xno \
6560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6561 am__fastdepCC_TRUE=
6562 am__fastdepCC_FALSE='#'
6563 else
6564 am__fastdepCC_TRUE='#'
6565 am__fastdepCC_FALSE=
6569 ac_ext=cpp
6570 ac_cpp='$CXXCPP $CPPFLAGS'
6571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6574 if test -z "$CXX"; then
6575 if test -n "$CCC"; then
6576 CXX=$CCC
6577 else
6578 if test -n "$ac_tool_prefix"; then
6579 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_prog_CXX+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 if test -n "$CXX"; then
6589 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6608 CXX=$ac_cv_prog_CXX
6609 if test -n "$CXX"; then
6610 { echo "$as_me:$LINENO: result: $CXX" >&5
6611 echo "${ECHO_T}$CXX" >&6; }
6612 else
6613 { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6618 test -n "$CXX" && break
6619 done
6621 if test -z "$CXX"; then
6622 ac_ct_CXX=$CXX
6623 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 if test -n "$ac_ct_CXX"; then
6633 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_CXX="$ac_prog"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6653 if test -n "$ac_ct_CXX"; then
6654 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6655 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 test -n "$ac_ct_CXX" && break
6663 done
6665 if test "x$ac_ct_CXX" = x; then
6666 CXX="g++"
6667 else
6668 case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6671 whose name does not start with the host triplet. If you think this
6672 configuration is useful to you, please write to autoconf@gnu.org." >&5
6673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6674 whose name does not start with the host triplet. If you think this
6675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 CXX=$ac_ct_CXX
6684 # Provide some information about the compiler.
6685 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6686 ac_compiler=`set X $ac_compile; echo $2`
6687 { (ac_try="$ac_compiler --version >&5"
6688 case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_compiler --version >&5") 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }
6697 { (ac_try="$ac_compiler -v >&5"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_compiler -v >&5") 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }
6707 { (ac_try="$ac_compiler -V >&5"
6708 case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_compiler -V >&5") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }
6718 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6719 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6720 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6731 main ()
6733 #ifndef __GNUC__
6734 choke me
6735 #endif
6738 return 0;
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6743 case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_cxx_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_compiler_gnu=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_compiler_gnu=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6770 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6771 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6772 GXX=`test $ac_compiler_gnu = yes && echo yes`
6773 ac_test_CXXFLAGS=${CXXFLAGS+set}
6774 ac_save_CXXFLAGS=$CXXFLAGS
6775 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6776 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_cxx_g+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6781 ac_cxx_werror_flag=yes
6782 ac_cv_prog_cxx_g=no
6783 CXXFLAGS="-g"
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6792 main ()
6796 return 0;
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_cxx_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_cv_prog_cxx_g=yes
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 CXXFLAGS=""
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6830 main ()
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_cxx_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6860 CXXFLAGS="-g"
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6869 main ()
6873 return 0;
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_cxx_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_cv_prog_cxx_g=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6910 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6911 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6912 if test "$ac_test_CXXFLAGS" = set; then
6913 CXXFLAGS=$ac_save_CXXFLAGS
6914 elif test $ac_cv_prog_cxx_g = yes; then
6915 if test "$GXX" = yes; then
6916 CXXFLAGS="-g -O2"
6917 else
6918 CXXFLAGS="-g"
6920 else
6921 if test "$GXX" = yes; then
6922 CXXFLAGS="-O2"
6923 else
6924 CXXFLAGS=
6927 ac_ext=c
6928 ac_cpp='$CPP $CPPFLAGS'
6929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933 depcc="$CXX" am_compiler_list=
6935 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6936 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6937 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6941 # We make a subdir and do the tests there. Otherwise we can end up
6942 # making bogus files that we don't know about and never remove. For
6943 # instance it was reported that on HP-UX the gcc test will end up
6944 # making a dummy file named `D' -- because `-MD' means `put the output
6945 # in D'.
6946 mkdir conftest.dir
6947 # Copy depcomp to subdir because otherwise we won't find it if we're
6948 # using a relative directory.
6949 cp "$am_depcomp" conftest.dir
6950 cd conftest.dir
6951 # We will build objects and dependencies in a subdirectory because
6952 # it helps to detect inapplicable dependency modes. For instance
6953 # both Tru64's cc and ICC support -MD to output dependencies as a
6954 # side effect of compilation, but ICC will put the dependencies in
6955 # the current directory while Tru64 will put them in the object
6956 # directory.
6957 mkdir sub
6959 am_cv_CXX_dependencies_compiler_type=none
6960 if test "$am_compiler_list" = ""; then
6961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6963 for depmode in $am_compiler_list; do
6964 # Setup a source with many dependencies, because some compilers
6965 # like to wrap large dependency lists on column 80 (with \), and
6966 # we should not choose a depcomp mode which is confused by this.
6968 # We need to recreate these files for each test, as the compiler may
6969 # overwrite some of them when testing with obscure command lines.
6970 # This happens at least with the AIX C compiler.
6971 : > sub/conftest.c
6972 for i in 1 2 3 4 5 6; do
6973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6975 # Solaris 8's {/usr,}/bin/sh.
6976 touch sub/conftst$i.h
6977 done
6978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6980 case $depmode in
6981 nosideeffect)
6982 # after this tag, mechanisms are not by side-effect, so they'll
6983 # only be used when explicitly requested
6984 if test "x$enable_dependency_tracking" = xyes; then
6985 continue
6986 else
6987 break
6990 none) break ;;
6991 esac
6992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6993 # mode. It turns out that the SunPro C++ compiler does not properly
6994 # handle `-M -o', and we need to detect this.
6995 if depmode=$depmode \
6996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6999 >/dev/null 2>conftest.err &&
7000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7002 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7004 # icc doesn't choke on unknown options, it will just issue warnings
7005 # or remarks (even with -Werror). So we grep stderr for any message
7006 # that says an option was ignored or not supported.
7007 # When given -MP, icc 7.0 and 7.1 complain thusly:
7008 # icc: Command line warning: ignoring option '-M'; no argument required
7009 # The diagnosis changed in icc 8.0:
7010 # icc: Command line remark: option '-MP' not supported
7011 if (grep 'ignoring option' conftest.err ||
7012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7013 am_cv_CXX_dependencies_compiler_type=$depmode
7014 break
7017 done
7019 cd ..
7020 rm -rf conftest.dir
7021 else
7022 am_cv_CXX_dependencies_compiler_type=none
7026 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7027 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7028 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7031 test "x$enable_dependency_tracking" != xno \
7032 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7033 am__fastdepCXX_TRUE=
7034 am__fastdepCXX_FALSE='#'
7035 else
7036 am__fastdepCXX_TRUE='#'
7037 am__fastdepCXX_FALSE=
7041 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7042 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7043 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7044 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 cat >conftest.make <<\_ACEOF
7048 SHELL = /bin/sh
7049 all:
7050 @echo '@@@%%%=$(MAKE)=@@@%%%'
7051 _ACEOF
7052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7054 *@@@%%%=?*=@@@%%%*)
7055 eval ac_cv_prog_make_${ac_make}_set=yes;;
7057 eval ac_cv_prog_make_${ac_make}_set=no;;
7058 esac
7059 rm -f conftest.make
7061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7062 { echo "$as_me:$LINENO: result: yes" >&5
7063 echo "${ECHO_T}yes" >&6; }
7064 SET_MAKE=
7065 else
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7068 SET_MAKE="MAKE=${MAKE-make}"
7071 # Check whether --enable-shared was given.
7072 if test "${enable_shared+set}" = set; then
7073 enableval=$enable_shared; p=${PACKAGE-default}
7074 case $enableval in
7075 yes) enable_shared=yes ;;
7076 no) enable_shared=no ;;
7078 enable_shared=no
7079 # Look at the argument we got. We use all the common list separators.
7080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7081 for pkg in $enableval; do
7082 IFS="$lt_save_ifs"
7083 if test "X$pkg" = "X$p"; then
7084 enable_shared=yes
7086 done
7087 IFS="$lt_save_ifs"
7089 esac
7090 else
7091 enable_shared=yes
7095 # Check whether --enable-static was given.
7096 if test "${enable_static+set}" = set; then
7097 enableval=$enable_static; p=${PACKAGE-default}
7098 case $enableval in
7099 yes) enable_static=yes ;;
7100 no) enable_static=no ;;
7102 enable_static=no
7103 # Look at the argument we got. We use all the common list separators.
7104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7105 for pkg in $enableval; do
7106 IFS="$lt_save_ifs"
7107 if test "X$pkg" = "X$p"; then
7108 enable_static=yes
7110 done
7111 IFS="$lt_save_ifs"
7113 esac
7114 else
7115 enable_static=yes
7119 # Check whether --enable-fast-install was given.
7120 if test "${enable_fast_install+set}" = set; then
7121 enableval=$enable_fast_install; p=${PACKAGE-default}
7122 case $enableval in
7123 yes) enable_fast_install=yes ;;
7124 no) enable_fast_install=no ;;
7126 enable_fast_install=no
7127 # Look at the argument we got. We use all the common list separators.
7128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7129 for pkg in $enableval; do
7130 IFS="$lt_save_ifs"
7131 if test "X$pkg" = "X$p"; then
7132 enable_fast_install=yes
7134 done
7135 IFS="$lt_save_ifs"
7137 esac
7138 else
7139 enable_fast_install=yes
7143 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7144 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7145 if test "${lt_cv_path_SED+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 # Loop through the user's path and test for sed and gsed.
7149 # Then use that list of sed's as ones to test for truncation.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for lt_ac_prog in sed gsed; do
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7158 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7160 done
7161 done
7162 done
7163 IFS=$as_save_IFS
7164 lt_ac_max=0
7165 lt_ac_count=0
7166 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7167 # along with /bin/sed that truncates output.
7168 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7169 test ! -f $lt_ac_sed && continue
7170 cat /dev/null > conftest.in
7171 lt_ac_count=0
7172 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7173 # Check for GNU sed and select it if it is found.
7174 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7175 lt_cv_path_SED=$lt_ac_sed
7176 break
7178 while true; do
7179 cat conftest.in conftest.in >conftest.tmp
7180 mv conftest.tmp conftest.in
7181 cp conftest.in conftest.nl
7182 echo >>conftest.nl
7183 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7184 cmp -s conftest.out conftest.nl || break
7185 # 10000 chars as input seems more than enough
7186 test $lt_ac_count -gt 10 && break
7187 lt_ac_count=`expr $lt_ac_count + 1`
7188 if test $lt_ac_count -gt $lt_ac_max; then
7189 lt_ac_max=$lt_ac_count
7190 lt_cv_path_SED=$lt_ac_sed
7192 done
7193 done
7197 SED=$lt_cv_path_SED
7199 { echo "$as_me:$LINENO: result: $SED" >&5
7200 echo "${ECHO_T}$SED" >&6; }
7202 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7203 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_GREP+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207 # Extract the first word of "grep ggrep" to use in msg output
7208 if test -z "$GREP"; then
7209 set dummy grep ggrep; ac_prog_name=$2
7210 if test "${ac_cv_path_GREP+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 ac_path_GREP_found=false
7214 # Loop through the user's path and test for each of PROGNAME-LIST
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_prog in grep ggrep; do
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7223 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7224 # Check for GNU ac_path_GREP and select it if it is found.
7225 # Check for GNU $ac_path_GREP
7226 case `"$ac_path_GREP" --version 2>&1` in
7227 *GNU*)
7228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7230 ac_count=0
7231 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7232 while :
7234 cat "conftest.in" "conftest.in" >"conftest.tmp"
7235 mv "conftest.tmp" "conftest.in"
7236 cp "conftest.in" "conftest.nl"
7237 echo 'GREP' >> "conftest.nl"
7238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7240 ac_count=`expr $ac_count + 1`
7241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7242 # Best one so far, save it but keep looking for a better one
7243 ac_cv_path_GREP="$ac_path_GREP"
7244 ac_path_GREP_max=$ac_count
7246 # 10*(2^10) chars as input seems more than enough
7247 test $ac_count -gt 10 && break
7248 done
7249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7250 esac
7253 $ac_path_GREP_found && break 3
7254 done
7255 done
7257 done
7258 IFS=$as_save_IFS
7263 GREP="$ac_cv_path_GREP"
7264 if test -z "$GREP"; then
7265 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7266 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7267 { (exit 1); exit 1; }; }
7270 else
7271 ac_cv_path_GREP=$GREP
7276 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7277 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7278 GREP="$ac_cv_path_GREP"
7281 { echo "$as_me:$LINENO: checking for egrep" >&5
7282 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7283 if test "${ac_cv_path_EGREP+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7287 then ac_cv_path_EGREP="$GREP -E"
7288 else
7289 # Extract the first word of "egrep" to use in msg output
7290 if test -z "$EGREP"; then
7291 set dummy egrep; ac_prog_name=$2
7292 if test "${ac_cv_path_EGREP+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 ac_path_EGREP_found=false
7296 # Loop through the user's path and test for each of PROGNAME-LIST
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_prog in egrep; do
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7306 # Check for GNU ac_path_EGREP and select it if it is found.
7307 # Check for GNU $ac_path_EGREP
7308 case `"$ac_path_EGREP" --version 2>&1` in
7309 *GNU*)
7310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7312 ac_count=0
7313 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7314 while :
7316 cat "conftest.in" "conftest.in" >"conftest.tmp"
7317 mv "conftest.tmp" "conftest.in"
7318 cp "conftest.in" "conftest.nl"
7319 echo 'EGREP' >> "conftest.nl"
7320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7322 ac_count=`expr $ac_count + 1`
7323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7324 # Best one so far, save it but keep looking for a better one
7325 ac_cv_path_EGREP="$ac_path_EGREP"
7326 ac_path_EGREP_max=$ac_count
7328 # 10*(2^10) chars as input seems more than enough
7329 test $ac_count -gt 10 && break
7330 done
7331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7332 esac
7335 $ac_path_EGREP_found && break 3
7336 done
7337 done
7339 done
7340 IFS=$as_save_IFS
7345 EGREP="$ac_cv_path_EGREP"
7346 if test -z "$EGREP"; then
7347 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7348 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7349 { (exit 1); exit 1; }; }
7352 else
7353 ac_cv_path_EGREP=$EGREP
7359 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7360 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7361 EGREP="$ac_cv_path_EGREP"
7365 # Check whether --with-gnu-ld was given.
7366 if test "${with_gnu_ld+set}" = set; then
7367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7368 else
7369 with_gnu_ld=no
7372 ac_prog=ld
7373 if test "$GCC" = yes; then
7374 # Check if gcc -print-prog-name=ld gives a path.
7375 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7376 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7377 case $host in
7378 *-*-mingw*)
7379 # gcc leaves a trailing carriage return which upsets mingw
7380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7383 esac
7384 case $ac_prog in
7385 # Accept absolute paths.
7386 [\\/]* | ?:[\\/]*)
7387 re_direlt='/[^/][^/]*/\.\./'
7388 # Canonicalize the pathname of ld
7389 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7391 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7392 done
7393 test -z "$LD" && LD="$ac_prog"
7396 # If it fails, then pretend we aren't using GCC.
7397 ac_prog=ld
7400 # If it is relative, then search for the first ld in PATH.
7401 with_gnu_ld=unknown
7403 esac
7404 elif test "$with_gnu_ld" = yes; then
7405 { echo "$as_me:$LINENO: checking for GNU ld" >&5
7406 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7407 else
7408 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7409 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7411 if test "${lt_cv_path_LD+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 if test -z "$LD"; then
7415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416 for ac_dir in $PATH; do
7417 IFS="$lt_save_ifs"
7418 test -z "$ac_dir" && ac_dir=.
7419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7420 lt_cv_path_LD="$ac_dir/$ac_prog"
7421 # Check to see if the program is GNU ld. I'd rather use --version,
7422 # but apparently some variants of GNU ld only accept -v.
7423 # Break only if it was the GNU/non-GNU ld that we prefer.
7424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7425 *GNU* | *'with BFD'*)
7426 test "$with_gnu_ld" != no && break
7429 test "$with_gnu_ld" != yes && break
7431 esac
7433 done
7434 IFS="$lt_save_ifs"
7435 else
7436 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7440 LD="$lt_cv_path_LD"
7441 if test -n "$LD"; then
7442 { echo "$as_me:$LINENO: result: $LD" >&5
7443 echo "${ECHO_T}$LD" >&6; }
7444 else
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7448 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7449 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7450 { (exit 1); exit 1; }; }
7451 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7452 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7453 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7457 case `$LD -v 2>&1 </dev/null` in
7458 *GNU* | *'with BFD'*)
7459 lt_cv_prog_gnu_ld=yes
7462 lt_cv_prog_gnu_ld=no
7464 esac
7466 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7467 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7468 with_gnu_ld=$lt_cv_prog_gnu_ld
7471 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7472 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7473 if test "${lt_cv_ld_reload_flag+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 lt_cv_ld_reload_flag='-r'
7478 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7479 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7480 reload_flag=$lt_cv_ld_reload_flag
7481 case $reload_flag in
7482 "" | " "*) ;;
7483 *) reload_flag=" $reload_flag" ;;
7484 esac
7485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7486 case $host_os in
7487 darwin*)
7488 if test "$GCC" = yes; then
7489 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7490 else
7491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7494 esac
7496 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7497 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7498 if test "${lt_cv_path_NM+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 if test -n "$NM"; then
7502 # Let the user override the test.
7503 lt_cv_path_NM="$NM"
7504 else
7505 lt_nm_to_check="${ac_tool_prefix}nm"
7506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7507 lt_nm_to_check="$lt_nm_to_check nm"
7509 for lt_tmp_nm in $lt_nm_to_check; do
7510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7512 IFS="$lt_save_ifs"
7513 test -z "$ac_dir" && ac_dir=.
7514 tmp_nm="$ac_dir/$lt_tmp_nm"
7515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7516 # Check to see if the nm accepts a BSD-compat flag.
7517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7518 # nm: unknown option "B" ignored
7519 # Tru64's nm complains that /dev/null is an invalid object file
7520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7521 */dev/null* | *'Invalid file or object type'*)
7522 lt_cv_path_NM="$tmp_nm -B"
7523 break
7526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7527 */dev/null*)
7528 lt_cv_path_NM="$tmp_nm -p"
7529 break
7532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7533 continue # so that we can try to find one that supports BSD flags
7535 esac
7537 esac
7539 done
7540 IFS="$lt_save_ifs"
7541 done
7542 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7545 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7546 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7547 NM="$lt_cv_path_NM"
7549 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7550 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7551 LN_S=$as_ln_s
7552 if test "$LN_S" = "ln -s"; then
7553 { echo "$as_me:$LINENO: result: yes" >&5
7554 echo "${ECHO_T}yes" >&6; }
7555 else
7556 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7557 echo "${ECHO_T}no, using $LN_S" >&6; }
7560 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7561 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
7562 if test "${lt_cv_deplibs_check_method+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 lt_cv_file_magic_cmd='$MAGIC_CMD'
7566 lt_cv_file_magic_test_file=
7567 lt_cv_deplibs_check_method='unknown'
7568 # Need to set the preceding variable on all platforms that support
7569 # interlibrary dependencies.
7570 # 'none' -- dependencies not supported.
7571 # `unknown' -- same as none, but documents that we really don't know.
7572 # 'pass_all' -- all dependencies passed with no checks.
7573 # 'test_compile' -- check by making test program.
7574 # 'file_magic [[regex]]' -- check by looking for files in library path
7575 # which responds to the $file_magic_cmd with a given extended regex.
7576 # If you have `file' or equivalent on your system and you're not sure
7577 # whether `pass_all' will *always* work, you probably want this one.
7579 case $host_os in
7580 aix[4-9]*)
7581 lt_cv_deplibs_check_method=pass_all
7584 beos*)
7585 lt_cv_deplibs_check_method=pass_all
7588 bsdi[45]*)
7589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7590 lt_cv_file_magic_cmd='/usr/bin/file -L'
7591 lt_cv_file_magic_test_file=/shlib/libc.so
7594 cygwin*)
7595 # func_win32_libid is a shell function defined in ltmain.sh
7596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7597 lt_cv_file_magic_cmd='func_win32_libid'
7600 mingw* | pw32*)
7601 # Base MSYS/MinGW do not provide the 'file' command needed by
7602 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7603 # unless we find 'file', for example because we are cross-compiling.
7604 if ( file / ) >/dev/null 2>&1; then
7605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7606 lt_cv_file_magic_cmd='func_win32_libid'
7607 else
7608 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7609 lt_cv_file_magic_cmd='$OBJDUMP -f'
7613 darwin* | rhapsody*)
7614 lt_cv_deplibs_check_method=pass_all
7617 freebsd* | dragonfly*)
7618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7619 case $host_cpu in
7620 i*86 )
7621 # Not sure whether the presence of OpenBSD here was a mistake.
7622 # Let's accept both of them until this is cleared up.
7623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7624 lt_cv_file_magic_cmd=/usr/bin/file
7625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7627 esac
7628 else
7629 lt_cv_deplibs_check_method=pass_all
7633 gnu*)
7634 lt_cv_deplibs_check_method=pass_all
7637 hpux10.20* | hpux11*)
7638 lt_cv_file_magic_cmd=/usr/bin/file
7639 case $host_cpu in
7640 ia64*)
7641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7644 hppa*64*)
7645 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]'
7646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7650 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7652 esac
7655 interix[3-9]*)
7656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7660 irix5* | irix6* | nonstopux*)
7661 case $LD in
7662 *-32|*"-32 ") libmagic=32-bit;;
7663 *-n32|*"-n32 ") libmagic=N32;;
7664 *-64|*"-64 ") libmagic=64-bit;;
7665 *) libmagic=never-match;;
7666 esac
7667 lt_cv_deplibs_check_method=pass_all
7670 # This must be Linux ELF.
7671 linux* | k*bsd*-gnu)
7672 lt_cv_deplibs_check_method=pass_all
7675 netbsd* | netbsdelf*-gnu)
7676 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7678 else
7679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7683 newos6*)
7684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7685 lt_cv_file_magic_cmd=/usr/bin/file
7686 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7689 nto-qnx*)
7690 lt_cv_deplibs_check_method=unknown
7693 openbsd*)
7694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7696 else
7697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7701 osf3* | osf4* | osf5*)
7702 lt_cv_deplibs_check_method=pass_all
7705 rdos*)
7706 lt_cv_deplibs_check_method=pass_all
7709 solaris*)
7710 lt_cv_deplibs_check_method=pass_all
7713 sysv4 | sysv4.3*)
7714 case $host_vendor in
7715 motorola)
7716 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]'
7717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7719 ncr)
7720 lt_cv_deplibs_check_method=pass_all
7722 sequent)
7723 lt_cv_file_magic_cmd='/bin/file'
7724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7726 sni)
7727 lt_cv_file_magic_cmd='/bin/file'
7728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7729 lt_cv_file_magic_test_file=/lib/libc.so
7731 siemens)
7732 lt_cv_deplibs_check_method=pass_all
7735 lt_cv_deplibs_check_method=pass_all
7737 esac
7740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7741 lt_cv_deplibs_check_method=pass_all
7743 esac
7746 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7747 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7748 file_magic_cmd=$lt_cv_file_magic_cmd
7749 deplibs_check_method=$lt_cv_deplibs_check_method
7750 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7755 # If no C compiler was specified, use CC.
7756 LTCC=${LTCC-"$CC"}
7758 # If no C compiler flags were specified, use CFLAGS.
7759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7761 # Allow CC to be a program name with arguments.
7762 compiler=$CC
7764 # Check whether --enable-libtool-lock was given.
7765 if test "${enable_libtool_lock+set}" = set; then
7766 enableval=$enable_libtool_lock;
7769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7771 # Some flags need to be propagated to the compiler or linker for good
7772 # libtool support.
7773 case $host in
7774 ia64-*-hpux*)
7775 # Find out which ABI we are using.
7776 echo 'int i;' > conftest.$ac_ext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; then
7782 case `/usr/bin/file conftest.$ac_objext` in
7783 *ELF-32*)
7784 HPUX_IA64_MODE="32"
7786 *ELF-64*)
7787 HPUX_IA64_MODE="64"
7789 esac
7791 rm -rf conftest*
7793 *-*-irix6*)
7794 # Find out which ABI we are using.
7795 echo '#line 7795 "configure"' > conftest.$ac_ext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797 (eval $ac_compile) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; then
7801 if test "$lt_cv_prog_gnu_ld" = yes; then
7802 case `/usr/bin/file conftest.$ac_objext` in
7803 *32-bit*)
7804 LD="${LD-ld} -melf32bsmip"
7806 *N32*)
7807 LD="${LD-ld} -melf32bmipn32"
7809 *64-bit*)
7810 LD="${LD-ld} -melf64bmip"
7812 esac
7813 else
7814 case `/usr/bin/file conftest.$ac_objext` in
7815 *32-bit*)
7816 LD="${LD-ld} -32"
7818 *N32*)
7819 LD="${LD-ld} -n32"
7821 *64-bit*)
7822 LD="${LD-ld} -64"
7824 esac
7827 rm -rf conftest*
7830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7831 s390*-*linux*|sparc*-*linux*)
7832 # Find out which ABI we are using.
7833 echo 'int i;' > conftest.$ac_ext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; then
7839 case `/usr/bin/file conftest.o` in
7840 *32-bit*)
7841 case $host in
7842 x86_64-*kfreebsd*-gnu)
7843 LD="${LD-ld} -m elf_i386_fbsd"
7845 x86_64-*linux*)
7846 LD="${LD-ld} -m elf_i386"
7848 ppc64-*linux*|powerpc64-*linux*)
7849 LD="${LD-ld} -m elf32ppclinux"
7851 s390x-*linux*)
7852 LD="${LD-ld} -m elf_s390"
7854 sparc64-*linux*)
7855 LD="${LD-ld} -m elf32_sparc"
7857 esac
7859 *64-bit*)
7860 case $host in
7861 x86_64-*kfreebsd*-gnu)
7862 LD="${LD-ld} -m elf_x86_64_fbsd"
7864 x86_64-*linux*)
7865 LD="${LD-ld} -m elf_x86_64"
7867 ppc*-*linux*|powerpc*-*linux*)
7868 LD="${LD-ld} -m elf64ppc"
7870 s390*-*linux*)
7871 LD="${LD-ld} -m elf64_s390"
7873 sparc*-*linux*)
7874 LD="${LD-ld} -m elf64_sparc"
7876 esac
7878 esac
7880 rm -rf conftest*
7883 *-*-sco3.2v5*)
7884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7885 SAVE_CFLAGS="$CFLAGS"
7886 CFLAGS="$CFLAGS -belf"
7887 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7888 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7889 if test "${lt_cv_cc_needs_belf+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892 ac_ext=c
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7906 main ()
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext conftest$ac_exeext
7914 if { (ac_try="$ac_link"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_link") 2>conftest.er1
7921 ac_status=$?
7922 grep -v '^ *+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest$ac_exeext &&
7930 $as_test_x conftest$ac_exeext; then
7931 lt_cv_cc_needs_belf=yes
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 lt_cv_cc_needs_belf=no
7939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 conftest$ac_exeext conftest.$ac_ext
7941 ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7949 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7952 CFLAGS="$SAVE_CFLAGS"
7955 sparc*-*solaris*)
7956 # Find out which ABI we are using.
7957 echo 'int i;' > conftest.$ac_ext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; then
7963 case `/usr/bin/file conftest.o` in
7964 *64-bit*)
7965 case $lt_cv_prog_gnu_ld in
7966 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7968 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7969 LD="${LD-ld} -64"
7972 esac
7974 esac
7976 rm -rf conftest*
7980 esac
7982 need_locks="$enable_libtool_lock"
7985 ac_ext=c
7986 ac_cpp='$CPP $CPPFLAGS'
7987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7990 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7992 # On Suns, sometimes $CPP names a directory.
7993 if test -n "$CPP" && test -d "$CPP"; then
7994 CPP=
7996 if test -z "$CPP"; then
7997 if test "${ac_cv_prog_CPP+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 # Double quotes because CPP needs to be expanded
8001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8003 ac_preproc_ok=false
8004 for ac_c_preproc_warn_flag in '' yes
8006 # Use a header file that comes with gcc, so configuring glibc
8007 # with a fresh cross-compiler works.
8008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8009 # <limits.h> exists even on freestanding compilers.
8010 # On the NeXT, cc -E runs the code through the compiler's parser,
8011 # not just through cpp. "Syntax error" is here to catch this case.
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #ifdef __STDC__
8019 # include <limits.h>
8020 #else
8021 # include <assert.h>
8022 #endif
8023 Syntax error
8024 _ACEOF
8025 if { (ac_try="$ac_cpp conftest.$ac_ext"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } >/dev/null && {
8038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 }; then
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 # Broken: fails on valid input.
8047 continue
8050 rm -f conftest.err conftest.$ac_ext
8052 # OK, works on sane cases. Now check whether nonexistent headers
8053 # can be detected and how.
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <ac_nonexistent.h>
8061 _ACEOF
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } >/dev/null && {
8075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 }; then
8078 # Broken: success on invalid input.
8079 continue
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 # Passes both tests.
8085 ac_preproc_ok=:
8086 break
8089 rm -f conftest.err conftest.$ac_ext
8091 done
8092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8093 rm -f conftest.err conftest.$ac_ext
8094 if $ac_preproc_ok; then
8095 break
8098 done
8099 ac_cv_prog_CPP=$CPP
8102 CPP=$ac_cv_prog_CPP
8103 else
8104 ac_cv_prog_CPP=$CPP
8106 { echo "$as_me:$LINENO: result: $CPP" >&5
8107 echo "${ECHO_T}$CPP" >&6; }
8108 ac_preproc_ok=false
8109 for ac_c_preproc_warn_flag in '' yes
8111 # Use a header file that comes with gcc, so configuring glibc
8112 # with a fresh cross-compiler works.
8113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114 # <limits.h> exists even on freestanding compilers.
8115 # On the NeXT, cc -E runs the code through the compiler's parser,
8116 # not just through cpp. "Syntax error" is here to catch this case.
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #ifdef __STDC__
8124 # include <limits.h>
8125 #else
8126 # include <assert.h>
8127 #endif
8128 Syntax error
8129 _ACEOF
8130 if { (ac_try="$ac_cpp conftest.$ac_ext"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } >/dev/null && {
8143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 }; then
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 # Broken: fails on valid input.
8152 continue
8155 rm -f conftest.err conftest.$ac_ext
8157 # OK, works on sane cases. Now check whether nonexistent headers
8158 # can be detected and how.
8159 cat >conftest.$ac_ext <<_ACEOF
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <ac_nonexistent.h>
8166 _ACEOF
8167 if { (ac_try="$ac_cpp conftest.$ac_ext"
8168 case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null && {
8180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 }; then
8183 # Broken: success on invalid input.
8184 continue
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 # Passes both tests.
8190 ac_preproc_ok=:
8191 break
8194 rm -f conftest.err conftest.$ac_ext
8196 done
8197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8198 rm -f conftest.err conftest.$ac_ext
8199 if $ac_preproc_ok; then
8201 else
8202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8203 See \`config.log' for more details." >&5
8204 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8205 See \`config.log' for more details." >&2;}
8206 { (exit 1); exit 1; }; }
8209 ac_ext=c
8210 ac_cpp='$CPP $CPPFLAGS'
8211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8218 if test "${ac_cv_header_stdc+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #include <stdlib.h>
8228 #include <stdarg.h>
8229 #include <string.h>
8230 #include <float.h>
8233 main ()
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest.$ac_objext; then
8257 ac_cv_header_stdc=yes
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 ac_cv_header_stdc=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 if test $ac_cv_header_stdc = yes; then
8268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <string.h>
8277 _ACEOF
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 $EGREP "memchr" >/dev/null 2>&1; then
8281 else
8282 ac_cv_header_stdc=no
8284 rm -f conftest*
8288 if test $ac_cv_header_stdc = yes; then
8289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 #include <stdlib.h>
8298 _ACEOF
8299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8300 $EGREP "free" >/dev/null 2>&1; then
8302 else
8303 ac_cv_header_stdc=no
8305 rm -f conftest*
8309 if test $ac_cv_header_stdc = yes; then
8310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8311 if test "$cross_compiling" = yes; then
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <ctype.h>
8321 #include <stdlib.h>
8322 #if ((' ' & 0x0FF) == 0x020)
8323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8325 #else
8326 # define ISLOWER(c) \
8327 (('a' <= (c) && (c) <= 'i') \
8328 || ('j' <= (c) && (c) <= 'r') \
8329 || ('s' <= (c) && (c) <= 'z'))
8330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8331 #endif
8333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8335 main ()
8337 int i;
8338 for (i = 0; i < 256; i++)
8339 if (XOR (islower (i), ISLOWER (i))
8340 || toupper (i) != TOUPPER (i))
8341 return 2;
8342 return 0;
8344 _ACEOF
8345 rm -f conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8347 case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_link") 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8366 else
8367 echo "$as_me: program exited with status $ac_status" >&5
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ( exit $ac_status )
8372 ac_cv_header_stdc=no
8374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8380 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8381 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8382 if test $ac_cv_header_stdc = yes; then
8384 cat >>confdefs.h <<\_ACEOF
8385 #define STDC_HEADERS 1
8386 _ACEOF
8390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8401 inttypes.h stdint.h unistd.h
8403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 $ac_includes_default
8417 #include <$ac_header>
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 eval "$as_ac_Header=yes"
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 eval "$as_ac_Header=no"
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 ac_res=`eval echo '${'$as_ac_Header'}'`
8447 { echo "$as_me:$LINENO: result: $ac_res" >&5
8448 echo "${ECHO_T}$ac_res" >&6; }
8449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8450 cat >>confdefs.h <<_ACEOF
8451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 _ACEOF
8456 done
8460 for ac_header in dlfcn.h
8462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 ac_res=`eval echo '${'$as_ac_Header'}'`
8470 { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8472 else
8473 # Is the header compilable?
8474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8483 #include <$ac_header>
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_header_compiler=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_header_compiler=no
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 echo "${ECHO_T}$ac_header_compiler" >&6; }
8514 # Is the header present?
8515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <$ac_header>
8524 _ACEOF
8525 if { (ac_try="$ac_cpp conftest.$ac_ext"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null && {
8538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 }; then
8541 ac_header_preproc=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_header_preproc=no
8549 rm -f conftest.err conftest.$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8551 echo "${ECHO_T}$ac_header_preproc" >&6; }
8553 # So? What about this header?
8554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8555 yes:no: )
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8560 ac_header_preproc=yes
8562 no:yes:* )
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8575 ( cat <<\_ASBOX
8576 ## ------------------------------------------------ ##
8577 ## Report this to barry-devel@lists.sourceforge.net ##
8578 ## ------------------------------------------------ ##
8579 _ASBOX
8580 ) | sed "s/^/$as_me: WARNING: /" >&2
8582 esac
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588 eval "$as_ac_Header=\$ac_header_preproc"
8590 ac_res=`eval echo '${'$as_ac_Header'}'`
8591 { echo "$as_me:$LINENO: result: $ac_res" >&5
8592 echo "${ECHO_T}$ac_res" >&6; }
8595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8598 _ACEOF
8602 done
8606 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8607 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8608 (test "X$CXX" != "Xg++"))) ; then
8609 ac_ext=cpp
8610 ac_cpp='$CXXCPP $CPPFLAGS'
8611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8614 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8615 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8616 if test -z "$CXXCPP"; then
8617 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 # Double quotes because CXXCPP needs to be expanded
8621 for CXXCPP in "$CXX -E" "/lib/cpp"
8623 ac_preproc_ok=false
8624 for ac_cxx_preproc_warn_flag in '' yes
8626 # Use a header file that comes with gcc, so configuring glibc
8627 # with a fresh cross-compiler works.
8628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 # <limits.h> exists even on freestanding compilers.
8630 # On the NeXT, cc -E runs the code through the compiler's parser,
8631 # not just through cpp. "Syntax error" is here to catch this case.
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 #ifdef __STDC__
8639 # include <limits.h>
8640 #else
8641 # include <assert.h>
8642 #endif
8643 Syntax error
8644 _ACEOF
8645 if { (ac_try="$ac_cpp conftest.$ac_ext"
8646 case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } >/dev/null && {
8658 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8659 test ! -s conftest.err
8660 }; then
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 # Broken: fails on valid input.
8667 continue
8670 rm -f conftest.err conftest.$ac_ext
8672 # OK, works on sane cases. Now check whether nonexistent headers
8673 # can be detected and how.
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 #include <ac_nonexistent.h>
8681 _ACEOF
8682 if { (ac_try="$ac_cpp conftest.$ac_ext"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } >/dev/null && {
8695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8696 test ! -s conftest.err
8697 }; then
8698 # Broken: success on invalid input.
8699 continue
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 # Passes both tests.
8705 ac_preproc_ok=:
8706 break
8709 rm -f conftest.err conftest.$ac_ext
8711 done
8712 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8713 rm -f conftest.err conftest.$ac_ext
8714 if $ac_preproc_ok; then
8715 break
8718 done
8719 ac_cv_prog_CXXCPP=$CXXCPP
8722 CXXCPP=$ac_cv_prog_CXXCPP
8723 else
8724 ac_cv_prog_CXXCPP=$CXXCPP
8726 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8727 echo "${ECHO_T}$CXXCPP" >&6; }
8728 ac_preproc_ok=false
8729 for ac_cxx_preproc_warn_flag in '' yes
8731 # Use a header file that comes with gcc, so configuring glibc
8732 # with a fresh cross-compiler works.
8733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8734 # <limits.h> exists even on freestanding compilers.
8735 # On the NeXT, cc -E runs the code through the compiler's parser,
8736 # not just through cpp. "Syntax error" is here to catch this case.
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #ifdef __STDC__
8744 # include <limits.h>
8745 #else
8746 # include <assert.h>
8747 #endif
8748 Syntax error
8749 _ACEOF
8750 if { (ac_try="$ac_cpp conftest.$ac_ext"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } >/dev/null && {
8763 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8764 test ! -s conftest.err
8765 }; then
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 # Broken: fails on valid input.
8772 continue
8775 rm -f conftest.err conftest.$ac_ext
8777 # OK, works on sane cases. Now check whether nonexistent headers
8778 # can be detected and how.
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h. */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 #include <ac_nonexistent.h>
8786 _ACEOF
8787 if { (ac_try="$ac_cpp conftest.$ac_ext"
8788 case "(($ac_try" in
8789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790 *) ac_try_echo=$ac_try;;
8791 esac
8792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } >/dev/null && {
8800 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8801 test ! -s conftest.err
8802 }; then
8803 # Broken: success on invalid input.
8804 continue
8805 else
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 # Passes both tests.
8810 ac_preproc_ok=:
8811 break
8814 rm -f conftest.err conftest.$ac_ext
8816 done
8817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8818 rm -f conftest.err conftest.$ac_ext
8819 if $ac_preproc_ok; then
8821 else
8822 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8823 See \`config.log' for more details." >&5
8824 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8825 See \`config.log' for more details." >&2;}
8826 { (exit 1); exit 1; }; }
8829 ac_ext=cpp
8830 ac_cpp='$CXXCPP $CPPFLAGS'
8831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8838 ac_ext=f
8839 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8840 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8841 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8842 if test -n "$ac_tool_prefix"; then
8843 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
8845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8849 if test "${ac_cv_prog_F77+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 if test -n "$F77"; then
8853 ac_cv_prog_F77="$F77" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8866 done
8867 done
8868 IFS=$as_save_IFS
8872 F77=$ac_cv_prog_F77
8873 if test -n "$F77"; then
8874 { echo "$as_me:$LINENO: result: $F77" >&5
8875 echo "${ECHO_T}$F77" >&6; }
8876 else
8877 { echo "$as_me:$LINENO: result: no" >&5
8878 echo "${ECHO_T}no" >&6; }
8882 test -n "$F77" && break
8883 done
8885 if test -z "$F77"; then
8886 ac_ct_F77=$F77
8887 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
8889 # Extract the first word of "$ac_prog", so it can be a program name with args.
8890 set dummy $ac_prog; ac_word=$2
8891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8893 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 if test -n "$ac_ct_F77"; then
8897 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_prog_ac_ct_F77="$ac_prog"
8907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8910 done
8911 done
8912 IFS=$as_save_IFS
8916 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8917 if test -n "$ac_ct_F77"; then
8918 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8919 echo "${ECHO_T}$ac_ct_F77" >&6; }
8920 else
8921 { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8926 test -n "$ac_ct_F77" && break
8927 done
8929 if test "x$ac_ct_F77" = x; then
8930 F77=""
8931 else
8932 case $cross_compiling:$ac_tool_warned in
8933 yes:)
8934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8935 whose name does not start with the host triplet. If you think this
8936 configuration is useful to you, please write to autoconf@gnu.org." >&5
8937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8938 whose name does not start with the host triplet. If you think this
8939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8940 ac_tool_warned=yes ;;
8941 esac
8942 F77=$ac_ct_F77
8947 # Provide some information about the compiler.
8948 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8949 ac_compiler=`set X $ac_compile; echo $2`
8950 { (ac_try="$ac_compiler --version >&5"
8951 case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_compiler --version >&5") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }
8960 { (ac_try="$ac_compiler -v >&5"
8961 case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_compiler -v >&5") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }
8970 { (ac_try="$ac_compiler -V >&5"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compiler -V >&5") 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }
8980 rm -f a.out
8982 # If we don't use `.F' as extension, the preprocessor is not run on the
8983 # input file. (Note that this only needs to work for GNU compilers.)
8984 ac_save_ext=$ac_ext
8985 ac_ext=F
8986 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8987 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8988 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 program main
8993 #ifndef __GNUC__
8994 choke me
8995 #endif
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_f77_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.$ac_objext; then
9016 ac_compiler_gnu=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_compiler_gnu=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9028 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9029 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
9030 ac_ext=$ac_save_ext
9031 ac_test_FFLAGS=${FFLAGS+set}
9032 ac_save_FFLAGS=$FFLAGS
9033 FFLAGS=
9034 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9035 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
9036 if test "${ac_cv_prog_f77_g+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 FFLAGS=-g
9040 cat >conftest.$ac_ext <<_ACEOF
9041 program main
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_f77_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9062 ac_cv_prog_f77_g=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_cv_prog_f77_g=no
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9074 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
9075 if test "$ac_test_FFLAGS" = set; then
9076 FFLAGS=$ac_save_FFLAGS
9077 elif test $ac_cv_prog_f77_g = yes; then
9078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9079 FFLAGS="-g -O2"
9080 else
9081 FFLAGS="-g"
9083 else
9084 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9085 FFLAGS="-O2"
9086 else
9087 FFLAGS=
9091 G77=`test $ac_compiler_gnu = yes && echo yes`
9092 ac_ext=c
9093 ac_cpp='$CPP $CPPFLAGS'
9094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9101 # find the maximum length of command line arguments
9102 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9103 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9104 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9108 teststring="ABCD"
9110 case $build_os in
9111 msdosdjgpp*)
9112 # On DJGPP, this test can blow up pretty badly due to problems in libc
9113 # (any single argument exceeding 2000 bytes causes a buffer overrun
9114 # during glob expansion). Even if it were fixed, the result of this
9115 # check would be larger than it should be.
9116 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9119 gnu*)
9120 # Under GNU Hurd, this test is not required because there is
9121 # no limit to the length of command line arguments.
9122 # Libtool will interpret -1 as no limit whatsoever
9123 lt_cv_sys_max_cmd_len=-1;
9126 cygwin* | mingw*)
9127 # On Win9x/ME, this test blows up -- it succeeds, but takes
9128 # about 5 minutes as the teststring grows exponentially.
9129 # Worse, since 9x/ME are not pre-emptively multitasking,
9130 # you end up with a "frozen" computer, even though with patience
9131 # the test eventually succeeds (with a max line length of 256k).
9132 # Instead, let's just punt: use the minimum linelength reported by
9133 # all of the supported platforms: 8192 (on NT/2K/XP).
9134 lt_cv_sys_max_cmd_len=8192;
9137 amigaos*)
9138 # On AmigaOS with pdksh, this test takes hours, literally.
9139 # So we just punt and use a minimum line length of 8192.
9140 lt_cv_sys_max_cmd_len=8192;
9143 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9144 # This has been around since 386BSD, at least. Likely further.
9145 if test -x /sbin/sysctl; then
9146 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9147 elif test -x /usr/sbin/sysctl; then
9148 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9149 else
9150 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9152 # And add a safety zone
9153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9157 interix*)
9158 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9159 lt_cv_sys_max_cmd_len=196608
9162 osf*)
9163 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9164 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9165 # nice to cause kernel panics so lets avoid the loop below.
9166 # First set a reasonable default.
9167 lt_cv_sys_max_cmd_len=16384
9169 if test -x /sbin/sysconfig; then
9170 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9171 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9172 esac
9175 sco3.2v5*)
9176 lt_cv_sys_max_cmd_len=102400
9178 sysv5* | sco5v6* | sysv4.2uw2*)
9179 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9180 if test -n "$kargmax"; then
9181 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9182 else
9183 lt_cv_sys_max_cmd_len=32768
9187 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9188 if test -n "$lt_cv_sys_max_cmd_len"; then
9189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9191 else
9192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9193 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9194 = "XX$teststring") >/dev/null 2>&1 &&
9195 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9196 lt_cv_sys_max_cmd_len=$new_result &&
9197 test $i != 17 # 1/2 MB should be enough
9199 i=`expr $i + 1`
9200 teststring=$teststring$teststring
9201 done
9202 teststring=
9203 # Add a significant safety factor because C++ compilers can tack on massive
9204 # amounts of additional arguments before passing them to the linker.
9205 # It appears as though 1/2 is a usable value.
9206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9209 esac
9213 if test -n $lt_cv_sys_max_cmd_len ; then
9214 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9215 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9216 else
9217 { echo "$as_me:$LINENO: result: none" >&5
9218 echo "${ECHO_T}none" >&6; }
9225 # Check for command to grab the raw symbol name followed by C symbol from nm.
9226 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9227 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9228 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9232 # These are sane defaults that work on at least a few old systems.
9233 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9235 # Character class describing NM global symbol codes.
9236 symcode='[BCDEGRST]'
9238 # Regexp to match symbols that can be accessed directly from C.
9239 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9241 # Transform an extracted symbol line into a proper C declaration
9242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9244 # Transform an extracted symbol line into symbol name and symbol address
9245 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'"
9247 # Define system-specific variables.
9248 case $host_os in
9249 aix*)
9250 symcode='[BCDT]'
9252 cygwin* | mingw* | pw32*)
9253 symcode='[ABCDGISTW]'
9255 hpux*) # Its linker distinguishes data from code symbols
9256 if test "$host_cpu" = ia64; then
9257 symcode='[ABCDEGRST]'
9259 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9260 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'"
9262 linux* | k*bsd*-gnu)
9263 if test "$host_cpu" = ia64; then
9264 symcode='[ABCDGIRSTW]'
9265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9266 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'"
9269 irix* | nonstopux*)
9270 symcode='[BCDEGRST]'
9272 osf*)
9273 symcode='[BCDEGQRST]'
9275 solaris*)
9276 symcode='[BDRT]'
9278 sco3.2v5*)
9279 symcode='[DT]'
9281 sysv4.2uw2*)
9282 symcode='[DT]'
9284 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9285 symcode='[ABDT]'
9287 sysv4)
9288 symcode='[DFNSTU]'
9290 esac
9292 # Handle CRLF in mingw tool chain
9293 opt_cr=
9294 case $build_os in
9295 mingw*)
9296 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9298 esac
9300 # If we're using GNU nm, then use its standard symbol codes.
9301 case `$NM -V 2>&1` in
9302 *GNU* | *'with BFD'*)
9303 symcode='[ABCDGIRSTW]' ;;
9304 esac
9306 # Try without a prefix undercore, then with it.
9307 for ac_symprfx in "" "_"; do
9309 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9310 symxfrm="\\1 $ac_symprfx\\2 \\2"
9312 # Write the raw and C identifiers.
9313 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9315 # Check to see that the pipe works correctly.
9316 pipe_works=no
9318 rm -f conftest*
9319 cat > conftest.$ac_ext <<EOF
9320 #ifdef __cplusplus
9321 extern "C" {
9322 #endif
9323 char nm_test_var;
9324 void nm_test_func(){}
9325 #ifdef __cplusplus
9327 #endif
9328 int main(){nm_test_var='a';nm_test_func();return(0);}
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332 (eval $ac_compile) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; then
9336 # Now try to grab the symbols.
9337 nlist=conftest.nm
9338 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9339 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && test -s "$nlist"; then
9343 # Try sorting and uniquifying the output.
9344 if sort "$nlist" | uniq > "$nlist"T; then
9345 mv -f "$nlist"T "$nlist"
9346 else
9347 rm -f "$nlist"T
9350 # Make sure that we snagged all the symbols we need.
9351 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9352 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9353 cat <<EOF > conftest.$ac_ext
9354 #ifdef __cplusplus
9355 extern "C" {
9356 #endif
9359 # Now generate the symbol file.
9360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9362 cat <<EOF >> conftest.$ac_ext
9363 #if defined (__STDC__) && __STDC__
9364 # define lt_ptr_t void *
9365 #else
9366 # define lt_ptr_t char *
9367 # define const
9368 #endif
9370 /* The mapping between symbol names and symbols. */
9371 const struct {
9372 const char *name;
9373 lt_ptr_t address;
9375 lt_preloaded_symbols[] =
9378 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9379 cat <<\EOF >> conftest.$ac_ext
9380 {0, (lt_ptr_t) 0}
9383 #ifdef __cplusplus
9385 #endif
9387 # Now try linking the two files.
9388 mv conftest.$ac_objext conftstm.$ac_objext
9389 lt_save_LIBS="$LIBS"
9390 lt_save_CFLAGS="$CFLAGS"
9391 LIBS="conftstm.$ac_objext"
9392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9398 pipe_works=yes
9400 LIBS="$lt_save_LIBS"
9401 CFLAGS="$lt_save_CFLAGS"
9402 else
9403 echo "cannot find nm_test_func in $nlist" >&5
9405 else
9406 echo "cannot find nm_test_var in $nlist" >&5
9408 else
9409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9411 else
9412 echo "$progname: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9415 rm -rf conftest* conftst*
9417 # Do not use the global_symbol_pipe unless it works.
9418 if test "$pipe_works" = yes; then
9419 break
9420 else
9421 lt_cv_sys_global_symbol_pipe=
9423 done
9427 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9428 lt_cv_sys_global_symbol_to_cdecl=
9430 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9431 { echo "$as_me:$LINENO: result: failed" >&5
9432 echo "${ECHO_T}failed" >&6; }
9433 else
9434 { echo "$as_me:$LINENO: result: ok" >&5
9435 echo "${ECHO_T}ok" >&6; }
9438 { echo "$as_me:$LINENO: checking for objdir" >&5
9439 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9440 if test "${lt_cv_objdir+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 rm -f .libs 2>/dev/null
9444 mkdir .libs 2>/dev/null
9445 if test -d .libs; then
9446 lt_cv_objdir=.libs
9447 else
9448 # MS-DOS does not allow filenames that begin with a dot.
9449 lt_cv_objdir=_libs
9451 rmdir .libs 2>/dev/null
9453 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9454 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9455 objdir=$lt_cv_objdir
9461 case $host_os in
9462 aix3*)
9463 # AIX sometimes has problems with the GCC collect2 program. For some
9464 # reason, if we set the COLLECT_NAMES environment variable, the problems
9465 # vanish in a puff of smoke.
9466 if test "X${COLLECT_NAMES+set}" != Xset; then
9467 COLLECT_NAMES=
9468 export COLLECT_NAMES
9471 esac
9473 # Sed substitution that helps us do robust quoting. It backslashifies
9474 # metacharacters that are still active within double-quoted strings.
9475 Xsed='sed -e 1s/^X//'
9476 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9478 # Same as above, but do not quote variable references.
9479 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9481 # Sed substitution to delay expansion of an escaped shell variable in a
9482 # double_quote_subst'ed string.
9483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9485 # Sed substitution to avoid accidental globbing in evaled expressions
9486 no_glob_subst='s/\*/\\\*/g'
9488 # Constants:
9489 rm="rm -f"
9491 # Global variables:
9492 default_ofile=libtool
9493 can_build_shared=yes
9495 # All known linkers require a `.a' archive for static linking (except MSVC,
9496 # which needs '.lib').
9497 libext=a
9498 ltmain="$ac_aux_dir/ltmain.sh"
9499 ofile="$default_ofile"
9500 with_gnu_ld="$lt_cv_prog_gnu_ld"
9502 if test -n "$ac_tool_prefix"; then
9503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9504 set dummy ${ac_tool_prefix}ar; ac_word=$2
9505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9507 if test "${ac_cv_prog_AR+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 if test -n "$AR"; then
9511 ac_cv_prog_AR="$AR" # Let the user override the test.
9512 else
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9520 ac_cv_prog_AR="${ac_tool_prefix}ar"
9521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9524 done
9525 done
9526 IFS=$as_save_IFS
9530 AR=$ac_cv_prog_AR
9531 if test -n "$AR"; then
9532 { echo "$as_me:$LINENO: result: $AR" >&5
9533 echo "${ECHO_T}$AR" >&6; }
9534 else
9535 { echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6; }
9541 if test -z "$ac_cv_prog_AR"; then
9542 ac_ct_AR=$AR
9543 # Extract the first word of "ar", so it can be a program name with args.
9544 set dummy ar; ac_word=$2
9545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9547 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 if test -n "$ac_ct_AR"; then
9551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9552 else
9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9556 IFS=$as_save_IFS
9557 test -z "$as_dir" && as_dir=.
9558 for ac_exec_ext in '' $ac_executable_extensions; do
9559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9560 ac_cv_prog_ac_ct_AR="ar"
9561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 break 2
9564 done
9565 done
9566 IFS=$as_save_IFS
9570 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9571 if test -n "$ac_ct_AR"; then
9572 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9573 echo "${ECHO_T}$ac_ct_AR" >&6; }
9574 else
9575 { echo "$as_me:$LINENO: result: no" >&5
9576 echo "${ECHO_T}no" >&6; }
9579 if test "x$ac_ct_AR" = x; then
9580 AR="false"
9581 else
9582 case $cross_compiling:$ac_tool_warned in
9583 yes:)
9584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9585 whose name does not start with the host triplet. If you think this
9586 configuration is useful to you, please write to autoconf@gnu.org." >&5
9587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9588 whose name does not start with the host triplet. If you think this
9589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9590 ac_tool_warned=yes ;;
9591 esac
9592 AR=$ac_ct_AR
9594 else
9595 AR="$ac_cv_prog_AR"
9598 if test -n "$ac_tool_prefix"; then
9599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9603 if test "${ac_cv_prog_RANLIB+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 else
9606 if test -n "$RANLIB"; then
9607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9626 RANLIB=$ac_cv_prog_RANLIB
9627 if test -n "$RANLIB"; then
9628 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9629 echo "${ECHO_T}$RANLIB" >&6; }
9630 else
9631 { echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6; }
9637 if test -z "$ac_cv_prog_RANLIB"; then
9638 ac_ct_RANLIB=$RANLIB
9639 # Extract the first word of "ranlib", so it can be a program name with args.
9640 set dummy ranlib; ac_word=$2
9641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9643 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 if test -n "$ac_ct_RANLIB"; then
9647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_ac_ct_RANLIB="ranlib"
9657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9667 if test -n "$ac_ct_RANLIB"; then
9668 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9669 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9670 else
9671 { echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6; }
9675 if test "x$ac_ct_RANLIB" = x; then
9676 RANLIB=":"
9677 else
9678 case $cross_compiling:$ac_tool_warned in
9679 yes:)
9680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9681 whose name does not start with the host triplet. If you think this
9682 configuration is useful to you, please write to autoconf@gnu.org." >&5
9683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9684 whose name does not start with the host triplet. If you think this
9685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9686 ac_tool_warned=yes ;;
9687 esac
9688 RANLIB=$ac_ct_RANLIB
9690 else
9691 RANLIB="$ac_cv_prog_RANLIB"
9694 if test -n "$ac_tool_prefix"; then
9695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9696 set dummy ${ac_tool_prefix}strip; ac_word=$2
9697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9699 if test "${ac_cv_prog_STRIP+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702 if test -n "$STRIP"; then
9703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9716 done
9717 done
9718 IFS=$as_save_IFS
9722 STRIP=$ac_cv_prog_STRIP
9723 if test -n "$STRIP"; then
9724 { echo "$as_me:$LINENO: result: $STRIP" >&5
9725 echo "${ECHO_T}$STRIP" >&6; }
9726 else
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9733 if test -z "$ac_cv_prog_STRIP"; then
9734 ac_ct_STRIP=$STRIP
9735 # Extract the first word of "strip", so it can be a program name with args.
9736 set dummy strip; ac_word=$2
9737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9739 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 if test -n "$ac_ct_STRIP"; then
9743 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9744 else
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746 for as_dir in $PATH
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_ac_ct_STRIP="strip"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9756 done
9757 done
9758 IFS=$as_save_IFS
9762 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9763 if test -n "$ac_ct_STRIP"; then
9764 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9765 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9766 else
9767 { echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6; }
9771 if test "x$ac_ct_STRIP" = x; then
9772 STRIP=":"
9773 else
9774 case $cross_compiling:$ac_tool_warned in
9775 yes:)
9776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9777 whose name does not start with the host triplet. If you think this
9778 configuration is useful to you, please write to autoconf@gnu.org." >&5
9779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9780 whose name does not start with the host triplet. If you think this
9781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9782 ac_tool_warned=yes ;;
9783 esac
9784 STRIP=$ac_ct_STRIP
9786 else
9787 STRIP="$ac_cv_prog_STRIP"
9791 old_CC="$CC"
9792 old_CFLAGS="$CFLAGS"
9794 # Set sane defaults for various variables
9795 test -z "$AR" && AR=ar
9796 test -z "$AR_FLAGS" && AR_FLAGS=cru
9797 test -z "$AS" && AS=as
9798 test -z "$CC" && CC=cc
9799 test -z "$LTCC" && LTCC=$CC
9800 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9801 test -z "$DLLTOOL" && DLLTOOL=dlltool
9802 test -z "$LD" && LD=ld
9803 test -z "$LN_S" && LN_S="ln -s"
9804 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9805 test -z "$NM" && NM=nm
9806 test -z "$SED" && SED=sed
9807 test -z "$OBJDUMP" && OBJDUMP=objdump
9808 test -z "$RANLIB" && RANLIB=:
9809 test -z "$STRIP" && STRIP=:
9810 test -z "$ac_objext" && ac_objext=o
9812 # Determine commands to create old-style static archives.
9813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9814 old_postinstall_cmds='chmod 644 $oldlib'
9815 old_postuninstall_cmds=
9817 if test -n "$RANLIB"; then
9818 case $host_os in
9819 openbsd*)
9820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9825 esac
9826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9829 for cc_temp in $compiler""; do
9830 case $cc_temp in
9831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9833 \-*) ;;
9834 *) break;;
9835 esac
9836 done
9837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9840 # Only perform the check for file, if the check method requires it
9841 case $deplibs_check_method in
9842 file_magic*)
9843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9844 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9845 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9846 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 case $MAGIC_CMD in
9850 [\\/*] | ?:[\\/]*)
9851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9854 lt_save_MAGIC_CMD="$MAGIC_CMD"
9855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9857 for ac_dir in $ac_dummy; do
9858 IFS="$lt_save_ifs"
9859 test -z "$ac_dir" && ac_dir=.
9860 if test -f $ac_dir/${ac_tool_prefix}file; then
9861 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9862 if test -n "$file_magic_test_file"; then
9863 case $deplibs_check_method in
9864 "file_magic "*)
9865 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9868 $EGREP "$file_magic_regex" > /dev/null; then
9870 else
9871 cat <<EOF 1>&2
9873 *** Warning: the command libtool uses to detect shared libraries,
9874 *** $file_magic_cmd, produces output that libtool cannot recognize.
9875 *** The result is that libtool may fail to recognize shared libraries
9876 *** as such. This will affect the creation of libtool libraries that
9877 *** depend on shared libraries, but programs linked with such libtool
9878 *** libraries will work regardless of this problem. Nevertheless, you
9879 *** may want to report the problem to your system manager and/or to
9880 *** bug-libtool@gnu.org
9883 fi ;;
9884 esac
9886 break
9888 done
9889 IFS="$lt_save_ifs"
9890 MAGIC_CMD="$lt_save_MAGIC_CMD"
9892 esac
9895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9896 if test -n "$MAGIC_CMD"; then
9897 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9898 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9899 else
9900 { echo "$as_me:$LINENO: result: no" >&5
9901 echo "${ECHO_T}no" >&6; }
9904 if test -z "$lt_cv_path_MAGIC_CMD"; then
9905 if test -n "$ac_tool_prefix"; then
9906 { echo "$as_me:$LINENO: checking for file" >&5
9907 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9908 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 case $MAGIC_CMD in
9912 [\\/*] | ?:[\\/]*)
9913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9916 lt_save_MAGIC_CMD="$MAGIC_CMD"
9917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9919 for ac_dir in $ac_dummy; do
9920 IFS="$lt_save_ifs"
9921 test -z "$ac_dir" && ac_dir=.
9922 if test -f $ac_dir/file; then
9923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9924 if test -n "$file_magic_test_file"; then
9925 case $deplibs_check_method in
9926 "file_magic "*)
9927 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9930 $EGREP "$file_magic_regex" > /dev/null; then
9932 else
9933 cat <<EOF 1>&2
9935 *** Warning: the command libtool uses to detect shared libraries,
9936 *** $file_magic_cmd, produces output that libtool cannot recognize.
9937 *** The result is that libtool may fail to recognize shared libraries
9938 *** as such. This will affect the creation of libtool libraries that
9939 *** depend on shared libraries, but programs linked with such libtool
9940 *** libraries will work regardless of this problem. Nevertheless, you
9941 *** may want to report the problem to your system manager and/or to
9942 *** bug-libtool@gnu.org
9945 fi ;;
9946 esac
9948 break
9950 done
9951 IFS="$lt_save_ifs"
9952 MAGIC_CMD="$lt_save_MAGIC_CMD"
9954 esac
9957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9958 if test -n "$MAGIC_CMD"; then
9959 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9960 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9961 else
9962 { echo "$as_me:$LINENO: result: no" >&5
9963 echo "${ECHO_T}no" >&6; }
9966 else
9967 MAGIC_CMD=:
9973 esac
9976 case $host_os in
9977 rhapsody* | darwin*)
9978 if test -n "$ac_tool_prefix"; then
9979 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9980 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9983 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 if test -n "$DSYMUTIL"; then
9987 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9988 else
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10002 IFS=$as_save_IFS
10006 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10007 if test -n "$DSYMUTIL"; then
10008 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10009 echo "${ECHO_T}$DSYMUTIL" >&6; }
10010 else
10011 { echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6; }
10017 if test -z "$ac_cv_prog_DSYMUTIL"; then
10018 ac_ct_DSYMUTIL=$DSYMUTIL
10019 # Extract the first word of "dsymutil", so it can be a program name with args.
10020 set dummy dsymutil; ac_word=$2
10021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10023 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 if test -n "$ac_ct_DSYMUTIL"; then
10027 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10028 else
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10032 IFS=$as_save_IFS
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 break 2
10040 done
10041 done
10042 IFS=$as_save_IFS
10046 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10047 if test -n "$ac_ct_DSYMUTIL"; then
10048 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10049 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
10050 else
10051 { echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6; }
10055 if test "x$ac_ct_DSYMUTIL" = x; then
10056 DSYMUTIL=":"
10057 else
10058 case $cross_compiling:$ac_tool_warned in
10059 yes:)
10060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10061 whose name does not start with the host triplet. If you think this
10062 configuration is useful to you, please write to autoconf@gnu.org." >&5
10063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10064 whose name does not start with the host triplet. If you think this
10065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10066 ac_tool_warned=yes ;;
10067 esac
10068 DSYMUTIL=$ac_ct_DSYMUTIL
10070 else
10071 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10074 if test -n "$ac_tool_prefix"; then
10075 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10076 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10079 if test "${ac_cv_prog_NMEDIT+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 if test -n "$NMEDIT"; then
10083 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10092 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10102 NMEDIT=$ac_cv_prog_NMEDIT
10103 if test -n "$NMEDIT"; then
10104 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
10105 echo "${ECHO_T}$NMEDIT" >&6; }
10106 else
10107 { echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6; }
10113 if test -z "$ac_cv_prog_NMEDIT"; then
10114 ac_ct_NMEDIT=$NMEDIT
10115 # Extract the first word of "nmedit", so it can be a program name with args.
10116 set dummy nmedit; ac_word=$2
10117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10119 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 if test -n "$ac_ct_NMEDIT"; then
10123 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10124 else
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10136 done
10137 done
10138 IFS=$as_save_IFS
10142 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10143 if test -n "$ac_ct_NMEDIT"; then
10144 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10145 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
10146 else
10147 { echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6; }
10151 if test "x$ac_ct_NMEDIT" = x; then
10152 NMEDIT=":"
10153 else
10154 case $cross_compiling:$ac_tool_warned in
10155 yes:)
10156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10157 whose name does not start with the host triplet. If you think this
10158 configuration is useful to you, please write to autoconf@gnu.org." >&5
10159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10160 whose name does not start with the host triplet. If you think this
10161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10162 ac_tool_warned=yes ;;
10163 esac
10164 NMEDIT=$ac_ct_NMEDIT
10166 else
10167 NMEDIT="$ac_cv_prog_NMEDIT"
10171 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10172 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
10173 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 lt_cv_apple_cc_single_mod=no
10177 if test -z "${LT_MULTI_MODULE}"; then
10178 # By default we will add the -single_module flag. You can override
10179 # by either setting the environment variable LT_MULTI_MODULE
10180 # non-empty at configure time, or by adding -multi_module to the
10181 # link flags.
10182 echo "int foo(void){return 1;}" > conftest.c
10183 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10184 -dynamiclib ${wl}-single_module conftest.c
10185 if test -f libconftest.dylib; then
10186 lt_cv_apple_cc_single_mod=yes
10187 rm -rf libconftest.dylib*
10189 rm conftest.c
10192 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10193 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10194 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10195 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
10196 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 lt_cv_ld_exported_symbols_list=no
10200 save_LDFLAGS=$LDFLAGS
10201 echo "_main" > conftest.sym
10202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10211 main ()
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest$ac_exeext &&
10235 $as_test_x conftest$ac_exeext; then
10236 lt_cv_ld_exported_symbols_list=yes
10237 else
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 lt_cv_ld_exported_symbols_list=no
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LDFLAGS="$save_LDFLAGS"
10249 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10250 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10251 case $host_os in
10252 rhapsody* | darwin1.[0123])
10253 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10254 darwin1.*)
10255 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10256 darwin*)
10257 # if running on 10.5 or later, the deployment target defaults
10258 # to the OS version, if on x86, and 10.4, the deployment
10259 # target defaults to 10.4. Don't you love it?
10260 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10261 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10262 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10263 10.[012]*)
10264 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10265 10.*)
10266 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10267 esac
10269 esac
10270 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10271 _lt_dar_single_mod='$single_module'
10273 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10274 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10275 else
10276 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
10278 if test "$DSYMUTIL" != ":"; then
10279 _lt_dsymutil="~$DSYMUTIL \$lib || :"
10280 else
10281 _lt_dsymutil=
10284 esac
10287 enable_dlopen=no
10288 enable_win32_dll=no
10290 # Check whether --enable-libtool-lock was given.
10291 if test "${enable_libtool_lock+set}" = set; then
10292 enableval=$enable_libtool_lock;
10295 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10298 # Check whether --with-pic was given.
10299 if test "${with_pic+set}" = set; then
10300 withval=$with_pic; pic_mode="$withval"
10301 else
10302 pic_mode=default
10305 test -z "$pic_mode" && pic_mode=default
10307 # Use C for the default configuration in the libtool script
10308 tagname=
10309 lt_save_CC="$CC"
10310 ac_ext=c
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10317 # Source file extension for C test sources.
10318 ac_ext=c
10320 # Object file extension for compiled C test sources.
10321 objext=o
10322 objext=$objext
10324 # Code to be used in simple compile tests
10325 lt_simple_compile_test_code="int some_variable = 0;"
10327 # Code to be used in simple link tests
10328 lt_simple_link_test_code='int main(){return(0);}'
10331 # If no C compiler was specified, use CC.
10332 LTCC=${LTCC-"$CC"}
10334 # If no C compiler flags were specified, use CFLAGS.
10335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10337 # Allow CC to be a program name with arguments.
10338 compiler=$CC
10341 # save warnings/boilerplate of simple test code
10342 ac_outfile=conftest.$ac_objext
10343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10345 _lt_compiler_boilerplate=`cat conftest.err`
10346 $rm conftest*
10348 ac_outfile=conftest.$ac_objext
10349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10351 _lt_linker_boilerplate=`cat conftest.err`
10352 $rm -r conftest*
10356 lt_prog_compiler_no_builtin_flag=
10358 if test "$GCC" = yes; then
10359 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10362 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 lt_cv_prog_compiler_rtti_exceptions=no
10368 ac_outfile=conftest.$ac_objext
10369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10370 lt_compiler_flag="-fno-rtti -fno-exceptions"
10371 # Insert the option either (1) after the last *FLAGS variable, or
10372 # (2) before a word containing "conftest.", or (3) at the end.
10373 # Note that $ac_compile itself does not contain backslashes and begins
10374 # with a dollar sign (not a hyphen), so the echo should work correctly.
10375 # The option is referenced via a variable to avoid confusing sed.
10376 lt_compile=`echo "$ac_compile" | $SED \
10377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10379 -e 's:$: $lt_compiler_flag:'`
10380 (eval echo "\"\$as_me:10380: $lt_compile\"" >&5)
10381 (eval "$lt_compile" 2>conftest.err)
10382 ac_status=$?
10383 cat conftest.err >&5
10384 echo "$as_me:10384: \$? = $ac_status" >&5
10385 if (exit $ac_status) && test -s "$ac_outfile"; then
10386 # The compiler can only warn and ignore the option if not recognized
10387 # So say no if there are warnings other than the usual output.
10388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10391 lt_cv_prog_compiler_rtti_exceptions=yes
10394 $rm conftest*
10397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10401 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10402 else
10408 lt_prog_compiler_wl=
10409 lt_prog_compiler_pic=
10410 lt_prog_compiler_static=
10412 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10413 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10415 if test "$GCC" = yes; then
10416 lt_prog_compiler_wl='-Wl,'
10417 lt_prog_compiler_static='-static'
10419 case $host_os in
10420 aix*)
10421 # All AIX code is PIC.
10422 if test "$host_cpu" = ia64; then
10423 # AIX 5 now supports IA64 processor
10424 lt_prog_compiler_static='-Bstatic'
10428 amigaos*)
10429 # FIXME: we need at least 68020 code to build shared libraries, but
10430 # adding the `-m68020' flag to GCC prevents building anything better,
10431 # like `-m68040'.
10432 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10436 # PIC is the default for these OSes.
10439 mingw* | cygwin* | pw32* | os2*)
10440 # This hack is so that the source file can tell whether it is being
10441 # built for inclusion in a dll (and should export symbols for example).
10442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10443 # (--disable-auto-import) libraries
10444 lt_prog_compiler_pic='-DDLL_EXPORT'
10447 darwin* | rhapsody*)
10448 # PIC is the default on this platform
10449 # Common symbols not allowed in MH_DYLIB files
10450 lt_prog_compiler_pic='-fno-common'
10453 interix[3-9]*)
10454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10455 # Instead, we relocate shared libraries at runtime.
10458 msdosdjgpp*)
10459 # Just because we use GCC doesn't mean we suddenly get shared libraries
10460 # on systems that don't support them.
10461 lt_prog_compiler_can_build_shared=no
10462 enable_shared=no
10465 sysv4*MP*)
10466 if test -d /usr/nec; then
10467 lt_prog_compiler_pic=-Kconform_pic
10471 hpux*)
10472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10473 # not for PA HP-UX.
10474 case $host_cpu in
10475 hppa*64*|ia64*)
10476 # +Z the default
10479 lt_prog_compiler_pic='-fPIC'
10481 esac
10485 lt_prog_compiler_pic='-fPIC'
10487 esac
10488 else
10489 # PORTME Check for flag to pass linker flags through the system compiler.
10490 case $host_os in
10491 aix*)
10492 lt_prog_compiler_wl='-Wl,'
10493 if test "$host_cpu" = ia64; then
10494 # AIX 5 now supports IA64 processor
10495 lt_prog_compiler_static='-Bstatic'
10496 else
10497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10500 darwin*)
10501 # PIC is the default on this platform
10502 # Common symbols not allowed in MH_DYLIB files
10503 case $cc_basename in
10504 xlc*)
10505 lt_prog_compiler_pic='-qnocommon'
10506 lt_prog_compiler_wl='-Wl,'
10508 esac
10511 mingw* | cygwin* | pw32* | os2*)
10512 # This hack is so that the source file can tell whether it is being
10513 # built for inclusion in a dll (and should export symbols for example).
10514 lt_prog_compiler_pic='-DDLL_EXPORT'
10517 hpux9* | hpux10* | hpux11*)
10518 lt_prog_compiler_wl='-Wl,'
10519 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10520 # not for PA HP-UX.
10521 case $host_cpu in
10522 hppa*64*|ia64*)
10523 # +Z the default
10526 lt_prog_compiler_pic='+Z'
10528 esac
10529 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10530 lt_prog_compiler_static='${wl}-a ${wl}archive'
10533 irix5* | irix6* | nonstopux*)
10534 lt_prog_compiler_wl='-Wl,'
10535 # PIC (with -KPIC) is the default.
10536 lt_prog_compiler_static='-non_shared'
10539 newsos6)
10540 lt_prog_compiler_pic='-KPIC'
10541 lt_prog_compiler_static='-Bstatic'
10544 linux* | k*bsd*-gnu)
10545 case $cc_basename in
10546 icc* | ecc*)
10547 lt_prog_compiler_wl='-Wl,'
10548 lt_prog_compiler_pic='-KPIC'
10549 lt_prog_compiler_static='-static'
10551 pgcc* | pgf77* | pgf90* | pgf95*)
10552 # Portland Group compilers (*not* the Pentium gcc compiler,
10553 # which looks to be a dead project)
10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_pic='-fpic'
10556 lt_prog_compiler_static='-Bstatic'
10558 ccc*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # All Alpha code is PIC.
10561 lt_prog_compiler_static='-non_shared'
10564 case `$CC -V 2>&1 | sed 5q` in
10565 *Sun\ C*)
10566 # Sun C 5.9
10567 lt_prog_compiler_pic='-KPIC'
10568 lt_prog_compiler_static='-Bstatic'
10569 lt_prog_compiler_wl='-Wl,'
10571 *Sun\ F*)
10572 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10573 lt_prog_compiler_pic='-KPIC'
10574 lt_prog_compiler_static='-Bstatic'
10575 lt_prog_compiler_wl=''
10577 esac
10579 esac
10582 osf3* | osf4* | osf5*)
10583 lt_prog_compiler_wl='-Wl,'
10584 # All OSF/1 code is PIC.
10585 lt_prog_compiler_static='-non_shared'
10588 rdos*)
10589 lt_prog_compiler_static='-non_shared'
10592 solaris*)
10593 lt_prog_compiler_pic='-KPIC'
10594 lt_prog_compiler_static='-Bstatic'
10595 case $cc_basename in
10596 f77* | f90* | f95*)
10597 lt_prog_compiler_wl='-Qoption ld ';;
10599 lt_prog_compiler_wl='-Wl,';;
10600 esac
10603 sunos4*)
10604 lt_prog_compiler_wl='-Qoption ld '
10605 lt_prog_compiler_pic='-PIC'
10606 lt_prog_compiler_static='-Bstatic'
10609 sysv4 | sysv4.2uw2* | sysv4.3*)
10610 lt_prog_compiler_wl='-Wl,'
10611 lt_prog_compiler_pic='-KPIC'
10612 lt_prog_compiler_static='-Bstatic'
10615 sysv4*MP*)
10616 if test -d /usr/nec ;then
10617 lt_prog_compiler_pic='-Kconform_pic'
10618 lt_prog_compiler_static='-Bstatic'
10622 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10623 lt_prog_compiler_wl='-Wl,'
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10628 unicos*)
10629 lt_prog_compiler_wl='-Wl,'
10630 lt_prog_compiler_can_build_shared=no
10633 uts4*)
10634 lt_prog_compiler_pic='-pic'
10635 lt_prog_compiler_static='-Bstatic'
10639 lt_prog_compiler_can_build_shared=no
10641 esac
10644 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10645 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10648 # Check to make sure the PIC flag actually works.
10650 if test -n "$lt_prog_compiler_pic"; then
10652 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10654 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657 lt_cv_prog_compiler_pic_works=no
10658 ac_outfile=conftest.$ac_objext
10659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10660 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10661 # Insert the option either (1) after the last *FLAGS variable, or
10662 # (2) before a word containing "conftest.", or (3) at the end.
10663 # Note that $ac_compile itself does not contain backslashes and begins
10664 # with a dollar sign (not a hyphen), so the echo should work correctly.
10665 # The option is referenced via a variable to avoid confusing sed.
10666 lt_compile=`echo "$ac_compile" | $SED \
10667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10669 -e 's:$: $lt_compiler_flag:'`
10670 (eval echo "\"\$as_me:10670: $lt_compile\"" >&5)
10671 (eval "$lt_compile" 2>conftest.err)
10672 ac_status=$?
10673 cat conftest.err >&5
10674 echo "$as_me:10674: \$? = $ac_status" >&5
10675 if (exit $ac_status) && test -s "$ac_outfile"; then
10676 # The compiler can only warn and ignore the option if not recognized
10677 # So say no if there are warnings other than the usual output.
10678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10681 lt_cv_prog_compiler_pic_works=yes
10684 $rm conftest*
10687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10688 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10690 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10691 case $lt_prog_compiler_pic in
10692 "" | " "*) ;;
10693 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10694 esac
10695 else
10696 lt_prog_compiler_pic=
10697 lt_prog_compiler_can_build_shared=no
10701 case $host_os in
10702 # For platforms which do not support PIC, -DPIC is meaningless:
10703 *djgpp*)
10704 lt_prog_compiler_pic=
10707 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10709 esac
10712 # Check to make sure the static flag actually works.
10714 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10715 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10716 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10717 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 lt_cv_prog_compiler_static_works=no
10721 save_LDFLAGS="$LDFLAGS"
10722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10725 # The linker can only warn and ignore the option if not recognized
10726 # So say no if there are warnings
10727 if test -s conftest.err; then
10728 # Append any errors to the config.log.
10729 cat conftest.err 1>&5
10730 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10732 if diff conftest.exp conftest.er2 >/dev/null; then
10733 lt_cv_prog_compiler_static_works=yes
10735 else
10736 lt_cv_prog_compiler_static_works=yes
10739 $rm -r conftest*
10740 LDFLAGS="$save_LDFLAGS"
10743 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10744 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10746 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10748 else
10749 lt_prog_compiler_static=
10753 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10755 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758 lt_cv_prog_compiler_c_o=no
10759 $rm -r conftest 2>/dev/null
10760 mkdir conftest
10761 cd conftest
10762 mkdir out
10763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10765 lt_compiler_flag="-o out/conftest2.$ac_objext"
10766 # Insert the option either (1) after the last *FLAGS variable, or
10767 # (2) before a word containing "conftest.", or (3) at the end.
10768 # Note that $ac_compile itself does not contain backslashes and begins
10769 # with a dollar sign (not a hyphen), so the echo should work correctly.
10770 lt_compile=`echo "$ac_compile" | $SED \
10771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10773 -e 's:$: $lt_compiler_flag:'`
10774 (eval echo "\"\$as_me:10774: $lt_compile\"" >&5)
10775 (eval "$lt_compile" 2>out/conftest.err)
10776 ac_status=$?
10777 cat out/conftest.err >&5
10778 echo "$as_me:10778: \$? = $ac_status" >&5
10779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10780 then
10781 # The compiler can only warn and ignore the option if not recognized
10782 # So say no if there are warnings
10783 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10786 lt_cv_prog_compiler_c_o=yes
10789 chmod u+w . 2>&5
10790 $rm conftest*
10791 # SGI C++ compiler will create directory out/ii_files/ for
10792 # template instantiation
10793 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10794 $rm out/* && rmdir out
10795 cd ..
10796 rmdir conftest
10797 $rm conftest*
10800 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10801 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10804 hard_links="nottested"
10805 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10806 # do not overwrite the value of need_locks provided by the user
10807 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10808 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10809 hard_links=yes
10810 $rm conftest*
10811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10812 touch conftest.a
10813 ln conftest.a conftest.b 2>&5 || hard_links=no
10814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10815 { echo "$as_me:$LINENO: result: $hard_links" >&5
10816 echo "${ECHO_T}$hard_links" >&6; }
10817 if test "$hard_links" = no; then
10818 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10819 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10820 need_locks=warn
10822 else
10823 need_locks=no
10826 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10827 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10829 runpath_var=
10830 allow_undefined_flag=
10831 enable_shared_with_static_runtimes=no
10832 archive_cmds=
10833 archive_expsym_cmds=
10834 old_archive_From_new_cmds=
10835 old_archive_from_expsyms_cmds=
10836 export_dynamic_flag_spec=
10837 whole_archive_flag_spec=
10838 thread_safe_flag_spec=
10839 hardcode_libdir_flag_spec=
10840 hardcode_libdir_flag_spec_ld=
10841 hardcode_libdir_separator=
10842 hardcode_direct=no
10843 hardcode_minus_L=no
10844 hardcode_shlibpath_var=unsupported
10845 link_all_deplibs=unknown
10846 hardcode_automatic=no
10847 module_cmds=
10848 module_expsym_cmds=
10849 always_export_symbols=no
10850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10851 # include_expsyms should be a list of space-separated symbols to be *always*
10852 # included in the symbol list
10853 include_expsyms=
10854 # exclude_expsyms can be an extended regexp of symbols to exclude
10855 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10856 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10857 # as well as any symbol that contains `d'.
10858 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10859 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10860 # platforms (ab)use it in PIC code, but their linkers get confused if
10861 # the symbol is explicitly referenced. Since portable code cannot
10862 # rely on this symbol name, it's probably fine to never include it in
10863 # preloaded symbol tables.
10864 # Exclude shared library initialization/finalization symbols.
10865 extract_expsyms_cmds=
10866 # Just being paranoid about ensuring that cc_basename is set.
10867 for cc_temp in $compiler""; do
10868 case $cc_temp in
10869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10871 \-*) ;;
10872 *) break;;
10873 esac
10874 done
10875 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10877 case $host_os in
10878 cygwin* | mingw* | pw32*)
10879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10880 # When not using gcc, we currently assume that we are using
10881 # Microsoft Visual C++.
10882 if test "$GCC" != yes; then
10883 with_gnu_ld=no
10886 interix*)
10887 # we just hope/assume this is gcc and not c89 (= MSVC++)
10888 with_gnu_ld=yes
10890 openbsd*)
10891 with_gnu_ld=no
10893 esac
10895 ld_shlibs=yes
10896 if test "$with_gnu_ld" = yes; then
10897 # If archive_cmds runs LD, not CC, wlarc should be empty
10898 wlarc='${wl}'
10900 # Set some defaults for GNU ld with shared library support. These
10901 # are reset later if shared libraries are not supported. Putting them
10902 # here allows them to be overridden if necessary.
10903 runpath_var=LD_RUN_PATH
10904 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10905 export_dynamic_flag_spec='${wl}--export-dynamic'
10906 # ancient GNU ld didn't support --whole-archive et. al.
10907 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10909 else
10910 whole_archive_flag_spec=
10912 supports_anon_versioning=no
10913 case `$LD -v 2>/dev/null` in
10914 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10915 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10916 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10917 *\ 2.11.*) ;; # other 2.11 versions
10918 *) supports_anon_versioning=yes ;;
10919 esac
10921 # See if GNU ld supports shared libraries.
10922 case $host_os in
10923 aix[3-9]*)
10924 # On AIX/PPC, the GNU linker is very broken
10925 if test "$host_cpu" != ia64; then
10926 ld_shlibs=no
10927 cat <<EOF 1>&2
10929 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10930 *** to be unable to reliably create shared libraries on AIX.
10931 *** Therefore, libtool is disabling shared libraries support. If you
10932 *** really care for shared libraries, you may want to modify your PATH
10933 *** so that a non-GNU linker is found, and then restart.
10939 amigaos*)
10940 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)'
10941 hardcode_libdir_flag_spec='-L$libdir'
10942 hardcode_minus_L=yes
10944 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10945 # that the semantics of dynamic libraries on AmigaOS, at least up
10946 # to version 4, is to share data among multiple programs linked
10947 # with the same dynamic library. Since this doesn't match the
10948 # behavior of shared libraries on other platforms, we can't use
10949 # them.
10950 ld_shlibs=no
10953 beos*)
10954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10955 allow_undefined_flag=unsupported
10956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10957 # support --undefined. This deserves some investigation. FIXME
10958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959 else
10960 ld_shlibs=no
10964 cygwin* | mingw* | pw32*)
10965 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10966 # as there is no search path for DLLs.
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 allow_undefined_flag=unsupported
10969 always_export_symbols=no
10970 enable_shared_with_static_runtimes=yes
10971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10973 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10975 # If the export-symbols file already is a .def file (1st line
10976 # is EXPORTS), use it as is; otherwise, prepend...
10977 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10978 cp $export_symbols $output_objdir/$soname.def;
10979 else
10980 echo EXPORTS > $output_objdir/$soname.def;
10981 cat $export_symbols >> $output_objdir/$soname.def;
10983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10984 else
10985 ld_shlibs=no
10989 interix[3-9]*)
10990 hardcode_direct=no
10991 hardcode_shlibpath_var=no
10992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10993 export_dynamic_flag_spec='${wl}-E'
10994 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10995 # Instead, shared libraries are loaded at an image base (0x10000000 by
10996 # default) and relocated if they conflict, which is a slow very memory
10997 # consuming and fragmenting process. To avoid this, we pick a random,
10998 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10999 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11001 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'
11004 gnu* | linux* | k*bsd*-gnu)
11005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11006 tmp_addflag=
11007 case $cc_basename,$host_cpu in
11008 pgcc*) # Portland Group C compiler
11009 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'
11010 tmp_addflag=' $pic_flag'
11012 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11013 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'
11014 tmp_addflag=' $pic_flag -Mnomain' ;;
11015 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11016 tmp_addflag=' -i_dynamic' ;;
11017 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11018 tmp_addflag=' -i_dynamic -nofor_main' ;;
11019 ifc* | ifort*) # Intel Fortran compiler
11020 tmp_addflag=' -nofor_main' ;;
11021 esac
11022 case `$CC -V 2>&1 | sed 5q` in
11023 *Sun\ C*) # Sun C 5.9
11024 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'
11025 tmp_sharedflag='-G' ;;
11026 *Sun\ F*) # Sun Fortran 8.3
11027 tmp_sharedflag='-G' ;;
11029 tmp_sharedflag='-shared' ;;
11030 esac
11031 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11033 if test $supports_anon_versioning = yes; then
11034 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11036 $echo "local: *; };" >> $output_objdir/$libname.ver~
11037 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11039 link_all_deplibs=no
11040 else
11041 ld_shlibs=no
11045 netbsd* | netbsdelf*-gnu)
11046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11047 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11048 wlarc=
11049 else
11050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11055 solaris*)
11056 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11057 ld_shlibs=no
11058 cat <<EOF 1>&2
11060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11061 *** create shared libraries on Solaris systems. Therefore, libtool
11062 *** is disabling shared libraries support. We urge you to upgrade GNU
11063 *** binutils to release 2.9.1 or newer. Another option is to modify
11064 *** your PATH or compiler configuration so that the native linker is
11065 *** used, and then restart.
11068 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11071 else
11072 ld_shlibs=no
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11077 case `$LD -v 2>&1` in
11078 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11079 ld_shlibs=no
11080 cat <<_LT_EOF 1>&2
11082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11083 *** reliably create shared libraries on SCO systems. Therefore, libtool
11084 *** is disabling shared libraries support. We urge you to upgrade GNU
11085 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11086 *** your PATH or compiler configuration so that the native linker is
11087 *** used, and then restart.
11089 _LT_EOF
11092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11093 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11096 else
11097 ld_shlibs=no
11100 esac
11103 sunos4*)
11104 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11105 wlarc=
11106 hardcode_direct=yes
11107 hardcode_shlibpath_var=no
11111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11114 else
11115 ld_shlibs=no
11118 esac
11120 if test "$ld_shlibs" = no; then
11121 runpath_var=
11122 hardcode_libdir_flag_spec=
11123 export_dynamic_flag_spec=
11124 whole_archive_flag_spec=
11126 else
11127 # PORTME fill in a description of your system's linker (not GNU ld)
11128 case $host_os in
11129 aix3*)
11130 allow_undefined_flag=unsupported
11131 always_export_symbols=yes
11132 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'
11133 # Note: this linker hardcodes the directories in LIBPATH if there
11134 # are no directories specified by -L.
11135 hardcode_minus_L=yes
11136 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11137 # Neither direct hardcoding nor static linking is supported with a
11138 # broken collect2.
11139 hardcode_direct=unsupported
11143 aix[4-9]*)
11144 if test "$host_cpu" = ia64; then
11145 # On IA64, the linker does run time linking by default, so we don't
11146 # have to do anything special.
11147 aix_use_runtimelinking=no
11148 exp_sym_flag='-Bexport'
11149 no_entry_flag=""
11150 else
11151 # If we're using GNU nm, then we don't want the "-C" option.
11152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11154 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'
11155 else
11156 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'
11158 aix_use_runtimelinking=no
11160 # Test if we are trying to use run time linking or normal
11161 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11162 # need to do runtime linking.
11163 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11164 for ld_flag in $LDFLAGS; do
11165 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11166 aix_use_runtimelinking=yes
11167 break
11169 done
11171 esac
11173 exp_sym_flag='-bexport'
11174 no_entry_flag='-bnoentry'
11177 # When large executables or shared objects are built, AIX ld can
11178 # have problems creating the table of contents. If linking a library
11179 # or program results in "error TOC overflow" add -mminimal-toc to
11180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11183 archive_cmds=''
11184 hardcode_direct=yes
11185 hardcode_libdir_separator=':'
11186 link_all_deplibs=yes
11188 if test "$GCC" = yes; then
11189 case $host_os in aix4.[012]|aix4.[012].*)
11190 # We only want to do this on AIX 4.2 and lower, the check
11191 # below for broken collect2 doesn't work under 4.3+
11192 collect2name=`${CC} -print-prog-name=collect2`
11193 if test -f "$collect2name" && \
11194 strings "$collect2name" | grep resolve_lib_name >/dev/null
11195 then
11196 # We have reworked collect2
11198 else
11199 # We have old collect2
11200 hardcode_direct=unsupported
11201 # It fails to find uninstalled libraries when the uninstalled
11202 # path is not listed in the libpath. Setting hardcode_minus_L
11203 # to unsupported forces relinking
11204 hardcode_minus_L=yes
11205 hardcode_libdir_flag_spec='-L$libdir'
11206 hardcode_libdir_separator=
11209 esac
11210 shared_flag='-shared'
11211 if test "$aix_use_runtimelinking" = yes; then
11212 shared_flag="$shared_flag "'${wl}-G'
11214 else
11215 # not using gcc
11216 if test "$host_cpu" = ia64; then
11217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11218 # chokes on -Wl,-G. The following line is correct:
11219 shared_flag='-G'
11220 else
11221 if test "$aix_use_runtimelinking" = yes; then
11222 shared_flag='${wl}-G'
11223 else
11224 shared_flag='${wl}-bM:SRE'
11229 # It seems that -bexpall does not export symbols beginning with
11230 # underscore (_), so it is better to generate a list of symbols to export.
11231 always_export_symbols=yes
11232 if test "$aix_use_runtimelinking" = yes; then
11233 # Warning - without using the other runtime loading flags (-brtl),
11234 # -berok will link without error, but may produce a broken library.
11235 allow_undefined_flag='-berok'
11236 # Determine the default libpath from the value encoded in an empty executable.
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11245 main ()
11249 return 0;
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest$ac_exeext &&
11269 $as_test_x conftest$ac_exeext; then
11271 lt_aix_libpath_sed='
11272 /Import File Strings/,/^$/ {
11273 /^0/ {
11274 s/^0 *\(.*\)$/\1/
11278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11279 # Check for a 64-bit object if we didn't find anything.
11280 if test -z "$aix_libpath"; then
11281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11283 else
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11291 conftest$ac_exeext conftest.$ac_ext
11292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11294 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11295 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"
11296 else
11297 if test "$host_cpu" = ia64; then
11298 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11299 allow_undefined_flag="-z nodefs"
11300 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"
11301 else
11302 # Determine the default libpath from the value encoded in an empty executable.
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11311 main ()
11315 return 0;
11317 _ACEOF
11318 rm -f conftest.$ac_objext conftest$ac_exeext
11319 if { (ac_try="$ac_link"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_link") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest$ac_exeext &&
11335 $as_test_x conftest$ac_exeext; then
11337 lt_aix_libpath_sed='
11338 /Import File Strings/,/^$/ {
11339 /^0/ {
11340 s/^0 *\(.*\)$/\1/
11344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11345 # Check for a 64-bit object if we didn't find anything.
11346 if test -z "$aix_libpath"; then
11347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11360 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11361 # Warning - without using the other run time loading flags,
11362 # -berok will link without error, but may produce a broken library.
11363 no_undefined_flag=' ${wl}-bernotok'
11364 allow_undefined_flag=' ${wl}-berok'
11365 # Exported symbols can be pulled into shared objects from archives
11366 whole_archive_flag_spec='$convenience'
11367 archive_cmds_need_lc=yes
11368 # This is similar to how AIX traditionally builds its shared libraries.
11369 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'
11374 amigaos*)
11375 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)'
11376 hardcode_libdir_flag_spec='-L$libdir'
11377 hardcode_minus_L=yes
11378 # see comment about different semantics on the GNU ld section
11379 ld_shlibs=no
11382 bsdi[45]*)
11383 export_dynamic_flag_spec=-rdynamic
11386 cygwin* | mingw* | pw32*)
11387 # When not using gcc, we currently assume that we are using
11388 # Microsoft Visual C++.
11389 # hardcode_libdir_flag_spec is actually meaningless, as there is
11390 # no search path for DLLs.
11391 hardcode_libdir_flag_spec=' '
11392 allow_undefined_flag=unsupported
11393 # Tell ltmain to make .lib files, not .a files.
11394 libext=lib
11395 # Tell ltmain to make .dll files, not .so files.
11396 shrext_cmds=".dll"
11397 # FIXME: Setting linknames here is a bad hack.
11398 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11399 # The linker will automatically build a .lib file if we build a DLL.
11400 old_archive_From_new_cmds='true'
11401 # FIXME: Should let the user specify the lib program.
11402 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11403 fix_srcfile_path='`cygpath -w "$srcfile"`'
11404 enable_shared_with_static_runtimes=yes
11407 darwin* | rhapsody*)
11408 case $host_os in
11409 rhapsody* | darwin1.[012])
11410 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11412 *) # Darwin 1.3 on
11413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11414 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11415 else
11416 case ${MACOSX_DEPLOYMENT_TARGET} in
11417 10.[012])
11418 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11420 10.*)
11421 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11423 esac
11426 esac
11427 archive_cmds_need_lc=no
11428 hardcode_direct=no
11429 hardcode_automatic=yes
11430 hardcode_shlibpath_var=unsupported
11431 whole_archive_flag_spec=''
11432 link_all_deplibs=yes
11433 if test "$GCC" = yes ; then
11434 output_verbose_link_cmd='echo'
11435 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11436 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11437 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}"
11438 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}"
11439 else
11440 case $cc_basename in
11441 xlc*)
11442 output_verbose_link_cmd='echo'
11443 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11444 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11446 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}'
11447 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}'
11450 ld_shlibs=no
11452 esac
11456 dgux*)
11457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_libdir_flag_spec='-L$libdir'
11459 hardcode_shlibpath_var=no
11462 freebsd1*)
11463 ld_shlibs=no
11466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11467 # support. Future versions do this automatically, but an explicit c++rt0.o
11468 # does not break anything, and helps significantly (at the cost of a little
11469 # extra space).
11470 freebsd2.2*)
11471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11472 hardcode_libdir_flag_spec='-R$libdir'
11473 hardcode_direct=yes
11474 hardcode_shlibpath_var=no
11477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11478 freebsd2*)
11479 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11480 hardcode_direct=yes
11481 hardcode_minus_L=yes
11482 hardcode_shlibpath_var=no
11485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11486 freebsd* | dragonfly*)
11487 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11488 hardcode_libdir_flag_spec='-R$libdir'
11489 hardcode_direct=yes
11490 hardcode_shlibpath_var=no
11493 hpux9*)
11494 if test "$GCC" = yes; then
11495 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'
11496 else
11497 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'
11499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11500 hardcode_libdir_separator=:
11501 hardcode_direct=yes
11503 # hardcode_minus_L: Not really in the search PATH,
11504 # but as the default location of the library.
11505 hardcode_minus_L=yes
11506 export_dynamic_flag_spec='${wl}-E'
11509 hpux10*)
11510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11512 else
11513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11515 if test "$with_gnu_ld" = no; then
11516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11517 hardcode_libdir_separator=:
11519 hardcode_direct=yes
11520 export_dynamic_flag_spec='${wl}-E'
11522 # hardcode_minus_L: Not really in the search PATH,
11523 # but as the default location of the library.
11524 hardcode_minus_L=yes
11528 hpux11*)
11529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11530 case $host_cpu in
11531 hppa*64*)
11532 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11534 ia64*)
11535 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11538 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11540 esac
11541 else
11542 case $host_cpu in
11543 hppa*64*)
11544 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11546 ia64*)
11547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11552 esac
11554 if test "$with_gnu_ld" = no; then
11555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11556 hardcode_libdir_separator=:
11558 case $host_cpu in
11559 hppa*64*|ia64*)
11560 hardcode_libdir_flag_spec_ld='+b $libdir'
11561 hardcode_direct=no
11562 hardcode_shlibpath_var=no
11565 hardcode_direct=yes
11566 export_dynamic_flag_spec='${wl}-E'
11568 # hardcode_minus_L: Not really in the search PATH,
11569 # but as the default location of the library.
11570 hardcode_minus_L=yes
11572 esac
11576 irix5* | irix6* | nonstopux*)
11577 if test "$GCC" = yes; then
11578 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'
11579 else
11580 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'
11581 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11584 hardcode_libdir_separator=:
11585 link_all_deplibs=yes
11588 netbsd* | netbsdelf*-gnu)
11589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11591 else
11592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11594 hardcode_libdir_flag_spec='-R$libdir'
11595 hardcode_direct=yes
11596 hardcode_shlibpath_var=no
11599 newsos6)
11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11601 hardcode_direct=yes
11602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11603 hardcode_libdir_separator=:
11604 hardcode_shlibpath_var=no
11607 openbsd*)
11608 if test -f /usr/libexec/ld.so; then
11609 hardcode_direct=yes
11610 hardcode_shlibpath_var=no
11611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11615 export_dynamic_flag_spec='${wl}-E'
11616 else
11617 case $host_os in
11618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11620 hardcode_libdir_flag_spec='-R$libdir'
11623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11626 esac
11628 else
11629 ld_shlibs=no
11633 os2*)
11634 hardcode_libdir_flag_spec='-L$libdir'
11635 hardcode_minus_L=yes
11636 allow_undefined_flag=unsupported
11637 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'
11638 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11641 osf3*)
11642 if test "$GCC" = yes; then
11643 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11644 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'
11645 else
11646 allow_undefined_flag=' -expect_unresolved \*'
11647 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'
11649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11650 hardcode_libdir_separator=:
11653 osf4* | osf5*) # as osf3* with the addition of -msym flag
11654 if test "$GCC" = yes; then
11655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11656 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'
11657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11658 else
11659 allow_undefined_flag=' -expect_unresolved \*'
11660 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'
11661 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11662 $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'
11664 # Both c and cxx compiler support -rpath directly
11665 hardcode_libdir_flag_spec='-rpath $libdir'
11667 hardcode_libdir_separator=:
11670 solaris*)
11671 no_undefined_flag=' -z text'
11672 if test "$GCC" = yes; then
11673 wlarc='${wl}'
11674 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11676 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11677 else
11678 wlarc=''
11679 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11680 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11681 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11683 hardcode_libdir_flag_spec='-R$libdir'
11684 hardcode_shlibpath_var=no
11685 case $host_os in
11686 solaris2.[0-5] | solaris2.[0-5].*) ;;
11688 # The compiler driver will combine and reorder linker options,
11689 # but understands `-z linker_flag'. GCC discards it without `$wl',
11690 # but is careful enough not to reorder.
11691 # Supported since Solaris 2.6 (maybe 2.5.1?)
11692 if test "$GCC" = yes; then
11693 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11694 else
11695 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11698 esac
11699 link_all_deplibs=yes
11702 sunos4*)
11703 if test "x$host_vendor" = xsequent; then
11704 # Use $CC to link under sequent, because it throws in some extra .o
11705 # files that make .init and .fini sections work.
11706 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11707 else
11708 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11710 hardcode_libdir_flag_spec='-L$libdir'
11711 hardcode_direct=yes
11712 hardcode_minus_L=yes
11713 hardcode_shlibpath_var=no
11716 sysv4)
11717 case $host_vendor in
11718 sni)
11719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11720 hardcode_direct=yes # is this really true???
11722 siemens)
11723 ## LD is ld it makes a PLAMLIB
11724 ## CC just makes a GrossModule.
11725 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11726 reload_cmds='$CC -r -o $output$reload_objs'
11727 hardcode_direct=no
11729 motorola)
11730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11731 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11733 esac
11734 runpath_var='LD_RUN_PATH'
11735 hardcode_shlibpath_var=no
11738 sysv4.3*)
11739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11740 hardcode_shlibpath_var=no
11741 export_dynamic_flag_spec='-Bexport'
11744 sysv4*MP*)
11745 if test -d /usr/nec; then
11746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11747 hardcode_shlibpath_var=no
11748 runpath_var=LD_RUN_PATH
11749 hardcode_runpath_var=yes
11750 ld_shlibs=yes
11754 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11755 no_undefined_flag='${wl}-z,text'
11756 archive_cmds_need_lc=no
11757 hardcode_shlibpath_var=no
11758 runpath_var='LD_RUN_PATH'
11760 if test "$GCC" = yes; then
11761 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 else
11764 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11765 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11769 sysv5* | sco3.2v5* | sco5v6*)
11770 # Note: We can NOT use -z defs as we might desire, because we do not
11771 # link with -lc, and that would cause any symbols used from libc to
11772 # always be unresolved, which means just about no library would
11773 # ever link correctly. If we're not using GNU ld we use -z text
11774 # though, which does catch some bad symbols but isn't as heavy-handed
11775 # as -z defs.
11776 no_undefined_flag='${wl}-z,text'
11777 allow_undefined_flag='${wl}-z,nodefs'
11778 archive_cmds_need_lc=no
11779 hardcode_shlibpath_var=no
11780 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11781 hardcode_libdir_separator=':'
11782 link_all_deplibs=yes
11783 export_dynamic_flag_spec='${wl}-Bexport'
11784 runpath_var='LD_RUN_PATH'
11786 if test "$GCC" = yes; then
11787 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 else
11790 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11795 uts4*)
11796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11797 hardcode_libdir_flag_spec='-L$libdir'
11798 hardcode_shlibpath_var=no
11802 ld_shlibs=no
11804 esac
11807 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11808 echo "${ECHO_T}$ld_shlibs" >&6; }
11809 test "$ld_shlibs" = no && can_build_shared=no
11812 # Do we need to explicitly link libc?
11814 case "x$archive_cmds_need_lc" in
11815 x|xyes)
11816 # Assume -lc should be added
11817 archive_cmds_need_lc=yes
11819 if test "$enable_shared" = yes && test "$GCC" = yes; then
11820 case $archive_cmds in
11821 *'~'*)
11822 # FIXME: we may have to deal with multi-command sequences.
11824 '$CC '*)
11825 # Test whether the compiler implicitly links with -lc since on some
11826 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11827 # to ld, don't add -lc before -lgcc.
11828 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11829 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11830 $rm conftest*
11831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } 2>conftest.err; then
11838 soname=conftest
11839 lib=conftest
11840 libobjs=conftest.$ac_objext
11841 deplibs=
11842 wl=$lt_prog_compiler_wl
11843 pic_flag=$lt_prog_compiler_pic
11844 compiler_flags=-v
11845 linker_flags=-v
11846 verstring=
11847 output_objdir=.
11848 libname=conftest
11849 lt_save_allow_undefined_flag=$allow_undefined_flag
11850 allow_undefined_flag=
11851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11852 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }
11856 then
11857 archive_cmds_need_lc=no
11858 else
11859 archive_cmds_need_lc=yes
11861 allow_undefined_flag=$lt_save_allow_undefined_flag
11862 else
11863 cat conftest.err 1>&5
11865 $rm conftest*
11866 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11867 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11869 esac
11872 esac
11874 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11875 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11876 library_names_spec=
11877 libname_spec='lib$name'
11878 soname_spec=
11879 shrext_cmds=".so"
11880 postinstall_cmds=
11881 postuninstall_cmds=
11882 finish_cmds=
11883 finish_eval=
11884 shlibpath_var=
11885 shlibpath_overrides_runpath=unknown
11886 version_type=none
11887 dynamic_linker="$host_os ld.so"
11888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11890 if test "$GCC" = yes; then
11891 case $host_os in
11892 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11893 *) lt_awk_arg="/^libraries:/" ;;
11894 esac
11895 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11896 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11897 # if the path contains ";" then we assume it to be the separator
11898 # otherwise default to the standard path separator (i.e. ":") - it is
11899 # assumed that no part of a normal pathname contains ";" but that should
11900 # okay in the real world where ";" in dirpaths is itself problematic.
11901 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11902 else
11903 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11905 # Ok, now we have the path, separated by spaces, we can step through it
11906 # and add multilib dir if necessary.
11907 lt_tmp_lt_search_path_spec=
11908 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11909 for lt_sys_path in $lt_search_path_spec; do
11910 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11912 else
11913 test -d "$lt_sys_path" && \
11914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11916 done
11917 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11918 BEGIN {RS=" "; FS="/|\n";} {
11919 lt_foo="";
11920 lt_count=0;
11921 for (lt_i = NF; lt_i > 0; lt_i--) {
11922 if ($lt_i != "" && $lt_i != ".") {
11923 if ($lt_i == "..") {
11924 lt_count++;
11925 } else {
11926 if (lt_count == 0) {
11927 lt_foo="/" $lt_i lt_foo;
11928 } else {
11929 lt_count--;
11934 if (lt_foo != "") { lt_freq[lt_foo]++; }
11935 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11937 sys_lib_search_path_spec=`echo $lt_search_path_spec`
11938 else
11939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11941 need_lib_prefix=unknown
11942 hardcode_into_libs=no
11944 # when you set need_version to no, make sure it does not cause -set_version
11945 # flags to be left without arguments
11946 need_version=unknown
11948 case $host_os in
11949 aix3*)
11950 version_type=linux
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11952 shlibpath_var=LIBPATH
11954 # AIX 3 has no versioning support, so we append a major version to the name.
11955 soname_spec='${libname}${release}${shared_ext}$major'
11958 aix[4-9]*)
11959 version_type=linux
11960 need_lib_prefix=no
11961 need_version=no
11962 hardcode_into_libs=yes
11963 if test "$host_cpu" = ia64; then
11964 # AIX 5 supports IA64
11965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 else
11968 # With GCC up to 2.95.x, collect2 would create an import file
11969 # for dependence libraries. The import file would start with
11970 # the line `#! .'. This would cause the generated library to
11971 # depend on `.', always an invalid library. This was fixed in
11972 # development snapshots of GCC prior to 3.0.
11973 case $host_os in
11974 aix4 | aix4.[01] | aix4.[01].*)
11975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11976 echo ' yes '
11977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11979 else
11980 can_build_shared=no
11983 esac
11984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11985 # soname into executable. Probably we can add versioning support to
11986 # collect2, so additional links can be useful in future.
11987 if test "$aix_use_runtimelinking" = yes; then
11988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11989 # instead of lib<name>.a to let people know that these are not
11990 # typical AIX shared libraries.
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11992 else
11993 # We preserve .a as extension for shared libraries through AIX4.2
11994 # and later when we are not doing run time linking.
11995 library_names_spec='${libname}${release}.a $libname.a'
11996 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LIBPATH
12002 amigaos*)
12003 library_names_spec='$libname.ixlibrary $libname.a'
12004 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12005 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'
12008 beos*)
12009 library_names_spec='${libname}${shared_ext}'
12010 dynamic_linker="$host_os ld.so"
12011 shlibpath_var=LIBRARY_PATH
12014 bsdi[45]*)
12015 version_type=linux
12016 need_version=no
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12023 # the default ld.so.conf also contains /usr/contrib/lib and
12024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12025 # libtool to hard-code these into programs
12028 cygwin* | mingw* | pw32*)
12029 version_type=windows
12030 shrext_cmds=".dll"
12031 need_version=no
12032 need_lib_prefix=no
12034 case $GCC,$host_os in
12035 yes,cygwin* | yes,mingw* | yes,pw32*)
12036 library_names_spec='$libname.dll.a'
12037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12038 postinstall_cmds='base_file=`basename \${file}`~
12039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12040 dldir=$destdir/`dirname \$dlpath`~
12041 test -d \$dldir || mkdir -p \$dldir~
12042 $install_prog $dir/$dlname \$dldir/$dlname~
12043 chmod a+x \$dldir/$dlname'
12044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12045 dlpath=$dir/\$dldll~
12046 $rm \$dlpath'
12047 shlibpath_overrides_runpath=yes
12049 case $host_os in
12050 cygwin*)
12051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12055 mingw*)
12056 # MinGW DLLs use traditional 'lib' prefix
12057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12060 # It is most probably a Windows format PATH printed by
12061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12062 # path with ; separators, and with drive letters. We can handle the
12063 # drive letters (cygwin fileutils understands them), so leave them,
12064 # especially as we might pass files found there to a mingw objdump,
12065 # which wouldn't understand a cygwinified path. Ahh.
12066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12067 else
12068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12071 pw32*)
12072 # pw32 DLLs use 'pw' prefix rather than 'lib'
12073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12075 esac
12079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12081 esac
12082 dynamic_linker='Win32 ld.exe'
12083 # FIXME: first we should search . and the directory the executable is in
12084 shlibpath_var=PATH
12087 darwin* | rhapsody*)
12088 dynamic_linker="$host_os dyld"
12089 version_type=darwin
12090 need_lib_prefix=no
12091 need_version=no
12092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12093 soname_spec='${libname}${release}${major}$shared_ext'
12094 shlibpath_overrides_runpath=yes
12095 shlibpath_var=DYLD_LIBRARY_PATH
12096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12102 dgux*)
12103 version_type=linux
12104 need_lib_prefix=no
12105 need_version=no
12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12107 soname_spec='${libname}${release}${shared_ext}$major'
12108 shlibpath_var=LD_LIBRARY_PATH
12111 freebsd1*)
12112 dynamic_linker=no
12115 freebsd* | dragonfly*)
12116 # DragonFly does not have aout. When/if they implement a new
12117 # versioning mechanism, adjust this.
12118 if test -x /usr/bin/objformat; then
12119 objformat=`/usr/bin/objformat`
12120 else
12121 case $host_os in
12122 freebsd[123]*) objformat=aout ;;
12123 *) objformat=elf ;;
12124 esac
12126 version_type=freebsd-$objformat
12127 case $version_type in
12128 freebsd-elf*)
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12130 need_version=no
12131 need_lib_prefix=no
12133 freebsd-*)
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12135 need_version=yes
12137 esac
12138 shlibpath_var=LD_LIBRARY_PATH
12139 case $host_os in
12140 freebsd2*)
12141 shlibpath_overrides_runpath=yes
12143 freebsd3.[01]* | freebsdelf3.[01]*)
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12149 shlibpath_overrides_runpath=no
12150 hardcode_into_libs=yes
12152 *) # from 4.6 on, and DragonFly
12153 shlibpath_overrides_runpath=yes
12154 hardcode_into_libs=yes
12156 esac
12159 gnu*)
12160 version_type=linux
12161 need_lib_prefix=no
12162 need_version=no
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 hardcode_into_libs=yes
12169 hpux9* | hpux10* | hpux11*)
12170 # Give a soname corresponding to the major version so that dld.sl refuses to
12171 # link against other versions.
12172 version_type=sunos
12173 need_lib_prefix=no
12174 need_version=no
12175 case $host_cpu in
12176 ia64*)
12177 shrext_cmds='.so'
12178 hardcode_into_libs=yes
12179 dynamic_linker="$host_os dld.so"
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12183 soname_spec='${libname}${release}${shared_ext}$major'
12184 if test "X$HPUX_IA64_MODE" = X32; then
12185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12186 else
12187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12191 hppa*64*)
12192 shrext_cmds='.sl'
12193 hardcode_into_libs=yes
12194 dynamic_linker="$host_os dld.sl"
12195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12203 shrext_cmds='.sl'
12204 dynamic_linker="$host_os dld.sl"
12205 shlibpath_var=SHLIB_PATH
12206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208 soname_spec='${libname}${release}${shared_ext}$major'
12210 esac
12211 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12212 postinstall_cmds='chmod 555 $lib'
12215 interix[3-9]*)
12216 version_type=linux
12217 need_lib_prefix=no
12218 need_version=no
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12220 soname_spec='${libname}${release}${shared_ext}$major'
12221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=no
12224 hardcode_into_libs=yes
12227 irix5* | irix6* | nonstopux*)
12228 case $host_os in
12229 nonstopux*) version_type=nonstopux ;;
12231 if test "$lt_cv_prog_gnu_ld" = yes; then
12232 version_type=linux
12233 else
12234 version_type=irix
12235 fi ;;
12236 esac
12237 need_lib_prefix=no
12238 need_version=no
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12241 case $host_os in
12242 irix5* | nonstopux*)
12243 libsuff= shlibsuff=
12246 case $LD in # libtool.m4 will add one of these switches to LD
12247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12248 libsuff= shlibsuff= libmagic=32-bit;;
12249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12250 libsuff=32 shlibsuff=N32 libmagic=N32;;
12251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12253 *) libsuff= shlibsuff= libmagic=never-match;;
12254 esac
12256 esac
12257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12258 shlibpath_overrides_runpath=no
12259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12261 hardcode_into_libs=yes
12264 # No shared lib support for Linux oldld, aout, or coff.
12265 linux*oldld* | linux*aout* | linux*coff*)
12266 dynamic_linker=no
12269 # This must be Linux ELF.
12270 linux* | k*bsd*-gnu)
12271 version_type=linux
12272 need_lib_prefix=no
12273 need_version=no
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=no
12279 # This implies no fast_install, which is unacceptable.
12280 # Some rework will be needed to allow for fast_install
12281 # before this can be enabled.
12282 hardcode_into_libs=yes
12284 # Append ld.so.conf contents to the search path
12285 if test -f /etc/ld.so.conf; then
12286 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' ' '`
12287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12290 # We used to test for /lib/ld.so.1 and disable shared libraries on
12291 # powerpc, because MkLinux only supported shared libraries with the
12292 # GNU dynamic linker. Since this was broken with cross compilers,
12293 # most powerpc-linux boxes support dynamic linking these days and
12294 # people can always --disable-shared, the test was removed, and we
12295 # assume the GNU/Linux dynamic linker is in use.
12296 dynamic_linker='GNU/Linux ld.so'
12299 netbsdelf*-gnu)
12300 version_type=linux
12301 need_lib_prefix=no
12302 need_version=no
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=no
12307 hardcode_into_libs=yes
12308 dynamic_linker='NetBSD ld.elf_so'
12311 netbsd*)
12312 version_type=sunos
12313 need_lib_prefix=no
12314 need_version=no
12315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12318 dynamic_linker='NetBSD (a.out) ld.so'
12319 else
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12321 soname_spec='${libname}${release}${shared_ext}$major'
12322 dynamic_linker='NetBSD ld.elf_so'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=yes
12326 hardcode_into_libs=yes
12329 newsos6)
12330 version_type=linux
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=yes
12336 nto-qnx*)
12337 version_type=linux
12338 need_lib_prefix=no
12339 need_version=no
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 soname_spec='${libname}${release}${shared_ext}$major'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 shlibpath_overrides_runpath=yes
12346 openbsd*)
12347 version_type=sunos
12348 sys_lib_dlsearch_path_spec="/usr/lib"
12349 need_lib_prefix=no
12350 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12351 case $host_os in
12352 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12353 *) need_version=no ;;
12354 esac
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12357 shlibpath_var=LD_LIBRARY_PATH
12358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12359 case $host_os in
12360 openbsd2.[89] | openbsd2.[89].*)
12361 shlibpath_overrides_runpath=no
12364 shlibpath_overrides_runpath=yes
12366 esac
12367 else
12368 shlibpath_overrides_runpath=yes
12372 os2*)
12373 libname_spec='$name'
12374 shrext_cmds=".dll"
12375 need_lib_prefix=no
12376 library_names_spec='$libname${shared_ext} $libname.a'
12377 dynamic_linker='OS/2 ld.exe'
12378 shlibpath_var=LIBPATH
12381 osf3* | osf4* | osf5*)
12382 version_type=osf
12383 need_lib_prefix=no
12384 need_version=no
12385 soname_spec='${libname}${release}${shared_ext}$major'
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12389 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12392 rdos*)
12393 dynamic_linker=no
12396 solaris*)
12397 version_type=linux
12398 need_lib_prefix=no
12399 need_version=no
12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12401 soname_spec='${libname}${release}${shared_ext}$major'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=yes
12404 hardcode_into_libs=yes
12405 # ldd complains unless libraries are executable
12406 postinstall_cmds='chmod +x $lib'
12409 sunos4*)
12410 version_type=sunos
12411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12412 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 shlibpath_overrides_runpath=yes
12415 if test "$with_gnu_ld" = yes; then
12416 need_lib_prefix=no
12418 need_version=yes
12421 sysv4 | sysv4.3*)
12422 version_type=linux
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12424 soname_spec='${libname}${release}${shared_ext}$major'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 case $host_vendor in
12427 sni)
12428 shlibpath_overrides_runpath=no
12429 need_lib_prefix=no
12430 export_dynamic_flag_spec='${wl}-Blargedynsym'
12431 runpath_var=LD_RUN_PATH
12433 siemens)
12434 need_lib_prefix=no
12436 motorola)
12437 need_lib_prefix=no
12438 need_version=no
12439 shlibpath_overrides_runpath=no
12440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12442 esac
12445 sysv4*MP*)
12446 if test -d /usr/nec ;then
12447 version_type=linux
12448 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12449 soname_spec='$libname${shared_ext}.$major'
12450 shlibpath_var=LD_LIBRARY_PATH
12454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12455 version_type=freebsd-elf
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 hardcode_into_libs=yes
12462 if test "$with_gnu_ld" = yes; then
12463 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12464 shlibpath_overrides_runpath=no
12465 else
12466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12467 shlibpath_overrides_runpath=yes
12468 case $host_os in
12469 sco3.2v5*)
12470 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12472 esac
12474 sys_lib_dlsearch_path_spec='/usr/lib'
12477 uts4*)
12478 version_type=linux
12479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12480 soname_spec='${libname}${release}${shared_ext}$major'
12481 shlibpath_var=LD_LIBRARY_PATH
12485 dynamic_linker=no
12487 esac
12488 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12489 echo "${ECHO_T}$dynamic_linker" >&6; }
12490 test "$dynamic_linker" = no && can_build_shared=no
12492 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12498 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12499 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12505 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12507 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12508 if test "$GCC" = yes; then
12509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12512 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12513 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12514 hardcode_action=
12515 if test -n "$hardcode_libdir_flag_spec" || \
12516 test -n "$runpath_var" || \
12517 test "X$hardcode_automatic" = "Xyes" ; then
12519 # We can hardcode non-existant directories.
12520 if test "$hardcode_direct" != no &&
12521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12522 # have to relink, otherwise we might link with an installed library
12523 # when we should be linking with a yet-to-be-installed one
12524 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12525 test "$hardcode_minus_L" != no; then
12526 # Linking always hardcodes the temporary library directory.
12527 hardcode_action=relink
12528 else
12529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12530 hardcode_action=immediate
12532 else
12533 # We cannot hardcode anything, or else we can only hardcode existing
12534 # directories.
12535 hardcode_action=unsupported
12537 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12538 echo "${ECHO_T}$hardcode_action" >&6; }
12540 if test "$hardcode_action" = relink; then
12541 # Fast installation is not supported
12542 enable_fast_install=no
12543 elif test "$shlibpath_overrides_runpath" = yes ||
12544 test "$enable_shared" = no; then
12545 # Fast installation is not necessary
12546 enable_fast_install=needless
12549 striplib=
12550 old_striplib=
12551 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12552 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12553 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12554 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12555 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12556 { echo "$as_me:$LINENO: result: yes" >&5
12557 echo "${ECHO_T}yes" >&6; }
12558 else
12559 # FIXME - insert some real tests, host_os isn't really good enough
12560 case $host_os in
12561 darwin*)
12562 if test -n "$STRIP" ; then
12563 striplib="$STRIP -x"
12564 old_striplib="$STRIP -S"
12565 { echo "$as_me:$LINENO: result: yes" >&5
12566 echo "${ECHO_T}yes" >&6; }
12567 else
12568 { echo "$as_me:$LINENO: result: no" >&5
12569 echo "${ECHO_T}no" >&6; }
12573 { echo "$as_me:$LINENO: result: no" >&5
12574 echo "${ECHO_T}no" >&6; }
12576 esac
12579 if test "x$enable_dlopen" != xyes; then
12580 enable_dlopen=unknown
12581 enable_dlopen_self=unknown
12582 enable_dlopen_self_static=unknown
12583 else
12584 lt_cv_dlopen=no
12585 lt_cv_dlopen_libs=
12587 case $host_os in
12588 beos*)
12589 lt_cv_dlopen="load_add_on"
12590 lt_cv_dlopen_libs=
12591 lt_cv_dlopen_self=yes
12594 mingw* | pw32*)
12595 lt_cv_dlopen="LoadLibrary"
12596 lt_cv_dlopen_libs=
12599 cygwin*)
12600 lt_cv_dlopen="dlopen"
12601 lt_cv_dlopen_libs=
12604 darwin*)
12605 # if libdl is installed we need to link against it
12606 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12607 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12608 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611 ac_check_lib_save_LIBS=$LIBS
12612 LIBS="-ldl $LIBS"
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char dlopen ();
12628 main ()
12630 return dlopen ();
12632 return 0;
12634 _ACEOF
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest$ac_exeext &&
12652 $as_test_x conftest$ac_exeext; then
12653 ac_cv_lib_dl_dlopen=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_lib_dl_dlopen=no
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12665 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12666 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12667 if test $ac_cv_lib_dl_dlopen = yes; then
12668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12669 else
12671 lt_cv_dlopen="dyld"
12672 lt_cv_dlopen_libs=
12673 lt_cv_dlopen_self=yes
12680 { echo "$as_me:$LINENO: checking for shl_load" >&5
12681 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12682 if test "${ac_cv_func_shl_load+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12693 #define shl_load innocuous_shl_load
12695 /* System header to define __stub macros and hopefully few prototypes,
12696 which can conflict with char shl_load (); below.
12697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12698 <limits.h> exists even on freestanding compilers. */
12700 #ifdef __STDC__
12701 # include <limits.h>
12702 #else
12703 # include <assert.h>
12704 #endif
12706 #undef shl_load
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char shl_load ();
12715 /* The GNU C library defines this for functions which it implements
12716 to always fail with ENOSYS. Some functions are actually named
12717 something starting with __ and the normal name is an alias. */
12718 #if defined __stub_shl_load || defined __stub___shl_load
12719 choke me
12720 #endif
12723 main ()
12725 return shl_load ();
12727 return 0;
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } && {
12744 test -z "$ac_c_werror_flag" ||
12745 test ! -s conftest.err
12746 } && test -s conftest$ac_exeext &&
12747 $as_test_x conftest$ac_exeext; then
12748 ac_cv_func_shl_load=yes
12749 else
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_cv_func_shl_load=no
12756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12757 conftest$ac_exeext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12760 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12761 if test $ac_cv_func_shl_load = yes; then
12762 lt_cv_dlopen="shl_load"
12763 else
12764 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12765 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12766 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-ldld $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 /* Override any GCC internal prototype to avoid an error.
12779 Use char because int might match the return type of a GCC
12780 builtin and then its argument prototype would still apply. */
12781 #ifdef __cplusplus
12782 extern "C"
12783 #endif
12784 char shl_load ();
12786 main ()
12788 return shl_load ();
12790 return 0;
12792 _ACEOF
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (ac_try="$ac_link"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest$ac_exeext &&
12810 $as_test_x conftest$ac_exeext; then
12811 ac_cv_lib_dld_shl_load=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 ac_cv_lib_dld_shl_load=no
12819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12820 conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12824 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12825 if test $ac_cv_lib_dld_shl_load = yes; then
12826 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12827 else
12828 { echo "$as_me:$LINENO: checking for dlopen" >&5
12829 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12830 if test "${ac_cv_func_dlopen+set}" = set; then
12831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 else
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12841 #define dlopen innocuous_dlopen
12843 /* System header to define __stub macros and hopefully few prototypes,
12844 which can conflict with char dlopen (); below.
12845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12846 <limits.h> exists even on freestanding compilers. */
12848 #ifdef __STDC__
12849 # include <limits.h>
12850 #else
12851 # include <assert.h>
12852 #endif
12854 #undef dlopen
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char dlopen ();
12863 /* The GNU C library defines this for functions which it implements
12864 to always fail with ENOSYS. Some functions are actually named
12865 something starting with __ and the normal name is an alias. */
12866 #if defined __stub_dlopen || defined __stub___dlopen
12867 choke me
12868 #endif
12871 main ()
12873 return dlopen ();
12875 return 0;
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (ac_try="$ac_link"
12880 case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_link") 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } && {
12892 test -z "$ac_c_werror_flag" ||
12893 test ! -s conftest.err
12894 } && test -s conftest$ac_exeext &&
12895 $as_test_x conftest$ac_exeext; then
12896 ac_cv_func_dlopen=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_func_dlopen=no
12904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12905 conftest$ac_exeext conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12908 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12909 if test $ac_cv_func_dlopen = yes; then
12910 lt_cv_dlopen="dlopen"
12911 else
12912 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12913 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917 ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-ldl $LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h. */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char dlopen ();
12934 main ()
12936 return dlopen ();
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12946 esac
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && {
12955 test -z "$ac_c_werror_flag" ||
12956 test ! -s conftest.err
12957 } && test -s conftest$ac_exeext &&
12958 $as_test_x conftest$ac_exeext; then
12959 ac_cv_lib_dl_dlopen=yes
12960 else
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_cv_lib_dl_dlopen=no
12967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12971 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12972 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12973 if test $ac_cv_lib_dl_dlopen = yes; then
12974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12975 else
12976 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12977 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lsvld $LIBS"
12983 cat >conftest.$ac_ext <<_ACEOF
12984 /* confdefs.h. */
12985 _ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12993 #ifdef __cplusplus
12994 extern "C"
12995 #endif
12996 char dlopen ();
12998 main ()
13000 return dlopen ();
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext conftest$ac_exeext
13006 if { (ac_try="$ac_link"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_link") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest$ac_exeext &&
13022 $as_test_x conftest$ac_exeext; then
13023 ac_cv_lib_svld_dlopen=yes
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_lib_svld_dlopen=no
13031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13035 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13036 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13037 if test $ac_cv_lib_svld_dlopen = yes; then
13038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13039 else
13040 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13041 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13042 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045 ac_check_lib_save_LIBS=$LIBS
13046 LIBS="-ldld $LIBS"
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char dld_link ();
13062 main ()
13064 return dld_link ();
13066 return 0;
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } && {
13083 test -z "$ac_c_werror_flag" ||
13084 test ! -s conftest.err
13085 } && test -s conftest$ac_exeext &&
13086 $as_test_x conftest$ac_exeext; then
13087 ac_cv_lib_dld_dld_link=yes
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 ac_cv_lib_dld_dld_link=no
13095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13096 conftest$ac_exeext conftest.$ac_ext
13097 LIBS=$ac_check_lib_save_LIBS
13099 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13100 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13101 if test $ac_cv_lib_dld_dld_link = yes; then
13102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13121 esac
13123 if test "x$lt_cv_dlopen" != xno; then
13124 enable_dlopen=yes
13125 else
13126 enable_dlopen=no
13129 case $lt_cv_dlopen in
13130 dlopen)
13131 save_CPPFLAGS="$CPPFLAGS"
13132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13134 save_LDFLAGS="$LDFLAGS"
13135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13137 save_LIBS="$LIBS"
13138 LIBS="$lt_cv_dlopen_libs $LIBS"
13140 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13141 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13142 if test "${lt_cv_dlopen_self+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145 if test "$cross_compiling" = yes; then :
13146 lt_cv_dlopen_self=cross
13147 else
13148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13149 lt_status=$lt_dlunknown
13150 cat > conftest.$ac_ext <<EOF
13151 #line 13151 "configure"
13152 #include "confdefs.h"
13154 #if HAVE_DLFCN_H
13155 #include <dlfcn.h>
13156 #endif
13158 #include <stdio.h>
13160 #ifdef RTLD_GLOBAL
13161 # define LT_DLGLOBAL RTLD_GLOBAL
13162 #else
13163 # ifdef DL_GLOBAL
13164 # define LT_DLGLOBAL DL_GLOBAL
13165 # else
13166 # define LT_DLGLOBAL 0
13167 # endif
13168 #endif
13170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13171 find out it does not work in some platform. */
13172 #ifndef LT_DLLAZY_OR_NOW
13173 # ifdef RTLD_LAZY
13174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13175 # else
13176 # ifdef DL_LAZY
13177 # define LT_DLLAZY_OR_NOW DL_LAZY
13178 # else
13179 # ifdef RTLD_NOW
13180 # define LT_DLLAZY_OR_NOW RTLD_NOW
13181 # else
13182 # ifdef DL_NOW
13183 # define LT_DLLAZY_OR_NOW DL_NOW
13184 # else
13185 # define LT_DLLAZY_OR_NOW 0
13186 # endif
13187 # endif
13188 # endif
13189 # endif
13190 #endif
13192 #ifdef __cplusplus
13193 extern "C" void exit (int);
13194 #endif
13196 void fnord() { int i=42;}
13197 int main ()
13199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13200 int status = $lt_dlunknown;
13202 if (self)
13204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13206 /* dlclose (self); */
13208 else
13209 puts (dlerror ());
13211 exit (status);
13214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13215 (eval $ac_link) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13219 (./conftest; exit; ) >&5 2>/dev/null
13220 lt_status=$?
13221 case x$lt_status in
13222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13225 esac
13226 else :
13227 # compilation failed
13228 lt_cv_dlopen_self=no
13231 rm -fr conftest*
13235 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13236 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13238 if test "x$lt_cv_dlopen_self" = xyes; then
13239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13240 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13241 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13242 if test "${lt_cv_dlopen_self_static+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245 if test "$cross_compiling" = yes; then :
13246 lt_cv_dlopen_self_static=cross
13247 else
13248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249 lt_status=$lt_dlunknown
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13251 "configure"
13252 #include "confdefs.h"
13254 #if HAVE_DLFCN_H
13255 #include <dlfcn.h>
13256 #endif
13258 #include <stdio.h>
13260 #ifdef RTLD_GLOBAL
13261 # define LT_DLGLOBAL RTLD_GLOBAL
13262 #else
13263 # ifdef DL_GLOBAL
13264 # define LT_DLGLOBAL DL_GLOBAL
13265 # else
13266 # define LT_DLGLOBAL 0
13267 # endif
13268 #endif
13270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271 find out it does not work in some platform. */
13272 #ifndef LT_DLLAZY_OR_NOW
13273 # ifdef RTLD_LAZY
13274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13275 # else
13276 # ifdef DL_LAZY
13277 # define LT_DLLAZY_OR_NOW DL_LAZY
13278 # else
13279 # ifdef RTLD_NOW
13280 # define LT_DLLAZY_OR_NOW RTLD_NOW
13281 # else
13282 # ifdef DL_NOW
13283 # define LT_DLLAZY_OR_NOW DL_NOW
13284 # else
13285 # define LT_DLLAZY_OR_NOW 0
13286 # endif
13287 # endif
13288 # endif
13289 # endif
13290 #endif
13292 #ifdef __cplusplus
13293 extern "C" void exit (int);
13294 #endif
13296 void fnord() { int i=42;}
13297 int main ()
13299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300 int status = $lt_dlunknown;
13302 if (self)
13304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13306 /* dlclose (self); */
13308 else
13309 puts (dlerror ());
13311 exit (status);
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315 (eval $ac_link) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13319 (./conftest; exit; ) >&5 2>/dev/null
13320 lt_status=$?
13321 case x$lt_status in
13322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13325 esac
13326 else :
13327 # compilation failed
13328 lt_cv_dlopen_self_static=no
13331 rm -fr conftest*
13335 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13336 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13339 CPPFLAGS="$save_CPPFLAGS"
13340 LDFLAGS="$save_LDFLAGS"
13341 LIBS="$save_LIBS"
13343 esac
13345 case $lt_cv_dlopen_self in
13346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13347 *) enable_dlopen_self=unknown ;;
13348 esac
13350 case $lt_cv_dlopen_self_static in
13351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13352 *) enable_dlopen_self_static=unknown ;;
13353 esac
13357 # Report which library types will actually be built
13358 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13359 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13360 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13361 echo "${ECHO_T}$can_build_shared" >&6; }
13363 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13364 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13365 test "$can_build_shared" = "no" && enable_shared=no
13367 # On AIX, shared libraries and static libraries use the same namespace, and
13368 # are all built from PIC.
13369 case $host_os in
13370 aix3*)
13371 test "$enable_shared" = yes && enable_static=no
13372 if test -n "$RANLIB"; then
13373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13374 postinstall_cmds='$RANLIB $lib'
13378 aix[4-9]*)
13379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13380 test "$enable_shared" = yes && enable_static=no
13383 esac
13384 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13385 echo "${ECHO_T}$enable_shared" >&6; }
13387 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13388 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13389 # Make sure either enable_shared or enable_static is yes.
13390 test "$enable_shared" = yes || enable_static=yes
13391 { echo "$as_me:$LINENO: result: $enable_static" >&5
13392 echo "${ECHO_T}$enable_static" >&6; }
13394 # The else clause should only fire when bootstrapping the
13395 # libtool distribution, otherwise you forgot to ship ltmain.sh
13396 # with your package, and you will get complaints that there are
13397 # no rules to generate ltmain.sh.
13398 if test -f "$ltmain"; then
13399 # See if we are running on zsh, and set the options which allow our commands through
13400 # without removal of \ escapes.
13401 if test -n "${ZSH_VERSION+set}" ; then
13402 setopt NO_GLOB_SUBST
13404 # Now quote all the things that may contain metacharacters while being
13405 # careful not to overquote the AC_SUBSTed values. We take copies of the
13406 # variables and quote the copies for generation of the libtool script.
13407 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13408 SED SHELL STRIP \
13409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13411 deplibs_check_method reload_flag reload_cmds need_locks \
13412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13413 lt_cv_sys_global_symbol_to_c_name_address \
13414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13415 old_postinstall_cmds old_postuninstall_cmds \
13416 compiler \
13417 CC \
13418 LD \
13419 lt_prog_compiler_wl \
13420 lt_prog_compiler_pic \
13421 lt_prog_compiler_static \
13422 lt_prog_compiler_no_builtin_flag \
13423 export_dynamic_flag_spec \
13424 thread_safe_flag_spec \
13425 whole_archive_flag_spec \
13426 enable_shared_with_static_runtimes \
13427 old_archive_cmds \
13428 old_archive_from_new_cmds \
13429 predep_objects \
13430 postdep_objects \
13431 predeps \
13432 postdeps \
13433 compiler_lib_search_path \
13434 compiler_lib_search_dirs \
13435 archive_cmds \
13436 archive_expsym_cmds \
13437 postinstall_cmds \
13438 postuninstall_cmds \
13439 old_archive_from_expsyms_cmds \
13440 allow_undefined_flag \
13441 no_undefined_flag \
13442 export_symbols_cmds \
13443 hardcode_libdir_flag_spec \
13444 hardcode_libdir_flag_spec_ld \
13445 hardcode_libdir_separator \
13446 hardcode_automatic \
13447 module_cmds \
13448 module_expsym_cmds \
13449 lt_cv_prog_compiler_c_o \
13450 fix_srcfile_path \
13451 exclude_expsyms \
13452 include_expsyms; do
13454 case $var in
13455 old_archive_cmds | \
13456 old_archive_from_new_cmds | \
13457 archive_cmds | \
13458 archive_expsym_cmds | \
13459 module_cmds | \
13460 module_expsym_cmds | \
13461 old_archive_from_expsyms_cmds | \
13462 export_symbols_cmds | \
13463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13464 postinstall_cmds | postuninstall_cmds | \
13465 old_postinstall_cmds | old_postuninstall_cmds | \
13466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13467 # Double-quote double-evaled strings.
13468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13473 esac
13474 done
13476 case $lt_echo in
13477 *'\$0 --fallback-echo"')
13478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13480 esac
13482 cfgfile="${ofile}T"
13483 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13484 $rm -f "$cfgfile"
13485 { echo "$as_me:$LINENO: creating $ofile" >&5
13486 echo "$as_me: creating $ofile" >&6;}
13488 cat <<__EOF__ >> "$cfgfile"
13489 #! $SHELL
13491 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13492 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13495 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13496 # Free Software Foundation, Inc.
13498 # This file is part of GNU Libtool:
13499 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13501 # This program is free software; you can redistribute it and/or modify
13502 # it under the terms of the GNU General Public License as published by
13503 # the Free Software Foundation; either version 2 of the License, or
13504 # (at your option) any later version.
13506 # This program is distributed in the hope that it will be useful, but
13507 # WITHOUT ANY WARRANTY; without even the implied warranty of
13508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13509 # General Public License for more details.
13511 # You should have received a copy of the GNU General Public License
13512 # along with this program; if not, write to the Free Software
13513 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13515 # As a special exception to the GNU General Public License, if you
13516 # distribute this file as part of a program that contains a
13517 # configuration script generated by Autoconf, you may include it under
13518 # the same distribution terms that you use for the rest of that program.
13520 # A sed program that does not truncate output.
13521 SED=$lt_SED
13523 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13524 Xsed="$SED -e 1s/^X//"
13526 # The HP-UX ksh and POSIX shell print the target directory to stdout
13527 # if CDPATH is set.
13528 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13530 # The names of the tagged configurations supported by this script.
13531 available_tags=
13533 # ### BEGIN LIBTOOL CONFIG
13535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13537 # Shell to use when invoking shell scripts.
13538 SHELL=$lt_SHELL
13540 # Whether or not to build shared libraries.
13541 build_libtool_libs=$enable_shared
13543 # Whether or not to build static libraries.
13544 build_old_libs=$enable_static
13546 # Whether or not to add -lc for building shared libraries.
13547 build_libtool_need_lc=$archive_cmds_need_lc
13549 # Whether or not to disallow shared libs when runtime libs are static
13550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13552 # Whether or not to optimize for fast installation.
13553 fast_install=$enable_fast_install
13555 # The host system.
13556 host_alias=$host_alias
13557 host=$host
13558 host_os=$host_os
13560 # The build system.
13561 build_alias=$build_alias
13562 build=$build
13563 build_os=$build_os
13565 # An echo program that does not interpret backslashes.
13566 echo=$lt_echo
13568 # The archiver.
13569 AR=$lt_AR
13570 AR_FLAGS=$lt_AR_FLAGS
13572 # A C compiler.
13573 LTCC=$lt_LTCC
13575 # LTCC compiler flags.
13576 LTCFLAGS=$lt_LTCFLAGS
13578 # A language-specific compiler.
13579 CC=$lt_compiler
13581 # Is the compiler the GNU C compiler?
13582 with_gcc=$GCC
13584 # An ERE matcher.
13585 EGREP=$lt_EGREP
13587 # The linker used to build libraries.
13588 LD=$lt_LD
13590 # Whether we need hard or soft links.
13591 LN_S=$lt_LN_S
13593 # A BSD-compatible nm program.
13594 NM=$lt_NM
13596 # A symbol stripping program
13597 STRIP=$lt_STRIP
13599 # Used to examine libraries when file_magic_cmd begins "file"
13600 MAGIC_CMD=$MAGIC_CMD
13602 # Used on cygwin: DLL creation program.
13603 DLLTOOL="$DLLTOOL"
13605 # Used on cygwin: object dumper.
13606 OBJDUMP="$OBJDUMP"
13608 # Used on cygwin: assembler.
13609 AS="$AS"
13611 # The name of the directory that contains temporary libtool files.
13612 objdir=$objdir
13614 # How to create reloadable object files.
13615 reload_flag=$lt_reload_flag
13616 reload_cmds=$lt_reload_cmds
13618 # How to pass a linker flag through the compiler.
13619 wl=$lt_lt_prog_compiler_wl
13621 # Object file suffix (normally "o").
13622 objext="$ac_objext"
13624 # Old archive suffix (normally "a").
13625 libext="$libext"
13627 # Shared library suffix (normally ".so").
13628 shrext_cmds='$shrext_cmds'
13630 # Executable file suffix (normally "").
13631 exeext="$exeext"
13633 # Additional compiler flags for building library objects.
13634 pic_flag=$lt_lt_prog_compiler_pic
13635 pic_mode=$pic_mode
13637 # What is the maximum length of a command?
13638 max_cmd_len=$lt_cv_sys_max_cmd_len
13640 # Does compiler simultaneously support -c and -o options?
13641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13643 # Must we lock files when doing compilation?
13644 need_locks=$lt_need_locks
13646 # Do we need the lib prefix for modules?
13647 need_lib_prefix=$need_lib_prefix
13649 # Do we need a version for libraries?
13650 need_version=$need_version
13652 # Whether dlopen is supported.
13653 dlopen_support=$enable_dlopen
13655 # Whether dlopen of programs is supported.
13656 dlopen_self=$enable_dlopen_self
13658 # Whether dlopen of statically linked programs is supported.
13659 dlopen_self_static=$enable_dlopen_self_static
13661 # Compiler flag to prevent dynamic linking.
13662 link_static_flag=$lt_lt_prog_compiler_static
13664 # Compiler flag to turn off builtin functions.
13665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13667 # Compiler flag to allow reflexive dlopens.
13668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13670 # Compiler flag to generate shared objects directly from archives.
13671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13673 # Compiler flag to generate thread-safe objects.
13674 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13676 # Library versioning type.
13677 version_type=$version_type
13679 # Format of library name prefix.
13680 libname_spec=$lt_libname_spec
13682 # List of archive names. First name is the real one, the rest are links.
13683 # The last name is the one that the linker finds with -lNAME.
13684 library_names_spec=$lt_library_names_spec
13686 # The coded name of the library, if different from the real name.
13687 soname_spec=$lt_soname_spec
13689 # Commands used to build and install an old-style archive.
13690 RANLIB=$lt_RANLIB
13691 old_archive_cmds=$lt_old_archive_cmds
13692 old_postinstall_cmds=$lt_old_postinstall_cmds
13693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13695 # Create an old-style archive from a shared archive.
13696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13698 # Create a temporary old-style archive to link instead of a shared archive.
13699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13701 # Commands used to build and install a shared archive.
13702 archive_cmds=$lt_archive_cmds
13703 archive_expsym_cmds=$lt_archive_expsym_cmds
13704 postinstall_cmds=$lt_postinstall_cmds
13705 postuninstall_cmds=$lt_postuninstall_cmds
13707 # Commands used to build a loadable module (assumed same as above if empty)
13708 module_cmds=$lt_module_cmds
13709 module_expsym_cmds=$lt_module_expsym_cmds
13711 # Commands to strip libraries.
13712 old_striplib=$lt_old_striplib
13713 striplib=$lt_striplib
13715 # Dependencies to place before the objects being linked to create a
13716 # shared library.
13717 predep_objects=$lt_predep_objects
13719 # Dependencies to place after the objects being linked to create a
13720 # shared library.
13721 postdep_objects=$lt_postdep_objects
13723 # Dependencies to place before the objects being linked to create a
13724 # shared library.
13725 predeps=$lt_predeps
13727 # Dependencies to place after the objects being linked to create a
13728 # shared library.
13729 postdeps=$lt_postdeps
13731 # The directories searched by this compiler when creating a shared
13732 # library
13733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13735 # The library search path used internally by the compiler when linking
13736 # a shared library.
13737 compiler_lib_search_path=$lt_compiler_lib_search_path
13739 # Method to check whether dependent libraries are shared objects.
13740 deplibs_check_method=$lt_deplibs_check_method
13742 # Command to use when deplibs_check_method == file_magic.
13743 file_magic_cmd=$lt_file_magic_cmd
13745 # Flag that allows shared libraries with undefined symbols to be built.
13746 allow_undefined_flag=$lt_allow_undefined_flag
13748 # Flag that forces no undefined symbols.
13749 no_undefined_flag=$lt_no_undefined_flag
13751 # Commands used to finish a libtool library installation in a directory.
13752 finish_cmds=$lt_finish_cmds
13754 # Same as above, but a single script fragment to be evaled but not shown.
13755 finish_eval=$lt_finish_eval
13757 # Take the output of nm and produce a listing of raw symbols and C names.
13758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13760 # Transform the output of nm in a proper C declaration
13761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13763 # Transform the output of nm in a C name address pair
13764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13766 # This is the shared library runtime path variable.
13767 runpath_var=$runpath_var
13769 # This is the shared library path variable.
13770 shlibpath_var=$shlibpath_var
13772 # Is shlibpath searched before the hard-coded library search path?
13773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13775 # How to hardcode a shared library path into an executable.
13776 hardcode_action=$hardcode_action
13778 # Whether we should hardcode library paths into libraries.
13779 hardcode_into_libs=$hardcode_into_libs
13781 # Flag to hardcode \$libdir into a binary during linking.
13782 # This must work even if \$libdir does not exist.
13783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13785 # If ld is used when linking, flag to hardcode \$libdir into
13786 # a binary during linking. This must work even if \$libdir does
13787 # not exist.
13788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13790 # Whether we need a single -rpath flag with a separated argument.
13791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13794 # resulting binary.
13795 hardcode_direct=$hardcode_direct
13797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13798 # resulting binary.
13799 hardcode_minus_L=$hardcode_minus_L
13801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13802 # the resulting binary.
13803 hardcode_shlibpath_var=$hardcode_shlibpath_var
13805 # Set to yes if building a shared library automatically hardcodes DIR into the library
13806 # and all subsequent libraries and executables linked against it.
13807 hardcode_automatic=$hardcode_automatic
13809 # Variables whose values should be saved in libtool wrapper scripts and
13810 # restored at relink time.
13811 variables_saved_for_relink="$variables_saved_for_relink"
13813 # Whether libtool must link a program against all its dependency libraries.
13814 link_all_deplibs=$link_all_deplibs
13816 # Compile-time system search path for libraries
13817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13819 # Run-time system search path for libraries
13820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13822 # Fix the shell variable \$srcfile for the compiler.
13823 fix_srcfile_path=$lt_fix_srcfile_path
13825 # Set to yes if exported symbols are required.
13826 always_export_symbols=$always_export_symbols
13828 # The commands to list exported symbols.
13829 export_symbols_cmds=$lt_export_symbols_cmds
13831 # The commands to extract the exported symbol list from a shared archive.
13832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13834 # Symbols that should not be listed in the preloaded symbols.
13835 exclude_expsyms=$lt_exclude_expsyms
13837 # Symbols that must always be exported.
13838 include_expsyms=$lt_include_expsyms
13840 # ### END LIBTOOL CONFIG
13842 __EOF__
13845 case $host_os in
13846 aix3*)
13847 cat <<\EOF >> "$cfgfile"
13849 # AIX sometimes has problems with the GCC collect2 program. For some
13850 # reason, if we set the COLLECT_NAMES environment variable, the problems
13851 # vanish in a puff of smoke.
13852 if test "X${COLLECT_NAMES+set}" != Xset; then
13853 COLLECT_NAMES=
13854 export COLLECT_NAMES
13858 esac
13860 # We use sed instead of cat because bash on DJGPP gets confused if
13861 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13862 # text mode, it properly converts lines to CR/LF. This bash problem
13863 # is reportedly fixed, but why not run on old versions too?
13864 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13866 mv -f "$cfgfile" "$ofile" || \
13867 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13868 chmod +x "$ofile"
13870 else
13871 # If there is no Makefile yet, we rely on a make rule to execute
13872 # `config.status --recheck' to rerun these tests and create the
13873 # libtool script then.
13874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13875 if test -f "$ltmain_in"; then
13876 test -f Makefile && make "$ltmain"
13881 ac_ext=c
13882 ac_cpp='$CPP $CPPFLAGS'
13883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13887 CC="$lt_save_CC"
13890 # Check whether --with-tags was given.
13891 if test "${with_tags+set}" = set; then
13892 withval=$with_tags; tagnames="$withval"
13896 if test -f "$ltmain" && test -n "$tagnames"; then
13897 if test ! -f "${ofile}"; then
13898 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13899 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13902 if test -z "$LTCC"; then
13903 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13904 if test -z "$LTCC"; then
13905 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13906 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13907 else
13908 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13909 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13912 if test -z "$LTCFLAGS"; then
13913 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13916 # Extract list of available tagged configurations in $ofile.
13917 # Note that this assumes the entire list is on one line.
13918 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13921 for tagname in $tagnames; do
13922 IFS="$lt_save_ifs"
13923 # Check whether tagname contains only valid characters
13924 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13925 "") ;;
13926 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13927 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13928 { (exit 1); exit 1; }; }
13930 esac
13932 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13933 then
13934 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13935 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13936 { (exit 1); exit 1; }; }
13939 # Update the list of available tags.
13940 if test -n "$tagname"; then
13941 echo appending configuration tag \"$tagname\" to $ofile
13943 case $tagname in
13944 CXX)
13945 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13946 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13947 (test "X$CXX" != "Xg++"))) ; then
13948 ac_ext=cpp
13949 ac_cpp='$CXXCPP $CPPFLAGS'
13950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13957 archive_cmds_need_lc_CXX=no
13958 allow_undefined_flag_CXX=
13959 always_export_symbols_CXX=no
13960 archive_expsym_cmds_CXX=
13961 export_dynamic_flag_spec_CXX=
13962 hardcode_direct_CXX=no
13963 hardcode_libdir_flag_spec_CXX=
13964 hardcode_libdir_flag_spec_ld_CXX=
13965 hardcode_libdir_separator_CXX=
13966 hardcode_minus_L_CXX=no
13967 hardcode_shlibpath_var_CXX=unsupported
13968 hardcode_automatic_CXX=no
13969 module_cmds_CXX=
13970 module_expsym_cmds_CXX=
13971 link_all_deplibs_CXX=unknown
13972 old_archive_cmds_CXX=$old_archive_cmds
13973 no_undefined_flag_CXX=
13974 whole_archive_flag_spec_CXX=
13975 enable_shared_with_static_runtimes_CXX=no
13977 # Dependencies to place before and after the object being linked:
13978 predep_objects_CXX=
13979 postdep_objects_CXX=
13980 predeps_CXX=
13981 postdeps_CXX=
13982 compiler_lib_search_path_CXX=
13983 compiler_lib_search_dirs_CXX=
13985 # Source file extension for C++ test sources.
13986 ac_ext=cpp
13988 # Object file extension for compiled C++ test sources.
13989 objext=o
13990 objext_CXX=$objext
13992 # Code to be used in simple compile tests
13993 lt_simple_compile_test_code="int some_variable = 0;"
13995 # Code to be used in simple link tests
13996 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14000 # If no C compiler was specified, use CC.
14001 LTCC=${LTCC-"$CC"}
14003 # If no C compiler flags were specified, use CFLAGS.
14004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14006 # Allow CC to be a program name with arguments.
14007 compiler=$CC
14010 # save warnings/boilerplate of simple test code
14011 ac_outfile=conftest.$ac_objext
14012 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14014 _lt_compiler_boilerplate=`cat conftest.err`
14015 $rm conftest*
14017 ac_outfile=conftest.$ac_objext
14018 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14020 _lt_linker_boilerplate=`cat conftest.err`
14021 $rm -r conftest*
14024 # Allow CC to be a program name with arguments.
14025 lt_save_CC=$CC
14026 lt_save_LD=$LD
14027 lt_save_GCC=$GCC
14028 GCC=$GXX
14029 lt_save_with_gnu_ld=$with_gnu_ld
14030 lt_save_path_LD=$lt_cv_path_LD
14031 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14032 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14033 else
14034 $as_unset lt_cv_prog_gnu_ld
14036 if test -n "${lt_cv_path_LDCXX+set}"; then
14037 lt_cv_path_LD=$lt_cv_path_LDCXX
14038 else
14039 $as_unset lt_cv_path_LD
14041 test -z "${LDCXX+set}" || LD=$LDCXX
14042 CC=${CXX-"c++"}
14043 compiler=$CC
14044 compiler_CXX=$CC
14045 for cc_temp in $compiler""; do
14046 case $cc_temp in
14047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14049 \-*) ;;
14050 *) break;;
14051 esac
14052 done
14053 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14056 # We don't want -fno-exception wen compiling C++ code, so set the
14057 # no_builtin_flag separately
14058 if test "$GXX" = yes; then
14059 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14060 else
14061 lt_prog_compiler_no_builtin_flag_CXX=
14064 if test "$GXX" = yes; then
14065 # Set up default GNU C++ configuration
14068 # Check whether --with-gnu-ld was given.
14069 if test "${with_gnu_ld+set}" = set; then
14070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14071 else
14072 with_gnu_ld=no
14075 ac_prog=ld
14076 if test "$GCC" = yes; then
14077 # Check if gcc -print-prog-name=ld gives a path.
14078 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14079 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14080 case $host in
14081 *-*-mingw*)
14082 # gcc leaves a trailing carriage return which upsets mingw
14083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14086 esac
14087 case $ac_prog in
14088 # Accept absolute paths.
14089 [\\/]* | ?:[\\/]*)
14090 re_direlt='/[^/][^/]*/\.\./'
14091 # Canonicalize the pathname of ld
14092 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14094 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14095 done
14096 test -z "$LD" && LD="$ac_prog"
14099 # If it fails, then pretend we aren't using GCC.
14100 ac_prog=ld
14103 # If it is relative, then search for the first ld in PATH.
14104 with_gnu_ld=unknown
14106 esac
14107 elif test "$with_gnu_ld" = yes; then
14108 { echo "$as_me:$LINENO: checking for GNU ld" >&5
14109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14110 else
14111 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14114 if test "${lt_cv_path_LD+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 if test -z "$LD"; then
14118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14119 for ac_dir in $PATH; do
14120 IFS="$lt_save_ifs"
14121 test -z "$ac_dir" && ac_dir=.
14122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14123 lt_cv_path_LD="$ac_dir/$ac_prog"
14124 # Check to see if the program is GNU ld. I'd rather use --version,
14125 # but apparently some variants of GNU ld only accept -v.
14126 # Break only if it was the GNU/non-GNU ld that we prefer.
14127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14128 *GNU* | *'with BFD'*)
14129 test "$with_gnu_ld" != no && break
14132 test "$with_gnu_ld" != yes && break
14134 esac
14136 done
14137 IFS="$lt_save_ifs"
14138 else
14139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14143 LD="$lt_cv_path_LD"
14144 if test -n "$LD"; then
14145 { echo "$as_me:$LINENO: result: $LD" >&5
14146 echo "${ECHO_T}$LD" >&6; }
14147 else
14148 { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14151 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14152 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14153 { (exit 1); exit 1; }; }
14154 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14155 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14156 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14160 case `$LD -v 2>&1 </dev/null` in
14161 *GNU* | *'with BFD'*)
14162 lt_cv_prog_gnu_ld=yes
14165 lt_cv_prog_gnu_ld=no
14167 esac
14169 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14170 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14171 with_gnu_ld=$lt_cv_prog_gnu_ld
14175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14176 # archiving commands below assume that GNU ld is being used.
14177 if test "$with_gnu_ld" = yes; then
14178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179 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'
14181 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14184 # If archive_cmds runs LD, not CC, wlarc should be empty
14185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14186 # investigate it a little bit more. (MM)
14187 wlarc='${wl}'
14189 # ancient GNU ld didn't support --whole-archive et. al.
14190 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14191 grep 'no-whole-archive' > /dev/null; then
14192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14193 else
14194 whole_archive_flag_spec_CXX=
14196 else
14197 with_gnu_ld=no
14198 wlarc=
14200 # A generic and very simple default shared library creation
14201 # command for GNU C++ for the case where it uses the native
14202 # linker, instead of GNU ld. If possible, this setting should
14203 # overridden to take advantage of the native linker features on
14204 # the platform it is being used on.
14205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14208 # Commands to make compiler produce verbose output that lists
14209 # what "hidden" libraries, object files and flags are used when
14210 # linking a shared library.
14211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14213 else
14214 GXX=no
14215 with_gnu_ld=no
14216 wlarc=
14219 # PORTME: fill in a description of your system's C++ link characteristics
14220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14222 ld_shlibs_CXX=yes
14223 case $host_os in
14224 aix3*)
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14228 aix[4-9]*)
14229 if test "$host_cpu" = ia64; then
14230 # On IA64, the linker does run time linking by default, so we don't
14231 # have to do anything special.
14232 aix_use_runtimelinking=no
14233 exp_sym_flag='-Bexport'
14234 no_entry_flag=""
14235 else
14236 aix_use_runtimelinking=no
14238 # Test if we are trying to use run time linking or normal
14239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14240 # need to do runtime linking.
14241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14242 for ld_flag in $LDFLAGS; do
14243 case $ld_flag in
14244 *-brtl*)
14245 aix_use_runtimelinking=yes
14246 break
14248 esac
14249 done
14251 esac
14253 exp_sym_flag='-bexport'
14254 no_entry_flag='-bnoentry'
14257 # When large executables or shared objects are built, AIX ld can
14258 # have problems creating the table of contents. If linking a library
14259 # or program results in "error TOC overflow" add -mminimal-toc to
14260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14263 archive_cmds_CXX=''
14264 hardcode_direct_CXX=yes
14265 hardcode_libdir_separator_CXX=':'
14266 link_all_deplibs_CXX=yes
14268 if test "$GXX" = yes; then
14269 case $host_os in aix4.[012]|aix4.[012].*)
14270 # We only want to do this on AIX 4.2 and lower, the check
14271 # below for broken collect2 doesn't work under 4.3+
14272 collect2name=`${CC} -print-prog-name=collect2`
14273 if test -f "$collect2name" && \
14274 strings "$collect2name" | grep resolve_lib_name >/dev/null
14275 then
14276 # We have reworked collect2
14278 else
14279 # We have old collect2
14280 hardcode_direct_CXX=unsupported
14281 # It fails to find uninstalled libraries when the uninstalled
14282 # path is not listed in the libpath. Setting hardcode_minus_L
14283 # to unsupported forces relinking
14284 hardcode_minus_L_CXX=yes
14285 hardcode_libdir_flag_spec_CXX='-L$libdir'
14286 hardcode_libdir_separator_CXX=
14289 esac
14290 shared_flag='-shared'
14291 if test "$aix_use_runtimelinking" = yes; then
14292 shared_flag="$shared_flag "'${wl}-G'
14294 else
14295 # not using gcc
14296 if test "$host_cpu" = ia64; then
14297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14298 # chokes on -Wl,-G. The following line is correct:
14299 shared_flag='-G'
14300 else
14301 if test "$aix_use_runtimelinking" = yes; then
14302 shared_flag='${wl}-G'
14303 else
14304 shared_flag='${wl}-bM:SRE'
14309 # It seems that -bexpall does not export symbols beginning with
14310 # underscore (_), so it is better to generate a list of symbols to export.
14311 always_export_symbols_CXX=yes
14312 if test "$aix_use_runtimelinking" = yes; then
14313 # Warning - without using the other runtime loading flags (-brtl),
14314 # -berok will link without error, but may produce a broken library.
14315 allow_undefined_flag_CXX='-berok'
14316 # Determine the default libpath from the value encoded in an empty executable.
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14325 main ()
14329 return 0;
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_cxx_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest$ac_exeext &&
14349 $as_test_x conftest$ac_exeext; then
14351 lt_aix_libpath_sed='
14352 /Import File Strings/,/^$/ {
14353 /^0/ {
14354 s/^0 *\(.*\)$/\1/
14358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14359 # Check for a 64-bit object if we didn't find anything.
14360 if test -z "$aix_libpath"; then
14361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14363 else
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14371 conftest$ac_exeext conftest.$ac_ext
14372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14374 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14376 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"
14377 else
14378 if test "$host_cpu" = ia64; then
14379 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14380 allow_undefined_flag_CXX="-z nodefs"
14381 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"
14382 else
14383 # Determine the default libpath from the value encoded in an empty executable.
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14392 main ()
14396 return 0;
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_link") 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_cxx_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest$ac_exeext &&
14416 $as_test_x conftest$ac_exeext; then
14418 lt_aix_libpath_sed='
14419 /Import File Strings/,/^$/ {
14420 /^0/ {
14421 s/^0 *\(.*\)$/\1/
14425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14426 # Check for a 64-bit object if we didn't find anything.
14427 if test -z "$aix_libpath"; then
14428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14430 else
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14438 conftest$ac_exeext conftest.$ac_ext
14439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14442 # Warning - without using the other run time loading flags,
14443 # -berok will link without error, but may produce a broken library.
14444 no_undefined_flag_CXX=' ${wl}-bernotok'
14445 allow_undefined_flag_CXX=' ${wl}-berok'
14446 # Exported symbols can be pulled into shared objects from archives
14447 whole_archive_flag_spec_CXX='$convenience'
14448 archive_cmds_need_lc_CXX=yes
14449 # This is similar to how AIX traditionally builds its shared libraries.
14450 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'
14455 beos*)
14456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457 allow_undefined_flag_CXX=unsupported
14458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14459 # support --undefined. This deserves some investigation. FIXME
14460 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 else
14462 ld_shlibs_CXX=no
14466 chorus*)
14467 case $cc_basename in
14469 # FIXME: insert proper C++ library support
14470 ld_shlibs_CXX=no
14472 esac
14475 cygwin* | mingw* | pw32*)
14476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14477 # as there is no search path for DLLs.
14478 hardcode_libdir_flag_spec_CXX='-L$libdir'
14479 allow_undefined_flag_CXX=unsupported
14480 always_export_symbols_CXX=no
14481 enable_shared_with_static_runtimes_CXX=yes
14483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14484 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'
14485 # If the export-symbols file already is a .def file (1st line
14486 # is EXPORTS), use it as is; otherwise, prepend...
14487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14488 cp $export_symbols $output_objdir/$soname.def;
14489 else
14490 echo EXPORTS > $output_objdir/$soname.def;
14491 cat $export_symbols >> $output_objdir/$soname.def;
14493 $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'
14494 else
14495 ld_shlibs_CXX=no
14498 darwin* | rhapsody*)
14499 archive_cmds_need_lc_CXX=no
14500 hardcode_direct_CXX=no
14501 hardcode_automatic_CXX=yes
14502 hardcode_shlibpath_var_CXX=unsupported
14503 whole_archive_flag_spec_CXX=''
14504 link_all_deplibs_CXX=yes
14505 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14506 if test "$GXX" = yes ; then
14507 output_verbose_link_cmd='echo'
14508 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}"
14509 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14510 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}"
14511 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}"
14512 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14513 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}"
14514 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}"
14516 else
14517 case $cc_basename in
14518 xlc*)
14519 output_verbose_link_cmd='echo'
14520 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'
14521 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14523 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}'
14524 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}'
14527 ld_shlibs_CXX=no
14529 esac
14533 dgux*)
14534 case $cc_basename in
14535 ec++*)
14536 # FIXME: insert proper C++ library support
14537 ld_shlibs_CXX=no
14539 ghcx*)
14540 # Green Hills C++ Compiler
14541 # FIXME: insert proper C++ library support
14542 ld_shlibs_CXX=no
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14548 esac
14550 freebsd[12]*)
14551 # C++ shared libraries reported to be fairly broken before switch to ELF
14552 ld_shlibs_CXX=no
14554 freebsd-elf*)
14555 archive_cmds_need_lc_CXX=no
14557 freebsd* | dragonfly*)
14558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14559 # conventions
14560 ld_shlibs_CXX=yes
14562 gnu*)
14564 hpux9*)
14565 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14566 hardcode_libdir_separator_CXX=:
14567 export_dynamic_flag_spec_CXX='${wl}-E'
14568 hardcode_direct_CXX=yes
14569 hardcode_minus_L_CXX=yes # Not in the search PATH,
14570 # but as the default
14571 # location of the library.
14573 case $cc_basename in
14574 CC*)
14575 # FIXME: insert proper C++ library support
14576 ld_shlibs_CXX=no
14578 aCC*)
14579 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'
14580 # Commands to make compiler produce verbose output that lists
14581 # what "hidden" libraries, object files and flags are used when
14582 # linking a shared library.
14584 # There doesn't appear to be a way to prevent this compiler from
14585 # explicitly linking system object files so we need to strip them
14586 # from the output so that they don't get included in the library
14587 # dependencies.
14588 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'
14591 if test "$GXX" = yes; then
14592 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'
14593 else
14594 # FIXME: insert proper C++ library support
14595 ld_shlibs_CXX=no
14598 esac
14600 hpux10*|hpux11*)
14601 if test $with_gnu_ld = no; then
14602 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14603 hardcode_libdir_separator_CXX=:
14605 case $host_cpu in
14606 hppa*64*|ia64*) ;;
14608 export_dynamic_flag_spec_CXX='${wl}-E'
14610 esac
14612 case $host_cpu in
14613 hppa*64*|ia64*)
14614 hardcode_direct_CXX=no
14615 hardcode_shlibpath_var_CXX=no
14618 hardcode_direct_CXX=yes
14619 hardcode_minus_L_CXX=yes # Not in the search PATH,
14620 # but as the default
14621 # location of the library.
14623 esac
14625 case $cc_basename in
14626 CC*)
14627 # FIXME: insert proper C++ library support
14628 ld_shlibs_CXX=no
14630 aCC*)
14631 case $host_cpu in
14632 hppa*64*)
14633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14635 ia64*)
14636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14641 esac
14642 # Commands to make compiler produce verbose output that lists
14643 # what "hidden" libraries, object files and flags are used when
14644 # linking a shared library.
14646 # There doesn't appear to be a way to prevent this compiler from
14647 # explicitly linking system object files so we need to strip them
14648 # from the output so that they don't get included in the library
14649 # dependencies.
14650 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'
14653 if test "$GXX" = yes; then
14654 if test $with_gnu_ld = no; then
14655 case $host_cpu in
14656 hppa*64*)
14657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14659 ia64*)
14660 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14663 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'
14665 esac
14667 else
14668 # FIXME: insert proper C++ library support
14669 ld_shlibs_CXX=no
14672 esac
14674 interix[3-9]*)
14675 hardcode_direct_CXX=no
14676 hardcode_shlibpath_var_CXX=no
14677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14678 export_dynamic_flag_spec_CXX='${wl}-E'
14679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14680 # Instead, shared libraries are loaded at an image base (0x10000000 by
14681 # default) and relocated if they conflict, which is a slow very memory
14682 # consuming and fragmenting process. To avoid this, we pick a random,
14683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14685 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'
14686 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'
14688 irix5* | irix6*)
14689 case $cc_basename in
14690 CC*)
14691 # SGI C++
14692 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'
14694 # Archives containing C++ object files must be created using
14695 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14696 # necessary to make sure instantiated templates are included
14697 # in the archive.
14698 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14701 if test "$GXX" = yes; then
14702 if test "$with_gnu_ld" = no; then
14703 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'
14704 else
14705 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'
14708 link_all_deplibs_CXX=yes
14710 esac
14711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14712 hardcode_libdir_separator_CXX=:
14714 linux* | k*bsd*-gnu)
14715 case $cc_basename in
14716 KCC*)
14717 # Kuck and Associates, Inc. (KAI) C++ Compiler
14719 # KCC will only create a shared library if the output file
14720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14721 # to its proper name (with version) after linking.
14722 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'
14723 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'
14724 # Commands to make compiler produce verbose output that lists
14725 # what "hidden" libraries, object files and flags are used when
14726 # linking a shared library.
14728 # There doesn't appear to be a way to prevent this compiler from
14729 # explicitly linking system object files so we need to strip them
14730 # from the output so that they don't get included in the library
14731 # dependencies.
14732 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'
14734 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14737 # Archives containing C++ object files must be created using
14738 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14739 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14741 icpc*)
14742 # Intel C++
14743 with_gnu_ld=yes
14744 # version 8.0 and above of icpc choke on multiply defined symbols
14745 # if we add $predep_objects and $postdep_objects, however 7.1 and
14746 # earlier do not add the objects themselves.
14747 case `$CC -V 2>&1` in
14748 *"Version 7."*)
14749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 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'
14752 *) # Version 8.0 or newer
14753 tmp_idyn=
14754 case $host_cpu in
14755 ia64*) tmp_idyn=' -i_dynamic';;
14756 esac
14757 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 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'
14760 esac
14761 archive_cmds_need_lc_CXX=no
14762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14764 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14766 pgCC* | pgcpp*)
14767 # Portland Group C++ compiler
14768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14769 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'
14771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14773 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'
14775 cxx*)
14776 # Compaq C++
14777 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14778 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'
14780 runpath_var=LD_RUN_PATH
14781 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14782 hardcode_libdir_separator_CXX=:
14784 # Commands to make compiler produce verbose output that lists
14785 # what "hidden" libraries, object files and flags are used when
14786 # linking a shared library.
14788 # There doesn't appear to be a way to prevent this compiler from
14789 # explicitly linking system object files so we need to strip them
14790 # from the output so that they don't get included in the library
14791 # dependencies.
14792 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'
14795 case `$CC -V 2>&1 | sed 5q` in
14796 *Sun\ C*)
14797 # Sun C++ 5.9
14798 no_undefined_flag_CXX=' -zdefs'
14799 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14800 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'
14801 hardcode_libdir_flag_spec_CXX='-R$libdir'
14802 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'
14804 # Not sure whether something based on
14805 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14806 # would be better.
14807 output_verbose_link_cmd='echo'
14809 # Archives containing C++ object files must be created using
14810 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14811 # necessary to make sure instantiated templates are included
14812 # in the archive.
14813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14815 esac
14817 esac
14819 lynxos*)
14820 # FIXME: insert proper C++ library support
14821 ld_shlibs_CXX=no
14823 m88k*)
14824 # FIXME: insert proper C++ library support
14825 ld_shlibs_CXX=no
14827 mvs*)
14828 case $cc_basename in
14829 cxx*)
14830 # FIXME: insert proper C++ library support
14831 ld_shlibs_CXX=no
14834 # FIXME: insert proper C++ library support
14835 ld_shlibs_CXX=no
14837 esac
14839 netbsd* | netbsdelf*-gnu)
14840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14841 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14842 wlarc=
14843 hardcode_libdir_flag_spec_CXX='-R$libdir'
14844 hardcode_direct_CXX=yes
14845 hardcode_shlibpath_var_CXX=no
14847 # Workaround some broken pre-1.5 toolchains
14848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14850 openbsd2*)
14851 # C++ shared libraries are fairly broken
14852 ld_shlibs_CXX=no
14854 openbsd*)
14855 if test -f /usr/libexec/ld.so; then
14856 hardcode_direct_CXX=yes
14857 hardcode_shlibpath_var_CXX=no
14858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14861 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14862 export_dynamic_flag_spec_CXX='${wl}-E'
14863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14865 output_verbose_link_cmd='echo'
14866 else
14867 ld_shlibs_CXX=no
14870 osf3*)
14871 case $cc_basename in
14872 KCC*)
14873 # Kuck and Associates, Inc. (KAI) C++ Compiler
14875 # KCC will only create a shared library if the output file
14876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14877 # to its proper name (with version) after linking.
14878 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'
14880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14881 hardcode_libdir_separator_CXX=:
14883 # Archives containing C++ object files must be created using
14884 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14885 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14888 RCC*)
14889 # Rational C++ 2.4.1
14890 # FIXME: insert proper C++ library support
14891 ld_shlibs_CXX=no
14893 cxx*)
14894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14895 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'
14897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14898 hardcode_libdir_separator_CXX=:
14900 # Commands to make compiler produce verbose output that lists
14901 # what "hidden" libraries, object files and flags are used when
14902 # linking a shared library.
14904 # There doesn't appear to be a way to prevent this compiler from
14905 # explicitly linking system object files so we need to strip them
14906 # from the output so that they don't get included in the library
14907 # dependencies.
14908 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'
14911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14912 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14913 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'
14915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14916 hardcode_libdir_separator_CXX=:
14918 # Commands to make compiler produce verbose output that lists
14919 # what "hidden" libraries, object files and flags are used when
14920 # linking a shared library.
14921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14923 else
14924 # FIXME: insert proper C++ library support
14925 ld_shlibs_CXX=no
14928 esac
14930 osf4* | osf5*)
14931 case $cc_basename in
14932 KCC*)
14933 # Kuck and Associates, Inc. (KAI) C++ Compiler
14935 # KCC will only create a shared library if the output file
14936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14937 # to its proper name (with version) after linking.
14938 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'
14940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14941 hardcode_libdir_separator_CXX=:
14943 # Archives containing C++ object files must be created using
14944 # the KAI C++ compiler.
14945 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14947 RCC*)
14948 # Rational C++ 2.4.1
14949 # FIXME: insert proper C++ library support
14950 ld_shlibs_CXX=no
14952 cxx*)
14953 allow_undefined_flag_CXX=' -expect_unresolved \*'
14954 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'
14955 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14956 echo "-hidden">> $lib.exp~
14957 $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~
14958 $rm $lib.exp'
14960 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14961 hardcode_libdir_separator_CXX=:
14963 # Commands to make compiler produce verbose output that lists
14964 # what "hidden" libraries, object files and flags are used when
14965 # linking a shared library.
14967 # There doesn't appear to be a way to prevent this compiler from
14968 # explicitly linking system object files so we need to strip them
14969 # from the output so that they don't get included in the library
14970 # dependencies.
14971 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'
14974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14976 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'
14978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14979 hardcode_libdir_separator_CXX=:
14981 # Commands to make compiler produce verbose output that lists
14982 # what "hidden" libraries, object files and flags are used when
14983 # linking a shared library.
14984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14986 else
14987 # FIXME: insert proper C++ library support
14988 ld_shlibs_CXX=no
14991 esac
14993 psos*)
14994 # FIXME: insert proper C++ library support
14995 ld_shlibs_CXX=no
14997 sunos4*)
14998 case $cc_basename in
14999 CC*)
15000 # Sun C++ 4.x
15001 # FIXME: insert proper C++ library support
15002 ld_shlibs_CXX=no
15004 lcc*)
15005 # Lucid
15006 # FIXME: insert proper C++ library support
15007 ld_shlibs_CXX=no
15010 # FIXME: insert proper C++ library support
15011 ld_shlibs_CXX=no
15013 esac
15015 solaris*)
15016 case $cc_basename in
15017 CC*)
15018 # Sun C++ 4.2, 5.x and Centerline C++
15019 archive_cmds_need_lc_CXX=yes
15020 no_undefined_flag_CXX=' -zdefs'
15021 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15022 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15023 $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'
15025 hardcode_libdir_flag_spec_CXX='-R$libdir'
15026 hardcode_shlibpath_var_CXX=no
15027 case $host_os in
15028 solaris2.[0-5] | solaris2.[0-5].*) ;;
15030 # The compiler driver will combine and reorder linker options,
15031 # but understands `-z linker_flag'.
15032 # Supported since Solaris 2.6 (maybe 2.5.1?)
15033 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15035 esac
15036 link_all_deplibs_CXX=yes
15038 output_verbose_link_cmd='echo'
15040 # Archives containing C++ object files must be created using
15041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15042 # necessary to make sure instantiated templates are included
15043 # in the archive.
15044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15046 gcx*)
15047 # Green Hills C++ Compiler
15048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15050 # The C++ compiler must be used to create the archive.
15051 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15054 # GNU C++ compiler with Solaris linker
15055 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15056 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15057 if $CC --version | grep -v '^2\.7' > /dev/null; then
15058 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15059 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15060 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15062 # Commands to make compiler produce verbose output that lists
15063 # what "hidden" libraries, object files and flags are used when
15064 # linking a shared library.
15065 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15066 else
15067 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15068 # platform.
15069 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15070 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15071 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15073 # Commands to make compiler produce verbose output that lists
15074 # what "hidden" libraries, object files and flags are used when
15075 # linking a shared library.
15076 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15079 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15080 case $host_os in
15081 solaris2.[0-5] | solaris2.[0-5].*) ;;
15083 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15085 esac
15088 esac
15090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15091 no_undefined_flag_CXX='${wl}-z,text'
15092 archive_cmds_need_lc_CXX=no
15093 hardcode_shlibpath_var_CXX=no
15094 runpath_var='LD_RUN_PATH'
15096 case $cc_basename in
15097 CC*)
15098 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 esac
15107 sysv5* | sco3.2v5* | sco5v6*)
15108 # Note: We can NOT use -z defs as we might desire, because we do not
15109 # link with -lc, and that would cause any symbols used from libc to
15110 # always be unresolved, which means just about no library would
15111 # ever link correctly. If we're not using GNU ld we use -z text
15112 # though, which does catch some bad symbols but isn't as heavy-handed
15113 # as -z defs.
15114 # For security reasons, it is highly recommended that you always
15115 # use absolute paths for naming shared libraries, and exclude the
15116 # DT_RUNPATH tag from executables and libraries. But doing so
15117 # requires that you compile everything twice, which is a pain.
15118 # So that behaviour is only enabled if SCOABSPATH is set to a
15119 # non-empty value in the environment. Most likely only useful for
15120 # creating official distributions of packages.
15121 # This is a hack until libtool officially supports absolute path
15122 # names for shared libraries.
15123 no_undefined_flag_CXX='${wl}-z,text'
15124 allow_undefined_flag_CXX='${wl}-z,nodefs'
15125 archive_cmds_need_lc_CXX=no
15126 hardcode_shlibpath_var_CXX=no
15127 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15128 hardcode_libdir_separator_CXX=':'
15129 link_all_deplibs_CXX=yes
15130 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15131 runpath_var='LD_RUN_PATH'
15133 case $cc_basename in
15134 CC*)
15135 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15142 esac
15144 tandem*)
15145 case $cc_basename in
15146 NCC*)
15147 # NonStop-UX NCC 3.20
15148 # FIXME: insert proper C++ library support
15149 ld_shlibs_CXX=no
15152 # FIXME: insert proper C++ library support
15153 ld_shlibs_CXX=no
15155 esac
15157 vxworks*)
15158 # FIXME: insert proper C++ library support
15159 ld_shlibs_CXX=no
15162 # FIXME: insert proper C++ library support
15163 ld_shlibs_CXX=no
15165 esac
15166 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15167 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15168 test "$ld_shlibs_CXX" = no && can_build_shared=no
15170 GCC_CXX="$GXX"
15171 LD_CXX="$LD"
15173 cat > conftest.$ac_ext <<EOF
15174 class Foo
15176 public:
15177 Foo (void) { a = 0; }
15178 private:
15179 int a;
15183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15184 (eval $ac_compile) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; then
15188 # Parse the compiler output and extract the necessary
15189 # objects, libraries and library flags.
15191 # Sentinel used to keep track of whether or not we are before
15192 # the conftest object file.
15193 pre_test_object_deps_done=no
15195 # The `*' in the case matches for architectures that use `case' in
15196 # $output_verbose_cmd can trigger glob expansion during the loop
15197 # eval without this substitution.
15198 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15200 for p in `eval $output_verbose_link_cmd`; do
15201 case $p in
15203 -L* | -R* | -l*)
15204 # Some compilers place space between "-{L,R}" and the path.
15205 # Remove the space.
15206 if test $p = "-L" \
15207 || test $p = "-R"; then
15208 prev=$p
15209 continue
15210 else
15211 prev=
15214 if test "$pre_test_object_deps_done" = no; then
15215 case $p in
15216 -L* | -R*)
15217 # Internal compiler library paths should come after those
15218 # provided the user. The postdeps already come after the
15219 # user supplied libs so there is no need to process them.
15220 if test -z "$compiler_lib_search_path_CXX"; then
15221 compiler_lib_search_path_CXX="${prev}${p}"
15222 else
15223 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15226 # The "-l" case would never come before the object being
15227 # linked, so don't bother handling this case.
15228 esac
15229 else
15230 if test -z "$postdeps_CXX"; then
15231 postdeps_CXX="${prev}${p}"
15232 else
15233 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15238 *.$objext)
15239 # This assumes that the test object file only shows up
15240 # once in the compiler output.
15241 if test "$p" = "conftest.$objext"; then
15242 pre_test_object_deps_done=yes
15243 continue
15246 if test "$pre_test_object_deps_done" = no; then
15247 if test -z "$predep_objects_CXX"; then
15248 predep_objects_CXX="$p"
15249 else
15250 predep_objects_CXX="$predep_objects_CXX $p"
15252 else
15253 if test -z "$postdep_objects_CXX"; then
15254 postdep_objects_CXX="$p"
15255 else
15256 postdep_objects_CXX="$postdep_objects_CXX $p"
15261 *) ;; # Ignore the rest.
15263 esac
15264 done
15266 # Clean up.
15267 rm -f a.out a.exe
15268 else
15269 echo "libtool.m4: error: problem compiling CXX test program"
15272 $rm -f confest.$objext
15274 compiler_lib_search_dirs_CXX=
15275 if test -n "$compiler_lib_search_path_CXX"; then
15276 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15279 # PORTME: override above test on systems where it is broken
15280 case $host_os in
15281 interix[3-9]*)
15282 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15283 # hack all around it, let's just trust "g++" to DTRT.
15284 predep_objects_CXX=
15285 postdep_objects_CXX=
15286 postdeps_CXX=
15289 linux*)
15290 case `$CC -V 2>&1 | sed 5q` in
15291 *Sun\ C*)
15292 # Sun C++ 5.9
15294 # The more standards-conforming stlport4 library is
15295 # incompatible with the Cstd library. Avoid specifying
15296 # it if it's in CXXFLAGS. Ignore libCrun as
15297 # -library=stlport4 depends on it.
15298 case " $CXX $CXXFLAGS " in
15299 *" -library=stlport4 "*)
15300 solaris_use_stlport4=yes
15302 esac
15303 if test "$solaris_use_stlport4" != yes; then
15304 postdeps_CXX='-library=Cstd -library=Crun'
15307 esac
15310 solaris*)
15311 case $cc_basename in
15312 CC*)
15313 # The more standards-conforming stlport4 library is
15314 # incompatible with the Cstd library. Avoid specifying
15315 # it if it's in CXXFLAGS. Ignore libCrun as
15316 # -library=stlport4 depends on it.
15317 case " $CXX $CXXFLAGS " in
15318 *" -library=stlport4 "*)
15319 solaris_use_stlport4=yes
15321 esac
15323 # Adding this requires a known-good setup of shared libraries for
15324 # Sun compiler versions before 5.6, else PIC objects from an old
15325 # archive will be linked into the output, leading to subtle bugs.
15326 if test "$solaris_use_stlport4" != yes; then
15327 postdeps_CXX='-library=Cstd -library=Crun'
15330 esac
15332 esac
15334 case " $postdeps_CXX " in
15335 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15336 esac
15338 lt_prog_compiler_wl_CXX=
15339 lt_prog_compiler_pic_CXX=
15340 lt_prog_compiler_static_CXX=
15342 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15345 # C++ specific cases for pic, static, wl, etc.
15346 if test "$GXX" = yes; then
15347 lt_prog_compiler_wl_CXX='-Wl,'
15348 lt_prog_compiler_static_CXX='-static'
15350 case $host_os in
15351 aix*)
15352 # All AIX code is PIC.
15353 if test "$host_cpu" = ia64; then
15354 # AIX 5 now supports IA64 processor
15355 lt_prog_compiler_static_CXX='-Bstatic'
15358 amigaos*)
15359 # FIXME: we need at least 68020 code to build shared libraries, but
15360 # adding the `-m68020' flag to GCC prevents building anything better,
15361 # like `-m68040'.
15362 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15365 # PIC is the default for these OSes.
15367 mingw* | cygwin* | os2* | pw32*)
15368 # This hack is so that the source file can tell whether it is being
15369 # built for inclusion in a dll (and should export symbols for example).
15370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15371 # (--disable-auto-import) libraries
15372 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15374 darwin* | rhapsody*)
15375 # PIC is the default on this platform
15376 # Common symbols not allowed in MH_DYLIB files
15377 lt_prog_compiler_pic_CXX='-fno-common'
15379 *djgpp*)
15380 # DJGPP does not support shared libraries at all
15381 lt_prog_compiler_pic_CXX=
15383 interix[3-9]*)
15384 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15385 # Instead, we relocate shared libraries at runtime.
15387 sysv4*MP*)
15388 if test -d /usr/nec; then
15389 lt_prog_compiler_pic_CXX=-Kconform_pic
15392 hpux*)
15393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15394 # not for PA HP-UX.
15395 case $host_cpu in
15396 hppa*64*|ia64*)
15399 lt_prog_compiler_pic_CXX='-fPIC'
15401 esac
15404 lt_prog_compiler_pic_CXX='-fPIC'
15406 esac
15407 else
15408 case $host_os in
15409 aix[4-9]*)
15410 # All AIX code is PIC.
15411 if test "$host_cpu" = ia64; then
15412 # AIX 5 now supports IA64 processor
15413 lt_prog_compiler_static_CXX='-Bstatic'
15414 else
15415 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15418 chorus*)
15419 case $cc_basename in
15420 cxch68*)
15421 # Green Hills C++ Compiler
15422 # _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"
15424 esac
15426 darwin*)
15427 # PIC is the default on this platform
15428 # Common symbols not allowed in MH_DYLIB files
15429 case $cc_basename in
15430 xlc*)
15431 lt_prog_compiler_pic_CXX='-qnocommon'
15432 lt_prog_compiler_wl_CXX='-Wl,'
15434 esac
15436 dgux*)
15437 case $cc_basename in
15438 ec++*)
15439 lt_prog_compiler_pic_CXX='-KPIC'
15441 ghcx*)
15442 # Green Hills C++ Compiler
15443 lt_prog_compiler_pic_CXX='-pic'
15447 esac
15449 freebsd* | dragonfly*)
15450 # FreeBSD uses GNU C++
15452 hpux9* | hpux10* | hpux11*)
15453 case $cc_basename in
15454 CC*)
15455 lt_prog_compiler_wl_CXX='-Wl,'
15456 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15457 if test "$host_cpu" != ia64; then
15458 lt_prog_compiler_pic_CXX='+Z'
15461 aCC*)
15462 lt_prog_compiler_wl_CXX='-Wl,'
15463 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15464 case $host_cpu in
15465 hppa*64*|ia64*)
15466 # +Z the default
15469 lt_prog_compiler_pic_CXX='+Z'
15471 esac
15475 esac
15477 interix*)
15478 # This is c89, which is MS Visual C++ (no shared libs)
15479 # Anyone wants to do a port?
15481 irix5* | irix6* | nonstopux*)
15482 case $cc_basename in
15483 CC*)
15484 lt_prog_compiler_wl_CXX='-Wl,'
15485 lt_prog_compiler_static_CXX='-non_shared'
15486 # CC pic flag -KPIC is the default.
15490 esac
15492 linux* | k*bsd*-gnu)
15493 case $cc_basename in
15494 KCC*)
15495 # KAI C++ Compiler
15496 lt_prog_compiler_wl_CXX='--backend -Wl,'
15497 lt_prog_compiler_pic_CXX='-fPIC'
15499 icpc* | ecpc*)
15500 # Intel C++
15501 lt_prog_compiler_wl_CXX='-Wl,'
15502 lt_prog_compiler_pic_CXX='-KPIC'
15503 lt_prog_compiler_static_CXX='-static'
15505 pgCC* | pgcpp*)
15506 # Portland Group C++ compiler.
15507 lt_prog_compiler_wl_CXX='-Wl,'
15508 lt_prog_compiler_pic_CXX='-fpic'
15509 lt_prog_compiler_static_CXX='-Bstatic'
15511 cxx*)
15512 # Compaq C++
15513 # Make sure the PIC flag is empty. It appears that all Alpha
15514 # Linux and Compaq Tru64 Unix objects are PIC.
15515 lt_prog_compiler_pic_CXX=
15516 lt_prog_compiler_static_CXX='-non_shared'
15519 case `$CC -V 2>&1 | sed 5q` in
15520 *Sun\ C*)
15521 # Sun C++ 5.9
15522 lt_prog_compiler_pic_CXX='-KPIC'
15523 lt_prog_compiler_static_CXX='-Bstatic'
15524 lt_prog_compiler_wl_CXX='-Qoption ld '
15526 esac
15528 esac
15530 lynxos*)
15532 m88k*)
15534 mvs*)
15535 case $cc_basename in
15536 cxx*)
15537 lt_prog_compiler_pic_CXX='-W c,exportall'
15541 esac
15543 netbsd* | netbsdelf*-gnu)
15545 osf3* | osf4* | osf5*)
15546 case $cc_basename in
15547 KCC*)
15548 lt_prog_compiler_wl_CXX='--backend -Wl,'
15550 RCC*)
15551 # Rational C++ 2.4.1
15552 lt_prog_compiler_pic_CXX='-pic'
15554 cxx*)
15555 # Digital/Compaq C++
15556 lt_prog_compiler_wl_CXX='-Wl,'
15557 # Make sure the PIC flag is empty. It appears that all Alpha
15558 # Linux and Compaq Tru64 Unix objects are PIC.
15559 lt_prog_compiler_pic_CXX=
15560 lt_prog_compiler_static_CXX='-non_shared'
15564 esac
15566 psos*)
15568 solaris*)
15569 case $cc_basename in
15570 CC*)
15571 # Sun C++ 4.2, 5.x and Centerline C++
15572 lt_prog_compiler_pic_CXX='-KPIC'
15573 lt_prog_compiler_static_CXX='-Bstatic'
15574 lt_prog_compiler_wl_CXX='-Qoption ld '
15576 gcx*)
15577 # Green Hills C++ Compiler
15578 lt_prog_compiler_pic_CXX='-PIC'
15582 esac
15584 sunos4*)
15585 case $cc_basename in
15586 CC*)
15587 # Sun C++ 4.x
15588 lt_prog_compiler_pic_CXX='-pic'
15589 lt_prog_compiler_static_CXX='-Bstatic'
15591 lcc*)
15592 # Lucid
15593 lt_prog_compiler_pic_CXX='-pic'
15597 esac
15599 tandem*)
15600 case $cc_basename in
15601 NCC*)
15602 # NonStop-UX NCC 3.20
15603 lt_prog_compiler_pic_CXX='-KPIC'
15607 esac
15609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15610 case $cc_basename in
15611 CC*)
15612 lt_prog_compiler_wl_CXX='-Wl,'
15613 lt_prog_compiler_pic_CXX='-KPIC'
15614 lt_prog_compiler_static_CXX='-Bstatic'
15616 esac
15618 vxworks*)
15621 lt_prog_compiler_can_build_shared_CXX=no
15623 esac
15626 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15627 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15630 # Check to make sure the PIC flag actually works.
15632 if test -n "$lt_prog_compiler_pic_CXX"; then
15634 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15635 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15636 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639 lt_cv_prog_compiler_pic_works_CXX=no
15640 ac_outfile=conftest.$ac_objext
15641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15642 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15643 # Insert the option either (1) after the last *FLAGS variable, or
15644 # (2) before a word containing "conftest.", or (3) at the end.
15645 # Note that $ac_compile itself does not contain backslashes and begins
15646 # with a dollar sign (not a hyphen), so the echo should work correctly.
15647 # The option is referenced via a variable to avoid confusing sed.
15648 lt_compile=`echo "$ac_compile" | $SED \
15649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15651 -e 's:$: $lt_compiler_flag:'`
15652 (eval echo "\"\$as_me:15652: $lt_compile\"" >&5)
15653 (eval "$lt_compile" 2>conftest.err)
15654 ac_status=$?
15655 cat conftest.err >&5
15656 echo "$as_me:15656: \$? = $ac_status" >&5
15657 if (exit $ac_status) && test -s "$ac_outfile"; then
15658 # The compiler can only warn and ignore the option if not recognized
15659 # So say no if there are warnings other than the usual output.
15660 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15662 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15663 lt_cv_prog_compiler_pic_works_CXX=yes
15666 $rm conftest*
15669 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15670 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15672 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15673 case $lt_prog_compiler_pic_CXX in
15674 "" | " "*) ;;
15675 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15676 esac
15677 else
15678 lt_prog_compiler_pic_CXX=
15679 lt_prog_compiler_can_build_shared_CXX=no
15683 case $host_os in
15684 # For platforms which do not support PIC, -DPIC is meaningless:
15685 *djgpp*)
15686 lt_prog_compiler_pic_CXX=
15689 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15691 esac
15694 # Check to make sure the static flag actually works.
15696 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15697 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15698 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15699 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702 lt_cv_prog_compiler_static_works_CXX=no
15703 save_LDFLAGS="$LDFLAGS"
15704 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15705 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15707 # The linker can only warn and ignore the option if not recognized
15708 # So say no if there are warnings
15709 if test -s conftest.err; then
15710 # Append any errors to the config.log.
15711 cat conftest.err 1>&5
15712 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15714 if diff conftest.exp conftest.er2 >/dev/null; then
15715 lt_cv_prog_compiler_static_works_CXX=yes
15717 else
15718 lt_cv_prog_compiler_static_works_CXX=yes
15721 $rm -r conftest*
15722 LDFLAGS="$save_LDFLAGS"
15725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15726 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15728 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15730 else
15731 lt_prog_compiler_static_CXX=
15735 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15736 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15737 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 lt_cv_prog_compiler_c_o_CXX=no
15741 $rm -r conftest 2>/dev/null
15742 mkdir conftest
15743 cd conftest
15744 mkdir out
15745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15747 lt_compiler_flag="-o out/conftest2.$ac_objext"
15748 # Insert the option either (1) after the last *FLAGS variable, or
15749 # (2) before a word containing "conftest.", or (3) at the end.
15750 # Note that $ac_compile itself does not contain backslashes and begins
15751 # with a dollar sign (not a hyphen), so the echo should work correctly.
15752 lt_compile=`echo "$ac_compile" | $SED \
15753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15755 -e 's:$: $lt_compiler_flag:'`
15756 (eval echo "\"\$as_me:15756: $lt_compile\"" >&5)
15757 (eval "$lt_compile" 2>out/conftest.err)
15758 ac_status=$?
15759 cat out/conftest.err >&5
15760 echo "$as_me:15760: \$? = $ac_status" >&5
15761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15762 then
15763 # The compiler can only warn and ignore the option if not recognized
15764 # So say no if there are warnings
15765 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15768 lt_cv_prog_compiler_c_o_CXX=yes
15771 chmod u+w . 2>&5
15772 $rm conftest*
15773 # SGI C++ compiler will create directory out/ii_files/ for
15774 # template instantiation
15775 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15776 $rm out/* && rmdir out
15777 cd ..
15778 rmdir conftest
15779 $rm conftest*
15782 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15783 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15786 hard_links="nottested"
15787 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15788 # do not overwrite the value of need_locks provided by the user
15789 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15790 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15791 hard_links=yes
15792 $rm conftest*
15793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15794 touch conftest.a
15795 ln conftest.a conftest.b 2>&5 || hard_links=no
15796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15797 { echo "$as_me:$LINENO: result: $hard_links" >&5
15798 echo "${ECHO_T}$hard_links" >&6; }
15799 if test "$hard_links" = no; then
15800 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15801 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15802 need_locks=warn
15804 else
15805 need_locks=no
15808 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15809 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15811 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15812 case $host_os in
15813 aix[4-9]*)
15814 # If we're using GNU nm, then we don't want the "-C" option.
15815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15816 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15817 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'
15818 else
15819 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'
15822 pw32*)
15823 export_symbols_cmds_CXX="$ltdll_cmds"
15825 cygwin* | mingw*)
15826 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'
15828 linux* | k*bsd*-gnu)
15829 link_all_deplibs_CXX=no
15832 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15834 esac
15835 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15837 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15838 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15839 test "$ld_shlibs_CXX" = no && can_build_shared=no
15842 # Do we need to explicitly link libc?
15844 case "x$archive_cmds_need_lc_CXX" in
15845 x|xyes)
15846 # Assume -lc should be added
15847 archive_cmds_need_lc_CXX=yes
15849 if test "$enable_shared" = yes && test "$GCC" = yes; then
15850 case $archive_cmds_CXX in
15851 *'~'*)
15852 # FIXME: we may have to deal with multi-command sequences.
15854 '$CC '*)
15855 # Test whether the compiler implicitly links with -lc since on some
15856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15857 # to ld, don't add -lc before -lgcc.
15858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15859 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15860 $rm conftest*
15861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } 2>conftest.err; then
15868 soname=conftest
15869 lib=conftest
15870 libobjs=conftest.$ac_objext
15871 deplibs=
15872 wl=$lt_prog_compiler_wl_CXX
15873 pic_flag=$lt_prog_compiler_pic_CXX
15874 compiler_flags=-v
15875 linker_flags=-v
15876 verstring=
15877 output_objdir=.
15878 libname=conftest
15879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15880 allow_undefined_flag_CXX=
15881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15882 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }
15886 then
15887 archive_cmds_need_lc_CXX=no
15888 else
15889 archive_cmds_need_lc_CXX=yes
15891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15892 else
15893 cat conftest.err 1>&5
15895 $rm conftest*
15896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15897 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15899 esac
15902 esac
15904 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15905 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15906 library_names_spec=
15907 libname_spec='lib$name'
15908 soname_spec=
15909 shrext_cmds=".so"
15910 postinstall_cmds=
15911 postuninstall_cmds=
15912 finish_cmds=
15913 finish_eval=
15914 shlibpath_var=
15915 shlibpath_overrides_runpath=unknown
15916 version_type=none
15917 dynamic_linker="$host_os ld.so"
15918 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15920 need_lib_prefix=unknown
15921 hardcode_into_libs=no
15923 # when you set need_version to no, make sure it does not cause -set_version
15924 # flags to be left without arguments
15925 need_version=unknown
15927 case $host_os in
15928 aix3*)
15929 version_type=linux
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15931 shlibpath_var=LIBPATH
15933 # AIX 3 has no versioning support, so we append a major version to the name.
15934 soname_spec='${libname}${release}${shared_ext}$major'
15937 aix[4-9]*)
15938 version_type=linux
15939 need_lib_prefix=no
15940 need_version=no
15941 hardcode_into_libs=yes
15942 if test "$host_cpu" = ia64; then
15943 # AIX 5 supports IA64
15944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 else
15947 # With GCC up to 2.95.x, collect2 would create an import file
15948 # for dependence libraries. The import file would start with
15949 # the line `#! .'. This would cause the generated library to
15950 # depend on `.', always an invalid library. This was fixed in
15951 # development snapshots of GCC prior to 3.0.
15952 case $host_os in
15953 aix4 | aix4.[01] | aix4.[01].*)
15954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15955 echo ' yes '
15956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15958 else
15959 can_build_shared=no
15962 esac
15963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15964 # soname into executable. Probably we can add versioning support to
15965 # collect2, so additional links can be useful in future.
15966 if test "$aix_use_runtimelinking" = yes; then
15967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15968 # instead of lib<name>.a to let people know that these are not
15969 # typical AIX shared libraries.
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 else
15972 # We preserve .a as extension for shared libraries through AIX4.2
15973 # and later when we are not doing run time linking.
15974 library_names_spec='${libname}${release}.a $libname.a'
15975 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LIBPATH
15981 amigaos*)
15982 library_names_spec='$libname.ixlibrary $libname.a'
15983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15984 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'
15987 beos*)
15988 library_names_spec='${libname}${shared_ext}'
15989 dynamic_linker="$host_os ld.so"
15990 shlibpath_var=LIBRARY_PATH
15993 bsdi[45]*)
15994 version_type=linux
15995 need_version=no
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16002 # the default ld.so.conf also contains /usr/contrib/lib and
16003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16004 # libtool to hard-code these into programs
16007 cygwin* | mingw* | pw32*)
16008 version_type=windows
16009 shrext_cmds=".dll"
16010 need_version=no
16011 need_lib_prefix=no
16013 case $GCC,$host_os in
16014 yes,cygwin* | yes,mingw* | yes,pw32*)
16015 library_names_spec='$libname.dll.a'
16016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16017 postinstall_cmds='base_file=`basename \${file}`~
16018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16019 dldir=$destdir/`dirname \$dlpath`~
16020 test -d \$dldir || mkdir -p \$dldir~
16021 $install_prog $dir/$dlname \$dldir/$dlname~
16022 chmod a+x \$dldir/$dlname'
16023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16024 dlpath=$dir/\$dldll~
16025 $rm \$dlpath'
16026 shlibpath_overrides_runpath=yes
16028 case $host_os in
16029 cygwin*)
16030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16034 mingw*)
16035 # MinGW DLLs use traditional 'lib' prefix
16036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16039 # It is most probably a Windows format PATH printed by
16040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16041 # path with ; separators, and with drive letters. We can handle the
16042 # drive letters (cygwin fileutils understands them), so leave them,
16043 # especially as we might pass files found there to a mingw objdump,
16044 # which wouldn't understand a cygwinified path. Ahh.
16045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16046 else
16047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16050 pw32*)
16051 # pw32 DLLs use 'pw' prefix rather than 'lib'
16052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16054 esac
16058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16060 esac
16061 dynamic_linker='Win32 ld.exe'
16062 # FIXME: first we should search . and the directory the executable is in
16063 shlibpath_var=PATH
16066 darwin* | rhapsody*)
16067 dynamic_linker="$host_os dyld"
16068 version_type=darwin
16069 need_lib_prefix=no
16070 need_version=no
16071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16072 soname_spec='${libname}${release}${major}$shared_ext'
16073 shlibpath_overrides_runpath=yes
16074 shlibpath_var=DYLD_LIBRARY_PATH
16075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16080 dgux*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16089 freebsd1*)
16090 dynamic_linker=no
16093 freebsd* | dragonfly*)
16094 # DragonFly does not have aout. When/if they implement a new
16095 # versioning mechanism, adjust this.
16096 if test -x /usr/bin/objformat; then
16097 objformat=`/usr/bin/objformat`
16098 else
16099 case $host_os in
16100 freebsd[123]*) objformat=aout ;;
16101 *) objformat=elf ;;
16102 esac
16104 version_type=freebsd-$objformat
16105 case $version_type in
16106 freebsd-elf*)
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108 need_version=no
16109 need_lib_prefix=no
16111 freebsd-*)
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16113 need_version=yes
16115 esac
16116 shlibpath_var=LD_LIBRARY_PATH
16117 case $host_os in
16118 freebsd2*)
16119 shlibpath_overrides_runpath=yes
16121 freebsd3.[01]* | freebsdelf3.[01]*)
16122 shlibpath_overrides_runpath=yes
16123 hardcode_into_libs=yes
16125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16127 shlibpath_overrides_runpath=no
16128 hardcode_into_libs=yes
16130 *) # from 4.6 on, and DragonFly
16131 shlibpath_overrides_runpath=yes
16132 hardcode_into_libs=yes
16134 esac
16137 gnu*)
16138 version_type=linux
16139 need_lib_prefix=no
16140 need_version=no
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 hardcode_into_libs=yes
16147 hpux9* | hpux10* | hpux11*)
16148 # Give a soname corresponding to the major version so that dld.sl refuses to
16149 # link against other versions.
16150 version_type=sunos
16151 need_lib_prefix=no
16152 need_version=no
16153 case $host_cpu in
16154 ia64*)
16155 shrext_cmds='.so'
16156 hardcode_into_libs=yes
16157 dynamic_linker="$host_os dld.so"
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 if test "X$HPUX_IA64_MODE" = X32; then
16163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16164 else
16165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16169 hppa*64*)
16170 shrext_cmds='.sl'
16171 hardcode_into_libs=yes
16172 dynamic_linker="$host_os dld.sl"
16173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec='${libname}${release}${shared_ext}$major'
16177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16181 shrext_cmds='.sl'
16182 dynamic_linker="$host_os dld.sl"
16183 shlibpath_var=SHLIB_PATH
16184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16188 esac
16189 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16190 postinstall_cmds='chmod 555 $lib'
16193 interix[3-9]*)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16205 irix5* | irix6* | nonstopux*)
16206 case $host_os in
16207 nonstopux*) version_type=nonstopux ;;
16209 if test "$lt_cv_prog_gnu_ld" = yes; then
16210 version_type=linux
16211 else
16212 version_type=irix
16213 fi ;;
16214 esac
16215 need_lib_prefix=no
16216 need_version=no
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16219 case $host_os in
16220 irix5* | nonstopux*)
16221 libsuff= shlibsuff=
16224 case $LD in # libtool.m4 will add one of these switches to LD
16225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16226 libsuff= shlibsuff= libmagic=32-bit;;
16227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16228 libsuff=32 shlibsuff=N32 libmagic=N32;;
16229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16231 *) libsuff= shlibsuff= libmagic=never-match;;
16232 esac
16234 esac
16235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16236 shlibpath_overrides_runpath=no
16237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16239 hardcode_into_libs=yes
16242 # No shared lib support for Linux oldld, aout, or coff.
16243 linux*oldld* | linux*aout* | linux*coff*)
16244 dynamic_linker=no
16247 # This must be Linux ELF.
16248 linux* | k*bsd*-gnu)
16249 version_type=linux
16250 need_lib_prefix=no
16251 need_version=no
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=no
16257 # This implies no fast_install, which is unacceptable.
16258 # Some rework will be needed to allow for fast_install
16259 # before this can be enabled.
16260 hardcode_into_libs=yes
16262 # Append ld.so.conf contents to the search path
16263 if test -f /etc/ld.so.conf; then
16264 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' ' '`
16265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16268 # We used to test for /lib/ld.so.1 and disable shared libraries on
16269 # powerpc, because MkLinux only supported shared libraries with the
16270 # GNU dynamic linker. Since this was broken with cross compilers,
16271 # most powerpc-linux boxes support dynamic linking these days and
16272 # people can always --disable-shared, the test was removed, and we
16273 # assume the GNU/Linux dynamic linker is in use.
16274 dynamic_linker='GNU/Linux ld.so'
16277 netbsdelf*-gnu)
16278 version_type=linux
16279 need_lib_prefix=no
16280 need_version=no
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
16285 hardcode_into_libs=yes
16286 dynamic_linker='NetBSD ld.elf_so'
16289 netbsd*)
16290 version_type=sunos
16291 need_lib_prefix=no
16292 need_version=no
16293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16296 dynamic_linker='NetBSD (a.out) ld.so'
16297 else
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 dynamic_linker='NetBSD ld.elf_so'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 shlibpath_overrides_runpath=yes
16304 hardcode_into_libs=yes
16307 newsos6)
16308 version_type=linux
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 shlibpath_var=LD_LIBRARY_PATH
16311 shlibpath_overrides_runpath=yes
16314 nto-qnx*)
16315 version_type=linux
16316 need_lib_prefix=no
16317 need_version=no
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16324 openbsd*)
16325 version_type=sunos
16326 sys_lib_dlsearch_path_spec="/usr/lib"
16327 need_lib_prefix=no
16328 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16329 case $host_os in
16330 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16331 *) need_version=no ;;
16332 esac
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16337 case $host_os in
16338 openbsd2.[89] | openbsd2.[89].*)
16339 shlibpath_overrides_runpath=no
16342 shlibpath_overrides_runpath=yes
16344 esac
16345 else
16346 shlibpath_overrides_runpath=yes
16350 os2*)
16351 libname_spec='$name'
16352 shrext_cmds=".dll"
16353 need_lib_prefix=no
16354 library_names_spec='$libname${shared_ext} $libname.a'
16355 dynamic_linker='OS/2 ld.exe'
16356 shlibpath_var=LIBPATH
16359 osf3* | osf4* | osf5*)
16360 version_type=osf
16361 need_lib_prefix=no
16362 need_version=no
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16370 rdos*)
16371 dynamic_linker=no
16374 solaris*)
16375 version_type=linux
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 hardcode_into_libs=yes
16383 # ldd complains unless libraries are executable
16384 postinstall_cmds='chmod +x $lib'
16387 sunos4*)
16388 version_type=sunos
16389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16391 shlibpath_var=LD_LIBRARY_PATH
16392 shlibpath_overrides_runpath=yes
16393 if test "$with_gnu_ld" = yes; then
16394 need_lib_prefix=no
16396 need_version=yes
16399 sysv4 | sysv4.3*)
16400 version_type=linux
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 case $host_vendor in
16405 sni)
16406 shlibpath_overrides_runpath=no
16407 need_lib_prefix=no
16408 export_dynamic_flag_spec='${wl}-Blargedynsym'
16409 runpath_var=LD_RUN_PATH
16411 siemens)
16412 need_lib_prefix=no
16414 motorola)
16415 need_lib_prefix=no
16416 need_version=no
16417 shlibpath_overrides_runpath=no
16418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16420 esac
16423 sysv4*MP*)
16424 if test -d /usr/nec ;then
16425 version_type=linux
16426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16427 soname_spec='$libname${shared_ext}.$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16433 version_type=freebsd-elf
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 hardcode_into_libs=yes
16440 if test "$with_gnu_ld" = yes; then
16441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16442 shlibpath_overrides_runpath=no
16443 else
16444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16445 shlibpath_overrides_runpath=yes
16446 case $host_os in
16447 sco3.2v5*)
16448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16450 esac
16452 sys_lib_dlsearch_path_spec='/usr/lib'
16455 uts4*)
16456 version_type=linux
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 shlibpath_var=LD_LIBRARY_PATH
16463 dynamic_linker=no
16465 esac
16466 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16467 echo "${ECHO_T}$dynamic_linker" >&6; }
16468 test "$dynamic_linker" = no && can_build_shared=no
16470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16477 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16485 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16486 if test "$GCC" = yes; then
16487 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16490 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16491 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16492 hardcode_action_CXX=
16493 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16494 test -n "$runpath_var_CXX" || \
16495 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16497 # We can hardcode non-existant directories.
16498 if test "$hardcode_direct_CXX" != no &&
16499 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16500 # have to relink, otherwise we might link with an installed library
16501 # when we should be linking with a yet-to-be-installed one
16502 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16503 test "$hardcode_minus_L_CXX" != no; then
16504 # Linking always hardcodes the temporary library directory.
16505 hardcode_action_CXX=relink
16506 else
16507 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16508 hardcode_action_CXX=immediate
16510 else
16511 # We cannot hardcode anything, or else we can only hardcode existing
16512 # directories.
16513 hardcode_action_CXX=unsupported
16515 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16516 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16518 if test "$hardcode_action_CXX" = relink; then
16519 # Fast installation is not supported
16520 enable_fast_install=no
16521 elif test "$shlibpath_overrides_runpath" = yes ||
16522 test "$enable_shared" = no; then
16523 # Fast installation is not necessary
16524 enable_fast_install=needless
16528 # The else clause should only fire when bootstrapping the
16529 # libtool distribution, otherwise you forgot to ship ltmain.sh
16530 # with your package, and you will get complaints that there are
16531 # no rules to generate ltmain.sh.
16532 if test -f "$ltmain"; then
16533 # See if we are running on zsh, and set the options which allow our commands through
16534 # without removal of \ escapes.
16535 if test -n "${ZSH_VERSION+set}" ; then
16536 setopt NO_GLOB_SUBST
16538 # Now quote all the things that may contain metacharacters while being
16539 # careful not to overquote the AC_SUBSTed values. We take copies of the
16540 # variables and quote the copies for generation of the libtool script.
16541 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16542 SED SHELL STRIP \
16543 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16544 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16545 deplibs_check_method reload_flag reload_cmds need_locks \
16546 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16547 lt_cv_sys_global_symbol_to_c_name_address \
16548 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16549 old_postinstall_cmds old_postuninstall_cmds \
16550 compiler_CXX \
16551 CC_CXX \
16552 LD_CXX \
16553 lt_prog_compiler_wl_CXX \
16554 lt_prog_compiler_pic_CXX \
16555 lt_prog_compiler_static_CXX \
16556 lt_prog_compiler_no_builtin_flag_CXX \
16557 export_dynamic_flag_spec_CXX \
16558 thread_safe_flag_spec_CXX \
16559 whole_archive_flag_spec_CXX \
16560 enable_shared_with_static_runtimes_CXX \
16561 old_archive_cmds_CXX \
16562 old_archive_from_new_cmds_CXX \
16563 predep_objects_CXX \
16564 postdep_objects_CXX \
16565 predeps_CXX \
16566 postdeps_CXX \
16567 compiler_lib_search_path_CXX \
16568 compiler_lib_search_dirs_CXX \
16569 archive_cmds_CXX \
16570 archive_expsym_cmds_CXX \
16571 postinstall_cmds_CXX \
16572 postuninstall_cmds_CXX \
16573 old_archive_from_expsyms_cmds_CXX \
16574 allow_undefined_flag_CXX \
16575 no_undefined_flag_CXX \
16576 export_symbols_cmds_CXX \
16577 hardcode_libdir_flag_spec_CXX \
16578 hardcode_libdir_flag_spec_ld_CXX \
16579 hardcode_libdir_separator_CXX \
16580 hardcode_automatic_CXX \
16581 module_cmds_CXX \
16582 module_expsym_cmds_CXX \
16583 lt_cv_prog_compiler_c_o_CXX \
16584 fix_srcfile_path_CXX \
16585 exclude_expsyms_CXX \
16586 include_expsyms_CXX; do
16588 case $var in
16589 old_archive_cmds_CXX | \
16590 old_archive_from_new_cmds_CXX | \
16591 archive_cmds_CXX | \
16592 archive_expsym_cmds_CXX | \
16593 module_cmds_CXX | \
16594 module_expsym_cmds_CXX | \
16595 old_archive_from_expsyms_cmds_CXX | \
16596 export_symbols_cmds_CXX | \
16597 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16598 postinstall_cmds | postuninstall_cmds | \
16599 old_postinstall_cmds | old_postuninstall_cmds | \
16600 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16601 # Double-quote double-evaled strings.
16602 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16607 esac
16608 done
16610 case $lt_echo in
16611 *'\$0 --fallback-echo"')
16612 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16614 esac
16616 cfgfile="$ofile"
16618 cat <<__EOF__ >> "$cfgfile"
16619 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16623 # Shell to use when invoking shell scripts.
16624 SHELL=$lt_SHELL
16626 # Whether or not to build shared libraries.
16627 build_libtool_libs=$enable_shared
16629 # Whether or not to build static libraries.
16630 build_old_libs=$enable_static
16632 # Whether or not to add -lc for building shared libraries.
16633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16635 # Whether or not to disallow shared libs when runtime libs are static
16636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16638 # Whether or not to optimize for fast installation.
16639 fast_install=$enable_fast_install
16641 # The host system.
16642 host_alias=$host_alias
16643 host=$host
16644 host_os=$host_os
16646 # The build system.
16647 build_alias=$build_alias
16648 build=$build
16649 build_os=$build_os
16651 # An echo program that does not interpret backslashes.
16652 echo=$lt_echo
16654 # The archiver.
16655 AR=$lt_AR
16656 AR_FLAGS=$lt_AR_FLAGS
16658 # A C compiler.
16659 LTCC=$lt_LTCC
16661 # LTCC compiler flags.
16662 LTCFLAGS=$lt_LTCFLAGS
16664 # A language-specific compiler.
16665 CC=$lt_compiler_CXX
16667 # Is the compiler the GNU C compiler?
16668 with_gcc=$GCC_CXX
16670 # An ERE matcher.
16671 EGREP=$lt_EGREP
16673 # The linker used to build libraries.
16674 LD=$lt_LD_CXX
16676 # Whether we need hard or soft links.
16677 LN_S=$lt_LN_S
16679 # A BSD-compatible nm program.
16680 NM=$lt_NM
16682 # A symbol stripping program
16683 STRIP=$lt_STRIP
16685 # Used to examine libraries when file_magic_cmd begins "file"
16686 MAGIC_CMD=$MAGIC_CMD
16688 # Used on cygwin: DLL creation program.
16689 DLLTOOL="$DLLTOOL"
16691 # Used on cygwin: object dumper.
16692 OBJDUMP="$OBJDUMP"
16694 # Used on cygwin: assembler.
16695 AS="$AS"
16697 # The name of the directory that contains temporary libtool files.
16698 objdir=$objdir
16700 # How to create reloadable object files.
16701 reload_flag=$lt_reload_flag
16702 reload_cmds=$lt_reload_cmds
16704 # How to pass a linker flag through the compiler.
16705 wl=$lt_lt_prog_compiler_wl_CXX
16707 # Object file suffix (normally "o").
16708 objext="$ac_objext"
16710 # Old archive suffix (normally "a").
16711 libext="$libext"
16713 # Shared library suffix (normally ".so").
16714 shrext_cmds='$shrext_cmds'
16716 # Executable file suffix (normally "").
16717 exeext="$exeext"
16719 # Additional compiler flags for building library objects.
16720 pic_flag=$lt_lt_prog_compiler_pic_CXX
16721 pic_mode=$pic_mode
16723 # What is the maximum length of a command?
16724 max_cmd_len=$lt_cv_sys_max_cmd_len
16726 # Does compiler simultaneously support -c and -o options?
16727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16729 # Must we lock files when doing compilation?
16730 need_locks=$lt_need_locks
16732 # Do we need the lib prefix for modules?
16733 need_lib_prefix=$need_lib_prefix
16735 # Do we need a version for libraries?
16736 need_version=$need_version
16738 # Whether dlopen is supported.
16739 dlopen_support=$enable_dlopen
16741 # Whether dlopen of programs is supported.
16742 dlopen_self=$enable_dlopen_self
16744 # Whether dlopen of statically linked programs is supported.
16745 dlopen_self_static=$enable_dlopen_self_static
16747 # Compiler flag to prevent dynamic linking.
16748 link_static_flag=$lt_lt_prog_compiler_static_CXX
16750 # Compiler flag to turn off builtin functions.
16751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16753 # Compiler flag to allow reflexive dlopens.
16754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16756 # Compiler flag to generate shared objects directly from archives.
16757 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16759 # Compiler flag to generate thread-safe objects.
16760 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16762 # Library versioning type.
16763 version_type=$version_type
16765 # Format of library name prefix.
16766 libname_spec=$lt_libname_spec
16768 # List of archive names. First name is the real one, the rest are links.
16769 # The last name is the one that the linker finds with -lNAME.
16770 library_names_spec=$lt_library_names_spec
16772 # The coded name of the library, if different from the real name.
16773 soname_spec=$lt_soname_spec
16775 # Commands used to build and install an old-style archive.
16776 RANLIB=$lt_RANLIB
16777 old_archive_cmds=$lt_old_archive_cmds_CXX
16778 old_postinstall_cmds=$lt_old_postinstall_cmds
16779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16781 # Create an old-style archive from a shared archive.
16782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16784 # Create a temporary old-style archive to link instead of a shared archive.
16785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16787 # Commands used to build and install a shared archive.
16788 archive_cmds=$lt_archive_cmds_CXX
16789 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16790 postinstall_cmds=$lt_postinstall_cmds
16791 postuninstall_cmds=$lt_postuninstall_cmds
16793 # Commands used to build a loadable module (assumed same as above if empty)
16794 module_cmds=$lt_module_cmds_CXX
16795 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16797 # Commands to strip libraries.
16798 old_striplib=$lt_old_striplib
16799 striplib=$lt_striplib
16801 # Dependencies to place before the objects being linked to create a
16802 # shared library.
16803 predep_objects=$lt_predep_objects_CXX
16805 # Dependencies to place after the objects being linked to create a
16806 # shared library.
16807 postdep_objects=$lt_postdep_objects_CXX
16809 # Dependencies to place before the objects being linked to create a
16810 # shared library.
16811 predeps=$lt_predeps_CXX
16813 # Dependencies to place after the objects being linked to create a
16814 # shared library.
16815 postdeps=$lt_postdeps_CXX
16817 # The directories searched by this compiler when creating a shared
16818 # library
16819 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16821 # The library search path used internally by the compiler when linking
16822 # a shared library.
16823 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16825 # Method to check whether dependent libraries are shared objects.
16826 deplibs_check_method=$lt_deplibs_check_method
16828 # Command to use when deplibs_check_method == file_magic.
16829 file_magic_cmd=$lt_file_magic_cmd
16831 # Flag that allows shared libraries with undefined symbols to be built.
16832 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16834 # Flag that forces no undefined symbols.
16835 no_undefined_flag=$lt_no_undefined_flag_CXX
16837 # Commands used to finish a libtool library installation in a directory.
16838 finish_cmds=$lt_finish_cmds
16840 # Same as above, but a single script fragment to be evaled but not shown.
16841 finish_eval=$lt_finish_eval
16843 # Take the output of nm and produce a listing of raw symbols and C names.
16844 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16846 # Transform the output of nm in a proper C declaration
16847 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16849 # Transform the output of nm in a C name address pair
16850 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16852 # This is the shared library runtime path variable.
16853 runpath_var=$runpath_var
16855 # This is the shared library path variable.
16856 shlibpath_var=$shlibpath_var
16858 # Is shlibpath searched before the hard-coded library search path?
16859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16861 # How to hardcode a shared library path into an executable.
16862 hardcode_action=$hardcode_action_CXX
16864 # Whether we should hardcode library paths into libraries.
16865 hardcode_into_libs=$hardcode_into_libs
16867 # Flag to hardcode \$libdir into a binary during linking.
16868 # This must work even if \$libdir does not exist.
16869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16871 # If ld is used when linking, flag to hardcode \$libdir into
16872 # a binary during linking. This must work even if \$libdir does
16873 # not exist.
16874 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16876 # Whether we need a single -rpath flag with a separated argument.
16877 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16879 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16880 # resulting binary.
16881 hardcode_direct=$hardcode_direct_CXX
16883 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16884 # resulting binary.
16885 hardcode_minus_L=$hardcode_minus_L_CXX
16887 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16888 # the resulting binary.
16889 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16891 # Set to yes if building a shared library automatically hardcodes DIR into the library
16892 # and all subsequent libraries and executables linked against it.
16893 hardcode_automatic=$hardcode_automatic_CXX
16895 # Variables whose values should be saved in libtool wrapper scripts and
16896 # restored at relink time.
16897 variables_saved_for_relink="$variables_saved_for_relink"
16899 # Whether libtool must link a program against all its dependency libraries.
16900 link_all_deplibs=$link_all_deplibs_CXX
16902 # Compile-time system search path for libraries
16903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16905 # Run-time system search path for libraries
16906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16908 # Fix the shell variable \$srcfile for the compiler.
16909 fix_srcfile_path=$lt_fix_srcfile_path
16911 # Set to yes if exported symbols are required.
16912 always_export_symbols=$always_export_symbols_CXX
16914 # The commands to list exported symbols.
16915 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16917 # The commands to extract the exported symbol list from a shared archive.
16918 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16920 # Symbols that should not be listed in the preloaded symbols.
16921 exclude_expsyms=$lt_exclude_expsyms_CXX
16923 # Symbols that must always be exported.
16924 include_expsyms=$lt_include_expsyms_CXX
16926 # ### END LIBTOOL TAG CONFIG: $tagname
16928 __EOF__
16931 else
16932 # If there is no Makefile yet, we rely on a make rule to execute
16933 # `config.status --recheck' to rerun these tests and create the
16934 # libtool script then.
16935 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16936 if test -f "$ltmain_in"; then
16937 test -f Makefile && make "$ltmain"
16942 ac_ext=c
16943 ac_cpp='$CPP $CPPFLAGS'
16944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948 CC=$lt_save_CC
16949 LDCXX=$LD
16950 LD=$lt_save_LD
16951 GCC=$lt_save_GCC
16952 with_gnu_ldcxx=$with_gnu_ld
16953 with_gnu_ld=$lt_save_with_gnu_ld
16954 lt_cv_path_LDCXX=$lt_cv_path_LD
16955 lt_cv_path_LD=$lt_save_path_LD
16956 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16957 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16959 else
16960 tagname=""
16964 F77)
16965 if test -n "$F77" && test "X$F77" != "Xno"; then
16967 ac_ext=f
16968 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16969 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16973 archive_cmds_need_lc_F77=no
16974 allow_undefined_flag_F77=
16975 always_export_symbols_F77=no
16976 archive_expsym_cmds_F77=
16977 export_dynamic_flag_spec_F77=
16978 hardcode_direct_F77=no
16979 hardcode_libdir_flag_spec_F77=
16980 hardcode_libdir_flag_spec_ld_F77=
16981 hardcode_libdir_separator_F77=
16982 hardcode_minus_L_F77=no
16983 hardcode_automatic_F77=no
16984 module_cmds_F77=
16985 module_expsym_cmds_F77=
16986 link_all_deplibs_F77=unknown
16987 old_archive_cmds_F77=$old_archive_cmds
16988 no_undefined_flag_F77=
16989 whole_archive_flag_spec_F77=
16990 enable_shared_with_static_runtimes_F77=no
16992 # Source file extension for f77 test sources.
16993 ac_ext=f
16995 # Object file extension for compiled f77 test sources.
16996 objext=o
16997 objext_F77=$objext
16999 # Code to be used in simple compile tests
17000 lt_simple_compile_test_code="\
17001 subroutine t
17002 return
17006 # Code to be used in simple link tests
17007 lt_simple_link_test_code="\
17008 program t
17012 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17014 # If no C compiler was specified, use CC.
17015 LTCC=${LTCC-"$CC"}
17017 # If no C compiler flags were specified, use CFLAGS.
17018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17020 # Allow CC to be a program name with arguments.
17021 compiler=$CC
17024 # save warnings/boilerplate of simple test code
17025 ac_outfile=conftest.$ac_objext
17026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17028 _lt_compiler_boilerplate=`cat conftest.err`
17029 $rm conftest*
17031 ac_outfile=conftest.$ac_objext
17032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17034 _lt_linker_boilerplate=`cat conftest.err`
17035 $rm -r conftest*
17038 # Allow CC to be a program name with arguments.
17039 lt_save_CC="$CC"
17040 CC=${F77-"f77"}
17041 compiler=$CC
17042 compiler_F77=$CC
17043 for cc_temp in $compiler""; do
17044 case $cc_temp in
17045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17047 \-*) ;;
17048 *) break;;
17049 esac
17050 done
17051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17054 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17055 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17056 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17057 echo "${ECHO_T}$can_build_shared" >&6; }
17059 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17060 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17061 test "$can_build_shared" = "no" && enable_shared=no
17063 # On AIX, shared libraries and static libraries use the same namespace, and
17064 # are all built from PIC.
17065 case $host_os in
17066 aix3*)
17067 test "$enable_shared" = yes && enable_static=no
17068 if test -n "$RANLIB"; then
17069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17070 postinstall_cmds='$RANLIB $lib'
17073 aix[4-9]*)
17074 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17075 test "$enable_shared" = yes && enable_static=no
17078 esac
17079 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17080 echo "${ECHO_T}$enable_shared" >&6; }
17082 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17083 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17084 # Make sure either enable_shared or enable_static is yes.
17085 test "$enable_shared" = yes || enable_static=yes
17086 { echo "$as_me:$LINENO: result: $enable_static" >&5
17087 echo "${ECHO_T}$enable_static" >&6; }
17089 GCC_F77="$G77"
17090 LD_F77="$LD"
17092 lt_prog_compiler_wl_F77=
17093 lt_prog_compiler_pic_F77=
17094 lt_prog_compiler_static_F77=
17096 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17097 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17099 if test "$GCC" = yes; then
17100 lt_prog_compiler_wl_F77='-Wl,'
17101 lt_prog_compiler_static_F77='-static'
17103 case $host_os in
17104 aix*)
17105 # All AIX code is PIC.
17106 if test "$host_cpu" = ia64; then
17107 # AIX 5 now supports IA64 processor
17108 lt_prog_compiler_static_F77='-Bstatic'
17112 amigaos*)
17113 # FIXME: we need at least 68020 code to build shared libraries, but
17114 # adding the `-m68020' flag to GCC prevents building anything better,
17115 # like `-m68040'.
17116 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17120 # PIC is the default for these OSes.
17123 mingw* | cygwin* | pw32* | os2*)
17124 # This hack is so that the source file can tell whether it is being
17125 # built for inclusion in a dll (and should export symbols for example).
17126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17127 # (--disable-auto-import) libraries
17128 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17131 darwin* | rhapsody*)
17132 # PIC is the default on this platform
17133 # Common symbols not allowed in MH_DYLIB files
17134 lt_prog_compiler_pic_F77='-fno-common'
17137 interix[3-9]*)
17138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17139 # Instead, we relocate shared libraries at runtime.
17142 msdosdjgpp*)
17143 # Just because we use GCC doesn't mean we suddenly get shared libraries
17144 # on systems that don't support them.
17145 lt_prog_compiler_can_build_shared_F77=no
17146 enable_shared=no
17149 sysv4*MP*)
17150 if test -d /usr/nec; then
17151 lt_prog_compiler_pic_F77=-Kconform_pic
17155 hpux*)
17156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17157 # not for PA HP-UX.
17158 case $host_cpu in
17159 hppa*64*|ia64*)
17160 # +Z the default
17163 lt_prog_compiler_pic_F77='-fPIC'
17165 esac
17169 lt_prog_compiler_pic_F77='-fPIC'
17171 esac
17172 else
17173 # PORTME Check for flag to pass linker flags through the system compiler.
17174 case $host_os in
17175 aix*)
17176 lt_prog_compiler_wl_F77='-Wl,'
17177 if test "$host_cpu" = ia64; then
17178 # AIX 5 now supports IA64 processor
17179 lt_prog_compiler_static_F77='-Bstatic'
17180 else
17181 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17184 darwin*)
17185 # PIC is the default on this platform
17186 # Common symbols not allowed in MH_DYLIB files
17187 case $cc_basename in
17188 xlc*)
17189 lt_prog_compiler_pic_F77='-qnocommon'
17190 lt_prog_compiler_wl_F77='-Wl,'
17192 esac
17195 mingw* | cygwin* | pw32* | os2*)
17196 # This hack is so that the source file can tell whether it is being
17197 # built for inclusion in a dll (and should export symbols for example).
17198 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17201 hpux9* | hpux10* | hpux11*)
17202 lt_prog_compiler_wl_F77='-Wl,'
17203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17204 # not for PA HP-UX.
17205 case $host_cpu in
17206 hppa*64*|ia64*)
17207 # +Z the default
17210 lt_prog_compiler_pic_F77='+Z'
17212 esac
17213 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17214 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17217 irix5* | irix6* | nonstopux*)
17218 lt_prog_compiler_wl_F77='-Wl,'
17219 # PIC (with -KPIC) is the default.
17220 lt_prog_compiler_static_F77='-non_shared'
17223 newsos6)
17224 lt_prog_compiler_pic_F77='-KPIC'
17225 lt_prog_compiler_static_F77='-Bstatic'
17228 linux* | k*bsd*-gnu)
17229 case $cc_basename in
17230 icc* | ecc*)
17231 lt_prog_compiler_wl_F77='-Wl,'
17232 lt_prog_compiler_pic_F77='-KPIC'
17233 lt_prog_compiler_static_F77='-static'
17235 pgcc* | pgf77* | pgf90* | pgf95*)
17236 # Portland Group compilers (*not* the Pentium gcc compiler,
17237 # which looks to be a dead project)
17238 lt_prog_compiler_wl_F77='-Wl,'
17239 lt_prog_compiler_pic_F77='-fpic'
17240 lt_prog_compiler_static_F77='-Bstatic'
17242 ccc*)
17243 lt_prog_compiler_wl_F77='-Wl,'
17244 # All Alpha code is PIC.
17245 lt_prog_compiler_static_F77='-non_shared'
17248 case `$CC -V 2>&1 | sed 5q` in
17249 *Sun\ C*)
17250 # Sun C 5.9
17251 lt_prog_compiler_pic_F77='-KPIC'
17252 lt_prog_compiler_static_F77='-Bstatic'
17253 lt_prog_compiler_wl_F77='-Wl,'
17255 *Sun\ F*)
17256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17257 lt_prog_compiler_pic_F77='-KPIC'
17258 lt_prog_compiler_static_F77='-Bstatic'
17259 lt_prog_compiler_wl_F77=''
17261 esac
17263 esac
17266 osf3* | osf4* | osf5*)
17267 lt_prog_compiler_wl_F77='-Wl,'
17268 # All OSF/1 code is PIC.
17269 lt_prog_compiler_static_F77='-non_shared'
17272 rdos*)
17273 lt_prog_compiler_static_F77='-non_shared'
17276 solaris*)
17277 lt_prog_compiler_pic_F77='-KPIC'
17278 lt_prog_compiler_static_F77='-Bstatic'
17279 case $cc_basename in
17280 f77* | f90* | f95*)
17281 lt_prog_compiler_wl_F77='-Qoption ld ';;
17283 lt_prog_compiler_wl_F77='-Wl,';;
17284 esac
17287 sunos4*)
17288 lt_prog_compiler_wl_F77='-Qoption ld '
17289 lt_prog_compiler_pic_F77='-PIC'
17290 lt_prog_compiler_static_F77='-Bstatic'
17293 sysv4 | sysv4.2uw2* | sysv4.3*)
17294 lt_prog_compiler_wl_F77='-Wl,'
17295 lt_prog_compiler_pic_F77='-KPIC'
17296 lt_prog_compiler_static_F77='-Bstatic'
17299 sysv4*MP*)
17300 if test -d /usr/nec ;then
17301 lt_prog_compiler_pic_F77='-Kconform_pic'
17302 lt_prog_compiler_static_F77='-Bstatic'
17306 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17307 lt_prog_compiler_wl_F77='-Wl,'
17308 lt_prog_compiler_pic_F77='-KPIC'
17309 lt_prog_compiler_static_F77='-Bstatic'
17312 unicos*)
17313 lt_prog_compiler_wl_F77='-Wl,'
17314 lt_prog_compiler_can_build_shared_F77=no
17317 uts4*)
17318 lt_prog_compiler_pic_F77='-pic'
17319 lt_prog_compiler_static_F77='-Bstatic'
17323 lt_prog_compiler_can_build_shared_F77=no
17325 esac
17328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17329 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17332 # Check to make sure the PIC flag actually works.
17334 if test -n "$lt_prog_compiler_pic_F77"; then
17336 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17338 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341 lt_cv_prog_compiler_pic_works_F77=no
17342 ac_outfile=conftest.$ac_objext
17343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17344 lt_compiler_flag="$lt_prog_compiler_pic_F77"
17345 # Insert the option either (1) after the last *FLAGS variable, or
17346 # (2) before a word containing "conftest.", or (3) at the end.
17347 # Note that $ac_compile itself does not contain backslashes and begins
17348 # with a dollar sign (not a hyphen), so the echo should work correctly.
17349 # The option is referenced via a variable to avoid confusing sed.
17350 lt_compile=`echo "$ac_compile" | $SED \
17351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17353 -e 's:$: $lt_compiler_flag:'`
17354 (eval echo "\"\$as_me:17354: $lt_compile\"" >&5)
17355 (eval "$lt_compile" 2>conftest.err)
17356 ac_status=$?
17357 cat conftest.err >&5
17358 echo "$as_me:17358: \$? = $ac_status" >&5
17359 if (exit $ac_status) && test -s "$ac_outfile"; then
17360 # The compiler can only warn and ignore the option if not recognized
17361 # So say no if there are warnings other than the usual output.
17362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17365 lt_cv_prog_compiler_pic_works_F77=yes
17368 $rm conftest*
17371 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17372 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
17374 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17375 case $lt_prog_compiler_pic_F77 in
17376 "" | " "*) ;;
17377 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17378 esac
17379 else
17380 lt_prog_compiler_pic_F77=
17381 lt_prog_compiler_can_build_shared_F77=no
17385 case $host_os in
17386 # For platforms which do not support PIC, -DPIC is meaningless:
17387 *djgpp*)
17388 lt_prog_compiler_pic_F77=
17391 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17393 esac
17396 # Check to make sure the static flag actually works.
17398 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17399 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17400 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17401 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404 lt_cv_prog_compiler_static_works_F77=no
17405 save_LDFLAGS="$LDFLAGS"
17406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17407 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17409 # The linker can only warn and ignore the option if not recognized
17410 # So say no if there are warnings
17411 if test -s conftest.err; then
17412 # Append any errors to the config.log.
17413 cat conftest.err 1>&5
17414 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17416 if diff conftest.exp conftest.er2 >/dev/null; then
17417 lt_cv_prog_compiler_static_works_F77=yes
17419 else
17420 lt_cv_prog_compiler_static_works_F77=yes
17423 $rm -r conftest*
17424 LDFLAGS="$save_LDFLAGS"
17427 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
17428 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
17430 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17432 else
17433 lt_prog_compiler_static_F77=
17437 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17439 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442 lt_cv_prog_compiler_c_o_F77=no
17443 $rm -r conftest 2>/dev/null
17444 mkdir conftest
17445 cd conftest
17446 mkdir out
17447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17449 lt_compiler_flag="-o out/conftest2.$ac_objext"
17450 # Insert the option either (1) after the last *FLAGS variable, or
17451 # (2) before a word containing "conftest.", or (3) at the end.
17452 # Note that $ac_compile itself does not contain backslashes and begins
17453 # with a dollar sign (not a hyphen), so the echo should work correctly.
17454 lt_compile=`echo "$ac_compile" | $SED \
17455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17457 -e 's:$: $lt_compiler_flag:'`
17458 (eval echo "\"\$as_me:17458: $lt_compile\"" >&5)
17459 (eval "$lt_compile" 2>out/conftest.err)
17460 ac_status=$?
17461 cat out/conftest.err >&5
17462 echo "$as_me:17462: \$? = $ac_status" >&5
17463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17464 then
17465 # The compiler can only warn and ignore the option if not recognized
17466 # So say no if there are warnings
17467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17470 lt_cv_prog_compiler_c_o_F77=yes
17473 chmod u+w . 2>&5
17474 $rm conftest*
17475 # SGI C++ compiler will create directory out/ii_files/ for
17476 # template instantiation
17477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17478 $rm out/* && rmdir out
17479 cd ..
17480 rmdir conftest
17481 $rm conftest*
17484 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17488 hard_links="nottested"
17489 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17490 # do not overwrite the value of need_locks provided by the user
17491 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17492 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17493 hard_links=yes
17494 $rm conftest*
17495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17496 touch conftest.a
17497 ln conftest.a conftest.b 2>&5 || hard_links=no
17498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17499 { echo "$as_me:$LINENO: result: $hard_links" >&5
17500 echo "${ECHO_T}$hard_links" >&6; }
17501 if test "$hard_links" = no; then
17502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17503 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17504 need_locks=warn
17506 else
17507 need_locks=no
17510 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17513 runpath_var=
17514 allow_undefined_flag_F77=
17515 enable_shared_with_static_runtimes_F77=no
17516 archive_cmds_F77=
17517 archive_expsym_cmds_F77=
17518 old_archive_From_new_cmds_F77=
17519 old_archive_from_expsyms_cmds_F77=
17520 export_dynamic_flag_spec_F77=
17521 whole_archive_flag_spec_F77=
17522 thread_safe_flag_spec_F77=
17523 hardcode_libdir_flag_spec_F77=
17524 hardcode_libdir_flag_spec_ld_F77=
17525 hardcode_libdir_separator_F77=
17526 hardcode_direct_F77=no
17527 hardcode_minus_L_F77=no
17528 hardcode_shlibpath_var_F77=unsupported
17529 link_all_deplibs_F77=unknown
17530 hardcode_automatic_F77=no
17531 module_cmds_F77=
17532 module_expsym_cmds_F77=
17533 always_export_symbols_F77=no
17534 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17535 # include_expsyms should be a list of space-separated symbols to be *always*
17536 # included in the symbol list
17537 include_expsyms_F77=
17538 # exclude_expsyms can be an extended regexp of symbols to exclude
17539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17541 # as well as any symbol that contains `d'.
17542 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17544 # platforms (ab)use it in PIC code, but their linkers get confused if
17545 # the symbol is explicitly referenced. Since portable code cannot
17546 # rely on this symbol name, it's probably fine to never include it in
17547 # preloaded symbol tables.
17548 # Exclude shared library initialization/finalization symbols.
17549 extract_expsyms_cmds=
17550 # Just being paranoid about ensuring that cc_basename is set.
17551 for cc_temp in $compiler""; do
17552 case $cc_temp in
17553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17555 \-*) ;;
17556 *) break;;
17557 esac
17558 done
17559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17561 case $host_os in
17562 cygwin* | mingw* | pw32*)
17563 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17564 # When not using gcc, we currently assume that we are using
17565 # Microsoft Visual C++.
17566 if test "$GCC" != yes; then
17567 with_gnu_ld=no
17570 interix*)
17571 # we just hope/assume this is gcc and not c89 (= MSVC++)
17572 with_gnu_ld=yes
17574 openbsd*)
17575 with_gnu_ld=no
17577 esac
17579 ld_shlibs_F77=yes
17580 if test "$with_gnu_ld" = yes; then
17581 # If archive_cmds runs LD, not CC, wlarc should be empty
17582 wlarc='${wl}'
17584 # Set some defaults for GNU ld with shared library support. These
17585 # are reset later if shared libraries are not supported. Putting them
17586 # here allows them to be overridden if necessary.
17587 runpath_var=LD_RUN_PATH
17588 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17589 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17590 # ancient GNU ld didn't support --whole-archive et. al.
17591 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17592 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17593 else
17594 whole_archive_flag_spec_F77=
17596 supports_anon_versioning=no
17597 case `$LD -v 2>/dev/null` in
17598 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17601 *\ 2.11.*) ;; # other 2.11 versions
17602 *) supports_anon_versioning=yes ;;
17603 esac
17605 # See if GNU ld supports shared libraries.
17606 case $host_os in
17607 aix[3-9]*)
17608 # On AIX/PPC, the GNU linker is very broken
17609 if test "$host_cpu" != ia64; then
17610 ld_shlibs_F77=no
17611 cat <<EOF 1>&2
17613 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17614 *** to be unable to reliably create shared libraries on AIX.
17615 *** Therefore, libtool is disabling shared libraries support. If you
17616 *** really care for shared libraries, you may want to modify your PATH
17617 *** so that a non-GNU linker is found, and then restart.
17623 amigaos*)
17624 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)'
17625 hardcode_libdir_flag_spec_F77='-L$libdir'
17626 hardcode_minus_L_F77=yes
17628 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17629 # that the semantics of dynamic libraries on AmigaOS, at least up
17630 # to version 4, is to share data among multiple programs linked
17631 # with the same dynamic library. Since this doesn't match the
17632 # behavior of shared libraries on other platforms, we can't use
17633 # them.
17634 ld_shlibs_F77=no
17637 beos*)
17638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17639 allow_undefined_flag_F77=unsupported
17640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17641 # support --undefined. This deserves some investigation. FIXME
17642 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17643 else
17644 ld_shlibs_F77=no
17648 cygwin* | mingw* | pw32*)
17649 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17650 # as there is no search path for DLLs.
17651 hardcode_libdir_flag_spec_F77='-L$libdir'
17652 allow_undefined_flag_F77=unsupported
17653 always_export_symbols_F77=no
17654 enable_shared_with_static_runtimes_F77=yes
17655 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17659 # If the export-symbols file already is a .def file (1st line
17660 # is EXPORTS), use it as is; otherwise, prepend...
17661 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17662 cp $export_symbols $output_objdir/$soname.def;
17663 else
17664 echo EXPORTS > $output_objdir/$soname.def;
17665 cat $export_symbols >> $output_objdir/$soname.def;
17667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17668 else
17669 ld_shlibs_F77=no
17673 interix[3-9]*)
17674 hardcode_direct_F77=no
17675 hardcode_shlibpath_var_F77=no
17676 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17677 export_dynamic_flag_spec_F77='${wl}-E'
17678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17679 # Instead, shared libraries are loaded at an image base (0x10000000 by
17680 # default) and relocated if they conflict, which is a slow very memory
17681 # consuming and fragmenting process. To avoid this, we pick a random,
17682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17684 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'
17685 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'
17688 gnu* | linux* | k*bsd*-gnu)
17689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17690 tmp_addflag=
17691 case $cc_basename,$host_cpu in
17692 pgcc*) # Portland Group C compiler
17693 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'
17694 tmp_addflag=' $pic_flag'
17696 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17697 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'
17698 tmp_addflag=' $pic_flag -Mnomain' ;;
17699 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17700 tmp_addflag=' -i_dynamic' ;;
17701 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17702 tmp_addflag=' -i_dynamic -nofor_main' ;;
17703 ifc* | ifort*) # Intel Fortran compiler
17704 tmp_addflag=' -nofor_main' ;;
17705 esac
17706 case `$CC -V 2>&1 | sed 5q` in
17707 *Sun\ C*) # Sun C 5.9
17708 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'
17709 tmp_sharedflag='-G' ;;
17710 *Sun\ F*) # Sun Fortran 8.3
17711 tmp_sharedflag='-G' ;;
17713 tmp_sharedflag='-shared' ;;
17714 esac
17715 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17717 if test $supports_anon_versioning = yes; then
17718 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17720 $echo "local: *; };" >> $output_objdir/$libname.ver~
17721 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17723 link_all_deplibs_F77=no
17724 else
17725 ld_shlibs_F77=no
17729 netbsd* | netbsdelf*-gnu)
17730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17731 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17732 wlarc=
17733 else
17734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17739 solaris*)
17740 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17741 ld_shlibs_F77=no
17742 cat <<EOF 1>&2
17744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17745 *** create shared libraries on Solaris systems. Therefore, libtool
17746 *** is disabling shared libraries support. We urge you to upgrade GNU
17747 *** binutils to release 2.9.1 or newer. Another option is to modify
17748 *** your PATH or compiler configuration so that the native linker is
17749 *** used, and then restart.
17752 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17755 else
17756 ld_shlibs_F77=no
17760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17761 case `$LD -v 2>&1` in
17762 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17763 ld_shlibs_F77=no
17764 cat <<_LT_EOF 1>&2
17766 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17767 *** reliably create shared libraries on SCO systems. Therefore, libtool
17768 *** is disabling shared libraries support. We urge you to upgrade GNU
17769 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17770 *** your PATH or compiler configuration so that the native linker is
17771 *** used, and then restart.
17773 _LT_EOF
17776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17777 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17778 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17779 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17780 else
17781 ld_shlibs_F77=no
17784 esac
17787 sunos4*)
17788 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17789 wlarc=
17790 hardcode_direct_F77=yes
17791 hardcode_shlibpath_var_F77=no
17795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17798 else
17799 ld_shlibs_F77=no
17802 esac
17804 if test "$ld_shlibs_F77" = no; then
17805 runpath_var=
17806 hardcode_libdir_flag_spec_F77=
17807 export_dynamic_flag_spec_F77=
17808 whole_archive_flag_spec_F77=
17810 else
17811 # PORTME fill in a description of your system's linker (not GNU ld)
17812 case $host_os in
17813 aix3*)
17814 allow_undefined_flag_F77=unsupported
17815 always_export_symbols_F77=yes
17816 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'
17817 # Note: this linker hardcodes the directories in LIBPATH if there
17818 # are no directories specified by -L.
17819 hardcode_minus_L_F77=yes
17820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17821 # Neither direct hardcoding nor static linking is supported with a
17822 # broken collect2.
17823 hardcode_direct_F77=unsupported
17827 aix[4-9]*)
17828 if test "$host_cpu" = ia64; then
17829 # On IA64, the linker does run time linking by default, so we don't
17830 # have to do anything special.
17831 aix_use_runtimelinking=no
17832 exp_sym_flag='-Bexport'
17833 no_entry_flag=""
17834 else
17835 # If we're using GNU nm, then we don't want the "-C" option.
17836 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17837 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17838 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'
17839 else
17840 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'
17842 aix_use_runtimelinking=no
17844 # Test if we are trying to use run time linking or normal
17845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17846 # need to do runtime linking.
17847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17848 for ld_flag in $LDFLAGS; do
17849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17850 aix_use_runtimelinking=yes
17851 break
17853 done
17855 esac
17857 exp_sym_flag='-bexport'
17858 no_entry_flag='-bnoentry'
17861 # When large executables or shared objects are built, AIX ld can
17862 # have problems creating the table of contents. If linking a library
17863 # or program results in "error TOC overflow" add -mminimal-toc to
17864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17867 archive_cmds_F77=''
17868 hardcode_direct_F77=yes
17869 hardcode_libdir_separator_F77=':'
17870 link_all_deplibs_F77=yes
17872 if test "$GCC" = yes; then
17873 case $host_os in aix4.[012]|aix4.[012].*)
17874 # We only want to do this on AIX 4.2 and lower, the check
17875 # below for broken collect2 doesn't work under 4.3+
17876 collect2name=`${CC} -print-prog-name=collect2`
17877 if test -f "$collect2name" && \
17878 strings "$collect2name" | grep resolve_lib_name >/dev/null
17879 then
17880 # We have reworked collect2
17882 else
17883 # We have old collect2
17884 hardcode_direct_F77=unsupported
17885 # It fails to find uninstalled libraries when the uninstalled
17886 # path is not listed in the libpath. Setting hardcode_minus_L
17887 # to unsupported forces relinking
17888 hardcode_minus_L_F77=yes
17889 hardcode_libdir_flag_spec_F77='-L$libdir'
17890 hardcode_libdir_separator_F77=
17893 esac
17894 shared_flag='-shared'
17895 if test "$aix_use_runtimelinking" = yes; then
17896 shared_flag="$shared_flag "'${wl}-G'
17898 else
17899 # not using gcc
17900 if test "$host_cpu" = ia64; then
17901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17902 # chokes on -Wl,-G. The following line is correct:
17903 shared_flag='-G'
17904 else
17905 if test "$aix_use_runtimelinking" = yes; then
17906 shared_flag='${wl}-G'
17907 else
17908 shared_flag='${wl}-bM:SRE'
17913 # It seems that -bexpall does not export symbols beginning with
17914 # underscore (_), so it is better to generate a list of symbols to export.
17915 always_export_symbols_F77=yes
17916 if test "$aix_use_runtimelinking" = yes; then
17917 # Warning - without using the other runtime loading flags (-brtl),
17918 # -berok will link without error, but may produce a broken library.
17919 allow_undefined_flag_F77='-berok'
17920 # Determine the default libpath from the value encoded in an empty executable.
17921 cat >conftest.$ac_ext <<_ACEOF
17922 program main
17925 _ACEOF
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (ac_try="$ac_link"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } && {
17940 test -z "$ac_f77_werror_flag" ||
17941 test ! -s conftest.err
17942 } && test -s conftest$ac_exeext &&
17943 $as_test_x conftest$ac_exeext; then
17945 lt_aix_libpath_sed='
17946 /Import File Strings/,/^$/ {
17947 /^0/ {
17948 s/^0 *\(.*\)$/\1/
17952 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 # Check for a 64-bit object if we didn't find anything.
17954 if test -z "$aix_libpath"; then
17955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17965 conftest$ac_exeext conftest.$ac_ext
17966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17968 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17969 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"
17970 else
17971 if test "$host_cpu" = ia64; then
17972 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17973 allow_undefined_flag_F77="-z nodefs"
17974 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"
17975 else
17976 # Determine the default libpath from the value encoded in an empty executable.
17977 cat >conftest.$ac_ext <<_ACEOF
17978 program main
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (ac_try="$ac_link"
17984 case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } && {
17996 test -z "$ac_f77_werror_flag" ||
17997 test ! -s conftest.err
17998 } && test -s conftest$ac_exeext &&
17999 $as_test_x conftest$ac_exeext; then
18001 lt_aix_libpath_sed='
18002 /Import File Strings/,/^$/ {
18003 /^0/ {
18004 s/^0 *\(.*\)$/\1/
18008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18009 # Check for a 64-bit object if we didn't find anything.
18010 if test -z "$aix_libpath"; then
18011 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18013 else
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18021 conftest$ac_exeext conftest.$ac_ext
18022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18024 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18025 # Warning - without using the other run time loading flags,
18026 # -berok will link without error, but may produce a broken library.
18027 no_undefined_flag_F77=' ${wl}-bernotok'
18028 allow_undefined_flag_F77=' ${wl}-berok'
18029 # Exported symbols can be pulled into shared objects from archives
18030 whole_archive_flag_spec_F77='$convenience'
18031 archive_cmds_need_lc_F77=yes
18032 # This is similar to how AIX traditionally builds its shared libraries.
18033 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'
18038 amigaos*)
18039 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)'
18040 hardcode_libdir_flag_spec_F77='-L$libdir'
18041 hardcode_minus_L_F77=yes
18042 # see comment about different semantics on the GNU ld section
18043 ld_shlibs_F77=no
18046 bsdi[45]*)
18047 export_dynamic_flag_spec_F77=-rdynamic
18050 cygwin* | mingw* | pw32*)
18051 # When not using gcc, we currently assume that we are using
18052 # Microsoft Visual C++.
18053 # hardcode_libdir_flag_spec is actually meaningless, as there is
18054 # no search path for DLLs.
18055 hardcode_libdir_flag_spec_F77=' '
18056 allow_undefined_flag_F77=unsupported
18057 # Tell ltmain to make .lib files, not .a files.
18058 libext=lib
18059 # Tell ltmain to make .dll files, not .so files.
18060 shrext_cmds=".dll"
18061 # FIXME: Setting linknames here is a bad hack.
18062 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18063 # The linker will automatically build a .lib file if we build a DLL.
18064 old_archive_From_new_cmds_F77='true'
18065 # FIXME: Should let the user specify the lib program.
18066 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18067 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18068 enable_shared_with_static_runtimes_F77=yes
18071 darwin* | rhapsody*)
18072 case $host_os in
18073 rhapsody* | darwin1.[012])
18074 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18076 *) # Darwin 1.3 on
18077 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18078 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18079 else
18080 case ${MACOSX_DEPLOYMENT_TARGET} in
18081 10.[012])
18082 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18084 10.*)
18085 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18087 esac
18090 esac
18091 archive_cmds_need_lc_F77=no
18092 hardcode_direct_F77=no
18093 hardcode_automatic_F77=yes
18094 hardcode_shlibpath_var_F77=unsupported
18095 whole_archive_flag_spec_F77=''
18096 link_all_deplibs_F77=yes
18097 if test "$GCC" = yes ; then
18098 output_verbose_link_cmd='echo'
18099 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}"
18100 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18101 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}"
18102 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}"
18103 else
18104 case $cc_basename in
18105 xlc*)
18106 output_verbose_link_cmd='echo'
18107 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18108 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18109 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18110 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}'
18111 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}'
18114 ld_shlibs_F77=no
18116 esac
18120 dgux*)
18121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122 hardcode_libdir_flag_spec_F77='-L$libdir'
18123 hardcode_shlibpath_var_F77=no
18126 freebsd1*)
18127 ld_shlibs_F77=no
18130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18131 # support. Future versions do this automatically, but an explicit c++rt0.o
18132 # does not break anything, and helps significantly (at the cost of a little
18133 # extra space).
18134 freebsd2.2*)
18135 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18136 hardcode_libdir_flag_spec_F77='-R$libdir'
18137 hardcode_direct_F77=yes
18138 hardcode_shlibpath_var_F77=no
18141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18142 freebsd2*)
18143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18144 hardcode_direct_F77=yes
18145 hardcode_minus_L_F77=yes
18146 hardcode_shlibpath_var_F77=no
18149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18150 freebsd* | dragonfly*)
18151 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18152 hardcode_libdir_flag_spec_F77='-R$libdir'
18153 hardcode_direct_F77=yes
18154 hardcode_shlibpath_var_F77=no
18157 hpux9*)
18158 if test "$GCC" = yes; then
18159 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'
18160 else
18161 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'
18163 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18164 hardcode_libdir_separator_F77=:
18165 hardcode_direct_F77=yes
18167 # hardcode_minus_L: Not really in the search PATH,
18168 # but as the default location of the library.
18169 hardcode_minus_L_F77=yes
18170 export_dynamic_flag_spec_F77='${wl}-E'
18173 hpux10*)
18174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18175 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18176 else
18177 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18179 if test "$with_gnu_ld" = no; then
18180 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18181 hardcode_libdir_separator_F77=:
18183 hardcode_direct_F77=yes
18184 export_dynamic_flag_spec_F77='${wl}-E'
18186 # hardcode_minus_L: Not really in the search PATH,
18187 # but as the default location of the library.
18188 hardcode_minus_L_F77=yes
18192 hpux11*)
18193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18194 case $host_cpu in
18195 hppa*64*)
18196 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18198 ia64*)
18199 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18202 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18204 esac
18205 else
18206 case $host_cpu in
18207 hppa*64*)
18208 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18210 ia64*)
18211 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18214 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18216 esac
18218 if test "$with_gnu_ld" = no; then
18219 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18220 hardcode_libdir_separator_F77=:
18222 case $host_cpu in
18223 hppa*64*|ia64*)
18224 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18225 hardcode_direct_F77=no
18226 hardcode_shlibpath_var_F77=no
18229 hardcode_direct_F77=yes
18230 export_dynamic_flag_spec_F77='${wl}-E'
18232 # hardcode_minus_L: Not really in the search PATH,
18233 # but as the default location of the library.
18234 hardcode_minus_L_F77=yes
18236 esac
18240 irix5* | irix6* | nonstopux*)
18241 if test "$GCC" = yes; then
18242 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'
18243 else
18244 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'
18245 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18247 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18248 hardcode_libdir_separator_F77=:
18249 link_all_deplibs_F77=yes
18252 netbsd* | netbsdelf*-gnu)
18253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18255 else
18256 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18258 hardcode_libdir_flag_spec_F77='-R$libdir'
18259 hardcode_direct_F77=yes
18260 hardcode_shlibpath_var_F77=no
18263 newsos6)
18264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18265 hardcode_direct_F77=yes
18266 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18267 hardcode_libdir_separator_F77=:
18268 hardcode_shlibpath_var_F77=no
18271 openbsd*)
18272 if test -f /usr/libexec/ld.so; then
18273 hardcode_direct_F77=yes
18274 hardcode_shlibpath_var_F77=no
18275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18276 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18277 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18278 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18279 export_dynamic_flag_spec_F77='${wl}-E'
18280 else
18281 case $host_os in
18282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18283 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18284 hardcode_libdir_flag_spec_F77='-R$libdir'
18287 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18288 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18290 esac
18292 else
18293 ld_shlibs_F77=no
18297 os2*)
18298 hardcode_libdir_flag_spec_F77='-L$libdir'
18299 hardcode_minus_L_F77=yes
18300 allow_undefined_flag_F77=unsupported
18301 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'
18302 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18305 osf3*)
18306 if test "$GCC" = yes; then
18307 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18308 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'
18309 else
18310 allow_undefined_flag_F77=' -expect_unresolved \*'
18311 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'
18313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18314 hardcode_libdir_separator_F77=:
18317 osf4* | osf5*) # as osf3* with the addition of -msym flag
18318 if test "$GCC" = yes; then
18319 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18320 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'
18321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18322 else
18323 allow_undefined_flag_F77=' -expect_unresolved \*'
18324 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'
18325 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~
18326 $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'
18328 # Both c and cxx compiler support -rpath directly
18329 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18331 hardcode_libdir_separator_F77=:
18334 solaris*)
18335 no_undefined_flag_F77=' -z text'
18336 if test "$GCC" = yes; then
18337 wlarc='${wl}'
18338 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18339 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18340 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18341 else
18342 wlarc=''
18343 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18347 hardcode_libdir_flag_spec_F77='-R$libdir'
18348 hardcode_shlibpath_var_F77=no
18349 case $host_os in
18350 solaris2.[0-5] | solaris2.[0-5].*) ;;
18352 # The compiler driver will combine and reorder linker options,
18353 # but understands `-z linker_flag'. GCC discards it without `$wl',
18354 # but is careful enough not to reorder.
18355 # Supported since Solaris 2.6 (maybe 2.5.1?)
18356 if test "$GCC" = yes; then
18357 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18358 else
18359 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18362 esac
18363 link_all_deplibs_F77=yes
18366 sunos4*)
18367 if test "x$host_vendor" = xsequent; then
18368 # Use $CC to link under sequent, because it throws in some extra .o
18369 # files that make .init and .fini sections work.
18370 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18371 else
18372 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18374 hardcode_libdir_flag_spec_F77='-L$libdir'
18375 hardcode_direct_F77=yes
18376 hardcode_minus_L_F77=yes
18377 hardcode_shlibpath_var_F77=no
18380 sysv4)
18381 case $host_vendor in
18382 sni)
18383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384 hardcode_direct_F77=yes # is this really true???
18386 siemens)
18387 ## LD is ld it makes a PLAMLIB
18388 ## CC just makes a GrossModule.
18389 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18390 reload_cmds_F77='$CC -r -o $output$reload_objs'
18391 hardcode_direct_F77=no
18393 motorola)
18394 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18395 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18397 esac
18398 runpath_var='LD_RUN_PATH'
18399 hardcode_shlibpath_var_F77=no
18402 sysv4.3*)
18403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18404 hardcode_shlibpath_var_F77=no
18405 export_dynamic_flag_spec_F77='-Bexport'
18408 sysv4*MP*)
18409 if test -d /usr/nec; then
18410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411 hardcode_shlibpath_var_F77=no
18412 runpath_var=LD_RUN_PATH
18413 hardcode_runpath_var=yes
18414 ld_shlibs_F77=yes
18418 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18419 no_undefined_flag_F77='${wl}-z,text'
18420 archive_cmds_need_lc_F77=no
18421 hardcode_shlibpath_var_F77=no
18422 runpath_var='LD_RUN_PATH'
18424 if test "$GCC" = yes; then
18425 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18426 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18427 else
18428 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18429 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18433 sysv5* | sco3.2v5* | sco5v6*)
18434 # Note: We can NOT use -z defs as we might desire, because we do not
18435 # link with -lc, and that would cause any symbols used from libc to
18436 # always be unresolved, which means just about no library would
18437 # ever link correctly. If we're not using GNU ld we use -z text
18438 # though, which does catch some bad symbols but isn't as heavy-handed
18439 # as -z defs.
18440 no_undefined_flag_F77='${wl}-z,text'
18441 allow_undefined_flag_F77='${wl}-z,nodefs'
18442 archive_cmds_need_lc_F77=no
18443 hardcode_shlibpath_var_F77=no
18444 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18445 hardcode_libdir_separator_F77=':'
18446 link_all_deplibs_F77=yes
18447 export_dynamic_flag_spec_F77='${wl}-Bexport'
18448 runpath_var='LD_RUN_PATH'
18450 if test "$GCC" = yes; then
18451 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18452 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18453 else
18454 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18455 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18459 uts4*)
18460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18461 hardcode_libdir_flag_spec_F77='-L$libdir'
18462 hardcode_shlibpath_var_F77=no
18466 ld_shlibs_F77=no
18468 esac
18471 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18472 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18473 test "$ld_shlibs_F77" = no && can_build_shared=no
18476 # Do we need to explicitly link libc?
18478 case "x$archive_cmds_need_lc_F77" in
18479 x|xyes)
18480 # Assume -lc should be added
18481 archive_cmds_need_lc_F77=yes
18483 if test "$enable_shared" = yes && test "$GCC" = yes; then
18484 case $archive_cmds_F77 in
18485 *'~'*)
18486 # FIXME: we may have to deal with multi-command sequences.
18488 '$CC '*)
18489 # Test whether the compiler implicitly links with -lc since on some
18490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18491 # to ld, don't add -lc before -lgcc.
18492 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18493 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18494 $rm conftest*
18495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18498 (eval $ac_compile) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } 2>conftest.err; then
18502 soname=conftest
18503 lib=conftest
18504 libobjs=conftest.$ac_objext
18505 deplibs=
18506 wl=$lt_prog_compiler_wl_F77
18507 pic_flag=$lt_prog_compiler_pic_F77
18508 compiler_flags=-v
18509 linker_flags=-v
18510 verstring=
18511 output_objdir=.
18512 libname=conftest
18513 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18514 allow_undefined_flag_F77=
18515 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18516 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }
18520 then
18521 archive_cmds_need_lc_F77=no
18522 else
18523 archive_cmds_need_lc_F77=yes
18525 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18526 else
18527 cat conftest.err 1>&5
18529 $rm conftest*
18530 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18531 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18533 esac
18536 esac
18538 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18540 library_names_spec=
18541 libname_spec='lib$name'
18542 soname_spec=
18543 shrext_cmds=".so"
18544 postinstall_cmds=
18545 postuninstall_cmds=
18546 finish_cmds=
18547 finish_eval=
18548 shlibpath_var=
18549 shlibpath_overrides_runpath=unknown
18550 version_type=none
18551 dynamic_linker="$host_os ld.so"
18552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18554 need_lib_prefix=unknown
18555 hardcode_into_libs=no
18557 # when you set need_version to no, make sure it does not cause -set_version
18558 # flags to be left without arguments
18559 need_version=unknown
18561 case $host_os in
18562 aix3*)
18563 version_type=linux
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18565 shlibpath_var=LIBPATH
18567 # AIX 3 has no versioning support, so we append a major version to the name.
18568 soname_spec='${libname}${release}${shared_ext}$major'
18571 aix[4-9]*)
18572 version_type=linux
18573 need_lib_prefix=no
18574 need_version=no
18575 hardcode_into_libs=yes
18576 if test "$host_cpu" = ia64; then
18577 # AIX 5 supports IA64
18578 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18579 shlibpath_var=LD_LIBRARY_PATH
18580 else
18581 # With GCC up to 2.95.x, collect2 would create an import file
18582 # for dependence libraries. The import file would start with
18583 # the line `#! .'. This would cause the generated library to
18584 # depend on `.', always an invalid library. This was fixed in
18585 # development snapshots of GCC prior to 3.0.
18586 case $host_os in
18587 aix4 | aix4.[01] | aix4.[01].*)
18588 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18589 echo ' yes '
18590 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18592 else
18593 can_build_shared=no
18596 esac
18597 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18598 # soname into executable. Probably we can add versioning support to
18599 # collect2, so additional links can be useful in future.
18600 if test "$aix_use_runtimelinking" = yes; then
18601 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18602 # instead of lib<name>.a to let people know that these are not
18603 # typical AIX shared libraries.
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605 else
18606 # We preserve .a as extension for shared libraries through AIX4.2
18607 # and later when we are not doing run time linking.
18608 library_names_spec='${libname}${release}.a $libname.a'
18609 soname_spec='${libname}${release}${shared_ext}$major'
18611 shlibpath_var=LIBPATH
18615 amigaos*)
18616 library_names_spec='$libname.ixlibrary $libname.a'
18617 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18618 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'
18621 beos*)
18622 library_names_spec='${libname}${shared_ext}'
18623 dynamic_linker="$host_os ld.so"
18624 shlibpath_var=LIBRARY_PATH
18627 bsdi[45]*)
18628 version_type=linux
18629 need_version=no
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631 soname_spec='${libname}${release}${shared_ext}$major'
18632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18633 shlibpath_var=LD_LIBRARY_PATH
18634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18636 # the default ld.so.conf also contains /usr/contrib/lib and
18637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18638 # libtool to hard-code these into programs
18641 cygwin* | mingw* | pw32*)
18642 version_type=windows
18643 shrext_cmds=".dll"
18644 need_version=no
18645 need_lib_prefix=no
18647 case $GCC,$host_os in
18648 yes,cygwin* | yes,mingw* | yes,pw32*)
18649 library_names_spec='$libname.dll.a'
18650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18651 postinstall_cmds='base_file=`basename \${file}`~
18652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18653 dldir=$destdir/`dirname \$dlpath`~
18654 test -d \$dldir || mkdir -p \$dldir~
18655 $install_prog $dir/$dlname \$dldir/$dlname~
18656 chmod a+x \$dldir/$dlname'
18657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18658 dlpath=$dir/\$dldll~
18659 $rm \$dlpath'
18660 shlibpath_overrides_runpath=yes
18662 case $host_os in
18663 cygwin*)
18664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18665 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18666 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18668 mingw*)
18669 # MinGW DLLs use traditional 'lib' prefix
18670 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18672 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18673 # It is most probably a Windows format PATH printed by
18674 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18675 # path with ; separators, and with drive letters. We can handle the
18676 # drive letters (cygwin fileutils understands them), so leave them,
18677 # especially as we might pass files found there to a mingw objdump,
18678 # which wouldn't understand a cygwinified path. Ahh.
18679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18680 else
18681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18684 pw32*)
18685 # pw32 DLLs use 'pw' prefix rather than 'lib'
18686 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18688 esac
18692 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18694 esac
18695 dynamic_linker='Win32 ld.exe'
18696 # FIXME: first we should search . and the directory the executable is in
18697 shlibpath_var=PATH
18700 darwin* | rhapsody*)
18701 dynamic_linker="$host_os dyld"
18702 version_type=darwin
18703 need_lib_prefix=no
18704 need_version=no
18705 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18706 soname_spec='${libname}${release}${major}$shared_ext'
18707 shlibpath_overrides_runpath=yes
18708 shlibpath_var=DYLD_LIBRARY_PATH
18709 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18714 dgux*)
18715 version_type=linux
18716 need_lib_prefix=no
18717 need_version=no
18718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18719 soname_spec='${libname}${release}${shared_ext}$major'
18720 shlibpath_var=LD_LIBRARY_PATH
18723 freebsd1*)
18724 dynamic_linker=no
18727 freebsd* | dragonfly*)
18728 # DragonFly does not have aout. When/if they implement a new
18729 # versioning mechanism, adjust this.
18730 if test -x /usr/bin/objformat; then
18731 objformat=`/usr/bin/objformat`
18732 else
18733 case $host_os in
18734 freebsd[123]*) objformat=aout ;;
18735 *) objformat=elf ;;
18736 esac
18738 version_type=freebsd-$objformat
18739 case $version_type in
18740 freebsd-elf*)
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18742 need_version=no
18743 need_lib_prefix=no
18745 freebsd-*)
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18747 need_version=yes
18749 esac
18750 shlibpath_var=LD_LIBRARY_PATH
18751 case $host_os in
18752 freebsd2*)
18753 shlibpath_overrides_runpath=yes
18755 freebsd3.[01]* | freebsdelf3.[01]*)
18756 shlibpath_overrides_runpath=yes
18757 hardcode_into_libs=yes
18759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18761 shlibpath_overrides_runpath=no
18762 hardcode_into_libs=yes
18764 *) # from 4.6 on, and DragonFly
18765 shlibpath_overrides_runpath=yes
18766 hardcode_into_libs=yes
18768 esac
18771 gnu*)
18772 version_type=linux
18773 need_lib_prefix=no
18774 need_version=no
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18776 soname_spec='${libname}${release}${shared_ext}$major'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 hardcode_into_libs=yes
18781 hpux9* | hpux10* | hpux11*)
18782 # Give a soname corresponding to the major version so that dld.sl refuses to
18783 # link against other versions.
18784 version_type=sunos
18785 need_lib_prefix=no
18786 need_version=no
18787 case $host_cpu in
18788 ia64*)
18789 shrext_cmds='.so'
18790 hardcode_into_libs=yes
18791 dynamic_linker="$host_os dld.so"
18792 shlibpath_var=LD_LIBRARY_PATH
18793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 if test "X$HPUX_IA64_MODE" = X32; then
18797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18798 else
18799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18803 hppa*64*)
18804 shrext_cmds='.sl'
18805 hardcode_into_libs=yes
18806 dynamic_linker="$host_os dld.sl"
18807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18810 soname_spec='${libname}${release}${shared_ext}$major'
18811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18815 shrext_cmds='.sl'
18816 dynamic_linker="$host_os dld.sl"
18817 shlibpath_var=SHLIB_PATH
18818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820 soname_spec='${libname}${release}${shared_ext}$major'
18822 esac
18823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18824 postinstall_cmds='chmod 555 $lib'
18827 interix[3-9]*)
18828 version_type=linux
18829 need_lib_prefix=no
18830 need_version=no
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18832 soname_spec='${libname}${release}${shared_ext}$major'
18833 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 shlibpath_overrides_runpath=no
18836 hardcode_into_libs=yes
18839 irix5* | irix6* | nonstopux*)
18840 case $host_os in
18841 nonstopux*) version_type=nonstopux ;;
18843 if test "$lt_cv_prog_gnu_ld" = yes; then
18844 version_type=linux
18845 else
18846 version_type=irix
18847 fi ;;
18848 esac
18849 need_lib_prefix=no
18850 need_version=no
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18853 case $host_os in
18854 irix5* | nonstopux*)
18855 libsuff= shlibsuff=
18858 case $LD in # libtool.m4 will add one of these switches to LD
18859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18860 libsuff= shlibsuff= libmagic=32-bit;;
18861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18862 libsuff=32 shlibsuff=N32 libmagic=N32;;
18863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18865 *) libsuff= shlibsuff= libmagic=never-match;;
18866 esac
18868 esac
18869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18870 shlibpath_overrides_runpath=no
18871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18873 hardcode_into_libs=yes
18876 # No shared lib support for Linux oldld, aout, or coff.
18877 linux*oldld* | linux*aout* | linux*coff*)
18878 dynamic_linker=no
18881 # This must be Linux ELF.
18882 linux* | k*bsd*-gnu)
18883 version_type=linux
18884 need_lib_prefix=no
18885 need_version=no
18886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887 soname_spec='${libname}${release}${shared_ext}$major'
18888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18889 shlibpath_var=LD_LIBRARY_PATH
18890 shlibpath_overrides_runpath=no
18891 # This implies no fast_install, which is unacceptable.
18892 # Some rework will be needed to allow for fast_install
18893 # before this can be enabled.
18894 hardcode_into_libs=yes
18896 # Append ld.so.conf contents to the search path
18897 if test -f /etc/ld.so.conf; then
18898 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' ' '`
18899 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18902 # We used to test for /lib/ld.so.1 and disable shared libraries on
18903 # powerpc, because MkLinux only supported shared libraries with the
18904 # GNU dynamic linker. Since this was broken with cross compilers,
18905 # most powerpc-linux boxes support dynamic linking these days and
18906 # people can always --disable-shared, the test was removed, and we
18907 # assume the GNU/Linux dynamic linker is in use.
18908 dynamic_linker='GNU/Linux ld.so'
18911 netbsdelf*-gnu)
18912 version_type=linux
18913 need_lib_prefix=no
18914 need_version=no
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18916 soname_spec='${libname}${release}${shared_ext}$major'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 shlibpath_overrides_runpath=no
18919 hardcode_into_libs=yes
18920 dynamic_linker='NetBSD ld.elf_so'
18923 netbsd*)
18924 version_type=sunos
18925 need_lib_prefix=no
18926 need_version=no
18927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18930 dynamic_linker='NetBSD (a.out) ld.so'
18931 else
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 dynamic_linker='NetBSD ld.elf_so'
18936 shlibpath_var=LD_LIBRARY_PATH
18937 shlibpath_overrides_runpath=yes
18938 hardcode_into_libs=yes
18941 newsos6)
18942 version_type=linux
18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18944 shlibpath_var=LD_LIBRARY_PATH
18945 shlibpath_overrides_runpath=yes
18948 nto-qnx*)
18949 version_type=linux
18950 need_lib_prefix=no
18951 need_version=no
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 shlibpath_overrides_runpath=yes
18958 openbsd*)
18959 version_type=sunos
18960 sys_lib_dlsearch_path_spec="/usr/lib"
18961 need_lib_prefix=no
18962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18963 case $host_os in
18964 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18965 *) need_version=no ;;
18966 esac
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18971 case $host_os in
18972 openbsd2.[89] | openbsd2.[89].*)
18973 shlibpath_overrides_runpath=no
18976 shlibpath_overrides_runpath=yes
18978 esac
18979 else
18980 shlibpath_overrides_runpath=yes
18984 os2*)
18985 libname_spec='$name'
18986 shrext_cmds=".dll"
18987 need_lib_prefix=no
18988 library_names_spec='$libname${shared_ext} $libname.a'
18989 dynamic_linker='OS/2 ld.exe'
18990 shlibpath_var=LIBPATH
18993 osf3* | osf4* | osf5*)
18994 version_type=osf
18995 need_lib_prefix=no
18996 need_version=no
18997 soname_spec='${libname}${release}${shared_ext}$major'
18998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18999 shlibpath_var=LD_LIBRARY_PATH
19000 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19001 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19004 rdos*)
19005 dynamic_linker=no
19008 solaris*)
19009 version_type=linux
19010 need_lib_prefix=no
19011 need_version=no
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 shlibpath_var=LD_LIBRARY_PATH
19015 shlibpath_overrides_runpath=yes
19016 hardcode_into_libs=yes
19017 # ldd complains unless libraries are executable
19018 postinstall_cmds='chmod +x $lib'
19021 sunos4*)
19022 version_type=sunos
19023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19025 shlibpath_var=LD_LIBRARY_PATH
19026 shlibpath_overrides_runpath=yes
19027 if test "$with_gnu_ld" = yes; then
19028 need_lib_prefix=no
19030 need_version=yes
19033 sysv4 | sysv4.3*)
19034 version_type=linux
19035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19036 soname_spec='${libname}${release}${shared_ext}$major'
19037 shlibpath_var=LD_LIBRARY_PATH
19038 case $host_vendor in
19039 sni)
19040 shlibpath_overrides_runpath=no
19041 need_lib_prefix=no
19042 export_dynamic_flag_spec='${wl}-Blargedynsym'
19043 runpath_var=LD_RUN_PATH
19045 siemens)
19046 need_lib_prefix=no
19048 motorola)
19049 need_lib_prefix=no
19050 need_version=no
19051 shlibpath_overrides_runpath=no
19052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19054 esac
19057 sysv4*MP*)
19058 if test -d /usr/nec ;then
19059 version_type=linux
19060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19061 soname_spec='$libname${shared_ext}.$major'
19062 shlibpath_var=LD_LIBRARY_PATH
19066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19067 version_type=freebsd-elf
19068 need_lib_prefix=no
19069 need_version=no
19070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19071 soname_spec='${libname}${release}${shared_ext}$major'
19072 shlibpath_var=LD_LIBRARY_PATH
19073 hardcode_into_libs=yes
19074 if test "$with_gnu_ld" = yes; then
19075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19076 shlibpath_overrides_runpath=no
19077 else
19078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19079 shlibpath_overrides_runpath=yes
19080 case $host_os in
19081 sco3.2v5*)
19082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19084 esac
19086 sys_lib_dlsearch_path_spec='/usr/lib'
19089 uts4*)
19090 version_type=linux
19091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 soname_spec='${libname}${release}${shared_ext}$major'
19093 shlibpath_var=LD_LIBRARY_PATH
19097 dynamic_linker=no
19099 esac
19100 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19101 echo "${ECHO_T}$dynamic_linker" >&6; }
19102 test "$dynamic_linker" = no && can_build_shared=no
19104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19110 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19111 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19117 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19120 if test "$GCC" = yes; then
19121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19124 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19126 hardcode_action_F77=
19127 if test -n "$hardcode_libdir_flag_spec_F77" || \
19128 test -n "$runpath_var_F77" || \
19129 test "X$hardcode_automatic_F77" = "Xyes" ; then
19131 # We can hardcode non-existant directories.
19132 if test "$hardcode_direct_F77" != no &&
19133 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19134 # have to relink, otherwise we might link with an installed library
19135 # when we should be linking with a yet-to-be-installed one
19136 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19137 test "$hardcode_minus_L_F77" != no; then
19138 # Linking always hardcodes the temporary library directory.
19139 hardcode_action_F77=relink
19140 else
19141 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19142 hardcode_action_F77=immediate
19144 else
19145 # We cannot hardcode anything, or else we can only hardcode existing
19146 # directories.
19147 hardcode_action_F77=unsupported
19149 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19150 echo "${ECHO_T}$hardcode_action_F77" >&6; }
19152 if test "$hardcode_action_F77" = relink; then
19153 # Fast installation is not supported
19154 enable_fast_install=no
19155 elif test "$shlibpath_overrides_runpath" = yes ||
19156 test "$enable_shared" = no; then
19157 # Fast installation is not necessary
19158 enable_fast_install=needless
19162 # The else clause should only fire when bootstrapping the
19163 # libtool distribution, otherwise you forgot to ship ltmain.sh
19164 # with your package, and you will get complaints that there are
19165 # no rules to generate ltmain.sh.
19166 if test -f "$ltmain"; then
19167 # See if we are running on zsh, and set the options which allow our commands through
19168 # without removal of \ escapes.
19169 if test -n "${ZSH_VERSION+set}" ; then
19170 setopt NO_GLOB_SUBST
19172 # Now quote all the things that may contain metacharacters while being
19173 # careful not to overquote the AC_SUBSTed values. We take copies of the
19174 # variables and quote the copies for generation of the libtool script.
19175 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19176 SED SHELL STRIP \
19177 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19178 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19179 deplibs_check_method reload_flag reload_cmds need_locks \
19180 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19181 lt_cv_sys_global_symbol_to_c_name_address \
19182 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19183 old_postinstall_cmds old_postuninstall_cmds \
19184 compiler_F77 \
19185 CC_F77 \
19186 LD_F77 \
19187 lt_prog_compiler_wl_F77 \
19188 lt_prog_compiler_pic_F77 \
19189 lt_prog_compiler_static_F77 \
19190 lt_prog_compiler_no_builtin_flag_F77 \
19191 export_dynamic_flag_spec_F77 \
19192 thread_safe_flag_spec_F77 \
19193 whole_archive_flag_spec_F77 \
19194 enable_shared_with_static_runtimes_F77 \
19195 old_archive_cmds_F77 \
19196 old_archive_from_new_cmds_F77 \
19197 predep_objects_F77 \
19198 postdep_objects_F77 \
19199 predeps_F77 \
19200 postdeps_F77 \
19201 compiler_lib_search_path_F77 \
19202 compiler_lib_search_dirs_F77 \
19203 archive_cmds_F77 \
19204 archive_expsym_cmds_F77 \
19205 postinstall_cmds_F77 \
19206 postuninstall_cmds_F77 \
19207 old_archive_from_expsyms_cmds_F77 \
19208 allow_undefined_flag_F77 \
19209 no_undefined_flag_F77 \
19210 export_symbols_cmds_F77 \
19211 hardcode_libdir_flag_spec_F77 \
19212 hardcode_libdir_flag_spec_ld_F77 \
19213 hardcode_libdir_separator_F77 \
19214 hardcode_automatic_F77 \
19215 module_cmds_F77 \
19216 module_expsym_cmds_F77 \
19217 lt_cv_prog_compiler_c_o_F77 \
19218 fix_srcfile_path_F77 \
19219 exclude_expsyms_F77 \
19220 include_expsyms_F77; do
19222 case $var in
19223 old_archive_cmds_F77 | \
19224 old_archive_from_new_cmds_F77 | \
19225 archive_cmds_F77 | \
19226 archive_expsym_cmds_F77 | \
19227 module_cmds_F77 | \
19228 module_expsym_cmds_F77 | \
19229 old_archive_from_expsyms_cmds_F77 | \
19230 export_symbols_cmds_F77 | \
19231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19232 postinstall_cmds | postuninstall_cmds | \
19233 old_postinstall_cmds | old_postuninstall_cmds | \
19234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19235 # Double-quote double-evaled strings.
19236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19241 esac
19242 done
19244 case $lt_echo in
19245 *'\$0 --fallback-echo"')
19246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19248 esac
19250 cfgfile="$ofile"
19252 cat <<__EOF__ >> "$cfgfile"
19253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19257 # Shell to use when invoking shell scripts.
19258 SHELL=$lt_SHELL
19260 # Whether or not to build shared libraries.
19261 build_libtool_libs=$enable_shared
19263 # Whether or not to build static libraries.
19264 build_old_libs=$enable_static
19266 # Whether or not to add -lc for building shared libraries.
19267 build_libtool_need_lc=$archive_cmds_need_lc_F77
19269 # Whether or not to disallow shared libs when runtime libs are static
19270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19272 # Whether or not to optimize for fast installation.
19273 fast_install=$enable_fast_install
19275 # The host system.
19276 host_alias=$host_alias
19277 host=$host
19278 host_os=$host_os
19280 # The build system.
19281 build_alias=$build_alias
19282 build=$build
19283 build_os=$build_os
19285 # An echo program that does not interpret backslashes.
19286 echo=$lt_echo
19288 # The archiver.
19289 AR=$lt_AR
19290 AR_FLAGS=$lt_AR_FLAGS
19292 # A C compiler.
19293 LTCC=$lt_LTCC
19295 # LTCC compiler flags.
19296 LTCFLAGS=$lt_LTCFLAGS
19298 # A language-specific compiler.
19299 CC=$lt_compiler_F77
19301 # Is the compiler the GNU C compiler?
19302 with_gcc=$GCC_F77
19304 # An ERE matcher.
19305 EGREP=$lt_EGREP
19307 # The linker used to build libraries.
19308 LD=$lt_LD_F77
19310 # Whether we need hard or soft links.
19311 LN_S=$lt_LN_S
19313 # A BSD-compatible nm program.
19314 NM=$lt_NM
19316 # A symbol stripping program
19317 STRIP=$lt_STRIP
19319 # Used to examine libraries when file_magic_cmd begins "file"
19320 MAGIC_CMD=$MAGIC_CMD
19322 # Used on cygwin: DLL creation program.
19323 DLLTOOL="$DLLTOOL"
19325 # Used on cygwin: object dumper.
19326 OBJDUMP="$OBJDUMP"
19328 # Used on cygwin: assembler.
19329 AS="$AS"
19331 # The name of the directory that contains temporary libtool files.
19332 objdir=$objdir
19334 # How to create reloadable object files.
19335 reload_flag=$lt_reload_flag
19336 reload_cmds=$lt_reload_cmds
19338 # How to pass a linker flag through the compiler.
19339 wl=$lt_lt_prog_compiler_wl_F77
19341 # Object file suffix (normally "o").
19342 objext="$ac_objext"
19344 # Old archive suffix (normally "a").
19345 libext="$libext"
19347 # Shared library suffix (normally ".so").
19348 shrext_cmds='$shrext_cmds'
19350 # Executable file suffix (normally "").
19351 exeext="$exeext"
19353 # Additional compiler flags for building library objects.
19354 pic_flag=$lt_lt_prog_compiler_pic_F77
19355 pic_mode=$pic_mode
19357 # What is the maximum length of a command?
19358 max_cmd_len=$lt_cv_sys_max_cmd_len
19360 # Does compiler simultaneously support -c and -o options?
19361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19363 # Must we lock files when doing compilation?
19364 need_locks=$lt_need_locks
19366 # Do we need the lib prefix for modules?
19367 need_lib_prefix=$need_lib_prefix
19369 # Do we need a version for libraries?
19370 need_version=$need_version
19372 # Whether dlopen is supported.
19373 dlopen_support=$enable_dlopen
19375 # Whether dlopen of programs is supported.
19376 dlopen_self=$enable_dlopen_self
19378 # Whether dlopen of statically linked programs is supported.
19379 dlopen_self_static=$enable_dlopen_self_static
19381 # Compiler flag to prevent dynamic linking.
19382 link_static_flag=$lt_lt_prog_compiler_static_F77
19384 # Compiler flag to turn off builtin functions.
19385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19387 # Compiler flag to allow reflexive dlopens.
19388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19390 # Compiler flag to generate shared objects directly from archives.
19391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19393 # Compiler flag to generate thread-safe objects.
19394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19396 # Library versioning type.
19397 version_type=$version_type
19399 # Format of library name prefix.
19400 libname_spec=$lt_libname_spec
19402 # List of archive names. First name is the real one, the rest are links.
19403 # The last name is the one that the linker finds with -lNAME.
19404 library_names_spec=$lt_library_names_spec
19406 # The coded name of the library, if different from the real name.
19407 soname_spec=$lt_soname_spec
19409 # Commands used to build and install an old-style archive.
19410 RANLIB=$lt_RANLIB
19411 old_archive_cmds=$lt_old_archive_cmds_F77
19412 old_postinstall_cmds=$lt_old_postinstall_cmds
19413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19415 # Create an old-style archive from a shared archive.
19416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19418 # Create a temporary old-style archive to link instead of a shared archive.
19419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19421 # Commands used to build and install a shared archive.
19422 archive_cmds=$lt_archive_cmds_F77
19423 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19424 postinstall_cmds=$lt_postinstall_cmds
19425 postuninstall_cmds=$lt_postuninstall_cmds
19427 # Commands used to build a loadable module (assumed same as above if empty)
19428 module_cmds=$lt_module_cmds_F77
19429 module_expsym_cmds=$lt_module_expsym_cmds_F77
19431 # Commands to strip libraries.
19432 old_striplib=$lt_old_striplib
19433 striplib=$lt_striplib
19435 # Dependencies to place before the objects being linked to create a
19436 # shared library.
19437 predep_objects=$lt_predep_objects_F77
19439 # Dependencies to place after the objects being linked to create a
19440 # shared library.
19441 postdep_objects=$lt_postdep_objects_F77
19443 # Dependencies to place before the objects being linked to create a
19444 # shared library.
19445 predeps=$lt_predeps_F77
19447 # Dependencies to place after the objects being linked to create a
19448 # shared library.
19449 postdeps=$lt_postdeps_F77
19451 # The directories searched by this compiler when creating a shared
19452 # library
19453 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
19455 # The library search path used internally by the compiler when linking
19456 # a shared library.
19457 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19459 # Method to check whether dependent libraries are shared objects.
19460 deplibs_check_method=$lt_deplibs_check_method
19462 # Command to use when deplibs_check_method == file_magic.
19463 file_magic_cmd=$lt_file_magic_cmd
19465 # Flag that allows shared libraries with undefined symbols to be built.
19466 allow_undefined_flag=$lt_allow_undefined_flag_F77
19468 # Flag that forces no undefined symbols.
19469 no_undefined_flag=$lt_no_undefined_flag_F77
19471 # Commands used to finish a libtool library installation in a directory.
19472 finish_cmds=$lt_finish_cmds
19474 # Same as above, but a single script fragment to be evaled but not shown.
19475 finish_eval=$lt_finish_eval
19477 # Take the output of nm and produce a listing of raw symbols and C names.
19478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19480 # Transform the output of nm in a proper C declaration
19481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19483 # Transform the output of nm in a C name address pair
19484 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19486 # This is the shared library runtime path variable.
19487 runpath_var=$runpath_var
19489 # This is the shared library path variable.
19490 shlibpath_var=$shlibpath_var
19492 # Is shlibpath searched before the hard-coded library search path?
19493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19495 # How to hardcode a shared library path into an executable.
19496 hardcode_action=$hardcode_action_F77
19498 # Whether we should hardcode library paths into libraries.
19499 hardcode_into_libs=$hardcode_into_libs
19501 # Flag to hardcode \$libdir into a binary during linking.
19502 # This must work even if \$libdir does not exist.
19503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19505 # If ld is used when linking, flag to hardcode \$libdir into
19506 # a binary during linking. This must work even if \$libdir does
19507 # not exist.
19508 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19510 # Whether we need a single -rpath flag with a separated argument.
19511 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19513 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19514 # resulting binary.
19515 hardcode_direct=$hardcode_direct_F77
19517 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19518 # resulting binary.
19519 hardcode_minus_L=$hardcode_minus_L_F77
19521 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19522 # the resulting binary.
19523 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19525 # Set to yes if building a shared library automatically hardcodes DIR into the library
19526 # and all subsequent libraries and executables linked against it.
19527 hardcode_automatic=$hardcode_automatic_F77
19529 # Variables whose values should be saved in libtool wrapper scripts and
19530 # restored at relink time.
19531 variables_saved_for_relink="$variables_saved_for_relink"
19533 # Whether libtool must link a program against all its dependency libraries.
19534 link_all_deplibs=$link_all_deplibs_F77
19536 # Compile-time system search path for libraries
19537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19539 # Run-time system search path for libraries
19540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19542 # Fix the shell variable \$srcfile for the compiler.
19543 fix_srcfile_path=$lt_fix_srcfile_path
19545 # Set to yes if exported symbols are required.
19546 always_export_symbols=$always_export_symbols_F77
19548 # The commands to list exported symbols.
19549 export_symbols_cmds=$lt_export_symbols_cmds_F77
19551 # The commands to extract the exported symbol list from a shared archive.
19552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19554 # Symbols that should not be listed in the preloaded symbols.
19555 exclude_expsyms=$lt_exclude_expsyms_F77
19557 # Symbols that must always be exported.
19558 include_expsyms=$lt_include_expsyms_F77
19560 # ### END LIBTOOL TAG CONFIG: $tagname
19562 __EOF__
19565 else
19566 # If there is no Makefile yet, we rely on a make rule to execute
19567 # `config.status --recheck' to rerun these tests and create the
19568 # libtool script then.
19569 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19570 if test -f "$ltmain_in"; then
19571 test -f Makefile && make "$ltmain"
19576 ac_ext=c
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582 CC="$lt_save_CC"
19584 else
19585 tagname=""
19589 GCJ)
19590 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19593 # Source file extension for Java test sources.
19594 ac_ext=java
19596 # Object file extension for compiled Java test sources.
19597 objext=o
19598 objext_GCJ=$objext
19600 # Code to be used in simple compile tests
19601 lt_simple_compile_test_code="class foo {}"
19603 # Code to be used in simple link tests
19604 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19608 # If no C compiler was specified, use CC.
19609 LTCC=${LTCC-"$CC"}
19611 # If no C compiler flags were specified, use CFLAGS.
19612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19614 # Allow CC to be a program name with arguments.
19615 compiler=$CC
19618 # save warnings/boilerplate of simple test code
19619 ac_outfile=conftest.$ac_objext
19620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19622 _lt_compiler_boilerplate=`cat conftest.err`
19623 $rm conftest*
19625 ac_outfile=conftest.$ac_objext
19626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19628 _lt_linker_boilerplate=`cat conftest.err`
19629 $rm -r conftest*
19632 # Allow CC to be a program name with arguments.
19633 lt_save_CC="$CC"
19634 CC=${GCJ-"gcj"}
19635 compiler=$CC
19636 compiler_GCJ=$CC
19637 for cc_temp in $compiler""; do
19638 case $cc_temp in
19639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19641 \-*) ;;
19642 *) break;;
19643 esac
19644 done
19645 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19648 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19649 archive_cmds_need_lc_GCJ=no
19651 old_archive_cmds_GCJ=$old_archive_cmds
19654 lt_prog_compiler_no_builtin_flag_GCJ=
19656 if test "$GCC" = yes; then
19657 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19660 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19661 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19662 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 else
19665 lt_cv_prog_compiler_rtti_exceptions=no
19666 ac_outfile=conftest.$ac_objext
19667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19668 lt_compiler_flag="-fno-rtti -fno-exceptions"
19669 # Insert the option either (1) after the last *FLAGS variable, or
19670 # (2) before a word containing "conftest.", or (3) at the end.
19671 # Note that $ac_compile itself does not contain backslashes and begins
19672 # with a dollar sign (not a hyphen), so the echo should work correctly.
19673 # The option is referenced via a variable to avoid confusing sed.
19674 lt_compile=`echo "$ac_compile" | $SED \
19675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19677 -e 's:$: $lt_compiler_flag:'`
19678 (eval echo "\"\$as_me:19678: $lt_compile\"" >&5)
19679 (eval "$lt_compile" 2>conftest.err)
19680 ac_status=$?
19681 cat conftest.err >&5
19682 echo "$as_me:19682: \$? = $ac_status" >&5
19683 if (exit $ac_status) && test -s "$ac_outfile"; then
19684 # The compiler can only warn and ignore the option if not recognized
19685 # So say no if there are warnings other than the usual output.
19686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19689 lt_cv_prog_compiler_rtti_exceptions=yes
19692 $rm conftest*
19695 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19696 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19698 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19699 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19700 else
19706 lt_prog_compiler_wl_GCJ=
19707 lt_prog_compiler_pic_GCJ=
19708 lt_prog_compiler_static_GCJ=
19710 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19711 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19713 if test "$GCC" = yes; then
19714 lt_prog_compiler_wl_GCJ='-Wl,'
19715 lt_prog_compiler_static_GCJ='-static'
19717 case $host_os in
19718 aix*)
19719 # All AIX code is PIC.
19720 if test "$host_cpu" = ia64; then
19721 # AIX 5 now supports IA64 processor
19722 lt_prog_compiler_static_GCJ='-Bstatic'
19726 amigaos*)
19727 # FIXME: we need at least 68020 code to build shared libraries, but
19728 # adding the `-m68020' flag to GCC prevents building anything better,
19729 # like `-m68040'.
19730 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19734 # PIC is the default for these OSes.
19737 mingw* | cygwin* | pw32* | os2*)
19738 # This hack is so that the source file can tell whether it is being
19739 # built for inclusion in a dll (and should export symbols for example).
19740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19741 # (--disable-auto-import) libraries
19745 darwin* | rhapsody*)
19746 # PIC is the default on this platform
19747 # Common symbols not allowed in MH_DYLIB files
19748 lt_prog_compiler_pic_GCJ='-fno-common'
19751 interix[3-9]*)
19752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19753 # Instead, we relocate shared libraries at runtime.
19756 msdosdjgpp*)
19757 # Just because we use GCC doesn't mean we suddenly get shared libraries
19758 # on systems that don't support them.
19759 lt_prog_compiler_can_build_shared_GCJ=no
19760 enable_shared=no
19763 sysv4*MP*)
19764 if test -d /usr/nec; then
19765 lt_prog_compiler_pic_GCJ=-Kconform_pic
19769 hpux*)
19770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19771 # not for PA HP-UX.
19772 case $host_cpu in
19773 hppa*64*|ia64*)
19774 # +Z the default
19777 lt_prog_compiler_pic_GCJ='-fPIC'
19779 esac
19783 lt_prog_compiler_pic_GCJ='-fPIC'
19785 esac
19786 else
19787 # PORTME Check for flag to pass linker flags through the system compiler.
19788 case $host_os in
19789 aix*)
19790 lt_prog_compiler_wl_GCJ='-Wl,'
19791 if test "$host_cpu" = ia64; then
19792 # AIX 5 now supports IA64 processor
19793 lt_prog_compiler_static_GCJ='-Bstatic'
19794 else
19795 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19798 darwin*)
19799 # PIC is the default on this platform
19800 # Common symbols not allowed in MH_DYLIB files
19801 case $cc_basename in
19802 xlc*)
19803 lt_prog_compiler_pic_GCJ='-qnocommon'
19804 lt_prog_compiler_wl_GCJ='-Wl,'
19806 esac
19809 mingw* | cygwin* | pw32* | os2*)
19810 # This hack is so that the source file can tell whether it is being
19811 # built for inclusion in a dll (and should export symbols for example).
19815 hpux9* | hpux10* | hpux11*)
19816 lt_prog_compiler_wl_GCJ='-Wl,'
19817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19818 # not for PA HP-UX.
19819 case $host_cpu in
19820 hppa*64*|ia64*)
19821 # +Z the default
19824 lt_prog_compiler_pic_GCJ='+Z'
19826 esac
19827 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19828 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19831 irix5* | irix6* | nonstopux*)
19832 lt_prog_compiler_wl_GCJ='-Wl,'
19833 # PIC (with -KPIC) is the default.
19834 lt_prog_compiler_static_GCJ='-non_shared'
19837 newsos6)
19838 lt_prog_compiler_pic_GCJ='-KPIC'
19839 lt_prog_compiler_static_GCJ='-Bstatic'
19842 linux* | k*bsd*-gnu)
19843 case $cc_basename in
19844 icc* | ecc*)
19845 lt_prog_compiler_wl_GCJ='-Wl,'
19846 lt_prog_compiler_pic_GCJ='-KPIC'
19847 lt_prog_compiler_static_GCJ='-static'
19849 pgcc* | pgf77* | pgf90* | pgf95*)
19850 # Portland Group compilers (*not* the Pentium gcc compiler,
19851 # which looks to be a dead project)
19852 lt_prog_compiler_wl_GCJ='-Wl,'
19853 lt_prog_compiler_pic_GCJ='-fpic'
19854 lt_prog_compiler_static_GCJ='-Bstatic'
19856 ccc*)
19857 lt_prog_compiler_wl_GCJ='-Wl,'
19858 # All Alpha code is PIC.
19859 lt_prog_compiler_static_GCJ='-non_shared'
19862 case `$CC -V 2>&1 | sed 5q` in
19863 *Sun\ C*)
19864 # Sun C 5.9
19865 lt_prog_compiler_pic_GCJ='-KPIC'
19866 lt_prog_compiler_static_GCJ='-Bstatic'
19867 lt_prog_compiler_wl_GCJ='-Wl,'
19869 *Sun\ F*)
19870 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19871 lt_prog_compiler_pic_GCJ='-KPIC'
19872 lt_prog_compiler_static_GCJ='-Bstatic'
19873 lt_prog_compiler_wl_GCJ=''
19875 esac
19877 esac
19880 osf3* | osf4* | osf5*)
19881 lt_prog_compiler_wl_GCJ='-Wl,'
19882 # All OSF/1 code is PIC.
19883 lt_prog_compiler_static_GCJ='-non_shared'
19886 rdos*)
19887 lt_prog_compiler_static_GCJ='-non_shared'
19890 solaris*)
19891 lt_prog_compiler_pic_GCJ='-KPIC'
19892 lt_prog_compiler_static_GCJ='-Bstatic'
19893 case $cc_basename in
19894 f77* | f90* | f95*)
19895 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19897 lt_prog_compiler_wl_GCJ='-Wl,';;
19898 esac
19901 sunos4*)
19902 lt_prog_compiler_wl_GCJ='-Qoption ld '
19903 lt_prog_compiler_pic_GCJ='-PIC'
19904 lt_prog_compiler_static_GCJ='-Bstatic'
19907 sysv4 | sysv4.2uw2* | sysv4.3*)
19908 lt_prog_compiler_wl_GCJ='-Wl,'
19909 lt_prog_compiler_pic_GCJ='-KPIC'
19910 lt_prog_compiler_static_GCJ='-Bstatic'
19913 sysv4*MP*)
19914 if test -d /usr/nec ;then
19915 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19916 lt_prog_compiler_static_GCJ='-Bstatic'
19920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19921 lt_prog_compiler_wl_GCJ='-Wl,'
19922 lt_prog_compiler_pic_GCJ='-KPIC'
19923 lt_prog_compiler_static_GCJ='-Bstatic'
19926 unicos*)
19927 lt_prog_compiler_wl_GCJ='-Wl,'
19928 lt_prog_compiler_can_build_shared_GCJ=no
19931 uts4*)
19932 lt_prog_compiler_pic_GCJ='-pic'
19933 lt_prog_compiler_static_GCJ='-Bstatic'
19937 lt_prog_compiler_can_build_shared_GCJ=no
19939 esac
19942 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19943 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19946 # Check to make sure the PIC flag actually works.
19948 if test -n "$lt_prog_compiler_pic_GCJ"; then
19950 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19952 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 else
19955 lt_cv_prog_compiler_pic_works_GCJ=no
19956 ac_outfile=conftest.$ac_objext
19957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19958 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19959 # Insert the option either (1) after the last *FLAGS variable, or
19960 # (2) before a word containing "conftest.", or (3) at the end.
19961 # Note that $ac_compile itself does not contain backslashes and begins
19962 # with a dollar sign (not a hyphen), so the echo should work correctly.
19963 # The option is referenced via a variable to avoid confusing sed.
19964 lt_compile=`echo "$ac_compile" | $SED \
19965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19967 -e 's:$: $lt_compiler_flag:'`
19968 (eval echo "\"\$as_me:19968: $lt_compile\"" >&5)
19969 (eval "$lt_compile" 2>conftest.err)
19970 ac_status=$?
19971 cat conftest.err >&5
19972 echo "$as_me:19972: \$? = $ac_status" >&5
19973 if (exit $ac_status) && test -s "$ac_outfile"; then
19974 # The compiler can only warn and ignore the option if not recognized
19975 # So say no if there are warnings other than the usual output.
19976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19979 lt_cv_prog_compiler_pic_works_GCJ=yes
19982 $rm conftest*
19985 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19986 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19988 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19989 case $lt_prog_compiler_pic_GCJ in
19990 "" | " "*) ;;
19991 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19992 esac
19993 else
19994 lt_prog_compiler_pic_GCJ=
19995 lt_prog_compiler_can_build_shared_GCJ=no
19999 case $host_os in
20000 # For platforms which do not support PIC, -DPIC is meaningless:
20001 *djgpp*)
20002 lt_prog_compiler_pic_GCJ=
20005 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20007 esac
20010 # Check to make sure the static flag actually works.
20012 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20013 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20015 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018 lt_cv_prog_compiler_static_works_GCJ=no
20019 save_LDFLAGS="$LDFLAGS"
20020 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20021 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20022 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20023 # The linker can only warn and ignore the option if not recognized
20024 # So say no if there are warnings
20025 if test -s conftest.err; then
20026 # Append any errors to the config.log.
20027 cat conftest.err 1>&5
20028 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20030 if diff conftest.exp conftest.er2 >/dev/null; then
20031 lt_cv_prog_compiler_static_works_GCJ=yes
20033 else
20034 lt_cv_prog_compiler_static_works_GCJ=yes
20037 $rm -r conftest*
20038 LDFLAGS="$save_LDFLAGS"
20041 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20042 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20044 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
20046 else
20047 lt_prog_compiler_static_GCJ=
20051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20053 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 lt_cv_prog_compiler_c_o_GCJ=no
20057 $rm -r conftest 2>/dev/null
20058 mkdir conftest
20059 cd conftest
20060 mkdir out
20061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20063 lt_compiler_flag="-o out/conftest2.$ac_objext"
20064 # Insert the option either (1) after the last *FLAGS variable, or
20065 # (2) before a word containing "conftest.", or (3) at the end.
20066 # Note that $ac_compile itself does not contain backslashes and begins
20067 # with a dollar sign (not a hyphen), so the echo should work correctly.
20068 lt_compile=`echo "$ac_compile" | $SED \
20069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20071 -e 's:$: $lt_compiler_flag:'`
20072 (eval echo "\"\$as_me:20072: $lt_compile\"" >&5)
20073 (eval "$lt_compile" 2>out/conftest.err)
20074 ac_status=$?
20075 cat out/conftest.err >&5
20076 echo "$as_me:20076: \$? = $ac_status" >&5
20077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20078 then
20079 # The compiler can only warn and ignore the option if not recognized
20080 # So say no if there are warnings
20081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20084 lt_cv_prog_compiler_c_o_GCJ=yes
20087 chmod u+w . 2>&5
20088 $rm conftest*
20089 # SGI C++ compiler will create directory out/ii_files/ for
20090 # template instantiation
20091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20092 $rm out/* && rmdir out
20093 cd ..
20094 rmdir conftest
20095 $rm conftest*
20098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20102 hard_links="nottested"
20103 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20104 # do not overwrite the value of need_locks provided by the user
20105 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20107 hard_links=yes
20108 $rm conftest*
20109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20110 touch conftest.a
20111 ln conftest.a conftest.b 2>&5 || hard_links=no
20112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20113 { echo "$as_me:$LINENO: result: $hard_links" >&5
20114 echo "${ECHO_T}$hard_links" >&6; }
20115 if test "$hard_links" = no; then
20116 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20118 need_locks=warn
20120 else
20121 need_locks=no
20124 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20127 runpath_var=
20128 allow_undefined_flag_GCJ=
20129 enable_shared_with_static_runtimes_GCJ=no
20130 archive_cmds_GCJ=
20131 archive_expsym_cmds_GCJ=
20132 old_archive_From_new_cmds_GCJ=
20133 old_archive_from_expsyms_cmds_GCJ=
20134 export_dynamic_flag_spec_GCJ=
20135 whole_archive_flag_spec_GCJ=
20136 thread_safe_flag_spec_GCJ=
20137 hardcode_libdir_flag_spec_GCJ=
20138 hardcode_libdir_flag_spec_ld_GCJ=
20139 hardcode_libdir_separator_GCJ=
20140 hardcode_direct_GCJ=no
20141 hardcode_minus_L_GCJ=no
20142 hardcode_shlibpath_var_GCJ=unsupported
20143 link_all_deplibs_GCJ=unknown
20144 hardcode_automatic_GCJ=no
20145 module_cmds_GCJ=
20146 module_expsym_cmds_GCJ=
20147 always_export_symbols_GCJ=no
20148 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20149 # include_expsyms should be a list of space-separated symbols to be *always*
20150 # included in the symbol list
20151 include_expsyms_GCJ=
20152 # exclude_expsyms can be an extended regexp of symbols to exclude
20153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20155 # as well as any symbol that contains `d'.
20156 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20158 # platforms (ab)use it in PIC code, but their linkers get confused if
20159 # the symbol is explicitly referenced. Since portable code cannot
20160 # rely on this symbol name, it's probably fine to never include it in
20161 # preloaded symbol tables.
20162 # Exclude shared library initialization/finalization symbols.
20163 extract_expsyms_cmds=
20164 # Just being paranoid about ensuring that cc_basename is set.
20165 for cc_temp in $compiler""; do
20166 case $cc_temp in
20167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20169 \-*) ;;
20170 *) break;;
20171 esac
20172 done
20173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20175 case $host_os in
20176 cygwin* | mingw* | pw32*)
20177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20178 # When not using gcc, we currently assume that we are using
20179 # Microsoft Visual C++.
20180 if test "$GCC" != yes; then
20181 with_gnu_ld=no
20184 interix*)
20185 # we just hope/assume this is gcc and not c89 (= MSVC++)
20186 with_gnu_ld=yes
20188 openbsd*)
20189 with_gnu_ld=no
20191 esac
20193 ld_shlibs_GCJ=yes
20194 if test "$with_gnu_ld" = yes; then
20195 # If archive_cmds runs LD, not CC, wlarc should be empty
20196 wlarc='${wl}'
20198 # Set some defaults for GNU ld with shared library support. These
20199 # are reset later if shared libraries are not supported. Putting them
20200 # here allows them to be overridden if necessary.
20201 runpath_var=LD_RUN_PATH
20202 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20203 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20204 # ancient GNU ld didn't support --whole-archive et. al.
20205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20207 else
20208 whole_archive_flag_spec_GCJ=
20210 supports_anon_versioning=no
20211 case `$LD -v 2>/dev/null` in
20212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20215 *\ 2.11.*) ;; # other 2.11 versions
20216 *) supports_anon_versioning=yes ;;
20217 esac
20219 # See if GNU ld supports shared libraries.
20220 case $host_os in
20221 aix[3-9]*)
20222 # On AIX/PPC, the GNU linker is very broken
20223 if test "$host_cpu" != ia64; then
20224 ld_shlibs_GCJ=no
20225 cat <<EOF 1>&2
20227 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20228 *** to be unable to reliably create shared libraries on AIX.
20229 *** Therefore, libtool is disabling shared libraries support. If you
20230 *** really care for shared libraries, you may want to modify your PATH
20231 *** so that a non-GNU linker is found, and then restart.
20237 amigaos*)
20238 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)'
20239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20240 hardcode_minus_L_GCJ=yes
20242 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20243 # that the semantics of dynamic libraries on AmigaOS, at least up
20244 # to version 4, is to share data among multiple programs linked
20245 # with the same dynamic library. Since this doesn't match the
20246 # behavior of shared libraries on other platforms, we can't use
20247 # them.
20248 ld_shlibs_GCJ=no
20251 beos*)
20252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20253 allow_undefined_flag_GCJ=unsupported
20254 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20255 # support --undefined. This deserves some investigation. FIXME
20256 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20257 else
20258 ld_shlibs_GCJ=no
20262 cygwin* | mingw* | pw32*)
20263 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20264 # as there is no search path for DLLs.
20265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20266 allow_undefined_flag_GCJ=unsupported
20267 always_export_symbols_GCJ=no
20268 enable_shared_with_static_runtimes_GCJ=yes
20269 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20271 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20273 # If the export-symbols file already is a .def file (1st line
20274 # is EXPORTS), use it as is; otherwise, prepend...
20275 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20276 cp $export_symbols $output_objdir/$soname.def;
20277 else
20278 echo EXPORTS > $output_objdir/$soname.def;
20279 cat $export_symbols >> $output_objdir/$soname.def;
20281 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20282 else
20283 ld_shlibs_GCJ=no
20287 interix[3-9]*)
20288 hardcode_direct_GCJ=no
20289 hardcode_shlibpath_var_GCJ=no
20290 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20291 export_dynamic_flag_spec_GCJ='${wl}-E'
20292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20293 # Instead, shared libraries are loaded at an image base (0x10000000 by
20294 # default) and relocated if they conflict, which is a slow very memory
20295 # consuming and fragmenting process. To avoid this, we pick a random,
20296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20298 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'
20299 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'
20302 gnu* | linux* | k*bsd*-gnu)
20303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20304 tmp_addflag=
20305 case $cc_basename,$host_cpu in
20306 pgcc*) # Portland Group C compiler
20307 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'
20308 tmp_addflag=' $pic_flag'
20310 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20311 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'
20312 tmp_addflag=' $pic_flag -Mnomain' ;;
20313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20314 tmp_addflag=' -i_dynamic' ;;
20315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20316 tmp_addflag=' -i_dynamic -nofor_main' ;;
20317 ifc* | ifort*) # Intel Fortran compiler
20318 tmp_addflag=' -nofor_main' ;;
20319 esac
20320 case `$CC -V 2>&1 | sed 5q` in
20321 *Sun\ C*) # Sun C 5.9
20322 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'
20323 tmp_sharedflag='-G' ;;
20324 *Sun\ F*) # Sun Fortran 8.3
20325 tmp_sharedflag='-G' ;;
20327 tmp_sharedflag='-shared' ;;
20328 esac
20329 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20331 if test $supports_anon_versioning = yes; then
20332 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20334 $echo "local: *; };" >> $output_objdir/$libname.ver~
20335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20337 link_all_deplibs_GCJ=no
20338 else
20339 ld_shlibs_GCJ=no
20343 netbsd* | netbsdelf*-gnu)
20344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20345 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20346 wlarc=
20347 else
20348 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20349 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20353 solaris*)
20354 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20355 ld_shlibs_GCJ=no
20356 cat <<EOF 1>&2
20358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20359 *** create shared libraries on Solaris systems. Therefore, libtool
20360 *** is disabling shared libraries support. We urge you to upgrade GNU
20361 *** binutils to release 2.9.1 or newer. Another option is to modify
20362 *** your PATH or compiler configuration so that the native linker is
20363 *** used, and then restart.
20366 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20369 else
20370 ld_shlibs_GCJ=no
20374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20375 case `$LD -v 2>&1` in
20376 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20377 ld_shlibs_GCJ=no
20378 cat <<_LT_EOF 1>&2
20380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20381 *** reliably create shared libraries on SCO systems. Therefore, libtool
20382 *** is disabling shared libraries support. We urge you to upgrade GNU
20383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20384 *** your PATH or compiler configuration so that the native linker is
20385 *** used, and then restart.
20387 _LT_EOF
20390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20391 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20392 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20393 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20394 else
20395 ld_shlibs_GCJ=no
20398 esac
20401 sunos4*)
20402 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20403 wlarc=
20404 hardcode_direct_GCJ=yes
20405 hardcode_shlibpath_var_GCJ=no
20409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20412 else
20413 ld_shlibs_GCJ=no
20416 esac
20418 if test "$ld_shlibs_GCJ" = no; then
20419 runpath_var=
20420 hardcode_libdir_flag_spec_GCJ=
20421 export_dynamic_flag_spec_GCJ=
20422 whole_archive_flag_spec_GCJ=
20424 else
20425 # PORTME fill in a description of your system's linker (not GNU ld)
20426 case $host_os in
20427 aix3*)
20428 allow_undefined_flag_GCJ=unsupported
20429 always_export_symbols_GCJ=yes
20430 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'
20431 # Note: this linker hardcodes the directories in LIBPATH if there
20432 # are no directories specified by -L.
20433 hardcode_minus_L_GCJ=yes
20434 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20435 # Neither direct hardcoding nor static linking is supported with a
20436 # broken collect2.
20437 hardcode_direct_GCJ=unsupported
20441 aix[4-9]*)
20442 if test "$host_cpu" = ia64; then
20443 # On IA64, the linker does run time linking by default, so we don't
20444 # have to do anything special.
20445 aix_use_runtimelinking=no
20446 exp_sym_flag='-Bexport'
20447 no_entry_flag=""
20448 else
20449 # If we're using GNU nm, then we don't want the "-C" option.
20450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20451 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20452 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'
20453 else
20454 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'
20456 aix_use_runtimelinking=no
20458 # Test if we are trying to use run time linking or normal
20459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20460 # need to do runtime linking.
20461 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20462 for ld_flag in $LDFLAGS; do
20463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20464 aix_use_runtimelinking=yes
20465 break
20467 done
20469 esac
20471 exp_sym_flag='-bexport'
20472 no_entry_flag='-bnoentry'
20475 # When large executables or shared objects are built, AIX ld can
20476 # have problems creating the table of contents. If linking a library
20477 # or program results in "error TOC overflow" add -mminimal-toc to
20478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20481 archive_cmds_GCJ=''
20482 hardcode_direct_GCJ=yes
20483 hardcode_libdir_separator_GCJ=':'
20484 link_all_deplibs_GCJ=yes
20486 if test "$GCC" = yes; then
20487 case $host_os in aix4.[012]|aix4.[012].*)
20488 # We only want to do this on AIX 4.2 and lower, the check
20489 # below for broken collect2 doesn't work under 4.3+
20490 collect2name=`${CC} -print-prog-name=collect2`
20491 if test -f "$collect2name" && \
20492 strings "$collect2name" | grep resolve_lib_name >/dev/null
20493 then
20494 # We have reworked collect2
20496 else
20497 # We have old collect2
20498 hardcode_direct_GCJ=unsupported
20499 # It fails to find uninstalled libraries when the uninstalled
20500 # path is not listed in the libpath. Setting hardcode_minus_L
20501 # to unsupported forces relinking
20502 hardcode_minus_L_GCJ=yes
20503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20504 hardcode_libdir_separator_GCJ=
20507 esac
20508 shared_flag='-shared'
20509 if test "$aix_use_runtimelinking" = yes; then
20510 shared_flag="$shared_flag "'${wl}-G'
20512 else
20513 # not using gcc
20514 if test "$host_cpu" = ia64; then
20515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20516 # chokes on -Wl,-G. The following line is correct:
20517 shared_flag='-G'
20518 else
20519 if test "$aix_use_runtimelinking" = yes; then
20520 shared_flag='${wl}-G'
20521 else
20522 shared_flag='${wl}-bM:SRE'
20527 # It seems that -bexpall does not export symbols beginning with
20528 # underscore (_), so it is better to generate a list of symbols to export.
20529 always_export_symbols_GCJ=yes
20530 if test "$aix_use_runtimelinking" = yes; then
20531 # Warning - without using the other runtime loading flags (-brtl),
20532 # -berok will link without error, but may produce a broken library.
20533 allow_undefined_flag_GCJ='-berok'
20534 # Determine the default libpath from the value encoded in an empty executable.
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20543 main ()
20547 return 0;
20549 _ACEOF
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest$ac_exeext &&
20567 $as_test_x conftest$ac_exeext; then
20569 lt_aix_libpath_sed='
20570 /Import File Strings/,/^$/ {
20571 /^0/ {
20572 s/^0 *\(.*\)$/\1/
20576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20577 # Check for a 64-bit object if we didn't find anything.
20578 if test -z "$aix_libpath"; then
20579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20581 else
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20589 conftest$ac_exeext conftest.$ac_ext
20590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20592 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20593 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"
20594 else
20595 if test "$host_cpu" = ia64; then
20596 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20597 allow_undefined_flag_GCJ="-z nodefs"
20598 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"
20599 else
20600 # Determine the default libpath from the value encoded in an empty executable.
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h. */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20609 main ()
20613 return 0;
20615 _ACEOF
20616 rm -f conftest.$ac_objext conftest$ac_exeext
20617 if { (ac_try="$ac_link"
20618 case "(($ac_try" in
20619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620 *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623 (eval "$ac_link") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest$ac_exeext &&
20633 $as_test_x conftest$ac_exeext; then
20635 lt_aix_libpath_sed='
20636 /Import File Strings/,/^$/ {
20637 /^0/ {
20638 s/^0 *\(.*\)$/\1/
20642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20643 # Check for a 64-bit object if we didn't find anything.
20644 if test -z "$aix_libpath"; then
20645 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20655 conftest$ac_exeext conftest.$ac_ext
20656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20658 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20659 # Warning - without using the other run time loading flags,
20660 # -berok will link without error, but may produce a broken library.
20661 no_undefined_flag_GCJ=' ${wl}-bernotok'
20662 allow_undefined_flag_GCJ=' ${wl}-berok'
20663 # Exported symbols can be pulled into shared objects from archives
20664 whole_archive_flag_spec_GCJ='$convenience'
20665 archive_cmds_need_lc_GCJ=yes
20666 # This is similar to how AIX traditionally builds its shared libraries.
20667 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'
20672 amigaos*)
20673 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)'
20674 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20675 hardcode_minus_L_GCJ=yes
20676 # see comment about different semantics on the GNU ld section
20677 ld_shlibs_GCJ=no
20680 bsdi[45]*)
20681 export_dynamic_flag_spec_GCJ=-rdynamic
20684 cygwin* | mingw* | pw32*)
20685 # When not using gcc, we currently assume that we are using
20686 # Microsoft Visual C++.
20687 # hardcode_libdir_flag_spec is actually meaningless, as there is
20688 # no search path for DLLs.
20689 hardcode_libdir_flag_spec_GCJ=' '
20690 allow_undefined_flag_GCJ=unsupported
20691 # Tell ltmain to make .lib files, not .a files.
20692 libext=lib
20693 # Tell ltmain to make .dll files, not .so files.
20694 shrext_cmds=".dll"
20695 # FIXME: Setting linknames here is a bad hack.
20696 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20697 # The linker will automatically build a .lib file if we build a DLL.
20698 old_archive_From_new_cmds_GCJ='true'
20699 # FIXME: Should let the user specify the lib program.
20700 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20701 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20702 enable_shared_with_static_runtimes_GCJ=yes
20705 darwin* | rhapsody*)
20706 case $host_os in
20707 rhapsody* | darwin1.[012])
20708 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20710 *) # Darwin 1.3 on
20711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20712 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20713 else
20714 case ${MACOSX_DEPLOYMENT_TARGET} in
20715 10.[012])
20716 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20718 10.*)
20719 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20721 esac
20724 esac
20725 archive_cmds_need_lc_GCJ=no
20726 hardcode_direct_GCJ=no
20727 hardcode_automatic_GCJ=yes
20728 hardcode_shlibpath_var_GCJ=unsupported
20729 whole_archive_flag_spec_GCJ=''
20730 link_all_deplibs_GCJ=yes
20731 if test "$GCC" = yes ; then
20732 output_verbose_link_cmd='echo'
20733 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}"
20734 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20735 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}"
20736 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}"
20737 else
20738 case $cc_basename in
20739 xlc*)
20740 output_verbose_link_cmd='echo'
20741 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20742 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20744 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}'
20745 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}'
20748 ld_shlibs_GCJ=no
20750 esac
20754 dgux*)
20755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20757 hardcode_shlibpath_var_GCJ=no
20760 freebsd1*)
20761 ld_shlibs_GCJ=no
20764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20765 # support. Future versions do this automatically, but an explicit c++rt0.o
20766 # does not break anything, and helps significantly (at the cost of a little
20767 # extra space).
20768 freebsd2.2*)
20769 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20770 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20771 hardcode_direct_GCJ=yes
20772 hardcode_shlibpath_var_GCJ=no
20775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20776 freebsd2*)
20777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20778 hardcode_direct_GCJ=yes
20779 hardcode_minus_L_GCJ=yes
20780 hardcode_shlibpath_var_GCJ=no
20783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20784 freebsd* | dragonfly*)
20785 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20787 hardcode_direct_GCJ=yes
20788 hardcode_shlibpath_var_GCJ=no
20791 hpux9*)
20792 if test "$GCC" = yes; then
20793 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'
20794 else
20795 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'
20797 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20798 hardcode_libdir_separator_GCJ=:
20799 hardcode_direct_GCJ=yes
20801 # hardcode_minus_L: Not really in the search PATH,
20802 # but as the default location of the library.
20803 hardcode_minus_L_GCJ=yes
20804 export_dynamic_flag_spec_GCJ='${wl}-E'
20807 hpux10*)
20808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20809 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20810 else
20811 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20813 if test "$with_gnu_ld" = no; then
20814 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20815 hardcode_libdir_separator_GCJ=:
20817 hardcode_direct_GCJ=yes
20818 export_dynamic_flag_spec_GCJ='${wl}-E'
20820 # hardcode_minus_L: Not really in the search PATH,
20821 # but as the default location of the library.
20822 hardcode_minus_L_GCJ=yes
20826 hpux11*)
20827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20828 case $host_cpu in
20829 hppa*64*)
20830 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20832 ia64*)
20833 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20836 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20838 esac
20839 else
20840 case $host_cpu in
20841 hppa*64*)
20842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20844 ia64*)
20845 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20848 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20850 esac
20852 if test "$with_gnu_ld" = no; then
20853 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20854 hardcode_libdir_separator_GCJ=:
20856 case $host_cpu in
20857 hppa*64*|ia64*)
20858 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20859 hardcode_direct_GCJ=no
20860 hardcode_shlibpath_var_GCJ=no
20863 hardcode_direct_GCJ=yes
20864 export_dynamic_flag_spec_GCJ='${wl}-E'
20866 # hardcode_minus_L: Not really in the search PATH,
20867 # but as the default location of the library.
20868 hardcode_minus_L_GCJ=yes
20870 esac
20874 irix5* | irix6* | nonstopux*)
20875 if test "$GCC" = yes; then
20876 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'
20877 else
20878 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'
20879 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20881 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20882 hardcode_libdir_separator_GCJ=:
20883 link_all_deplibs_GCJ=yes
20886 netbsd* | netbsdelf*-gnu)
20887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20889 else
20890 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20893 hardcode_direct_GCJ=yes
20894 hardcode_shlibpath_var_GCJ=no
20897 newsos6)
20898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20899 hardcode_direct_GCJ=yes
20900 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20901 hardcode_libdir_separator_GCJ=:
20902 hardcode_shlibpath_var_GCJ=no
20905 openbsd*)
20906 if test -f /usr/libexec/ld.so; then
20907 hardcode_direct_GCJ=yes
20908 hardcode_shlibpath_var_GCJ=no
20909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20910 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20911 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20912 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20913 export_dynamic_flag_spec_GCJ='${wl}-E'
20914 else
20915 case $host_os in
20916 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20917 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20918 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20921 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20922 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20924 esac
20926 else
20927 ld_shlibs_GCJ=no
20931 os2*)
20932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20933 hardcode_minus_L_GCJ=yes
20934 allow_undefined_flag_GCJ=unsupported
20935 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'
20936 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20939 osf3*)
20940 if test "$GCC" = yes; then
20941 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20942 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'
20943 else
20944 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20945 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'
20947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20948 hardcode_libdir_separator_GCJ=:
20951 osf4* | osf5*) # as osf3* with the addition of -msym flag
20952 if test "$GCC" = yes; then
20953 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20954 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'
20955 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20956 else
20957 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20958 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'
20959 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~
20960 $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'
20962 # Both c and cxx compiler support -rpath directly
20963 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20965 hardcode_libdir_separator_GCJ=:
20968 solaris*)
20969 no_undefined_flag_GCJ=' -z text'
20970 if test "$GCC" = yes; then
20971 wlarc='${wl}'
20972 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20974 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20975 else
20976 wlarc=''
20977 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20978 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20982 hardcode_shlibpath_var_GCJ=no
20983 case $host_os in
20984 solaris2.[0-5] | solaris2.[0-5].*) ;;
20986 # The compiler driver will combine and reorder linker options,
20987 # but understands `-z linker_flag'. GCC discards it without `$wl',
20988 # but is careful enough not to reorder.
20989 # Supported since Solaris 2.6 (maybe 2.5.1?)
20990 if test "$GCC" = yes; then
20991 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20992 else
20993 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20996 esac
20997 link_all_deplibs_GCJ=yes
21000 sunos4*)
21001 if test "x$host_vendor" = xsequent; then
21002 # Use $CC to link under sequent, because it throws in some extra .o
21003 # files that make .init and .fini sections work.
21004 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21005 else
21006 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21009 hardcode_direct_GCJ=yes
21010 hardcode_minus_L_GCJ=yes
21011 hardcode_shlibpath_var_GCJ=no
21014 sysv4)
21015 case $host_vendor in
21016 sni)
21017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21018 hardcode_direct_GCJ=yes # is this really true???
21020 siemens)
21021 ## LD is ld it makes a PLAMLIB
21022 ## CC just makes a GrossModule.
21023 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21024 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21025 hardcode_direct_GCJ=no
21027 motorola)
21028 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21029 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21031 esac
21032 runpath_var='LD_RUN_PATH'
21033 hardcode_shlibpath_var_GCJ=no
21036 sysv4.3*)
21037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21038 hardcode_shlibpath_var_GCJ=no
21039 export_dynamic_flag_spec_GCJ='-Bexport'
21042 sysv4*MP*)
21043 if test -d /usr/nec; then
21044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21045 hardcode_shlibpath_var_GCJ=no
21046 runpath_var=LD_RUN_PATH
21047 hardcode_runpath_var=yes
21048 ld_shlibs_GCJ=yes
21052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21053 no_undefined_flag_GCJ='${wl}-z,text'
21054 archive_cmds_need_lc_GCJ=no
21055 hardcode_shlibpath_var_GCJ=no
21056 runpath_var='LD_RUN_PATH'
21058 if test "$GCC" = yes; then
21059 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21060 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21061 else
21062 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21063 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21067 sysv5* | sco3.2v5* | sco5v6*)
21068 # Note: We can NOT use -z defs as we might desire, because we do not
21069 # link with -lc, and that would cause any symbols used from libc to
21070 # always be unresolved, which means just about no library would
21071 # ever link correctly. If we're not using GNU ld we use -z text
21072 # though, which does catch some bad symbols but isn't as heavy-handed
21073 # as -z defs.
21074 no_undefined_flag_GCJ='${wl}-z,text'
21075 allow_undefined_flag_GCJ='${wl}-z,nodefs'
21076 archive_cmds_need_lc_GCJ=no
21077 hardcode_shlibpath_var_GCJ=no
21078 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21079 hardcode_libdir_separator_GCJ=':'
21080 link_all_deplibs_GCJ=yes
21081 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21082 runpath_var='LD_RUN_PATH'
21084 if test "$GCC" = yes; then
21085 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21086 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21087 else
21088 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21089 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21093 uts4*)
21094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21096 hardcode_shlibpath_var_GCJ=no
21100 ld_shlibs_GCJ=no
21102 esac
21105 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21106 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21107 test "$ld_shlibs_GCJ" = no && can_build_shared=no
21110 # Do we need to explicitly link libc?
21112 case "x$archive_cmds_need_lc_GCJ" in
21113 x|xyes)
21114 # Assume -lc should be added
21115 archive_cmds_need_lc_GCJ=yes
21117 if test "$enable_shared" = yes && test "$GCC" = yes; then
21118 case $archive_cmds_GCJ in
21119 *'~'*)
21120 # FIXME: we may have to deal with multi-command sequences.
21122 '$CC '*)
21123 # Test whether the compiler implicitly links with -lc since on some
21124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21125 # to ld, don't add -lc before -lgcc.
21126 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21127 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21128 $rm conftest*
21129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21132 (eval $ac_compile) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); } 2>conftest.err; then
21136 soname=conftest
21137 lib=conftest
21138 libobjs=conftest.$ac_objext
21139 deplibs=
21140 wl=$lt_prog_compiler_wl_GCJ
21141 pic_flag=$lt_prog_compiler_pic_GCJ
21142 compiler_flags=-v
21143 linker_flags=-v
21144 verstring=
21145 output_objdir=.
21146 libname=conftest
21147 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21148 allow_undefined_flag_GCJ=
21149 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21150 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }
21154 then
21155 archive_cmds_need_lc_GCJ=no
21156 else
21157 archive_cmds_need_lc_GCJ=yes
21159 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21160 else
21161 cat conftest.err 1>&5
21163 $rm conftest*
21164 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21165 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21167 esac
21170 esac
21172 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21174 library_names_spec=
21175 libname_spec='lib$name'
21176 soname_spec=
21177 shrext_cmds=".so"
21178 postinstall_cmds=
21179 postuninstall_cmds=
21180 finish_cmds=
21181 finish_eval=
21182 shlibpath_var=
21183 shlibpath_overrides_runpath=unknown
21184 version_type=none
21185 dynamic_linker="$host_os ld.so"
21186 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21188 need_lib_prefix=unknown
21189 hardcode_into_libs=no
21191 # when you set need_version to no, make sure it does not cause -set_version
21192 # flags to be left without arguments
21193 need_version=unknown
21195 case $host_os in
21196 aix3*)
21197 version_type=linux
21198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21199 shlibpath_var=LIBPATH
21201 # AIX 3 has no versioning support, so we append a major version to the name.
21202 soname_spec='${libname}${release}${shared_ext}$major'
21205 aix[4-9]*)
21206 version_type=linux
21207 need_lib_prefix=no
21208 need_version=no
21209 hardcode_into_libs=yes
21210 if test "$host_cpu" = ia64; then
21211 # AIX 5 supports IA64
21212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21213 shlibpath_var=LD_LIBRARY_PATH
21214 else
21215 # With GCC up to 2.95.x, collect2 would create an import file
21216 # for dependence libraries. The import file would start with
21217 # the line `#! .'. This would cause the generated library to
21218 # depend on `.', always an invalid library. This was fixed in
21219 # development snapshots of GCC prior to 3.0.
21220 case $host_os in
21221 aix4 | aix4.[01] | aix4.[01].*)
21222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21223 echo ' yes '
21224 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21226 else
21227 can_build_shared=no
21230 esac
21231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21232 # soname into executable. Probably we can add versioning support to
21233 # collect2, so additional links can be useful in future.
21234 if test "$aix_use_runtimelinking" = yes; then
21235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21236 # instead of lib<name>.a to let people know that these are not
21237 # typical AIX shared libraries.
21238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239 else
21240 # We preserve .a as extension for shared libraries through AIX4.2
21241 # and later when we are not doing run time linking.
21242 library_names_spec='${libname}${release}.a $libname.a'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21245 shlibpath_var=LIBPATH
21249 amigaos*)
21250 library_names_spec='$libname.ixlibrary $libname.a'
21251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21252 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'
21255 beos*)
21256 library_names_spec='${libname}${shared_ext}'
21257 dynamic_linker="$host_os ld.so"
21258 shlibpath_var=LIBRARY_PATH
21261 bsdi[45]*)
21262 version_type=linux
21263 need_version=no
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21267 shlibpath_var=LD_LIBRARY_PATH
21268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21270 # the default ld.so.conf also contains /usr/contrib/lib and
21271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21272 # libtool to hard-code these into programs
21275 cygwin* | mingw* | pw32*)
21276 version_type=windows
21277 shrext_cmds=".dll"
21278 need_version=no
21279 need_lib_prefix=no
21281 case $GCC,$host_os in
21282 yes,cygwin* | yes,mingw* | yes,pw32*)
21283 library_names_spec='$libname.dll.a'
21284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21285 postinstall_cmds='base_file=`basename \${file}`~
21286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21287 dldir=$destdir/`dirname \$dlpath`~
21288 test -d \$dldir || mkdir -p \$dldir~
21289 $install_prog $dir/$dlname \$dldir/$dlname~
21290 chmod a+x \$dldir/$dlname'
21291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21292 dlpath=$dir/\$dldll~
21293 $rm \$dlpath'
21294 shlibpath_overrides_runpath=yes
21296 case $host_os in
21297 cygwin*)
21298 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21299 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21300 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21302 mingw*)
21303 # MinGW DLLs use traditional 'lib' prefix
21304 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21306 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21307 # It is most probably a Windows format PATH printed by
21308 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21309 # path with ; separators, and with drive letters. We can handle the
21310 # drive letters (cygwin fileutils understands them), so leave them,
21311 # especially as we might pass files found there to a mingw objdump,
21312 # which wouldn't understand a cygwinified path. Ahh.
21313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21314 else
21315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21318 pw32*)
21319 # pw32 DLLs use 'pw' prefix rather than 'lib'
21320 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21322 esac
21326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21328 esac
21329 dynamic_linker='Win32 ld.exe'
21330 # FIXME: first we should search . and the directory the executable is in
21331 shlibpath_var=PATH
21334 darwin* | rhapsody*)
21335 dynamic_linker="$host_os dyld"
21336 version_type=darwin
21337 need_lib_prefix=no
21338 need_version=no
21339 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21340 soname_spec='${libname}${release}${major}$shared_ext'
21341 shlibpath_overrides_runpath=yes
21342 shlibpath_var=DYLD_LIBRARY_PATH
21343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21348 dgux*)
21349 version_type=linux
21350 need_lib_prefix=no
21351 need_version=no
21352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21353 soname_spec='${libname}${release}${shared_ext}$major'
21354 shlibpath_var=LD_LIBRARY_PATH
21357 freebsd1*)
21358 dynamic_linker=no
21361 freebsd* | dragonfly*)
21362 # DragonFly does not have aout. When/if they implement a new
21363 # versioning mechanism, adjust this.
21364 if test -x /usr/bin/objformat; then
21365 objformat=`/usr/bin/objformat`
21366 else
21367 case $host_os in
21368 freebsd[123]*) objformat=aout ;;
21369 *) objformat=elf ;;
21370 esac
21372 version_type=freebsd-$objformat
21373 case $version_type in
21374 freebsd-elf*)
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21376 need_version=no
21377 need_lib_prefix=no
21379 freebsd-*)
21380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21381 need_version=yes
21383 esac
21384 shlibpath_var=LD_LIBRARY_PATH
21385 case $host_os in
21386 freebsd2*)
21387 shlibpath_overrides_runpath=yes
21389 freebsd3.[01]* | freebsdelf3.[01]*)
21390 shlibpath_overrides_runpath=yes
21391 hardcode_into_libs=yes
21393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21395 shlibpath_overrides_runpath=no
21396 hardcode_into_libs=yes
21398 *) # from 4.6 on, and DragonFly
21399 shlibpath_overrides_runpath=yes
21400 hardcode_into_libs=yes
21402 esac
21405 gnu*)
21406 version_type=linux
21407 need_lib_prefix=no
21408 need_version=no
21409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21410 soname_spec='${libname}${release}${shared_ext}$major'
21411 shlibpath_var=LD_LIBRARY_PATH
21412 hardcode_into_libs=yes
21415 hpux9* | hpux10* | hpux11*)
21416 # Give a soname corresponding to the major version so that dld.sl refuses to
21417 # link against other versions.
21418 version_type=sunos
21419 need_lib_prefix=no
21420 need_version=no
21421 case $host_cpu in
21422 ia64*)
21423 shrext_cmds='.so'
21424 hardcode_into_libs=yes
21425 dynamic_linker="$host_os dld.so"
21426 shlibpath_var=LD_LIBRARY_PATH
21427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21429 soname_spec='${libname}${release}${shared_ext}$major'
21430 if test "X$HPUX_IA64_MODE" = X32; then
21431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21432 else
21433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21437 hppa*64*)
21438 shrext_cmds='.sl'
21439 hardcode_into_libs=yes
21440 dynamic_linker="$host_os dld.sl"
21441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21444 soname_spec='${libname}${release}${shared_ext}$major'
21445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21449 shrext_cmds='.sl'
21450 dynamic_linker="$host_os dld.sl"
21451 shlibpath_var=SHLIB_PATH
21452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21454 soname_spec='${libname}${release}${shared_ext}$major'
21456 esac
21457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21458 postinstall_cmds='chmod 555 $lib'
21461 interix[3-9]*)
21462 version_type=linux
21463 need_lib_prefix=no
21464 need_version=no
21465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21466 soname_spec='${libname}${release}${shared_ext}$major'
21467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21468 shlibpath_var=LD_LIBRARY_PATH
21469 shlibpath_overrides_runpath=no
21470 hardcode_into_libs=yes
21473 irix5* | irix6* | nonstopux*)
21474 case $host_os in
21475 nonstopux*) version_type=nonstopux ;;
21477 if test "$lt_cv_prog_gnu_ld" = yes; then
21478 version_type=linux
21479 else
21480 version_type=irix
21481 fi ;;
21482 esac
21483 need_lib_prefix=no
21484 need_version=no
21485 soname_spec='${libname}${release}${shared_ext}$major'
21486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21487 case $host_os in
21488 irix5* | nonstopux*)
21489 libsuff= shlibsuff=
21492 case $LD in # libtool.m4 will add one of these switches to LD
21493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21494 libsuff= shlibsuff= libmagic=32-bit;;
21495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21496 libsuff=32 shlibsuff=N32 libmagic=N32;;
21497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21499 *) libsuff= shlibsuff= libmagic=never-match;;
21500 esac
21502 esac
21503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21504 shlibpath_overrides_runpath=no
21505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21507 hardcode_into_libs=yes
21510 # No shared lib support for Linux oldld, aout, or coff.
21511 linux*oldld* | linux*aout* | linux*coff*)
21512 dynamic_linker=no
21515 # This must be Linux ELF.
21516 linux* | k*bsd*-gnu)
21517 version_type=linux
21518 need_lib_prefix=no
21519 need_version=no
21520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21521 soname_spec='${libname}${release}${shared_ext}$major'
21522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21523 shlibpath_var=LD_LIBRARY_PATH
21524 shlibpath_overrides_runpath=no
21525 # This implies no fast_install, which is unacceptable.
21526 # Some rework will be needed to allow for fast_install
21527 # before this can be enabled.
21528 hardcode_into_libs=yes
21530 # Append ld.so.conf contents to the search path
21531 if test -f /etc/ld.so.conf; then
21532 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' ' '`
21533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21536 # We used to test for /lib/ld.so.1 and disable shared libraries on
21537 # powerpc, because MkLinux only supported shared libraries with the
21538 # GNU dynamic linker. Since this was broken with cross compilers,
21539 # most powerpc-linux boxes support dynamic linking these days and
21540 # people can always --disable-shared, the test was removed, and we
21541 # assume the GNU/Linux dynamic linker is in use.
21542 dynamic_linker='GNU/Linux ld.so'
21545 netbsdelf*-gnu)
21546 version_type=linux
21547 need_lib_prefix=no
21548 need_version=no
21549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21550 soname_spec='${libname}${release}${shared_ext}$major'
21551 shlibpath_var=LD_LIBRARY_PATH
21552 shlibpath_overrides_runpath=no
21553 hardcode_into_libs=yes
21554 dynamic_linker='NetBSD ld.elf_so'
21557 netbsd*)
21558 version_type=sunos
21559 need_lib_prefix=no
21560 need_version=no
21561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21564 dynamic_linker='NetBSD (a.out) ld.so'
21565 else
21566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21567 soname_spec='${libname}${release}${shared_ext}$major'
21568 dynamic_linker='NetBSD ld.elf_so'
21570 shlibpath_var=LD_LIBRARY_PATH
21571 shlibpath_overrides_runpath=yes
21572 hardcode_into_libs=yes
21575 newsos6)
21576 version_type=linux
21577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21578 shlibpath_var=LD_LIBRARY_PATH
21579 shlibpath_overrides_runpath=yes
21582 nto-qnx*)
21583 version_type=linux
21584 need_lib_prefix=no
21585 need_version=no
21586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21587 soname_spec='${libname}${release}${shared_ext}$major'
21588 shlibpath_var=LD_LIBRARY_PATH
21589 shlibpath_overrides_runpath=yes
21592 openbsd*)
21593 version_type=sunos
21594 sys_lib_dlsearch_path_spec="/usr/lib"
21595 need_lib_prefix=no
21596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21597 case $host_os in
21598 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21599 *) need_version=no ;;
21600 esac
21601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21603 shlibpath_var=LD_LIBRARY_PATH
21604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21605 case $host_os in
21606 openbsd2.[89] | openbsd2.[89].*)
21607 shlibpath_overrides_runpath=no
21610 shlibpath_overrides_runpath=yes
21612 esac
21613 else
21614 shlibpath_overrides_runpath=yes
21618 os2*)
21619 libname_spec='$name'
21620 shrext_cmds=".dll"
21621 need_lib_prefix=no
21622 library_names_spec='$libname${shared_ext} $libname.a'
21623 dynamic_linker='OS/2 ld.exe'
21624 shlibpath_var=LIBPATH
21627 osf3* | osf4* | osf5*)
21628 version_type=osf
21629 need_lib_prefix=no
21630 need_version=no
21631 soname_spec='${libname}${release}${shared_ext}$major'
21632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21633 shlibpath_var=LD_LIBRARY_PATH
21634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21638 rdos*)
21639 dynamic_linker=no
21642 solaris*)
21643 version_type=linux
21644 need_lib_prefix=no
21645 need_version=no
21646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21647 soname_spec='${libname}${release}${shared_ext}$major'
21648 shlibpath_var=LD_LIBRARY_PATH
21649 shlibpath_overrides_runpath=yes
21650 hardcode_into_libs=yes
21651 # ldd complains unless libraries are executable
21652 postinstall_cmds='chmod +x $lib'
21655 sunos4*)
21656 version_type=sunos
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21658 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21659 shlibpath_var=LD_LIBRARY_PATH
21660 shlibpath_overrides_runpath=yes
21661 if test "$with_gnu_ld" = yes; then
21662 need_lib_prefix=no
21664 need_version=yes
21667 sysv4 | sysv4.3*)
21668 version_type=linux
21669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670 soname_spec='${libname}${release}${shared_ext}$major'
21671 shlibpath_var=LD_LIBRARY_PATH
21672 case $host_vendor in
21673 sni)
21674 shlibpath_overrides_runpath=no
21675 need_lib_prefix=no
21676 export_dynamic_flag_spec='${wl}-Blargedynsym'
21677 runpath_var=LD_RUN_PATH
21679 siemens)
21680 need_lib_prefix=no
21682 motorola)
21683 need_lib_prefix=no
21684 need_version=no
21685 shlibpath_overrides_runpath=no
21686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21688 esac
21691 sysv4*MP*)
21692 if test -d /usr/nec ;then
21693 version_type=linux
21694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21695 soname_spec='$libname${shared_ext}.$major'
21696 shlibpath_var=LD_LIBRARY_PATH
21700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21701 version_type=freebsd-elf
21702 need_lib_prefix=no
21703 need_version=no
21704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21705 soname_spec='${libname}${release}${shared_ext}$major'
21706 shlibpath_var=LD_LIBRARY_PATH
21707 hardcode_into_libs=yes
21708 if test "$with_gnu_ld" = yes; then
21709 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21710 shlibpath_overrides_runpath=no
21711 else
21712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21713 shlibpath_overrides_runpath=yes
21714 case $host_os in
21715 sco3.2v5*)
21716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21718 esac
21720 sys_lib_dlsearch_path_spec='/usr/lib'
21723 uts4*)
21724 version_type=linux
21725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21726 soname_spec='${libname}${release}${shared_ext}$major'
21727 shlibpath_var=LD_LIBRARY_PATH
21731 dynamic_linker=no
21733 esac
21734 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21735 echo "${ECHO_T}$dynamic_linker" >&6; }
21736 test "$dynamic_linker" = no && can_build_shared=no
21738 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21739 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21744 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21745 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21754 if test "$GCC" = yes; then
21755 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21758 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21759 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21760 hardcode_action_GCJ=
21761 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21762 test -n "$runpath_var_GCJ" || \
21763 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21765 # We can hardcode non-existant directories.
21766 if test "$hardcode_direct_GCJ" != no &&
21767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21768 # have to relink, otherwise we might link with an installed library
21769 # when we should be linking with a yet-to-be-installed one
21770 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21771 test "$hardcode_minus_L_GCJ" != no; then
21772 # Linking always hardcodes the temporary library directory.
21773 hardcode_action_GCJ=relink
21774 else
21775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21776 hardcode_action_GCJ=immediate
21778 else
21779 # We cannot hardcode anything, or else we can only hardcode existing
21780 # directories.
21781 hardcode_action_GCJ=unsupported
21783 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21784 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21786 if test "$hardcode_action_GCJ" = relink; then
21787 # Fast installation is not supported
21788 enable_fast_install=no
21789 elif test "$shlibpath_overrides_runpath" = yes ||
21790 test "$enable_shared" = no; then
21791 # Fast installation is not necessary
21792 enable_fast_install=needless
21796 # The else clause should only fire when bootstrapping the
21797 # libtool distribution, otherwise you forgot to ship ltmain.sh
21798 # with your package, and you will get complaints that there are
21799 # no rules to generate ltmain.sh.
21800 if test -f "$ltmain"; then
21801 # See if we are running on zsh, and set the options which allow our commands through
21802 # without removal of \ escapes.
21803 if test -n "${ZSH_VERSION+set}" ; then
21804 setopt NO_GLOB_SUBST
21806 # Now quote all the things that may contain metacharacters while being
21807 # careful not to overquote the AC_SUBSTed values. We take copies of the
21808 # variables and quote the copies for generation of the libtool script.
21809 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21810 SED SHELL STRIP \
21811 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21812 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21813 deplibs_check_method reload_flag reload_cmds need_locks \
21814 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21815 lt_cv_sys_global_symbol_to_c_name_address \
21816 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21817 old_postinstall_cmds old_postuninstall_cmds \
21818 compiler_GCJ \
21819 CC_GCJ \
21820 LD_GCJ \
21821 lt_prog_compiler_wl_GCJ \
21822 lt_prog_compiler_pic_GCJ \
21823 lt_prog_compiler_static_GCJ \
21824 lt_prog_compiler_no_builtin_flag_GCJ \
21825 export_dynamic_flag_spec_GCJ \
21826 thread_safe_flag_spec_GCJ \
21827 whole_archive_flag_spec_GCJ \
21828 enable_shared_with_static_runtimes_GCJ \
21829 old_archive_cmds_GCJ \
21830 old_archive_from_new_cmds_GCJ \
21831 predep_objects_GCJ \
21832 postdep_objects_GCJ \
21833 predeps_GCJ \
21834 postdeps_GCJ \
21835 compiler_lib_search_path_GCJ \
21836 compiler_lib_search_dirs_GCJ \
21837 archive_cmds_GCJ \
21838 archive_expsym_cmds_GCJ \
21839 postinstall_cmds_GCJ \
21840 postuninstall_cmds_GCJ \
21841 old_archive_from_expsyms_cmds_GCJ \
21842 allow_undefined_flag_GCJ \
21843 no_undefined_flag_GCJ \
21844 export_symbols_cmds_GCJ \
21845 hardcode_libdir_flag_spec_GCJ \
21846 hardcode_libdir_flag_spec_ld_GCJ \
21847 hardcode_libdir_separator_GCJ \
21848 hardcode_automatic_GCJ \
21849 module_cmds_GCJ \
21850 module_expsym_cmds_GCJ \
21851 lt_cv_prog_compiler_c_o_GCJ \
21852 fix_srcfile_path_GCJ \
21853 exclude_expsyms_GCJ \
21854 include_expsyms_GCJ; do
21856 case $var in
21857 old_archive_cmds_GCJ | \
21858 old_archive_from_new_cmds_GCJ | \
21859 archive_cmds_GCJ | \
21860 archive_expsym_cmds_GCJ | \
21861 module_cmds_GCJ | \
21862 module_expsym_cmds_GCJ | \
21863 old_archive_from_expsyms_cmds_GCJ | \
21864 export_symbols_cmds_GCJ | \
21865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21866 postinstall_cmds | postuninstall_cmds | \
21867 old_postinstall_cmds | old_postuninstall_cmds | \
21868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21869 # Double-quote double-evaled strings.
21870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21875 esac
21876 done
21878 case $lt_echo in
21879 *'\$0 --fallback-echo"')
21880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21882 esac
21884 cfgfile="$ofile"
21886 cat <<__EOF__ >> "$cfgfile"
21887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21891 # Shell to use when invoking shell scripts.
21892 SHELL=$lt_SHELL
21894 # Whether or not to build shared libraries.
21895 build_libtool_libs=$enable_shared
21897 # Whether or not to build static libraries.
21898 build_old_libs=$enable_static
21900 # Whether or not to add -lc for building shared libraries.
21901 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21903 # Whether or not to disallow shared libs when runtime libs are static
21904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21906 # Whether or not to optimize for fast installation.
21907 fast_install=$enable_fast_install
21909 # The host system.
21910 host_alias=$host_alias
21911 host=$host
21912 host_os=$host_os
21914 # The build system.
21915 build_alias=$build_alias
21916 build=$build
21917 build_os=$build_os
21919 # An echo program that does not interpret backslashes.
21920 echo=$lt_echo
21922 # The archiver.
21923 AR=$lt_AR
21924 AR_FLAGS=$lt_AR_FLAGS
21926 # A C compiler.
21927 LTCC=$lt_LTCC
21929 # LTCC compiler flags.
21930 LTCFLAGS=$lt_LTCFLAGS
21932 # A language-specific compiler.
21933 CC=$lt_compiler_GCJ
21935 # Is the compiler the GNU C compiler?
21936 with_gcc=$GCC_GCJ
21938 # An ERE matcher.
21939 EGREP=$lt_EGREP
21941 # The linker used to build libraries.
21942 LD=$lt_LD_GCJ
21944 # Whether we need hard or soft links.
21945 LN_S=$lt_LN_S
21947 # A BSD-compatible nm program.
21948 NM=$lt_NM
21950 # A symbol stripping program
21951 STRIP=$lt_STRIP
21953 # Used to examine libraries when file_magic_cmd begins "file"
21954 MAGIC_CMD=$MAGIC_CMD
21956 # Used on cygwin: DLL creation program.
21957 DLLTOOL="$DLLTOOL"
21959 # Used on cygwin: object dumper.
21960 OBJDUMP="$OBJDUMP"
21962 # Used on cygwin: assembler.
21963 AS="$AS"
21965 # The name of the directory that contains temporary libtool files.
21966 objdir=$objdir
21968 # How to create reloadable object files.
21969 reload_flag=$lt_reload_flag
21970 reload_cmds=$lt_reload_cmds
21972 # How to pass a linker flag through the compiler.
21973 wl=$lt_lt_prog_compiler_wl_GCJ
21975 # Object file suffix (normally "o").
21976 objext="$ac_objext"
21978 # Old archive suffix (normally "a").
21979 libext="$libext"
21981 # Shared library suffix (normally ".so").
21982 shrext_cmds='$shrext_cmds'
21984 # Executable file suffix (normally "").
21985 exeext="$exeext"
21987 # Additional compiler flags for building library objects.
21988 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21989 pic_mode=$pic_mode
21991 # What is the maximum length of a command?
21992 max_cmd_len=$lt_cv_sys_max_cmd_len
21994 # Does compiler simultaneously support -c and -o options?
21995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21997 # Must we lock files when doing compilation?
21998 need_locks=$lt_need_locks
22000 # Do we need the lib prefix for modules?
22001 need_lib_prefix=$need_lib_prefix
22003 # Do we need a version for libraries?
22004 need_version=$need_version
22006 # Whether dlopen is supported.
22007 dlopen_support=$enable_dlopen
22009 # Whether dlopen of programs is supported.
22010 dlopen_self=$enable_dlopen_self
22012 # Whether dlopen of statically linked programs is supported.
22013 dlopen_self_static=$enable_dlopen_self_static
22015 # Compiler flag to prevent dynamic linking.
22016 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22018 # Compiler flag to turn off builtin functions.
22019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22021 # Compiler flag to allow reflexive dlopens.
22022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22024 # Compiler flag to generate shared objects directly from archives.
22025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22027 # Compiler flag to generate thread-safe objects.
22028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22030 # Library versioning type.
22031 version_type=$version_type
22033 # Format of library name prefix.
22034 libname_spec=$lt_libname_spec
22036 # List of archive names. First name is the real one, the rest are links.
22037 # The last name is the one that the linker finds with -lNAME.
22038 library_names_spec=$lt_library_names_spec
22040 # The coded name of the library, if different from the real name.
22041 soname_spec=$lt_soname_spec
22043 # Commands used to build and install an old-style archive.
22044 RANLIB=$lt_RANLIB
22045 old_archive_cmds=$lt_old_archive_cmds_GCJ
22046 old_postinstall_cmds=$lt_old_postinstall_cmds
22047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22049 # Create an old-style archive from a shared archive.
22050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22052 # Create a temporary old-style archive to link instead of a shared archive.
22053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22055 # Commands used to build and install a shared archive.
22056 archive_cmds=$lt_archive_cmds_GCJ
22057 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22058 postinstall_cmds=$lt_postinstall_cmds
22059 postuninstall_cmds=$lt_postuninstall_cmds
22061 # Commands used to build a loadable module (assumed same as above if empty)
22062 module_cmds=$lt_module_cmds_GCJ
22063 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22065 # Commands to strip libraries.
22066 old_striplib=$lt_old_striplib
22067 striplib=$lt_striplib
22069 # Dependencies to place before the objects being linked to create a
22070 # shared library.
22071 predep_objects=$lt_predep_objects_GCJ
22073 # Dependencies to place after the objects being linked to create a
22074 # shared library.
22075 postdep_objects=$lt_postdep_objects_GCJ
22077 # Dependencies to place before the objects being linked to create a
22078 # shared library.
22079 predeps=$lt_predeps_GCJ
22081 # Dependencies to place after the objects being linked to create a
22082 # shared library.
22083 postdeps=$lt_postdeps_GCJ
22085 # The directories searched by this compiler when creating a shared
22086 # library
22087 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22089 # The library search path used internally by the compiler when linking
22090 # a shared library.
22091 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22093 # Method to check whether dependent libraries are shared objects.
22094 deplibs_check_method=$lt_deplibs_check_method
22096 # Command to use when deplibs_check_method == file_magic.
22097 file_magic_cmd=$lt_file_magic_cmd
22099 # Flag that allows shared libraries with undefined symbols to be built.
22100 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22102 # Flag that forces no undefined symbols.
22103 no_undefined_flag=$lt_no_undefined_flag_GCJ
22105 # Commands used to finish a libtool library installation in a directory.
22106 finish_cmds=$lt_finish_cmds
22108 # Same as above, but a single script fragment to be evaled but not shown.
22109 finish_eval=$lt_finish_eval
22111 # Take the output of nm and produce a listing of raw symbols and C names.
22112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22114 # Transform the output of nm in a proper C declaration
22115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22117 # Transform the output of nm in a C name address pair
22118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22120 # This is the shared library runtime path variable.
22121 runpath_var=$runpath_var
22123 # This is the shared library path variable.
22124 shlibpath_var=$shlibpath_var
22126 # Is shlibpath searched before the hard-coded library search path?
22127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22129 # How to hardcode a shared library path into an executable.
22130 hardcode_action=$hardcode_action_GCJ
22132 # Whether we should hardcode library paths into libraries.
22133 hardcode_into_libs=$hardcode_into_libs
22135 # Flag to hardcode \$libdir into a binary during linking.
22136 # This must work even if \$libdir does not exist.
22137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22139 # If ld is used when linking, flag to hardcode \$libdir into
22140 # a binary during linking. This must work even if \$libdir does
22141 # not exist.
22142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22144 # Whether we need a single -rpath flag with a separated argument.
22145 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22147 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22148 # resulting binary.
22149 hardcode_direct=$hardcode_direct_GCJ
22151 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22152 # resulting binary.
22153 hardcode_minus_L=$hardcode_minus_L_GCJ
22155 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22156 # the resulting binary.
22157 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22159 # Set to yes if building a shared library automatically hardcodes DIR into the library
22160 # and all subsequent libraries and executables linked against it.
22161 hardcode_automatic=$hardcode_automatic_GCJ
22163 # Variables whose values should be saved in libtool wrapper scripts and
22164 # restored at relink time.
22165 variables_saved_for_relink="$variables_saved_for_relink"
22167 # Whether libtool must link a program against all its dependency libraries.
22168 link_all_deplibs=$link_all_deplibs_GCJ
22170 # Compile-time system search path for libraries
22171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22173 # Run-time system search path for libraries
22174 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22176 # Fix the shell variable \$srcfile for the compiler.
22177 fix_srcfile_path=$lt_fix_srcfile_path
22179 # Set to yes if exported symbols are required.
22180 always_export_symbols=$always_export_symbols_GCJ
22182 # The commands to list exported symbols.
22183 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22185 # The commands to extract the exported symbol list from a shared archive.
22186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22188 # Symbols that should not be listed in the preloaded symbols.
22189 exclude_expsyms=$lt_exclude_expsyms_GCJ
22191 # Symbols that must always be exported.
22192 include_expsyms=$lt_include_expsyms_GCJ
22194 # ### END LIBTOOL TAG CONFIG: $tagname
22196 __EOF__
22199 else
22200 # If there is no Makefile yet, we rely on a make rule to execute
22201 # `config.status --recheck' to rerun these tests and create the
22202 # libtool script then.
22203 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22204 if test -f "$ltmain_in"; then
22205 test -f Makefile && make "$ltmain"
22210 ac_ext=c
22211 ac_cpp='$CPP $CPPFLAGS'
22212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22216 CC="$lt_save_CC"
22218 else
22219 tagname=""
22226 # Source file extension for RC test sources.
22227 ac_ext=rc
22229 # Object file extension for compiled RC test sources.
22230 objext=o
22231 objext_RC=$objext
22233 # Code to be used in simple compile tests
22234 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22236 # Code to be used in simple link tests
22237 lt_simple_link_test_code="$lt_simple_compile_test_code"
22239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22241 # If no C compiler was specified, use CC.
22242 LTCC=${LTCC-"$CC"}
22244 # If no C compiler flags were specified, use CFLAGS.
22245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22247 # Allow CC to be a program name with arguments.
22248 compiler=$CC
22251 # save warnings/boilerplate of simple test code
22252 ac_outfile=conftest.$ac_objext
22253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22255 _lt_compiler_boilerplate=`cat conftest.err`
22256 $rm conftest*
22258 ac_outfile=conftest.$ac_objext
22259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22261 _lt_linker_boilerplate=`cat conftest.err`
22262 $rm -r conftest*
22265 # Allow CC to be a program name with arguments.
22266 lt_save_CC="$CC"
22267 CC=${RC-"windres"}
22268 compiler=$CC
22269 compiler_RC=$CC
22270 for cc_temp in $compiler""; do
22271 case $cc_temp in
22272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22274 \-*) ;;
22275 *) break;;
22276 esac
22277 done
22278 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22280 lt_cv_prog_compiler_c_o_RC=yes
22282 # The else clause should only fire when bootstrapping the
22283 # libtool distribution, otherwise you forgot to ship ltmain.sh
22284 # with your package, and you will get complaints that there are
22285 # no rules to generate ltmain.sh.
22286 if test -f "$ltmain"; then
22287 # See if we are running on zsh, and set the options which allow our commands through
22288 # without removal of \ escapes.
22289 if test -n "${ZSH_VERSION+set}" ; then
22290 setopt NO_GLOB_SUBST
22292 # Now quote all the things that may contain metacharacters while being
22293 # careful not to overquote the AC_SUBSTed values. We take copies of the
22294 # variables and quote the copies for generation of the libtool script.
22295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22296 SED SHELL STRIP \
22297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22299 deplibs_check_method reload_flag reload_cmds need_locks \
22300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22301 lt_cv_sys_global_symbol_to_c_name_address \
22302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22303 old_postinstall_cmds old_postuninstall_cmds \
22304 compiler_RC \
22305 CC_RC \
22306 LD_RC \
22307 lt_prog_compiler_wl_RC \
22308 lt_prog_compiler_pic_RC \
22309 lt_prog_compiler_static_RC \
22310 lt_prog_compiler_no_builtin_flag_RC \
22311 export_dynamic_flag_spec_RC \
22312 thread_safe_flag_spec_RC \
22313 whole_archive_flag_spec_RC \
22314 enable_shared_with_static_runtimes_RC \
22315 old_archive_cmds_RC \
22316 old_archive_from_new_cmds_RC \
22317 predep_objects_RC \
22318 postdep_objects_RC \
22319 predeps_RC \
22320 postdeps_RC \
22321 compiler_lib_search_path_RC \
22322 compiler_lib_search_dirs_RC \
22323 archive_cmds_RC \
22324 archive_expsym_cmds_RC \
22325 postinstall_cmds_RC \
22326 postuninstall_cmds_RC \
22327 old_archive_from_expsyms_cmds_RC \
22328 allow_undefined_flag_RC \
22329 no_undefined_flag_RC \
22330 export_symbols_cmds_RC \
22331 hardcode_libdir_flag_spec_RC \
22332 hardcode_libdir_flag_spec_ld_RC \
22333 hardcode_libdir_separator_RC \
22334 hardcode_automatic_RC \
22335 module_cmds_RC \
22336 module_expsym_cmds_RC \
22337 lt_cv_prog_compiler_c_o_RC \
22338 fix_srcfile_path_RC \
22339 exclude_expsyms_RC \
22340 include_expsyms_RC; do
22342 case $var in
22343 old_archive_cmds_RC | \
22344 old_archive_from_new_cmds_RC | \
22345 archive_cmds_RC | \
22346 archive_expsym_cmds_RC | \
22347 module_cmds_RC | \
22348 module_expsym_cmds_RC | \
22349 old_archive_from_expsyms_cmds_RC | \
22350 export_symbols_cmds_RC | \
22351 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22352 postinstall_cmds | postuninstall_cmds | \
22353 old_postinstall_cmds | old_postuninstall_cmds | \
22354 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22355 # Double-quote double-evaled strings.
22356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22361 esac
22362 done
22364 case $lt_echo in
22365 *'\$0 --fallback-echo"')
22366 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22368 esac
22370 cfgfile="$ofile"
22372 cat <<__EOF__ >> "$cfgfile"
22373 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22377 # Shell to use when invoking shell scripts.
22378 SHELL=$lt_SHELL
22380 # Whether or not to build shared libraries.
22381 build_libtool_libs=$enable_shared
22383 # Whether or not to build static libraries.
22384 build_old_libs=$enable_static
22386 # Whether or not to add -lc for building shared libraries.
22387 build_libtool_need_lc=$archive_cmds_need_lc_RC
22389 # Whether or not to disallow shared libs when runtime libs are static
22390 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22392 # Whether or not to optimize for fast installation.
22393 fast_install=$enable_fast_install
22395 # The host system.
22396 host_alias=$host_alias
22397 host=$host
22398 host_os=$host_os
22400 # The build system.
22401 build_alias=$build_alias
22402 build=$build
22403 build_os=$build_os
22405 # An echo program that does not interpret backslashes.
22406 echo=$lt_echo
22408 # The archiver.
22409 AR=$lt_AR
22410 AR_FLAGS=$lt_AR_FLAGS
22412 # A C compiler.
22413 LTCC=$lt_LTCC
22415 # LTCC compiler flags.
22416 LTCFLAGS=$lt_LTCFLAGS
22418 # A language-specific compiler.
22419 CC=$lt_compiler_RC
22421 # Is the compiler the GNU C compiler?
22422 with_gcc=$GCC_RC
22424 # An ERE matcher.
22425 EGREP=$lt_EGREP
22427 # The linker used to build libraries.
22428 LD=$lt_LD_RC
22430 # Whether we need hard or soft links.
22431 LN_S=$lt_LN_S
22433 # A BSD-compatible nm program.
22434 NM=$lt_NM
22436 # A symbol stripping program
22437 STRIP=$lt_STRIP
22439 # Used to examine libraries when file_magic_cmd begins "file"
22440 MAGIC_CMD=$MAGIC_CMD
22442 # Used on cygwin: DLL creation program.
22443 DLLTOOL="$DLLTOOL"
22445 # Used on cygwin: object dumper.
22446 OBJDUMP="$OBJDUMP"
22448 # Used on cygwin: assembler.
22449 AS="$AS"
22451 # The name of the directory that contains temporary libtool files.
22452 objdir=$objdir
22454 # How to create reloadable object files.
22455 reload_flag=$lt_reload_flag
22456 reload_cmds=$lt_reload_cmds
22458 # How to pass a linker flag through the compiler.
22459 wl=$lt_lt_prog_compiler_wl_RC
22461 # Object file suffix (normally "o").
22462 objext="$ac_objext"
22464 # Old archive suffix (normally "a").
22465 libext="$libext"
22467 # Shared library suffix (normally ".so").
22468 shrext_cmds='$shrext_cmds'
22470 # Executable file suffix (normally "").
22471 exeext="$exeext"
22473 # Additional compiler flags for building library objects.
22474 pic_flag=$lt_lt_prog_compiler_pic_RC
22475 pic_mode=$pic_mode
22477 # What is the maximum length of a command?
22478 max_cmd_len=$lt_cv_sys_max_cmd_len
22480 # Does compiler simultaneously support -c and -o options?
22481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22483 # Must we lock files when doing compilation?
22484 need_locks=$lt_need_locks
22486 # Do we need the lib prefix for modules?
22487 need_lib_prefix=$need_lib_prefix
22489 # Do we need a version for libraries?
22490 need_version=$need_version
22492 # Whether dlopen is supported.
22493 dlopen_support=$enable_dlopen
22495 # Whether dlopen of programs is supported.
22496 dlopen_self=$enable_dlopen_self
22498 # Whether dlopen of statically linked programs is supported.
22499 dlopen_self_static=$enable_dlopen_self_static
22501 # Compiler flag to prevent dynamic linking.
22502 link_static_flag=$lt_lt_prog_compiler_static_RC
22504 # Compiler flag to turn off builtin functions.
22505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22507 # Compiler flag to allow reflexive dlopens.
22508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22510 # Compiler flag to generate shared objects directly from archives.
22511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22513 # Compiler flag to generate thread-safe objects.
22514 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22516 # Library versioning type.
22517 version_type=$version_type
22519 # Format of library name prefix.
22520 libname_spec=$lt_libname_spec
22522 # List of archive names. First name is the real one, the rest are links.
22523 # The last name is the one that the linker finds with -lNAME.
22524 library_names_spec=$lt_library_names_spec
22526 # The coded name of the library, if different from the real name.
22527 soname_spec=$lt_soname_spec
22529 # Commands used to build and install an old-style archive.
22530 RANLIB=$lt_RANLIB
22531 old_archive_cmds=$lt_old_archive_cmds_RC
22532 old_postinstall_cmds=$lt_old_postinstall_cmds
22533 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22535 # Create an old-style archive from a shared archive.
22536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22538 # Create a temporary old-style archive to link instead of a shared archive.
22539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22541 # Commands used to build and install a shared archive.
22542 archive_cmds=$lt_archive_cmds_RC
22543 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22544 postinstall_cmds=$lt_postinstall_cmds
22545 postuninstall_cmds=$lt_postuninstall_cmds
22547 # Commands used to build a loadable module (assumed same as above if empty)
22548 module_cmds=$lt_module_cmds_RC
22549 module_expsym_cmds=$lt_module_expsym_cmds_RC
22551 # Commands to strip libraries.
22552 old_striplib=$lt_old_striplib
22553 striplib=$lt_striplib
22555 # Dependencies to place before the objects being linked to create a
22556 # shared library.
22557 predep_objects=$lt_predep_objects_RC
22559 # Dependencies to place after the objects being linked to create a
22560 # shared library.
22561 postdep_objects=$lt_postdep_objects_RC
22563 # Dependencies to place before the objects being linked to create a
22564 # shared library.
22565 predeps=$lt_predeps_RC
22567 # Dependencies to place after the objects being linked to create a
22568 # shared library.
22569 postdeps=$lt_postdeps_RC
22571 # The directories searched by this compiler when creating a shared
22572 # library
22573 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22575 # The library search path used internally by the compiler when linking
22576 # a shared library.
22577 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22579 # Method to check whether dependent libraries are shared objects.
22580 deplibs_check_method=$lt_deplibs_check_method
22582 # Command to use when deplibs_check_method == file_magic.
22583 file_magic_cmd=$lt_file_magic_cmd
22585 # Flag that allows shared libraries with undefined symbols to be built.
22586 allow_undefined_flag=$lt_allow_undefined_flag_RC
22588 # Flag that forces no undefined symbols.
22589 no_undefined_flag=$lt_no_undefined_flag_RC
22591 # Commands used to finish a libtool library installation in a directory.
22592 finish_cmds=$lt_finish_cmds
22594 # Same as above, but a single script fragment to be evaled but not shown.
22595 finish_eval=$lt_finish_eval
22597 # Take the output of nm and produce a listing of raw symbols and C names.
22598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22600 # Transform the output of nm in a proper C declaration
22601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22603 # Transform the output of nm in a C name address pair
22604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22606 # This is the shared library runtime path variable.
22607 runpath_var=$runpath_var
22609 # This is the shared library path variable.
22610 shlibpath_var=$shlibpath_var
22612 # Is shlibpath searched before the hard-coded library search path?
22613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22615 # How to hardcode a shared library path into an executable.
22616 hardcode_action=$hardcode_action_RC
22618 # Whether we should hardcode library paths into libraries.
22619 hardcode_into_libs=$hardcode_into_libs
22621 # Flag to hardcode \$libdir into a binary during linking.
22622 # This must work even if \$libdir does not exist.
22623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22625 # If ld is used when linking, flag to hardcode \$libdir into
22626 # a binary during linking. This must work even if \$libdir does
22627 # not exist.
22628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22630 # Whether we need a single -rpath flag with a separated argument.
22631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22634 # resulting binary.
22635 hardcode_direct=$hardcode_direct_RC
22637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22638 # resulting binary.
22639 hardcode_minus_L=$hardcode_minus_L_RC
22641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22642 # the resulting binary.
22643 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22645 # Set to yes if building a shared library automatically hardcodes DIR into the library
22646 # and all subsequent libraries and executables linked against it.
22647 hardcode_automatic=$hardcode_automatic_RC
22649 # Variables whose values should be saved in libtool wrapper scripts and
22650 # restored at relink time.
22651 variables_saved_for_relink="$variables_saved_for_relink"
22653 # Whether libtool must link a program against all its dependency libraries.
22654 link_all_deplibs=$link_all_deplibs_RC
22656 # Compile-time system search path for libraries
22657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22659 # Run-time system search path for libraries
22660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22662 # Fix the shell variable \$srcfile for the compiler.
22663 fix_srcfile_path=$lt_fix_srcfile_path
22665 # Set to yes if exported symbols are required.
22666 always_export_symbols=$always_export_symbols_RC
22668 # The commands to list exported symbols.
22669 export_symbols_cmds=$lt_export_symbols_cmds_RC
22671 # The commands to extract the exported symbol list from a shared archive.
22672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22674 # Symbols that should not be listed in the preloaded symbols.
22675 exclude_expsyms=$lt_exclude_expsyms_RC
22677 # Symbols that must always be exported.
22678 include_expsyms=$lt_include_expsyms_RC
22680 # ### END LIBTOOL TAG CONFIG: $tagname
22682 __EOF__
22685 else
22686 # If there is no Makefile yet, we rely on a make rule to execute
22687 # `config.status --recheck' to rerun these tests and create the
22688 # libtool script then.
22689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22690 if test -f "$ltmain_in"; then
22691 test -f Makefile && make "$ltmain"
22696 ac_ext=c
22697 ac_cpp='$CPP $CPPFLAGS'
22698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22702 CC="$lt_save_CC"
22707 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22708 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22709 { (exit 1); exit 1; }; }
22711 esac
22713 # Append the new tag name to the list of available tags.
22714 if test -n "$tagname" ; then
22715 available_tags="$available_tags $tagname"
22718 done
22719 IFS="$lt_save_ifs"
22721 # Now substitute the updated list of available tags.
22722 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22723 mv "${ofile}T" "$ofile"
22724 chmod +x "$ofile"
22725 else
22726 rm -f "${ofile}T"
22727 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22728 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22729 { (exit 1); exit 1; }; }
22735 # This can be used to rebuild libtool when needed
22736 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22738 # Always use our own libtool.
22739 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22741 # Prevent multiple expansion
22763 ac_ext=cpp
22764 ac_cpp='$CXXCPP $CPPFLAGS'
22765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22772 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22773 if test -n "$ac_tool_prefix"; then
22774 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22775 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22778 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781 case $PKG_CONFIG in
22782 [\\/]* | ?:[\\/]*)
22783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22787 for as_dir in $PATH
22789 IFS=$as_save_IFS
22790 test -z "$as_dir" && as_dir=.
22791 for ac_exec_ext in '' $ac_executable_extensions; do
22792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22795 break 2
22797 done
22798 done
22799 IFS=$as_save_IFS
22802 esac
22804 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22805 if test -n "$PKG_CONFIG"; then
22806 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22807 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22808 else
22809 { echo "$as_me:$LINENO: result: no" >&5
22810 echo "${ECHO_T}no" >&6; }
22815 if test -z "$ac_cv_path_PKG_CONFIG"; then
22816 ac_pt_PKG_CONFIG=$PKG_CONFIG
22817 # Extract the first word of "pkg-config", so it can be a program name with args.
22818 set dummy pkg-config; ac_word=$2
22819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22821 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824 case $ac_pt_PKG_CONFIG in
22825 [\\/]* | ?:[\\/]*)
22826 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22830 for as_dir in $PATH
22832 IFS=$as_save_IFS
22833 test -z "$as_dir" && as_dir=.
22834 for ac_exec_ext in '' $ac_executable_extensions; do
22835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22838 break 2
22840 done
22841 done
22842 IFS=$as_save_IFS
22845 esac
22847 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22848 if test -n "$ac_pt_PKG_CONFIG"; then
22849 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22850 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22851 else
22852 { echo "$as_me:$LINENO: result: no" >&5
22853 echo "${ECHO_T}no" >&6; }
22856 if test "x$ac_pt_PKG_CONFIG" = x; then
22857 PKG_CONFIG=""
22858 else
22859 case $cross_compiling:$ac_tool_warned in
22860 yes:)
22861 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22862 whose name does not start with the host triplet. If you think this
22863 configuration is useful to you, please write to autoconf@gnu.org." >&5
22864 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22865 whose name does not start with the host triplet. If you think this
22866 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22867 ac_tool_warned=yes ;;
22868 esac
22869 PKG_CONFIG=$ac_pt_PKG_CONFIG
22871 else
22872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22876 if test -n "$PKG_CONFIG"; then
22877 _pkg_min_version=0.9.0
22878 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22879 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22880 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22881 { echo "$as_me:$LINENO: result: yes" >&5
22882 echo "${ECHO_T}yes" >&6; }
22883 else
22884 { echo "$as_me:$LINENO: result: no" >&5
22885 echo "${ECHO_T}no" >&6; }
22886 PKG_CONFIG=""
22891 pkg_failed=no
22892 { echo "$as_me:$LINENO: checking for BARRY" >&5
22893 echo $ECHO_N "checking for BARRY... $ECHO_C" >&6; }
22895 if test -n "$PKG_CONFIG"; then
22896 if test -n "$BARRY_CFLAGS"; then
22897 pkg_cv_BARRY_CFLAGS="$BARRY_CFLAGS"
22898 else
22899 if test -n "$PKG_CONFIG" && \
22900 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0\"") >&5
22901 ($PKG_CONFIG --exists --print-errors "libbarry-0") 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; then
22905 pkg_cv_BARRY_CFLAGS=`$PKG_CONFIG --cflags "libbarry-0" 2>/dev/null`
22906 else
22907 pkg_failed=yes
22910 else
22911 pkg_failed=untried
22913 if test -n "$PKG_CONFIG"; then
22914 if test -n "$BARRY_LIBS"; then
22915 pkg_cv_BARRY_LIBS="$BARRY_LIBS"
22916 else
22917 if test -n "$PKG_CONFIG" && \
22918 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0\"") >&5
22919 ($PKG_CONFIG --exists --print-errors "libbarry-0") 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; then
22923 pkg_cv_BARRY_LIBS=`$PKG_CONFIG --libs "libbarry-0" 2>/dev/null`
22924 else
22925 pkg_failed=yes
22928 else
22929 pkg_failed=untried
22934 if test $pkg_failed = yes; then
22936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22937 _pkg_short_errors_supported=yes
22938 else
22939 _pkg_short_errors_supported=no
22941 if test $_pkg_short_errors_supported = yes; then
22942 BARRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarry-0"`
22943 else
22944 BARRY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarry-0"`
22946 # Put the nasty error message in config.log where it belongs
22947 echo "$BARRY_PKG_ERRORS" >&5
22949 { { echo "$as_me:$LINENO: error: Package requirements (libbarry-0) were not met:
22951 $BARRY_PKG_ERRORS
22953 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22954 installed software in a non-standard prefix.
22956 Alternatively, you may set the environment variables BARRY_CFLAGS
22957 and BARRY_LIBS to avoid the need to call pkg-config.
22958 See the pkg-config man page for more details.
22959 " >&5
22960 echo "$as_me: error: Package requirements (libbarry-0) were not met:
22962 $BARRY_PKG_ERRORS
22964 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22965 installed software in a non-standard prefix.
22967 Alternatively, you may set the environment variables BARRY_CFLAGS
22968 and BARRY_LIBS to avoid the need to call pkg-config.
22969 See the pkg-config man page for more details.
22970 " >&2;}
22971 { (exit 1); exit 1; }; }
22972 elif test $pkg_failed = untried; then
22973 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22974 is in your PATH or set the PKG_CONFIG environment variable to the full
22975 path to pkg-config.
22977 Alternatively, you may set the environment variables BARRY_CFLAGS
22978 and BARRY_LIBS to avoid the need to call pkg-config.
22979 See the pkg-config man page for more details.
22981 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22982 See \`config.log' for more details." >&5
22983 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22984 is in your PATH or set the PKG_CONFIG environment variable to the full
22985 path to pkg-config.
22987 Alternatively, you may set the environment variables BARRY_CFLAGS
22988 and BARRY_LIBS to avoid the need to call pkg-config.
22989 See the pkg-config man page for more details.
22991 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22992 See \`config.log' for more details." >&2;}
22993 { (exit 1); exit 1; }; }
22994 else
22995 BARRY_CFLAGS=$pkg_cv_BARRY_CFLAGS
22996 BARRY_LIBS=$pkg_cv_BARRY_LIBS
22997 { echo "$as_me:$LINENO: result: yes" >&5
22998 echo "${ECHO_T}yes" >&6; }
23002 pkg_failed=no
23003 { echo "$as_me:$LINENO: checking for BARRYBACKUP" >&5
23004 echo $ECHO_N "checking for BARRYBACKUP... $ECHO_C" >&6; }
23006 if test -n "$PKG_CONFIG"; then
23007 if test -n "$BARRYBACKUP_CFLAGS"; then
23008 pkg_cv_BARRYBACKUP_CFLAGS="$BARRYBACKUP_CFLAGS"
23009 else
23010 if test -n "$PKG_CONFIG" && \
23011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarrybackup-0\"") >&5
23012 ($PKG_CONFIG --exists --print-errors "libbarrybackup-0") 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; then
23016 pkg_cv_BARRYBACKUP_CFLAGS=`$PKG_CONFIG --cflags "libbarrybackup-0" 2>/dev/null`
23017 else
23018 pkg_failed=yes
23021 else
23022 pkg_failed=untried
23024 if test -n "$PKG_CONFIG"; then
23025 if test -n "$BARRYBACKUP_LIBS"; then
23026 pkg_cv_BARRYBACKUP_LIBS="$BARRYBACKUP_LIBS"
23027 else
23028 if test -n "$PKG_CONFIG" && \
23029 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarrybackup-0\"") >&5
23030 ($PKG_CONFIG --exists --print-errors "libbarrybackup-0") 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; then
23034 pkg_cv_BARRYBACKUP_LIBS=`$PKG_CONFIG --libs "libbarrybackup-0" 2>/dev/null`
23035 else
23036 pkg_failed=yes
23039 else
23040 pkg_failed=untried
23045 if test $pkg_failed = yes; then
23047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23048 _pkg_short_errors_supported=yes
23049 else
23050 _pkg_short_errors_supported=no
23052 if test $_pkg_short_errors_supported = yes; then
23053 BARRYBACKUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarrybackup-0"`
23054 else
23055 BARRYBACKUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarrybackup-0"`
23057 # Put the nasty error message in config.log where it belongs
23058 echo "$BARRYBACKUP_PKG_ERRORS" >&5
23060 { { echo "$as_me:$LINENO: error: Package requirements (libbarrybackup-0) were not met:
23062 $BARRYBACKUP_PKG_ERRORS
23064 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23065 installed software in a non-standard prefix.
23067 Alternatively, you may set the environment variables BARRYBACKUP_CFLAGS
23068 and BARRYBACKUP_LIBS to avoid the need to call pkg-config.
23069 See the pkg-config man page for more details.
23070 " >&5
23071 echo "$as_me: error: Package requirements (libbarrybackup-0) were not met:
23073 $BARRYBACKUP_PKG_ERRORS
23075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23076 installed software in a non-standard prefix.
23078 Alternatively, you may set the environment variables BARRYBACKUP_CFLAGS
23079 and BARRYBACKUP_LIBS to avoid the need to call pkg-config.
23080 See the pkg-config man page for more details.
23081 " >&2;}
23082 { (exit 1); exit 1; }; }
23083 elif test $pkg_failed = untried; then
23084 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23085 is in your PATH or set the PKG_CONFIG environment variable to the full
23086 path to pkg-config.
23088 Alternatively, you may set the environment variables BARRYBACKUP_CFLAGS
23089 and BARRYBACKUP_LIBS to avoid the need to call pkg-config.
23090 See the pkg-config man page for more details.
23092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23093 See \`config.log' for more details." >&5
23094 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23095 is in your PATH or set the PKG_CONFIG environment variable to the full
23096 path to pkg-config.
23098 Alternatively, you may set the environment variables BARRYBACKUP_CFLAGS
23099 and BARRYBACKUP_LIBS to avoid the need to call pkg-config.
23100 See the pkg-config man page for more details.
23102 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23103 See \`config.log' for more details." >&2;}
23104 { (exit 1); exit 1; }; }
23105 else
23106 BARRYBACKUP_CFLAGS=$pkg_cv_BARRYBACKUP_CFLAGS
23107 BARRYBACKUP_LIBS=$pkg_cv_BARRYBACKUP_LIBS
23108 { echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6; }
23113 pkg_failed=no
23114 { echo "$as_me:$LINENO: checking for GTKMM" >&5
23115 echo $ECHO_N "checking for GTKMM... $ECHO_C" >&6; }
23117 if test -n "$PKG_CONFIG"; then
23118 if test -n "$GTKMM_CFLAGS"; then
23119 pkg_cv_GTKMM_CFLAGS="$GTKMM_CFLAGS"
23120 else
23121 if test -n "$PKG_CONFIG" && \
23122 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 libglademm-2.4 gthread-2.0\"") >&5
23123 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0") 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; then
23127 pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 libglademm-2.4 gthread-2.0" 2>/dev/null`
23128 else
23129 pkg_failed=yes
23132 else
23133 pkg_failed=untried
23135 if test -n "$PKG_CONFIG"; then
23136 if test -n "$GTKMM_LIBS"; then
23137 pkg_cv_GTKMM_LIBS="$GTKMM_LIBS"
23138 else
23139 if test -n "$PKG_CONFIG" && \
23140 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 libglademm-2.4 gthread-2.0\"") >&5
23141 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0") 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; then
23145 pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 libglademm-2.4 gthread-2.0" 2>/dev/null`
23146 else
23147 pkg_failed=yes
23150 else
23151 pkg_failed=untried
23156 if test $pkg_failed = yes; then
23158 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23159 _pkg_short_errors_supported=yes
23160 else
23161 _pkg_short_errors_supported=no
23163 if test $_pkg_short_errors_supported = yes; then
23164 GTKMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0"`
23165 else
23166 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0"`
23168 # Put the nasty error message in config.log where it belongs
23169 echo "$GTKMM_PKG_ERRORS" >&5
23171 { { echo "$as_me:$LINENO: error: Package requirements (gtkmm-2.4 libglademm-2.4 gthread-2.0) were not met:
23173 $GTKMM_PKG_ERRORS
23175 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23176 installed software in a non-standard prefix.
23178 Alternatively, you may set the environment variables GTKMM_CFLAGS
23179 and GTKMM_LIBS to avoid the need to call pkg-config.
23180 See the pkg-config man page for more details.
23181 " >&5
23182 echo "$as_me: error: Package requirements (gtkmm-2.4 libglademm-2.4 gthread-2.0) were not met:
23184 $GTKMM_PKG_ERRORS
23186 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23187 installed software in a non-standard prefix.
23189 Alternatively, you may set the environment variables GTKMM_CFLAGS
23190 and GTKMM_LIBS to avoid the need to call pkg-config.
23191 See the pkg-config man page for more details.
23192 " >&2;}
23193 { (exit 1); exit 1; }; }
23194 elif test $pkg_failed = untried; then
23195 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23196 is in your PATH or set the PKG_CONFIG environment variable to the full
23197 path to pkg-config.
23199 Alternatively, you may set the environment variables GTKMM_CFLAGS
23200 and GTKMM_LIBS to avoid the need to call pkg-config.
23201 See the pkg-config man page for more details.
23203 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23204 See \`config.log' for more details." >&5
23205 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23206 is in your PATH or set the PKG_CONFIG environment variable to the full
23207 path to pkg-config.
23209 Alternatively, you may set the environment variables GTKMM_CFLAGS
23210 and GTKMM_LIBS to avoid the need to call pkg-config.
23211 See the pkg-config man page for more details.
23213 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23214 See \`config.log' for more details." >&2;}
23215 { (exit 1); exit 1; }; }
23216 else
23217 GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
23218 GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
23219 { echo "$as_me:$LINENO: result: yes" >&5
23220 echo "${ECHO_T}yes" >&6; }
23224 # Carry the special tree build environment variables from parent configure,
23225 # just in case user is doing a complete tree build with --enable-gui
23229 # Setup gladedir, so src/Makefile.am can use it for the compile
23230 # and for the glade file installations. (glade_DATA)
23231 gladedir="$datadir/barry/glade/"
23234 # Checks for libraries.
23235 #AC_CHECK_LIB([IOKit], [main])
23237 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
23238 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
23239 if test "${ac_cv_lib_pthread_main+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242 ac_check_lib_save_LIBS=$LIBS
23243 LIBS="-lpthread $LIBS"
23244 cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h. */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23253 main ()
23255 return main ();
23257 return 0;
23259 _ACEOF
23260 rm -f conftest.$ac_objext conftest$ac_exeext
23261 if { (ac_try="$ac_link"
23262 case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23265 esac
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267 (eval "$ac_link") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_cxx_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest$ac_exeext &&
23277 $as_test_x conftest$ac_exeext; then
23278 ac_cv_lib_pthread_main=yes
23279 else
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_lib_pthread_main=no
23286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23287 conftest$ac_exeext conftest.$ac_ext
23288 LIBS=$ac_check_lib_save_LIBS
23290 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
23291 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
23292 if test $ac_cv_lib_pthread_main = yes; then
23293 cat >>confdefs.h <<_ACEOF
23294 #define HAVE_LIBPTHREAD 1
23295 _ACEOF
23297 LIBS="-lpthread $LIBS"
23301 #AC_CHECK_LIB([libusb], [libusb_init])
23303 # Checks for header files.
23309 ac_header_dirent=no
23310 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23312 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23313 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h. */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <sys/types.h>
23324 #include <$ac_hdr>
23327 main ()
23329 if ((DIR *) 0)
23330 return 0;
23332 return 0;
23334 _ACEOF
23335 rm -f conftest.$ac_objext
23336 if { (ac_try="$ac_compile"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_compile") 2>conftest.er1
23343 ac_status=$?
23344 grep -v '^ *+' conftest.er1 >conftest.err
23345 rm -f conftest.er1
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_cxx_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest.$ac_objext; then
23352 eval "$as_ac_Header=yes"
23353 else
23354 echo "$as_me: failed program was:" >&5
23355 sed 's/^/| /' conftest.$ac_ext >&5
23357 eval "$as_ac_Header=no"
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 ac_res=`eval echo '${'$as_ac_Header'}'`
23363 { echo "$as_me:$LINENO: result: $ac_res" >&5
23364 echo "${ECHO_T}$ac_res" >&6; }
23365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23366 cat >>confdefs.h <<_ACEOF
23367 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23368 _ACEOF
23370 ac_header_dirent=$ac_hdr; break
23373 done
23374 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23375 if test $ac_header_dirent = dirent.h; then
23376 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23377 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23378 if test "${ac_cv_search_opendir+set}" = set; then
23379 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381 ac_func_search_save_LIBS=$LIBS
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h. */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23389 /* Override any GCC internal prototype to avoid an error.
23390 Use char because int might match the return type of a GCC
23391 builtin and then its argument prototype would still apply. */
23392 #ifdef __cplusplus
23393 extern "C"
23394 #endif
23395 char opendir ();
23397 main ()
23399 return opendir ();
23401 return 0;
23403 _ACEOF
23404 for ac_lib in '' dir; do
23405 if test -z "$ac_lib"; then
23406 ac_res="none required"
23407 else
23408 ac_res=-l$ac_lib
23409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23411 rm -f conftest.$ac_objext conftest$ac_exeext
23412 if { (ac_try="$ac_link"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_link") 2>conftest.er1
23419 ac_status=$?
23420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_cxx_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest$ac_exeext &&
23428 $as_test_x conftest$ac_exeext; then
23429 ac_cv_search_opendir=$ac_res
23430 else
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23438 conftest$ac_exeext
23439 if test "${ac_cv_search_opendir+set}" = set; then
23440 break
23442 done
23443 if test "${ac_cv_search_opendir+set}" = set; then
23445 else
23446 ac_cv_search_opendir=no
23448 rm conftest.$ac_ext
23449 LIBS=$ac_func_search_save_LIBS
23451 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23452 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23453 ac_res=$ac_cv_search_opendir
23454 if test "$ac_res" != no; then
23455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23459 else
23460 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23461 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23462 if test "${ac_cv_search_opendir+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464 else
23465 ac_func_search_save_LIBS=$LIBS
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h. */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23473 /* Override any GCC internal prototype to avoid an error.
23474 Use char because int might match the return type of a GCC
23475 builtin and then its argument prototype would still apply. */
23476 #ifdef __cplusplus
23477 extern "C"
23478 #endif
23479 char opendir ();
23481 main ()
23483 return opendir ();
23485 return 0;
23487 _ACEOF
23488 for ac_lib in '' x; do
23489 if test -z "$ac_lib"; then
23490 ac_res="none required"
23491 else
23492 ac_res=-l$ac_lib
23493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23495 rm -f conftest.$ac_objext conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_link") 2>conftest.er1
23503 ac_status=$?
23504 grep -v '^ *+' conftest.er1 >conftest.err
23505 rm -f conftest.er1
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } && {
23509 test -z "$ac_cxx_werror_flag" ||
23510 test ! -s conftest.err
23511 } && test -s conftest$ac_exeext &&
23512 $as_test_x conftest$ac_exeext; then
23513 ac_cv_search_opendir=$ac_res
23514 else
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23522 conftest$ac_exeext
23523 if test "${ac_cv_search_opendir+set}" = set; then
23524 break
23526 done
23527 if test "${ac_cv_search_opendir+set}" = set; then
23529 else
23530 ac_cv_search_opendir=no
23532 rm conftest.$ac_ext
23533 LIBS=$ac_func_search_save_LIBS
23535 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23536 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23537 ac_res=$ac_cv_search_opendir
23538 if test "$ac_res" != no; then
23539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23546 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23548 if test "${ac_cv_header_stdc+set}" = set; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551 cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h. */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 #include <stdlib.h>
23558 #include <stdarg.h>
23559 #include <string.h>
23560 #include <float.h>
23563 main ()
23567 return 0;
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_cxx_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 ac_cv_header_stdc=yes
23588 else
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ac_cv_header_stdc=no
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 if test $ac_cv_header_stdc = yes; then
23598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h. */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 #include <string.h>
23607 _ACEOF
23608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23609 $EGREP "memchr" >/dev/null 2>&1; then
23611 else
23612 ac_cv_header_stdc=no
23614 rm -f conftest*
23618 if test $ac_cv_header_stdc = yes; then
23619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23620 cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h. */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 #include <stdlib.h>
23628 _ACEOF
23629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23630 $EGREP "free" >/dev/null 2>&1; then
23632 else
23633 ac_cv_header_stdc=no
23635 rm -f conftest*
23639 if test $ac_cv_header_stdc = yes; then
23640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23641 if test "$cross_compiling" = yes; then
23643 else
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h. */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23650 #include <ctype.h>
23651 #include <stdlib.h>
23652 #if ((' ' & 0x0FF) == 0x020)
23653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23655 #else
23656 # define ISLOWER(c) \
23657 (('a' <= (c) && (c) <= 'i') \
23658 || ('j' <= (c) && (c) <= 'r') \
23659 || ('s' <= (c) && (c) <= 'z'))
23660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23661 #endif
23663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23665 main ()
23667 int i;
23668 for (i = 0; i < 256; i++)
23669 if (XOR (islower (i), ISLOWER (i))
23670 || toupper (i) != TOUPPER (i))
23671 return 2;
23672 return 0;
23674 _ACEOF
23675 rm -f conftest$ac_exeext
23676 if { (ac_try="$ac_link"
23677 case "(($ac_try" in
23678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679 *) ac_try_echo=$ac_try;;
23680 esac
23681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682 (eval "$ac_link") 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23686 { (case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691 (eval "$ac_try") 2>&5
23692 ac_status=$?
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); }; }; then
23696 else
23697 echo "$as_me: program exited with status $ac_status" >&5
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 ( exit $ac_status )
23702 ac_cv_header_stdc=no
23704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23710 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23711 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23712 if test $ac_cv_header_stdc = yes; then
23714 cat >>confdefs.h <<\_ACEOF
23715 #define STDC_HEADERS 1
23716 _ACEOF
23723 for ac_header in assert.h stdint.h time.h
23725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 ac_res=`eval echo '${'$as_ac_Header'}'`
23733 { echo "$as_me:$LINENO: result: $ac_res" >&5
23734 echo "${ECHO_T}$ac_res" >&6; }
23735 else
23736 # Is the header compilable?
23737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h. */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 $ac_includes_default
23746 #include <$ac_header>
23747 _ACEOF
23748 rm -f conftest.$ac_objext
23749 if { (ac_try="$ac_compile"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755 (eval "$ac_compile") 2>conftest.er1
23756 ac_status=$?
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } && {
23762 test -z "$ac_cxx_werror_flag" ||
23763 test ! -s conftest.err
23764 } && test -s conftest.$ac_objext; then
23765 ac_header_compiler=yes
23766 else
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 ac_header_compiler=no
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23775 echo "${ECHO_T}$ac_header_compiler" >&6; }
23777 # Is the header present?
23778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h. */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23786 #include <$ac_header>
23787 _ACEOF
23788 if { (ac_try="$ac_cpp conftest.$ac_ext"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23792 esac
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23795 ac_status=$?
23796 grep -v '^ *+' conftest.er1 >conftest.err
23797 rm -f conftest.er1
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } >/dev/null && {
23801 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23802 test ! -s conftest.err
23803 }; then
23804 ac_header_preproc=yes
23805 else
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23809 ac_header_preproc=no
23812 rm -f conftest.err conftest.$ac_ext
23813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23814 echo "${ECHO_T}$ac_header_preproc" >&6; }
23816 # So? What about this header?
23817 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23818 yes:no: )
23819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23823 ac_header_preproc=yes
23825 no:yes:* )
23826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23838 ( cat <<\_ASBOX
23839 ## ------------------------------------------------ ##
23840 ## Report this to barry-devel@lists.sourceforge.net ##
23841 ## ------------------------------------------------ ##
23842 _ASBOX
23843 ) | sed "s/^/$as_me: WARNING: /" >&2
23845 esac
23846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 else
23851 eval "$as_ac_Header=\$ac_header_preproc"
23853 ac_res=`eval echo '${'$as_ac_Header'}'`
23854 { echo "$as_me:$LINENO: result: $ac_res" >&5
23855 echo "${ECHO_T}$ac_res" >&6; }
23858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23861 _ACEOF
23865 done
23868 # Checks for typedefs, structures, and compiler characteristics.
23869 #AC_TYPE_SIZE_T
23870 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23872 if test "${ac_cv_header_time+set}" = set; then
23873 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 else
23875 cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h. */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23881 #include <sys/types.h>
23882 #include <sys/time.h>
23883 #include <time.h>
23886 main ()
23888 if ((struct tm *) 0)
23889 return 0;
23891 return 0;
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_cxx_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest.$ac_objext; then
23911 ac_cv_header_time=yes
23912 else
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23916 ac_cv_header_time=no
23919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23922 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23923 if test $ac_cv_header_time = yes; then
23925 cat >>confdefs.h <<\_ACEOF
23926 #define TIME_WITH_SYS_TIME 1
23927 _ACEOF
23931 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23932 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23933 if test "${ac_cv_struct_tm+set}" = set; then
23934 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936 cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h. */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23942 #include <sys/types.h>
23943 #include <time.h>
23946 main ()
23948 struct tm tm;
23949 int *p = &tm.tm_sec;
23950 return !p;
23952 return 0;
23954 _ACEOF
23955 rm -f conftest.$ac_objext
23956 if { (ac_try="$ac_compile"
23957 case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23960 esac
23961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962 (eval "$ac_compile") 2>conftest.er1
23963 ac_status=$?
23964 grep -v '^ *+' conftest.er1 >conftest.err
23965 rm -f conftest.er1
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } && {
23969 test -z "$ac_cxx_werror_flag" ||
23970 test ! -s conftest.err
23971 } && test -s conftest.$ac_objext; then
23972 ac_cv_struct_tm=time.h
23973 else
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23977 ac_cv_struct_tm=sys/time.h
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23983 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23984 if test $ac_cv_struct_tm = sys/time.h; then
23986 cat >>confdefs.h <<\_ACEOF
23987 #define TM_IN_SYS_TIME 1
23988 _ACEOF
23993 # Checks for library functions.
23994 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23995 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
23996 if test "${ac_cv_func_closedir_void+set}" = set; then
23997 echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999 if test "$cross_compiling" = yes; then
24000 ac_cv_func_closedir_void=yes
24001 else
24002 cat >conftest.$ac_ext <<_ACEOF
24003 /* confdefs.h. */
24004 _ACEOF
24005 cat confdefs.h >>conftest.$ac_ext
24006 cat >>conftest.$ac_ext <<_ACEOF
24007 /* end confdefs.h. */
24008 $ac_includes_default
24009 #include <$ac_header_dirent>
24010 #ifndef __cplusplus
24011 int closedir ();
24012 #endif
24015 main ()
24017 return closedir (opendir (".")) != 0;
24019 return 0;
24021 _ACEOF
24022 rm -f conftest$ac_exeext
24023 if { (ac_try="$ac_link"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_link") 2>&5
24030 ac_status=$?
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24033 { (case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24036 esac
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_try") 2>&5
24039 ac_status=$?
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; }; then
24042 ac_cv_func_closedir_void=no
24043 else
24044 echo "$as_me: program exited with status $ac_status" >&5
24045 echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ( exit $ac_status )
24049 ac_cv_func_closedir_void=yes
24051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24056 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24057 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24058 if test $ac_cv_func_closedir_void = yes; then
24060 cat >>confdefs.h <<\_ACEOF
24061 #define CLOSEDIR_VOID 1
24062 _ACEOF
24066 if test $ac_cv_c_compiler_gnu = yes; then
24067 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24068 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
24069 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072 ac_pattern="Autoconf.*'x'"
24073 cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h. */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24079 #include <sgtty.h>
24080 Autoconf TIOCGETP
24081 _ACEOF
24082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24083 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24084 ac_cv_prog_gcc_traditional=yes
24085 else
24086 ac_cv_prog_gcc_traditional=no
24088 rm -f conftest*
24091 if test $ac_cv_prog_gcc_traditional = no; then
24092 cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h. */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h. */
24098 #include <termio.h>
24099 Autoconf TCGETA
24100 _ACEOF
24101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24102 $EGREP "$ac_pattern" >/dev/null 2>&1; then
24103 ac_cv_prog_gcc_traditional=yes
24105 rm -f conftest*
24109 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24110 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
24111 if test $ac_cv_prog_gcc_traditional = yes; then
24112 CC="$CC -traditional"
24117 for ac_header in stdlib.h
24119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 ac_res=`eval echo '${'$as_ac_Header'}'`
24127 { echo "$as_me:$LINENO: result: $ac_res" >&5
24128 echo "${ECHO_T}$ac_res" >&6; }
24129 else
24130 # Is the header compilable?
24131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h. */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24140 #include <$ac_header>
24141 _ACEOF
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_compile") 2>conftest.er1
24150 ac_status=$?
24151 grep -v '^ *+' conftest.er1 >conftest.err
24152 rm -f conftest.er1
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_cxx_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest.$ac_objext; then
24159 ac_header_compiler=yes
24160 else
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 ac_header_compiler=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24169 echo "${ECHO_T}$ac_header_compiler" >&6; }
24171 # Is the header present?
24172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24174 cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h. */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 #include <$ac_header>
24181 _ACEOF
24182 if { (ac_try="$ac_cpp conftest.$ac_ext"
24183 case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } >/dev/null && {
24195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24196 test ! -s conftest.err
24197 }; then
24198 ac_header_preproc=yes
24199 else
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_header_preproc=no
24206 rm -f conftest.err conftest.$ac_ext
24207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24208 echo "${ECHO_T}$ac_header_preproc" >&6; }
24210 # So? What about this header?
24211 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24212 yes:no: )
24213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24217 ac_header_preproc=yes
24219 no:yes:* )
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24232 ( cat <<\_ASBOX
24233 ## ------------------------------------------------ ##
24234 ## Report this to barry-devel@lists.sourceforge.net ##
24235 ## ------------------------------------------------ ##
24236 _ASBOX
24237 ) | sed "s/^/$as_me: WARNING: /" >&2
24239 esac
24240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245 eval "$as_ac_Header=\$ac_header_preproc"
24247 ac_res=`eval echo '${'$as_ac_Header'}'`
24248 { echo "$as_me:$LINENO: result: $ac_res" >&5
24249 echo "${ECHO_T}$ac_res" >&6; }
24252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24253 cat >>confdefs.h <<_ACEOF
24254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24255 _ACEOF
24259 done
24261 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
24262 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
24263 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 else
24266 if test "$cross_compiling" = yes; then
24267 ac_cv_func_malloc_0_nonnull=no
24268 else
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h. */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24275 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24276 # include <stdlib.h>
24277 #else
24278 char *malloc ();
24279 #endif
24282 main ()
24284 return ! malloc (0);
24286 return 0;
24288 _ACEOF
24289 rm -f conftest$ac_exeext
24290 if { (ac_try="$ac_link"
24291 case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296 (eval "$ac_link") 2>&5
24297 ac_status=$?
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300 { (case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24303 esac
24304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24305 (eval "$ac_try") 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; }; then
24309 ac_cv_func_malloc_0_nonnull=yes
24310 else
24311 echo "$as_me: program exited with status $ac_status" >&5
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24315 ( exit $ac_status )
24316 ac_cv_func_malloc_0_nonnull=no
24318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24323 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
24324 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
24325 if test $ac_cv_func_malloc_0_nonnull = yes; then
24327 cat >>confdefs.h <<\_ACEOF
24328 #define HAVE_MALLOC 1
24329 _ACEOF
24331 else
24332 cat >>confdefs.h <<\_ACEOF
24333 #define HAVE_MALLOC 0
24334 _ACEOF
24336 case " $LIBOBJS " in
24337 *" malloc.$ac_objext "* ) ;;
24338 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
24340 esac
24343 cat >>confdefs.h <<\_ACEOF
24344 #define malloc rpl_malloc
24345 _ACEOF
24355 for ac_header in $ac_header_list
24357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24364 ac_res=`eval echo '${'$as_ac_Header'}'`
24365 { echo "$as_me:$LINENO: result: $ac_res" >&5
24366 echo "${ECHO_T}$ac_res" >&6; }
24367 else
24368 # Is the header compilable?
24369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24371 cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h. */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 $ac_includes_default
24378 #include <$ac_header>
24379 _ACEOF
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384 *) ac_try_echo=$ac_try;;
24385 esac
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387 (eval "$ac_compile") 2>conftest.er1
24388 ac_status=$?
24389 grep -v '^ *+' conftest.er1 >conftest.err
24390 rm -f conftest.er1
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && {
24394 test -z "$ac_cxx_werror_flag" ||
24395 test ! -s conftest.err
24396 } && test -s conftest.$ac_objext; then
24397 ac_header_compiler=yes
24398 else
24399 echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24402 ac_header_compiler=no
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24407 echo "${ECHO_T}$ac_header_compiler" >&6; }
24409 # Is the header present?
24410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24412 cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h. */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24418 #include <$ac_header>
24419 _ACEOF
24420 if { (ac_try="$ac_cpp conftest.$ac_ext"
24421 case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24427 ac_status=$?
24428 grep -v '^ *+' conftest.er1 >conftest.err
24429 rm -f conftest.er1
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } >/dev/null && {
24433 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24434 test ! -s conftest.err
24435 }; then
24436 ac_header_preproc=yes
24437 else
24438 echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24441 ac_header_preproc=no
24444 rm -f conftest.err conftest.$ac_ext
24445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24446 echo "${ECHO_T}$ac_header_preproc" >&6; }
24448 # So? What about this header?
24449 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24450 yes:no: )
24451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24455 ac_header_preproc=yes
24457 no:yes:* )
24458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24470 ( cat <<\_ASBOX
24471 ## ------------------------------------------------ ##
24472 ## Report this to barry-devel@lists.sourceforge.net ##
24473 ## ------------------------------------------------ ##
24474 _ASBOX
24475 ) | sed "s/^/$as_me: WARNING: /" >&2
24477 esac
24478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483 eval "$as_ac_Header=\$ac_header_preproc"
24485 ac_res=`eval echo '${'$as_ac_Header'}'`
24486 { echo "$as_me:$LINENO: result: $ac_res" >&5
24487 echo "${ECHO_T}$ac_res" >&6; }
24490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24491 cat >>confdefs.h <<_ACEOF
24492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24493 _ACEOF
24497 done
24507 for ac_func in $ac_func_list
24509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24513 echo $ECHO_N "(cached) $ECHO_C" >&6
24514 else
24515 cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h. */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h. */
24521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24523 #define $ac_func innocuous_$ac_func
24525 /* System header to define __stub macros and hopefully few prototypes,
24526 which can conflict with char $ac_func (); below.
24527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24528 <limits.h> exists even on freestanding compilers. */
24530 #ifdef __STDC__
24531 # include <limits.h>
24532 #else
24533 # include <assert.h>
24534 #endif
24536 #undef $ac_func
24538 /* Override any GCC internal prototype to avoid an error.
24539 Use char because int might match the return type of a GCC
24540 builtin and then its argument prototype would still apply. */
24541 #ifdef __cplusplus
24542 extern "C"
24543 #endif
24544 char $ac_func ();
24545 /* The GNU C library defines this for functions which it implements
24546 to always fail with ENOSYS. Some functions are actually named
24547 something starting with __ and the normal name is an alias. */
24548 #if defined __stub_$ac_func || defined __stub___$ac_func
24549 choke me
24550 #endif
24553 main ()
24555 return $ac_func ();
24557 return 0;
24559 _ACEOF
24560 rm -f conftest.$ac_objext conftest$ac_exeext
24561 if { (ac_try="$ac_link"
24562 case "(($ac_try" in
24563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564 *) ac_try_echo=$ac_try;;
24565 esac
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567 (eval "$ac_link") 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && {
24574 test -z "$ac_cxx_werror_flag" ||
24575 test ! -s conftest.err
24576 } && test -s conftest$ac_exeext &&
24577 $as_test_x conftest$ac_exeext; then
24578 eval "$as_ac_var=yes"
24579 else
24580 echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24583 eval "$as_ac_var=no"
24586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24587 conftest$ac_exeext conftest.$ac_ext
24589 ac_res=`eval echo '${'$as_ac_var'}'`
24590 { echo "$as_me:$LINENO: result: $ac_res" >&5
24591 echo "${ECHO_T}$ac_res" >&6; }
24592 if test `eval echo '${'$as_ac_var'}'` = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24595 _ACEOF
24598 done
24616 { echo "$as_me:$LINENO: checking for working mktime" >&5
24617 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
24618 if test "${ac_cv_func_working_mktime+set}" = set; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621 if test "$cross_compiling" = yes; then
24622 ac_cv_func_working_mktime=no
24623 else
24624 cat >conftest.$ac_ext <<_ACEOF
24625 /* confdefs.h. */
24626 _ACEOF
24627 cat confdefs.h >>conftest.$ac_ext
24628 cat >>conftest.$ac_ext <<_ACEOF
24629 /* end confdefs.h. */
24630 /* Test program from Paul Eggert and Tony Leneis. */
24631 #ifdef TIME_WITH_SYS_TIME
24632 # include <sys/time.h>
24633 # include <time.h>
24634 #else
24635 # ifdef HAVE_SYS_TIME_H
24636 # include <sys/time.h>
24637 # else
24638 # include <time.h>
24639 # endif
24640 #endif
24642 #include <limits.h>
24643 #include <stdlib.h>
24645 #ifdef HAVE_UNISTD_H
24646 # include <unistd.h>
24647 #endif
24649 #ifndef HAVE_ALARM
24650 # define alarm(X) /* empty */
24651 #endif
24653 /* Work around redefinition to rpl_putenv by other config tests. */
24654 #undef putenv
24656 static time_t time_t_max;
24657 static time_t time_t_min;
24659 /* Values we'll use to set the TZ environment variable. */
24660 static char *tz_strings[] = {
24661 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24662 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24664 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24666 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24667 Based on a problem report from Andreas Jaeger. */
24668 static int
24669 spring_forward_gap ()
24671 /* glibc (up to about 1998-10-07) failed this test. */
24672 struct tm tm;
24674 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24675 instead of "TZ=America/Vancouver" in order to detect the bug even
24676 on systems that don't support the Olson extension, or don't have the
24677 full zoneinfo tables installed. */
24678 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24680 tm.tm_year = 98;
24681 tm.tm_mon = 3;
24682 tm.tm_mday = 5;
24683 tm.tm_hour = 2;
24684 tm.tm_min = 0;
24685 tm.tm_sec = 0;
24686 tm.tm_isdst = -1;
24687 return mktime (&tm) != (time_t) -1;
24690 static int
24691 mktime_test1 (now)
24692 time_t now;
24694 struct tm *lt;
24695 return ! (lt = localtime (&now)) || mktime (lt) == now;
24698 static int
24699 mktime_test (now)
24700 time_t now;
24702 return (mktime_test1 (now)
24703 && mktime_test1 ((time_t) (time_t_max - now))
24704 && mktime_test1 ((time_t) (time_t_min + now)));
24707 static int
24708 irix_6_4_bug ()
24710 /* Based on code from Ariel Faigon. */
24711 struct tm tm;
24712 tm.tm_year = 96;
24713 tm.tm_mon = 3;
24714 tm.tm_mday = 0;
24715 tm.tm_hour = 0;
24716 tm.tm_min = 0;
24717 tm.tm_sec = 0;
24718 tm.tm_isdst = -1;
24719 mktime (&tm);
24720 return tm.tm_mon == 2 && tm.tm_mday == 31;
24723 static int
24724 bigtime_test (j)
24725 int j;
24727 struct tm tm;
24728 time_t now;
24729 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24730 now = mktime (&tm);
24731 if (now != (time_t) -1)
24733 struct tm *lt = localtime (&now);
24734 if (! (lt
24735 && lt->tm_year == tm.tm_year
24736 && lt->tm_mon == tm.tm_mon
24737 && lt->tm_mday == tm.tm_mday
24738 && lt->tm_hour == tm.tm_hour
24739 && lt->tm_min == tm.tm_min
24740 && lt->tm_sec == tm.tm_sec
24741 && lt->tm_yday == tm.tm_yday
24742 && lt->tm_wday == tm.tm_wday
24743 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24744 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24745 return 0;
24747 return 1;
24750 static int
24751 year_2050_test ()
24753 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24754 ignoring leap seconds. */
24755 unsigned long int answer = 2527315200UL;
24757 struct tm tm;
24758 time_t t;
24759 tm.tm_year = 2050 - 1900;
24760 tm.tm_mon = 2 - 1;
24761 tm.tm_mday = 1;
24762 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24763 tm.tm_isdst = -1;
24765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24766 instead of "TZ=America/Vancouver" in order to detect the bug even
24767 on systems that don't support the Olson extension, or don't have the
24768 full zoneinfo tables installed. */
24769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24771 t = mktime (&tm);
24773 /* Check that the result is either a failure, or close enough
24774 to the correct answer that we can assume the discrepancy is
24775 due to leap seconds. */
24776 return (t == (time_t) -1
24777 || (0 < t && answer - 120 <= t && t <= answer + 120));
24781 main ()
24783 time_t t, delta;
24784 int i, j;
24786 /* This test makes some buggy mktime implementations loop.
24787 Give up after 60 seconds; a mktime slower than that
24788 isn't worth using anyway. */
24789 alarm (60);
24791 for (;;)
24793 t = (time_t_max << 1) + 1;
24794 if (t <= time_t_max)
24795 break;
24796 time_t_max = t;
24798 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
24800 delta = time_t_max / 997; /* a suitable prime number */
24801 for (i = 0; i < N_STRINGS; i++)
24803 if (tz_strings[i])
24804 putenv (tz_strings[i]);
24806 for (t = 0; t <= time_t_max - delta; t += delta)
24807 if (! mktime_test (t))
24808 return 1;
24809 if (! (mktime_test ((time_t) 1)
24810 && mktime_test ((time_t) (60 * 60))
24811 && mktime_test ((time_t) (60 * 60 * 24))))
24812 return 1;
24814 for (j = 1; ; j <<= 1)
24815 if (! bigtime_test (j))
24816 return 1;
24817 else if (INT_MAX / 2 < j)
24818 break;
24819 if (! bigtime_test (INT_MAX))
24820 return 1;
24822 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
24824 _ACEOF
24825 rm -f conftest$ac_exeext
24826 if { (ac_try="$ac_link"
24827 case "(($ac_try" in
24828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829 *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832 (eval "$ac_link") 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24836 { (case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24839 esac
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_try") 2>&5
24842 ac_status=$?
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 ac_cv_func_working_mktime=yes
24846 else
24847 echo "$as_me: program exited with status $ac_status" >&5
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ( exit $ac_status )
24852 ac_cv_func_working_mktime=no
24854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24859 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
24860 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
24861 if test $ac_cv_func_working_mktime = no; then
24862 case " $LIBOBJS " in
24863 *" mktime.$ac_objext "* ) ;;
24864 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
24866 esac
24871 for ac_header in stdlib.h
24873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24880 ac_res=`eval echo '${'$as_ac_Header'}'`
24881 { echo "$as_me:$LINENO: result: $ac_res" >&5
24882 echo "${ECHO_T}$ac_res" >&6; }
24883 else
24884 # Is the header compilable?
24885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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. */
24893 $ac_includes_default
24894 #include <$ac_header>
24895 _ACEOF
24896 rm -f conftest.$ac_objext
24897 if { (ac_try="$ac_compile"
24898 case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24901 esac
24902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_compile") 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && {
24910 test -z "$ac_cxx_werror_flag" ||
24911 test ! -s conftest.err
24912 } && test -s conftest.$ac_objext; then
24913 ac_header_compiler=yes
24914 else
24915 echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24918 ac_header_compiler=no
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24923 echo "${ECHO_T}$ac_header_compiler" >&6; }
24925 # Is the header present?
24926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24928 cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h. */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24934 #include <$ac_header>
24935 _ACEOF
24936 if { (ac_try="$ac_cpp conftest.$ac_ext"
24937 case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24940 esac
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24943 ac_status=$?
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } >/dev/null && {
24949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24950 test ! -s conftest.err
24951 }; then
24952 ac_header_preproc=yes
24953 else
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_header_preproc=no
24960 rm -f conftest.err conftest.$ac_ext
24961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24962 echo "${ECHO_T}$ac_header_preproc" >&6; }
24964 # So? What about this header?
24965 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24966 yes:no: )
24967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24971 ac_header_preproc=yes
24973 no:yes:* )
24974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24986 ( cat <<\_ASBOX
24987 ## ------------------------------------------------ ##
24988 ## Report this to barry-devel@lists.sourceforge.net ##
24989 ## ------------------------------------------------ ##
24990 _ASBOX
24991 ) | sed "s/^/$as_me: WARNING: /" >&2
24993 esac
24994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24997 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999 eval "$as_ac_Header=\$ac_header_preproc"
25001 ac_res=`eval echo '${'$as_ac_Header'}'`
25002 { echo "$as_me:$LINENO: result: $ac_res" >&5
25003 echo "${ECHO_T}$ac_res" >&6; }
25006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25007 cat >>confdefs.h <<_ACEOF
25008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25009 _ACEOF
25013 done
25015 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
25016 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
25017 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 if test "$cross_compiling" = yes; then
25021 ac_cv_func_realloc_0_nonnull=no
25022 else
25023 cat >conftest.$ac_ext <<_ACEOF
25024 /* confdefs.h. */
25025 _ACEOF
25026 cat confdefs.h >>conftest.$ac_ext
25027 cat >>conftest.$ac_ext <<_ACEOF
25028 /* end confdefs.h. */
25029 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25030 # include <stdlib.h>
25031 #else
25032 char *realloc ();
25033 #endif
25036 main ()
25038 return ! realloc (0, 0);
25040 return 0;
25042 _ACEOF
25043 rm -f conftest$ac_exeext
25044 if { (ac_try="$ac_link"
25045 case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_link") 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25054 { (case "(($ac_try" in
25055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056 *) ac_try_echo=$ac_try;;
25057 esac
25058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25059 (eval "$ac_try") 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; }; then
25063 ac_cv_func_realloc_0_nonnull=yes
25064 else
25065 echo "$as_me: program exited with status $ac_status" >&5
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ( exit $ac_status )
25070 ac_cv_func_realloc_0_nonnull=no
25072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25077 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
25078 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
25079 if test $ac_cv_func_realloc_0_nonnull = yes; then
25081 cat >>confdefs.h <<\_ACEOF
25082 #define HAVE_REALLOC 1
25083 _ACEOF
25085 else
25086 cat >>confdefs.h <<\_ACEOF
25087 #define HAVE_REALLOC 0
25088 _ACEOF
25090 case " $LIBOBJS " in
25091 *" realloc.$ac_objext "* ) ;;
25092 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
25094 esac
25097 cat >>confdefs.h <<\_ACEOF
25098 #define realloc rpl_realloc
25099 _ACEOF
25107 for ac_header in sys/select.h sys/socket.h
25109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25114 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 ac_res=`eval echo '${'$as_ac_Header'}'`
25117 { echo "$as_me:$LINENO: result: $ac_res" >&5
25118 echo "${ECHO_T}$ac_res" >&6; }
25119 else
25120 # Is the header compilable?
25121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25123 cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h. */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25129 $ac_includes_default
25130 #include <$ac_header>
25131 _ACEOF
25132 rm -f conftest.$ac_objext
25133 if { (ac_try="$ac_compile"
25134 case "(($ac_try" in
25135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136 *) ac_try_echo=$ac_try;;
25137 esac
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139 (eval "$ac_compile") 2>conftest.er1
25140 ac_status=$?
25141 grep -v '^ *+' conftest.er1 >conftest.err
25142 rm -f conftest.er1
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } && {
25146 test -z "$ac_cxx_werror_flag" ||
25147 test ! -s conftest.err
25148 } && test -s conftest.$ac_objext; then
25149 ac_header_compiler=yes
25150 else
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 ac_header_compiler=no
25157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25159 echo "${ECHO_T}$ac_header_compiler" >&6; }
25161 # Is the header present?
25162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25164 cat >conftest.$ac_ext <<_ACEOF
25165 /* confdefs.h. */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25170 #include <$ac_header>
25171 _ACEOF
25172 if { (ac_try="$ac_cpp conftest.$ac_ext"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25179 ac_status=$?
25180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } >/dev/null && {
25185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25186 test ! -s conftest.err
25187 }; then
25188 ac_header_preproc=yes
25189 else
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ac_header_preproc=no
25196 rm -f conftest.err conftest.$ac_ext
25197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25198 echo "${ECHO_T}$ac_header_preproc" >&6; }
25200 # So? What about this header?
25201 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25202 yes:no: )
25203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25207 ac_header_preproc=yes
25209 no:yes:* )
25210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25222 ( cat <<\_ASBOX
25223 ## ------------------------------------------------ ##
25224 ## Report this to barry-devel@lists.sourceforge.net ##
25225 ## ------------------------------------------------ ##
25226 _ASBOX
25227 ) | sed "s/^/$as_me: WARNING: /" >&2
25229 esac
25230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25233 echo $ECHO_N "(cached) $ECHO_C" >&6
25234 else
25235 eval "$as_ac_Header=\$ac_header_preproc"
25237 ac_res=`eval echo '${'$as_ac_Header'}'`
25238 { echo "$as_me:$LINENO: result: $ac_res" >&5
25239 echo "${ECHO_T}$ac_res" >&6; }
25242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25243 cat >>confdefs.h <<_ACEOF
25244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25245 _ACEOF
25249 done
25251 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
25252 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
25253 if test "${ac_cv_func_select_args+set}" = set; then
25254 echo $ECHO_N "(cached) $ECHO_C" >&6
25255 else
25256 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25257 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25258 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25259 cat >conftest.$ac_ext <<_ACEOF
25260 /* confdefs.h. */
25261 _ACEOF
25262 cat confdefs.h >>conftest.$ac_ext
25263 cat >>conftest.$ac_ext <<_ACEOF
25264 /* end confdefs.h. */
25265 $ac_includes_default
25266 #ifdef HAVE_SYS_SELECT_H
25267 # include <sys/select.h>
25268 #endif
25269 #ifdef HAVE_SYS_SOCKET_H
25270 # include <sys/socket.h>
25271 #endif
25274 main ()
25276 extern int select ($ac_arg1,
25277 $ac_arg234, $ac_arg234, $ac_arg234,
25278 $ac_arg5);
25280 return 0;
25282 _ACEOF
25283 rm -f conftest.$ac_objext
25284 if { (ac_try="$ac_compile"
25285 case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 (eval "$ac_compile") 2>conftest.er1
25291 ac_status=$?
25292 grep -v '^ *+' conftest.er1 >conftest.err
25293 rm -f conftest.er1
25294 cat conftest.err >&5
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); } && {
25297 test -z "$ac_cxx_werror_flag" ||
25298 test ! -s conftest.err
25299 } && test -s conftest.$ac_objext; then
25300 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25301 else
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25309 done
25310 done
25311 done
25312 # Provide a safe default value.
25313 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25316 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25317 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
25318 ac_save_IFS=$IFS; IFS=','
25319 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25320 IFS=$ac_save_IFS
25321 shift
25323 cat >>confdefs.h <<_ACEOF
25324 #define SELECT_TYPE_ARG1 $1
25325 _ACEOF
25328 cat >>confdefs.h <<_ACEOF
25329 #define SELECT_TYPE_ARG234 ($2)
25330 _ACEOF
25333 cat >>confdefs.h <<_ACEOF
25334 #define SELECT_TYPE_ARG5 ($3)
25335 _ACEOF
25337 rm -f conftest*
25339 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25340 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25341 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344 rm -f conftest.sym conftest.file
25345 echo >conftest.file
25346 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25347 if test "$cross_compiling" = yes; then
25348 ac_cv_func_lstat_dereferences_slashed_symlink=no
25349 else
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h. */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 $ac_includes_default
25358 main ()
25360 struct stat sbuf;
25361 /* Linux will dereference the symlink and fail.
25362 That is better in the sense that it means we will not
25363 have to compile and use the lstat wrapper. */
25364 return lstat ("conftest.sym/", &sbuf) == 0;
25366 return 0;
25368 _ACEOF
25369 rm -f conftest$ac_exeext
25370 if { (ac_try="$ac_link"
25371 case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25374 esac
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_link") 2>&5
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; }; then
25389 ac_cv_func_lstat_dereferences_slashed_symlink=yes
25390 else
25391 echo "$as_me: program exited with status $ac_status" >&5
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ( exit $ac_status )
25396 ac_cv_func_lstat_dereferences_slashed_symlink=no
25398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25402 else
25403 # If the `ln -s' command failed, then we probably don't even
25404 # have an lstat function.
25405 ac_cv_func_lstat_dereferences_slashed_symlink=no
25407 rm -f conftest.sym conftest.file
25410 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25411 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25413 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25415 cat >>confdefs.h <<_ACEOF
25416 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25417 _ACEOF
25420 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25421 case " $LIBOBJS " in
25422 *" lstat.$ac_objext "* ) ;;
25423 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25425 esac
25429 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25430 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
25431 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25432 echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434 if test "$cross_compiling" = yes; then
25435 ac_cv_func_stat_empty_string_bug=yes
25436 else
25437 cat >conftest.$ac_ext <<_ACEOF
25438 /* confdefs.h. */
25439 _ACEOF
25440 cat confdefs.h >>conftest.$ac_ext
25441 cat >>conftest.$ac_ext <<_ACEOF
25442 /* end confdefs.h. */
25443 $ac_includes_default
25445 main ()
25447 struct stat sbuf;
25448 return stat ("", &sbuf) == 0;
25450 return 0;
25452 _ACEOF
25453 rm -f conftest$ac_exeext
25454 if { (ac_try="$ac_link"
25455 case "(($ac_try" in
25456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457 *) ac_try_echo=$ac_try;;
25458 esac
25459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460 (eval "$ac_link") 2>&5
25461 ac_status=$?
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25464 { (case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467 esac
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469 (eval "$ac_try") 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; }; then
25473 ac_cv_func_stat_empty_string_bug=no
25474 else
25475 echo "$as_me: program exited with status $ac_status" >&5
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ( exit $ac_status )
25480 ac_cv_func_stat_empty_string_bug=yes
25482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25487 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25488 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
25489 if test $ac_cv_func_stat_empty_string_bug = yes; then
25490 case " $LIBOBJS " in
25491 *" stat.$ac_objext "* ) ;;
25492 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
25494 esac
25497 cat >>confdefs.h <<_ACEOF
25498 #define HAVE_STAT_EMPTY_STRING_BUG 1
25499 _ACEOF
25512 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
25514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520 cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h. */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25528 #define $ac_func innocuous_$ac_func
25530 /* System header to define __stub macros and hopefully few prototypes,
25531 which can conflict with char $ac_func (); below.
25532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25533 <limits.h> exists even on freestanding compilers. */
25535 #ifdef __STDC__
25536 # include <limits.h>
25537 #else
25538 # include <assert.h>
25539 #endif
25541 #undef $ac_func
25543 /* Override any GCC internal prototype to avoid an error.
25544 Use char because int might match the return type of a GCC
25545 builtin and then its argument prototype would still apply. */
25546 #ifdef __cplusplus
25547 extern "C"
25548 #endif
25549 char $ac_func ();
25550 /* The GNU C library defines this for functions which it implements
25551 to always fail with ENOSYS. Some functions are actually named
25552 something starting with __ and the normal name is an alias. */
25553 #if defined __stub_$ac_func || defined __stub___$ac_func
25554 choke me
25555 #endif
25558 main ()
25560 return $ac_func ();
25562 return 0;
25564 _ACEOF
25565 rm -f conftest.$ac_objext conftest$ac_exeext
25566 if { (ac_try="$ac_link"
25567 case "(($ac_try" in
25568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569 *) ac_try_echo=$ac_try;;
25570 esac
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572 (eval "$ac_link") 2>conftest.er1
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } && {
25579 test -z "$ac_cxx_werror_flag" ||
25580 test ! -s conftest.err
25581 } && test -s conftest$ac_exeext &&
25582 $as_test_x conftest$ac_exeext; then
25583 eval "$as_ac_var=yes"
25584 else
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 eval "$as_ac_var=no"
25591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25592 conftest$ac_exeext conftest.$ac_ext
25594 ac_res=`eval echo '${'$as_ac_var'}'`
25595 { echo "$as_me:$LINENO: result: $ac_res" >&5
25596 echo "${ECHO_T}$ac_res" >&6; }
25597 if test `eval echo '${'$as_ac_var'}'` = yes; then
25598 cat >>confdefs.h <<_ACEOF
25599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25600 _ACEOF
25603 done
25606 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile man/Makefile"
25608 cat >confcache <<\_ACEOF
25609 # This file is a shell script that caches the results of configure
25610 # tests run on this system so they can be shared between configure
25611 # scripts and configure runs, see configure's option --config-cache.
25612 # It is not useful on other systems. If it contains results you don't
25613 # want to keep, you may remove or edit it.
25615 # config.status only pays attention to the cache file if you give it
25616 # the --recheck option to rerun configure.
25618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25620 # following values.
25622 _ACEOF
25624 # The following way of writing the cache mishandles newlines in values,
25625 # but we know of no workaround that is simple, portable, and efficient.
25626 # So, we kill variables containing newlines.
25627 # Ultrix sh set writes to stderr and can't be redirected directly,
25628 # and sets the high bit in the cache file unless we assign to the vars.
25630 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25631 eval ac_val=\$$ac_var
25632 case $ac_val in #(
25633 *${as_nl}*)
25634 case $ac_var in #(
25635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25637 esac
25638 case $ac_var in #(
25639 _ | IFS | as_nl) ;; #(
25640 *) $as_unset $ac_var ;;
25641 esac ;;
25642 esac
25643 done
25645 (set) 2>&1 |
25646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25647 *${as_nl}ac_space=\ *)
25648 # `set' does not quote correctly, so add quotes (double-quote
25649 # substitution turns \\\\ into \\, and sed turns \\ into \).
25650 sed -n \
25651 "s/'/'\\\\''/g;
25652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25653 ;; #(
25655 # `set' quotes correctly as required by POSIX, so do not add quotes.
25656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25658 esac |
25659 sort
25661 sed '
25662 /^ac_cv_env_/b end
25663 t clear
25664 :clear
25665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25666 t end
25667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25668 :end' >>confcache
25669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25670 if test -w "$cache_file"; then
25671 test "x$cache_file" != "x/dev/null" &&
25672 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25673 echo "$as_me: updating cache $cache_file" >&6;}
25674 cat confcache >$cache_file
25675 else
25676 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25677 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25680 rm -f confcache
25682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25683 # Let make expand exec_prefix.
25684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25686 DEFS=-DHAVE_CONFIG_H
25688 ac_libobjs=
25689 ac_ltlibobjs=
25690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25691 # 1. Remove the extension, and $U if already installed.
25692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25693 ac_i=`echo "$ac_i" | sed "$ac_script"`
25694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25695 # will be set to the directory where LIBOBJS objects are built.
25696 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25697 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25698 done
25699 LIBOBJS=$ac_libobjs
25701 LTLIBOBJS=$ac_ltlibobjs
25704 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25705 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25706 Usually this means the macro was only invoked conditionally." >&5
25707 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25708 Usually this means the macro was only invoked conditionally." >&2;}
25709 { (exit 1); exit 1; }; }
25711 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25712 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25713 Usually this means the macro was only invoked conditionally." >&5
25714 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25715 Usually this means the macro was only invoked conditionally." >&2;}
25716 { (exit 1); exit 1; }; }
25718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25719 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25720 Usually this means the macro was only invoked conditionally." >&5
25721 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25722 Usually this means the macro was only invoked conditionally." >&2;}
25723 { (exit 1); exit 1; }; }
25725 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25726 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25727 Usually this means the macro was only invoked conditionally." >&5
25728 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25729 Usually this means the macro was only invoked conditionally." >&2;}
25730 { (exit 1); exit 1; }; }
25733 : ${CONFIG_STATUS=./config.status}
25734 ac_clean_files_save=$ac_clean_files
25735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25738 cat >$CONFIG_STATUS <<_ACEOF
25739 #! $SHELL
25740 # Generated by $as_me.
25741 # Run this file to recreate the current configuration.
25742 # Compiler output produced by configure, useful for debugging
25743 # configure, is in config.log if it exists.
25745 debug=false
25746 ac_cs_recheck=false
25747 ac_cs_silent=false
25748 SHELL=\${CONFIG_SHELL-$SHELL}
25749 _ACEOF
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25752 ## --------------------- ##
25753 ## M4sh Initialization. ##
25754 ## --------------------- ##
25756 # Be more Bourne compatible
25757 DUALCASE=1; export DUALCASE # for MKS sh
25758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25759 emulate sh
25760 NULLCMD=:
25761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25762 # is contrary to our usage. Disable this feature.
25763 alias -g '${1+"$@"}'='"$@"'
25764 setopt NO_GLOB_SUBST
25765 else
25766 case `(set -o) 2>/dev/null` in
25767 *posix*) set -o posix ;;
25768 esac
25775 # PATH needs CR
25776 # Avoid depending upon Character Ranges.
25777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25780 as_cr_digits='0123456789'
25781 as_cr_alnum=$as_cr_Letters$as_cr_digits
25783 # The user is always right.
25784 if test "${PATH_SEPARATOR+set}" != set; then
25785 echo "#! /bin/sh" >conf$$.sh
25786 echo "exit 0" >>conf$$.sh
25787 chmod +x conf$$.sh
25788 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25789 PATH_SEPARATOR=';'
25790 else
25791 PATH_SEPARATOR=:
25793 rm -f conf$$.sh
25796 # Support unset when possible.
25797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25798 as_unset=unset
25799 else
25800 as_unset=false
25804 # IFS
25805 # We need space, tab and new line, in precisely that order. Quoting is
25806 # there to prevent editors from complaining about space-tab.
25807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25808 # splitting by setting IFS to empty value.)
25809 as_nl='
25811 IFS=" "" $as_nl"
25813 # Find who we are. Look in the path if we contain no directory separator.
25814 case $0 in
25815 *[\\/]* ) as_myself=$0 ;;
25816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817 for as_dir in $PATH
25819 IFS=$as_save_IFS
25820 test -z "$as_dir" && as_dir=.
25821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25822 done
25823 IFS=$as_save_IFS
25826 esac
25827 # We did not find ourselves, most probably we were run as `sh COMMAND'
25828 # in which case we are not to be found in the path.
25829 if test "x$as_myself" = x; then
25830 as_myself=$0
25832 if test ! -f "$as_myself"; then
25833 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25834 { (exit 1); exit 1; }
25837 # Work around bugs in pre-3.0 UWIN ksh.
25838 for as_var in ENV MAIL MAILPATH
25839 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25840 done
25841 PS1='$ '
25842 PS2='> '
25843 PS4='+ '
25845 # NLS nuisances.
25846 for as_var in \
25847 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25848 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25849 LC_TELEPHONE LC_TIME
25851 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25852 eval $as_var=C; export $as_var
25853 else
25854 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25856 done
25858 # Required to use basename.
25859 if expr a : '\(a\)' >/dev/null 2>&1 &&
25860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25861 as_expr=expr
25862 else
25863 as_expr=false
25866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25867 as_basename=basename
25868 else
25869 as_basename=false
25873 # Name of the executable.
25874 as_me=`$as_basename -- "$0" ||
25875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25876 X"$0" : 'X\(//\)$' \| \
25877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25878 echo X/"$0" |
25879 sed '/^.*\/\([^/][^/]*\)\/*$/{
25880 s//\1/
25883 /^X\/\(\/\/\)$/{
25884 s//\1/
25887 /^X\/\(\/\).*/{
25888 s//\1/
25891 s/.*/./; q'`
25893 # CDPATH.
25894 $as_unset CDPATH
25898 as_lineno_1=$LINENO
25899 as_lineno_2=$LINENO
25900 test "x$as_lineno_1" != "x$as_lineno_2" &&
25901 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25903 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25904 # uniformly replaced by the line number. The first 'sed' inserts a
25905 # line-number line after each line using $LINENO; the second 'sed'
25906 # does the real work. The second script uses 'N' to pair each
25907 # line-number line with the line containing $LINENO, and appends
25908 # trailing '-' during substitution so that $LINENO is not a special
25909 # case at line end.
25910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25911 # scripts with optimization help from Paolo Bonzini. Blame Lee
25912 # E. McMahon (1931-1989) for sed's syntax. :-)
25913 sed -n '
25915 /[$]LINENO/=
25916 ' <$as_myself |
25917 sed '
25918 s/[$]LINENO.*/&-/
25919 t lineno
25921 :lineno
25923 :loop
25924 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25925 t loop
25926 s/-\n.*//
25927 ' >$as_me.lineno &&
25928 chmod +x "$as_me.lineno" ||
25929 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25930 { (exit 1); exit 1; }; }
25932 # Don't try to exec as it changes $[0], causing all sort of problems
25933 # (the dirname of $[0] is not the place where we might find the
25934 # original and so on. Autoconf is especially sensitive to this).
25935 . "./$as_me.lineno"
25936 # Exit status is that of the last command.
25937 exit
25941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25942 as_dirname=dirname
25943 else
25944 as_dirname=false
25947 ECHO_C= ECHO_N= ECHO_T=
25948 case `echo -n x` in
25949 -n*)
25950 case `echo 'x\c'` in
25951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25952 *) ECHO_C='\c';;
25953 esac;;
25955 ECHO_N='-n';;
25956 esac
25958 if expr a : '\(a\)' >/dev/null 2>&1 &&
25959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25960 as_expr=expr
25961 else
25962 as_expr=false
25965 rm -f conf$$ conf$$.exe conf$$.file
25966 if test -d conf$$.dir; then
25967 rm -f conf$$.dir/conf$$.file
25968 else
25969 rm -f conf$$.dir
25970 mkdir conf$$.dir
25972 echo >conf$$.file
25973 if ln -s conf$$.file conf$$ 2>/dev/null; then
25974 as_ln_s='ln -s'
25975 # ... but there are two gotchas:
25976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25978 # In both cases, we have to default to `cp -p'.
25979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25980 as_ln_s='cp -p'
25981 elif ln conf$$.file conf$$ 2>/dev/null; then
25982 as_ln_s=ln
25983 else
25984 as_ln_s='cp -p'
25986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25987 rmdir conf$$.dir 2>/dev/null
25989 if mkdir -p . 2>/dev/null; then
25990 as_mkdir_p=:
25991 else
25992 test -d ./-p && rmdir ./-p
25993 as_mkdir_p=false
25996 if test -x / >/dev/null 2>&1; then
25997 as_test_x='test -x'
25998 else
25999 if ls -dL / >/dev/null 2>&1; then
26000 as_ls_L_option=L
26001 else
26002 as_ls_L_option=
26004 as_test_x='
26005 eval sh -c '\''
26006 if test -d "$1"; then
26007 test -d "$1/.";
26008 else
26009 case $1 in
26010 -*)set "./$1";;
26011 esac;
26012 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26013 ???[sx]*):;;*)false;;esac;fi
26014 '\'' sh
26017 as_executable_p=$as_test_x
26019 # Sed expression to map a string onto a valid CPP name.
26020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26022 # Sed expression to map a string onto a valid variable name.
26023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26026 exec 6>&1
26028 # Save the log message, to keep $[0] and so on meaningful, and to
26029 # report actual input values of CONFIG_FILES etc. instead of their
26030 # values after options handling.
26031 ac_log="
26032 This file was extended by barry-backup $as_me 0.17, which was
26033 generated by GNU Autoconf 2.61. Invocation command line was
26035 CONFIG_FILES = $CONFIG_FILES
26036 CONFIG_HEADERS = $CONFIG_HEADERS
26037 CONFIG_LINKS = $CONFIG_LINKS
26038 CONFIG_COMMANDS = $CONFIG_COMMANDS
26039 $ $0 $@
26041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26044 _ACEOF
26046 cat >>$CONFIG_STATUS <<_ACEOF
26047 # Files that config.status was made for.
26048 config_files="$ac_config_files"
26049 config_headers="$ac_config_headers"
26050 config_commands="$ac_config_commands"
26052 _ACEOF
26054 cat >>$CONFIG_STATUS <<\_ACEOF
26055 ac_cs_usage="\
26056 \`$as_me' instantiates files from templates according to the
26057 current configuration.
26059 Usage: $0 [OPTIONS] [FILE]...
26061 -h, --help print this help, then exit
26062 -V, --version print version number and configuration settings, then exit
26063 -q, --quiet do not print progress messages
26064 -d, --debug don't remove temporary files
26065 --recheck update $as_me by reconfiguring in the same conditions
26066 --file=FILE[:TEMPLATE]
26067 instantiate the configuration file FILE
26068 --header=FILE[:TEMPLATE]
26069 instantiate the configuration header FILE
26071 Configuration files:
26072 $config_files
26074 Configuration headers:
26075 $config_headers
26077 Configuration commands:
26078 $config_commands
26080 Report bugs to <bug-autoconf@gnu.org>."
26082 _ACEOF
26083 cat >>$CONFIG_STATUS <<_ACEOF
26084 ac_cs_version="\\
26085 barry-backup config.status 0.17
26086 configured by $0, generated by GNU Autoconf 2.61,
26087 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26089 Copyright (C) 2006 Free Software Foundation, Inc.
26090 This config.status script is free software; the Free Software Foundation
26091 gives unlimited permission to copy, distribute and modify it."
26093 ac_pwd='$ac_pwd'
26094 srcdir='$srcdir'
26095 INSTALL='$INSTALL'
26096 MKDIR_P='$MKDIR_P'
26097 _ACEOF
26099 cat >>$CONFIG_STATUS <<\_ACEOF
26100 # If no file are specified by the user, then we need to provide default
26101 # value. By we need to know if files were specified by the user.
26102 ac_need_defaults=:
26103 while test $# != 0
26105 case $1 in
26106 --*=*)
26107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26109 ac_shift=:
26112 ac_option=$1
26113 ac_optarg=$2
26114 ac_shift=shift
26116 esac
26118 case $ac_option in
26119 # Handling of the options.
26120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26121 ac_cs_recheck=: ;;
26122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26123 echo "$ac_cs_version"; exit ;;
26124 --debug | --debu | --deb | --de | --d | -d )
26125 debug=: ;;
26126 --file | --fil | --fi | --f )
26127 $ac_shift
26128 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26129 ac_need_defaults=false;;
26130 --header | --heade | --head | --hea )
26131 $ac_shift
26132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26133 ac_need_defaults=false;;
26134 --he | --h)
26135 # Conflict between --help and --header
26136 { echo "$as_me: error: ambiguous option: $1
26137 Try \`$0 --help' for more information." >&2
26138 { (exit 1); exit 1; }; };;
26139 --help | --hel | -h )
26140 echo "$ac_cs_usage"; exit ;;
26141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26143 ac_cs_silent=: ;;
26145 # This is an error.
26146 -*) { echo "$as_me: error: unrecognized option: $1
26147 Try \`$0 --help' for more information." >&2
26148 { (exit 1); exit 1; }; } ;;
26150 *) ac_config_targets="$ac_config_targets $1"
26151 ac_need_defaults=false ;;
26153 esac
26154 shift
26155 done
26157 ac_configure_extra_args=
26159 if $ac_cs_silent; then
26160 exec 6>/dev/null
26161 ac_configure_extra_args="$ac_configure_extra_args --silent"
26164 _ACEOF
26165 cat >>$CONFIG_STATUS <<_ACEOF
26166 if \$ac_cs_recheck; then
26167 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26168 CONFIG_SHELL=$SHELL
26169 export CONFIG_SHELL
26170 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26173 _ACEOF
26174 cat >>$CONFIG_STATUS <<\_ACEOF
26175 exec 5>>config.log
26177 echo
26178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26179 ## Running $as_me. ##
26180 _ASBOX
26181 echo "$ac_log"
26182 } >&5
26184 _ACEOF
26185 cat >>$CONFIG_STATUS <<_ACEOF
26187 # INIT-COMMANDS
26189 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26190 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26191 # from automake < 1.5.
26192 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26193 # Capture the value of LINGUAS because we need it to compute CATALOGS.
26194 LINGUAS="${LINGUAS-%UNSET%}"
26196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26198 _ACEOF
26200 cat >>$CONFIG_STATUS <<\_ACEOF
26202 # Handling of arguments.
26203 for ac_config_target in $ac_config_targets
26205 case $ac_config_target in
26206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
26207 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
26208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26210 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26211 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26212 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26214 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26215 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26216 { (exit 1); exit 1; }; };;
26217 esac
26218 done
26221 # If the user did not use the arguments to specify the items to instantiate,
26222 # then the envvar interface is used. Set only those that are not.
26223 # We use the long form for the default assignment because of an extremely
26224 # bizarre bug on SunOS 4.1.3.
26225 if $ac_need_defaults; then
26226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26231 # Have a temporary directory for convenience. Make it in the build tree
26232 # simply because there is no reason against having it here, and in addition,
26233 # creating and moving files from /tmp can sometimes cause problems.
26234 # Hook for its removal unless debugging.
26235 # Note that there is a small window in which the directory will not be cleaned:
26236 # after its creation but before its name has been assigned to `$tmp'.
26237 $debug ||
26239 tmp=
26240 trap 'exit_status=$?
26241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26243 trap '{ (exit 1); exit 1; }' 1 2 13 15
26245 # Create a (secure) tmp directory for tmp files.
26248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26249 test -n "$tmp" && test -d "$tmp"
26250 } ||
26252 tmp=./conf$$-$RANDOM
26253 (umask 077 && mkdir "$tmp")
26254 } ||
26256 echo "$me: cannot create a temporary directory in ." >&2
26257 { (exit 1); exit 1; }
26261 # Set up the sed scripts for CONFIG_FILES section.
26264 # No need to generate the scripts if there are no CONFIG_FILES.
26265 # This happens for instance when ./config.status config.h
26266 if test -n "$CONFIG_FILES"; then
26268 _ACEOF
26272 ac_delim='%!_!# '
26273 for ac_last_try in false false false false false :; do
26274 cat >conf$$subs.sed <<_ACEOF
26275 SHELL!$SHELL$ac_delim
26276 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26277 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26278 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26279 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26280 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26281 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26282 exec_prefix!$exec_prefix$ac_delim
26283 prefix!$prefix$ac_delim
26284 program_transform_name!$program_transform_name$ac_delim
26285 bindir!$bindir$ac_delim
26286 sbindir!$sbindir$ac_delim
26287 libexecdir!$libexecdir$ac_delim
26288 datarootdir!$datarootdir$ac_delim
26289 datadir!$datadir$ac_delim
26290 sysconfdir!$sysconfdir$ac_delim
26291 sharedstatedir!$sharedstatedir$ac_delim
26292 localstatedir!$localstatedir$ac_delim
26293 includedir!$includedir$ac_delim
26294 oldincludedir!$oldincludedir$ac_delim
26295 docdir!$docdir$ac_delim
26296 infodir!$infodir$ac_delim
26297 htmldir!$htmldir$ac_delim
26298 dvidir!$dvidir$ac_delim
26299 pdfdir!$pdfdir$ac_delim
26300 psdir!$psdir$ac_delim
26301 libdir!$libdir$ac_delim
26302 localedir!$localedir$ac_delim
26303 mandir!$mandir$ac_delim
26304 DEFS!$DEFS$ac_delim
26305 ECHO_C!$ECHO_C$ac_delim
26306 ECHO_N!$ECHO_N$ac_delim
26307 ECHO_T!$ECHO_T$ac_delim
26308 LIBS!$LIBS$ac_delim
26309 build_alias!$build_alias$ac_delim
26310 host_alias!$host_alias$ac_delim
26311 target_alias!$target_alias$ac_delim
26312 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26313 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26314 INSTALL_DATA!$INSTALL_DATA$ac_delim
26315 am__isrc!$am__isrc$ac_delim
26316 CYGPATH_W!$CYGPATH_W$ac_delim
26317 PACKAGE!$PACKAGE$ac_delim
26318 VERSION!$VERSION$ac_delim
26319 ACLOCAL!$ACLOCAL$ac_delim
26320 AUTOCONF!$AUTOCONF$ac_delim
26321 AUTOMAKE!$AUTOMAKE$ac_delim
26322 AUTOHEADER!$AUTOHEADER$ac_delim
26323 MAKEINFO!$MAKEINFO$ac_delim
26324 install_sh!$install_sh$ac_delim
26325 STRIP!$STRIP$ac_delim
26326 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26327 mkdir_p!$mkdir_p$ac_delim
26328 AWK!$AWK$ac_delim
26329 SET_MAKE!$SET_MAKE$ac_delim
26330 am__leading_dot!$am__leading_dot$ac_delim
26331 AMTAR!$AMTAR$ac_delim
26332 am__tar!$am__tar$ac_delim
26333 am__untar!$am__untar$ac_delim
26334 USE_NLS!$USE_NLS$ac_delim
26335 GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
26336 MSGFMT!$MSGFMT$ac_delim
26337 GMSGFMT!$GMSGFMT$ac_delim
26338 MSGFMT_015!$MSGFMT_015$ac_delim
26339 GMSGFMT_015!$GMSGFMT_015$ac_delim
26340 XGETTEXT!$XGETTEXT$ac_delim
26341 XGETTEXT_015!$XGETTEXT_015$ac_delim
26342 MSGMERGE!$MSGMERGE$ac_delim
26343 XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
26344 CC!$CC$ac_delim
26345 CFLAGS!$CFLAGS$ac_delim
26346 LDFLAGS!$LDFLAGS$ac_delim
26347 CPPFLAGS!$CPPFLAGS$ac_delim
26348 ac_ct_CC!$ac_ct_CC$ac_delim
26349 EXEEXT!$EXEEXT$ac_delim
26350 OBJEXT!$OBJEXT$ac_delim
26351 DEPDIR!$DEPDIR$ac_delim
26352 am__include!$am__include$ac_delim
26353 am__quote!$am__quote$ac_delim
26354 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26355 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26356 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26357 CCDEPMODE!$CCDEPMODE$ac_delim
26358 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26359 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26360 build!$build$ac_delim
26361 build_cpu!$build_cpu$ac_delim
26362 build_vendor!$build_vendor$ac_delim
26363 build_os!$build_os$ac_delim
26364 host!$host$ac_delim
26365 host_cpu!$host_cpu$ac_delim
26366 host_vendor!$host_vendor$ac_delim
26367 host_os!$host_os$ac_delim
26368 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
26369 LIBICONV!$LIBICONV$ac_delim
26370 LTLIBICONV!$LTLIBICONV$ac_delim
26371 INTLLIBS!$INTLLIBS$ac_delim
26372 _ACEOF
26374 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26375 break
26376 elif $ac_last_try; then
26377 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26378 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26379 { (exit 1); exit 1; }; }
26380 else
26381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26383 done
26385 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26386 if test -n "$ac_eof"; then
26387 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26388 ac_eof=`expr $ac_eof + 1`
26391 cat >>$CONFIG_STATUS <<_ACEOF
26392 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26394 _ACEOF
26395 sed '
26396 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26397 s/^/s,@/; s/!/@,|#_!!_#|/
26400 s/'"$ac_delim"'$/,g/; t
26401 s/$/\\/; p
26402 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26403 ' >>$CONFIG_STATUS <conf$$subs.sed
26404 rm -f conf$$subs.sed
26405 cat >>$CONFIG_STATUS <<_ACEOF
26406 CEOF$ac_eof
26407 _ACEOF
26410 ac_delim='%!_!# '
26411 for ac_last_try in false false false false false :; do
26412 cat >conf$$subs.sed <<_ACEOF
26413 LIBINTL!$LIBINTL$ac_delim
26414 LTLIBINTL!$LTLIBINTL$ac_delim
26415 POSUB!$POSUB$ac_delim
26416 CXX!$CXX$ac_delim
26417 CXXFLAGS!$CXXFLAGS$ac_delim
26418 ac_ct_CXX!$ac_ct_CXX$ac_delim
26419 CXXDEPMODE!$CXXDEPMODE$ac_delim
26420 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26421 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26422 SED!$SED$ac_delim
26423 GREP!$GREP$ac_delim
26424 EGREP!$EGREP$ac_delim
26425 LN_S!$LN_S$ac_delim
26426 ECHO!$ECHO$ac_delim
26427 AR!$AR$ac_delim
26428 RANLIB!$RANLIB$ac_delim
26429 DSYMUTIL!$DSYMUTIL$ac_delim
26430 NMEDIT!$NMEDIT$ac_delim
26431 CPP!$CPP$ac_delim
26432 CXXCPP!$CXXCPP$ac_delim
26433 F77!$F77$ac_delim
26434 FFLAGS!$FFLAGS$ac_delim
26435 ac_ct_F77!$ac_ct_F77$ac_delim
26436 LIBTOOL!$LIBTOOL$ac_delim
26437 PKG_CONFIG!$PKG_CONFIG$ac_delim
26438 BARRY_CFLAGS!$BARRY_CFLAGS$ac_delim
26439 BARRY_LIBS!$BARRY_LIBS$ac_delim
26440 BARRYBACKUP_CFLAGS!$BARRYBACKUP_CFLAGS$ac_delim
26441 BARRYBACKUP_LIBS!$BARRYBACKUP_LIBS$ac_delim
26442 GTKMM_CFLAGS!$GTKMM_CFLAGS$ac_delim
26443 GTKMM_LIBS!$GTKMM_LIBS$ac_delim
26444 TREE_BUILD_CXXFLAGS!$TREE_BUILD_CXXFLAGS$ac_delim
26445 TREE_BUILD_LDFLAGS!$TREE_BUILD_LDFLAGS$ac_delim
26446 gladedir!$gladedir$ac_delim
26447 LIBOBJS!$LIBOBJS$ac_delim
26448 LTLIBOBJS!$LTLIBOBJS$ac_delim
26449 _ACEOF
26451 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
26452 break
26453 elif $ac_last_try; then
26454 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26455 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26456 { (exit 1); exit 1; }; }
26457 else
26458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26460 done
26462 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26463 if test -n "$ac_eof"; then
26464 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26465 ac_eof=`expr $ac_eof + 1`
26468 cat >>$CONFIG_STATUS <<_ACEOF
26469 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26471 _ACEOF
26472 sed '
26473 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26474 s/^/s,@/; s/!/@,|#_!!_#|/
26477 s/'"$ac_delim"'$/,g/; t
26478 s/$/\\/; p
26479 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26480 ' >>$CONFIG_STATUS <conf$$subs.sed
26481 rm -f conf$$subs.sed
26482 cat >>$CONFIG_STATUS <<_ACEOF
26483 :end
26484 s/|#_!!_#|//g
26485 CEOF$ac_eof
26486 _ACEOF
26489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26491 # trailing colons and then remove the whole line if VPATH becomes empty
26492 # (actually we leave an empty line to preserve line numbers).
26493 if test "x$srcdir" = x.; then
26494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26495 s/:*\$(srcdir):*/:/
26496 s/:*\${srcdir}:*/:/
26497 s/:*@srcdir@:*/:/
26498 s/^\([^=]*=[ ]*\):*/\1/
26499 s/:*$//
26500 s/^[^=]*=[ ]*$//
26504 cat >>$CONFIG_STATUS <<\_ACEOF
26505 fi # test -n "$CONFIG_FILES"
26508 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26510 case $ac_tag in
26511 :[FHLC]) ac_mode=$ac_tag; continue;;
26512 esac
26513 case $ac_mode$ac_tag in
26514 :[FHL]*:*);;
26515 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26516 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26517 { (exit 1); exit 1; }; };;
26518 :[FH]-) ac_tag=-:-;;
26519 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26520 esac
26521 ac_save_IFS=$IFS
26522 IFS=:
26523 set x $ac_tag
26524 IFS=$ac_save_IFS
26525 shift
26526 ac_file=$1
26527 shift
26529 case $ac_mode in
26530 :L) ac_source=$1;;
26531 :[FH])
26532 ac_file_inputs=
26533 for ac_f
26535 case $ac_f in
26536 -) ac_f="$tmp/stdin";;
26537 *) # Look for the file first in the build tree, then in the source tree
26538 # (if the path is not absolute). The absolute path cannot be DOS-style,
26539 # because $ac_f cannot contain `:'.
26540 test -f "$ac_f" ||
26541 case $ac_f in
26542 [\\/$]*) false;;
26543 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26544 esac ||
26545 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26546 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26547 { (exit 1); exit 1; }; };;
26548 esac
26549 ac_file_inputs="$ac_file_inputs $ac_f"
26550 done
26552 # Let's still pretend it is `configure' which instantiates (i.e., don't
26553 # use $as_me), people would be surprised to read:
26554 # /* config.h. Generated by config.status. */
26555 configure_input="Generated from "`IFS=:
26556 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26557 if test x"$ac_file" != x-; then
26558 configure_input="$ac_file. $configure_input"
26559 { echo "$as_me:$LINENO: creating $ac_file" >&5
26560 echo "$as_me: creating $ac_file" >&6;}
26563 case $ac_tag in
26564 *:-:* | *:-) cat >"$tmp/stdin";;
26565 esac
26567 esac
26569 ac_dir=`$as_dirname -- "$ac_file" ||
26570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26571 X"$ac_file" : 'X\(//\)[^/]' \| \
26572 X"$ac_file" : 'X\(//\)$' \| \
26573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26574 echo X"$ac_file" |
26575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26576 s//\1/
26579 /^X\(\/\/\)[^/].*/{
26580 s//\1/
26583 /^X\(\/\/\)$/{
26584 s//\1/
26587 /^X\(\/\).*/{
26588 s//\1/
26591 s/.*/./; q'`
26592 { as_dir="$ac_dir"
26593 case $as_dir in #(
26594 -*) as_dir=./$as_dir;;
26595 esac
26596 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26597 as_dirs=
26598 while :; do
26599 case $as_dir in #(
26600 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26601 *) as_qdir=$as_dir;;
26602 esac
26603 as_dirs="'$as_qdir' $as_dirs"
26604 as_dir=`$as_dirname -- "$as_dir" ||
26605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26606 X"$as_dir" : 'X\(//\)[^/]' \| \
26607 X"$as_dir" : 'X\(//\)$' \| \
26608 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26609 echo X"$as_dir" |
26610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26611 s//\1/
26614 /^X\(\/\/\)[^/].*/{
26615 s//\1/
26618 /^X\(\/\/\)$/{
26619 s//\1/
26622 /^X\(\/\).*/{
26623 s//\1/
26626 s/.*/./; q'`
26627 test -d "$as_dir" && break
26628 done
26629 test -z "$as_dirs" || eval "mkdir $as_dirs"
26630 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26631 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26632 { (exit 1); exit 1; }; }; }
26633 ac_builddir=.
26635 case "$ac_dir" in
26636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26639 # A ".." for each directory in $ac_dir_suffix.
26640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26641 case $ac_top_builddir_sub in
26642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26644 esac ;;
26645 esac
26646 ac_abs_top_builddir=$ac_pwd
26647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26648 # for backward compatibility:
26649 ac_top_builddir=$ac_top_build_prefix
26651 case $srcdir in
26652 .) # We are building in place.
26653 ac_srcdir=.
26654 ac_top_srcdir=$ac_top_builddir_sub
26655 ac_abs_top_srcdir=$ac_pwd ;;
26656 [\\/]* | ?:[\\/]* ) # Absolute name.
26657 ac_srcdir=$srcdir$ac_dir_suffix;
26658 ac_top_srcdir=$srcdir
26659 ac_abs_top_srcdir=$srcdir ;;
26660 *) # Relative name.
26661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26662 ac_top_srcdir=$ac_top_build_prefix$srcdir
26663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26664 esac
26665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26668 case $ac_mode in
26671 # CONFIG_FILE
26674 case $INSTALL in
26675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26677 esac
26678 ac_MKDIR_P=$MKDIR_P
26679 case $MKDIR_P in
26680 [\\/$]* | ?:[\\/]* ) ;;
26681 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26682 esac
26683 _ACEOF
26685 cat >>$CONFIG_STATUS <<\_ACEOF
26686 # If the template does not know about datarootdir, expand it.
26687 # FIXME: This hack should be removed a few years after 2.60.
26688 ac_datarootdir_hack=; ac_datarootdir_seen=
26690 case `sed -n '/datarootdir/ {
26694 /@datadir@/p
26695 /@docdir@/p
26696 /@infodir@/p
26697 /@localedir@/p
26698 /@mandir@/p
26699 ' $ac_file_inputs` in
26700 *datarootdir*) ac_datarootdir_seen=yes;;
26701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26702 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26703 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26704 _ACEOF
26705 cat >>$CONFIG_STATUS <<_ACEOF
26706 ac_datarootdir_hack='
26707 s&@datadir@&$datadir&g
26708 s&@docdir@&$docdir&g
26709 s&@infodir@&$infodir&g
26710 s&@localedir@&$localedir&g
26711 s&@mandir@&$mandir&g
26712 s&\\\${datarootdir}&$datarootdir&g' ;;
26713 esac
26714 _ACEOF
26716 # Neutralize VPATH when `$srcdir' = `.'.
26717 # Shell code in configure.ac might set extrasub.
26718 # FIXME: do we really want to maintain this feature?
26719 cat >>$CONFIG_STATUS <<_ACEOF
26720 sed "$ac_vpsub
26721 $extrasub
26722 _ACEOF
26723 cat >>$CONFIG_STATUS <<\_ACEOF
26725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26726 s&@configure_input@&$configure_input&;t t
26727 s&@top_builddir@&$ac_top_builddir_sub&;t t
26728 s&@srcdir@&$ac_srcdir&;t t
26729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26730 s&@top_srcdir@&$ac_top_srcdir&;t t
26731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26732 s&@builddir@&$ac_builddir&;t t
26733 s&@abs_builddir@&$ac_abs_builddir&;t t
26734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26735 s&@INSTALL@&$ac_INSTALL&;t t
26736 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26737 $ac_datarootdir_hack
26738 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26740 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26741 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26743 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26744 which seems to be undefined. Please make sure it is defined." >&5
26745 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26746 which seems to be undefined. Please make sure it is defined." >&2;}
26748 rm -f "$tmp/stdin"
26749 case $ac_file in
26750 -) cat "$tmp/out"; rm -f "$tmp/out";;
26751 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26752 esac
26756 # CONFIG_HEADER
26758 _ACEOF
26760 # Transform confdefs.h into a sed script `conftest.defines', that
26761 # substitutes the proper values into config.h.in to produce config.h.
26762 rm -f conftest.defines conftest.tail
26763 # First, append a space to every undef/define line, to ease matching.
26764 echo 's/$/ /' >conftest.defines
26765 # Then, protect against being on the right side of a sed subst, or in
26766 # an unquoted here document, in config.status. If some macros were
26767 # called several times there might be several #defines for the same
26768 # symbol, which is useless. But do not sort them, since the last
26769 # AC_DEFINE must be honored.
26770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26771 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26772 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26773 # PARAMS is the parameter list in the macro definition--in most cases, it's
26774 # just an empty string.
26775 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26776 ac_dB='\\)[ (].*,\\1define\\2'
26777 ac_dC=' '
26778 ac_dD=' ,'
26780 uniq confdefs.h |
26781 sed -n '
26782 t rset
26783 :rset
26784 s/^[ ]*#[ ]*define[ ][ ]*//
26785 t ok
26788 s/[\\&,]/\\&/g
26789 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26790 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26791 ' >>conftest.defines
26793 # Remove the space that was appended to ease matching.
26794 # Then replace #undef with comments. This is necessary, for
26795 # example, in the case of _POSIX_SOURCE, which is predefined and required
26796 # on some systems where configure will not decide to define it.
26797 # (The regexp can be short, since the line contains either #define or #undef.)
26798 echo 's/ $//
26799 s,^[ #]*u.*,/* & */,' >>conftest.defines
26801 # Break up conftest.defines:
26802 ac_max_sed_lines=50
26804 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26805 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26806 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26807 # et cetera.
26808 ac_in='$ac_file_inputs'
26809 ac_out='"$tmp/out1"'
26810 ac_nxt='"$tmp/out2"'
26812 while :
26814 # Write a here document:
26815 cat >>$CONFIG_STATUS <<_ACEOF
26816 # First, check the format of the line:
26817 cat >"\$tmp/defines.sed" <<\\CEOF
26818 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26819 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26821 :def
26822 _ACEOF
26823 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26824 echo 'CEOF
26825 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26826 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26827 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26828 grep . conftest.tail >/dev/null || break
26829 rm -f conftest.defines
26830 mv conftest.tail conftest.defines
26831 done
26832 rm -f conftest.defines conftest.tail
26834 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26835 cat >>$CONFIG_STATUS <<\_ACEOF
26836 if test x"$ac_file" != x-; then
26837 echo "/* $configure_input */" >"$tmp/config.h"
26838 cat "$ac_result" >>"$tmp/config.h"
26839 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26840 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26841 echo "$as_me: $ac_file is unchanged" >&6;}
26842 else
26843 rm -f $ac_file
26844 mv "$tmp/config.h" $ac_file
26846 else
26847 echo "/* $configure_input */"
26848 cat "$ac_result"
26850 rm -f "$tmp/out12"
26851 # Compute $ac_file's index in $config_headers.
26852 _am_arg=$ac_file
26853 _am_stamp_count=1
26854 for _am_header in $config_headers :; do
26855 case $_am_header in
26856 $_am_arg | $_am_arg:* )
26857 break ;;
26859 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26860 esac
26861 done
26862 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26863 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26864 X"$_am_arg" : 'X\(//\)[^/]' \| \
26865 X"$_am_arg" : 'X\(//\)$' \| \
26866 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26867 echo X"$_am_arg" |
26868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26869 s//\1/
26872 /^X\(\/\/\)[^/].*/{
26873 s//\1/
26876 /^X\(\/\/\)$/{
26877 s//\1/
26880 /^X\(\/\).*/{
26881 s//\1/
26884 s/.*/./; q'`/stamp-h$_am_stamp_count
26887 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26888 echo "$as_me: executing $ac_file commands" >&6;}
26890 esac
26893 case $ac_file$ac_mode in
26894 "po-directories":C)
26895 for ac_file in $CONFIG_FILES; do
26896 # Support "outfile[:infile[:infile...]]"
26897 case "$ac_file" in
26898 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26899 esac
26900 # PO directories have a Makefile.in generated from Makefile.in.in.
26901 case "$ac_file" in */Makefile.in)
26902 # Adjust a relative srcdir.
26903 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
26904 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
26905 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
26906 # In autoconf-2.13 it is called $ac_given_srcdir.
26907 # In autoconf-2.50 it is called $srcdir.
26908 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
26909 case "$ac_given_srcdir" in
26910 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
26911 /*) top_srcdir="$ac_given_srcdir" ;;
26912 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
26913 esac
26914 # Treat a directory as a PO directory if and only if it has a
26915 # POTFILES.in file. This allows packages to have multiple PO
26916 # directories under different names or in different locations.
26917 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
26918 rm -f "$ac_dir/POTFILES"
26919 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
26920 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
26921 POMAKEFILEDEPS="POTFILES.in"
26922 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
26923 # on $ac_dir but don't depend on user-specified configuration
26924 # parameters.
26925 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
26926 # The LINGUAS file contains the set of available languages.
26927 if test -n "$OBSOLETE_ALL_LINGUAS"; then
26928 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
26930 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
26931 # Hide the ALL_LINGUAS assigment from automake < 1.5.
26932 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
26933 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
26934 else
26935 # The set of available languages was given in configure.in.
26936 # Hide the ALL_LINGUAS assigment from automake < 1.5.
26937 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
26939 # Compute POFILES
26940 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
26941 # Compute UPDATEPOFILES
26942 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
26943 # Compute DUMMYPOFILES
26944 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
26945 # Compute GMOFILES
26946 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26947 case "$ac_given_srcdir" in
26948 .) srcdirpre= ;;
26949 *) srcdirpre='$(srcdir)/' ;;
26950 esac
26951 POFILES=
26952 UPDATEPOFILES=
26953 DUMMYPOFILES=
26954 GMOFILES=
26955 for lang in $ALL_LINGUAS; do
26956 POFILES="$POFILES $srcdirpre$lang.po"
26957 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26958 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26959 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26960 done
26961 # CATALOGS depends on both $ac_dir and the user's LINGUAS
26962 # environment variable.
26963 INST_LINGUAS=
26964 if test -n "$ALL_LINGUAS"; then
26965 for presentlang in $ALL_LINGUAS; do
26966 useit=no
26967 if test "%UNSET%" != "$LINGUAS"; then
26968 desiredlanguages="$LINGUAS"
26969 else
26970 desiredlanguages="$ALL_LINGUAS"
26972 for desiredlang in $desiredlanguages; do
26973 # Use the presentlang catalog if desiredlang is
26974 # a. equal to presentlang, or
26975 # b. a variant of presentlang (because in this case,
26976 # presentlang can be used as a fallback for messages
26977 # which are not translated in the desiredlang catalog).
26978 case "$desiredlang" in
26979 "$presentlang"*) useit=yes;;
26980 esac
26981 done
26982 if test $useit = yes; then
26983 INST_LINGUAS="$INST_LINGUAS $presentlang"
26985 done
26987 CATALOGS=
26988 if test -n "$INST_LINGUAS"; then
26989 for lang in $INST_LINGUAS; do
26990 CATALOGS="$CATALOGS $lang.gmo"
26991 done
26993 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26994 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"
26995 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26996 if test -f "$f"; then
26997 case "$f" in
26998 *.orig | *.bak | *~) ;;
26999 *) cat "$f" >> "$ac_dir/Makefile" ;;
27000 esac
27002 done
27005 esac
27006 done ;;
27007 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27008 # Strip MF so we end up with the name of the file.
27009 mf=`echo "$mf" | sed -e 's/:.*$//'`
27010 # Check whether this is an Automake generated Makefile or not.
27011 # We used to match only the files named `Makefile.in', but
27012 # some people rename them; so instead we look at the file content.
27013 # Grep'ing the first line is not enough: some people post-process
27014 # each Makefile.in and add a new line on top of each file to say so.
27015 # Grep'ing the whole file is not good either: AIX grep has a line
27016 # limit of 2048, but all sed's we know have understand at least 4000.
27017 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27018 dirpart=`$as_dirname -- "$mf" ||
27019 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27020 X"$mf" : 'X\(//\)[^/]' \| \
27021 X"$mf" : 'X\(//\)$' \| \
27022 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27023 echo X"$mf" |
27024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27025 s//\1/
27028 /^X\(\/\/\)[^/].*/{
27029 s//\1/
27032 /^X\(\/\/\)$/{
27033 s//\1/
27036 /^X\(\/\).*/{
27037 s//\1/
27040 s/.*/./; q'`
27041 else
27042 continue
27044 # Extract the definition of DEPDIR, am__include, and am__quote
27045 # from the Makefile without running `make'.
27046 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27047 test -z "$DEPDIR" && continue
27048 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27049 test -z "am__include" && continue
27050 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27051 # When using ansi2knr, U may be empty or an underscore; expand it
27052 U=`sed -n 's/^U = //p' < "$mf"`
27053 # Find all dependency output files, they are included files with
27054 # $(DEPDIR) in their names. We invoke sed twice because it is the
27055 # simplest approach to changing $(DEPDIR) to its actual value in the
27056 # expansion.
27057 for file in `sed -n "
27058 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27059 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27060 # Make sure the directory exists.
27061 test -f "$dirpart/$file" && continue
27062 fdir=`$as_dirname -- "$file" ||
27063 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27064 X"$file" : 'X\(//\)[^/]' \| \
27065 X"$file" : 'X\(//\)$' \| \
27066 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27067 echo X"$file" |
27068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27069 s//\1/
27072 /^X\(\/\/\)[^/].*/{
27073 s//\1/
27076 /^X\(\/\/\)$/{
27077 s//\1/
27080 /^X\(\/\).*/{
27081 s//\1/
27084 s/.*/./; q'`
27085 { as_dir=$dirpart/$fdir
27086 case $as_dir in #(
27087 -*) as_dir=./$as_dir;;
27088 esac
27089 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27090 as_dirs=
27091 while :; do
27092 case $as_dir in #(
27093 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27094 *) as_qdir=$as_dir;;
27095 esac
27096 as_dirs="'$as_qdir' $as_dirs"
27097 as_dir=`$as_dirname -- "$as_dir" ||
27098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27099 X"$as_dir" : 'X\(//\)[^/]' \| \
27100 X"$as_dir" : 'X\(//\)$' \| \
27101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27102 echo X"$as_dir" |
27103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27104 s//\1/
27107 /^X\(\/\/\)[^/].*/{
27108 s//\1/
27111 /^X\(\/\/\)$/{
27112 s//\1/
27115 /^X\(\/\).*/{
27116 s//\1/
27119 s/.*/./; q'`
27120 test -d "$as_dir" && break
27121 done
27122 test -z "$as_dirs" || eval "mkdir $as_dirs"
27123 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27124 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27125 { (exit 1); exit 1; }; }; }
27126 # echo "creating $dirpart/$file"
27127 echo '# dummy' > "$dirpart/$file"
27128 done
27129 done
27132 esac
27133 done # for ac_tag
27136 { (exit 0); exit 0; }
27137 _ACEOF
27138 chmod +x $CONFIG_STATUS
27139 ac_clean_files=$ac_clean_files_save
27142 # configure is writing to config.log, and then calls config.status.
27143 # config.status does its own redirection, appending to config.log.
27144 # Unfortunately, on DOS this fails, as config.log is still kept open
27145 # by configure, so config.status won't be able to write to it; its
27146 # output is simply discarded. So we exec the FD to /dev/null,
27147 # effectively closing config.log, so it can be properly (re)opened and
27148 # appended to by config.status. When coming back to configure, we
27149 # need to make the FD available again.
27150 if test "$no_create" != yes; then
27151 ac_cs_success=:
27152 ac_config_status_args=
27153 test "$silent" = yes &&
27154 ac_config_status_args="$ac_config_status_args --quiet"
27155 exec 5>/dev/null
27156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27157 exec 5>>config.log
27158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27159 # would make configure fail if this is the last instruction.
27160 $ac_cs_success || { (exit 1); exit 1; }