Release tarball for barry-0.12
[barry.git] / gui / configure
blob8610830f0cfe78fe6b6b956710a8bc6c5ad409b7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for barry-backup 0.1.
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.1'
732 PACKAGE_STRING='barry-backup 0.1'
733 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
735 ac_unique_file="src/main.cc"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_header_list=
773 ac_func_list=
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 INSTALL_PROGRAM
812 INSTALL_SCRIPT
813 INSTALL_DATA
814 CYGPATH_W
815 PACKAGE
816 VERSION
817 ACLOCAL
818 AUTOCONF
819 AUTOMAKE
820 AUTOHEADER
821 MAKEINFO
822 install_sh
823 STRIP
824 INSTALL_STRIP_PROGRAM
825 mkdir_p
827 SET_MAKE
828 am__leading_dot
829 AMTAR
830 am__tar
831 am__untar
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 DEPDIR
840 am__include
841 am__quote
842 AMDEP_TRUE
843 AMDEP_FALSE
844 AMDEPBACKSLASH
845 CCDEPMODE
846 am__fastdepCC_TRUE
847 am__fastdepCC_FALSE
849 CXXFLAGS
850 ac_ct_CXX
851 CXXDEPMODE
852 am__fastdepCXX_TRUE
853 am__fastdepCXX_FALSE
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
862 GREP
863 EGREP
864 LN_S
865 ECHO
867 RANLIB
869 CXXCPP
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 LIBTAR_CFLAGS
875 LIBTAR_LIBS
876 LIBZ_CFLAGS
877 LIBZ_LIBS
878 PKG_CONFIG
879 BARRY_CFLAGS
880 BARRY_LIBS
881 GTKMM_CFLAGS
882 GTKMM_LIBS
883 TREE_BUILD_CXXFLAGS
884 TREE_BUILD_LDFLAGS
885 gladedir
886 LIBOBJS
887 LTLIBOBJS'
888 ac_subst_files=''
889 ac_precious_vars='build_alias
890 host_alias
891 target_alias
893 CFLAGS
894 LDFLAGS
895 LIBS
896 CPPFLAGS
898 CXXFLAGS
901 CXXCPP
903 FFLAGS
904 PKG_CONFIG
905 BARRY_CFLAGS
906 BARRY_LIBS
907 GTKMM_CFLAGS
908 GTKMM_LIBS'
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
957 ac_prev=
958 ac_dashdash=
959 for ac_option
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
977 ac_dashdash=yes ;;
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
996 --config-cache | -C)
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1050 with_gas=yes ;;
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 ac_prev=htmldir ;;
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 | --ht=*)
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 ac_prev=infodir ;;
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1083 ac_prev=libdir ;;
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 ac_prev=mandir ;;
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1113 with_fp=no ;;
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1117 no_create=yes ;;
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121 no_recursion=yes ;;
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 ac_prev=prefix ;;
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 ac_prev=pdfdir ;;
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1174 ac_prev=psdir ;;
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176 psdir=$ac_optarg ;;
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1180 silent=yes ;;
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 ac_prev=sbindir ;;
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 | --sbi=* | --sb=*)
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1191 | --sha | --sh)
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 | --sha=* | --sh=*)
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1200 ac_prev=site ;;
1201 -site=* | --site=* | --sit=*)
1202 site=$ac_optarg ;;
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 ac_prev=srcdir ;;
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222 verbose=yes ;;
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1227 -with-* | --with-*)
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 esac
1286 done
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 echo X"$0" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 s//\1/
1357 /^X\(\/\/\)[^/].*/{
1358 s//\1/
1361 /^X\(\/\/\)$/{
1362 s//\1/
1365 /^X\(\/\).*/{
1366 s//\1/
1369 s/.*/./; q'`
1370 srcdir=$ac_confdir
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 srcdir=..
1374 else
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1386 pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 srcdir=.
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1410 cat <<_ACEOF
1411 \`configure' configures barry-backup 0.1 to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1420 Configuration:
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 [PREFIX]
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/barry-backup]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1464 _ACEOF
1466 cat <<\_ACEOF
1468 Program names:
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of barry-backup 0.1:";;
1482 esac
1483 cat <<\_ACEOF
1485 Optional Features:
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-tags[=TAGS] include additional configurations [automatic]
1503 --with-libtar=<path> root path of libtar install
1504 --with-zlib=<path> root path of zlib install
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 CPP C preprocessor
1517 CXXCPP C++ preprocessor
1518 F77 Fortran 77 compiler command
1519 FFLAGS Fortran 77 compiler flags
1520 PKG_CONFIG path to pkg-config utility
1521 BARRY_CFLAGS
1522 C compiler flags for BARRY, overriding pkg-config
1523 BARRY_LIBS linker flags for BARRY, overriding pkg-config
1524 GTKMM_CFLAGS
1525 C compiler flags for GTKMM, overriding pkg-config
1526 GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 Report bugs to <barry-devel@lists.sourceforge.net>.
1532 _ACEOF
1533 ac_status=$?
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" || continue
1540 ac_builddir=.
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1558 case $srcdir in
1559 .) # We are building in place.
1560 ac_srcdir=.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1582 else
1583 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1586 done
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591 cat <<\_ACEOF
1592 barry-backup configure 0.1
1593 generated by GNU Autoconf 2.61
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600 exit
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1606 It was created by barry-backup $as_me 0.1, which was
1607 generated by GNU Autoconf 2.61. Invocation command line was
1609 $ $0 $@
1611 _ACEOF
1612 exec 5>>config.log
1614 cat <<_ASUNAME
1615 ## --------- ##
1616 ## Platform. ##
1617 ## --------- ##
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1628 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1629 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1632 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1633 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1634 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636 _ASUNAME
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1641 IFS=$as_save_IFS
1642 test -z "$as_dir" && as_dir=.
1643 echo "PATH: $as_dir"
1644 done
1645 IFS=$as_save_IFS
1647 } >&5
1649 cat >&5 <<_ACEOF
1652 ## ----------- ##
1653 ## Core tests. ##
1654 ## ----------- ##
1656 _ACEOF
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_configure_args=
1665 ac_configure_args0=
1666 ac_configure_args1=
1667 ac_must_keep_next=false
1668 for ac_pass in 1 2
1670 for ac_arg
1672 case $ac_arg in
1673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1676 continue ;;
1677 *\'*)
1678 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 esac
1680 case $ac_pass in
1681 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684 if test $ac_must_keep_next = true; then
1685 ac_must_keep_next=false # Got value, back to normal.
1686 else
1687 case $ac_arg in
1688 *=* | --config-cache | -C | -disable-* | --disable-* \
1689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691 | -with-* | --with-* | -without-* | --without-* | --x)
1692 case "$ac_configure_args0 " in
1693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694 esac
1696 -* ) ac_must_keep_next=true ;;
1697 esac
1699 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 esac
1702 done
1703 done
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log. We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713 # Save into config.log some information that might help in debugging.
1715 echo
1717 cat <<\_ASBOX
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1721 _ASBOX
1722 echo
1723 # The following way of writing the cache mishandles newlines in values,
1725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726 eval ac_val=\$$ac_var
1727 case $ac_val in #(
1728 *${as_nl}*)
1729 case $ac_var in #(
1730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732 esac
1733 case $ac_var in #(
1734 _ | IFS | as_nl) ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 esac |
1750 sort
1752 echo
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1798 test "$ac_signal" != 0 &&
1799 echo "$as_me: caught signal $ac_signal"
1800 echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 else
1848 set x "$ac_default_prefix/share/config.site" \
1849 "$ac_default_prefix/etc/config.site"
1851 shift
1852 for ac_site_file
1854 if test -r "$ac_site_file"; then
1855 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857 sed 's/^/| /' "$ac_site_file" >&5
1858 . "$ac_site_file"
1860 done
1862 if test -r "$cache_file"; then
1863 # Some versions of bash will fail to source /dev/null (special
1864 # files actually), so we avoid doing that.
1865 if test -f "$cache_file"; then
1866 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1868 case $cache_file in
1869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870 *) . "./$cache_file";;
1871 esac
1873 else
1874 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1876 >$cache_file
1879 ac_header_list="$ac_header_list sys/time.h"
1880 ac_header_list="$ac_header_list unistd.h"
1881 ac_func_list="$ac_func_list alarm"
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1891 set,)
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1895 ,set)
1896 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1899 ,);;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1905 echo "$as_me: former value: $ac_old_val" >&2;}
1906 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1907 echo "$as_me: current value: $ac_new_val" >&2;}
1908 ac_cache_corrupted=:
1909 fi;;
1910 esac
1911 # Pass precious variables to config.status.
1912 if test "$ac_new_set" = set; then
1913 case $ac_new_val in
1914 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 *) ac_arg=$ac_var=$ac_new_val ;;
1916 esac
1917 case " $ac_configure_args " in
1918 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1919 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920 esac
1922 done
1923 if $ac_cache_corrupted; then
1924 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928 { (exit 1); exit 1; }; }
1955 ac_ext=c
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 #AM_CONFIG_HEADER(config.h)
1964 ac_config_headers="$ac_config_headers config.h:config.h.in"
1966 am__api_version="1.9"
1967 ac_aux_dir=
1968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1969 if test -f "$ac_dir/install-sh"; then
1970 ac_aux_dir=$ac_dir
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 break
1973 elif test -f "$ac_dir/install.sh"; then
1974 ac_aux_dir=$ac_dir
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 break
1977 elif test -f "$ac_dir/shtool"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1980 break
1982 done
1983 if test -z "$ac_aux_dir"; then
1984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986 { (exit 1); exit 1; }; }
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1998 # Find a good install program. We prefer a C program (faster),
1999 # so one script is as good as another. But avoid the broken or
2000 # incompatible versions:
2001 # SysV /etc/install, /usr/sbin/install
2002 # SunOS /usr/etc/install
2003 # IRIX /sbin/install
2004 # AIX /bin/install
2005 # AmigaOS /C/install, which installs bootblocks on floppy discs
2006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2009 # OS/2's system install, which has a completely different semantic
2010 # ./install, which can be erroneously created by make from ./install.sh.
2011 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2012 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2013 if test -z "$INSTALL"; then
2014 if test "${ac_cv_path_install+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 # Account for people who put trailing slashes in PATH elements.
2023 case $as_dir/ in
2024 ./ | .// | /cC/* | \
2025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2026 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2027 /usr/ucb/* ) ;;
2029 # OSF1 and SCO ODT 3.0 have their own names for install.
2030 # Don't use installbsd from OSF since it installs stuff as root
2031 # by default.
2032 for ac_prog in ginstall scoinst install; do
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2035 if test $ac_prog = install &&
2036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2037 # AIX install. It has an incompatible calling convention.
2039 elif test $ac_prog = install &&
2040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041 # program-specific install script used by HP pwplus--don't use.
2043 else
2044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2045 break 3
2048 done
2049 done
2051 esac
2052 done
2053 IFS=$as_save_IFS
2057 if test "${ac_cv_path_install+set}" = set; then
2058 INSTALL=$ac_cv_path_install
2059 else
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for INSTALL within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 INSTALL=$ac_install_sh
2067 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2068 echo "${ECHO_T}$INSTALL" >&6; }
2070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071 # It thinks the first close brace ends the variable substitution.
2072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2080 # Just in case
2081 sleep 1
2082 echo timestamp > conftest.file
2083 # Do `set' in a subshell so we don't clobber the current shell's
2084 # arguments. Must try -L first in case configure is actually a
2085 # symlink; some systems play weird games with the mod time of symlinks
2086 # (eg FreeBSD returns the mod time of the symlink's containing
2087 # directory).
2088 if (
2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090 if test "$*" = "X"; then
2091 # -L didn't work.
2092 set X `ls -t $srcdir/configure conftest.file`
2094 rm -f conftest.file
2095 if test "$*" != "X $srcdir/configure conftest.file" \
2096 && test "$*" != "X conftest.file $srcdir/configure"; then
2098 # If neither matched, then we have a broken ls. This can happen
2099 # if, for instance, CONFIG_SHELL is bash and it inherits a
2100 # broken ls alias from the environment. This has actually
2101 # happened. Such a system could not be considered "sane".
2102 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&5
2104 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2105 alias in your environment" >&2;}
2106 { (exit 1); exit 1; }; }
2109 test "$2" = conftest.file
2111 then
2112 # Ok.
2114 else
2115 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116 Check your system clock" >&5
2117 echo "$as_me: error: newly created file is older than distributed files!
2118 Check your system clock" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: yes" >&5
2122 echo "${ECHO_T}yes" >&6; }
2123 test "$program_prefix" != NONE &&
2124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125 # Use a double $ so make ignores it.
2126 test "$program_suffix" != NONE &&
2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128 # Double any \ or $. echo might interpret backslashes.
2129 # By default was `s,x,x', remove it if useless.
2130 cat <<\_ACEOF >conftest.sed
2131 s/[\\$]/&&/g;s/;s,x,x,$//
2132 _ACEOF
2133 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2134 rm -f conftest.sed
2136 # expand $ac_aux_dir to an absolute path
2137 am_aux_dir=`cd $ac_aux_dir && pwd`
2139 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2140 # Use eval to expand $SHELL
2141 if eval "$MISSING --run true"; then
2142 am_missing_run="$MISSING --run "
2143 else
2144 am_missing_run=
2145 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2146 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2149 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2150 # We used to keeping the `.' as first argument, in order to
2151 # allow $(mkdir_p) to be used without argument. As in
2152 # $(mkdir_p) $(somedir)
2153 # where $(somedir) is conditionally defined. However this is wrong
2154 # for two reasons:
2155 # 1. if the package is installed by a user who cannot write `.'
2156 # make install will fail,
2157 # 2. the above comment should most certainly read
2158 # $(mkdir_p) $(DESTDIR)$(somedir)
2159 # so it does not work when $(somedir) is undefined and
2160 # $(DESTDIR) is not.
2161 # To support the latter case, we have to write
2162 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2163 # so the `.' trick is pointless.
2164 mkdir_p='mkdir -p --'
2165 else
2166 # On NextStep and OpenStep, the `mkdir' command does not
2167 # recognize any option. It will interpret all options as
2168 # directories to create, and then abort because `.' already
2169 # exists.
2170 for d in ./-p ./--version;
2172 test -d $d && rmdir $d
2173 done
2174 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2175 if test -f "$ac_aux_dir/mkinstalldirs"; then
2176 mkdir_p='$(mkinstalldirs)'
2177 else
2178 mkdir_p='$(install_sh) -d'
2182 for ac_prog in gawk mawk nawk awk
2184 # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_AWK+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test -n "$AWK"; then
2192 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201 ac_cv_prog_AWK="$ac_prog"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2207 IFS=$as_save_IFS
2211 AWK=$ac_cv_prog_AWK
2212 if test -n "$AWK"; then
2213 { echo "$as_me:$LINENO: result: $AWK" >&5
2214 echo "${ECHO_T}$AWK" >&6; }
2215 else
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2221 test -n "$AWK" && break
2222 done
2224 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2226 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2227 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 cat >conftest.make <<\_ACEOF
2231 SHELL = /bin/sh
2232 all:
2233 @echo '@@@%%%=$(MAKE)=@@@%%%'
2234 _ACEOF
2235 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2236 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237 *@@@%%%=?*=@@@%%%*)
2238 eval ac_cv_prog_make_${ac_make}_set=yes;;
2240 eval ac_cv_prog_make_${ac_make}_set=no;;
2241 esac
2242 rm -f conftest.make
2244 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 SET_MAKE=
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251 SET_MAKE="MAKE=${MAKE-make}"
2254 rm -rf .tst 2>/dev/null
2255 mkdir .tst 2>/dev/null
2256 if test -d .tst; then
2257 am__leading_dot=.
2258 else
2259 am__leading_dot=_
2261 rmdir .tst 2>/dev/null
2263 # test to see if srcdir already configured
2264 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2265 test -f $srcdir/config.status; then
2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268 { (exit 1); exit 1; }; }
2271 # test whether we have cygpath
2272 if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2281 # Define the identity of the package.
2282 PACKAGE='barry-backup'
2283 VERSION='0.1'
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE "$PACKAGE"
2288 _ACEOF
2291 cat >>confdefs.h <<_ACEOF
2292 #define VERSION "$VERSION"
2293 _ACEOF
2295 # Some tools Automake needs.
2297 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2300 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2303 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2306 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2309 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2313 # Installed binaries are usually stripped using `strip' when the user
2314 # run `make install-strip'. However `strip' might not be the right
2315 # tool to use in cross-compilation environments, therefore Automake
2316 # will honor the `STRIP' environment variable to overrule this program.
2317 if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}strip; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2340 done
2341 done
2342 IFS=$as_save_IFS
2346 STRIP=$ac_cv_prog_STRIP
2347 if test -n "$STRIP"; then
2348 { echo "$as_me:$LINENO: result: $STRIP" >&5
2349 echo "${ECHO_T}$STRIP" >&6; }
2350 else
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2357 if test -z "$ac_cv_prog_STRIP"; then
2358 ac_ct_STRIP=$STRIP
2359 # Extract the first word of "strip", so it can be a program name with args.
2360 set dummy strip; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2382 IFS=$as_save_IFS
2386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387 if test -n "$ac_ct_STRIP"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2389 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2395 if test "x$ac_ct_STRIP" = x; then
2396 STRIP=":"
2397 else
2398 case $cross_compiling:$ac_tool_warned in
2399 yes:)
2400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&5
2403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2406 ac_tool_warned=yes ;;
2407 esac
2408 STRIP=$ac_ct_STRIP
2410 else
2411 STRIP="$ac_cv_prog_STRIP"
2415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2417 # We need awk for the "check" target. The system "awk" is bad on
2418 # some platforms.
2419 # Always define AMTAR for backward compatibility.
2421 AMTAR=${AMTAR-"${am_missing_run}tar"}
2423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430 # Checks for programs.
2431 ac_ext=c
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 if test -n "$ac_tool_prefix"; then
2437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 CC=$ac_cv_prog_CC
2465 if test -n "$CC"; then
2466 { echo "$as_me:$LINENO: result: $CC" >&5
2467 echo "${ECHO_T}$CC" >&6; }
2468 else
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2475 if test -z "$ac_cv_prog_CC"; then
2476 ac_ct_CC=$CC
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478 set dummy gcc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_ac_ct_CC="gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2505 if test -n "$ac_ct_CC"; then
2506 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2507 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2513 if test "x$ac_ct_CC" = x; then
2514 CC=""
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&5
2521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526 CC=$ac_ct_CC
2528 else
2529 CC="$ac_cv_prog_CC"
2532 if test -z "$CC"; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="${ac_tool_prefix}cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2565 else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2573 if test -z "$CC"; then
2574 # Extract the first word of "cc", so it can be a program name with args.
2575 set dummy cc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2593 ac_prog_rejected=yes
2594 continue
2596 ac_cv_prog_CC="cc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2600 done
2601 done
2602 IFS=$as_save_IFS
2604 if test $ac_prog_rejected = yes; then
2605 # We found a bogon in the path, so make sure we never use it.
2606 set dummy $ac_cv_prog_CC
2607 shift
2608 if test $# != 0; then
2609 # We chose a different compiler from the bogus one.
2610 # However, it has the same basename, so the bogon will be chosen
2611 # first if we set CC to just the basename; use the full file name.
2612 shift
2613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620 { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2622 else
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$CC" && break
2671 done
2673 if test -z "$CC"; then
2674 ac_ct_CC=$CC
2675 for ac_prog in cl.exe
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$ac_ct_CC"; then
2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_ac_ct_CC="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2700 IFS=$as_save_IFS
2704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705 if test -n "$ac_ct_CC"; then
2706 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2707 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 else
2709 { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2714 test -n "$ac_ct_CC" && break
2715 done
2717 if test "x$ac_ct_CC" = x; then
2718 CC=""
2719 else
2720 case $cross_compiling:$ac_tool_warned in
2721 yes:)
2722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2723 whose name does not start with the host triplet. If you think this
2724 configuration is useful to you, please write to autoconf@gnu.org." >&5
2725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2726 whose name does not start with the host triplet. If you think this
2727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2728 ac_tool_warned=yes ;;
2729 esac
2730 CC=$ac_ct_CC
2737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&5
2739 echo "$as_me: error: no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2743 # Provide some information about the compiler.
2744 echo "$as_me:$LINENO: checking for C compiler version" >&5
2745 ac_compiler=`set X $ac_compile; echo $2`
2746 { (ac_try="$ac_compiler --version >&5"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler --version >&5") 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756 { (ac_try="$ac_compiler -v >&5"
2757 case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compiler -v >&5") 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
2766 { (ac_try="$ac_compiler -V >&5"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compiler -V >&5") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h. */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2785 main ()
2789 return 0;
2791 _ACEOF
2792 ac_clean_files_save=$ac_clean_files
2793 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2794 # Try to create an executable without -o first, disregard a.out.
2795 # It will help us diagnose broken compilers, and finding out an intuition
2796 # of exeext.
2797 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2798 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2799 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801 # List of possible output files, starting from the most likely.
2802 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2803 # only as a last resort. b.out is created by i960 compilers.
2804 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806 # The IRIX 6 linker writes into existing files which may not be
2807 # executable, retaining their permissions. Remove them first so a
2808 # subsequent execution test works.
2809 ac_rmfiles=
2810 for ac_file in $ac_files
2812 case $ac_file in
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2815 esac
2816 done
2817 rm -f $ac_rmfiles
2819 if { (ac_try="$ac_link_default"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link_default") 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2832 # so that the user can short-circuit this test for compilers unknown to
2833 # Autoconf.
2834 for ac_file in $ac_files ''
2836 test -f "$ac_file" || continue
2837 case $ac_file in
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 [ab].out )
2841 # We found the default executable, but exeext='' is most
2842 # certainly right.
2843 break;;
2844 *.* )
2845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 then :; else
2847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 # We set ac_cv_exeext here because the later test for it is not
2850 # safe: cross compilers may not add the suffix if given an `-o'
2851 # argument, so we may need to know it at that point already.
2852 # Even if this section looks crufty: it has the advantage of
2853 # actually working.
2854 break;;
2856 break;;
2857 esac
2858 done
2859 test "$ac_cv_exeext" = no && ac_cv_exeext=
2861 else
2862 ac_file=''
2865 { echo "$as_me:$LINENO: result: $ac_file" >&5
2866 echo "${ECHO_T}$ac_file" >&6; }
2867 if test -z "$ac_file"; then
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&2;}
2875 { (exit 77); exit 77; }; }
2878 ac_exeext=$ac_cv_exeext
2880 # Check that the compiler produces executables we can run. If not, either
2881 # the compiler is broken, or we cross compile.
2882 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2885 # If not cross compiling, check that we can run a simple program.
2886 if test "$cross_compiling" != yes; then
2887 if { ac_try='./$ac_file'
2888 { (case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_try") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 cross_compiling=no
2898 else
2899 if test "$cross_compiling" = maybe; then
2900 cross_compiling=yes
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2903 If you meant to cross compile, use \`--host'.
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot run C compiled programs.
2906 If you meant to cross compile, use \`--host'.
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2912 { echo "$as_me:$LINENO: result: yes" >&5
2913 echo "${ECHO_T}yes" >&6; }
2915 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2916 ac_clean_files=$ac_clean_files_save
2917 # Check that the compiler produces executables we can run. If not, either
2918 # the compiler is broken, or we cross compile.
2919 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2920 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2921 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2922 echo "${ECHO_T}$cross_compiling" >&6; }
2924 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2925 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2926 if { (ac_try="$ac_link"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_link") 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; then
2936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2937 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2938 # work properly (i.e., refer to `conftest.exe'), while it won't with
2939 # `rm'.
2940 for ac_file in conftest.exe conftest conftest.*; do
2941 test -f "$ac_file" || continue
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 break;;
2946 * ) break;;
2947 esac
2948 done
2949 else
2950 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&5
2952 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&2;}
2954 { (exit 1); exit 1; }; }
2957 rm -f conftest$ac_cv_exeext
2958 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2959 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2961 rm -f conftest.$ac_ext
2962 EXEEXT=$ac_cv_exeext
2963 ac_exeext=$EXEEXT
2964 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2965 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2966 if test "${ac_cv_objext+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 rm -f conftest.o conftest.obj
2985 if { (ac_try="$ac_compile"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
2995 for ac_file in conftest.o conftest.obj conftest.*; do
2996 test -f "$ac_file" || continue;
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3000 break;;
3001 esac
3002 done
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&2;}
3011 { (exit 1); exit 1; }; }
3014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3016 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3017 echo "${ECHO_T}$ac_cv_objext" >&6; }
3018 OBJEXT=$ac_cv_objext
3019 ac_objext=$OBJEXT
3020 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h. */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3033 main ()
3035 #ifndef __GNUC__
3036 choke me
3037 #endif
3040 return 0;
3042 _ACEOF
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3051 ac_status=$?
3052 grep -v '^ *+' conftest.er1 >conftest.err
3053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3060 ac_compiler_gnu=yes
3061 else
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_compiler_gnu=no
3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3073 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3074 GCC=`test $ac_compiler_gnu = yes && echo yes`
3075 ac_test_CFLAGS=${CFLAGS+set}
3076 ac_save_CFLAGS=$CFLAGS
3077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_cc_g+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 ac_save_c_werror_flag=$ac_c_werror_flag
3083 ac_c_werror_flag=yes
3084 ac_cv_prog_cc_g=no
3085 CFLAGS="-g"
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3094 main ()
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3118 ac_cv_prog_cc_g=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 CFLAGS=""
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_c_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3162 CFLAGS="-g"
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3171 main ()
3175 return 0;
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 ac_cv_prog_cc_g=yes
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3214 if test "$ac_test_CFLAGS" = set; then
3215 CFLAGS=$ac_save_CFLAGS
3216 elif test $ac_cv_prog_cc_g = yes; then
3217 if test "$GCC" = yes; then
3218 CFLAGS="-g -O2"
3219 else
3220 CFLAGS="-g"
3222 else
3223 if test "$GCC" = yes; then
3224 CFLAGS="-O2"
3225 else
3226 CFLAGS=
3229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3231 if test "${ac_cv_prog_cc_c89+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 ac_cv_prog_cc_c89=no
3235 ac_save_CC=$CC
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <stdarg.h>
3243 #include <stdio.h>
3244 #include <sys/types.h>
3245 #include <sys/stat.h>
3246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3247 struct buf { int x; };
3248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249 static char *e (p, i)
3250 char **p;
3251 int i;
3253 return p[i];
3255 static char *f (char * (*g) (char **, int), char **p, ...)
3257 char *s;
3258 va_list v;
3259 va_start (v,p);
3260 s = g (p, va_arg (v,int));
3261 va_end (v);
3262 return s;
3265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3266 function prototypes and stuff, but not '\xHH' hex character constants.
3267 These don't provoke an error unfortunately, instead are silently treated
3268 as 'x'. The following induces an error, until -std is added to get
3269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3270 array size at least. It's necessary to write '\x00'==0 to get something
3271 that's true only with -std. */
3272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275 inside strings and character constants. */
3276 #define FOO(x) 'x'
3277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3279 int test (int i, double x);
3280 struct s1 {int (*f) (int a);};
3281 struct s2 {int (*f) (double a);};
3282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283 int argc;
3284 char **argv;
3286 main ()
3288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3290 return 0;
3292 _ACEOF
3293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3296 CC="$ac_save_CC $ac_arg"
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && {
3311 test -z "$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
3314 ac_cv_prog_cc_c89=$ac_arg
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3322 rm -f core conftest.err conftest.$ac_objext
3323 test "x$ac_cv_prog_cc_c89" != "xno" && break
3324 done
3325 rm -f conftest.$ac_ext
3326 CC=$ac_save_CC
3329 # AC_CACHE_VAL
3330 case "x$ac_cv_prog_cc_c89" in
3332 { echo "$as_me:$LINENO: result: none needed" >&5
3333 echo "${ECHO_T}none needed" >&6; } ;;
3334 xno)
3335 { echo "$as_me:$LINENO: result: unsupported" >&5
3336 echo "${ECHO_T}unsupported" >&6; } ;;
3338 CC="$CC $ac_cv_prog_cc_c89"
3339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3340 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3341 esac
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 DEPDIR="${am__leading_dot}deps"
3351 ac_config_commands="$ac_config_commands depfiles"
3354 am_make=${MAKE-make}
3355 cat > confinc << 'END'
3356 am__doit:
3357 @echo done
3358 .PHONY: am__doit
3360 # If we don't find an include directive, just comment out the code.
3361 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3362 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3363 am__include="#"
3364 am__quote=
3365 _am_result=none
3366 # First try GNU make style include.
3367 echo "include confinc" > confmf
3368 # We grep out `Entering directory' and `Leaving directory'
3369 # messages which can occur if `w' ends up in MAKEFLAGS.
3370 # In particular we don't look at `^make:' because GNU make might
3371 # be invoked under some other name (usually "gmake"), in which
3372 # case it prints its new name instead of `make'.
3373 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3374 am__include=include
3375 am__quote=
3376 _am_result=GNU
3378 # Now try BSD make style include.
3379 if test "$am__include" = "#"; then
3380 echo '.include "confinc"' > confmf
3381 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3382 am__include=.include
3383 am__quote="\""
3384 _am_result=BSD
3389 { echo "$as_me:$LINENO: result: $_am_result" >&5
3390 echo "${ECHO_T}$_am_result" >&6; }
3391 rm -f confinc confmf
3393 # Check whether --enable-dependency-tracking was given.
3394 if test "${enable_dependency_tracking+set}" = set; then
3395 enableval=$enable_dependency_tracking;
3398 if test "x$enable_dependency_tracking" != xno; then
3399 am_depcomp="$ac_aux_dir/depcomp"
3400 AMDEPBACKSLASH='\'
3404 if test "x$enable_dependency_tracking" != xno; then
3405 AMDEP_TRUE=
3406 AMDEP_FALSE='#'
3407 else
3408 AMDEP_TRUE='#'
3409 AMDEP_FALSE=
3415 depcc="$CC" am_compiler_list=
3417 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3418 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3419 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3423 # We make a subdir and do the tests there. Otherwise we can end up
3424 # making bogus files that we don't know about and never remove. For
3425 # instance it was reported that on HP-UX the gcc test will end up
3426 # making a dummy file named `D' -- because `-MD' means `put the output
3427 # in D'.
3428 mkdir conftest.dir
3429 # Copy depcomp to subdir because otherwise we won't find it if we're
3430 # using a relative directory.
3431 cp "$am_depcomp" conftest.dir
3432 cd conftest.dir
3433 # We will build objects and dependencies in a subdirectory because
3434 # it helps to detect inapplicable dependency modes. For instance
3435 # both Tru64's cc and ICC support -MD to output dependencies as a
3436 # side effect of compilation, but ICC will put the dependencies in
3437 # the current directory while Tru64 will put them in the object
3438 # directory.
3439 mkdir sub
3441 am_cv_CC_dependencies_compiler_type=none
3442 if test "$am_compiler_list" = ""; then
3443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3445 for depmode in $am_compiler_list; do
3446 # Setup a source with many dependencies, because some compilers
3447 # like to wrap large dependency lists on column 80 (with \), and
3448 # we should not choose a depcomp mode which is confused by this.
3450 # We need to recreate these files for each test, as the compiler may
3451 # overwrite some of them when testing with obscure command lines.
3452 # This happens at least with the AIX C compiler.
3453 : > sub/conftest.c
3454 for i in 1 2 3 4 5 6; do
3455 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3456 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3457 # Solaris 8's {/usr,}/bin/sh.
3458 touch sub/conftst$i.h
3459 done
3460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3462 case $depmode in
3463 nosideeffect)
3464 # after this tag, mechanisms are not by side-effect, so they'll
3465 # only be used when explicitly requested
3466 if test "x$enable_dependency_tracking" = xyes; then
3467 continue
3468 else
3469 break
3472 none) break ;;
3473 esac
3474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3475 # mode. It turns out that the SunPro C++ compiler does not properly
3476 # handle `-M -o', and we need to detect this.
3477 if depmode=$depmode \
3478 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3480 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3481 >/dev/null 2>conftest.err &&
3482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3483 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485 # icc doesn't choke on unknown options, it will just issue warnings
3486 # or remarks (even with -Werror). So we grep stderr for any message
3487 # that says an option was ignored or not supported.
3488 # When given -MP, icc 7.0 and 7.1 complain thusly:
3489 # icc: Command line warning: ignoring option '-M'; no argument required
3490 # The diagnosis changed in icc 8.0:
3491 # icc: Command line remark: option '-MP' not supported
3492 if (grep 'ignoring option' conftest.err ||
3493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3494 am_cv_CC_dependencies_compiler_type=$depmode
3495 break
3498 done
3500 cd ..
3501 rm -rf conftest.dir
3502 else
3503 am_cv_CC_dependencies_compiler_type=none
3507 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3508 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3514 test "x$enable_dependency_tracking" != xno \
3515 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3516 am__fastdepCC_TRUE=
3517 am__fastdepCC_FALSE='#'
3518 else
3519 am__fastdepCC_TRUE='#'
3520 am__fastdepCC_FALSE=
3524 ac_ext=cpp
3525 ac_cpp='$CXXCPP $CPPFLAGS'
3526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3529 if test -z "$CXX"; then
3530 if test -n "$CCC"; then
3531 CXX=$CCC
3532 else
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_CXX+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -n "$CXX"; then
3544 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 CXX=$ac_cv_prog_CXX
3564 if test -n "$CXX"; then
3565 { echo "$as_me:$LINENO: result: $CXX" >&5
3566 echo "${ECHO_T}$CXX" >&6; }
3567 else
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3573 test -n "$CXX" && break
3574 done
3576 if test -z "$CXX"; then
3577 ac_ct_CXX=$CXX
3578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 if test -n "$ac_ct_CXX"; then
3588 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_ac_ct_CXX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3608 if test -n "$ac_ct_CXX"; then
3609 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3610 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3611 else
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3617 test -n "$ac_ct_CXX" && break
3618 done
3620 if test "x$ac_ct_CXX" = x; then
3621 CXX="g++"
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3626 whose name does not start with the host triplet. If you think this
3627 configuration is useful to you, please write to autoconf@gnu.org." >&5
3628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3629 whose name does not start with the host triplet. If you think this
3630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633 CXX=$ac_ct_CXX
3639 # Provide some information about the compiler.
3640 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3641 ac_compiler=`set X $ac_compile; echo $2`
3642 { (ac_try="$ac_compiler --version >&5"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compiler --version >&5") 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }
3652 { (ac_try="$ac_compiler -v >&5"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_compiler -v >&5") 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }
3662 { (ac_try="$ac_compiler -V >&5"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compiler -V >&5") 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }
3673 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3674 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3686 main ()
3688 #ifndef __GNUC__
3689 choke me
3690 #endif
3693 return 0;
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_cxx_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_compiler_gnu=yes
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_compiler_gnu=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3725 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3726 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3727 GXX=`test $ac_compiler_gnu = yes && echo yes`
3728 ac_test_CXXFLAGS=${CXXFLAGS+set}
3729 ac_save_CXXFLAGS=$CXXFLAGS
3730 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3731 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3732 if test "${ac_cv_prog_cxx_g+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3736 ac_cxx_werror_flag=yes
3737 ac_cv_prog_cxx_g=no
3738 CXXFLAGS="-g"
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } && {
3768 test -z "$ac_cxx_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
3771 ac_cv_prog_cxx_g=yes
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 CXXFLAGS=""
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3785 main ()
3789 return 0;
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_cxx_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3815 CXXFLAGS="-g"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_cxx_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3848 ac_cv_prog_cxx_g=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3866 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3867 if test "$ac_test_CXXFLAGS" = set; then
3868 CXXFLAGS=$ac_save_CXXFLAGS
3869 elif test $ac_cv_prog_cxx_g = yes; then
3870 if test "$GXX" = yes; then
3871 CXXFLAGS="-g -O2"
3872 else
3873 CXXFLAGS="-g"
3875 else
3876 if test "$GXX" = yes; then
3877 CXXFLAGS="-O2"
3878 else
3879 CXXFLAGS=
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 depcc="$CXX" am_compiler_list=
3890 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3891 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3892 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3896 # We make a subdir and do the tests there. Otherwise we can end up
3897 # making bogus files that we don't know about and never remove. For
3898 # instance it was reported that on HP-UX the gcc test will end up
3899 # making a dummy file named `D' -- because `-MD' means `put the output
3900 # in D'.
3901 mkdir conftest.dir
3902 # Copy depcomp to subdir because otherwise we won't find it if we're
3903 # using a relative directory.
3904 cp "$am_depcomp" conftest.dir
3905 cd conftest.dir
3906 # We will build objects and dependencies in a subdirectory because
3907 # it helps to detect inapplicable dependency modes. For instance
3908 # both Tru64's cc and ICC support -MD to output dependencies as a
3909 # side effect of compilation, but ICC will put the dependencies in
3910 # the current directory while Tru64 will put them in the object
3911 # directory.
3912 mkdir sub
3914 am_cv_CXX_dependencies_compiler_type=none
3915 if test "$am_compiler_list" = ""; then
3916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3918 for depmode in $am_compiler_list; do
3919 # Setup a source with many dependencies, because some compilers
3920 # like to wrap large dependency lists on column 80 (with \), and
3921 # we should not choose a depcomp mode which is confused by this.
3923 # We need to recreate these files for each test, as the compiler may
3924 # overwrite some of them when testing with obscure command lines.
3925 # This happens at least with the AIX C compiler.
3926 : > sub/conftest.c
3927 for i in 1 2 3 4 5 6; do
3928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3930 # Solaris 8's {/usr,}/bin/sh.
3931 touch sub/conftst$i.h
3932 done
3933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3935 case $depmode in
3936 nosideeffect)
3937 # after this tag, mechanisms are not by side-effect, so they'll
3938 # only be used when explicitly requested
3939 if test "x$enable_dependency_tracking" = xyes; then
3940 continue
3941 else
3942 break
3945 none) break ;;
3946 esac
3947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3948 # mode. It turns out that the SunPro C++ compiler does not properly
3949 # handle `-M -o', and we need to detect this.
3950 if depmode=$depmode \
3951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3954 >/dev/null 2>conftest.err &&
3955 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3956 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3957 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3958 # icc doesn't choke on unknown options, it will just issue warnings
3959 # or remarks (even with -Werror). So we grep stderr for any message
3960 # that says an option was ignored or not supported.
3961 # When given -MP, icc 7.0 and 7.1 complain thusly:
3962 # icc: Command line warning: ignoring option '-M'; no argument required
3963 # The diagnosis changed in icc 8.0:
3964 # icc: Command line remark: option '-MP' not supported
3965 if (grep 'ignoring option' conftest.err ||
3966 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3967 am_cv_CXX_dependencies_compiler_type=$depmode
3968 break
3971 done
3973 cd ..
3974 rm -rf conftest.dir
3975 else
3976 am_cv_CXX_dependencies_compiler_type=none
3980 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3981 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3982 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3987 test "x$enable_dependency_tracking" != xno \
3988 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3989 am__fastdepCXX_TRUE=
3990 am__fastdepCXX_FALSE='#'
3991 else
3992 am__fastdepCXX_TRUE='#'
3993 am__fastdepCXX_FALSE=
3997 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3998 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3999 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4000 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.make <<\_ACEOF
4004 SHELL = /bin/sh
4005 all:
4006 @echo '@@@%%%=$(MAKE)=@@@%%%'
4007 _ACEOF
4008 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4010 *@@@%%%=?*=@@@%%%*)
4011 eval ac_cv_prog_make_${ac_make}_set=yes;;
4013 eval ac_cv_prog_make_${ac_make}_set=no;;
4014 esac
4015 rm -f conftest.make
4017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4018 { echo "$as_me:$LINENO: result: yes" >&5
4019 echo "${ECHO_T}yes" >&6; }
4020 SET_MAKE=
4021 else
4022 { echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6; }
4024 SET_MAKE="MAKE=${MAKE-make}"
4027 # Check whether --enable-shared was given.
4028 if test "${enable_shared+set}" = set; then
4029 enableval=$enable_shared; p=${PACKAGE-default}
4030 case $enableval in
4031 yes) enable_shared=yes ;;
4032 no) enable_shared=no ;;
4034 enable_shared=no
4035 # Look at the argument we got. We use all the common list separators.
4036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4037 for pkg in $enableval; do
4038 IFS="$lt_save_ifs"
4039 if test "X$pkg" = "X$p"; then
4040 enable_shared=yes
4042 done
4043 IFS="$lt_save_ifs"
4045 esac
4046 else
4047 enable_shared=yes
4051 # Check whether --enable-static was given.
4052 if test "${enable_static+set}" = set; then
4053 enableval=$enable_static; p=${PACKAGE-default}
4054 case $enableval in
4055 yes) enable_static=yes ;;
4056 no) enable_static=no ;;
4058 enable_static=no
4059 # Look at the argument we got. We use all the common list separators.
4060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4061 for pkg in $enableval; do
4062 IFS="$lt_save_ifs"
4063 if test "X$pkg" = "X$p"; then
4064 enable_static=yes
4066 done
4067 IFS="$lt_save_ifs"
4069 esac
4070 else
4071 enable_static=yes
4075 # Check whether --enable-fast-install was given.
4076 if test "${enable_fast_install+set}" = set; then
4077 enableval=$enable_fast_install; p=${PACKAGE-default}
4078 case $enableval in
4079 yes) enable_fast_install=yes ;;
4080 no) enable_fast_install=no ;;
4082 enable_fast_install=no
4083 # Look at the argument we got. We use all the common list separators.
4084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4085 for pkg in $enableval; do
4086 IFS="$lt_save_ifs"
4087 if test "X$pkg" = "X$p"; then
4088 enable_fast_install=yes
4090 done
4091 IFS="$lt_save_ifs"
4093 esac
4094 else
4095 enable_fast_install=yes
4099 # Make sure we can run config.sub.
4100 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4101 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4102 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4103 { (exit 1); exit 1; }; }
4105 { echo "$as_me:$LINENO: checking build system type" >&5
4106 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4107 if test "${ac_cv_build+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 ac_build_alias=$build_alias
4111 test "x$ac_build_alias" = x &&
4112 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4113 test "x$ac_build_alias" = x &&
4114 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4115 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4116 { (exit 1); exit 1; }; }
4117 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4118 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4119 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4120 { (exit 1); exit 1; }; }
4123 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4124 echo "${ECHO_T}$ac_cv_build" >&6; }
4125 case $ac_cv_build in
4126 *-*-*) ;;
4127 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4128 echo "$as_me: error: invalid value of canonical build" >&2;}
4129 { (exit 1); exit 1; }; };;
4130 esac
4131 build=$ac_cv_build
4132 ac_save_IFS=$IFS; IFS='-'
4133 set x $ac_cv_build
4134 shift
4135 build_cpu=$1
4136 build_vendor=$2
4137 shift; shift
4138 # Remember, the first character of IFS is used to create $*,
4139 # except with old shells:
4140 build_os=$*
4141 IFS=$ac_save_IFS
4142 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4145 { echo "$as_me:$LINENO: checking host system type" >&5
4146 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4147 if test "${ac_cv_host+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test "x$host_alias" = x; then
4151 ac_cv_host=$ac_cv_build
4152 else
4153 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4155 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4156 { (exit 1); exit 1; }; }
4160 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4161 echo "${ECHO_T}$ac_cv_host" >&6; }
4162 case $ac_cv_host in
4163 *-*-*) ;;
4164 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4165 echo "$as_me: error: invalid value of canonical host" >&2;}
4166 { (exit 1); exit 1; }; };;
4167 esac
4168 host=$ac_cv_host
4169 ac_save_IFS=$IFS; IFS='-'
4170 set x $ac_cv_host
4171 shift
4172 host_cpu=$1
4173 host_vendor=$2
4174 shift; shift
4175 # Remember, the first character of IFS is used to create $*,
4176 # except with old shells:
4177 host_os=$*
4178 IFS=$ac_save_IFS
4179 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4182 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4183 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4184 if test "${lt_cv_path_SED+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 # Loop through the user's path and test for sed and gsed.
4188 # Then use that list of sed's as ones to test for truncation.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for lt_ac_prog in sed gsed; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4197 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4199 done
4200 done
4201 done
4202 lt_ac_max=0
4203 lt_ac_count=0
4204 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4205 # along with /bin/sed that truncates output.
4206 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4207 test ! -f $lt_ac_sed && continue
4208 cat /dev/null > conftest.in
4209 lt_ac_count=0
4210 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4211 # Check for GNU sed and select it if it is found.
4212 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4213 lt_cv_path_SED=$lt_ac_sed
4214 break
4216 while true; do
4217 cat conftest.in conftest.in >conftest.tmp
4218 mv conftest.tmp conftest.in
4219 cp conftest.in conftest.nl
4220 echo >>conftest.nl
4221 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4222 cmp -s conftest.out conftest.nl || break
4223 # 10000 chars as input seems more than enough
4224 test $lt_ac_count -gt 10 && break
4225 lt_ac_count=`expr $lt_ac_count + 1`
4226 if test $lt_ac_count -gt $lt_ac_max; then
4227 lt_ac_max=$lt_ac_count
4228 lt_cv_path_SED=$lt_ac_sed
4230 done
4231 done
4235 SED=$lt_cv_path_SED
4236 { echo "$as_me:$LINENO: result: $SED" >&5
4237 echo "${ECHO_T}$SED" >&6; }
4239 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4240 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4241 if test "${ac_cv_path_GREP+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 # Extract the first word of "grep ggrep" to use in msg output
4245 if test -z "$GREP"; then
4246 set dummy grep ggrep; ac_prog_name=$2
4247 if test "${ac_cv_path_GREP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 ac_path_GREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in grep ggrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4261 # Check for GNU ac_path_GREP and select it if it is found.
4262 # Check for GNU $ac_path_GREP
4263 case `"$ac_path_GREP" --version 2>&1` in
4264 *GNU*)
4265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4267 ac_count=0
4268 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4269 while :
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 echo 'GREP' >> "conftest.nl"
4275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 ac_count=`expr $ac_count + 1`
4278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_GREP="$ac_path_GREP"
4281 ac_path_GREP_max=$ac_count
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4285 done
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4290 $ac_path_GREP_found && break 3
4291 done
4292 done
4294 done
4295 IFS=$as_save_IFS
4300 GREP="$ac_cv_path_GREP"
4301 if test -z "$GREP"; then
4302 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4303 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4304 { (exit 1); exit 1; }; }
4307 else
4308 ac_cv_path_GREP=$GREP
4313 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4314 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4315 GREP="$ac_cv_path_GREP"
4318 { echo "$as_me:$LINENO: checking for egrep" >&5
4319 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4320 if test "${ac_cv_path_EGREP+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4324 then ac_cv_path_EGREP="$GREP -E"
4325 else
4326 # Extract the first word of "egrep" to use in msg output
4327 if test -z "$EGREP"; then
4328 set dummy egrep; ac_prog_name=$2
4329 if test "${ac_cv_path_EGREP+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 ac_path_EGREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in egrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4343 # Check for GNU ac_path_EGREP and select it if it is found.
4344 # Check for GNU $ac_path_EGREP
4345 case `"$ac_path_EGREP" --version 2>&1` in
4346 *GNU*)
4347 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4349 ac_count=0
4350 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4351 while :
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 echo 'EGREP' >> "conftest.nl"
4357 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 ac_count=`expr $ac_count + 1`
4360 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_EGREP="$ac_path_EGREP"
4363 ac_path_EGREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4372 $ac_path_EGREP_found && break 3
4373 done
4374 done
4376 done
4377 IFS=$as_save_IFS
4382 EGREP="$ac_cv_path_EGREP"
4383 if test -z "$EGREP"; then
4384 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4385 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4386 { (exit 1); exit 1; }; }
4389 else
4390 ac_cv_path_EGREP=$EGREP
4396 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4397 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4398 EGREP="$ac_cv_path_EGREP"
4402 # Check whether --with-gnu-ld was given.
4403 if test "${with_gnu_ld+set}" = set; then
4404 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4405 else
4406 with_gnu_ld=no
4409 ac_prog=ld
4410 if test "$GCC" = yes; then
4411 # Check if gcc -print-prog-name=ld gives a path.
4412 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4413 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4414 case $host in
4415 *-*-mingw*)
4416 # gcc leaves a trailing carriage return which upsets mingw
4417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4420 esac
4421 case $ac_prog in
4422 # Accept absolute paths.
4423 [\\/]* | ?:[\\/]*)
4424 re_direlt='/[^/][^/]*/\.\./'
4425 # Canonicalize the pathname of ld
4426 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4427 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4428 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4429 done
4430 test -z "$LD" && LD="$ac_prog"
4433 # If it fails, then pretend we aren't using GCC.
4434 ac_prog=ld
4437 # If it is relative, then search for the first ld in PATH.
4438 with_gnu_ld=unknown
4440 esac
4441 elif test "$with_gnu_ld" = yes; then
4442 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4444 else
4445 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4448 if test "${lt_cv_path_LD+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 if test -z "$LD"; then
4452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453 for ac_dir in $PATH; do
4454 IFS="$lt_save_ifs"
4455 test -z "$ac_dir" && ac_dir=.
4456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4457 lt_cv_path_LD="$ac_dir/$ac_prog"
4458 # Check to see if the program is GNU ld. I'd rather use --version,
4459 # but apparently some variants of GNU ld only accept -v.
4460 # Break only if it was the GNU/non-GNU ld that we prefer.
4461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4462 *GNU* | *'with BFD'*)
4463 test "$with_gnu_ld" != no && break
4466 test "$with_gnu_ld" != yes && break
4468 esac
4470 done
4471 IFS="$lt_save_ifs"
4472 else
4473 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4477 LD="$lt_cv_path_LD"
4478 if test -n "$LD"; then
4479 { echo "$as_me:$LINENO: result: $LD" >&5
4480 echo "${ECHO_T}$LD" >&6; }
4481 else
4482 { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4485 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4486 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4487 { (exit 1); exit 1; }; }
4488 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4489 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4490 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4494 case `$LD -v 2>&1 </dev/null` in
4495 *GNU* | *'with BFD'*)
4496 lt_cv_prog_gnu_ld=yes
4499 lt_cv_prog_gnu_ld=no
4501 esac
4503 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4504 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4505 with_gnu_ld=$lt_cv_prog_gnu_ld
4508 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4509 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4510 if test "${lt_cv_ld_reload_flag+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 lt_cv_ld_reload_flag='-r'
4515 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4516 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4517 reload_flag=$lt_cv_ld_reload_flag
4518 case $reload_flag in
4519 "" | " "*) ;;
4520 *) reload_flag=" $reload_flag" ;;
4521 esac
4522 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4523 case $host_os in
4524 darwin*)
4525 if test "$GCC" = yes; then
4526 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4527 else
4528 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4531 esac
4533 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4534 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4535 if test "${lt_cv_path_NM+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 if test -n "$NM"; then
4539 # Let the user override the test.
4540 lt_cv_path_NM="$NM"
4541 else
4542 lt_nm_to_check="${ac_tool_prefix}nm"
4543 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4544 lt_nm_to_check="$lt_nm_to_check nm"
4546 for lt_tmp_nm in $lt_nm_to_check; do
4547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4548 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4549 IFS="$lt_save_ifs"
4550 test -z "$ac_dir" && ac_dir=.
4551 tmp_nm="$ac_dir/$lt_tmp_nm"
4552 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4553 # Check to see if the nm accepts a BSD-compat flag.
4554 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4555 # nm: unknown option "B" ignored
4556 # Tru64's nm complains that /dev/null is an invalid object file
4557 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4558 */dev/null* | *'Invalid file or object type'*)
4559 lt_cv_path_NM="$tmp_nm -B"
4560 break
4563 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4564 */dev/null*)
4565 lt_cv_path_NM="$tmp_nm -p"
4566 break
4569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4570 continue # so that we can try to find one that supports BSD flags
4572 esac
4574 esac
4576 done
4577 IFS="$lt_save_ifs"
4578 done
4579 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4582 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4583 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4584 NM="$lt_cv_path_NM"
4586 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4587 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4588 LN_S=$as_ln_s
4589 if test "$LN_S" = "ln -s"; then
4590 { echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6; }
4592 else
4593 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4594 echo "${ECHO_T}no, using $LN_S" >&6; }
4597 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4598 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4599 if test "${lt_cv_deplibs_check_method+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 lt_cv_file_magic_cmd='$MAGIC_CMD'
4603 lt_cv_file_magic_test_file=
4604 lt_cv_deplibs_check_method='unknown'
4605 # Need to set the preceding variable on all platforms that support
4606 # interlibrary dependencies.
4607 # 'none' -- dependencies not supported.
4608 # `unknown' -- same as none, but documents that we really don't know.
4609 # 'pass_all' -- all dependencies passed with no checks.
4610 # 'test_compile' -- check by making test program.
4611 # 'file_magic [[regex]]' -- check by looking for files in library path
4612 # which responds to the $file_magic_cmd with a given extended regex.
4613 # If you have `file' or equivalent on your system and you're not sure
4614 # whether `pass_all' will *always* work, you probably want this one.
4616 case $host_os in
4617 aix4* | aix5*)
4618 lt_cv_deplibs_check_method=pass_all
4621 beos*)
4622 lt_cv_deplibs_check_method=pass_all
4625 bsdi[45]*)
4626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4627 lt_cv_file_magic_cmd='/usr/bin/file -L'
4628 lt_cv_file_magic_test_file=/shlib/libc.so
4631 cygwin*)
4632 # func_win32_libid is a shell function defined in ltmain.sh
4633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4634 lt_cv_file_magic_cmd='func_win32_libid'
4637 mingw* | pw32*)
4638 # Base MSYS/MinGW do not provide the 'file' command needed by
4639 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4640 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4641 lt_cv_file_magic_cmd='$OBJDUMP -f'
4644 darwin* | rhapsody*)
4645 lt_cv_deplibs_check_method=pass_all
4648 freebsd* | dragonfly*)
4649 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4650 case $host_cpu in
4651 i*86 )
4652 # Not sure whether the presence of OpenBSD here was a mistake.
4653 # Let's accept both of them until this is cleared up.
4654 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4655 lt_cv_file_magic_cmd=/usr/bin/file
4656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4658 esac
4659 else
4660 lt_cv_deplibs_check_method=pass_all
4664 gnu*)
4665 lt_cv_deplibs_check_method=pass_all
4668 hpux10.20* | hpux11*)
4669 lt_cv_file_magic_cmd=/usr/bin/file
4670 case $host_cpu in
4671 ia64*)
4672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4673 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4675 hppa*64*)
4676 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]'
4677 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4681 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4683 esac
4686 interix3*)
4687 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4691 irix5* | irix6* | nonstopux*)
4692 case $LD in
4693 *-32|*"-32 ") libmagic=32-bit;;
4694 *-n32|*"-n32 ") libmagic=N32;;
4695 *-64|*"-64 ") libmagic=64-bit;;
4696 *) libmagic=never-match;;
4697 esac
4698 lt_cv_deplibs_check_method=pass_all
4701 # This must be Linux ELF.
4702 linux* | k*bsd*-gnu)
4703 lt_cv_deplibs_check_method=pass_all
4706 netbsd* | netbsdelf*-gnu)
4707 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4709 else
4710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4714 newos6*)
4715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4716 lt_cv_file_magic_cmd=/usr/bin/file
4717 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4720 nto-qnx*)
4721 lt_cv_deplibs_check_method=unknown
4724 openbsd*)
4725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4727 else
4728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4732 osf3* | osf4* | osf5*)
4733 lt_cv_deplibs_check_method=pass_all
4736 solaris*)
4737 lt_cv_deplibs_check_method=pass_all
4740 sysv4 | sysv4.3*)
4741 case $host_vendor in
4742 motorola)
4743 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]'
4744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4746 ncr)
4747 lt_cv_deplibs_check_method=pass_all
4749 sequent)
4750 lt_cv_file_magic_cmd='/bin/file'
4751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4753 sni)
4754 lt_cv_file_magic_cmd='/bin/file'
4755 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4756 lt_cv_file_magic_test_file=/lib/libc.so
4758 siemens)
4759 lt_cv_deplibs_check_method=pass_all
4762 lt_cv_deplibs_check_method=pass_all
4764 esac
4767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4768 lt_cv_deplibs_check_method=pass_all
4770 esac
4773 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4774 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4775 file_magic_cmd=$lt_cv_file_magic_cmd
4776 deplibs_check_method=$lt_cv_deplibs_check_method
4777 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4782 # If no C compiler was specified, use CC.
4783 LTCC=${LTCC-"$CC"}
4785 # If no C compiler flags were specified, use CFLAGS.
4786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4788 # Allow CC to be a program name with arguments.
4789 compiler=$CC
4792 # Check whether --enable-libtool-lock was given.
4793 if test "${enable_libtool_lock+set}" = set; then
4794 enableval=$enable_libtool_lock;
4797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4799 # Some flags need to be propagated to the compiler or linker for good
4800 # libtool support.
4801 case $host in
4802 ia64-*-hpux*)
4803 # Find out which ABI we are using.
4804 echo 'int i;' > conftest.$ac_ext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
4810 case `/usr/bin/file conftest.$ac_objext` in
4811 *ELF-32*)
4812 HPUX_IA64_MODE="32"
4814 *ELF-64*)
4815 HPUX_IA64_MODE="64"
4817 esac
4819 rm -rf conftest*
4821 *-*-irix6*)
4822 # Find out which ABI we are using.
4823 echo '#line 4823 "configure"' > conftest.$ac_ext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825 (eval $ac_compile) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; then
4829 if test "$lt_cv_prog_gnu_ld" = yes; then
4830 case `/usr/bin/file conftest.$ac_objext` in
4831 *32-bit*)
4832 LD="${LD-ld} -melf32bsmip"
4834 *N32*)
4835 LD="${LD-ld} -melf32bmipn32"
4837 *64-bit*)
4838 LD="${LD-ld} -melf64bmip"
4840 esac
4841 else
4842 case `/usr/bin/file conftest.$ac_objext` in
4843 *32-bit*)
4844 LD="${LD-ld} -32"
4846 *N32*)
4847 LD="${LD-ld} -n32"
4849 *64-bit*)
4850 LD="${LD-ld} -64"
4852 esac
4855 rm -rf conftest*
4858 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4859 # Find out which ABI we are using.
4860 echo 'int i;' > conftest.$ac_ext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; then
4866 case `/usr/bin/file conftest.o` in
4867 *32-bit*)
4868 case $host in
4869 x86_64-*linux*)
4870 LD="${LD-ld} -m elf_i386"
4872 ppc64-*linux*|powerpc64-*linux*)
4873 LD="${LD-ld} -m elf32ppclinux"
4875 s390x-*linux*)
4876 LD="${LD-ld} -m elf_s390"
4878 sparc64-*linux*)
4879 LD="${LD-ld} -m elf32_sparc"
4881 esac
4883 *64-bit*)
4884 case $host in
4885 x86_64-*linux*)
4886 LD="${LD-ld} -m elf_x86_64"
4888 ppc*-*linux*|powerpc*-*linux*)
4889 LD="${LD-ld} -m elf64ppc"
4891 s390*-*linux*)
4892 LD="${LD-ld} -m elf64_s390"
4894 sparc*-*linux*)
4895 LD="${LD-ld} -m elf64_sparc"
4897 esac
4899 esac
4901 rm -rf conftest*
4904 *-*-sco3.2v5*)
4905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4906 SAVE_CFLAGS="$CFLAGS"
4907 CFLAGS="$CFLAGS -belf"
4908 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4909 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4910 if test "${lt_cv_cc_needs_belf+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4927 main ()
4931 return 0;
4933 _ACEOF
4934 rm -f conftest.$ac_objext conftest$ac_exeext
4935 if { (ac_try="$ac_link"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_link") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest$ac_exeext &&
4951 $as_test_x conftest$ac_exeext; then
4952 lt_cv_cc_needs_belf=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 lt_cv_cc_needs_belf=no
4960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4961 conftest$ac_exeext conftest.$ac_ext
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4970 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4971 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4973 CFLAGS="$SAVE_CFLAGS"
4976 sparc*-*solaris*)
4977 # Find out which ABI we are using.
4978 echo 'int i;' > conftest.$ac_ext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; then
4984 case `/usr/bin/file conftest.o` in
4985 *64-bit*)
4986 case $lt_cv_prog_gnu_ld in
4987 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4988 *) LD="${LD-ld} -64" ;;
4989 esac
4991 esac
4993 rm -rf conftest*
4997 esac
4999 need_locks="$enable_libtool_lock"
5002 ac_ext=c
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5008 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5009 # On Suns, sometimes $CPP names a directory.
5010 if test -n "$CPP" && test -d "$CPP"; then
5011 CPP=
5013 if test -z "$CPP"; then
5014 if test "${ac_cv_prog_CPP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 # Double quotes because CPP needs to be expanded
5018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5020 ac_preproc_ok=false
5021 for ac_c_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null && {
5055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 }; then
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Broken: fails on valid input.
5064 continue
5067 rm -f conftest.err conftest.$ac_ext
5069 # OK, works on sane cases. Now check whether nonexistent headers
5070 # can be detected and how.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 }; then
5095 # Broken: success on invalid input.
5096 continue
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 # Passes both tests.
5102 ac_preproc_ok=:
5103 break
5106 rm -f conftest.err conftest.$ac_ext
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then
5112 break
5115 done
5116 ac_cv_prog_CPP=$CPP
5119 CPP=$ac_cv_prog_CPP
5120 else
5121 ac_cv_prog_CPP=$CPP
5123 { echo "$as_me:$LINENO: result: $CPP" >&5
5124 echo "${ECHO_T}$CPP" >&6; }
5125 ac_preproc_ok=false
5126 for ac_c_preproc_warn_flag in '' yes
5128 # Use a header file that comes with gcc, so configuring glibc
5129 # with a fresh cross-compiler works.
5130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131 # <limits.h> exists even on freestanding compilers.
5132 # On the NeXT, cc -E runs the code through the compiler's parser,
5133 # not just through cpp. "Syntax error" is here to catch this case.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if { (ac_try="$ac_cpp conftest.$ac_ext"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null && {
5160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 }; then
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Broken: fails on valid input.
5169 continue
5172 rm -f conftest.err conftest.$ac_ext
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <ac_nonexistent.h>
5183 _ACEOF
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
5200 # Broken: success on invalid input.
5201 continue
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5211 rm -f conftest.err conftest.$ac_ext
5213 done
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then
5218 else
5219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5220 See \`config.log' for more details." >&5
5221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5222 See \`config.log' for more details." >&2;}
5223 { (exit 1); exit 1; }; }
5226 ac_ext=c
5227 ac_cpp='$CPP $CPPFLAGS'
5228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5234 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5235 if test "${ac_cv_header_stdc+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245 #include <stdarg.h>
5246 #include <string.h>
5247 #include <float.h>
5250 main ()
5254 return 0;
5256 _ACEOF
5257 rm -f conftest.$ac_objext
5258 if { (ac_try="$ac_compile"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_compile") 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest.$ac_objext; then
5274 ac_cv_header_stdc=yes
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_header_stdc=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 if test $ac_cv_header_stdc = yes; then
5285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #include <string.h>
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "memchr" >/dev/null 2>&1; then
5298 else
5299 ac_cv_header_stdc=no
5301 rm -f conftest*
5305 if test $ac_cv_header_stdc = yes; then
5306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <stdlib.h>
5315 _ACEOF
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317 $EGREP "free" >/dev/null 2>&1; then
5319 else
5320 ac_cv_header_stdc=no
5322 rm -f conftest*
5326 if test $ac_cv_header_stdc = yes; then
5327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5328 if test "$cross_compiling" = yes; then
5330 else
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <ctype.h>
5338 #include <stdlib.h>
5339 #if ((' ' & 0x0FF) == 0x020)
5340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5342 #else
5343 # define ISLOWER(c) \
5344 (('a' <= (c) && (c) <= 'i') \
5345 || ('j' <= (c) && (c) <= 'r') \
5346 || ('s' <= (c) && (c) <= 'z'))
5347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5348 #endif
5350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5352 main ()
5354 int i;
5355 for (i = 0; i < 256; i++)
5356 if (XOR (islower (i), ISLOWER (i))
5357 || toupper (i) != TOUPPER (i))
5358 return 2;
5359 return 0;
5361 _ACEOF
5362 rm -f conftest$ac_exeext
5363 if { (ac_try="$ac_link"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_link") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_try") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5383 else
5384 echo "$as_me: program exited with status $ac_status" >&5
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 ( exit $ac_status )
5389 ac_cv_header_stdc=no
5391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5398 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5399 if test $ac_cv_header_stdc = yes; then
5401 cat >>confdefs.h <<\_ACEOF
5402 #define STDC_HEADERS 1
5403 _ACEOF
5407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418 inttypes.h stdint.h unistd.h
5420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5434 #include <$ac_header>
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (ac_try="$ac_compile"
5438 case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compile") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && {
5450 test -z "$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 } && test -s conftest.$ac_objext; then
5453 eval "$as_ac_Header=yes"
5454 else
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 eval "$as_ac_Header=no"
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_res=`eval echo '${'$as_ac_Header'}'`
5464 { echo "$as_me:$LINENO: result: $ac_res" >&5
5465 echo "${ECHO_T}$ac_res" >&6; }
5466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5469 _ACEOF
5473 done
5477 for ac_header in dlfcn.h
5479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 ac_res=`eval echo '${'$as_ac_Header'}'`
5487 { echo "$as_me:$LINENO: result: $ac_res" >&5
5488 echo "${ECHO_T}$ac_res" >&6; }
5489 else
5490 # Is the header compilable?
5491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_includes_default
5500 #include <$ac_header>
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_header_compiler=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_header_compiler=no
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5529 echo "${ECHO_T}$ac_header_compiler" >&6; }
5531 # Is the header present?
5532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 #include <$ac_header>
5541 _ACEOF
5542 if { (ac_try="$ac_cpp conftest.$ac_ext"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null && {
5555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 }; then
5558 ac_header_preproc=yes
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_header_preproc=no
5566 rm -f conftest.err conftest.$ac_ext
5567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5568 echo "${ECHO_T}$ac_header_preproc" >&6; }
5570 # So? What about this header?
5571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5572 yes:no: )
5573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5577 ac_header_preproc=yes
5579 no:yes:* )
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5592 ( cat <<\_ASBOX
5593 ## ------------------------------------------------ ##
5594 ## Report this to barry-devel@lists.sourceforge.net ##
5595 ## ------------------------------------------------ ##
5596 _ASBOX
5597 ) | sed "s/^/$as_me: WARNING: /" >&2
5599 esac
5600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 eval "$as_ac_Header=\$ac_header_preproc"
5607 ac_res=`eval echo '${'$as_ac_Header'}'`
5608 { echo "$as_me:$LINENO: result: $ac_res" >&5
5609 echo "${ECHO_T}$ac_res" >&6; }
5612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 _ACEOF
5619 done
5623 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5624 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5625 (test "X$CXX" != "Xg++"))) ; then
5626 ac_ext=cpp
5627 ac_cpp='$CXXCPP $CPPFLAGS'
5628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5632 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5633 if test -z "$CXXCPP"; then
5634 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 # Double quotes because CXXCPP needs to be expanded
5638 for CXXCPP in "$CXX -E" "/lib/cpp"
5640 ac_preproc_ok=false
5641 for ac_cxx_preproc_warn_flag in '' yes
5643 # Use a header file that comes with gcc, so configuring glibc
5644 # with a fresh cross-compiler works.
5645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 # <limits.h> exists even on freestanding compilers.
5647 # On the NeXT, cc -E runs the code through the compiler's parser,
5648 # not just through cpp. "Syntax error" is here to catch this case.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #ifdef __STDC__
5656 # include <limits.h>
5657 #else
5658 # include <assert.h>
5659 #endif
5660 Syntax error
5661 _ACEOF
5662 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null && {
5675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5676 test ! -s conftest.err
5677 }; then
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 # Broken: fails on valid input.
5684 continue
5687 rm -f conftest.err conftest.$ac_ext
5689 # OK, works on sane cases. Now check whether nonexistent headers
5690 # can be detected and how.
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <ac_nonexistent.h>
5698 _ACEOF
5699 if { (ac_try="$ac_cpp conftest.$ac_ext"
5700 case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null && {
5712 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5713 test ! -s conftest.err
5714 }; then
5715 # Broken: success on invalid input.
5716 continue
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5721 # Passes both tests.
5722 ac_preproc_ok=:
5723 break
5726 rm -f conftest.err conftest.$ac_ext
5728 done
5729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5730 rm -f conftest.err conftest.$ac_ext
5731 if $ac_preproc_ok; then
5732 break
5735 done
5736 ac_cv_prog_CXXCPP=$CXXCPP
5739 CXXCPP=$ac_cv_prog_CXXCPP
5740 else
5741 ac_cv_prog_CXXCPP=$CXXCPP
5743 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5744 echo "${ECHO_T}$CXXCPP" >&6; }
5745 ac_preproc_ok=false
5746 for ac_cxx_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765 Syntax error
5766 _ACEOF
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } >/dev/null && {
5780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781 test ! -s conftest.err
5782 }; then
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 # Broken: fails on valid input.
5789 continue
5792 rm -f conftest.err conftest.$ac_ext
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5819 }; then
5820 # Broken: success on invalid input.
5821 continue
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 # Passes both tests.
5827 ac_preproc_ok=:
5828 break
5831 rm -f conftest.err conftest.$ac_ext
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5838 else
5839 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5840 See \`config.log' for more details." >&5
5841 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5842 See \`config.log' for more details." >&2;}
5843 { (exit 1); exit 1; }; }
5846 ac_ext=cpp
5847 ac_cpp='$CXXCPP $CPPFLAGS'
5848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5855 ac_ext=f
5856 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5857 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5859 if test -n "$ac_tool_prefix"; then
5860 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
5862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_F77+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 if test -n "$F77"; then
5870 ac_cv_prog_F77="$F77" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5883 done
5884 done
5885 IFS=$as_save_IFS
5889 F77=$ac_cv_prog_F77
5890 if test -n "$F77"; then
5891 { echo "$as_me:$LINENO: result: $F77" >&5
5892 echo "${ECHO_T}$F77" >&6; }
5893 else
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 test -n "$F77" && break
5900 done
5902 if test -z "$F77"; then
5903 ac_ct_F77=$F77
5904 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
5906 # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if test -n "$ac_ct_F77"; then
5914 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_F77="$ac_prog"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5934 if test -n "$ac_ct_F77"; then
5935 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5936 echo "${ECHO_T}$ac_ct_F77" >&6; }
5937 else
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5943 test -n "$ac_ct_F77" && break
5944 done
5946 if test "x$ac_ct_F77" = x; then
5947 F77=""
5948 else
5949 case $cross_compiling:$ac_tool_warned in
5950 yes:)
5951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5952 whose name does not start with the host triplet. If you think this
5953 configuration is useful to you, please write to autoconf@gnu.org." >&5
5954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5955 whose name does not start with the host triplet. If you think this
5956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959 F77=$ac_ct_F77
5964 # Provide some information about the compiler.
5965 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5966 ac_compiler=`set X $ac_compile; echo $2`
5967 { (ac_try="$ac_compiler --version >&5"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_compiler --version >&5") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }
5977 { (ac_try="$ac_compiler -v >&5"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_compiler -v >&5") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }
5987 { (ac_try="$ac_compiler -V >&5"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_compiler -V >&5") 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }
5997 rm -f a.out
5999 # If we don't use `.F' as extension, the preprocessor is not run on the
6000 # input file. (Note that this only needs to work for GNU compilers.)
6001 ac_save_ext=$ac_ext
6002 ac_ext=F
6003 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6004 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6005 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 program main
6010 #ifndef __GNUC__
6011 choke me
6012 #endif
6015 _ACEOF
6016 rm -f conftest.$ac_objext
6017 if { (ac_try="$ac_compile"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compile") 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } && {
6030 test -z "$ac_f77_werror_flag" ||
6031 test ! -s conftest.err
6032 } && test -s conftest.$ac_objext; then
6033 ac_compiler_gnu=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_compiler_gnu=no
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6045 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6046 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6047 ac_ext=$ac_save_ext
6048 ac_test_FFLAGS=${FFLAGS+set}
6049 ac_save_FFLAGS=$FFLAGS
6050 FFLAGS=
6051 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6052 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6053 if test "${ac_cv_prog_f77_g+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 FFLAGS=-g
6057 cat >conftest.$ac_ext <<_ACEOF
6058 program main
6061 _ACEOF
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6064 case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_f77_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 ac_cv_prog_f77_g=yes
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_cv_prog_f77_g=no
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6091 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6092 if test "$ac_test_FFLAGS" = set; then
6093 FFLAGS=$ac_save_FFLAGS
6094 elif test $ac_cv_prog_f77_g = yes; then
6095 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6096 FFLAGS="-g -O2"
6097 else
6098 FFLAGS="-g"
6100 else
6101 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6102 FFLAGS="-O2"
6103 else
6104 FFLAGS=
6108 G77=`test $ac_compiler_gnu = yes && echo yes`
6109 ac_ext=c
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6117 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6119 # find the maximum length of command line arguments
6120 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6121 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6122 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6126 teststring="ABCD"
6128 case $build_os in
6129 msdosdjgpp*)
6130 # On DJGPP, this test can blow up pretty badly due to problems in libc
6131 # (any single argument exceeding 2000 bytes causes a buffer overrun
6132 # during glob expansion). Even if it were fixed, the result of this
6133 # check would be larger than it should be.
6134 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6137 gnu*)
6138 # Under GNU Hurd, this test is not required because there is
6139 # no limit to the length of command line arguments.
6140 # Libtool will interpret -1 as no limit whatsoever
6141 lt_cv_sys_max_cmd_len=-1;
6144 cygwin* | mingw*)
6145 # On Win9x/ME, this test blows up -- it succeeds, but takes
6146 # about 5 minutes as the teststring grows exponentially.
6147 # Worse, since 9x/ME are not pre-emptively multitasking,
6148 # you end up with a "frozen" computer, even though with patience
6149 # the test eventually succeeds (with a max line length of 256k).
6150 # Instead, let's just punt: use the minimum linelength reported by
6151 # all of the supported platforms: 8192 (on NT/2K/XP).
6152 lt_cv_sys_max_cmd_len=8192;
6155 amigaos*)
6156 # On AmigaOS with pdksh, this test takes hours, literally.
6157 # So we just punt and use a minimum line length of 8192.
6158 lt_cv_sys_max_cmd_len=8192;
6161 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6162 # This has been around since 386BSD, at least. Likely further.
6163 if test -x /sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6165 elif test -x /usr/sbin/sysctl; then
6166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6167 else
6168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6170 # And add a safety zone
6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6175 interix*)
6176 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6177 lt_cv_sys_max_cmd_len=196608
6180 osf*)
6181 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6182 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6183 # nice to cause kernel panics so lets avoid the loop below.
6184 # First set a reasonable default.
6185 lt_cv_sys_max_cmd_len=16384
6187 if test -x /sbin/sysconfig; then
6188 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6189 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6190 esac
6193 sco3.2v5*)
6194 lt_cv_sys_max_cmd_len=102400
6196 sysv5* | sco5v6* | sysv4.2uw2*)
6197 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6198 if test -n "$kargmax"; then
6199 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6200 else
6201 lt_cv_sys_max_cmd_len=32768
6205 # If test is not a shell built-in, we'll probably end up computing a
6206 # maximum length that is only half of the actual maximum length, but
6207 # we can't tell.
6208 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6209 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6210 = "XX$teststring") >/dev/null 2>&1 &&
6211 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6212 lt_cv_sys_max_cmd_len=$new_result &&
6213 test $i != 17 # 1/2 MB should be enough
6215 i=`expr $i + 1`
6216 teststring=$teststring$teststring
6217 done
6218 teststring=
6219 # Add a significant safety factor because C++ compilers can tack on massive
6220 # amounts of additional arguments before passing them to the linker.
6221 # It appears as though 1/2 is a usable value.
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6224 esac
6228 if test -n $lt_cv_sys_max_cmd_len ; then
6229 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6230 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6231 else
6232 { echo "$as_me:$LINENO: result: none" >&5
6233 echo "${ECHO_T}none" >&6; }
6239 # Check for command to grab the raw symbol name followed by C symbol from nm.
6240 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6241 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6242 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6246 # These are sane defaults that work on at least a few old systems.
6247 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6249 # Character class describing NM global symbol codes.
6250 symcode='[BCDEGRST]'
6252 # Regexp to match symbols that can be accessed directly from C.
6253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6255 # Transform an extracted symbol line into a proper C declaration
6256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6258 # Transform an extracted symbol line into symbol name and symbol address
6259 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'"
6261 # Define system-specific variables.
6262 case $host_os in
6263 aix*)
6264 symcode='[BCDT]'
6266 cygwin* | mingw* | pw32*)
6267 symcode='[ABCDGISTW]'
6269 hpux*) # Its linker distinguishes data from code symbols
6270 if test "$host_cpu" = ia64; then
6271 symcode='[ABCDEGRST]'
6273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6274 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'"
6276 linux* | k*bsd*-gnu)
6277 if test "$host_cpu" = ia64; then
6278 symcode='[ABCDGIRSTW]'
6279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6280 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'"
6283 irix* | nonstopux*)
6284 symcode='[BCDEGRST]'
6286 osf*)
6287 symcode='[BCDEGQRST]'
6289 solaris*)
6290 symcode='[BDRT]'
6292 sco3.2v5*)
6293 symcode='[DT]'
6295 sysv4.2uw2*)
6296 symcode='[DT]'
6298 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6299 symcode='[ABDT]'
6301 sysv4)
6302 symcode='[DFNSTU]'
6304 esac
6306 # Handle CRLF in mingw tool chain
6307 opt_cr=
6308 case $build_os in
6309 mingw*)
6310 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6312 esac
6314 # If we're using GNU nm, then use its standard symbol codes.
6315 case `$NM -V 2>&1` in
6316 *GNU* | *'with BFD'*)
6317 symcode='[ABCDGIRSTW]' ;;
6318 esac
6320 # Try without a prefix undercore, then with it.
6321 for ac_symprfx in "" "_"; do
6323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6324 symxfrm="\\1 $ac_symprfx\\2 \\2"
6326 # Write the raw and C identifiers.
6327 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6329 # Check to see that the pipe works correctly.
6330 pipe_works=no
6332 rm -f conftest*
6333 cat > conftest.$ac_ext <<EOF
6334 #ifdef __cplusplus
6335 extern "C" {
6336 #endif
6337 char nm_test_var;
6338 void nm_test_func(){}
6339 #ifdef __cplusplus
6341 #endif
6342 int main(){nm_test_var='a';nm_test_func();return(0);}
6345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346 (eval $ac_compile) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; then
6350 # Now try to grab the symbols.
6351 nlist=conftest.nm
6352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && test -s "$nlist"; then
6357 # Try sorting and uniquifying the output.
6358 if sort "$nlist" | uniq > "$nlist"T; then
6359 mv -f "$nlist"T "$nlist"
6360 else
6361 rm -f "$nlist"T
6364 # Make sure that we snagged all the symbols we need.
6365 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6366 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6367 cat <<EOF > conftest.$ac_ext
6368 #ifdef __cplusplus
6369 extern "C" {
6370 #endif
6373 # Now generate the symbol file.
6374 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6376 cat <<EOF >> conftest.$ac_ext
6377 #if defined (__STDC__) && __STDC__
6378 # define lt_ptr_t void *
6379 #else
6380 # define lt_ptr_t char *
6381 # define const
6382 #endif
6384 /* The mapping between symbol names and symbols. */
6385 const struct {
6386 const char *name;
6387 lt_ptr_t address;
6389 lt_preloaded_symbols[] =
6392 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6393 cat <<\EOF >> conftest.$ac_ext
6394 {0, (lt_ptr_t) 0}
6397 #ifdef __cplusplus
6399 #endif
6401 # Now try linking the two files.
6402 mv conftest.$ac_objext conftstm.$ac_objext
6403 lt_save_LIBS="$LIBS"
6404 lt_save_CFLAGS="$CFLAGS"
6405 LIBS="conftstm.$ac_objext"
6406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6412 pipe_works=yes
6414 LIBS="$lt_save_LIBS"
6415 CFLAGS="$lt_save_CFLAGS"
6416 else
6417 echo "cannot find nm_test_func in $nlist" >&5
6419 else
6420 echo "cannot find nm_test_var in $nlist" >&5
6422 else
6423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6425 else
6426 echo "$progname: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6429 rm -f conftest* conftst*
6431 # Do not use the global_symbol_pipe unless it works.
6432 if test "$pipe_works" = yes; then
6433 break
6434 else
6435 lt_cv_sys_global_symbol_pipe=
6437 done
6441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6442 lt_cv_sys_global_symbol_to_cdecl=
6444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6445 { echo "$as_me:$LINENO: result: failed" >&5
6446 echo "${ECHO_T}failed" >&6; }
6447 else
6448 { echo "$as_me:$LINENO: result: ok" >&5
6449 echo "${ECHO_T}ok" >&6; }
6452 { echo "$as_me:$LINENO: checking for objdir" >&5
6453 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6454 if test "${lt_cv_objdir+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 rm -f .libs 2>/dev/null
6458 mkdir .libs 2>/dev/null
6459 if test -d .libs; then
6460 lt_cv_objdir=.libs
6461 else
6462 # MS-DOS does not allow filenames that begin with a dot.
6463 lt_cv_objdir=_libs
6465 rmdir .libs 2>/dev/null
6467 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6468 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6469 objdir=$lt_cv_objdir
6475 case $host_os in
6476 aix3*)
6477 # AIX sometimes has problems with the GCC collect2 program. For some
6478 # reason, if we set the COLLECT_NAMES environment variable, the problems
6479 # vanish in a puff of smoke.
6480 if test "X${COLLECT_NAMES+set}" != Xset; then
6481 COLLECT_NAMES=
6482 export COLLECT_NAMES
6485 esac
6487 # Sed substitution that helps us do robust quoting. It backslashifies
6488 # metacharacters that are still active within double-quoted strings.
6489 Xsed='sed -e 1s/^X//'
6490 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6492 # Same as above, but do not quote variable references.
6493 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6495 # Sed substitution to delay expansion of an escaped shell variable in a
6496 # double_quote_subst'ed string.
6497 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6499 # Sed substitution to avoid accidental globbing in evaled expressions
6500 no_glob_subst='s/\*/\\\*/g'
6502 # Constants:
6503 rm="rm -f"
6505 # Global variables:
6506 default_ofile=libtool
6507 can_build_shared=yes
6509 # All known linkers require a `.a' archive for static linking (except MSVC,
6510 # which needs '.lib').
6511 libext=a
6512 ltmain="$ac_aux_dir/ltmain.sh"
6513 ofile="$default_ofile"
6514 with_gnu_ld="$lt_cv_prog_gnu_ld"
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_AR+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 if test -n "$AR"; then
6525 ac_cv_prog_AR="$AR" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_AR="${ac_tool_prefix}ar"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6538 done
6539 done
6540 IFS=$as_save_IFS
6544 AR=$ac_cv_prog_AR
6545 if test -n "$AR"; then
6546 { echo "$as_me:$LINENO: result: $AR" >&5
6547 echo "${ECHO_T}$AR" >&6; }
6548 else
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6555 if test -z "$ac_cv_prog_AR"; then
6556 ac_ct_AR=$AR
6557 # Extract the first word of "ar", so it can be a program name with args.
6558 set dummy ar; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 if test -n "$ac_ct_AR"; then
6565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_prog_ac_ct_AR="ar"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6578 done
6579 done
6580 IFS=$as_save_IFS
6584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6585 if test -n "$ac_ct_AR"; then
6586 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6587 echo "${ECHO_T}$ac_ct_AR" >&6; }
6588 else
6589 { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6593 if test "x$ac_ct_AR" = x; then
6594 AR="false"
6595 else
6596 case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6599 whose name does not start with the host triplet. If you think this
6600 configuration is useful to you, please write to autoconf@gnu.org." >&5
6601 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6602 whose name does not start with the host triplet. If you think this
6603 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6604 ac_tool_warned=yes ;;
6605 esac
6606 AR=$ac_ct_AR
6608 else
6609 AR="$ac_cv_prog_AR"
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_prog_RANLIB+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 if test -n "$RANLIB"; then
6621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6634 done
6635 done
6636 IFS=$as_save_IFS
6640 RANLIB=$ac_cv_prog_RANLIB
6641 if test -n "$RANLIB"; then
6642 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6643 echo "${ECHO_T}$RANLIB" >&6; }
6644 else
6645 { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6651 if test -z "$ac_cv_prog_RANLIB"; then
6652 ac_ct_RANLIB=$RANLIB
6653 # Extract the first word of "ranlib", so it can be a program name with args.
6654 set dummy ranlib; ac_word=$2
6655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660 if test -n "$ac_ct_RANLIB"; then
6661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_ac_ct_RANLIB="ranlib"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6674 done
6675 done
6676 IFS=$as_save_IFS
6680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6681 if test -n "$ac_ct_RANLIB"; then
6682 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6683 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6684 else
6685 { echo "$as_me:$LINENO: result: no" >&5
6686 echo "${ECHO_T}no" >&6; }
6689 if test "x$ac_ct_RANLIB" = x; then
6690 RANLIB=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6695 whose name does not start with the host triplet. If you think this
6696 configuration is useful to you, please write to autoconf@gnu.org." >&5
6697 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet. If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6700 ac_tool_warned=yes ;;
6701 esac
6702 RANLIB=$ac_ct_RANLIB
6704 else
6705 RANLIB="$ac_cv_prog_RANLIB"
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}strip; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_prog_STRIP+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 if test -n "$STRIP"; then
6717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6722 IFS=$as_save_IFS
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6732 IFS=$as_save_IFS
6736 STRIP=$ac_cv_prog_STRIP
6737 if test -n "$STRIP"; then
6738 { echo "$as_me:$LINENO: result: $STRIP" >&5
6739 echo "${ECHO_T}$STRIP" >&6; }
6740 else
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6747 if test -z "$ac_cv_prog_STRIP"; then
6748 ac_ct_STRIP=$STRIP
6749 # Extract the first word of "strip", so it can be a program name with args.
6750 set dummy strip; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 if test -n "$ac_ct_STRIP"; then
6757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_STRIP="strip"
6767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6770 done
6771 done
6772 IFS=$as_save_IFS
6776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6777 if test -n "$ac_ct_STRIP"; then
6778 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6779 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6780 else
6781 { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6785 if test "x$ac_ct_STRIP" = x; then
6786 STRIP=":"
6787 else
6788 case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6791 whose name does not start with the host triplet. If you think this
6792 configuration is useful to you, please write to autoconf@gnu.org." >&5
6793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6794 whose name does not start with the host triplet. If you think this
6795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 STRIP=$ac_ct_STRIP
6800 else
6801 STRIP="$ac_cv_prog_STRIP"
6805 old_CC="$CC"
6806 old_CFLAGS="$CFLAGS"
6808 # Set sane defaults for various variables
6809 test -z "$AR" && AR=ar
6810 test -z "$AR_FLAGS" && AR_FLAGS=cru
6811 test -z "$AS" && AS=as
6812 test -z "$CC" && CC=cc
6813 test -z "$LTCC" && LTCC=$CC
6814 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6815 test -z "$DLLTOOL" && DLLTOOL=dlltool
6816 test -z "$LD" && LD=ld
6817 test -z "$LN_S" && LN_S="ln -s"
6818 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6819 test -z "$NM" && NM=nm
6820 test -z "$SED" && SED=sed
6821 test -z "$OBJDUMP" && OBJDUMP=objdump
6822 test -z "$RANLIB" && RANLIB=:
6823 test -z "$STRIP" && STRIP=:
6824 test -z "$ac_objext" && ac_objext=o
6826 # Determine commands to create old-style static archives.
6827 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6828 old_postinstall_cmds='chmod 644 $oldlib'
6829 old_postuninstall_cmds=
6831 if test -n "$RANLIB"; then
6832 case $host_os in
6833 openbsd*)
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6839 esac
6840 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6843 for cc_temp in $compiler""; do
6844 case $cc_temp in
6845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6847 \-*) ;;
6848 *) break;;
6849 esac
6850 done
6851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854 # Only perform the check for file, if the check method requires it
6855 case $deplibs_check_method in
6856 file_magic*)
6857 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6858 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6859 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6860 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 case $MAGIC_CMD in
6864 [\\/*] | ?:[\\/]*)
6865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868 lt_save_MAGIC_CMD="$MAGIC_CMD"
6869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6871 for ac_dir in $ac_dummy; do
6872 IFS="$lt_save_ifs"
6873 test -z "$ac_dir" && ac_dir=.
6874 if test -f $ac_dir/${ac_tool_prefix}file; then
6875 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6876 if test -n "$file_magic_test_file"; then
6877 case $deplibs_check_method in
6878 "file_magic "*)
6879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6882 $EGREP "$file_magic_regex" > /dev/null; then
6884 else
6885 cat <<EOF 1>&2
6887 *** Warning: the command libtool uses to detect shared libraries,
6888 *** $file_magic_cmd, produces output that libtool cannot recognize.
6889 *** The result is that libtool may fail to recognize shared libraries
6890 *** as such. This will affect the creation of libtool libraries that
6891 *** depend on shared libraries, but programs linked with such libtool
6892 *** libraries will work regardless of this problem. Nevertheless, you
6893 *** may want to report the problem to your system manager and/or to
6894 *** bug-libtool@gnu.org
6897 fi ;;
6898 esac
6900 break
6902 done
6903 IFS="$lt_save_ifs"
6904 MAGIC_CMD="$lt_save_MAGIC_CMD"
6906 esac
6909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6910 if test -n "$MAGIC_CMD"; then
6911 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6912 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6913 else
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6918 if test -z "$lt_cv_path_MAGIC_CMD"; then
6919 if test -n "$ac_tool_prefix"; then
6920 { echo "$as_me:$LINENO: checking for file" >&5
6921 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6922 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 case $MAGIC_CMD in
6926 [\\/*] | ?:[\\/]*)
6927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6930 lt_save_MAGIC_CMD="$MAGIC_CMD"
6931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6933 for ac_dir in $ac_dummy; do
6934 IFS="$lt_save_ifs"
6935 test -z "$ac_dir" && ac_dir=.
6936 if test -f $ac_dir/file; then
6937 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6938 if test -n "$file_magic_test_file"; then
6939 case $deplibs_check_method in
6940 "file_magic "*)
6941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6944 $EGREP "$file_magic_regex" > /dev/null; then
6946 else
6947 cat <<EOF 1>&2
6949 *** Warning: the command libtool uses to detect shared libraries,
6950 *** $file_magic_cmd, produces output that libtool cannot recognize.
6951 *** The result is that libtool may fail to recognize shared libraries
6952 *** as such. This will affect the creation of libtool libraries that
6953 *** depend on shared libraries, but programs linked with such libtool
6954 *** libraries will work regardless of this problem. Nevertheless, you
6955 *** may want to report the problem to your system manager and/or to
6956 *** bug-libtool@gnu.org
6959 fi ;;
6960 esac
6962 break
6964 done
6965 IFS="$lt_save_ifs"
6966 MAGIC_CMD="$lt_save_MAGIC_CMD"
6968 esac
6971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972 if test -n "$MAGIC_CMD"; then
6973 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6974 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6975 else
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6980 else
6981 MAGIC_CMD=:
6987 esac
6989 enable_dlopen=no
6990 enable_win32_dll=no
6992 # Check whether --enable-libtool-lock was given.
6993 if test "${enable_libtool_lock+set}" = set; then
6994 enableval=$enable_libtool_lock;
6997 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7000 # Check whether --with-pic was given.
7001 if test "${with_pic+set}" = set; then
7002 withval=$with_pic; pic_mode="$withval"
7003 else
7004 pic_mode=default
7007 test -z "$pic_mode" && pic_mode=default
7009 # Use C for the default configuration in the libtool script
7010 tagname=
7011 lt_save_CC="$CC"
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 # Source file extension for C test sources.
7020 ac_ext=c
7022 # Object file extension for compiled C test sources.
7023 objext=o
7024 objext=$objext
7026 # Code to be used in simple compile tests
7027 lt_simple_compile_test_code="int some_variable = 0;\n"
7029 # Code to be used in simple link tests
7030 lt_simple_link_test_code='int main(){return(0);}\n'
7033 # If no C compiler was specified, use CC.
7034 LTCC=${LTCC-"$CC"}
7036 # If no C compiler flags were specified, use CFLAGS.
7037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7039 # Allow CC to be a program name with arguments.
7040 compiler=$CC
7043 # save warnings/boilerplate of simple test code
7044 ac_outfile=conftest.$ac_objext
7045 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7047 _lt_compiler_boilerplate=`cat conftest.err`
7048 $rm conftest*
7050 ac_outfile=conftest.$ac_objext
7051 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7053 _lt_linker_boilerplate=`cat conftest.err`
7054 $rm conftest*
7058 lt_prog_compiler_no_builtin_flag=
7060 if test "$GCC" = yes; then
7061 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7064 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7065 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 lt_cv_prog_compiler_rtti_exceptions=no
7070 ac_outfile=conftest.$ac_objext
7071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7072 lt_compiler_flag="-fno-rtti -fno-exceptions"
7073 # Insert the option either (1) after the last *FLAGS variable, or
7074 # (2) before a word containing "conftest.", or (3) at the end.
7075 # Note that $ac_compile itself does not contain backslashes and begins
7076 # with a dollar sign (not a hyphen), so the echo should work correctly.
7077 # The option is referenced via a variable to avoid confusing sed.
7078 lt_compile=`echo "$ac_compile" | $SED \
7079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7081 -e 's:$: $lt_compiler_flag:'`
7082 (eval echo "\"\$as_me:7082: $lt_compile\"" >&5)
7083 (eval "$lt_compile" 2>conftest.err)
7084 ac_status=$?
7085 cat conftest.err >&5
7086 echo "$as_me:7086: \$? = $ac_status" >&5
7087 if (exit $ac_status) && test -s "$ac_outfile"; then
7088 # The compiler can only warn and ignore the option if not recognized
7089 # So say no if there are warnings other than the usual output.
7090 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7093 lt_cv_prog_compiler_rtti_exceptions=yes
7096 $rm conftest*
7099 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7100 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7103 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7104 else
7110 lt_prog_compiler_wl=
7111 lt_prog_compiler_pic=
7112 lt_prog_compiler_static=
7114 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7115 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7117 if test "$GCC" = yes; then
7118 lt_prog_compiler_wl='-Wl,'
7119 lt_prog_compiler_static='-static'
7121 case $host_os in
7122 aix*)
7123 # All AIX code is PIC.
7124 if test "$host_cpu" = ia64; then
7125 # AIX 5 now supports IA64 processor
7126 lt_prog_compiler_static='-Bstatic'
7130 amigaos*)
7131 # FIXME: we need at least 68020 code to build shared libraries, but
7132 # adding the `-m68020' flag to GCC prevents building anything better,
7133 # like `-m68040'.
7134 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7137 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7138 # PIC is the default for these OSes.
7141 mingw* | pw32* | os2*)
7142 # This hack is so that the source file can tell whether it is being
7143 # built for inclusion in a dll (and should export symbols for example).
7144 lt_prog_compiler_pic='-DDLL_EXPORT'
7147 darwin* | rhapsody*)
7148 # PIC is the default on this platform
7149 # Common symbols not allowed in MH_DYLIB files
7150 lt_prog_compiler_pic='-fno-common'
7153 interix3*)
7154 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7155 # Instead, we relocate shared libraries at runtime.
7158 msdosdjgpp*)
7159 # Just because we use GCC doesn't mean we suddenly get shared libraries
7160 # on systems that don't support them.
7161 lt_prog_compiler_can_build_shared=no
7162 enable_shared=no
7165 sysv4*MP*)
7166 if test -d /usr/nec; then
7167 lt_prog_compiler_pic=-Kconform_pic
7171 hpux*)
7172 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7173 # not for PA HP-UX.
7174 case $host_cpu in
7175 hppa*64*|ia64*)
7176 # +Z the default
7179 lt_prog_compiler_pic='-fPIC'
7181 esac
7185 lt_prog_compiler_pic='-fPIC'
7187 esac
7188 else
7189 # PORTME Check for flag to pass linker flags through the system compiler.
7190 case $host_os in
7191 aix*)
7192 lt_prog_compiler_wl='-Wl,'
7193 if test "$host_cpu" = ia64; then
7194 # AIX 5 now supports IA64 processor
7195 lt_prog_compiler_static='-Bstatic'
7196 else
7197 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7200 darwin*)
7201 # PIC is the default on this platform
7202 # Common symbols not allowed in MH_DYLIB files
7203 case $cc_basename in
7204 xlc*)
7205 lt_prog_compiler_pic='-qnocommon'
7206 lt_prog_compiler_wl='-Wl,'
7208 esac
7211 mingw* | pw32* | os2*)
7212 # This hack is so that the source file can tell whether it is being
7213 # built for inclusion in a dll (and should export symbols for example).
7214 lt_prog_compiler_pic='-DDLL_EXPORT'
7217 hpux9* | hpux10* | hpux11*)
7218 lt_prog_compiler_wl='-Wl,'
7219 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7220 # not for PA HP-UX.
7221 case $host_cpu in
7222 hppa*64*|ia64*)
7223 # +Z the default
7226 lt_prog_compiler_pic='+Z'
7228 esac
7229 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7230 lt_prog_compiler_static='${wl}-a ${wl}archive'
7233 irix5* | irix6* | nonstopux*)
7234 lt_prog_compiler_wl='-Wl,'
7235 # PIC (with -KPIC) is the default.
7236 lt_prog_compiler_static='-non_shared'
7239 newsos6)
7240 lt_prog_compiler_pic='-KPIC'
7241 lt_prog_compiler_static='-Bstatic'
7244 linux* | k*bsd*-gnu)
7245 case $cc_basename in
7246 icc* | ecc*)
7247 lt_prog_compiler_wl='-Wl,'
7248 lt_prog_compiler_pic='-KPIC'
7249 lt_prog_compiler_static='-static'
7251 pgcc* | pgf77* | pgf90* | pgf95*)
7252 # Portland Group compilers (*not* the Pentium gcc compiler,
7253 # which looks to be a dead project)
7254 lt_prog_compiler_wl='-Wl,'
7255 lt_prog_compiler_pic='-fpic'
7256 lt_prog_compiler_static='-Bstatic'
7258 ccc*)
7259 lt_prog_compiler_wl='-Wl,'
7260 # All Alpha code is PIC.
7261 lt_prog_compiler_static='-non_shared'
7263 esac
7266 osf3* | osf4* | osf5*)
7267 lt_prog_compiler_wl='-Wl,'
7268 # All OSF/1 code is PIC.
7269 lt_prog_compiler_static='-non_shared'
7272 solaris*)
7273 lt_prog_compiler_pic='-KPIC'
7274 lt_prog_compiler_static='-Bstatic'
7275 case $cc_basename in
7276 f77* | f90* | f95*)
7277 lt_prog_compiler_wl='-Qoption ld ';;
7279 lt_prog_compiler_wl='-Wl,';;
7280 esac
7283 sunos4*)
7284 lt_prog_compiler_wl='-Qoption ld '
7285 lt_prog_compiler_pic='-PIC'
7286 lt_prog_compiler_static='-Bstatic'
7289 sysv4 | sysv4.2uw2* | sysv4.3*)
7290 lt_prog_compiler_wl='-Wl,'
7291 lt_prog_compiler_pic='-KPIC'
7292 lt_prog_compiler_static='-Bstatic'
7295 sysv4*MP*)
7296 if test -d /usr/nec ;then
7297 lt_prog_compiler_pic='-Kconform_pic'
7298 lt_prog_compiler_static='-Bstatic'
7302 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7303 lt_prog_compiler_wl='-Wl,'
7304 lt_prog_compiler_pic='-KPIC'
7305 lt_prog_compiler_static='-Bstatic'
7308 unicos*)
7309 lt_prog_compiler_wl='-Wl,'
7310 lt_prog_compiler_can_build_shared=no
7313 uts4*)
7314 lt_prog_compiler_pic='-pic'
7315 lt_prog_compiler_static='-Bstatic'
7319 lt_prog_compiler_can_build_shared=no
7321 esac
7324 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7325 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7328 # Check to make sure the PIC flag actually works.
7330 if test -n "$lt_prog_compiler_pic"; then
7332 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7333 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7334 if test "${lt_prog_compiler_pic_works+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 lt_prog_compiler_pic_works=no
7338 ac_outfile=conftest.$ac_objext
7339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7340 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7341 # Insert the option either (1) after the last *FLAGS variable, or
7342 # (2) before a word containing "conftest.", or (3) at the end.
7343 # Note that $ac_compile itself does not contain backslashes and begins
7344 # with a dollar sign (not a hyphen), so the echo should work correctly.
7345 # The option is referenced via a variable to avoid confusing sed.
7346 lt_compile=`echo "$ac_compile" | $SED \
7347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7349 -e 's:$: $lt_compiler_flag:'`
7350 (eval echo "\"\$as_me:7350: $lt_compile\"" >&5)
7351 (eval "$lt_compile" 2>conftest.err)
7352 ac_status=$?
7353 cat conftest.err >&5
7354 echo "$as_me:7354: \$? = $ac_status" >&5
7355 if (exit $ac_status) && test -s "$ac_outfile"; then
7356 # The compiler can only warn and ignore the option if not recognized
7357 # So say no if there are warnings other than the usual output.
7358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7361 lt_prog_compiler_pic_works=yes
7364 $rm conftest*
7367 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7368 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7370 if test x"$lt_prog_compiler_pic_works" = xyes; then
7371 case $lt_prog_compiler_pic in
7372 "" | " "*) ;;
7373 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7374 esac
7375 else
7376 lt_prog_compiler_pic=
7377 lt_prog_compiler_can_build_shared=no
7381 case $host_os in
7382 # For platforms which do not support PIC, -DPIC is meaningless:
7383 *djgpp*)
7384 lt_prog_compiler_pic=
7387 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7389 esac
7392 # Check to make sure the static flag actually works.
7394 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7395 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7396 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7397 if test "${lt_prog_compiler_static_works+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400 lt_prog_compiler_static_works=no
7401 save_LDFLAGS="$LDFLAGS"
7402 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7403 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7404 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7405 # The linker can only warn and ignore the option if not recognized
7406 # So say no if there are warnings
7407 if test -s conftest.err; then
7408 # Append any errors to the config.log.
7409 cat conftest.err 1>&5
7410 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7412 if diff conftest.exp conftest.er2 >/dev/null; then
7413 lt_prog_compiler_static_works=yes
7415 else
7416 lt_prog_compiler_static_works=yes
7419 $rm conftest*
7420 LDFLAGS="$save_LDFLAGS"
7423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7424 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7426 if test x"$lt_prog_compiler_static_works" = xyes; then
7428 else
7429 lt_prog_compiler_static=
7433 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7434 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7435 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 lt_cv_prog_compiler_c_o=no
7439 $rm -r conftest 2>/dev/null
7440 mkdir conftest
7441 cd conftest
7442 mkdir out
7443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7445 lt_compiler_flag="-o out/conftest2.$ac_objext"
7446 # Insert the option either (1) after the last *FLAGS variable, or
7447 # (2) before a word containing "conftest.", or (3) at the end.
7448 # Note that $ac_compile itself does not contain backslashes and begins
7449 # with a dollar sign (not a hyphen), so the echo should work correctly.
7450 lt_compile=`echo "$ac_compile" | $SED \
7451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7453 -e 's:$: $lt_compiler_flag:'`
7454 (eval echo "\"\$as_me:7454: $lt_compile\"" >&5)
7455 (eval "$lt_compile" 2>out/conftest.err)
7456 ac_status=$?
7457 cat out/conftest.err >&5
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7460 then
7461 # The compiler can only warn and ignore the option if not recognized
7462 # So say no if there are warnings
7463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7466 lt_cv_prog_compiler_c_o=yes
7469 chmod u+w . 2>&5
7470 $rm conftest*
7471 # SGI C++ compiler will create directory out/ii_files/ for
7472 # template instantiation
7473 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7474 $rm out/* && rmdir out
7475 cd ..
7476 rmdir conftest
7477 $rm conftest*
7480 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7481 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7484 hard_links="nottested"
7485 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7486 # do not overwrite the value of need_locks provided by the user
7487 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7488 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7489 hard_links=yes
7490 $rm conftest*
7491 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7492 touch conftest.a
7493 ln conftest.a conftest.b 2>&5 || hard_links=no
7494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7495 { echo "$as_me:$LINENO: result: $hard_links" >&5
7496 echo "${ECHO_T}$hard_links" >&6; }
7497 if test "$hard_links" = no; then
7498 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7499 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7500 need_locks=warn
7502 else
7503 need_locks=no
7506 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7507 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7509 runpath_var=
7510 allow_undefined_flag=
7511 enable_shared_with_static_runtimes=no
7512 archive_cmds=
7513 archive_expsym_cmds=
7514 old_archive_From_new_cmds=
7515 old_archive_from_expsyms_cmds=
7516 export_dynamic_flag_spec=
7517 whole_archive_flag_spec=
7518 thread_safe_flag_spec=
7519 hardcode_libdir_flag_spec=
7520 hardcode_libdir_flag_spec_ld=
7521 hardcode_libdir_separator=
7522 hardcode_direct=no
7523 hardcode_minus_L=no
7524 hardcode_shlibpath_var=unsupported
7525 link_all_deplibs=unknown
7526 hardcode_automatic=no
7527 module_cmds=
7528 module_expsym_cmds=
7529 always_export_symbols=no
7530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7531 # include_expsyms should be a list of space-separated symbols to be *always*
7532 # included in the symbol list
7533 include_expsyms=
7534 # exclude_expsyms can be an extended regexp of symbols to exclude
7535 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7536 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7537 # as well as any symbol that contains `d'.
7538 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7539 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7540 # platforms (ab)use it in PIC code, but their linkers get confused if
7541 # the symbol is explicitly referenced. Since portable code cannot
7542 # rely on this symbol name, it's probably fine to never include it in
7543 # preloaded symbol tables.
7544 extract_expsyms_cmds=
7545 # Just being paranoid about ensuring that cc_basename is set.
7546 for cc_temp in $compiler""; do
7547 case $cc_temp in
7548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7550 \-*) ;;
7551 *) break;;
7552 esac
7553 done
7554 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7556 case $host_os in
7557 cygwin* | mingw* | pw32*)
7558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7559 # When not using gcc, we currently assume that we are using
7560 # Microsoft Visual C++.
7561 if test "$GCC" != yes; then
7562 with_gnu_ld=no
7565 interix*)
7566 # we just hope/assume this is gcc and not c89 (= MSVC++)
7567 with_gnu_ld=yes
7569 openbsd*)
7570 with_gnu_ld=no
7572 esac
7574 ld_shlibs=yes
7575 if test "$with_gnu_ld" = yes; then
7576 # If archive_cmds runs LD, not CC, wlarc should be empty
7577 wlarc='${wl}'
7579 # Set some defaults for GNU ld with shared library support. These
7580 # are reset later if shared libraries are not supported. Putting them
7581 # here allows them to be overridden if necessary.
7582 runpath_var=LD_RUN_PATH
7583 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7584 export_dynamic_flag_spec='${wl}--export-dynamic'
7585 # ancient GNU ld didn't support --whole-archive et. al.
7586 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7588 else
7589 whole_archive_flag_spec=
7591 supports_anon_versioning=no
7592 case `$LD -v 2>/dev/null` in
7593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7596 *\ 2.11.*) ;; # other 2.11 versions
7597 *) supports_anon_versioning=yes ;;
7598 esac
7600 # See if GNU ld supports shared libraries.
7601 case $host_os in
7602 aix3* | aix4* | aix5*)
7603 # On AIX/PPC, the GNU linker is very broken
7604 if test "$host_cpu" != ia64; then
7605 ld_shlibs=no
7606 cat <<EOF 1>&2
7608 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7609 *** to be unable to reliably create shared libraries on AIX.
7610 *** Therefore, libtool is disabling shared libraries support. If you
7611 *** really care for shared libraries, you may want to modify your PATH
7612 *** so that a non-GNU linker is found, and then restart.
7618 amigaos*)
7619 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)'
7620 hardcode_libdir_flag_spec='-L$libdir'
7621 hardcode_minus_L=yes
7623 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7624 # that the semantics of dynamic libraries on AmigaOS, at least up
7625 # to version 4, is to share data among multiple programs linked
7626 # with the same dynamic library. Since this doesn't match the
7627 # behavior of shared libraries on other platforms, we can't use
7628 # them.
7629 ld_shlibs=no
7632 beos*)
7633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7634 allow_undefined_flag=unsupported
7635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7636 # support --undefined. This deserves some investigation. FIXME
7637 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 else
7639 ld_shlibs=no
7643 cygwin* | mingw* | pw32*)
7644 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7645 # as there is no search path for DLLs.
7646 hardcode_libdir_flag_spec='-L$libdir'
7647 allow_undefined_flag=unsupported
7648 always_export_symbols=no
7649 enable_shared_with_static_runtimes=yes
7650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7652 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7654 # If the export-symbols file already is a .def file (1st line
7655 # is EXPORTS), use it as is; otherwise, prepend...
7656 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7657 cp $export_symbols $output_objdir/$soname.def;
7658 else
7659 echo EXPORTS > $output_objdir/$soname.def;
7660 cat $export_symbols >> $output_objdir/$soname.def;
7662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7663 else
7664 ld_shlibs=no
7668 interix3*)
7669 hardcode_direct=no
7670 hardcode_shlibpath_var=no
7671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7672 export_dynamic_flag_spec='${wl}-E'
7673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7674 # Instead, shared libraries are loaded at an image base (0x10000000 by
7675 # default) and relocated if they conflict, which is a slow very memory
7676 # consuming and fragmenting process. To avoid this, we pick a random,
7677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7680 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'
7683 linux* | k*bsd*-gnu)
7684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7685 tmp_addflag=
7686 case $cc_basename,$host_cpu in
7687 pgcc*) # Portland Group C compiler
7688 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'
7689 tmp_addflag=' $pic_flag'
7691 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7692 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'
7693 tmp_addflag=' $pic_flag -Mnomain' ;;
7694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7695 tmp_addflag=' -i_dynamic' ;;
7696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7697 tmp_addflag=' -i_dynamic -nofor_main' ;;
7698 ifc* | ifort*) # Intel Fortran compiler
7699 tmp_addflag=' -nofor_main' ;;
7700 esac
7701 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7703 if test $supports_anon_versioning = yes; then
7704 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7706 $echo "local: *; };" >> $output_objdir/$libname.ver~
7707 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7709 link_all_deplibs=no
7710 else
7711 ld_shlibs=no
7715 netbsd* | netbsdelf*-gnu)
7716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7717 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7718 wlarc=
7719 else
7720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7725 solaris*)
7726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7727 ld_shlibs=no
7728 cat <<EOF 1>&2
7730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7731 *** create shared libraries on Solaris systems. Therefore, libtool
7732 *** is disabling shared libraries support. We urge you to upgrade GNU
7733 *** binutils to release 2.9.1 or newer. Another option is to modify
7734 *** your PATH or compiler configuration so that the native linker is
7735 *** used, and then restart.
7738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 else
7742 ld_shlibs=no
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7747 case `$LD -v 2>&1` in
7748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7749 ld_shlibs=no
7750 cat <<_LT_EOF 1>&2
7752 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7753 *** reliably create shared libraries on SCO systems. Therefore, libtool
7754 *** is disabling shared libraries support. We urge you to upgrade GNU
7755 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7756 *** your PATH or compiler configuration so that the native linker is
7757 *** used, and then restart.
7759 _LT_EOF
7762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7766 else
7767 ld_shlibs=no
7770 esac
7773 sunos4*)
7774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7775 wlarc=
7776 hardcode_direct=yes
7777 hardcode_shlibpath_var=no
7781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7784 else
7785 ld_shlibs=no
7788 esac
7790 if test "$ld_shlibs" = no; then
7791 runpath_var=
7792 hardcode_libdir_flag_spec=
7793 export_dynamic_flag_spec=
7794 whole_archive_flag_spec=
7796 else
7797 # PORTME fill in a description of your system's linker (not GNU ld)
7798 case $host_os in
7799 aix3*)
7800 allow_undefined_flag=unsupported
7801 always_export_symbols=yes
7802 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'
7803 # Note: this linker hardcodes the directories in LIBPATH if there
7804 # are no directories specified by -L.
7805 hardcode_minus_L=yes
7806 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7807 # Neither direct hardcoding nor static linking is supported with a
7808 # broken collect2.
7809 hardcode_direct=unsupported
7813 aix4* | aix5*)
7814 if test "$host_cpu" = ia64; then
7815 # On IA64, the linker does run time linking by default, so we don't
7816 # have to do anything special.
7817 aix_use_runtimelinking=no
7818 exp_sym_flag='-Bexport'
7819 no_entry_flag=""
7820 else
7821 # If we're using GNU nm, then we don't want the "-C" option.
7822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7824 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'
7825 else
7826 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'
7828 aix_use_runtimelinking=no
7830 # Test if we are trying to use run time linking or normal
7831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7832 # need to do runtime linking.
7833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7834 for ld_flag in $LDFLAGS; do
7835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7836 aix_use_runtimelinking=yes
7837 break
7839 done
7841 esac
7843 exp_sym_flag='-bexport'
7844 no_entry_flag='-bnoentry'
7847 # When large executables or shared objects are built, AIX ld can
7848 # have problems creating the table of contents. If linking a library
7849 # or program results in "error TOC overflow" add -mminimal-toc to
7850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7853 archive_cmds=''
7854 hardcode_direct=yes
7855 hardcode_libdir_separator=':'
7856 link_all_deplibs=yes
7858 if test "$GCC" = yes; then
7859 case $host_os in aix4.[012]|aix4.[012].*)
7860 # We only want to do this on AIX 4.2 and lower, the check
7861 # below for broken collect2 doesn't work under 4.3+
7862 collect2name=`${CC} -print-prog-name=collect2`
7863 if test -f "$collect2name" && \
7864 strings "$collect2name" | grep resolve_lib_name >/dev/null
7865 then
7866 # We have reworked collect2
7867 hardcode_direct=yes
7868 else
7869 # We have old collect2
7870 hardcode_direct=unsupported
7871 # It fails to find uninstalled libraries when the uninstalled
7872 # path is not listed in the libpath. Setting hardcode_minus_L
7873 # to unsupported forces relinking
7874 hardcode_minus_L=yes
7875 hardcode_libdir_flag_spec='-L$libdir'
7876 hardcode_libdir_separator=
7879 esac
7880 shared_flag='-shared'
7881 if test "$aix_use_runtimelinking" = yes; then
7882 shared_flag="$shared_flag "'${wl}-G'
7884 else
7885 # not using gcc
7886 if test "$host_cpu" = ia64; then
7887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7888 # chokes on -Wl,-G. The following line is correct:
7889 shared_flag='-G'
7890 else
7891 if test "$aix_use_runtimelinking" = yes; then
7892 shared_flag='${wl}-G'
7893 else
7894 shared_flag='${wl}-bM:SRE'
7899 # It seems that -bexpall does not export symbols beginning with
7900 # underscore (_), so it is better to generate a list of symbols to export.
7901 always_export_symbols=yes
7902 if test "$aix_use_runtimelinking" = yes; then
7903 # Warning - without using the other runtime loading flags (-brtl),
7904 # -berok will link without error, but may produce a broken library.
7905 allow_undefined_flag='-berok'
7906 # Determine the default libpath from the value encoded in an empty executable.
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7915 main ()
7919 return 0;
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest$ac_exeext &&
7939 $as_test_x conftest$ac_exeext; then
7941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7943 # Check for a 64-bit object if we didn't find anything.
7944 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7945 }'`; fi
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954 conftest$ac_exeext conftest.$ac_ext
7955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7958 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"
7959 else
7960 if test "$host_cpu" = ia64; then
7961 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7962 allow_undefined_flag="-z nodefs"
7963 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"
7964 else
7965 # Determine the default libpath from the value encoded in an empty executable.
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7974 main ()
7978 return 0;
7980 _ACEOF
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7983 case "(($ac_try" in
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7986 esac
7987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988 (eval "$ac_link") 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } && {
7995 test -z "$ac_c_werror_flag" ||
7996 test ! -s conftest.err
7997 } && test -s conftest$ac_exeext &&
7998 $as_test_x conftest$ac_exeext; then
8000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8002 # Check for a 64-bit object if we didn't find anything.
8003 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8004 }'`; fi
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013 conftest$ac_exeext conftest.$ac_ext
8014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8016 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8017 # Warning - without using the other run time loading flags,
8018 # -berok will link without error, but may produce a broken library.
8019 no_undefined_flag=' ${wl}-bernotok'
8020 allow_undefined_flag=' ${wl}-berok'
8021 # Exported symbols can be pulled into shared objects from archives
8022 whole_archive_flag_spec='$convenience'
8023 archive_cmds_need_lc=yes
8024 # This is similar to how AIX traditionally builds its shared libraries.
8025 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'
8030 amigaos*)
8031 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)'
8032 hardcode_libdir_flag_spec='-L$libdir'
8033 hardcode_minus_L=yes
8034 # see comment about different semantics on the GNU ld section
8035 ld_shlibs=no
8038 bsdi[45]*)
8039 export_dynamic_flag_spec=-rdynamic
8042 cygwin* | mingw* | pw32*)
8043 # When not using gcc, we currently assume that we are using
8044 # Microsoft Visual C++.
8045 # hardcode_libdir_flag_spec is actually meaningless, as there is
8046 # no search path for DLLs.
8047 hardcode_libdir_flag_spec=' '
8048 allow_undefined_flag=unsupported
8049 # Tell ltmain to make .lib files, not .a files.
8050 libext=lib
8051 # Tell ltmain to make .dll files, not .so files.
8052 shrext_cmds=".dll"
8053 # FIXME: Setting linknames here is a bad hack.
8054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8055 # The linker will automatically build a .lib file if we build a DLL.
8056 old_archive_From_new_cmds='true'
8057 # FIXME: Should let the user specify the lib program.
8058 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8059 fix_srcfile_path='`cygpath -w "$srcfile"`'
8060 enable_shared_with_static_runtimes=yes
8063 darwin* | rhapsody*)
8064 case $host_os in
8065 rhapsody* | darwin1.[012])
8066 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8068 *) # Darwin 1.3 on
8069 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8070 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8071 else
8072 case ${MACOSX_DEPLOYMENT_TARGET} in
8073 10.[012])
8074 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8076 10.*)
8077 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8079 esac
8082 esac
8083 archive_cmds_need_lc=no
8084 hardcode_direct=no
8085 hardcode_automatic=yes
8086 hardcode_shlibpath_var=unsupported
8087 whole_archive_flag_spec=''
8088 link_all_deplibs=yes
8089 if test "$GCC" = yes ; then
8090 output_verbose_link_cmd='echo'
8091 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8092 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8094 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8095 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}'
8096 else
8097 case $cc_basename in
8098 xlc*)
8099 output_verbose_link_cmd='echo'
8100 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8101 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8102 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8103 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8104 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}'
8107 ld_shlibs=no
8109 esac
8113 dgux*)
8114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8115 hardcode_libdir_flag_spec='-L$libdir'
8116 hardcode_shlibpath_var=no
8119 freebsd1*)
8120 ld_shlibs=no
8123 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8124 # support. Future versions do this automatically, but an explicit c++rt0.o
8125 # does not break anything, and helps significantly (at the cost of a little
8126 # extra space).
8127 freebsd2.2*)
8128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8129 hardcode_libdir_flag_spec='-R$libdir'
8130 hardcode_direct=yes
8131 hardcode_shlibpath_var=no
8134 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8135 freebsd2*)
8136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8137 hardcode_direct=yes
8138 hardcode_minus_L=yes
8139 hardcode_shlibpath_var=no
8142 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8143 freebsd* | dragonfly*)
8144 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8145 hardcode_libdir_flag_spec='-R$libdir'
8146 hardcode_direct=yes
8147 hardcode_shlibpath_var=no
8150 hpux9*)
8151 if test "$GCC" = yes; then
8152 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'
8153 else
8154 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'
8156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8157 hardcode_libdir_separator=:
8158 hardcode_direct=yes
8160 # hardcode_minus_L: Not really in the search PATH,
8161 # but as the default location of the library.
8162 hardcode_minus_L=yes
8163 export_dynamic_flag_spec='${wl}-E'
8166 hpux10*)
8167 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8168 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8169 else
8170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8172 if test "$with_gnu_ld" = no; then
8173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8174 hardcode_libdir_separator=:
8176 hardcode_direct=yes
8177 export_dynamic_flag_spec='${wl}-E'
8179 # hardcode_minus_L: Not really in the search PATH,
8180 # but as the default location of the library.
8181 hardcode_minus_L=yes
8185 hpux11*)
8186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8187 case $host_cpu in
8188 hppa*64*)
8189 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8191 ia64*)
8192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8197 esac
8198 else
8199 case $host_cpu in
8200 hppa*64*)
8201 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 ia64*)
8204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8209 esac
8211 if test "$with_gnu_ld" = no; then
8212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8213 hardcode_libdir_separator=:
8215 case $host_cpu in
8216 hppa*64*|ia64*)
8217 hardcode_libdir_flag_spec_ld='+b $libdir'
8218 hardcode_direct=no
8219 hardcode_shlibpath_var=no
8222 hardcode_direct=yes
8223 export_dynamic_flag_spec='${wl}-E'
8225 # hardcode_minus_L: Not really in the search PATH,
8226 # but as the default location of the library.
8227 hardcode_minus_L=yes
8229 esac
8233 irix5* | irix6* | nonstopux*)
8234 if test "$GCC" = yes; then
8235 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'
8236 else
8237 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'
8238 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8241 hardcode_libdir_separator=:
8242 link_all_deplibs=yes
8245 netbsd* | netbsdelf*-gnu)
8246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8248 else
8249 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8251 hardcode_libdir_flag_spec='-R$libdir'
8252 hardcode_direct=yes
8253 hardcode_shlibpath_var=no
8256 newsos6)
8257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8258 hardcode_direct=yes
8259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8260 hardcode_libdir_separator=:
8261 hardcode_shlibpath_var=no
8264 openbsd*)
8265 hardcode_direct=yes
8266 hardcode_shlibpath_var=no
8267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8271 export_dynamic_flag_spec='${wl}-E'
8272 else
8273 case $host_os in
8274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8276 hardcode_libdir_flag_spec='-R$libdir'
8279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8282 esac
8286 os2*)
8287 hardcode_libdir_flag_spec='-L$libdir'
8288 hardcode_minus_L=yes
8289 allow_undefined_flag=unsupported
8290 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'
8291 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8294 osf3*)
8295 if test "$GCC" = yes; then
8296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8297 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'
8298 else
8299 allow_undefined_flag=' -expect_unresolved \*'
8300 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'
8302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8303 hardcode_libdir_separator=:
8306 osf4* | osf5*) # as osf3* with the addition of -msym flag
8307 if test "$GCC" = yes; then
8308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8309 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'
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 else
8312 allow_undefined_flag=' -expect_unresolved \*'
8313 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'
8314 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8315 $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'
8317 # Both c and cxx compiler support -rpath directly
8318 hardcode_libdir_flag_spec='-rpath $libdir'
8320 hardcode_libdir_separator=:
8323 solaris*)
8324 no_undefined_flag=' -z text'
8325 if test "$GCC" = yes; then
8326 wlarc='${wl}'
8327 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8329 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8330 else
8331 wlarc=''
8332 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8336 hardcode_libdir_flag_spec='-R$libdir'
8337 hardcode_shlibpath_var=no
8338 case $host_os in
8339 solaris2.[0-5] | solaris2.[0-5].*) ;;
8341 # The compiler driver will combine linker options so we
8342 # cannot just pass the convience library names through
8343 # without $wl, iff we do not link with $LD.
8344 # Luckily, gcc supports the same syntax we need for Sun Studio.
8345 # Supported since Solaris 2.6 (maybe 2.5.1?)
8346 case $wlarc in
8348 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8350 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8351 esac ;;
8352 esac
8353 link_all_deplibs=yes
8356 sunos4*)
8357 if test "x$host_vendor" = xsequent; then
8358 # Use $CC to link under sequent, because it throws in some extra .o
8359 # files that make .init and .fini sections work.
8360 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8361 else
8362 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_libdir_flag_spec='-L$libdir'
8365 hardcode_direct=yes
8366 hardcode_minus_L=yes
8367 hardcode_shlibpath_var=no
8370 sysv4)
8371 case $host_vendor in
8372 sni)
8373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374 hardcode_direct=yes # is this really true???
8376 siemens)
8377 ## LD is ld it makes a PLAMLIB
8378 ## CC just makes a GrossModule.
8379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8380 reload_cmds='$CC -r -o $output$reload_objs'
8381 hardcode_direct=no
8383 motorola)
8384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8387 esac
8388 runpath_var='LD_RUN_PATH'
8389 hardcode_shlibpath_var=no
8392 sysv4.3*)
8393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8394 hardcode_shlibpath_var=no
8395 export_dynamic_flag_spec='-Bexport'
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_shlibpath_var=no
8402 runpath_var=LD_RUN_PATH
8403 hardcode_runpath_var=yes
8404 ld_shlibs=yes
8408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8409 no_undefined_flag='${wl}-z,text'
8410 archive_cmds_need_lc=no
8411 hardcode_shlibpath_var=no
8412 runpath_var='LD_RUN_PATH'
8414 if test "$GCC" = yes; then
8415 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 else
8418 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 sysv5* | sco3.2v5* | sco5v6*)
8424 # Note: We can NOT use -z defs as we might desire, because we do not
8425 # link with -lc, and that would cause any symbols used from libc to
8426 # always be unresolved, which means just about no library would
8427 # ever link correctly. If we're not using GNU ld we use -z text
8428 # though, which does catch some bad symbols but isn't as heavy-handed
8429 # as -z defs.
8430 no_undefined_flag='${wl}-z,text'
8431 allow_undefined_flag='${wl}-z,nodefs'
8432 archive_cmds_need_lc=no
8433 hardcode_shlibpath_var=no
8434 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8435 hardcode_libdir_separator=':'
8436 link_all_deplibs=yes
8437 export_dynamic_flag_spec='${wl}-Bexport'
8438 runpath_var='LD_RUN_PATH'
8440 if test "$GCC" = yes; then
8441 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 else
8444 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 uts4*)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_shlibpath_var=no
8456 ld_shlibs=no
8458 esac
8461 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8462 echo "${ECHO_T}$ld_shlibs" >&6; }
8463 test "$ld_shlibs" = no && can_build_shared=no
8466 # Do we need to explicitly link libc?
8468 case "x$archive_cmds_need_lc" in
8469 x|xyes)
8470 # Assume -lc should be added
8471 archive_cmds_need_lc=yes
8473 if test "$enable_shared" = yes && test "$GCC" = yes; then
8474 case $archive_cmds in
8475 *'~'*)
8476 # FIXME: we may have to deal with multi-command sequences.
8478 '$CC '*)
8479 # Test whether the compiler implicitly links with -lc since on some
8480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8481 # to ld, don't add -lc before -lgcc.
8482 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8483 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8484 $rm conftest*
8485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } 2>conftest.err; then
8492 soname=conftest
8493 lib=conftest
8494 libobjs=conftest.$ac_objext
8495 deplibs=
8496 wl=$lt_prog_compiler_wl
8497 pic_flag=$lt_prog_compiler_pic
8498 compiler_flags=-v
8499 linker_flags=-v
8500 verstring=
8501 output_objdir=.
8502 libname=conftest
8503 lt_save_allow_undefined_flag=$allow_undefined_flag
8504 allow_undefined_flag=
8505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8506 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }
8510 then
8511 archive_cmds_need_lc=no
8512 else
8513 archive_cmds_need_lc=yes
8515 allow_undefined_flag=$lt_save_allow_undefined_flag
8516 else
8517 cat conftest.err 1>&5
8519 $rm conftest*
8520 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8521 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8523 esac
8526 esac
8528 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8529 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8530 library_names_spec=
8531 libname_spec='lib$name'
8532 soname_spec=
8533 shrext_cmds=".so"
8534 postinstall_cmds=
8535 postuninstall_cmds=
8536 finish_cmds=
8537 finish_eval=
8538 shlibpath_var=
8539 shlibpath_overrides_runpath=unknown
8540 version_type=none
8541 dynamic_linker="$host_os ld.so"
8542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8543 if test "$GCC" = yes; then
8544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8545 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8546 # if the path contains ";" then we assume it to be the separator
8547 # otherwise default to the standard path separator (i.e. ":") - it is
8548 # assumed that no part of a normal pathname contains ";" but that should
8549 # okay in the real world where ";" in dirpaths is itself problematic.
8550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8551 else
8552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8554 else
8555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8557 need_lib_prefix=unknown
8558 hardcode_into_libs=no
8560 # when you set need_version to no, make sure it does not cause -set_version
8561 # flags to be left without arguments
8562 need_version=unknown
8564 case $host_os in
8565 aix3*)
8566 version_type=linux
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8568 shlibpath_var=LIBPATH
8570 # AIX 3 has no versioning support, so we append a major version to the name.
8571 soname_spec='${libname}${release}${shared_ext}$major'
8574 aix4* | aix5*)
8575 version_type=linux
8576 need_lib_prefix=no
8577 need_version=no
8578 hardcode_into_libs=yes
8579 if test "$host_cpu" = ia64; then
8580 # AIX 5 supports IA64
8581 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 else
8584 # With GCC up to 2.95.x, collect2 would create an import file
8585 # for dependence libraries. The import file would start with
8586 # the line `#! .'. This would cause the generated library to
8587 # depend on `.', always an invalid library. This was fixed in
8588 # development snapshots of GCC prior to 3.0.
8589 case $host_os in
8590 aix4 | aix4.[01] | aix4.[01].*)
8591 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8592 echo ' yes '
8593 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8595 else
8596 can_build_shared=no
8599 esac
8600 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8601 # soname into executable. Probably we can add versioning support to
8602 # collect2, so additional links can be useful in future.
8603 if test "$aix_use_runtimelinking" = yes; then
8604 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8605 # instead of lib<name>.a to let people know that these are not
8606 # typical AIX shared libraries.
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 else
8609 # We preserve .a as extension for shared libraries through AIX4.2
8610 # and later when we are not doing run time linking.
8611 library_names_spec='${libname}${release}.a $libname.a'
8612 soname_spec='${libname}${release}${shared_ext}$major'
8614 shlibpath_var=LIBPATH
8618 amigaos*)
8619 library_names_spec='$libname.ixlibrary $libname.a'
8620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8621 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'
8624 beos*)
8625 library_names_spec='${libname}${shared_ext}'
8626 dynamic_linker="$host_os ld.so"
8627 shlibpath_var=LIBRARY_PATH
8630 bsdi[45]*)
8631 version_type=linux
8632 need_version=no
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634 soname_spec='${libname}${release}${shared_ext}$major'
8635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8639 # the default ld.so.conf also contains /usr/contrib/lib and
8640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8641 # libtool to hard-code these into programs
8644 cygwin* | mingw* | pw32*)
8645 version_type=windows
8646 shrext_cmds=".dll"
8647 need_version=no
8648 need_lib_prefix=no
8650 case $GCC,$host_os in
8651 yes,cygwin* | yes,mingw* | yes,pw32*)
8652 library_names_spec='$libname.dll.a'
8653 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8654 postinstall_cmds='base_file=`basename \${file}`~
8655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8656 dldir=$destdir/`dirname \$dlpath`~
8657 test -d \$dldir || mkdir -p \$dldir~
8658 $install_prog $dir/$dlname \$dldir/$dlname~
8659 chmod a+x \$dldir/$dlname'
8660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8661 dlpath=$dir/\$dldll~
8662 $rm \$dlpath'
8663 shlibpath_overrides_runpath=yes
8665 case $host_os in
8666 cygwin*)
8667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8669 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8671 mingw*)
8672 # MinGW DLLs use traditional 'lib' prefix
8673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8674 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8675 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8676 # It is most probably a Windows format PATH printed by
8677 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8678 # path with ; separators, and with drive letters. We can handle the
8679 # drive letters (cygwin fileutils understands them), so leave them,
8680 # especially as we might pass files found there to a mingw objdump,
8681 # which wouldn't understand a cygwinified path. Ahh.
8682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8683 else
8684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8687 pw32*)
8688 # pw32 DLLs use 'pw' prefix rather than 'lib'
8689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 esac
8695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8697 esac
8698 dynamic_linker='Win32 ld.exe'
8699 # FIXME: first we should search . and the directory the executable is in
8700 shlibpath_var=PATH
8703 darwin* | rhapsody*)
8704 dynamic_linker="$host_os dyld"
8705 version_type=darwin
8706 need_lib_prefix=no
8707 need_version=no
8708 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8709 soname_spec='${libname}${release}${major}$shared_ext'
8710 shlibpath_overrides_runpath=yes
8711 shlibpath_var=DYLD_LIBRARY_PATH
8712 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8713 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8714 if test "$GCC" = yes; then
8715 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8716 else
8717 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8719 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8722 dgux*)
8723 version_type=linux
8724 need_lib_prefix=no
8725 need_version=no
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 shlibpath_var=LD_LIBRARY_PATH
8731 freebsd1*)
8732 dynamic_linker=no
8735 freebsd* | dragonfly*)
8736 # DragonFly does not have aout. When/if they implement a new
8737 # versioning mechanism, adjust this.
8738 if test -x /usr/bin/objformat; then
8739 objformat=`/usr/bin/objformat`
8740 else
8741 case $host_os in
8742 freebsd[123]*) objformat=aout ;;
8743 *) objformat=elf ;;
8744 esac
8746 version_type=freebsd-$objformat
8747 case $version_type in
8748 freebsd-elf*)
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8750 need_version=no
8751 need_lib_prefix=no
8753 freebsd-*)
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8755 need_version=yes
8757 esac
8758 shlibpath_var=LD_LIBRARY_PATH
8759 case $host_os in
8760 freebsd2*)
8761 shlibpath_overrides_runpath=yes
8763 freebsd3.[01]* | freebsdelf3.[01]*)
8764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8767 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8768 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8769 shlibpath_overrides_runpath=no
8770 hardcode_into_libs=yes
8772 freebsd*) # from 4.6 on
8773 shlibpath_overrides_runpath=yes
8774 hardcode_into_libs=yes
8776 esac
8779 gnu*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 hardcode_into_libs=yes
8789 hpux9* | hpux10* | hpux11*)
8790 # Give a soname corresponding to the major version so that dld.sl refuses to
8791 # link against other versions.
8792 version_type=sunos
8793 need_lib_prefix=no
8794 need_version=no
8795 case $host_cpu in
8796 ia64*)
8797 shrext_cmds='.so'
8798 hardcode_into_libs=yes
8799 dynamic_linker="$host_os dld.so"
8800 shlibpath_var=LD_LIBRARY_PATH
8801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 if test "X$HPUX_IA64_MODE" = X32; then
8805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8806 else
8807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811 hppa*64*)
8812 shrext_cmds='.sl'
8813 hardcode_into_libs=yes
8814 dynamic_linker="$host_os dld.sl"
8815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8823 shrext_cmds='.sl'
8824 dynamic_linker="$host_os dld.sl"
8825 shlibpath_var=SHLIB_PATH
8826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8830 esac
8831 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8832 postinstall_cmds='chmod 555 $lib'
8835 interix3*)
8836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=no
8844 hardcode_into_libs=yes
8847 irix5* | irix6* | nonstopux*)
8848 case $host_os in
8849 nonstopux*) version_type=nonstopux ;;
8851 if test "$lt_cv_prog_gnu_ld" = yes; then
8852 version_type=linux
8853 else
8854 version_type=irix
8855 fi ;;
8856 esac
8857 need_lib_prefix=no
8858 need_version=no
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8861 case $host_os in
8862 irix5* | nonstopux*)
8863 libsuff= shlibsuff=
8866 case $LD in # libtool.m4 will add one of these switches to LD
8867 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8868 libsuff= shlibsuff= libmagic=32-bit;;
8869 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8870 libsuff=32 shlibsuff=N32 libmagic=N32;;
8871 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8872 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8873 *) libsuff= shlibsuff= libmagic=never-match;;
8874 esac
8876 esac
8877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8878 shlibpath_overrides_runpath=no
8879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8881 hardcode_into_libs=yes
8884 # No shared lib support for Linux oldld, aout, or coff.
8885 linux*oldld* | linux*aout* | linux*coff*)
8886 dynamic_linker=no
8889 # This must be Linux ELF.
8890 linux* | k*bsd*-gnu)
8891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 # This implies no fast_install, which is unacceptable.
8900 # Some rework will be needed to allow for fast_install
8901 # before this can be enabled.
8902 hardcode_into_libs=yes
8904 # Append ld.so.conf contents to the search path
8905 if test -f /etc/ld.so.conf; then
8906 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8910 # We used to test for /lib/ld.so.1 and disable shared libraries on
8911 # powerpc, because MkLinux only supported shared libraries with the
8912 # GNU dynamic linker. Since this was broken with cross compilers,
8913 # most powerpc-linux boxes support dynamic linking these days and
8914 # people can always --disable-shared, the test was removed, and we
8915 # assume the GNU/Linux dynamic linker is in use.
8916 dynamic_linker='GNU/Linux ld.so'
8919 netbsdelf*-gnu)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 hardcode_into_libs=yes
8928 dynamic_linker='NetBSD ld.elf_so'
8931 netbsd*)
8932 version_type=sunos
8933 need_lib_prefix=no
8934 need_version=no
8935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8938 dynamic_linker='NetBSD (a.out) ld.so'
8939 else
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 dynamic_linker='NetBSD ld.elf_so'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes
8946 hardcode_into_libs=yes
8949 newsos6)
8950 version_type=linux
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=yes
8956 nto-qnx*)
8957 version_type=linux
8958 need_lib_prefix=no
8959 need_version=no
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8966 openbsd*)
8967 version_type=sunos
8968 sys_lib_dlsearch_path_spec="/usr/lib"
8969 need_lib_prefix=no
8970 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8971 case $host_os in
8972 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8973 *) need_version=no ;;
8974 esac
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8979 case $host_os in
8980 openbsd2.[89] | openbsd2.[89].*)
8981 shlibpath_overrides_runpath=no
8984 shlibpath_overrides_runpath=yes
8986 esac
8987 else
8988 shlibpath_overrides_runpath=yes
8992 os2*)
8993 libname_spec='$name'
8994 shrext_cmds=".dll"
8995 need_lib_prefix=no
8996 library_names_spec='$libname${shared_ext} $libname.a'
8997 dynamic_linker='OS/2 ld.exe'
8998 shlibpath_var=LIBPATH
9001 osf3* | osf4* | osf5*)
9002 version_type=osf
9003 need_lib_prefix=no
9004 need_version=no
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9012 solaris*)
9013 version_type=linux
9014 need_lib_prefix=no
9015 need_version=no
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9021 # ldd complains unless libraries are executable
9022 postinstall_cmds='chmod +x $lib'
9025 sunos4*)
9026 version_type=sunos
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 if test "$with_gnu_ld" = yes; then
9032 need_lib_prefix=no
9034 need_version=yes
9037 sysv4 | sysv4.3*)
9038 version_type=linux
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 case $host_vendor in
9043 sni)
9044 shlibpath_overrides_runpath=no
9045 need_lib_prefix=no
9046 export_dynamic_flag_spec='${wl}-Blargedynsym'
9047 runpath_var=LD_RUN_PATH
9049 siemens)
9050 need_lib_prefix=no
9052 motorola)
9053 need_lib_prefix=no
9054 need_version=no
9055 shlibpath_overrides_runpath=no
9056 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9058 esac
9061 sysv4*MP*)
9062 if test -d /usr/nec ;then
9063 version_type=linux
9064 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9065 soname_spec='$libname${shared_ext}.$major'
9066 shlibpath_var=LD_LIBRARY_PATH
9070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9071 version_type=freebsd-elf
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 hardcode_into_libs=yes
9078 if test "$with_gnu_ld" = yes; then
9079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9080 shlibpath_overrides_runpath=no
9081 else
9082 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9083 shlibpath_overrides_runpath=yes
9084 case $host_os in
9085 sco3.2v5*)
9086 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088 esac
9090 sys_lib_dlsearch_path_spec='/usr/lib'
9093 uts4*)
9094 version_type=linux
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9101 dynamic_linker=no
9103 esac
9104 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9105 echo "${ECHO_T}$dynamic_linker" >&6; }
9106 test "$dynamic_linker" = no && can_build_shared=no
9108 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9109 if test "$GCC" = yes; then
9110 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9115 hardcode_action=
9116 if test -n "$hardcode_libdir_flag_spec" || \
9117 test -n "$runpath_var" || \
9118 test "X$hardcode_automatic" = "Xyes" ; then
9120 # We can hardcode non-existant directories.
9121 if test "$hardcode_direct" != no &&
9122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9123 # have to relink, otherwise we might link with an installed library
9124 # when we should be linking with a yet-to-be-installed one
9125 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9126 test "$hardcode_minus_L" != no; then
9127 # Linking always hardcodes the temporary library directory.
9128 hardcode_action=relink
9129 else
9130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9131 hardcode_action=immediate
9133 else
9134 # We cannot hardcode anything, or else we can only hardcode existing
9135 # directories.
9136 hardcode_action=unsupported
9138 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9139 echo "${ECHO_T}$hardcode_action" >&6; }
9141 if test "$hardcode_action" = relink; then
9142 # Fast installation is not supported
9143 enable_fast_install=no
9144 elif test "$shlibpath_overrides_runpath" = yes ||
9145 test "$enable_shared" = no; then
9146 # Fast installation is not necessary
9147 enable_fast_install=needless
9150 striplib=
9151 old_striplib=
9152 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9153 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9155 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9156 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9157 { echo "$as_me:$LINENO: result: yes" >&5
9158 echo "${ECHO_T}yes" >&6; }
9159 else
9160 # FIXME - insert some real tests, host_os isn't really good enough
9161 case $host_os in
9162 darwin*)
9163 if test -n "$STRIP" ; then
9164 striplib="$STRIP -x"
9165 { echo "$as_me:$LINENO: result: yes" >&5
9166 echo "${ECHO_T}yes" >&6; }
9167 else
9168 { echo "$as_me:$LINENO: result: no" >&5
9169 echo "${ECHO_T}no" >&6; }
9173 { echo "$as_me:$LINENO: result: no" >&5
9174 echo "${ECHO_T}no" >&6; }
9176 esac
9179 if test "x$enable_dlopen" != xyes; then
9180 enable_dlopen=unknown
9181 enable_dlopen_self=unknown
9182 enable_dlopen_self_static=unknown
9183 else
9184 lt_cv_dlopen=no
9185 lt_cv_dlopen_libs=
9187 case $host_os in
9188 beos*)
9189 lt_cv_dlopen="load_add_on"
9190 lt_cv_dlopen_libs=
9191 lt_cv_dlopen_self=yes
9194 mingw* | pw32*)
9195 lt_cv_dlopen="LoadLibrary"
9196 lt_cv_dlopen_libs=
9199 cygwin*)
9200 lt_cv_dlopen="dlopen"
9201 lt_cv_dlopen_libs=
9204 darwin*)
9205 # if libdl is installed we need to link against it
9206 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9207 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-ldl $LIBS"
9213 cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9220 /* Override any GCC internal prototype to avoid an error.
9221 Use char because int might match the return type of a GCC
9222 builtin and then its argument prototype would still apply. */
9223 #ifdef __cplusplus
9224 extern "C"
9225 #endif
9226 char dlopen ();
9228 main ()
9230 return dlopen ();
9232 return 0;
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (ac_try="$ac_link"
9237 case "(($ac_try" in
9238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9240 esac
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_link") 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest$ac_exeext &&
9252 $as_test_x conftest$ac_exeext; then
9253 ac_cv_lib_dl_dlopen=yes
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_cv_lib_dl_dlopen=no
9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_lib_save_LIBS
9265 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9267 if test $ac_cv_lib_dl_dlopen = yes; then
9268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9269 else
9271 lt_cv_dlopen="dyld"
9272 lt_cv_dlopen_libs=
9273 lt_cv_dlopen_self=yes
9280 { echo "$as_me:$LINENO: checking for shl_load" >&5
9281 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9282 if test "${ac_cv_func_shl_load+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9293 #define shl_load innocuous_shl_load
9295 /* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char shl_load (); below.
9297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 <limits.h> exists even on freestanding compilers. */
9300 #ifdef __STDC__
9301 # include <limits.h>
9302 #else
9303 # include <assert.h>
9304 #endif
9306 #undef shl_load
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 char shl_load ();
9315 /* The GNU C library defines this for functions which it implements
9316 to always fail with ENOSYS. Some functions are actually named
9317 something starting with __ and the normal name is an alias. */
9318 #if defined __stub_shl_load || defined __stub___shl_load
9319 choke me
9320 #endif
9323 main ()
9325 return shl_load ();
9327 return 0;
9329 _ACEOF
9330 rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (ac_try="$ac_link"
9332 case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_link") 2>conftest.er1
9338 ac_status=$?
9339 grep -v '^ *+' conftest.er1 >conftest.err
9340 rm -f conftest.er1
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest$ac_exeext &&
9347 $as_test_x conftest$ac_exeext; then
9348 ac_cv_func_shl_load=yes
9349 else
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_cv_func_shl_load=no
9356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9357 conftest$ac_exeext conftest.$ac_ext
9359 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9360 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9361 if test $ac_cv_func_shl_load = yes; then
9362 lt_cv_dlopen="shl_load"
9363 else
9364 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9365 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9366 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369 ac_check_lib_save_LIBS=$LIBS
9370 LIBS="-ldld $LIBS"
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9378 /* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char shl_load ();
9386 main ()
9388 return shl_load ();
9390 return 0;
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_link") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest$ac_exeext &&
9410 $as_test_x conftest$ac_exeext; then
9411 ac_cv_lib_dld_shl_load=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_cv_lib_dld_shl_load=no
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS
9423 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9424 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9425 if test $ac_cv_lib_dld_shl_load = yes; then
9426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9427 else
9428 { echo "$as_me:$LINENO: checking for dlopen" >&5
9429 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_dlopen+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define dlopen innocuous_dlopen
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char dlopen (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9448 #ifdef __STDC__
9449 # include <limits.h>
9450 #else
9451 # include <assert.h>
9452 #endif
9454 #undef dlopen
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char dlopen ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_dlopen || defined __stub___dlopen
9467 choke me
9468 #endif
9471 main ()
9473 return dlopen ();
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_dlopen=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_func_dlopen=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9509 if test $ac_cv_func_dlopen = yes; then
9510 lt_cv_dlopen="dlopen"
9511 else
9512 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 ac_check_lib_save_LIBS=$LIBS
9518 LIBS="-ldl $LIBS"
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char dlopen ();
9534 main ()
9536 return dlopen ();
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (ac_try="$ac_link"
9543 case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_link") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest$ac_exeext &&
9558 $as_test_x conftest$ac_exeext; then
9559 ac_cv_lib_dl_dlopen=yes
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_cv_lib_dl_dlopen=no
9567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9568 conftest$ac_exeext conftest.$ac_ext
9569 LIBS=$ac_check_lib_save_LIBS
9571 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9572 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9573 if test $ac_cv_lib_dl_dlopen = yes; then
9574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9575 else
9576 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9577 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9578 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-lsvld $LIBS"
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char dlopen ();
9598 main ()
9600 return dlopen ();
9602 return 0;
9604 _ACEOF
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (ac_try="$ac_link"
9607 case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612 (eval "$ac_link") 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest$ac_exeext &&
9622 $as_test_x conftest$ac_exeext; then
9623 ac_cv_lib_svld_dlopen=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_cv_lib_svld_dlopen=no
9631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9636 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9637 if test $ac_cv_lib_svld_dlopen = yes; then
9638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9639 else
9640 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9641 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 ac_check_lib_save_LIBS=$LIBS
9646 LIBS="-ldld $LIBS"
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char dld_link ();
9662 main ()
9664 return dld_link ();
9666 return 0;
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9671 case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest$ac_exeext &&
9686 $as_test_x conftest$ac_exeext; then
9687 ac_cv_lib_dld_dld_link=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_lib_dld_dld_link=no
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9700 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9701 if test $ac_cv_lib_dld_dld_link = yes; then
9702 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9721 esac
9723 if test "x$lt_cv_dlopen" != xno; then
9724 enable_dlopen=yes
9725 else
9726 enable_dlopen=no
9729 case $lt_cv_dlopen in
9730 dlopen)
9731 save_CPPFLAGS="$CPPFLAGS"
9732 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9734 save_LDFLAGS="$LDFLAGS"
9735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9737 save_LIBS="$LIBS"
9738 LIBS="$lt_cv_dlopen_libs $LIBS"
9740 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9741 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9742 if test "${lt_cv_dlopen_self+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 if test "$cross_compiling" = yes; then :
9746 lt_cv_dlopen_self=cross
9747 else
9748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9749 lt_status=$lt_dlunknown
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9751 "configure"
9752 #include "confdefs.h"
9754 #if HAVE_DLFCN_H
9755 #include <dlfcn.h>
9756 #endif
9758 #include <stdio.h>
9760 #ifdef RTLD_GLOBAL
9761 # define LT_DLGLOBAL RTLD_GLOBAL
9762 #else
9763 # ifdef DL_GLOBAL
9764 # define LT_DLGLOBAL DL_GLOBAL
9765 # else
9766 # define LT_DLGLOBAL 0
9767 # endif
9768 #endif
9770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9771 find out it does not work in some platform. */
9772 #ifndef LT_DLLAZY_OR_NOW
9773 # ifdef RTLD_LAZY
9774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9775 # else
9776 # ifdef DL_LAZY
9777 # define LT_DLLAZY_OR_NOW DL_LAZY
9778 # else
9779 # ifdef RTLD_NOW
9780 # define LT_DLLAZY_OR_NOW RTLD_NOW
9781 # else
9782 # ifdef DL_NOW
9783 # define LT_DLLAZY_OR_NOW DL_NOW
9784 # else
9785 # define LT_DLLAZY_OR_NOW 0
9786 # endif
9787 # endif
9788 # endif
9789 # endif
9790 #endif
9792 #ifdef __cplusplus
9793 extern "C" void exit (int);
9794 #endif
9796 void fnord() { int i=42;}
9797 int main ()
9799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9800 int status = $lt_dlunknown;
9802 if (self)
9804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9805 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9806 /* dlclose (self); */
9808 else
9809 puts (dlerror ());
9811 exit (status);
9814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9815 (eval $ac_link) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9819 (./conftest; exit; ) >&5 2>/dev/null
9820 lt_status=$?
9821 case x$lt_status in
9822 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9823 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9824 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9825 esac
9826 else :
9827 # compilation failed
9828 lt_cv_dlopen_self=no
9831 rm -fr conftest*
9835 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9836 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9838 if test "x$lt_cv_dlopen_self" = xyes; then
9839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9840 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9841 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9842 if test "${lt_cv_dlopen_self_static+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 if test "$cross_compiling" = yes; then :
9846 lt_cv_dlopen_self_static=cross
9847 else
9848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9849 lt_status=$lt_dlunknown
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9851 "configure"
9852 #include "confdefs.h"
9854 #if HAVE_DLFCN_H
9855 #include <dlfcn.h>
9856 #endif
9858 #include <stdio.h>
9860 #ifdef RTLD_GLOBAL
9861 # define LT_DLGLOBAL RTLD_GLOBAL
9862 #else
9863 # ifdef DL_GLOBAL
9864 # define LT_DLGLOBAL DL_GLOBAL
9865 # else
9866 # define LT_DLGLOBAL 0
9867 # endif
9868 #endif
9870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9871 find out it does not work in some platform. */
9872 #ifndef LT_DLLAZY_OR_NOW
9873 # ifdef RTLD_LAZY
9874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9875 # else
9876 # ifdef DL_LAZY
9877 # define LT_DLLAZY_OR_NOW DL_LAZY
9878 # else
9879 # ifdef RTLD_NOW
9880 # define LT_DLLAZY_OR_NOW RTLD_NOW
9881 # else
9882 # ifdef DL_NOW
9883 # define LT_DLLAZY_OR_NOW DL_NOW
9884 # else
9885 # define LT_DLLAZY_OR_NOW 0
9886 # endif
9887 # endif
9888 # endif
9889 # endif
9890 #endif
9892 #ifdef __cplusplus
9893 extern "C" void exit (int);
9894 #endif
9896 void fnord() { int i=42;}
9897 int main ()
9899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9900 int status = $lt_dlunknown;
9902 if (self)
9904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9905 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9906 /* dlclose (self); */
9908 else
9909 puts (dlerror ());
9911 exit (status);
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9919 (./conftest; exit; ) >&5 2>/dev/null
9920 lt_status=$?
9921 case x$lt_status in
9922 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9923 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9924 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9925 esac
9926 else :
9927 # compilation failed
9928 lt_cv_dlopen_self_static=no
9931 rm -fr conftest*
9935 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9936 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9939 CPPFLAGS="$save_CPPFLAGS"
9940 LDFLAGS="$save_LDFLAGS"
9941 LIBS="$save_LIBS"
9943 esac
9945 case $lt_cv_dlopen_self in
9946 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9947 *) enable_dlopen_self=unknown ;;
9948 esac
9950 case $lt_cv_dlopen_self_static in
9951 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9952 *) enable_dlopen_self_static=unknown ;;
9953 esac
9957 # Report which library types will actually be built
9958 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9959 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9960 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9961 echo "${ECHO_T}$can_build_shared" >&6; }
9963 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9964 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9965 test "$can_build_shared" = "no" && enable_shared=no
9967 # On AIX, shared libraries and static libraries use the same namespace, and
9968 # are all built from PIC.
9969 case $host_os in
9970 aix3*)
9971 test "$enable_shared" = yes && enable_static=no
9972 if test -n "$RANLIB"; then
9973 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9974 postinstall_cmds='$RANLIB $lib'
9978 aix4* | aix5*)
9979 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9980 test "$enable_shared" = yes && enable_static=no
9983 esac
9984 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9985 echo "${ECHO_T}$enable_shared" >&6; }
9987 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9989 # Make sure either enable_shared or enable_static is yes.
9990 test "$enable_shared" = yes || enable_static=yes
9991 { echo "$as_me:$LINENO: result: $enable_static" >&5
9992 echo "${ECHO_T}$enable_static" >&6; }
9994 # The else clause should only fire when bootstrapping the
9995 # libtool distribution, otherwise you forgot to ship ltmain.sh
9996 # with your package, and you will get complaints that there are
9997 # no rules to generate ltmain.sh.
9998 if test -f "$ltmain"; then
9999 # See if we are running on zsh, and set the options which allow our commands through
10000 # without removal of \ escapes.
10001 if test -n "${ZSH_VERSION+set}" ; then
10002 setopt NO_GLOB_SUBST
10004 # Now quote all the things that may contain metacharacters while being
10005 # careful not to overquote the AC_SUBSTed values. We take copies of the
10006 # variables and quote the copies for generation of the libtool script.
10007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10008 SED SHELL STRIP \
10009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10011 deplibs_check_method reload_flag reload_cmds need_locks \
10012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10013 lt_cv_sys_global_symbol_to_c_name_address \
10014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10015 old_postinstall_cmds old_postuninstall_cmds \
10016 compiler \
10017 CC \
10018 LD \
10019 lt_prog_compiler_wl \
10020 lt_prog_compiler_pic \
10021 lt_prog_compiler_static \
10022 lt_prog_compiler_no_builtin_flag \
10023 export_dynamic_flag_spec \
10024 thread_safe_flag_spec \
10025 whole_archive_flag_spec \
10026 enable_shared_with_static_runtimes \
10027 old_archive_cmds \
10028 old_archive_from_new_cmds \
10029 predep_objects \
10030 postdep_objects \
10031 predeps \
10032 postdeps \
10033 compiler_lib_search_path \
10034 archive_cmds \
10035 archive_expsym_cmds \
10036 postinstall_cmds \
10037 postuninstall_cmds \
10038 old_archive_from_expsyms_cmds \
10039 allow_undefined_flag \
10040 no_undefined_flag \
10041 export_symbols_cmds \
10042 hardcode_libdir_flag_spec \
10043 hardcode_libdir_flag_spec_ld \
10044 hardcode_libdir_separator \
10045 hardcode_automatic \
10046 module_cmds \
10047 module_expsym_cmds \
10048 lt_cv_prog_compiler_c_o \
10049 exclude_expsyms \
10050 include_expsyms; do
10052 case $var in
10053 old_archive_cmds | \
10054 old_archive_from_new_cmds | \
10055 archive_cmds | \
10056 archive_expsym_cmds | \
10057 module_cmds | \
10058 module_expsym_cmds | \
10059 old_archive_from_expsyms_cmds | \
10060 export_symbols_cmds | \
10061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10062 postinstall_cmds | postuninstall_cmds | \
10063 old_postinstall_cmds | old_postuninstall_cmds | \
10064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10065 # Double-quote double-evaled strings.
10066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10071 esac
10072 done
10074 case $lt_echo in
10075 *'\$0 --fallback-echo"')
10076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10078 esac
10080 cfgfile="${ofile}T"
10081 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10082 $rm -f "$cfgfile"
10083 { echo "$as_me:$LINENO: creating $ofile" >&5
10084 echo "$as_me: creating $ofile" >&6;}
10086 cat <<__EOF__ >> "$cfgfile"
10087 #! $SHELL
10089 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10090 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10094 # Free Software Foundation, Inc.
10096 # This file is part of GNU Libtool:
10097 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10099 # This program is free software; you can redistribute it and/or modify
10100 # it under the terms of the GNU General Public License as published by
10101 # the Free Software Foundation; either version 2 of the License, or
10102 # (at your option) any later version.
10104 # This program is distributed in the hope that it will be useful, but
10105 # WITHOUT ANY WARRANTY; without even the implied warranty of
10106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10107 # General Public License for more details.
10109 # You should have received a copy of the GNU General Public License
10110 # along with this program; if not, write to the Free Software
10111 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10113 # As a special exception to the GNU General Public License, if you
10114 # distribute this file as part of a program that contains a
10115 # configuration script generated by Autoconf, you may include it under
10116 # the same distribution terms that you use for the rest of that program.
10118 # A sed program that does not truncate output.
10119 SED=$lt_SED
10121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10122 Xsed="$SED -e 1s/^X//"
10124 # The HP-UX ksh and POSIX shell print the target directory to stdout
10125 # if CDPATH is set.
10126 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10128 # The names of the tagged configurations supported by this script.
10129 available_tags=
10131 # ### BEGIN LIBTOOL CONFIG
10133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10135 # Shell to use when invoking shell scripts.
10136 SHELL=$lt_SHELL
10138 # Whether or not to build shared libraries.
10139 build_libtool_libs=$enable_shared
10141 # Whether or not to build static libraries.
10142 build_old_libs=$enable_static
10144 # Whether or not to add -lc for building shared libraries.
10145 build_libtool_need_lc=$archive_cmds_need_lc
10147 # Whether or not to disallow shared libs when runtime libs are static
10148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10150 # Whether or not to optimize for fast installation.
10151 fast_install=$enable_fast_install
10153 # The host system.
10154 host_alias=$host_alias
10155 host=$host
10156 host_os=$host_os
10158 # The build system.
10159 build_alias=$build_alias
10160 build=$build
10161 build_os=$build_os
10163 # An echo program that does not interpret backslashes.
10164 echo=$lt_echo
10166 # The archiver.
10167 AR=$lt_AR
10168 AR_FLAGS=$lt_AR_FLAGS
10170 # A C compiler.
10171 LTCC=$lt_LTCC
10173 # LTCC compiler flags.
10174 LTCFLAGS=$lt_LTCFLAGS
10176 # A language-specific compiler.
10177 CC=$lt_compiler
10179 # Is the compiler the GNU C compiler?
10180 with_gcc=$GCC
10182 # An ERE matcher.
10183 EGREP=$lt_EGREP
10185 # The linker used to build libraries.
10186 LD=$lt_LD
10188 # Whether we need hard or soft links.
10189 LN_S=$lt_LN_S
10191 # A BSD-compatible nm program.
10192 NM=$lt_NM
10194 # A symbol stripping program
10195 STRIP=$lt_STRIP
10197 # Used to examine libraries when file_magic_cmd begins "file"
10198 MAGIC_CMD=$MAGIC_CMD
10200 # Used on cygwin: DLL creation program.
10201 DLLTOOL="$DLLTOOL"
10203 # Used on cygwin: object dumper.
10204 OBJDUMP="$OBJDUMP"
10206 # Used on cygwin: assembler.
10207 AS="$AS"
10209 # The name of the directory that contains temporary libtool files.
10210 objdir=$objdir
10212 # How to create reloadable object files.
10213 reload_flag=$lt_reload_flag
10214 reload_cmds=$lt_reload_cmds
10216 # How to pass a linker flag through the compiler.
10217 wl=$lt_lt_prog_compiler_wl
10219 # Object file suffix (normally "o").
10220 objext="$ac_objext"
10222 # Old archive suffix (normally "a").
10223 libext="$libext"
10225 # Shared library suffix (normally ".so").
10226 shrext_cmds='$shrext_cmds'
10228 # Executable file suffix (normally "").
10229 exeext="$exeext"
10231 # Additional compiler flags for building library objects.
10232 pic_flag=$lt_lt_prog_compiler_pic
10233 pic_mode=$pic_mode
10235 # What is the maximum length of a command?
10236 max_cmd_len=$lt_cv_sys_max_cmd_len
10238 # Does compiler simultaneously support -c and -o options?
10239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10241 # Must we lock files when doing compilation?
10242 need_locks=$lt_need_locks
10244 # Do we need the lib prefix for modules?
10245 need_lib_prefix=$need_lib_prefix
10247 # Do we need a version for libraries?
10248 need_version=$need_version
10250 # Whether dlopen is supported.
10251 dlopen_support=$enable_dlopen
10253 # Whether dlopen of programs is supported.
10254 dlopen_self=$enable_dlopen_self
10256 # Whether dlopen of statically linked programs is supported.
10257 dlopen_self_static=$enable_dlopen_self_static
10259 # Compiler flag to prevent dynamic linking.
10260 link_static_flag=$lt_lt_prog_compiler_static
10262 # Compiler flag to turn off builtin functions.
10263 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10265 # Compiler flag to allow reflexive dlopens.
10266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10268 # Compiler flag to generate shared objects directly from archives.
10269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10271 # Compiler flag to generate thread-safe objects.
10272 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10274 # Library versioning type.
10275 version_type=$version_type
10277 # Format of library name prefix.
10278 libname_spec=$lt_libname_spec
10280 # List of archive names. First name is the real one, the rest are links.
10281 # The last name is the one that the linker finds with -lNAME.
10282 library_names_spec=$lt_library_names_spec
10284 # The coded name of the library, if different from the real name.
10285 soname_spec=$lt_soname_spec
10287 # Commands used to build and install an old-style archive.
10288 RANLIB=$lt_RANLIB
10289 old_archive_cmds=$lt_old_archive_cmds
10290 old_postinstall_cmds=$lt_old_postinstall_cmds
10291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10293 # Create an old-style archive from a shared archive.
10294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10296 # Create a temporary old-style archive to link instead of a shared archive.
10297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10299 # Commands used to build and install a shared archive.
10300 archive_cmds=$lt_archive_cmds
10301 archive_expsym_cmds=$lt_archive_expsym_cmds
10302 postinstall_cmds=$lt_postinstall_cmds
10303 postuninstall_cmds=$lt_postuninstall_cmds
10305 # Commands used to build a loadable module (assumed same as above if empty)
10306 module_cmds=$lt_module_cmds
10307 module_expsym_cmds=$lt_module_expsym_cmds
10309 # Commands to strip libraries.
10310 old_striplib=$lt_old_striplib
10311 striplib=$lt_striplib
10313 # Dependencies to place before the objects being linked to create a
10314 # shared library.
10315 predep_objects=$lt_predep_objects
10317 # Dependencies to place after the objects being linked to create a
10318 # shared library.
10319 postdep_objects=$lt_postdep_objects
10321 # Dependencies to place before the objects being linked to create a
10322 # shared library.
10323 predeps=$lt_predeps
10325 # Dependencies to place after the objects being linked to create a
10326 # shared library.
10327 postdeps=$lt_postdeps
10329 # The library search path used internally by the compiler when linking
10330 # a shared library.
10331 compiler_lib_search_path=$lt_compiler_lib_search_path
10333 # Method to check whether dependent libraries are shared objects.
10334 deplibs_check_method=$lt_deplibs_check_method
10336 # Command to use when deplibs_check_method == file_magic.
10337 file_magic_cmd=$lt_file_magic_cmd
10339 # Flag that allows shared libraries with undefined symbols to be built.
10340 allow_undefined_flag=$lt_allow_undefined_flag
10342 # Flag that forces no undefined symbols.
10343 no_undefined_flag=$lt_no_undefined_flag
10345 # Commands used to finish a libtool library installation in a directory.
10346 finish_cmds=$lt_finish_cmds
10348 # Same as above, but a single script fragment to be evaled but not shown.
10349 finish_eval=$lt_finish_eval
10351 # Take the output of nm and produce a listing of raw symbols and C names.
10352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10354 # Transform the output of nm in a proper C declaration
10355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10357 # Transform the output of nm in a C name address pair
10358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10360 # This is the shared library runtime path variable.
10361 runpath_var=$runpath_var
10363 # This is the shared library path variable.
10364 shlibpath_var=$shlibpath_var
10366 # Is shlibpath searched before the hard-coded library search path?
10367 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10369 # How to hardcode a shared library path into an executable.
10370 hardcode_action=$hardcode_action
10372 # Whether we should hardcode library paths into libraries.
10373 hardcode_into_libs=$hardcode_into_libs
10375 # Flag to hardcode \$libdir into a binary during linking.
10376 # This must work even if \$libdir does not exist.
10377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10379 # If ld is used when linking, flag to hardcode \$libdir into
10380 # a binary during linking. This must work even if \$libdir does
10381 # not exist.
10382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10384 # Whether we need a single -rpath flag with a separated argument.
10385 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10387 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10388 # resulting binary.
10389 hardcode_direct=$hardcode_direct
10391 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10392 # resulting binary.
10393 hardcode_minus_L=$hardcode_minus_L
10395 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10396 # the resulting binary.
10397 hardcode_shlibpath_var=$hardcode_shlibpath_var
10399 # Set to yes if building a shared library automatically hardcodes DIR into the library
10400 # and all subsequent libraries and executables linked against it.
10401 hardcode_automatic=$hardcode_automatic
10403 # Variables whose values should be saved in libtool wrapper scripts and
10404 # restored at relink time.
10405 variables_saved_for_relink="$variables_saved_for_relink"
10407 # Whether libtool must link a program against all its dependency libraries.
10408 link_all_deplibs=$link_all_deplibs
10410 # Compile-time system search path for libraries
10411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10413 # Run-time system search path for libraries
10414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10416 # Fix the shell variable \$srcfile for the compiler.
10417 fix_srcfile_path="$fix_srcfile_path"
10419 # Set to yes if exported symbols are required.
10420 always_export_symbols=$always_export_symbols
10422 # The commands to list exported symbols.
10423 export_symbols_cmds=$lt_export_symbols_cmds
10425 # The commands to extract the exported symbol list from a shared archive.
10426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10428 # Symbols that should not be listed in the preloaded symbols.
10429 exclude_expsyms=$lt_exclude_expsyms
10431 # Symbols that must always be exported.
10432 include_expsyms=$lt_include_expsyms
10434 # ### END LIBTOOL CONFIG
10436 __EOF__
10439 case $host_os in
10440 aix3*)
10441 cat <<\EOF >> "$cfgfile"
10443 # AIX sometimes has problems with the GCC collect2 program. For some
10444 # reason, if we set the COLLECT_NAMES environment variable, the problems
10445 # vanish in a puff of smoke.
10446 if test "X${COLLECT_NAMES+set}" != Xset; then
10447 COLLECT_NAMES=
10448 export COLLECT_NAMES
10452 esac
10454 # We use sed instead of cat because bash on DJGPP gets confused if
10455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10456 # text mode, it properly converts lines to CR/LF. This bash problem
10457 # is reportedly fixed, but why not run on old versions too?
10458 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10460 mv -f "$cfgfile" "$ofile" || \
10461 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10462 chmod +x "$ofile"
10464 else
10465 # If there is no Makefile yet, we rely on a make rule to execute
10466 # `config.status --recheck' to rerun these tests and create the
10467 # libtool script then.
10468 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10469 if test -f "$ltmain_in"; then
10470 test -f Makefile && make "$ltmain"
10475 ac_ext=c
10476 ac_cpp='$CPP $CPPFLAGS'
10477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10481 CC="$lt_save_CC"
10484 # Check whether --with-tags was given.
10485 if test "${with_tags+set}" = set; then
10486 withval=$with_tags; tagnames="$withval"
10490 if test -f "$ltmain" && test -n "$tagnames"; then
10491 if test ! -f "${ofile}"; then
10492 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10493 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10496 if test -z "$LTCC"; then
10497 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10498 if test -z "$LTCC"; then
10499 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10500 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10501 else
10502 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10503 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10506 if test -z "$LTCFLAGS"; then
10507 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10510 # Extract list of available tagged configurations in $ofile.
10511 # Note that this assumes the entire list is on one line.
10512 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10515 for tagname in $tagnames; do
10516 IFS="$lt_save_ifs"
10517 # Check whether tagname contains only valid characters
10518 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10519 "") ;;
10520 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10522 { (exit 1); exit 1; }; }
10524 esac
10526 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10527 then
10528 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10530 { (exit 1); exit 1; }; }
10533 # Update the list of available tags.
10534 if test -n "$tagname"; then
10535 echo appending configuration tag \"$tagname\" to $ofile
10537 case $tagname in
10538 CXX)
10539 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10540 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10541 (test "X$CXX" != "Xg++"))) ; then
10542 ac_ext=cpp
10543 ac_cpp='$CXXCPP $CPPFLAGS'
10544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10551 archive_cmds_need_lc_CXX=no
10552 allow_undefined_flag_CXX=
10553 always_export_symbols_CXX=no
10554 archive_expsym_cmds_CXX=
10555 export_dynamic_flag_spec_CXX=
10556 hardcode_direct_CXX=no
10557 hardcode_libdir_flag_spec_CXX=
10558 hardcode_libdir_flag_spec_ld_CXX=
10559 hardcode_libdir_separator_CXX=
10560 hardcode_minus_L_CXX=no
10561 hardcode_shlibpath_var_CXX=unsupported
10562 hardcode_automatic_CXX=no
10563 module_cmds_CXX=
10564 module_expsym_cmds_CXX=
10565 link_all_deplibs_CXX=unknown
10566 old_archive_cmds_CXX=$old_archive_cmds
10567 no_undefined_flag_CXX=
10568 whole_archive_flag_spec_CXX=
10569 enable_shared_with_static_runtimes_CXX=no
10571 # Dependencies to place before and after the object being linked:
10572 predep_objects_CXX=
10573 postdep_objects_CXX=
10574 predeps_CXX=
10575 postdeps_CXX=
10576 compiler_lib_search_path_CXX=
10578 # Source file extension for C++ test sources.
10579 ac_ext=cpp
10581 # Object file extension for compiled C++ test sources.
10582 objext=o
10583 objext_CXX=$objext
10585 # Code to be used in simple compile tests
10586 lt_simple_compile_test_code="int some_variable = 0;\n"
10588 # Code to be used in simple link tests
10589 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10591 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10593 # If no C compiler was specified, use CC.
10594 LTCC=${LTCC-"$CC"}
10596 # If no C compiler flags were specified, use CFLAGS.
10597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10599 # Allow CC to be a program name with arguments.
10600 compiler=$CC
10603 # save warnings/boilerplate of simple test code
10604 ac_outfile=conftest.$ac_objext
10605 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10607 _lt_compiler_boilerplate=`cat conftest.err`
10608 $rm conftest*
10610 ac_outfile=conftest.$ac_objext
10611 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10613 _lt_linker_boilerplate=`cat conftest.err`
10614 $rm conftest*
10617 # Allow CC to be a program name with arguments.
10618 lt_save_CC=$CC
10619 lt_save_LD=$LD
10620 lt_save_GCC=$GCC
10621 GCC=$GXX
10622 lt_save_with_gnu_ld=$with_gnu_ld
10623 lt_save_path_LD=$lt_cv_path_LD
10624 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10625 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10626 else
10627 $as_unset lt_cv_prog_gnu_ld
10629 if test -n "${lt_cv_path_LDCXX+set}"; then
10630 lt_cv_path_LD=$lt_cv_path_LDCXX
10631 else
10632 $as_unset lt_cv_path_LD
10634 test -z "${LDCXX+set}" || LD=$LDCXX
10635 CC=${CXX-"c++"}
10636 compiler=$CC
10637 compiler_CXX=$CC
10638 for cc_temp in $compiler""; do
10639 case $cc_temp in
10640 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10641 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10642 \-*) ;;
10643 *) break;;
10644 esac
10645 done
10646 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10649 # We don't want -fno-exception wen compiling C++ code, so set the
10650 # no_builtin_flag separately
10651 if test "$GXX" = yes; then
10652 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10653 else
10654 lt_prog_compiler_no_builtin_flag_CXX=
10657 if test "$GXX" = yes; then
10658 # Set up default GNU C++ configuration
10661 # Check whether --with-gnu-ld was given.
10662 if test "${with_gnu_ld+set}" = set; then
10663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10664 else
10665 with_gnu_ld=no
10668 ac_prog=ld
10669 if test "$GCC" = yes; then
10670 # Check if gcc -print-prog-name=ld gives a path.
10671 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10672 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10673 case $host in
10674 *-*-mingw*)
10675 # gcc leaves a trailing carriage return which upsets mingw
10676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10679 esac
10680 case $ac_prog in
10681 # Accept absolute paths.
10682 [\\/]* | ?:[\\/]*)
10683 re_direlt='/[^/][^/]*/\.\./'
10684 # Canonicalize the pathname of ld
10685 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10686 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10687 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10688 done
10689 test -z "$LD" && LD="$ac_prog"
10692 # If it fails, then pretend we aren't using GCC.
10693 ac_prog=ld
10696 # If it is relative, then search for the first ld in PATH.
10697 with_gnu_ld=unknown
10699 esac
10700 elif test "$with_gnu_ld" = yes; then
10701 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10702 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10703 else
10704 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10705 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10707 if test "${lt_cv_path_LD+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710 if test -z "$LD"; then
10711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10712 for ac_dir in $PATH; do
10713 IFS="$lt_save_ifs"
10714 test -z "$ac_dir" && ac_dir=.
10715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10716 lt_cv_path_LD="$ac_dir/$ac_prog"
10717 # Check to see if the program is GNU ld. I'd rather use --version,
10718 # but apparently some variants of GNU ld only accept -v.
10719 # Break only if it was the GNU/non-GNU ld that we prefer.
10720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10721 *GNU* | *'with BFD'*)
10722 test "$with_gnu_ld" != no && break
10725 test "$with_gnu_ld" != yes && break
10727 esac
10729 done
10730 IFS="$lt_save_ifs"
10731 else
10732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10736 LD="$lt_cv_path_LD"
10737 if test -n "$LD"; then
10738 { echo "$as_me:$LINENO: result: $LD" >&5
10739 echo "${ECHO_T}$LD" >&6; }
10740 else
10741 { echo "$as_me:$LINENO: result: no" >&5
10742 echo "${ECHO_T}no" >&6; }
10744 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10745 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10746 { (exit 1); exit 1; }; }
10747 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10748 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10749 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10753 case `$LD -v 2>&1 </dev/null` in
10754 *GNU* | *'with BFD'*)
10755 lt_cv_prog_gnu_ld=yes
10758 lt_cv_prog_gnu_ld=no
10760 esac
10762 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10763 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10764 with_gnu_ld=$lt_cv_prog_gnu_ld
10768 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10769 # archiving commands below assume that GNU ld is being used.
10770 if test "$with_gnu_ld" = yes; then
10771 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10772 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'
10774 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10777 # If archive_cmds runs LD, not CC, wlarc should be empty
10778 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10779 # investigate it a little bit more. (MM)
10780 wlarc='${wl}'
10782 # ancient GNU ld didn't support --whole-archive et. al.
10783 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10784 grep 'no-whole-archive' > /dev/null; then
10785 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10786 else
10787 whole_archive_flag_spec_CXX=
10789 else
10790 with_gnu_ld=no
10791 wlarc=
10793 # A generic and very simple default shared library creation
10794 # command for GNU C++ for the case where it uses the native
10795 # linker, instead of GNU ld. If possible, this setting should
10796 # overridden to take advantage of the native linker features on
10797 # the platform it is being used on.
10798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10801 # Commands to make compiler produce verbose output that lists
10802 # what "hidden" libraries, object files and flags are used when
10803 # linking a shared library.
10804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10806 else
10807 GXX=no
10808 with_gnu_ld=no
10809 wlarc=
10812 # PORTME: fill in a description of your system's C++ link characteristics
10813 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10814 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10815 ld_shlibs_CXX=yes
10816 case $host_os in
10817 aix3*)
10818 # FIXME: insert proper C++ library support
10819 ld_shlibs_CXX=no
10821 aix4* | aix5*)
10822 if test "$host_cpu" = ia64; then
10823 # On IA64, the linker does run time linking by default, so we don't
10824 # have to do anything special.
10825 aix_use_runtimelinking=no
10826 exp_sym_flag='-Bexport'
10827 no_entry_flag=""
10828 else
10829 aix_use_runtimelinking=no
10831 # Test if we are trying to use run time linking or normal
10832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10833 # need to do runtime linking.
10834 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10835 for ld_flag in $LDFLAGS; do
10836 case $ld_flag in
10837 *-brtl*)
10838 aix_use_runtimelinking=yes
10839 break
10841 esac
10842 done
10844 esac
10846 exp_sym_flag='-bexport'
10847 no_entry_flag='-bnoentry'
10850 # When large executables or shared objects are built, AIX ld can
10851 # have problems creating the table of contents. If linking a library
10852 # or program results in "error TOC overflow" add -mminimal-toc to
10853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10856 archive_cmds_CXX=''
10857 hardcode_direct_CXX=yes
10858 hardcode_libdir_separator_CXX=':'
10859 link_all_deplibs_CXX=yes
10861 if test "$GXX" = yes; then
10862 case $host_os in aix4.[012]|aix4.[012].*)
10863 # We only want to do this on AIX 4.2 and lower, the check
10864 # below for broken collect2 doesn't work under 4.3+
10865 collect2name=`${CC} -print-prog-name=collect2`
10866 if test -f "$collect2name" && \
10867 strings "$collect2name" | grep resolve_lib_name >/dev/null
10868 then
10869 # We have reworked collect2
10870 hardcode_direct_CXX=yes
10871 else
10872 # We have old collect2
10873 hardcode_direct_CXX=unsupported
10874 # It fails to find uninstalled libraries when the uninstalled
10875 # path is not listed in the libpath. Setting hardcode_minus_L
10876 # to unsupported forces relinking
10877 hardcode_minus_L_CXX=yes
10878 hardcode_libdir_flag_spec_CXX='-L$libdir'
10879 hardcode_libdir_separator_CXX=
10882 esac
10883 shared_flag='-shared'
10884 if test "$aix_use_runtimelinking" = yes; then
10885 shared_flag="$shared_flag "'${wl}-G'
10887 else
10888 # not using gcc
10889 if test "$host_cpu" = ia64; then
10890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10891 # chokes on -Wl,-G. The following line is correct:
10892 shared_flag='-G'
10893 else
10894 if test "$aix_use_runtimelinking" = yes; then
10895 shared_flag='${wl}-G'
10896 else
10897 shared_flag='${wl}-bM:SRE'
10902 # It seems that -bexpall does not export symbols beginning with
10903 # underscore (_), so it is better to generate a list of symbols to export.
10904 always_export_symbols_CXX=yes
10905 if test "$aix_use_runtimelinking" = yes; then
10906 # Warning - without using the other runtime loading flags (-brtl),
10907 # -berok will link without error, but may produce a broken library.
10908 allow_undefined_flag_CXX='-berok'
10909 # Determine the default libpath from the value encoded in an empty executable.
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10918 main ()
10922 return 0;
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_cxx_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest$ac_exeext &&
10942 $as_test_x conftest$ac_exeext; then
10944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10946 # Check for a 64-bit object if we didn't find anything.
10947 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10948 }'`; fi
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10957 conftest$ac_exeext conftest.$ac_ext
10958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10960 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10962 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"
10963 else
10964 if test "$host_cpu" = ia64; then
10965 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10966 allow_undefined_flag_CXX="-z nodefs"
10967 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"
10968 else
10969 # Determine the default libpath from the value encoded in an empty executable.
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h. */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10978 main ()
10982 return 0;
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_cxx_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext &&
11002 $as_test_x conftest$ac_exeext; then
11004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11006 # Check for a 64-bit object if we didn't find anything.
11007 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11008 }'`; fi
11009 else
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017 conftest$ac_exeext conftest.$ac_ext
11018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11020 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11021 # Warning - without using the other run time loading flags,
11022 # -berok will link without error, but may produce a broken library.
11023 no_undefined_flag_CXX=' ${wl}-bernotok'
11024 allow_undefined_flag_CXX=' ${wl}-berok'
11025 # Exported symbols can be pulled into shared objects from archives
11026 whole_archive_flag_spec_CXX='$convenience'
11027 archive_cmds_need_lc_CXX=yes
11028 # This is similar to how AIX traditionally builds its shared libraries.
11029 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'
11034 beos*)
11035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11036 allow_undefined_flag_CXX=unsupported
11037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11038 # support --undefined. This deserves some investigation. FIXME
11039 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040 else
11041 ld_shlibs_CXX=no
11045 chorus*)
11046 case $cc_basename in
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11051 esac
11054 cygwin* | mingw* | pw32*)
11055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11056 # as there is no search path for DLLs.
11057 hardcode_libdir_flag_spec_CXX='-L$libdir'
11058 allow_undefined_flag_CXX=unsupported
11059 always_export_symbols_CXX=no
11060 enable_shared_with_static_runtimes_CXX=yes
11062 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11063 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'
11064 # If the export-symbols file already is a .def file (1st line
11065 # is EXPORTS), use it as is; otherwise, prepend...
11066 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11067 cp $export_symbols $output_objdir/$soname.def;
11068 else
11069 echo EXPORTS > $output_objdir/$soname.def;
11070 cat $export_symbols >> $output_objdir/$soname.def;
11072 $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'
11073 else
11074 ld_shlibs_CXX=no
11077 darwin* | rhapsody*)
11078 case $host_os in
11079 rhapsody* | darwin1.[012])
11080 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11082 *) # Darwin 1.3 on
11083 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11084 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11085 else
11086 case ${MACOSX_DEPLOYMENT_TARGET} in
11087 10.[012])
11088 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11090 10.*)
11091 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11093 esac
11096 esac
11097 archive_cmds_need_lc_CXX=no
11098 hardcode_direct_CXX=no
11099 hardcode_automatic_CXX=yes
11100 hardcode_shlibpath_var_CXX=unsupported
11101 whole_archive_flag_spec_CXX=''
11102 link_all_deplibs_CXX=yes
11104 if test "$GXX" = yes ; then
11105 lt_int_apple_cc_single_mod=no
11106 output_verbose_link_cmd='echo'
11107 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11108 lt_int_apple_cc_single_mod=yes
11110 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11111 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11112 else
11113 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'
11115 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11117 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11118 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11119 else
11120 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11122 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}'
11123 else
11124 case $cc_basename in
11125 xlc*)
11126 output_verbose_link_cmd='echo'
11127 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11128 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11130 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11131 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}'
11134 ld_shlibs_CXX=no
11136 esac
11140 dgux*)
11141 case $cc_basename in
11142 ec++*)
11143 # FIXME: insert proper C++ library support
11144 ld_shlibs_CXX=no
11146 ghcx*)
11147 # Green Hills C++ Compiler
11148 # FIXME: insert proper C++ library support
11149 ld_shlibs_CXX=no
11152 # FIXME: insert proper C++ library support
11153 ld_shlibs_CXX=no
11155 esac
11157 freebsd[12]*)
11158 # C++ shared libraries reported to be fairly broken before switch to ELF
11159 ld_shlibs_CXX=no
11161 freebsd-elf*)
11162 archive_cmds_need_lc_CXX=no
11164 freebsd* | dragonfly*)
11165 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11166 # conventions
11167 ld_shlibs_CXX=yes
11169 gnu*)
11171 hpux9*)
11172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11173 hardcode_libdir_separator_CXX=:
11174 export_dynamic_flag_spec_CXX='${wl}-E'
11175 hardcode_direct_CXX=yes
11176 hardcode_minus_L_CXX=yes # Not in the search PATH,
11177 # but as the default
11178 # location of the library.
11180 case $cc_basename in
11181 CC*)
11182 # FIXME: insert proper C++ library support
11183 ld_shlibs_CXX=no
11185 aCC*)
11186 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'
11187 # Commands to make compiler produce verbose output that lists
11188 # what "hidden" libraries, object files and flags are used when
11189 # linking a shared library.
11191 # There doesn't appear to be a way to prevent this compiler from
11192 # explicitly linking system object files so we need to strip them
11193 # from the output so that they don't get included in the library
11194 # dependencies.
11195 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'
11198 if test "$GXX" = yes; then
11199 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'
11200 else
11201 # FIXME: insert proper C++ library support
11202 ld_shlibs_CXX=no
11205 esac
11207 hpux10*|hpux11*)
11208 if test $with_gnu_ld = no; then
11209 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11210 hardcode_libdir_separator_CXX=:
11212 case $host_cpu in
11213 hppa*64*|ia64*)
11214 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11217 export_dynamic_flag_spec_CXX='${wl}-E'
11219 esac
11221 case $host_cpu in
11222 hppa*64*|ia64*)
11223 hardcode_direct_CXX=no
11224 hardcode_shlibpath_var_CXX=no
11227 hardcode_direct_CXX=yes
11228 hardcode_minus_L_CXX=yes # Not in the search PATH,
11229 # but as the default
11230 # location of the library.
11232 esac
11234 case $cc_basename in
11235 CC*)
11236 # FIXME: insert proper C++ library support
11237 ld_shlibs_CXX=no
11239 aCC*)
11240 case $host_cpu in
11241 hppa*64*)
11242 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11244 ia64*)
11245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11248 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11250 esac
11251 # Commands to make compiler produce verbose output that lists
11252 # what "hidden" libraries, object files and flags are used when
11253 # linking a shared library.
11255 # There doesn't appear to be a way to prevent this compiler from
11256 # explicitly linking system object files so we need to strip them
11257 # from the output so that they don't get included in the library
11258 # dependencies.
11259 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'
11262 if test "$GXX" = yes; then
11263 if test $with_gnu_ld = no; then
11264 case $host_cpu in
11265 hppa*64*)
11266 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11268 ia64*)
11269 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11272 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'
11274 esac
11276 else
11277 # FIXME: insert proper C++ library support
11278 ld_shlibs_CXX=no
11281 esac
11283 interix3*)
11284 hardcode_direct_CXX=no
11285 hardcode_shlibpath_var_CXX=no
11286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11287 export_dynamic_flag_spec_CXX='${wl}-E'
11288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11289 # Instead, shared libraries are loaded at an image base (0x10000000 by
11290 # default) and relocated if they conflict, which is a slow very memory
11291 # consuming and fragmenting process. To avoid this, we pick a random,
11292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11294 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'
11295 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'
11297 irix5* | irix6*)
11298 case $cc_basename in
11299 CC*)
11300 # SGI C++
11301 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'
11303 # Archives containing C++ object files must be created using
11304 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11305 # necessary to make sure instantiated templates are included
11306 # in the archive.
11307 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11310 if test "$GXX" = yes; then
11311 if test "$with_gnu_ld" = no; then
11312 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'
11313 else
11314 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'
11317 link_all_deplibs_CXX=yes
11319 esac
11320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11321 hardcode_libdir_separator_CXX=:
11323 linux* | k*bsd*-gnu)
11324 case $cc_basename in
11325 KCC*)
11326 # Kuck and Associates, Inc. (KAI) C++ Compiler
11328 # KCC will only create a shared library if the output file
11329 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11330 # to its proper name (with version) after linking.
11331 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'
11332 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'
11333 # Commands to make compiler produce verbose output that lists
11334 # what "hidden" libraries, object files and flags are used when
11335 # linking a shared library.
11337 # There doesn't appear to be a way to prevent this compiler from
11338 # explicitly linking system object files so we need to strip them
11339 # from the output so that they don't get included in the library
11340 # dependencies.
11341 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'
11343 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11346 # Archives containing C++ object files must be created using
11347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11350 icpc*)
11351 # Intel C++
11352 with_gnu_ld=yes
11353 # version 8.0 and above of icpc choke on multiply defined symbols
11354 # if we add $predep_objects and $postdep_objects, however 7.1 and
11355 # earlier do not add the objects themselves.
11356 case `$CC -V 2>&1` in
11357 *"Version 7."*)
11358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11359 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'
11361 *) # Version 8.0 or newer
11362 tmp_idyn=
11363 case $host_cpu in
11364 ia64*) tmp_idyn=' -i_dynamic';;
11365 esac
11366 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11367 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'
11369 esac
11370 archive_cmds_need_lc_CXX=no
11371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11373 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11375 pgCC*)
11376 # Portland Group C++ compiler
11377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11378 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'
11380 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11382 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'
11384 cxx*)
11385 # Compaq C++
11386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11387 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'
11389 runpath_var=LD_RUN_PATH
11390 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11391 hardcode_libdir_separator_CXX=:
11393 # Commands to make compiler produce verbose output that lists
11394 # what "hidden" libraries, object files and flags are used when
11395 # linking a shared library.
11397 # There doesn't appear to be a way to prevent this compiler from
11398 # explicitly linking system object files so we need to strip them
11399 # from the output so that they don't get included in the library
11400 # dependencies.
11401 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'
11403 esac
11405 lynxos*)
11406 # FIXME: insert proper C++ library support
11407 ld_shlibs_CXX=no
11409 m88k*)
11410 # FIXME: insert proper C++ library support
11411 ld_shlibs_CXX=no
11413 mvs*)
11414 case $cc_basename in
11415 cxx*)
11416 # FIXME: insert proper C++ library support
11417 ld_shlibs_CXX=no
11420 # FIXME: insert proper C++ library support
11421 ld_shlibs_CXX=no
11423 esac
11425 netbsd* | netbsdelf*-gnu)
11426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11427 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11428 wlarc=
11429 hardcode_libdir_flag_spec_CXX='-R$libdir'
11430 hardcode_direct_CXX=yes
11431 hardcode_shlibpath_var_CXX=no
11433 # Workaround some broken pre-1.5 toolchains
11434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11436 openbsd2*)
11437 # C++ shared libraries are fairly broken
11438 ld_shlibs_CXX=no
11440 openbsd*)
11441 hardcode_direct_CXX=yes
11442 hardcode_shlibpath_var_CXX=no
11443 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11445 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11446 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11447 export_dynamic_flag_spec_CXX='${wl}-E'
11448 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11450 output_verbose_link_cmd='echo'
11452 osf3*)
11453 case $cc_basename in
11454 KCC*)
11455 # Kuck and Associates, Inc. (KAI) C++ Compiler
11457 # KCC will only create a shared library if the output file
11458 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11459 # to its proper name (with version) after linking.
11460 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'
11462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11463 hardcode_libdir_separator_CXX=:
11465 # Archives containing C++ object files must be created using
11466 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11467 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11470 RCC*)
11471 # Rational C++ 2.4.1
11472 # FIXME: insert proper C++ library support
11473 ld_shlibs_CXX=no
11475 cxx*)
11476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11477 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'
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11480 hardcode_libdir_separator_CXX=:
11482 # Commands to make compiler produce verbose output that lists
11483 # what "hidden" libraries, object files and flags are used when
11484 # linking a shared library.
11486 # There doesn't appear to be a way to prevent this compiler from
11487 # explicitly linking system object files so we need to strip them
11488 # from the output so that they don't get included in the library
11489 # dependencies.
11490 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'
11493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11494 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11495 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'
11497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11498 hardcode_libdir_separator_CXX=:
11500 # Commands to make compiler produce verbose output that lists
11501 # what "hidden" libraries, object files and flags are used when
11502 # linking a shared library.
11503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11505 else
11506 # FIXME: insert proper C++ library support
11507 ld_shlibs_CXX=no
11510 esac
11512 osf4* | osf5*)
11513 case $cc_basename in
11514 KCC*)
11515 # Kuck and Associates, Inc. (KAI) C++ Compiler
11517 # KCC will only create a shared library if the output file
11518 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11519 # to its proper name (with version) after linking.
11520 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'
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523 hardcode_libdir_separator_CXX=:
11525 # Archives containing C++ object files must be created using
11526 # the KAI C++ compiler.
11527 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11529 RCC*)
11530 # Rational C++ 2.4.1
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11534 cxx*)
11535 allow_undefined_flag_CXX=' -expect_unresolved \*'
11536 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'
11537 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11538 echo "-hidden">> $lib.exp~
11539 $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~
11540 $rm $lib.exp'
11542 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11543 hardcode_libdir_separator_CXX=:
11545 # Commands to make compiler produce verbose output that lists
11546 # what "hidden" libraries, object files and flags are used when
11547 # linking a shared library.
11549 # There doesn't appear to be a way to prevent this compiler from
11550 # explicitly linking system object files so we need to strip them
11551 # from the output so that they don't get included in the library
11552 # dependencies.
11553 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'
11556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11557 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11558 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'
11560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11561 hardcode_libdir_separator_CXX=:
11563 # Commands to make compiler produce verbose output that lists
11564 # what "hidden" libraries, object files and flags are used when
11565 # linking a shared library.
11566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11568 else
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11573 esac
11575 psos*)
11576 # FIXME: insert proper C++ library support
11577 ld_shlibs_CXX=no
11579 sunos4*)
11580 case $cc_basename in
11581 CC*)
11582 # Sun C++ 4.x
11583 # FIXME: insert proper C++ library support
11584 ld_shlibs_CXX=no
11586 lcc*)
11587 # Lucid
11588 # FIXME: insert proper C++ library support
11589 ld_shlibs_CXX=no
11592 # FIXME: insert proper C++ library support
11593 ld_shlibs_CXX=no
11595 esac
11597 solaris*)
11598 case $cc_basename in
11599 CC*)
11600 # Sun C++ 4.2, 5.x and Centerline C++
11601 archive_cmds_need_lc_CXX=yes
11602 no_undefined_flag_CXX=' -zdefs'
11603 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11605 $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'
11607 hardcode_libdir_flag_spec_CXX='-R$libdir'
11608 hardcode_shlibpath_var_CXX=no
11609 case $host_os in
11610 solaris2.[0-5] | solaris2.[0-5].*) ;;
11612 # The C++ compiler is used as linker so we must use $wl
11613 # flag to pass the commands to the underlying system
11614 # linker. We must also pass each convience library through
11615 # to the system linker between allextract/defaultextract.
11616 # The C++ compiler will combine linker options so we
11617 # cannot just pass the convience library names through
11618 # without $wl.
11619 # Supported since Solaris 2.6 (maybe 2.5.1?)
11620 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11622 esac
11623 link_all_deplibs_CXX=yes
11625 output_verbose_link_cmd='echo'
11627 # Archives containing C++ object files must be created using
11628 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11629 # necessary to make sure instantiated templates are included
11630 # in the archive.
11631 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11633 gcx*)
11634 # Green Hills C++ Compiler
11635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11637 # The C++ compiler must be used to create the archive.
11638 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11641 # GNU C++ compiler with Solaris linker
11642 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11643 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11644 if $CC --version | grep -v '^2\.7' > /dev/null; then
11645 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11646 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11647 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11652 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11653 else
11654 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11655 # platform.
11656 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11657 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11658 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11660 # Commands to make compiler produce verbose output that lists
11661 # what "hidden" libraries, object files and flags are used when
11662 # linking a shared library.
11663 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11666 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11669 esac
11671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11672 no_undefined_flag_CXX='${wl}-z,text'
11673 archive_cmds_need_lc_CXX=no
11674 hardcode_shlibpath_var_CXX=no
11675 runpath_var='LD_RUN_PATH'
11677 case $cc_basename in
11678 CC*)
11679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11680 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11683 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11686 esac
11688 sysv5* | sco3.2v5* | sco5v6*)
11689 # Note: We can NOT use -z defs as we might desire, because we do not
11690 # link with -lc, and that would cause any symbols used from libc to
11691 # always be unresolved, which means just about no library would
11692 # ever link correctly. If we're not using GNU ld we use -z text
11693 # though, which does catch some bad symbols but isn't as heavy-handed
11694 # as -z defs.
11695 # For security reasons, it is highly recommended that you always
11696 # use absolute paths for naming shared libraries, and exclude the
11697 # DT_RUNPATH tag from executables and libraries. But doing so
11698 # requires that you compile everything twice, which is a pain.
11699 # So that behaviour is only enabled if SCOABSPATH is set to a
11700 # non-empty value in the environment. Most likely only useful for
11701 # creating official distributions of packages.
11702 # This is a hack until libtool officially supports absolute path
11703 # names for shared libraries.
11704 no_undefined_flag_CXX='${wl}-z,text'
11705 allow_undefined_flag_CXX='${wl}-z,nodefs'
11706 archive_cmds_need_lc_CXX=no
11707 hardcode_shlibpath_var_CXX=no
11708 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11709 hardcode_libdir_separator_CXX=':'
11710 link_all_deplibs_CXX=yes
11711 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11712 runpath_var='LD_RUN_PATH'
11714 case $cc_basename in
11715 CC*)
11716 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11717 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11720 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11721 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11723 esac
11725 tandem*)
11726 case $cc_basename in
11727 NCC*)
11728 # NonStop-UX NCC 3.20
11729 # FIXME: insert proper C++ library support
11730 ld_shlibs_CXX=no
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11736 esac
11738 vxworks*)
11739 # FIXME: insert proper C++ library support
11740 ld_shlibs_CXX=no
11743 # FIXME: insert proper C++ library support
11744 ld_shlibs_CXX=no
11746 esac
11747 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11748 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11749 test "$ld_shlibs_CXX" = no && can_build_shared=no
11751 GCC_CXX="$GXX"
11752 LD_CXX="$LD"
11755 cat > conftest.$ac_ext <<EOF
11756 class Foo
11758 public:
11759 Foo (void) { a = 0; }
11760 private:
11761 int a;
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; then
11770 # Parse the compiler output and extract the necessary
11771 # objects, libraries and library flags.
11773 # Sentinel used to keep track of whether or not we are before
11774 # the conftest object file.
11775 pre_test_object_deps_done=no
11777 # The `*' in the case matches for architectures that use `case' in
11778 # $output_verbose_cmd can trigger glob expansion during the loop
11779 # eval without this substitution.
11780 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11782 for p in `eval $output_verbose_link_cmd`; do
11783 case $p in
11785 -L* | -R* | -l*)
11786 # Some compilers place space between "-{L,R}" and the path.
11787 # Remove the space.
11788 if test $p = "-L" \
11789 || test $p = "-R"; then
11790 prev=$p
11791 continue
11792 else
11793 prev=
11796 if test "$pre_test_object_deps_done" = no; then
11797 case $p in
11798 -L* | -R*)
11799 # Internal compiler library paths should come after those
11800 # provided the user. The postdeps already come after the
11801 # user supplied libs so there is no need to process them.
11802 if test -z "$compiler_lib_search_path_CXX"; then
11803 compiler_lib_search_path_CXX="${prev}${p}"
11804 else
11805 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11808 # The "-l" case would never come before the object being
11809 # linked, so don't bother handling this case.
11810 esac
11811 else
11812 if test -z "$postdeps_CXX"; then
11813 postdeps_CXX="${prev}${p}"
11814 else
11815 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11820 *.$objext)
11821 # This assumes that the test object file only shows up
11822 # once in the compiler output.
11823 if test "$p" = "conftest.$objext"; then
11824 pre_test_object_deps_done=yes
11825 continue
11828 if test "$pre_test_object_deps_done" = no; then
11829 if test -z "$predep_objects_CXX"; then
11830 predep_objects_CXX="$p"
11831 else
11832 predep_objects_CXX="$predep_objects_CXX $p"
11834 else
11835 if test -z "$postdep_objects_CXX"; then
11836 postdep_objects_CXX="$p"
11837 else
11838 postdep_objects_CXX="$postdep_objects_CXX $p"
11843 *) ;; # Ignore the rest.
11845 esac
11846 done
11848 # Clean up.
11849 rm -f a.out a.exe
11850 else
11851 echo "libtool.m4: error: problem compiling CXX test program"
11854 $rm -f confest.$objext
11856 # PORTME: override above test on systems where it is broken
11857 case $host_os in
11858 interix3*)
11859 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11860 # hack all around it, let's just trust "g++" to DTRT.
11861 predep_objects_CXX=
11862 postdep_objects_CXX=
11863 postdeps_CXX=
11866 solaris*)
11867 case $cc_basename in
11868 CC*)
11869 # Adding this requires a known-good setup of shared libraries for
11870 # Sun compiler versions before 5.6, else PIC objects from an old
11871 # archive will be linked into the output, leading to subtle bugs.
11872 postdeps_CXX='-lCstd -lCrun'
11874 esac
11876 esac
11879 case " $postdeps_CXX " in
11880 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11881 esac
11883 lt_prog_compiler_wl_CXX=
11884 lt_prog_compiler_pic_CXX=
11885 lt_prog_compiler_static_CXX=
11887 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11890 # C++ specific cases for pic, static, wl, etc.
11891 if test "$GXX" = yes; then
11892 lt_prog_compiler_wl_CXX='-Wl,'
11893 lt_prog_compiler_static_CXX='-static'
11895 case $host_os in
11896 aix*)
11897 # All AIX code is PIC.
11898 if test "$host_cpu" = ia64; then
11899 # AIX 5 now supports IA64 processor
11900 lt_prog_compiler_static_CXX='-Bstatic'
11903 amigaos*)
11904 # FIXME: we need at least 68020 code to build shared libraries, but
11905 # adding the `-m68020' flag to GCC prevents building anything better,
11906 # like `-m68040'.
11907 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11910 # PIC is the default for these OSes.
11912 mingw* | os2* | pw32*)
11913 # This hack is so that the source file can tell whether it is being
11914 # built for inclusion in a dll (and should export symbols for example).
11915 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11917 darwin* | rhapsody*)
11918 # PIC is the default on this platform
11919 # Common symbols not allowed in MH_DYLIB files
11920 lt_prog_compiler_pic_CXX='-fno-common'
11922 *djgpp*)
11923 # DJGPP does not support shared libraries at all
11924 lt_prog_compiler_pic_CXX=
11926 interix3*)
11927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11928 # Instead, we relocate shared libraries at runtime.
11930 sysv4*MP*)
11931 if test -d /usr/nec; then
11932 lt_prog_compiler_pic_CXX=-Kconform_pic
11935 hpux*)
11936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11937 # not for PA HP-UX.
11938 case $host_cpu in
11939 hppa*64*|ia64*)
11942 lt_prog_compiler_pic_CXX='-fPIC'
11944 esac
11947 lt_prog_compiler_pic_CXX='-fPIC'
11949 esac
11950 else
11951 case $host_os in
11952 aix4* | aix5*)
11953 # All AIX code is PIC.
11954 if test "$host_cpu" = ia64; then
11955 # AIX 5 now supports IA64 processor
11956 lt_prog_compiler_static_CXX='-Bstatic'
11957 else
11958 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11961 chorus*)
11962 case $cc_basename in
11963 cxch68*)
11964 # Green Hills C++ Compiler
11965 # _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"
11967 esac
11969 darwin*)
11970 # PIC is the default on this platform
11971 # Common symbols not allowed in MH_DYLIB files
11972 case $cc_basename in
11973 xlc*)
11974 lt_prog_compiler_pic_CXX='-qnocommon'
11975 lt_prog_compiler_wl_CXX='-Wl,'
11977 esac
11979 dgux*)
11980 case $cc_basename in
11981 ec++*)
11982 lt_prog_compiler_pic_CXX='-KPIC'
11984 ghcx*)
11985 # Green Hills C++ Compiler
11986 lt_prog_compiler_pic_CXX='-pic'
11990 esac
11992 freebsd* | dragonfly*)
11993 # FreeBSD uses GNU C++
11995 hpux9* | hpux10* | hpux11*)
11996 case $cc_basename in
11997 CC*)
11998 lt_prog_compiler_wl_CXX='-Wl,'
11999 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12000 if test "$host_cpu" != ia64; then
12001 lt_prog_compiler_pic_CXX='+Z'
12004 aCC*)
12005 lt_prog_compiler_wl_CXX='-Wl,'
12006 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12007 case $host_cpu in
12008 hppa*64*|ia64*)
12009 # +Z the default
12012 lt_prog_compiler_pic_CXX='+Z'
12014 esac
12018 esac
12020 interix*)
12021 # This is c89, which is MS Visual C++ (no shared libs)
12022 # Anyone wants to do a port?
12024 irix5* | irix6* | nonstopux*)
12025 case $cc_basename in
12026 CC*)
12027 lt_prog_compiler_wl_CXX='-Wl,'
12028 lt_prog_compiler_static_CXX='-non_shared'
12029 # CC pic flag -KPIC is the default.
12033 esac
12035 linux* | k*bsd*-gnu)
12036 case $cc_basename in
12037 KCC*)
12038 # KAI C++ Compiler
12039 lt_prog_compiler_wl_CXX='--backend -Wl,'
12040 lt_prog_compiler_pic_CXX='-fPIC'
12042 icpc* | ecpc*)
12043 # Intel C++
12044 lt_prog_compiler_wl_CXX='-Wl,'
12045 lt_prog_compiler_pic_CXX='-KPIC'
12046 lt_prog_compiler_static_CXX='-static'
12048 pgCC*)
12049 # Portland Group C++ compiler.
12050 lt_prog_compiler_wl_CXX='-Wl,'
12051 lt_prog_compiler_pic_CXX='-fpic'
12052 lt_prog_compiler_static_CXX='-Bstatic'
12054 cxx*)
12055 # Compaq C++
12056 # Make sure the PIC flag is empty. It appears that all Alpha
12057 # Linux and Compaq Tru64 Unix objects are PIC.
12058 lt_prog_compiler_pic_CXX=
12059 lt_prog_compiler_static_CXX='-non_shared'
12063 esac
12065 lynxos*)
12067 m88k*)
12069 mvs*)
12070 case $cc_basename in
12071 cxx*)
12072 lt_prog_compiler_pic_CXX='-W c,exportall'
12076 esac
12078 netbsd* | netbsdelf*-gnu)
12080 osf3* | osf4* | osf5*)
12081 case $cc_basename in
12082 KCC*)
12083 lt_prog_compiler_wl_CXX='--backend -Wl,'
12085 RCC*)
12086 # Rational C++ 2.4.1
12087 lt_prog_compiler_pic_CXX='-pic'
12089 cxx*)
12090 # Digital/Compaq C++
12091 lt_prog_compiler_wl_CXX='-Wl,'
12092 # Make sure the PIC flag is empty. It appears that all Alpha
12093 # Linux and Compaq Tru64 Unix objects are PIC.
12094 lt_prog_compiler_pic_CXX=
12095 lt_prog_compiler_static_CXX='-non_shared'
12099 esac
12101 psos*)
12103 solaris*)
12104 case $cc_basename in
12105 CC*)
12106 # Sun C++ 4.2, 5.x and Centerline C++
12107 lt_prog_compiler_pic_CXX='-KPIC'
12108 lt_prog_compiler_static_CXX='-Bstatic'
12109 lt_prog_compiler_wl_CXX='-Qoption ld '
12111 gcx*)
12112 # Green Hills C++ Compiler
12113 lt_prog_compiler_pic_CXX='-PIC'
12117 esac
12119 sunos4*)
12120 case $cc_basename in
12121 CC*)
12122 # Sun C++ 4.x
12123 lt_prog_compiler_pic_CXX='-pic'
12124 lt_prog_compiler_static_CXX='-Bstatic'
12126 lcc*)
12127 # Lucid
12128 lt_prog_compiler_pic_CXX='-pic'
12132 esac
12134 tandem*)
12135 case $cc_basename in
12136 NCC*)
12137 # NonStop-UX NCC 3.20
12138 lt_prog_compiler_pic_CXX='-KPIC'
12142 esac
12144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12145 case $cc_basename in
12146 CC*)
12147 lt_prog_compiler_wl_CXX='-Wl,'
12148 lt_prog_compiler_pic_CXX='-KPIC'
12149 lt_prog_compiler_static_CXX='-Bstatic'
12151 esac
12153 vxworks*)
12156 lt_prog_compiler_can_build_shared_CXX=no
12158 esac
12161 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12162 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12165 # Check to make sure the PIC flag actually works.
12167 if test -n "$lt_prog_compiler_pic_CXX"; then
12169 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12170 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12171 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 lt_prog_compiler_pic_works_CXX=no
12175 ac_outfile=conftest.$ac_objext
12176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12177 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12178 # Insert the option either (1) after the last *FLAGS variable, or
12179 # (2) before a word containing "conftest.", or (3) at the end.
12180 # Note that $ac_compile itself does not contain backslashes and begins
12181 # with a dollar sign (not a hyphen), so the echo should work correctly.
12182 # The option is referenced via a variable to avoid confusing sed.
12183 lt_compile=`echo "$ac_compile" | $SED \
12184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12186 -e 's:$: $lt_compiler_flag:'`
12187 (eval echo "\"\$as_me:12187: $lt_compile\"" >&5)
12188 (eval "$lt_compile" 2>conftest.err)
12189 ac_status=$?
12190 cat conftest.err >&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 if (exit $ac_status) && test -s "$ac_outfile"; then
12193 # The compiler can only warn and ignore the option if not recognized
12194 # So say no if there are warnings other than the usual output.
12195 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12198 lt_prog_compiler_pic_works_CXX=yes
12201 $rm conftest*
12204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12205 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12207 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12208 case $lt_prog_compiler_pic_CXX in
12209 "" | " "*) ;;
12210 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12211 esac
12212 else
12213 lt_prog_compiler_pic_CXX=
12214 lt_prog_compiler_can_build_shared_CXX=no
12218 case $host_os in
12219 # For platforms which do not support PIC, -DPIC is meaningless:
12220 *djgpp*)
12221 lt_prog_compiler_pic_CXX=
12224 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12226 esac
12229 # Check to make sure the static flag actually works.
12231 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12232 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12233 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12234 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 lt_prog_compiler_static_works_CXX=no
12238 save_LDFLAGS="$LDFLAGS"
12239 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12240 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12241 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12242 # The linker can only warn and ignore the option if not recognized
12243 # So say no if there are warnings
12244 if test -s conftest.err; then
12245 # Append any errors to the config.log.
12246 cat conftest.err 1>&5
12247 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12249 if diff conftest.exp conftest.er2 >/dev/null; then
12250 lt_prog_compiler_static_works_CXX=yes
12252 else
12253 lt_prog_compiler_static_works_CXX=yes
12256 $rm conftest*
12257 LDFLAGS="$save_LDFLAGS"
12260 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12261 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12263 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12265 else
12266 lt_prog_compiler_static_CXX=
12270 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12272 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 lt_cv_prog_compiler_c_o_CXX=no
12276 $rm -r conftest 2>/dev/null
12277 mkdir conftest
12278 cd conftest
12279 mkdir out
12280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12282 lt_compiler_flag="-o out/conftest2.$ac_objext"
12283 # Insert the option either (1) after the last *FLAGS variable, or
12284 # (2) before a word containing "conftest.", or (3) at the end.
12285 # Note that $ac_compile itself does not contain backslashes and begins
12286 # with a dollar sign (not a hyphen), so the echo should work correctly.
12287 lt_compile=`echo "$ac_compile" | $SED \
12288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12290 -e 's:$: $lt_compiler_flag:'`
12291 (eval echo "\"\$as_me:12291: $lt_compile\"" >&5)
12292 (eval "$lt_compile" 2>out/conftest.err)
12293 ac_status=$?
12294 cat out/conftest.err >&5
12295 echo "$as_me:12295: \$? = $ac_status" >&5
12296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12297 then
12298 # The compiler can only warn and ignore the option if not recognized
12299 # So say no if there are warnings
12300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12301 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12302 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12303 lt_cv_prog_compiler_c_o_CXX=yes
12306 chmod u+w . 2>&5
12307 $rm conftest*
12308 # SGI C++ compiler will create directory out/ii_files/ for
12309 # template instantiation
12310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12311 $rm out/* && rmdir out
12312 cd ..
12313 rmdir conftest
12314 $rm conftest*
12317 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12321 hard_links="nottested"
12322 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12323 # do not overwrite the value of need_locks provided by the user
12324 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12326 hard_links=yes
12327 $rm conftest*
12328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12329 touch conftest.a
12330 ln conftest.a conftest.b 2>&5 || hard_links=no
12331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12332 { echo "$as_me:$LINENO: result: $hard_links" >&5
12333 echo "${ECHO_T}$hard_links" >&6; }
12334 if test "$hard_links" = no; then
12335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12337 need_locks=warn
12339 else
12340 need_locks=no
12343 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12346 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12347 case $host_os in
12348 aix4* | aix5*)
12349 # If we're using GNU nm, then we don't want the "-C" option.
12350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12351 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12352 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'
12353 else
12354 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'
12357 pw32*)
12358 export_symbols_cmds_CXX="$ltdll_cmds"
12360 cygwin* | mingw*)
12361 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'
12363 linux* | k*bsd*-gnu)
12364 link_all_deplibs_CXX=no
12367 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12369 esac
12371 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12372 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12373 test "$ld_shlibs_CXX" = no && can_build_shared=no
12376 # Do we need to explicitly link libc?
12378 case "x$archive_cmds_need_lc_CXX" in
12379 x|xyes)
12380 # Assume -lc should be added
12381 archive_cmds_need_lc_CXX=yes
12383 if test "$enable_shared" = yes && test "$GCC" = yes; then
12384 case $archive_cmds_CXX in
12385 *'~'*)
12386 # FIXME: we may have to deal with multi-command sequences.
12388 '$CC '*)
12389 # Test whether the compiler implicitly links with -lc since on some
12390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12391 # to ld, don't add -lc before -lgcc.
12392 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12393 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12394 $rm conftest*
12395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } 2>conftest.err; then
12402 soname=conftest
12403 lib=conftest
12404 libobjs=conftest.$ac_objext
12405 deplibs=
12406 wl=$lt_prog_compiler_wl_CXX
12407 pic_flag=$lt_prog_compiler_pic_CXX
12408 compiler_flags=-v
12409 linker_flags=-v
12410 verstring=
12411 output_objdir=.
12412 libname=conftest
12413 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12414 allow_undefined_flag_CXX=
12415 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12416 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }
12420 then
12421 archive_cmds_need_lc_CXX=no
12422 else
12423 archive_cmds_need_lc_CXX=yes
12425 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12426 else
12427 cat conftest.err 1>&5
12429 $rm conftest*
12430 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12431 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12433 esac
12436 esac
12438 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12439 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12440 library_names_spec=
12441 libname_spec='lib$name'
12442 soname_spec=
12443 shrext_cmds=".so"
12444 postinstall_cmds=
12445 postuninstall_cmds=
12446 finish_cmds=
12447 finish_eval=
12448 shlibpath_var=
12449 shlibpath_overrides_runpath=unknown
12450 version_type=none
12451 dynamic_linker="$host_os ld.so"
12452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12453 if test "$GCC" = yes; then
12454 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12455 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12456 # if the path contains ";" then we assume it to be the separator
12457 # otherwise default to the standard path separator (i.e. ":") - it is
12458 # assumed that no part of a normal pathname contains ";" but that should
12459 # okay in the real world where ";" in dirpaths is itself problematic.
12460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12461 else
12462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12464 else
12465 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12467 need_lib_prefix=unknown
12468 hardcode_into_libs=no
12470 # when you set need_version to no, make sure it does not cause -set_version
12471 # flags to be left without arguments
12472 need_version=unknown
12474 case $host_os in
12475 aix3*)
12476 version_type=linux
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12478 shlibpath_var=LIBPATH
12480 # AIX 3 has no versioning support, so we append a major version to the name.
12481 soname_spec='${libname}${release}${shared_ext}$major'
12484 aix4* | aix5*)
12485 version_type=linux
12486 need_lib_prefix=no
12487 need_version=no
12488 hardcode_into_libs=yes
12489 if test "$host_cpu" = ia64; then
12490 # AIX 5 supports IA64
12491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12492 shlibpath_var=LD_LIBRARY_PATH
12493 else
12494 # With GCC up to 2.95.x, collect2 would create an import file
12495 # for dependence libraries. The import file would start with
12496 # the line `#! .'. This would cause the generated library to
12497 # depend on `.', always an invalid library. This was fixed in
12498 # development snapshots of GCC prior to 3.0.
12499 case $host_os in
12500 aix4 | aix4.[01] | aix4.[01].*)
12501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12502 echo ' yes '
12503 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12505 else
12506 can_build_shared=no
12509 esac
12510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12511 # soname into executable. Probably we can add versioning support to
12512 # collect2, so additional links can be useful in future.
12513 if test "$aix_use_runtimelinking" = yes; then
12514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12515 # instead of lib<name>.a to let people know that these are not
12516 # typical AIX shared libraries.
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12518 else
12519 # We preserve .a as extension for shared libraries through AIX4.2
12520 # and later when we are not doing run time linking.
12521 library_names_spec='${libname}${release}.a $libname.a'
12522 soname_spec='${libname}${release}${shared_ext}$major'
12524 shlibpath_var=LIBPATH
12528 amigaos*)
12529 library_names_spec='$libname.ixlibrary $libname.a'
12530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12531 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'
12534 beos*)
12535 library_names_spec='${libname}${shared_ext}'
12536 dynamic_linker="$host_os ld.so"
12537 shlibpath_var=LIBRARY_PATH
12540 bsdi[45]*)
12541 version_type=linux
12542 need_version=no
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12546 shlibpath_var=LD_LIBRARY_PATH
12547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12549 # the default ld.so.conf also contains /usr/contrib/lib and
12550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12551 # libtool to hard-code these into programs
12554 cygwin* | mingw* | pw32*)
12555 version_type=windows
12556 shrext_cmds=".dll"
12557 need_version=no
12558 need_lib_prefix=no
12560 case $GCC,$host_os in
12561 yes,cygwin* | yes,mingw* | yes,pw32*)
12562 library_names_spec='$libname.dll.a'
12563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12564 postinstall_cmds='base_file=`basename \${file}`~
12565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12566 dldir=$destdir/`dirname \$dlpath`~
12567 test -d \$dldir || mkdir -p \$dldir~
12568 $install_prog $dir/$dlname \$dldir/$dlname~
12569 chmod a+x \$dldir/$dlname'
12570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12571 dlpath=$dir/\$dldll~
12572 $rm \$dlpath'
12573 shlibpath_overrides_runpath=yes
12575 case $host_os in
12576 cygwin*)
12577 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12578 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12579 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12581 mingw*)
12582 # MinGW DLLs use traditional 'lib' prefix
12583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12585 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12586 # It is most probably a Windows format PATH printed by
12587 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12588 # path with ; separators, and with drive letters. We can handle the
12589 # drive letters (cygwin fileutils understands them), so leave them,
12590 # especially as we might pass files found there to a mingw objdump,
12591 # which wouldn't understand a cygwinified path. Ahh.
12592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12593 else
12594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12597 pw32*)
12598 # pw32 DLLs use 'pw' prefix rather than 'lib'
12599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12601 esac
12605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12607 esac
12608 dynamic_linker='Win32 ld.exe'
12609 # FIXME: first we should search . and the directory the executable is in
12610 shlibpath_var=PATH
12613 darwin* | rhapsody*)
12614 dynamic_linker="$host_os dyld"
12615 version_type=darwin
12616 need_lib_prefix=no
12617 need_version=no
12618 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12619 soname_spec='${libname}${release}${major}$shared_ext'
12620 shlibpath_overrides_runpath=yes
12621 shlibpath_var=DYLD_LIBRARY_PATH
12622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12623 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12624 if test "$GCC" = yes; then
12625 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12626 else
12627 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12632 dgux*)
12633 version_type=linux
12634 need_lib_prefix=no
12635 need_version=no
12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12637 soname_spec='${libname}${release}${shared_ext}$major'
12638 shlibpath_var=LD_LIBRARY_PATH
12641 freebsd1*)
12642 dynamic_linker=no
12645 freebsd* | dragonfly*)
12646 # DragonFly does not have aout. When/if they implement a new
12647 # versioning mechanism, adjust this.
12648 if test -x /usr/bin/objformat; then
12649 objformat=`/usr/bin/objformat`
12650 else
12651 case $host_os in
12652 freebsd[123]*) objformat=aout ;;
12653 *) objformat=elf ;;
12654 esac
12656 version_type=freebsd-$objformat
12657 case $version_type in
12658 freebsd-elf*)
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12660 need_version=no
12661 need_lib_prefix=no
12663 freebsd-*)
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12665 need_version=yes
12667 esac
12668 shlibpath_var=LD_LIBRARY_PATH
12669 case $host_os in
12670 freebsd2*)
12671 shlibpath_overrides_runpath=yes
12673 freebsd3.[01]* | freebsdelf3.[01]*)
12674 shlibpath_overrides_runpath=yes
12675 hardcode_into_libs=yes
12677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12679 shlibpath_overrides_runpath=no
12680 hardcode_into_libs=yes
12682 freebsd*) # from 4.6 on
12683 shlibpath_overrides_runpath=yes
12684 hardcode_into_libs=yes
12686 esac
12689 gnu*)
12690 version_type=linux
12691 need_lib_prefix=no
12692 need_version=no
12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12694 soname_spec='${libname}${release}${shared_ext}$major'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 hardcode_into_libs=yes
12699 hpux9* | hpux10* | hpux11*)
12700 # Give a soname corresponding to the major version so that dld.sl refuses to
12701 # link against other versions.
12702 version_type=sunos
12703 need_lib_prefix=no
12704 need_version=no
12705 case $host_cpu in
12706 ia64*)
12707 shrext_cmds='.so'
12708 hardcode_into_libs=yes
12709 dynamic_linker="$host_os dld.so"
12710 shlibpath_var=LD_LIBRARY_PATH
12711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713 soname_spec='${libname}${release}${shared_ext}$major'
12714 if test "X$HPUX_IA64_MODE" = X32; then
12715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12716 else
12717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12721 hppa*64*)
12722 shrext_cmds='.sl'
12723 hardcode_into_libs=yes
12724 dynamic_linker="$host_os dld.sl"
12725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12733 shrext_cmds='.sl'
12734 dynamic_linker="$host_os dld.sl"
12735 shlibpath_var=SHLIB_PATH
12736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 soname_spec='${libname}${release}${shared_ext}$major'
12740 esac
12741 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12742 postinstall_cmds='chmod 555 $lib'
12745 interix3*)
12746 version_type=linux
12747 need_lib_prefix=no
12748 need_version=no
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=no
12754 hardcode_into_libs=yes
12757 irix5* | irix6* | nonstopux*)
12758 case $host_os in
12759 nonstopux*) version_type=nonstopux ;;
12761 if test "$lt_cv_prog_gnu_ld" = yes; then
12762 version_type=linux
12763 else
12764 version_type=irix
12765 fi ;;
12766 esac
12767 need_lib_prefix=no
12768 need_version=no
12769 soname_spec='${libname}${release}${shared_ext}$major'
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12771 case $host_os in
12772 irix5* | nonstopux*)
12773 libsuff= shlibsuff=
12776 case $LD in # libtool.m4 will add one of these switches to LD
12777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12778 libsuff= shlibsuff= libmagic=32-bit;;
12779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12780 libsuff=32 shlibsuff=N32 libmagic=N32;;
12781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12783 *) libsuff= shlibsuff= libmagic=never-match;;
12784 esac
12786 esac
12787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12788 shlibpath_overrides_runpath=no
12789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12791 hardcode_into_libs=yes
12794 # No shared lib support for Linux oldld, aout, or coff.
12795 linux*oldld* | linux*aout* | linux*coff*)
12796 dynamic_linker=no
12799 # This must be Linux ELF.
12800 linux* | k*bsd*-gnu)
12801 version_type=linux
12802 need_lib_prefix=no
12803 need_version=no
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12805 soname_spec='${libname}${release}${shared_ext}$major'
12806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12807 shlibpath_var=LD_LIBRARY_PATH
12808 shlibpath_overrides_runpath=no
12809 # This implies no fast_install, which is unacceptable.
12810 # Some rework will be needed to allow for fast_install
12811 # before this can be enabled.
12812 hardcode_into_libs=yes
12814 # Append ld.so.conf contents to the search path
12815 if test -f /etc/ld.so.conf; then
12816 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12820 # We used to test for /lib/ld.so.1 and disable shared libraries on
12821 # powerpc, because MkLinux only supported shared libraries with the
12822 # GNU dynamic linker. Since this was broken with cross compilers,
12823 # most powerpc-linux boxes support dynamic linking these days and
12824 # people can always --disable-shared, the test was removed, and we
12825 # assume the GNU/Linux dynamic linker is in use.
12826 dynamic_linker='GNU/Linux ld.so'
12829 netbsdelf*-gnu)
12830 version_type=linux
12831 need_lib_prefix=no
12832 need_version=no
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 shlibpath_var=LD_LIBRARY_PATH
12836 shlibpath_overrides_runpath=no
12837 hardcode_into_libs=yes
12838 dynamic_linker='NetBSD ld.elf_so'
12841 netbsd*)
12842 version_type=sunos
12843 need_lib_prefix=no
12844 need_version=no
12845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12848 dynamic_linker='NetBSD (a.out) ld.so'
12849 else
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12851 soname_spec='${libname}${release}${shared_ext}$major'
12852 dynamic_linker='NetBSD ld.elf_so'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=yes
12856 hardcode_into_libs=yes
12859 newsos6)
12860 version_type=linux
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 shlibpath_var=LD_LIBRARY_PATH
12863 shlibpath_overrides_runpath=yes
12866 nto-qnx*)
12867 version_type=linux
12868 need_lib_prefix=no
12869 need_version=no
12870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 shlibpath_var=LD_LIBRARY_PATH
12873 shlibpath_overrides_runpath=yes
12876 openbsd*)
12877 version_type=sunos
12878 sys_lib_dlsearch_path_spec="/usr/lib"
12879 need_lib_prefix=no
12880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12881 case $host_os in
12882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12883 *) need_version=no ;;
12884 esac
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12889 case $host_os in
12890 openbsd2.[89] | openbsd2.[89].*)
12891 shlibpath_overrides_runpath=no
12894 shlibpath_overrides_runpath=yes
12896 esac
12897 else
12898 shlibpath_overrides_runpath=yes
12902 os2*)
12903 libname_spec='$name'
12904 shrext_cmds=".dll"
12905 need_lib_prefix=no
12906 library_names_spec='$libname${shared_ext} $libname.a'
12907 dynamic_linker='OS/2 ld.exe'
12908 shlibpath_var=LIBPATH
12911 osf3* | osf4* | osf5*)
12912 version_type=osf
12913 need_lib_prefix=no
12914 need_version=no
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12922 solaris*)
12923 version_type=linux
12924 need_lib_prefix=no
12925 need_version=no
12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12927 soname_spec='${libname}${release}${shared_ext}$major'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12931 # ldd complains unless libraries are executable
12932 postinstall_cmds='chmod +x $lib'
12935 sunos4*)
12936 version_type=sunos
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12941 if test "$with_gnu_ld" = yes; then
12942 need_lib_prefix=no
12944 need_version=yes
12947 sysv4 | sysv4.3*)
12948 version_type=linux
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LD_LIBRARY_PATH
12952 case $host_vendor in
12953 sni)
12954 shlibpath_overrides_runpath=no
12955 need_lib_prefix=no
12956 export_dynamic_flag_spec='${wl}-Blargedynsym'
12957 runpath_var=LD_RUN_PATH
12959 siemens)
12960 need_lib_prefix=no
12962 motorola)
12963 need_lib_prefix=no
12964 need_version=no
12965 shlibpath_overrides_runpath=no
12966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12968 esac
12971 sysv4*MP*)
12972 if test -d /usr/nec ;then
12973 version_type=linux
12974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12975 soname_spec='$libname${shared_ext}.$major'
12976 shlibpath_var=LD_LIBRARY_PATH
12980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12981 version_type=freebsd-elf
12982 need_lib_prefix=no
12983 need_version=no
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 hardcode_into_libs=yes
12988 if test "$with_gnu_ld" = yes; then
12989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12990 shlibpath_overrides_runpath=no
12991 else
12992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12993 shlibpath_overrides_runpath=yes
12994 case $host_os in
12995 sco3.2v5*)
12996 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12998 esac
13000 sys_lib_dlsearch_path_spec='/usr/lib'
13003 uts4*)
13004 version_type=linux
13005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13006 soname_spec='${libname}${release}${shared_ext}$major'
13007 shlibpath_var=LD_LIBRARY_PATH
13011 dynamic_linker=no
13013 esac
13014 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13015 echo "${ECHO_T}$dynamic_linker" >&6; }
13016 test "$dynamic_linker" = no && can_build_shared=no
13018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13019 if test "$GCC" = yes; then
13020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13023 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13024 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13025 hardcode_action_CXX=
13026 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13027 test -n "$runpath_var_CXX" || \
13028 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13030 # We can hardcode non-existant directories.
13031 if test "$hardcode_direct_CXX" != no &&
13032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13033 # have to relink, otherwise we might link with an installed library
13034 # when we should be linking with a yet-to-be-installed one
13035 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13036 test "$hardcode_minus_L_CXX" != no; then
13037 # Linking always hardcodes the temporary library directory.
13038 hardcode_action_CXX=relink
13039 else
13040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13041 hardcode_action_CXX=immediate
13043 else
13044 # We cannot hardcode anything, or else we can only hardcode existing
13045 # directories.
13046 hardcode_action_CXX=unsupported
13048 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13049 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13051 if test "$hardcode_action_CXX" = relink; then
13052 # Fast installation is not supported
13053 enable_fast_install=no
13054 elif test "$shlibpath_overrides_runpath" = yes ||
13055 test "$enable_shared" = no; then
13056 # Fast installation is not necessary
13057 enable_fast_install=needless
13061 # The else clause should only fire when bootstrapping the
13062 # libtool distribution, otherwise you forgot to ship ltmain.sh
13063 # with your package, and you will get complaints that there are
13064 # no rules to generate ltmain.sh.
13065 if test -f "$ltmain"; then
13066 # See if we are running on zsh, and set the options which allow our commands through
13067 # without removal of \ escapes.
13068 if test -n "${ZSH_VERSION+set}" ; then
13069 setopt NO_GLOB_SUBST
13071 # Now quote all the things that may contain metacharacters while being
13072 # careful not to overquote the AC_SUBSTed values. We take copies of the
13073 # variables and quote the copies for generation of the libtool script.
13074 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13075 SED SHELL STRIP \
13076 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13077 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13078 deplibs_check_method reload_flag reload_cmds need_locks \
13079 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13080 lt_cv_sys_global_symbol_to_c_name_address \
13081 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13082 old_postinstall_cmds old_postuninstall_cmds \
13083 compiler_CXX \
13084 CC_CXX \
13085 LD_CXX \
13086 lt_prog_compiler_wl_CXX \
13087 lt_prog_compiler_pic_CXX \
13088 lt_prog_compiler_static_CXX \
13089 lt_prog_compiler_no_builtin_flag_CXX \
13090 export_dynamic_flag_spec_CXX \
13091 thread_safe_flag_spec_CXX \
13092 whole_archive_flag_spec_CXX \
13093 enable_shared_with_static_runtimes_CXX \
13094 old_archive_cmds_CXX \
13095 old_archive_from_new_cmds_CXX \
13096 predep_objects_CXX \
13097 postdep_objects_CXX \
13098 predeps_CXX \
13099 postdeps_CXX \
13100 compiler_lib_search_path_CXX \
13101 archive_cmds_CXX \
13102 archive_expsym_cmds_CXX \
13103 postinstall_cmds_CXX \
13104 postuninstall_cmds_CXX \
13105 old_archive_from_expsyms_cmds_CXX \
13106 allow_undefined_flag_CXX \
13107 no_undefined_flag_CXX \
13108 export_symbols_cmds_CXX \
13109 hardcode_libdir_flag_spec_CXX \
13110 hardcode_libdir_flag_spec_ld_CXX \
13111 hardcode_libdir_separator_CXX \
13112 hardcode_automatic_CXX \
13113 module_cmds_CXX \
13114 module_expsym_cmds_CXX \
13115 lt_cv_prog_compiler_c_o_CXX \
13116 exclude_expsyms_CXX \
13117 include_expsyms_CXX; do
13119 case $var in
13120 old_archive_cmds_CXX | \
13121 old_archive_from_new_cmds_CXX | \
13122 archive_cmds_CXX | \
13123 archive_expsym_cmds_CXX | \
13124 module_cmds_CXX | \
13125 module_expsym_cmds_CXX | \
13126 old_archive_from_expsyms_cmds_CXX | \
13127 export_symbols_cmds_CXX | \
13128 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13129 postinstall_cmds | postuninstall_cmds | \
13130 old_postinstall_cmds | old_postuninstall_cmds | \
13131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13132 # Double-quote double-evaled strings.
13133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13138 esac
13139 done
13141 case $lt_echo in
13142 *'\$0 --fallback-echo"')
13143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13145 esac
13147 cfgfile="$ofile"
13149 cat <<__EOF__ >> "$cfgfile"
13150 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13154 # Shell to use when invoking shell scripts.
13155 SHELL=$lt_SHELL
13157 # Whether or not to build shared libraries.
13158 build_libtool_libs=$enable_shared
13160 # Whether or not to build static libraries.
13161 build_old_libs=$enable_static
13163 # Whether or not to add -lc for building shared libraries.
13164 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13166 # Whether or not to disallow shared libs when runtime libs are static
13167 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13169 # Whether or not to optimize for fast installation.
13170 fast_install=$enable_fast_install
13172 # The host system.
13173 host_alias=$host_alias
13174 host=$host
13175 host_os=$host_os
13177 # The build system.
13178 build_alias=$build_alias
13179 build=$build
13180 build_os=$build_os
13182 # An echo program that does not interpret backslashes.
13183 echo=$lt_echo
13185 # The archiver.
13186 AR=$lt_AR
13187 AR_FLAGS=$lt_AR_FLAGS
13189 # A C compiler.
13190 LTCC=$lt_LTCC
13192 # LTCC compiler flags.
13193 LTCFLAGS=$lt_LTCFLAGS
13195 # A language-specific compiler.
13196 CC=$lt_compiler_CXX
13198 # Is the compiler the GNU C compiler?
13199 with_gcc=$GCC_CXX
13201 # An ERE matcher.
13202 EGREP=$lt_EGREP
13204 # The linker used to build libraries.
13205 LD=$lt_LD_CXX
13207 # Whether we need hard or soft links.
13208 LN_S=$lt_LN_S
13210 # A BSD-compatible nm program.
13211 NM=$lt_NM
13213 # A symbol stripping program
13214 STRIP=$lt_STRIP
13216 # Used to examine libraries when file_magic_cmd begins "file"
13217 MAGIC_CMD=$MAGIC_CMD
13219 # Used on cygwin: DLL creation program.
13220 DLLTOOL="$DLLTOOL"
13222 # Used on cygwin: object dumper.
13223 OBJDUMP="$OBJDUMP"
13225 # Used on cygwin: assembler.
13226 AS="$AS"
13228 # The name of the directory that contains temporary libtool files.
13229 objdir=$objdir
13231 # How to create reloadable object files.
13232 reload_flag=$lt_reload_flag
13233 reload_cmds=$lt_reload_cmds
13235 # How to pass a linker flag through the compiler.
13236 wl=$lt_lt_prog_compiler_wl_CXX
13238 # Object file suffix (normally "o").
13239 objext="$ac_objext"
13241 # Old archive suffix (normally "a").
13242 libext="$libext"
13244 # Shared library suffix (normally ".so").
13245 shrext_cmds='$shrext_cmds'
13247 # Executable file suffix (normally "").
13248 exeext="$exeext"
13250 # Additional compiler flags for building library objects.
13251 pic_flag=$lt_lt_prog_compiler_pic_CXX
13252 pic_mode=$pic_mode
13254 # What is the maximum length of a command?
13255 max_cmd_len=$lt_cv_sys_max_cmd_len
13257 # Does compiler simultaneously support -c and -o options?
13258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13260 # Must we lock files when doing compilation?
13261 need_locks=$lt_need_locks
13263 # Do we need the lib prefix for modules?
13264 need_lib_prefix=$need_lib_prefix
13266 # Do we need a version for libraries?
13267 need_version=$need_version
13269 # Whether dlopen is supported.
13270 dlopen_support=$enable_dlopen
13272 # Whether dlopen of programs is supported.
13273 dlopen_self=$enable_dlopen_self
13275 # Whether dlopen of statically linked programs is supported.
13276 dlopen_self_static=$enable_dlopen_self_static
13278 # Compiler flag to prevent dynamic linking.
13279 link_static_flag=$lt_lt_prog_compiler_static_CXX
13281 # Compiler flag to turn off builtin functions.
13282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13284 # Compiler flag to allow reflexive dlopens.
13285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13287 # Compiler flag to generate shared objects directly from archives.
13288 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13290 # Compiler flag to generate thread-safe objects.
13291 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13293 # Library versioning type.
13294 version_type=$version_type
13296 # Format of library name prefix.
13297 libname_spec=$lt_libname_spec
13299 # List of archive names. First name is the real one, the rest are links.
13300 # The last name is the one that the linker finds with -lNAME.
13301 library_names_spec=$lt_library_names_spec
13303 # The coded name of the library, if different from the real name.
13304 soname_spec=$lt_soname_spec
13306 # Commands used to build and install an old-style archive.
13307 RANLIB=$lt_RANLIB
13308 old_archive_cmds=$lt_old_archive_cmds_CXX
13309 old_postinstall_cmds=$lt_old_postinstall_cmds
13310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13312 # Create an old-style archive from a shared archive.
13313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13315 # Create a temporary old-style archive to link instead of a shared archive.
13316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13318 # Commands used to build and install a shared archive.
13319 archive_cmds=$lt_archive_cmds_CXX
13320 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13321 postinstall_cmds=$lt_postinstall_cmds
13322 postuninstall_cmds=$lt_postuninstall_cmds
13324 # Commands used to build a loadable module (assumed same as above if empty)
13325 module_cmds=$lt_module_cmds_CXX
13326 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13328 # Commands to strip libraries.
13329 old_striplib=$lt_old_striplib
13330 striplib=$lt_striplib
13332 # Dependencies to place before the objects being linked to create a
13333 # shared library.
13334 predep_objects=$lt_predep_objects_CXX
13336 # Dependencies to place after the objects being linked to create a
13337 # shared library.
13338 postdep_objects=$lt_postdep_objects_CXX
13340 # Dependencies to place before the objects being linked to create a
13341 # shared library.
13342 predeps=$lt_predeps_CXX
13344 # Dependencies to place after the objects being linked to create a
13345 # shared library.
13346 postdeps=$lt_postdeps_CXX
13348 # The library search path used internally by the compiler when linking
13349 # a shared library.
13350 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13352 # Method to check whether dependent libraries are shared objects.
13353 deplibs_check_method=$lt_deplibs_check_method
13355 # Command to use when deplibs_check_method == file_magic.
13356 file_magic_cmd=$lt_file_magic_cmd
13358 # Flag that allows shared libraries with undefined symbols to be built.
13359 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13361 # Flag that forces no undefined symbols.
13362 no_undefined_flag=$lt_no_undefined_flag_CXX
13364 # Commands used to finish a libtool library installation in a directory.
13365 finish_cmds=$lt_finish_cmds
13367 # Same as above, but a single script fragment to be evaled but not shown.
13368 finish_eval=$lt_finish_eval
13370 # Take the output of nm and produce a listing of raw symbols and C names.
13371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13373 # Transform the output of nm in a proper C declaration
13374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13376 # Transform the output of nm in a C name address pair
13377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13379 # This is the shared library runtime path variable.
13380 runpath_var=$runpath_var
13382 # This is the shared library path variable.
13383 shlibpath_var=$shlibpath_var
13385 # Is shlibpath searched before the hard-coded library search path?
13386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13388 # How to hardcode a shared library path into an executable.
13389 hardcode_action=$hardcode_action_CXX
13391 # Whether we should hardcode library paths into libraries.
13392 hardcode_into_libs=$hardcode_into_libs
13394 # Flag to hardcode \$libdir into a binary during linking.
13395 # This must work even if \$libdir does not exist.
13396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13398 # If ld is used when linking, flag to hardcode \$libdir into
13399 # a binary during linking. This must work even if \$libdir does
13400 # not exist.
13401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13403 # Whether we need a single -rpath flag with a separated argument.
13404 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13407 # resulting binary.
13408 hardcode_direct=$hardcode_direct_CXX
13410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13411 # resulting binary.
13412 hardcode_minus_L=$hardcode_minus_L_CXX
13414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13415 # the resulting binary.
13416 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13418 # Set to yes if building a shared library automatically hardcodes DIR into the library
13419 # and all subsequent libraries and executables linked against it.
13420 hardcode_automatic=$hardcode_automatic_CXX
13422 # Variables whose values should be saved in libtool wrapper scripts and
13423 # restored at relink time.
13424 variables_saved_for_relink="$variables_saved_for_relink"
13426 # Whether libtool must link a program against all its dependency libraries.
13427 link_all_deplibs=$link_all_deplibs_CXX
13429 # Compile-time system search path for libraries
13430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13432 # Run-time system search path for libraries
13433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13435 # Fix the shell variable \$srcfile for the compiler.
13436 fix_srcfile_path="$fix_srcfile_path_CXX"
13438 # Set to yes if exported symbols are required.
13439 always_export_symbols=$always_export_symbols_CXX
13441 # The commands to list exported symbols.
13442 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13444 # The commands to extract the exported symbol list from a shared archive.
13445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13447 # Symbols that should not be listed in the preloaded symbols.
13448 exclude_expsyms=$lt_exclude_expsyms_CXX
13450 # Symbols that must always be exported.
13451 include_expsyms=$lt_include_expsyms_CXX
13453 # ### END LIBTOOL TAG CONFIG: $tagname
13455 __EOF__
13458 else
13459 # If there is no Makefile yet, we rely on a make rule to execute
13460 # `config.status --recheck' to rerun these tests and create the
13461 # libtool script then.
13462 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13463 if test -f "$ltmain_in"; then
13464 test -f Makefile && make "$ltmain"
13469 ac_ext=c
13470 ac_cpp='$CPP $CPPFLAGS'
13471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13475 CC=$lt_save_CC
13476 LDCXX=$LD
13477 LD=$lt_save_LD
13478 GCC=$lt_save_GCC
13479 with_gnu_ldcxx=$with_gnu_ld
13480 with_gnu_ld=$lt_save_with_gnu_ld
13481 lt_cv_path_LDCXX=$lt_cv_path_LD
13482 lt_cv_path_LD=$lt_save_path_LD
13483 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13484 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13486 else
13487 tagname=""
13491 F77)
13492 if test -n "$F77" && test "X$F77" != "Xno"; then
13494 ac_ext=f
13495 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13496 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13497 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13500 archive_cmds_need_lc_F77=no
13501 allow_undefined_flag_F77=
13502 always_export_symbols_F77=no
13503 archive_expsym_cmds_F77=
13504 export_dynamic_flag_spec_F77=
13505 hardcode_direct_F77=no
13506 hardcode_libdir_flag_spec_F77=
13507 hardcode_libdir_flag_spec_ld_F77=
13508 hardcode_libdir_separator_F77=
13509 hardcode_minus_L_F77=no
13510 hardcode_automatic_F77=no
13511 module_cmds_F77=
13512 module_expsym_cmds_F77=
13513 link_all_deplibs_F77=unknown
13514 old_archive_cmds_F77=$old_archive_cmds
13515 no_undefined_flag_F77=
13516 whole_archive_flag_spec_F77=
13517 enable_shared_with_static_runtimes_F77=no
13519 # Source file extension for f77 test sources.
13520 ac_ext=f
13522 # Object file extension for compiled f77 test sources.
13523 objext=o
13524 objext_F77=$objext
13526 # Code to be used in simple compile tests
13527 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13529 # Code to be used in simple link tests
13530 lt_simple_link_test_code=" program t\n end\n"
13532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13534 # If no C compiler was specified, use CC.
13535 LTCC=${LTCC-"$CC"}
13537 # If no C compiler flags were specified, use CFLAGS.
13538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13540 # Allow CC to be a program name with arguments.
13541 compiler=$CC
13544 # save warnings/boilerplate of simple test code
13545 ac_outfile=conftest.$ac_objext
13546 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13548 _lt_compiler_boilerplate=`cat conftest.err`
13549 $rm conftest*
13551 ac_outfile=conftest.$ac_objext
13552 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13554 _lt_linker_boilerplate=`cat conftest.err`
13555 $rm conftest*
13558 # Allow CC to be a program name with arguments.
13559 lt_save_CC="$CC"
13560 CC=${F77-"f77"}
13561 compiler=$CC
13562 compiler_F77=$CC
13563 for cc_temp in $compiler""; do
13564 case $cc_temp in
13565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13567 \-*) ;;
13568 *) break;;
13569 esac
13570 done
13571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13574 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13575 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13576 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13577 echo "${ECHO_T}$can_build_shared" >&6; }
13579 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13580 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13581 test "$can_build_shared" = "no" && enable_shared=no
13583 # On AIX, shared libraries and static libraries use the same namespace, and
13584 # are all built from PIC.
13585 case $host_os in
13586 aix3*)
13587 test "$enable_shared" = yes && enable_static=no
13588 if test -n "$RANLIB"; then
13589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13590 postinstall_cmds='$RANLIB $lib'
13593 aix4* | aix5*)
13594 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13595 test "$enable_shared" = yes && enable_static=no
13598 esac
13599 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13600 echo "${ECHO_T}$enable_shared" >&6; }
13602 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13603 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13604 # Make sure either enable_shared or enable_static is yes.
13605 test "$enable_shared" = yes || enable_static=yes
13606 { echo "$as_me:$LINENO: result: $enable_static" >&5
13607 echo "${ECHO_T}$enable_static" >&6; }
13609 GCC_F77="$G77"
13610 LD_F77="$LD"
13612 lt_prog_compiler_wl_F77=
13613 lt_prog_compiler_pic_F77=
13614 lt_prog_compiler_static_F77=
13616 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13617 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13619 if test "$GCC" = yes; then
13620 lt_prog_compiler_wl_F77='-Wl,'
13621 lt_prog_compiler_static_F77='-static'
13623 case $host_os in
13624 aix*)
13625 # All AIX code is PIC.
13626 if test "$host_cpu" = ia64; then
13627 # AIX 5 now supports IA64 processor
13628 lt_prog_compiler_static_F77='-Bstatic'
13632 amigaos*)
13633 # FIXME: we need at least 68020 code to build shared libraries, but
13634 # adding the `-m68020' flag to GCC prevents building anything better,
13635 # like `-m68040'.
13636 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13639 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13640 # PIC is the default for these OSes.
13643 mingw* | pw32* | os2*)
13644 # This hack is so that the source file can tell whether it is being
13645 # built for inclusion in a dll (and should export symbols for example).
13646 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13649 darwin* | rhapsody*)
13650 # PIC is the default on this platform
13651 # Common symbols not allowed in MH_DYLIB files
13652 lt_prog_compiler_pic_F77='-fno-common'
13655 interix3*)
13656 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13657 # Instead, we relocate shared libraries at runtime.
13660 msdosdjgpp*)
13661 # Just because we use GCC doesn't mean we suddenly get shared libraries
13662 # on systems that don't support them.
13663 lt_prog_compiler_can_build_shared_F77=no
13664 enable_shared=no
13667 sysv4*MP*)
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_F77=-Kconform_pic
13673 hpux*)
13674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13675 # not for PA HP-UX.
13676 case $host_cpu in
13677 hppa*64*|ia64*)
13678 # +Z the default
13681 lt_prog_compiler_pic_F77='-fPIC'
13683 esac
13687 lt_prog_compiler_pic_F77='-fPIC'
13689 esac
13690 else
13691 # PORTME Check for flag to pass linker flags through the system compiler.
13692 case $host_os in
13693 aix*)
13694 lt_prog_compiler_wl_F77='-Wl,'
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 now supports IA64 processor
13697 lt_prog_compiler_static_F77='-Bstatic'
13698 else
13699 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13702 darwin*)
13703 # PIC is the default on this platform
13704 # Common symbols not allowed in MH_DYLIB files
13705 case $cc_basename in
13706 xlc*)
13707 lt_prog_compiler_pic_F77='-qnocommon'
13708 lt_prog_compiler_wl_F77='-Wl,'
13710 esac
13713 mingw* | pw32* | os2*)
13714 # This hack is so that the source file can tell whether it is being
13715 # built for inclusion in a dll (and should export symbols for example).
13716 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13719 hpux9* | hpux10* | hpux11*)
13720 lt_prog_compiler_wl_F77='-Wl,'
13721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13722 # not for PA HP-UX.
13723 case $host_cpu in
13724 hppa*64*|ia64*)
13725 # +Z the default
13728 lt_prog_compiler_pic_F77='+Z'
13730 esac
13731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13732 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13735 irix5* | irix6* | nonstopux*)
13736 lt_prog_compiler_wl_F77='-Wl,'
13737 # PIC (with -KPIC) is the default.
13738 lt_prog_compiler_static_F77='-non_shared'
13741 newsos6)
13742 lt_prog_compiler_pic_F77='-KPIC'
13743 lt_prog_compiler_static_F77='-Bstatic'
13746 linux* | k*bsd*-gnu)
13747 case $cc_basename in
13748 icc* | ecc*)
13749 lt_prog_compiler_wl_F77='-Wl,'
13750 lt_prog_compiler_pic_F77='-KPIC'
13751 lt_prog_compiler_static_F77='-static'
13753 pgcc* | pgf77* | pgf90* | pgf95*)
13754 # Portland Group compilers (*not* the Pentium gcc compiler,
13755 # which looks to be a dead project)
13756 lt_prog_compiler_wl_F77='-Wl,'
13757 lt_prog_compiler_pic_F77='-fpic'
13758 lt_prog_compiler_static_F77='-Bstatic'
13760 ccc*)
13761 lt_prog_compiler_wl_F77='-Wl,'
13762 # All Alpha code is PIC.
13763 lt_prog_compiler_static_F77='-non_shared'
13765 esac
13768 osf3* | osf4* | osf5*)
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 # All OSF/1 code is PIC.
13771 lt_prog_compiler_static_F77='-non_shared'
13774 solaris*)
13775 lt_prog_compiler_pic_F77='-KPIC'
13776 lt_prog_compiler_static_F77='-Bstatic'
13777 case $cc_basename in
13778 f77* | f90* | f95*)
13779 lt_prog_compiler_wl_F77='-Qoption ld ';;
13781 lt_prog_compiler_wl_F77='-Wl,';;
13782 esac
13785 sunos4*)
13786 lt_prog_compiler_wl_F77='-Qoption ld '
13787 lt_prog_compiler_pic_F77='-PIC'
13788 lt_prog_compiler_static_F77='-Bstatic'
13791 sysv4 | sysv4.2uw2* | sysv4.3*)
13792 lt_prog_compiler_wl_F77='-Wl,'
13793 lt_prog_compiler_pic_F77='-KPIC'
13794 lt_prog_compiler_static_F77='-Bstatic'
13797 sysv4*MP*)
13798 if test -d /usr/nec ;then
13799 lt_prog_compiler_pic_F77='-Kconform_pic'
13800 lt_prog_compiler_static_F77='-Bstatic'
13804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13805 lt_prog_compiler_wl_F77='-Wl,'
13806 lt_prog_compiler_pic_F77='-KPIC'
13807 lt_prog_compiler_static_F77='-Bstatic'
13810 unicos*)
13811 lt_prog_compiler_wl_F77='-Wl,'
13812 lt_prog_compiler_can_build_shared_F77=no
13815 uts4*)
13816 lt_prog_compiler_pic_F77='-pic'
13817 lt_prog_compiler_static_F77='-Bstatic'
13821 lt_prog_compiler_can_build_shared_F77=no
13823 esac
13826 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13827 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13830 # Check to make sure the PIC flag actually works.
13832 if test -n "$lt_prog_compiler_pic_F77"; then
13834 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13835 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13836 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 lt_prog_compiler_pic_works_F77=no
13840 ac_outfile=conftest.$ac_objext
13841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13842 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13843 # Insert the option either (1) after the last *FLAGS variable, or
13844 # (2) before a word containing "conftest.", or (3) at the end.
13845 # Note that $ac_compile itself does not contain backslashes and begins
13846 # with a dollar sign (not a hyphen), so the echo should work correctly.
13847 # The option is referenced via a variable to avoid confusing sed.
13848 lt_compile=`echo "$ac_compile" | $SED \
13849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13851 -e 's:$: $lt_compiler_flag:'`
13852 (eval echo "\"\$as_me:13852: $lt_compile\"" >&5)
13853 (eval "$lt_compile" 2>conftest.err)
13854 ac_status=$?
13855 cat conftest.err >&5
13856 echo "$as_me:13856: \$? = $ac_status" >&5
13857 if (exit $ac_status) && test -s "$ac_outfile"; then
13858 # The compiler can only warn and ignore the option if not recognized
13859 # So say no if there are warnings other than the usual output.
13860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13863 lt_prog_compiler_pic_works_F77=yes
13866 $rm conftest*
13869 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13870 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13872 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13873 case $lt_prog_compiler_pic_F77 in
13874 "" | " "*) ;;
13875 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13876 esac
13877 else
13878 lt_prog_compiler_pic_F77=
13879 lt_prog_compiler_can_build_shared_F77=no
13883 case $host_os in
13884 # For platforms which do not support PIC, -DPIC is meaningless:
13885 *djgpp*)
13886 lt_prog_compiler_pic_F77=
13889 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13891 esac
13894 # Check to make sure the static flag actually works.
13896 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13897 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13898 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13899 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 lt_prog_compiler_static_works_F77=no
13903 save_LDFLAGS="$LDFLAGS"
13904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13905 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13907 # The linker can only warn and ignore the option if not recognized
13908 # So say no if there are warnings
13909 if test -s conftest.err; then
13910 # Append any errors to the config.log.
13911 cat conftest.err 1>&5
13912 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13914 if diff conftest.exp conftest.er2 >/dev/null; then
13915 lt_prog_compiler_static_works_F77=yes
13917 else
13918 lt_prog_compiler_static_works_F77=yes
13921 $rm conftest*
13922 LDFLAGS="$save_LDFLAGS"
13925 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13926 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13928 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13930 else
13931 lt_prog_compiler_static_F77=
13935 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13937 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 lt_cv_prog_compiler_c_o_F77=no
13941 $rm -r conftest 2>/dev/null
13942 mkdir conftest
13943 cd conftest
13944 mkdir out
13945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13947 lt_compiler_flag="-o out/conftest2.$ac_objext"
13948 # Insert the option either (1) after the last *FLAGS variable, or
13949 # (2) before a word containing "conftest.", or (3) at the end.
13950 # Note that $ac_compile itself does not contain backslashes and begins
13951 # with a dollar sign (not a hyphen), so the echo should work correctly.
13952 lt_compile=`echo "$ac_compile" | $SED \
13953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13955 -e 's:$: $lt_compiler_flag:'`
13956 (eval echo "\"\$as_me:13956: $lt_compile\"" >&5)
13957 (eval "$lt_compile" 2>out/conftest.err)
13958 ac_status=$?
13959 cat out/conftest.err >&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13962 then
13963 # The compiler can only warn and ignore the option if not recognized
13964 # So say no if there are warnings
13965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13968 lt_cv_prog_compiler_c_o_F77=yes
13971 chmod u+w . 2>&5
13972 $rm conftest*
13973 # SGI C++ compiler will create directory out/ii_files/ for
13974 # template instantiation
13975 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13976 $rm out/* && rmdir out
13977 cd ..
13978 rmdir conftest
13979 $rm conftest*
13982 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13983 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13986 hard_links="nottested"
13987 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13988 # do not overwrite the value of need_locks provided by the user
13989 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13991 hard_links=yes
13992 $rm conftest*
13993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13994 touch conftest.a
13995 ln conftest.a conftest.b 2>&5 || hard_links=no
13996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13997 { echo "$as_me:$LINENO: result: $hard_links" >&5
13998 echo "${ECHO_T}$hard_links" >&6; }
13999 if test "$hard_links" = no; then
14000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14002 need_locks=warn
14004 else
14005 need_locks=no
14008 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14011 runpath_var=
14012 allow_undefined_flag_F77=
14013 enable_shared_with_static_runtimes_F77=no
14014 archive_cmds_F77=
14015 archive_expsym_cmds_F77=
14016 old_archive_From_new_cmds_F77=
14017 old_archive_from_expsyms_cmds_F77=
14018 export_dynamic_flag_spec_F77=
14019 whole_archive_flag_spec_F77=
14020 thread_safe_flag_spec_F77=
14021 hardcode_libdir_flag_spec_F77=
14022 hardcode_libdir_flag_spec_ld_F77=
14023 hardcode_libdir_separator_F77=
14024 hardcode_direct_F77=no
14025 hardcode_minus_L_F77=no
14026 hardcode_shlibpath_var_F77=unsupported
14027 link_all_deplibs_F77=unknown
14028 hardcode_automatic_F77=no
14029 module_cmds_F77=
14030 module_expsym_cmds_F77=
14031 always_export_symbols_F77=no
14032 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14033 # include_expsyms should be a list of space-separated symbols to be *always*
14034 # included in the symbol list
14035 include_expsyms_F77=
14036 # exclude_expsyms can be an extended regexp of symbols to exclude
14037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14039 # as well as any symbol that contains `d'.
14040 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14042 # platforms (ab)use it in PIC code, but their linkers get confused if
14043 # the symbol is explicitly referenced. Since portable code cannot
14044 # rely on this symbol name, it's probably fine to never include it in
14045 # preloaded symbol tables.
14046 extract_expsyms_cmds=
14047 # Just being paranoid about ensuring that cc_basename is set.
14048 for cc_temp in $compiler""; do
14049 case $cc_temp in
14050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14052 \-*) ;;
14053 *) break;;
14054 esac
14055 done
14056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14058 case $host_os in
14059 cygwin* | mingw* | pw32*)
14060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14061 # When not using gcc, we currently assume that we are using
14062 # Microsoft Visual C++.
14063 if test "$GCC" != yes; then
14064 with_gnu_ld=no
14067 interix*)
14068 # we just hope/assume this is gcc and not c89 (= MSVC++)
14069 with_gnu_ld=yes
14071 openbsd*)
14072 with_gnu_ld=no
14074 esac
14076 ld_shlibs_F77=yes
14077 if test "$with_gnu_ld" = yes; then
14078 # If archive_cmds runs LD, not CC, wlarc should be empty
14079 wlarc='${wl}'
14081 # Set some defaults for GNU ld with shared library support. These
14082 # are reset later if shared libraries are not supported. Putting them
14083 # here allows them to be overridden if necessary.
14084 runpath_var=LD_RUN_PATH
14085 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14086 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14087 # ancient GNU ld didn't support --whole-archive et. al.
14088 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14089 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14090 else
14091 whole_archive_flag_spec_F77=
14093 supports_anon_versioning=no
14094 case `$LD -v 2>/dev/null` in
14095 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14096 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14097 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14098 *\ 2.11.*) ;; # other 2.11 versions
14099 *) supports_anon_versioning=yes ;;
14100 esac
14102 # See if GNU ld supports shared libraries.
14103 case $host_os in
14104 aix3* | aix4* | aix5*)
14105 # On AIX/PPC, the GNU linker is very broken
14106 if test "$host_cpu" != ia64; then
14107 ld_shlibs_F77=no
14108 cat <<EOF 1>&2
14110 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14111 *** to be unable to reliably create shared libraries on AIX.
14112 *** Therefore, libtool is disabling shared libraries support. If you
14113 *** really care for shared libraries, you may want to modify your PATH
14114 *** so that a non-GNU linker is found, and then restart.
14120 amigaos*)
14121 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)'
14122 hardcode_libdir_flag_spec_F77='-L$libdir'
14123 hardcode_minus_L_F77=yes
14125 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14126 # that the semantics of dynamic libraries on AmigaOS, at least up
14127 # to version 4, is to share data among multiple programs linked
14128 # with the same dynamic library. Since this doesn't match the
14129 # behavior of shared libraries on other platforms, we can't use
14130 # them.
14131 ld_shlibs_F77=no
14134 beos*)
14135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14136 allow_undefined_flag_F77=unsupported
14137 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14138 # support --undefined. This deserves some investigation. FIXME
14139 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14140 else
14141 ld_shlibs_F77=no
14145 cygwin* | mingw* | pw32*)
14146 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14147 # as there is no search path for DLLs.
14148 hardcode_libdir_flag_spec_F77='-L$libdir'
14149 allow_undefined_flag_F77=unsupported
14150 always_export_symbols_F77=no
14151 enable_shared_with_static_runtimes_F77=yes
14152 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14154 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14155 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14156 # If the export-symbols file already is a .def file (1st line
14157 # is EXPORTS), use it as is; otherwise, prepend...
14158 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14159 cp $export_symbols $output_objdir/$soname.def;
14160 else
14161 echo EXPORTS > $output_objdir/$soname.def;
14162 cat $export_symbols >> $output_objdir/$soname.def;
14164 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14165 else
14166 ld_shlibs_F77=no
14170 interix3*)
14171 hardcode_direct_F77=no
14172 hardcode_shlibpath_var_F77=no
14173 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14174 export_dynamic_flag_spec_F77='${wl}-E'
14175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14176 # Instead, shared libraries are loaded at an image base (0x10000000 by
14177 # default) and relocated if they conflict, which is a slow very memory
14178 # consuming and fragmenting process. To avoid this, we pick a random,
14179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14181 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'
14182 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'
14185 linux* | k*bsd*-gnu)
14186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14187 tmp_addflag=
14188 case $cc_basename,$host_cpu in
14189 pgcc*) # Portland Group C compiler
14190 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'
14191 tmp_addflag=' $pic_flag'
14193 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14194 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'
14195 tmp_addflag=' $pic_flag -Mnomain' ;;
14196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14197 tmp_addflag=' -i_dynamic' ;;
14198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14199 tmp_addflag=' -i_dynamic -nofor_main' ;;
14200 ifc* | ifort*) # Intel Fortran compiler
14201 tmp_addflag=' -nofor_main' ;;
14202 esac
14203 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14205 if test $supports_anon_versioning = yes; then
14206 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14208 $echo "local: *; };" >> $output_objdir/$libname.ver~
14209 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14211 link_all_deplibs_F77=no
14212 else
14213 ld_shlibs_F77=no
14217 netbsd* | netbsdelf*-gnu)
14218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14219 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14220 wlarc=
14221 else
14222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14227 solaris*)
14228 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14229 ld_shlibs_F77=no
14230 cat <<EOF 1>&2
14232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14233 *** create shared libraries on Solaris systems. Therefore, libtool
14234 *** is disabling shared libraries support. We urge you to upgrade GNU
14235 *** binutils to release 2.9.1 or newer. Another option is to modify
14236 *** your PATH or compiler configuration so that the native linker is
14237 *** used, and then restart.
14240 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14243 else
14244 ld_shlibs_F77=no
14248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14249 case `$LD -v 2>&1` in
14250 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14251 ld_shlibs_F77=no
14252 cat <<_LT_EOF 1>&2
14254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14255 *** reliably create shared libraries on SCO systems. Therefore, libtool
14256 *** is disabling shared libraries support. We urge you to upgrade GNU
14257 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14258 *** your PATH or compiler configuration so that the native linker is
14259 *** used, and then restart.
14261 _LT_EOF
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14266 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14267 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14268 else
14269 ld_shlibs_F77=no
14272 esac
14275 sunos4*)
14276 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14277 wlarc=
14278 hardcode_direct_F77=yes
14279 hardcode_shlibpath_var_F77=no
14283 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14286 else
14287 ld_shlibs_F77=no
14290 esac
14292 if test "$ld_shlibs_F77" = no; then
14293 runpath_var=
14294 hardcode_libdir_flag_spec_F77=
14295 export_dynamic_flag_spec_F77=
14296 whole_archive_flag_spec_F77=
14298 else
14299 # PORTME fill in a description of your system's linker (not GNU ld)
14300 case $host_os in
14301 aix3*)
14302 allow_undefined_flag_F77=unsupported
14303 always_export_symbols_F77=yes
14304 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'
14305 # Note: this linker hardcodes the directories in LIBPATH if there
14306 # are no directories specified by -L.
14307 hardcode_minus_L_F77=yes
14308 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14309 # Neither direct hardcoding nor static linking is supported with a
14310 # broken collect2.
14311 hardcode_direct_F77=unsupported
14315 aix4* | aix5*)
14316 if test "$host_cpu" = ia64; then
14317 # On IA64, the linker does run time linking by default, so we don't
14318 # have to do anything special.
14319 aix_use_runtimelinking=no
14320 exp_sym_flag='-Bexport'
14321 no_entry_flag=""
14322 else
14323 # If we're using GNU nm, then we don't want the "-C" option.
14324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14325 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14326 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'
14327 else
14328 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'
14330 aix_use_runtimelinking=no
14332 # Test if we are trying to use run time linking or normal
14333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14334 # need to do runtime linking.
14335 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14336 for ld_flag in $LDFLAGS; do
14337 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14338 aix_use_runtimelinking=yes
14339 break
14341 done
14343 esac
14345 exp_sym_flag='-bexport'
14346 no_entry_flag='-bnoentry'
14349 # When large executables or shared objects are built, AIX ld can
14350 # have problems creating the table of contents. If linking a library
14351 # or program results in "error TOC overflow" add -mminimal-toc to
14352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14355 archive_cmds_F77=''
14356 hardcode_direct_F77=yes
14357 hardcode_libdir_separator_F77=':'
14358 link_all_deplibs_F77=yes
14360 if test "$GCC" = yes; then
14361 case $host_os in aix4.[012]|aix4.[012].*)
14362 # We only want to do this on AIX 4.2 and lower, the check
14363 # below for broken collect2 doesn't work under 4.3+
14364 collect2name=`${CC} -print-prog-name=collect2`
14365 if test -f "$collect2name" && \
14366 strings "$collect2name" | grep resolve_lib_name >/dev/null
14367 then
14368 # We have reworked collect2
14369 hardcode_direct_F77=yes
14370 else
14371 # We have old collect2
14372 hardcode_direct_F77=unsupported
14373 # It fails to find uninstalled libraries when the uninstalled
14374 # path is not listed in the libpath. Setting hardcode_minus_L
14375 # to unsupported forces relinking
14376 hardcode_minus_L_F77=yes
14377 hardcode_libdir_flag_spec_F77='-L$libdir'
14378 hardcode_libdir_separator_F77=
14381 esac
14382 shared_flag='-shared'
14383 if test "$aix_use_runtimelinking" = yes; then
14384 shared_flag="$shared_flag "'${wl}-G'
14386 else
14387 # not using gcc
14388 if test "$host_cpu" = ia64; then
14389 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14390 # chokes on -Wl,-G. The following line is correct:
14391 shared_flag='-G'
14392 else
14393 if test "$aix_use_runtimelinking" = yes; then
14394 shared_flag='${wl}-G'
14395 else
14396 shared_flag='${wl}-bM:SRE'
14401 # It seems that -bexpall does not export symbols beginning with
14402 # underscore (_), so it is better to generate a list of symbols to export.
14403 always_export_symbols_F77=yes
14404 if test "$aix_use_runtimelinking" = yes; then
14405 # Warning - without using the other runtime loading flags (-brtl),
14406 # -berok will link without error, but may produce a broken library.
14407 allow_undefined_flag_F77='-berok'
14408 # Determine the default libpath from the value encoded in an empty executable.
14409 cat >conftest.$ac_ext <<_ACEOF
14410 program main
14413 _ACEOF
14414 rm -f conftest.$ac_objext conftest$ac_exeext
14415 if { (ac_try="$ac_link"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_link") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_f77_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest$ac_exeext &&
14431 $as_test_x conftest$ac_exeext; then
14433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14435 # Check for a 64-bit object if we didn't find anything.
14436 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14437 }'`; fi
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14446 conftest$ac_exeext conftest.$ac_ext
14447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14449 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14450 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"
14451 else
14452 if test "$host_cpu" = ia64; then
14453 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14454 allow_undefined_flag_F77="-z nodefs"
14455 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"
14456 else
14457 # Determine the default libpath from the value encoded in an empty executable.
14458 cat >conftest.$ac_ext <<_ACEOF
14459 program main
14462 _ACEOF
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_link") 2>conftest.er1
14471 ac_status=$?
14472 grep -v '^ *+' conftest.er1 >conftest.err
14473 rm -f conftest.er1
14474 cat conftest.err >&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } && {
14477 test -z "$ac_f77_werror_flag" ||
14478 test ! -s conftest.err
14479 } && test -s conftest$ac_exeext &&
14480 $as_test_x conftest$ac_exeext; then
14482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14484 # Check for a 64-bit object if we didn't find anything.
14485 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14486 }'`; fi
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14495 conftest$ac_exeext conftest.$ac_ext
14496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14498 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14499 # Warning - without using the other run time loading flags,
14500 # -berok will link without error, but may produce a broken library.
14501 no_undefined_flag_F77=' ${wl}-bernotok'
14502 allow_undefined_flag_F77=' ${wl}-berok'
14503 # Exported symbols can be pulled into shared objects from archives
14504 whole_archive_flag_spec_F77='$convenience'
14505 archive_cmds_need_lc_F77=yes
14506 # This is similar to how AIX traditionally builds its shared libraries.
14507 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'
14512 amigaos*)
14513 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)'
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_minus_L_F77=yes
14516 # see comment about different semantics on the GNU ld section
14517 ld_shlibs_F77=no
14520 bsdi[45]*)
14521 export_dynamic_flag_spec_F77=-rdynamic
14524 cygwin* | mingw* | pw32*)
14525 # When not using gcc, we currently assume that we are using
14526 # Microsoft Visual C++.
14527 # hardcode_libdir_flag_spec is actually meaningless, as there is
14528 # no search path for DLLs.
14529 hardcode_libdir_flag_spec_F77=' '
14530 allow_undefined_flag_F77=unsupported
14531 # Tell ltmain to make .lib files, not .a files.
14532 libext=lib
14533 # Tell ltmain to make .dll files, not .so files.
14534 shrext_cmds=".dll"
14535 # FIXME: Setting linknames here is a bad hack.
14536 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14537 # The linker will automatically build a .lib file if we build a DLL.
14538 old_archive_From_new_cmds_F77='true'
14539 # FIXME: Should let the user specify the lib program.
14540 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14541 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14542 enable_shared_with_static_runtimes_F77=yes
14545 darwin* | rhapsody*)
14546 case $host_os in
14547 rhapsody* | darwin1.[012])
14548 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14550 *) # Darwin 1.3 on
14551 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14552 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14553 else
14554 case ${MACOSX_DEPLOYMENT_TARGET} in
14555 10.[012])
14556 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14558 10.*)
14559 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14561 esac
14564 esac
14565 archive_cmds_need_lc_F77=no
14566 hardcode_direct_F77=no
14567 hardcode_automatic_F77=yes
14568 hardcode_shlibpath_var_F77=unsupported
14569 whole_archive_flag_spec_F77=''
14570 link_all_deplibs_F77=yes
14571 if test "$GCC" = yes ; then
14572 output_verbose_link_cmd='echo'
14573 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14574 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14575 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14576 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14577 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}'
14578 else
14579 case $cc_basename in
14580 xlc*)
14581 output_verbose_link_cmd='echo'
14582 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14583 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14585 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14586 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}'
14589 ld_shlibs_F77=no
14591 esac
14595 dgux*)
14596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14597 hardcode_libdir_flag_spec_F77='-L$libdir'
14598 hardcode_shlibpath_var_F77=no
14601 freebsd1*)
14602 ld_shlibs_F77=no
14605 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14606 # support. Future versions do this automatically, but an explicit c++rt0.o
14607 # does not break anything, and helps significantly (at the cost of a little
14608 # extra space).
14609 freebsd2.2*)
14610 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14611 hardcode_libdir_flag_spec_F77='-R$libdir'
14612 hardcode_direct_F77=yes
14613 hardcode_shlibpath_var_F77=no
14616 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14617 freebsd2*)
14618 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14619 hardcode_direct_F77=yes
14620 hardcode_minus_L_F77=yes
14621 hardcode_shlibpath_var_F77=no
14624 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14625 freebsd* | dragonfly*)
14626 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14627 hardcode_libdir_flag_spec_F77='-R$libdir'
14628 hardcode_direct_F77=yes
14629 hardcode_shlibpath_var_F77=no
14632 hpux9*)
14633 if test "$GCC" = yes; then
14634 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'
14635 else
14636 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'
14638 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14639 hardcode_libdir_separator_F77=:
14640 hardcode_direct_F77=yes
14642 # hardcode_minus_L: Not really in the search PATH,
14643 # but as the default location of the library.
14644 hardcode_minus_L_F77=yes
14645 export_dynamic_flag_spec_F77='${wl}-E'
14648 hpux10*)
14649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14650 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14651 else
14652 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14654 if test "$with_gnu_ld" = no; then
14655 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14656 hardcode_libdir_separator_F77=:
14658 hardcode_direct_F77=yes
14659 export_dynamic_flag_spec_F77='${wl}-E'
14661 # hardcode_minus_L: Not really in the search PATH,
14662 # but as the default location of the library.
14663 hardcode_minus_L_F77=yes
14667 hpux11*)
14668 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14669 case $host_cpu in
14670 hppa*64*)
14671 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14673 ia64*)
14674 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14677 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14679 esac
14680 else
14681 case $host_cpu in
14682 hppa*64*)
14683 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 ia64*)
14686 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14689 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14691 esac
14693 if test "$with_gnu_ld" = no; then
14694 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14695 hardcode_libdir_separator_F77=:
14697 case $host_cpu in
14698 hppa*64*|ia64*)
14699 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14700 hardcode_direct_F77=no
14701 hardcode_shlibpath_var_F77=no
14704 hardcode_direct_F77=yes
14705 export_dynamic_flag_spec_F77='${wl}-E'
14707 # hardcode_minus_L: Not really in the search PATH,
14708 # but as the default location of the library.
14709 hardcode_minus_L_F77=yes
14711 esac
14715 irix5* | irix6* | nonstopux*)
14716 if test "$GCC" = yes; then
14717 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'
14718 else
14719 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'
14720 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14722 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14723 hardcode_libdir_separator_F77=:
14724 link_all_deplibs_F77=yes
14727 netbsd* | netbsdelf*-gnu)
14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14729 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14730 else
14731 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14733 hardcode_libdir_flag_spec_F77='-R$libdir'
14734 hardcode_direct_F77=yes
14735 hardcode_shlibpath_var_F77=no
14738 newsos6)
14739 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_direct_F77=yes
14741 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14742 hardcode_libdir_separator_F77=:
14743 hardcode_shlibpath_var_F77=no
14746 openbsd*)
14747 hardcode_direct_F77=yes
14748 hardcode_shlibpath_var_F77=no
14749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14750 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14751 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14752 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14753 export_dynamic_flag_spec_F77='${wl}-E'
14754 else
14755 case $host_os in
14756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14757 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14758 hardcode_libdir_flag_spec_F77='-R$libdir'
14761 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14762 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14764 esac
14768 os2*)
14769 hardcode_libdir_flag_spec_F77='-L$libdir'
14770 hardcode_minus_L_F77=yes
14771 allow_undefined_flag_F77=unsupported
14772 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'
14773 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14776 osf3*)
14777 if test "$GCC" = yes; then
14778 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14779 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'
14780 else
14781 allow_undefined_flag_F77=' -expect_unresolved \*'
14782 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'
14784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14785 hardcode_libdir_separator_F77=:
14788 osf4* | osf5*) # as osf3* with the addition of -msym flag
14789 if test "$GCC" = yes; then
14790 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14791 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'
14792 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14793 else
14794 allow_undefined_flag_F77=' -expect_unresolved \*'
14795 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'
14796 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~
14797 $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'
14799 # Both c and cxx compiler support -rpath directly
14800 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14802 hardcode_libdir_separator_F77=:
14805 solaris*)
14806 no_undefined_flag_F77=' -z text'
14807 if test "$GCC" = yes; then
14808 wlarc='${wl}'
14809 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14811 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14812 else
14813 wlarc=''
14814 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14815 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14818 hardcode_libdir_flag_spec_F77='-R$libdir'
14819 hardcode_shlibpath_var_F77=no
14820 case $host_os in
14821 solaris2.[0-5] | solaris2.[0-5].*) ;;
14823 # The compiler driver will combine linker options so we
14824 # cannot just pass the convience library names through
14825 # without $wl, iff we do not link with $LD.
14826 # Luckily, gcc supports the same syntax we need for Sun Studio.
14827 # Supported since Solaris 2.6 (maybe 2.5.1?)
14828 case $wlarc in
14830 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14832 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14833 esac ;;
14834 esac
14835 link_all_deplibs_F77=yes
14838 sunos4*)
14839 if test "x$host_vendor" = xsequent; then
14840 # Use $CC to link under sequent, because it throws in some extra .o
14841 # files that make .init and .fini sections work.
14842 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14843 else
14844 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14846 hardcode_libdir_flag_spec_F77='-L$libdir'
14847 hardcode_direct_F77=yes
14848 hardcode_minus_L_F77=yes
14849 hardcode_shlibpath_var_F77=no
14852 sysv4)
14853 case $host_vendor in
14854 sni)
14855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14856 hardcode_direct_F77=yes # is this really true???
14858 siemens)
14859 ## LD is ld it makes a PLAMLIB
14860 ## CC just makes a GrossModule.
14861 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14862 reload_cmds_F77='$CC -r -o $output$reload_objs'
14863 hardcode_direct_F77=no
14865 motorola)
14866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14869 esac
14870 runpath_var='LD_RUN_PATH'
14871 hardcode_shlibpath_var_F77=no
14874 sysv4.3*)
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_shlibpath_var_F77=no
14877 export_dynamic_flag_spec_F77='-Bexport'
14880 sysv4*MP*)
14881 if test -d /usr/nec; then
14882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883 hardcode_shlibpath_var_F77=no
14884 runpath_var=LD_RUN_PATH
14885 hardcode_runpath_var=yes
14886 ld_shlibs_F77=yes
14890 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14891 no_undefined_flag_F77='${wl}-z,text'
14892 archive_cmds_need_lc_F77=no
14893 hardcode_shlibpath_var_F77=no
14894 runpath_var='LD_RUN_PATH'
14896 if test "$GCC" = yes; then
14897 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14898 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14899 else
14900 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14901 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 sysv5* | sco3.2v5* | sco5v6*)
14906 # Note: We can NOT use -z defs as we might desire, because we do not
14907 # link with -lc, and that would cause any symbols used from libc to
14908 # always be unresolved, which means just about no library would
14909 # ever link correctly. If we're not using GNU ld we use -z text
14910 # though, which does catch some bad symbols but isn't as heavy-handed
14911 # as -z defs.
14912 no_undefined_flag_F77='${wl}-z,text'
14913 allow_undefined_flag_F77='${wl}-z,nodefs'
14914 archive_cmds_need_lc_F77=no
14915 hardcode_shlibpath_var_F77=no
14916 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14917 hardcode_libdir_separator_F77=':'
14918 link_all_deplibs_F77=yes
14919 export_dynamic_flag_spec_F77='${wl}-Bexport'
14920 runpath_var='LD_RUN_PATH'
14922 if test "$GCC" = yes; then
14923 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14925 else
14926 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14931 uts4*)
14932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14933 hardcode_libdir_flag_spec_F77='-L$libdir'
14934 hardcode_shlibpath_var_F77=no
14938 ld_shlibs_F77=no
14940 esac
14943 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14944 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14945 test "$ld_shlibs_F77" = no && can_build_shared=no
14948 # Do we need to explicitly link libc?
14950 case "x$archive_cmds_need_lc_F77" in
14951 x|xyes)
14952 # Assume -lc should be added
14953 archive_cmds_need_lc_F77=yes
14955 if test "$enable_shared" = yes && test "$GCC" = yes; then
14956 case $archive_cmds_F77 in
14957 *'~'*)
14958 # FIXME: we may have to deal with multi-command sequences.
14960 '$CC '*)
14961 # Test whether the compiler implicitly links with -lc since on some
14962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14963 # to ld, don't add -lc before -lgcc.
14964 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14966 $rm conftest*
14967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14970 (eval $ac_compile) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } 2>conftest.err; then
14974 soname=conftest
14975 lib=conftest
14976 libobjs=conftest.$ac_objext
14977 deplibs=
14978 wl=$lt_prog_compiler_wl_F77
14979 pic_flag=$lt_prog_compiler_pic_F77
14980 compiler_flags=-v
14981 linker_flags=-v
14982 verstring=
14983 output_objdir=.
14984 libname=conftest
14985 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14986 allow_undefined_flag_F77=
14987 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14988 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }
14992 then
14993 archive_cmds_need_lc_F77=no
14994 else
14995 archive_cmds_need_lc_F77=yes
14997 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14998 else
14999 cat conftest.err 1>&5
15001 $rm conftest*
15002 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15003 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15005 esac
15008 esac
15010 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15011 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15012 library_names_spec=
15013 libname_spec='lib$name'
15014 soname_spec=
15015 shrext_cmds=".so"
15016 postinstall_cmds=
15017 postuninstall_cmds=
15018 finish_cmds=
15019 finish_eval=
15020 shlibpath_var=
15021 shlibpath_overrides_runpath=unknown
15022 version_type=none
15023 dynamic_linker="$host_os ld.so"
15024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15025 if test "$GCC" = yes; then
15026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15027 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15028 # if the path contains ";" then we assume it to be the separator
15029 # otherwise default to the standard path separator (i.e. ":") - it is
15030 # assumed that no part of a normal pathname contains ";" but that should
15031 # okay in the real world where ";" in dirpaths is itself problematic.
15032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15033 else
15034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15036 else
15037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15039 need_lib_prefix=unknown
15040 hardcode_into_libs=no
15042 # when you set need_version to no, make sure it does not cause -set_version
15043 # flags to be left without arguments
15044 need_version=unknown
15046 case $host_os in
15047 aix3*)
15048 version_type=linux
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15050 shlibpath_var=LIBPATH
15052 # AIX 3 has no versioning support, so we append a major version to the name.
15053 soname_spec='${libname}${release}${shared_ext}$major'
15056 aix4* | aix5*)
15057 version_type=linux
15058 need_lib_prefix=no
15059 need_version=no
15060 hardcode_into_libs=yes
15061 if test "$host_cpu" = ia64; then
15062 # AIX 5 supports IA64
15063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15064 shlibpath_var=LD_LIBRARY_PATH
15065 else
15066 # With GCC up to 2.95.x, collect2 would create an import file
15067 # for dependence libraries. The import file would start with
15068 # the line `#! .'. This would cause the generated library to
15069 # depend on `.', always an invalid library. This was fixed in
15070 # development snapshots of GCC prior to 3.0.
15071 case $host_os in
15072 aix4 | aix4.[01] | aix4.[01].*)
15073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15074 echo ' yes '
15075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15077 else
15078 can_build_shared=no
15081 esac
15082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15083 # soname into executable. Probably we can add versioning support to
15084 # collect2, so additional links can be useful in future.
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15087 # instead of lib<name>.a to let people know that these are not
15088 # typical AIX shared libraries.
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 else
15091 # We preserve .a as extension for shared libraries through AIX4.2
15092 # and later when we are not doing run time linking.
15093 library_names_spec='${libname}${release}.a $libname.a'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LIBPATH
15100 amigaos*)
15101 library_names_spec='$libname.ixlibrary $libname.a'
15102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15103 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'
15106 beos*)
15107 library_names_spec='${libname}${shared_ext}'
15108 dynamic_linker="$host_os ld.so"
15109 shlibpath_var=LIBRARY_PATH
15112 bsdi[45]*)
15113 version_type=linux
15114 need_version=no
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15121 # the default ld.so.conf also contains /usr/contrib/lib and
15122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15123 # libtool to hard-code these into programs
15126 cygwin* | mingw* | pw32*)
15127 version_type=windows
15128 shrext_cmds=".dll"
15129 need_version=no
15130 need_lib_prefix=no
15132 case $GCC,$host_os in
15133 yes,cygwin* | yes,mingw* | yes,pw32*)
15134 library_names_spec='$libname.dll.a'
15135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15136 postinstall_cmds='base_file=`basename \${file}`~
15137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15138 dldir=$destdir/`dirname \$dlpath`~
15139 test -d \$dldir || mkdir -p \$dldir~
15140 $install_prog $dir/$dlname \$dldir/$dlname~
15141 chmod a+x \$dldir/$dlname'
15142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15143 dlpath=$dir/\$dldll~
15144 $rm \$dlpath'
15145 shlibpath_overrides_runpath=yes
15147 case $host_os in
15148 cygwin*)
15149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15153 mingw*)
15154 # MinGW DLLs use traditional 'lib' prefix
15155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15158 # It is most probably a Windows format PATH printed by
15159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15160 # path with ; separators, and with drive letters. We can handle the
15161 # drive letters (cygwin fileutils understands them), so leave them,
15162 # especially as we might pass files found there to a mingw objdump,
15163 # which wouldn't understand a cygwinified path. Ahh.
15164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165 else
15166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15169 pw32*)
15170 # pw32 DLLs use 'pw' prefix rather than 'lib'
15171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15173 esac
15177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15179 esac
15180 dynamic_linker='Win32 ld.exe'
15181 # FIXME: first we should search . and the directory the executable is in
15182 shlibpath_var=PATH
15185 darwin* | rhapsody*)
15186 dynamic_linker="$host_os dyld"
15187 version_type=darwin
15188 need_lib_prefix=no
15189 need_version=no
15190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15191 soname_spec='${libname}${release}${major}$shared_ext'
15192 shlibpath_overrides_runpath=yes
15193 shlibpath_var=DYLD_LIBRARY_PATH
15194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15195 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15196 if test "$GCC" = yes; then
15197 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15198 else
15199 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15204 dgux*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15213 freebsd1*)
15214 dynamic_linker=no
15217 freebsd* | dragonfly*)
15218 # DragonFly does not have aout. When/if they implement a new
15219 # versioning mechanism, adjust this.
15220 if test -x /usr/bin/objformat; then
15221 objformat=`/usr/bin/objformat`
15222 else
15223 case $host_os in
15224 freebsd[123]*) objformat=aout ;;
15225 *) objformat=elf ;;
15226 esac
15228 version_type=freebsd-$objformat
15229 case $version_type in
15230 freebsd-elf*)
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15232 need_version=no
15233 need_lib_prefix=no
15235 freebsd-*)
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15237 need_version=yes
15239 esac
15240 shlibpath_var=LD_LIBRARY_PATH
15241 case $host_os in
15242 freebsd2*)
15243 shlibpath_overrides_runpath=yes
15245 freebsd3.[01]* | freebsdelf3.[01]*)
15246 shlibpath_overrides_runpath=yes
15247 hardcode_into_libs=yes
15249 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15250 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15251 shlibpath_overrides_runpath=no
15252 hardcode_into_libs=yes
15254 freebsd*) # from 4.6 on
15255 shlibpath_overrides_runpath=yes
15256 hardcode_into_libs=yes
15258 esac
15261 gnu*)
15262 version_type=linux
15263 need_lib_prefix=no
15264 need_version=no
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 hardcode_into_libs=yes
15271 hpux9* | hpux10* | hpux11*)
15272 # Give a soname corresponding to the major version so that dld.sl refuses to
15273 # link against other versions.
15274 version_type=sunos
15275 need_lib_prefix=no
15276 need_version=no
15277 case $host_cpu in
15278 ia64*)
15279 shrext_cmds='.so'
15280 hardcode_into_libs=yes
15281 dynamic_linker="$host_os dld.so"
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 if test "X$HPUX_IA64_MODE" = X32; then
15287 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15288 else
15289 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15293 hppa*64*)
15294 shrext_cmds='.sl'
15295 hardcode_into_libs=yes
15296 dynamic_linker="$host_os dld.sl"
15297 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15305 shrext_cmds='.sl'
15306 dynamic_linker="$host_os dld.sl"
15307 shlibpath_var=SHLIB_PATH
15308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15312 esac
15313 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15314 postinstall_cmds='chmod 555 $lib'
15317 interix3*)
15318 version_type=linux
15319 need_lib_prefix=no
15320 need_version=no
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=no
15326 hardcode_into_libs=yes
15329 irix5* | irix6* | nonstopux*)
15330 case $host_os in
15331 nonstopux*) version_type=nonstopux ;;
15333 if test "$lt_cv_prog_gnu_ld" = yes; then
15334 version_type=linux
15335 else
15336 version_type=irix
15337 fi ;;
15338 esac
15339 need_lib_prefix=no
15340 need_version=no
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15343 case $host_os in
15344 irix5* | nonstopux*)
15345 libsuff= shlibsuff=
15348 case $LD in # libtool.m4 will add one of these switches to LD
15349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15350 libsuff= shlibsuff= libmagic=32-bit;;
15351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15352 libsuff=32 shlibsuff=N32 libmagic=N32;;
15353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15355 *) libsuff= shlibsuff= libmagic=never-match;;
15356 esac
15358 esac
15359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15360 shlibpath_overrides_runpath=no
15361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15363 hardcode_into_libs=yes
15366 # No shared lib support for Linux oldld, aout, or coff.
15367 linux*oldld* | linux*aout* | linux*coff*)
15368 dynamic_linker=no
15371 # This must be Linux ELF.
15372 linux* | k*bsd*-gnu)
15373 version_type=linux
15374 need_lib_prefix=no
15375 need_version=no
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=no
15381 # This implies no fast_install, which is unacceptable.
15382 # Some rework will be needed to allow for fast_install
15383 # before this can be enabled.
15384 hardcode_into_libs=yes
15386 # Append ld.so.conf contents to the search path
15387 if test -f /etc/ld.so.conf; then
15388 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15392 # We used to test for /lib/ld.so.1 and disable shared libraries on
15393 # powerpc, because MkLinux only supported shared libraries with the
15394 # GNU dynamic linker. Since this was broken with cross compilers,
15395 # most powerpc-linux boxes support dynamic linking these days and
15396 # people can always --disable-shared, the test was removed, and we
15397 # assume the GNU/Linux dynamic linker is in use.
15398 dynamic_linker='GNU/Linux ld.so'
15401 netbsdelf*-gnu)
15402 version_type=linux
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15410 dynamic_linker='NetBSD ld.elf_so'
15413 netbsd*)
15414 version_type=sunos
15415 need_lib_prefix=no
15416 need_version=no
15417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15420 dynamic_linker='NetBSD (a.out) ld.so'
15421 else
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 dynamic_linker='NetBSD ld.elf_so'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes
15428 hardcode_into_libs=yes
15431 newsos6)
15432 version_type=linux
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15438 nto-qnx*)
15439 version_type=linux
15440 need_lib_prefix=no
15441 need_version=no
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 shlibpath_overrides_runpath=yes
15448 openbsd*)
15449 version_type=sunos
15450 sys_lib_dlsearch_path_spec="/usr/lib"
15451 need_lib_prefix=no
15452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15453 case $host_os in
15454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15455 *) need_version=no ;;
15456 esac
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15461 case $host_os in
15462 openbsd2.[89] | openbsd2.[89].*)
15463 shlibpath_overrides_runpath=no
15466 shlibpath_overrides_runpath=yes
15468 esac
15469 else
15470 shlibpath_overrides_runpath=yes
15474 os2*)
15475 libname_spec='$name'
15476 shrext_cmds=".dll"
15477 need_lib_prefix=no
15478 library_names_spec='$libname${shared_ext} $libname.a'
15479 dynamic_linker='OS/2 ld.exe'
15480 shlibpath_var=LIBPATH
15483 osf3* | osf4* | osf5*)
15484 version_type=osf
15485 need_lib_prefix=no
15486 need_version=no
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15494 solaris*)
15495 version_type=linux
15496 need_lib_prefix=no
15497 need_version=no
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes
15502 hardcode_into_libs=yes
15503 # ldd complains unless libraries are executable
15504 postinstall_cmds='chmod +x $lib'
15507 sunos4*)
15508 version_type=sunos
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15511 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=yes
15513 if test "$with_gnu_ld" = yes; then
15514 need_lib_prefix=no
15516 need_version=yes
15519 sysv4 | sysv4.3*)
15520 version_type=linux
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 case $host_vendor in
15525 sni)
15526 shlibpath_overrides_runpath=no
15527 need_lib_prefix=no
15528 export_dynamic_flag_spec='${wl}-Blargedynsym'
15529 runpath_var=LD_RUN_PATH
15531 siemens)
15532 need_lib_prefix=no
15534 motorola)
15535 need_lib_prefix=no
15536 need_version=no
15537 shlibpath_overrides_runpath=no
15538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15540 esac
15543 sysv4*MP*)
15544 if test -d /usr/nec ;then
15545 version_type=linux
15546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15547 soname_spec='$libname${shared_ext}.$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15553 version_type=freebsd-elf
15554 need_lib_prefix=no
15555 need_version=no
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 hardcode_into_libs=yes
15560 if test "$with_gnu_ld" = yes; then
15561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15562 shlibpath_overrides_runpath=no
15563 else
15564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15565 shlibpath_overrides_runpath=yes
15566 case $host_os in
15567 sco3.2v5*)
15568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15570 esac
15572 sys_lib_dlsearch_path_spec='/usr/lib'
15575 uts4*)
15576 version_type=linux
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15583 dynamic_linker=no
15585 esac
15586 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15587 echo "${ECHO_T}$dynamic_linker" >&6; }
15588 test "$dynamic_linker" = no && can_build_shared=no
15590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15591 if test "$GCC" = yes; then
15592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15595 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15597 hardcode_action_F77=
15598 if test -n "$hardcode_libdir_flag_spec_F77" || \
15599 test -n "$runpath_var_F77" || \
15600 test "X$hardcode_automatic_F77" = "Xyes" ; then
15602 # We can hardcode non-existant directories.
15603 if test "$hardcode_direct_F77" != no &&
15604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15605 # have to relink, otherwise we might link with an installed library
15606 # when we should be linking with a yet-to-be-installed one
15607 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15608 test "$hardcode_minus_L_F77" != no; then
15609 # Linking always hardcodes the temporary library directory.
15610 hardcode_action_F77=relink
15611 else
15612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15613 hardcode_action_F77=immediate
15615 else
15616 # We cannot hardcode anything, or else we can only hardcode existing
15617 # directories.
15618 hardcode_action_F77=unsupported
15620 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15621 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15623 if test "$hardcode_action_F77" = relink; then
15624 # Fast installation is not supported
15625 enable_fast_install=no
15626 elif test "$shlibpath_overrides_runpath" = yes ||
15627 test "$enable_shared" = no; then
15628 # Fast installation is not necessary
15629 enable_fast_install=needless
15633 # The else clause should only fire when bootstrapping the
15634 # libtool distribution, otherwise you forgot to ship ltmain.sh
15635 # with your package, and you will get complaints that there are
15636 # no rules to generate ltmain.sh.
15637 if test -f "$ltmain"; then
15638 # See if we are running on zsh, and set the options which allow our commands through
15639 # without removal of \ escapes.
15640 if test -n "${ZSH_VERSION+set}" ; then
15641 setopt NO_GLOB_SUBST
15643 # Now quote all the things that may contain metacharacters while being
15644 # careful not to overquote the AC_SUBSTed values. We take copies of the
15645 # variables and quote the copies for generation of the libtool script.
15646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15647 SED SHELL STRIP \
15648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15650 deplibs_check_method reload_flag reload_cmds need_locks \
15651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15652 lt_cv_sys_global_symbol_to_c_name_address \
15653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15654 old_postinstall_cmds old_postuninstall_cmds \
15655 compiler_F77 \
15656 CC_F77 \
15657 LD_F77 \
15658 lt_prog_compiler_wl_F77 \
15659 lt_prog_compiler_pic_F77 \
15660 lt_prog_compiler_static_F77 \
15661 lt_prog_compiler_no_builtin_flag_F77 \
15662 export_dynamic_flag_spec_F77 \
15663 thread_safe_flag_spec_F77 \
15664 whole_archive_flag_spec_F77 \
15665 enable_shared_with_static_runtimes_F77 \
15666 old_archive_cmds_F77 \
15667 old_archive_from_new_cmds_F77 \
15668 predep_objects_F77 \
15669 postdep_objects_F77 \
15670 predeps_F77 \
15671 postdeps_F77 \
15672 compiler_lib_search_path_F77 \
15673 archive_cmds_F77 \
15674 archive_expsym_cmds_F77 \
15675 postinstall_cmds_F77 \
15676 postuninstall_cmds_F77 \
15677 old_archive_from_expsyms_cmds_F77 \
15678 allow_undefined_flag_F77 \
15679 no_undefined_flag_F77 \
15680 export_symbols_cmds_F77 \
15681 hardcode_libdir_flag_spec_F77 \
15682 hardcode_libdir_flag_spec_ld_F77 \
15683 hardcode_libdir_separator_F77 \
15684 hardcode_automatic_F77 \
15685 module_cmds_F77 \
15686 module_expsym_cmds_F77 \
15687 lt_cv_prog_compiler_c_o_F77 \
15688 exclude_expsyms_F77 \
15689 include_expsyms_F77; do
15691 case $var in
15692 old_archive_cmds_F77 | \
15693 old_archive_from_new_cmds_F77 | \
15694 archive_cmds_F77 | \
15695 archive_expsym_cmds_F77 | \
15696 module_cmds_F77 | \
15697 module_expsym_cmds_F77 | \
15698 old_archive_from_expsyms_cmds_F77 | \
15699 export_symbols_cmds_F77 | \
15700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15701 postinstall_cmds | postuninstall_cmds | \
15702 old_postinstall_cmds | old_postuninstall_cmds | \
15703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15704 # Double-quote double-evaled strings.
15705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15710 esac
15711 done
15713 case $lt_echo in
15714 *'\$0 --fallback-echo"')
15715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15717 esac
15719 cfgfile="$ofile"
15721 cat <<__EOF__ >> "$cfgfile"
15722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15726 # Shell to use when invoking shell scripts.
15727 SHELL=$lt_SHELL
15729 # Whether or not to build shared libraries.
15730 build_libtool_libs=$enable_shared
15732 # Whether or not to build static libraries.
15733 build_old_libs=$enable_static
15735 # Whether or not to add -lc for building shared libraries.
15736 build_libtool_need_lc=$archive_cmds_need_lc_F77
15738 # Whether or not to disallow shared libs when runtime libs are static
15739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15741 # Whether or not to optimize for fast installation.
15742 fast_install=$enable_fast_install
15744 # The host system.
15745 host_alias=$host_alias
15746 host=$host
15747 host_os=$host_os
15749 # The build system.
15750 build_alias=$build_alias
15751 build=$build
15752 build_os=$build_os
15754 # An echo program that does not interpret backslashes.
15755 echo=$lt_echo
15757 # The archiver.
15758 AR=$lt_AR
15759 AR_FLAGS=$lt_AR_FLAGS
15761 # A C compiler.
15762 LTCC=$lt_LTCC
15764 # LTCC compiler flags.
15765 LTCFLAGS=$lt_LTCFLAGS
15767 # A language-specific compiler.
15768 CC=$lt_compiler_F77
15770 # Is the compiler the GNU C compiler?
15771 with_gcc=$GCC_F77
15773 # An ERE matcher.
15774 EGREP=$lt_EGREP
15776 # The linker used to build libraries.
15777 LD=$lt_LD_F77
15779 # Whether we need hard or soft links.
15780 LN_S=$lt_LN_S
15782 # A BSD-compatible nm program.
15783 NM=$lt_NM
15785 # A symbol stripping program
15786 STRIP=$lt_STRIP
15788 # Used to examine libraries when file_magic_cmd begins "file"
15789 MAGIC_CMD=$MAGIC_CMD
15791 # Used on cygwin: DLL creation program.
15792 DLLTOOL="$DLLTOOL"
15794 # Used on cygwin: object dumper.
15795 OBJDUMP="$OBJDUMP"
15797 # Used on cygwin: assembler.
15798 AS="$AS"
15800 # The name of the directory that contains temporary libtool files.
15801 objdir=$objdir
15803 # How to create reloadable object files.
15804 reload_flag=$lt_reload_flag
15805 reload_cmds=$lt_reload_cmds
15807 # How to pass a linker flag through the compiler.
15808 wl=$lt_lt_prog_compiler_wl_F77
15810 # Object file suffix (normally "o").
15811 objext="$ac_objext"
15813 # Old archive suffix (normally "a").
15814 libext="$libext"
15816 # Shared library suffix (normally ".so").
15817 shrext_cmds='$shrext_cmds'
15819 # Executable file suffix (normally "").
15820 exeext="$exeext"
15822 # Additional compiler flags for building library objects.
15823 pic_flag=$lt_lt_prog_compiler_pic_F77
15824 pic_mode=$pic_mode
15826 # What is the maximum length of a command?
15827 max_cmd_len=$lt_cv_sys_max_cmd_len
15829 # Does compiler simultaneously support -c and -o options?
15830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15832 # Must we lock files when doing compilation?
15833 need_locks=$lt_need_locks
15835 # Do we need the lib prefix for modules?
15836 need_lib_prefix=$need_lib_prefix
15838 # Do we need a version for libraries?
15839 need_version=$need_version
15841 # Whether dlopen is supported.
15842 dlopen_support=$enable_dlopen
15844 # Whether dlopen of programs is supported.
15845 dlopen_self=$enable_dlopen_self
15847 # Whether dlopen of statically linked programs is supported.
15848 dlopen_self_static=$enable_dlopen_self_static
15850 # Compiler flag to prevent dynamic linking.
15851 link_static_flag=$lt_lt_prog_compiler_static_F77
15853 # Compiler flag to turn off builtin functions.
15854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15856 # Compiler flag to allow reflexive dlopens.
15857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15859 # Compiler flag to generate shared objects directly from archives.
15860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15862 # Compiler flag to generate thread-safe objects.
15863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15865 # Library versioning type.
15866 version_type=$version_type
15868 # Format of library name prefix.
15869 libname_spec=$lt_libname_spec
15871 # List of archive names. First name is the real one, the rest are links.
15872 # The last name is the one that the linker finds with -lNAME.
15873 library_names_spec=$lt_library_names_spec
15875 # The coded name of the library, if different from the real name.
15876 soname_spec=$lt_soname_spec
15878 # Commands used to build and install an old-style archive.
15879 RANLIB=$lt_RANLIB
15880 old_archive_cmds=$lt_old_archive_cmds_F77
15881 old_postinstall_cmds=$lt_old_postinstall_cmds
15882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15884 # Create an old-style archive from a shared archive.
15885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15887 # Create a temporary old-style archive to link instead of a shared archive.
15888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15890 # Commands used to build and install a shared archive.
15891 archive_cmds=$lt_archive_cmds_F77
15892 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15893 postinstall_cmds=$lt_postinstall_cmds
15894 postuninstall_cmds=$lt_postuninstall_cmds
15896 # Commands used to build a loadable module (assumed same as above if empty)
15897 module_cmds=$lt_module_cmds_F77
15898 module_expsym_cmds=$lt_module_expsym_cmds_F77
15900 # Commands to strip libraries.
15901 old_striplib=$lt_old_striplib
15902 striplib=$lt_striplib
15904 # Dependencies to place before the objects being linked to create a
15905 # shared library.
15906 predep_objects=$lt_predep_objects_F77
15908 # Dependencies to place after the objects being linked to create a
15909 # shared library.
15910 postdep_objects=$lt_postdep_objects_F77
15912 # Dependencies to place before the objects being linked to create a
15913 # shared library.
15914 predeps=$lt_predeps_F77
15916 # Dependencies to place after the objects being linked to create a
15917 # shared library.
15918 postdeps=$lt_postdeps_F77
15920 # The library search path used internally by the compiler when linking
15921 # a shared library.
15922 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15924 # Method to check whether dependent libraries are shared objects.
15925 deplibs_check_method=$lt_deplibs_check_method
15927 # Command to use when deplibs_check_method == file_magic.
15928 file_magic_cmd=$lt_file_magic_cmd
15930 # Flag that allows shared libraries with undefined symbols to be built.
15931 allow_undefined_flag=$lt_allow_undefined_flag_F77
15933 # Flag that forces no undefined symbols.
15934 no_undefined_flag=$lt_no_undefined_flag_F77
15936 # Commands used to finish a libtool library installation in a directory.
15937 finish_cmds=$lt_finish_cmds
15939 # Same as above, but a single script fragment to be evaled but not shown.
15940 finish_eval=$lt_finish_eval
15942 # Take the output of nm and produce a listing of raw symbols and C names.
15943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15945 # Transform the output of nm in a proper C declaration
15946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15948 # Transform the output of nm in a C name address pair
15949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15951 # This is the shared library runtime path variable.
15952 runpath_var=$runpath_var
15954 # This is the shared library path variable.
15955 shlibpath_var=$shlibpath_var
15957 # Is shlibpath searched before the hard-coded library search path?
15958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15960 # How to hardcode a shared library path into an executable.
15961 hardcode_action=$hardcode_action_F77
15963 # Whether we should hardcode library paths into libraries.
15964 hardcode_into_libs=$hardcode_into_libs
15966 # Flag to hardcode \$libdir into a binary during linking.
15967 # This must work even if \$libdir does not exist.
15968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15970 # If ld is used when linking, flag to hardcode \$libdir into
15971 # a binary during linking. This must work even if \$libdir does
15972 # not exist.
15973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15975 # Whether we need a single -rpath flag with a separated argument.
15976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15979 # resulting binary.
15980 hardcode_direct=$hardcode_direct_F77
15982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15983 # resulting binary.
15984 hardcode_minus_L=$hardcode_minus_L_F77
15986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15987 # the resulting binary.
15988 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15990 # Set to yes if building a shared library automatically hardcodes DIR into the library
15991 # and all subsequent libraries and executables linked against it.
15992 hardcode_automatic=$hardcode_automatic_F77
15994 # Variables whose values should be saved in libtool wrapper scripts and
15995 # restored at relink time.
15996 variables_saved_for_relink="$variables_saved_for_relink"
15998 # Whether libtool must link a program against all its dependency libraries.
15999 link_all_deplibs=$link_all_deplibs_F77
16001 # Compile-time system search path for libraries
16002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16004 # Run-time system search path for libraries
16005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16007 # Fix the shell variable \$srcfile for the compiler.
16008 fix_srcfile_path="$fix_srcfile_path_F77"
16010 # Set to yes if exported symbols are required.
16011 always_export_symbols=$always_export_symbols_F77
16013 # The commands to list exported symbols.
16014 export_symbols_cmds=$lt_export_symbols_cmds_F77
16016 # The commands to extract the exported symbol list from a shared archive.
16017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16019 # Symbols that should not be listed in the preloaded symbols.
16020 exclude_expsyms=$lt_exclude_expsyms_F77
16022 # Symbols that must always be exported.
16023 include_expsyms=$lt_include_expsyms_F77
16025 # ### END LIBTOOL TAG CONFIG: $tagname
16027 __EOF__
16030 else
16031 # If there is no Makefile yet, we rely on a make rule to execute
16032 # `config.status --recheck' to rerun these tests and create the
16033 # libtool script then.
16034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16035 if test -f "$ltmain_in"; then
16036 test -f Makefile && make "$ltmain"
16041 ac_ext=c
16042 ac_cpp='$CPP $CPPFLAGS'
16043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047 CC="$lt_save_CC"
16049 else
16050 tagname=""
16054 GCJ)
16055 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16058 # Source file extension for Java test sources.
16059 ac_ext=java
16061 # Object file extension for compiled Java test sources.
16062 objext=o
16063 objext_GCJ=$objext
16065 # Code to be used in simple compile tests
16066 lt_simple_compile_test_code="class foo {}\n"
16068 # Code to be used in simple link tests
16069 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16073 # If no C compiler was specified, use CC.
16074 LTCC=${LTCC-"$CC"}
16076 # If no C compiler flags were specified, use CFLAGS.
16077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16079 # Allow CC to be a program name with arguments.
16080 compiler=$CC
16083 # save warnings/boilerplate of simple test code
16084 ac_outfile=conftest.$ac_objext
16085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16087 _lt_compiler_boilerplate=`cat conftest.err`
16088 $rm conftest*
16090 ac_outfile=conftest.$ac_objext
16091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16093 _lt_linker_boilerplate=`cat conftest.err`
16094 $rm conftest*
16097 # Allow CC to be a program name with arguments.
16098 lt_save_CC="$CC"
16099 CC=${GCJ-"gcj"}
16100 compiler=$CC
16101 compiler_GCJ=$CC
16102 for cc_temp in $compiler""; do
16103 case $cc_temp in
16104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16106 \-*) ;;
16107 *) break;;
16108 esac
16109 done
16110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16113 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16114 archive_cmds_need_lc_GCJ=no
16116 old_archive_cmds_GCJ=$old_archive_cmds
16119 lt_prog_compiler_no_builtin_flag_GCJ=
16121 if test "$GCC" = yes; then
16122 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16125 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16126 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16127 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 lt_cv_prog_compiler_rtti_exceptions=no
16131 ac_outfile=conftest.$ac_objext
16132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16133 lt_compiler_flag="-fno-rtti -fno-exceptions"
16134 # Insert the option either (1) after the last *FLAGS variable, or
16135 # (2) before a word containing "conftest.", or (3) at the end.
16136 # Note that $ac_compile itself does not contain backslashes and begins
16137 # with a dollar sign (not a hyphen), so the echo should work correctly.
16138 # The option is referenced via a variable to avoid confusing sed.
16139 lt_compile=`echo "$ac_compile" | $SED \
16140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16142 -e 's:$: $lt_compiler_flag:'`
16143 (eval echo "\"\$as_me:16143: $lt_compile\"" >&5)
16144 (eval "$lt_compile" 2>conftest.err)
16145 ac_status=$?
16146 cat conftest.err >&5
16147 echo "$as_me:16147: \$? = $ac_status" >&5
16148 if (exit $ac_status) && test -s "$ac_outfile"; then
16149 # The compiler can only warn and ignore the option if not recognized
16150 # So say no if there are warnings other than the usual output.
16151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16154 lt_cv_prog_compiler_rtti_exceptions=yes
16157 $rm conftest*
16160 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16161 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16163 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16164 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16165 else
16171 lt_prog_compiler_wl_GCJ=
16172 lt_prog_compiler_pic_GCJ=
16173 lt_prog_compiler_static_GCJ=
16175 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16178 if test "$GCC" = yes; then
16179 lt_prog_compiler_wl_GCJ='-Wl,'
16180 lt_prog_compiler_static_GCJ='-static'
16182 case $host_os in
16183 aix*)
16184 # All AIX code is PIC.
16185 if test "$host_cpu" = ia64; then
16186 # AIX 5 now supports IA64 processor
16187 lt_prog_compiler_static_GCJ='-Bstatic'
16191 amigaos*)
16192 # FIXME: we need at least 68020 code to build shared libraries, but
16193 # adding the `-m68020' flag to GCC prevents building anything better,
16194 # like `-m68040'.
16195 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16198 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16199 # PIC is the default for these OSes.
16202 mingw* | pw32* | os2*)
16203 # This hack is so that the source file can tell whether it is being
16204 # built for inclusion in a dll (and should export symbols for example).
16205 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16208 darwin* | rhapsody*)
16209 # PIC is the default on this platform
16210 # Common symbols not allowed in MH_DYLIB files
16211 lt_prog_compiler_pic_GCJ='-fno-common'
16214 interix3*)
16215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16216 # Instead, we relocate shared libraries at runtime.
16219 msdosdjgpp*)
16220 # Just because we use GCC doesn't mean we suddenly get shared libraries
16221 # on systems that don't support them.
16222 lt_prog_compiler_can_build_shared_GCJ=no
16223 enable_shared=no
16226 sysv4*MP*)
16227 if test -d /usr/nec; then
16228 lt_prog_compiler_pic_GCJ=-Kconform_pic
16232 hpux*)
16233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16234 # not for PA HP-UX.
16235 case $host_cpu in
16236 hppa*64*|ia64*)
16237 # +Z the default
16240 lt_prog_compiler_pic_GCJ='-fPIC'
16242 esac
16246 lt_prog_compiler_pic_GCJ='-fPIC'
16248 esac
16249 else
16250 # PORTME Check for flag to pass linker flags through the system compiler.
16251 case $host_os in
16252 aix*)
16253 lt_prog_compiler_wl_GCJ='-Wl,'
16254 if test "$host_cpu" = ia64; then
16255 # AIX 5 now supports IA64 processor
16256 lt_prog_compiler_static_GCJ='-Bstatic'
16257 else
16258 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16261 darwin*)
16262 # PIC is the default on this platform
16263 # Common symbols not allowed in MH_DYLIB files
16264 case $cc_basename in
16265 xlc*)
16266 lt_prog_compiler_pic_GCJ='-qnocommon'
16267 lt_prog_compiler_wl_GCJ='-Wl,'
16269 esac
16272 mingw* | pw32* | os2*)
16273 # This hack is so that the source file can tell whether it is being
16274 # built for inclusion in a dll (and should export symbols for example).
16275 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16278 hpux9* | hpux10* | hpux11*)
16279 lt_prog_compiler_wl_GCJ='-Wl,'
16280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16281 # not for PA HP-UX.
16282 case $host_cpu in
16283 hppa*64*|ia64*)
16284 # +Z the default
16287 lt_prog_compiler_pic_GCJ='+Z'
16289 esac
16290 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16291 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16294 irix5* | irix6* | nonstopux*)
16295 lt_prog_compiler_wl_GCJ='-Wl,'
16296 # PIC (with -KPIC) is the default.
16297 lt_prog_compiler_static_GCJ='-non_shared'
16300 newsos6)
16301 lt_prog_compiler_pic_GCJ='-KPIC'
16302 lt_prog_compiler_static_GCJ='-Bstatic'
16305 linux* | k*bsd*-gnu)
16306 case $cc_basename in
16307 icc* | ecc*)
16308 lt_prog_compiler_wl_GCJ='-Wl,'
16309 lt_prog_compiler_pic_GCJ='-KPIC'
16310 lt_prog_compiler_static_GCJ='-static'
16312 pgcc* | pgf77* | pgf90* | pgf95*)
16313 # Portland Group compilers (*not* the Pentium gcc compiler,
16314 # which looks to be a dead project)
16315 lt_prog_compiler_wl_GCJ='-Wl,'
16316 lt_prog_compiler_pic_GCJ='-fpic'
16317 lt_prog_compiler_static_GCJ='-Bstatic'
16319 ccc*)
16320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 # All Alpha code is PIC.
16322 lt_prog_compiler_static_GCJ='-non_shared'
16324 esac
16327 osf3* | osf4* | osf5*)
16328 lt_prog_compiler_wl_GCJ='-Wl,'
16329 # All OSF/1 code is PIC.
16330 lt_prog_compiler_static_GCJ='-non_shared'
16333 solaris*)
16334 lt_prog_compiler_pic_GCJ='-KPIC'
16335 lt_prog_compiler_static_GCJ='-Bstatic'
16336 case $cc_basename in
16337 f77* | f90* | f95*)
16338 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16340 lt_prog_compiler_wl_GCJ='-Wl,';;
16341 esac
16344 sunos4*)
16345 lt_prog_compiler_wl_GCJ='-Qoption ld '
16346 lt_prog_compiler_pic_GCJ='-PIC'
16347 lt_prog_compiler_static_GCJ='-Bstatic'
16350 sysv4 | sysv4.2uw2* | sysv4.3*)
16351 lt_prog_compiler_wl_GCJ='-Wl,'
16352 lt_prog_compiler_pic_GCJ='-KPIC'
16353 lt_prog_compiler_static_GCJ='-Bstatic'
16356 sysv4*MP*)
16357 if test -d /usr/nec ;then
16358 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16364 lt_prog_compiler_wl_GCJ='-Wl,'
16365 lt_prog_compiler_pic_GCJ='-KPIC'
16366 lt_prog_compiler_static_GCJ='-Bstatic'
16369 unicos*)
16370 lt_prog_compiler_wl_GCJ='-Wl,'
16371 lt_prog_compiler_can_build_shared_GCJ=no
16374 uts4*)
16375 lt_prog_compiler_pic_GCJ='-pic'
16376 lt_prog_compiler_static_GCJ='-Bstatic'
16380 lt_prog_compiler_can_build_shared_GCJ=no
16382 esac
16385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16386 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16389 # Check to make sure the PIC flag actually works.
16391 if test -n "$lt_prog_compiler_pic_GCJ"; then
16393 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16394 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16395 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398 lt_prog_compiler_pic_works_GCJ=no
16399 ac_outfile=conftest.$ac_objext
16400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16401 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16402 # Insert the option either (1) after the last *FLAGS variable, or
16403 # (2) before a word containing "conftest.", or (3) at the end.
16404 # Note that $ac_compile itself does not contain backslashes and begins
16405 # with a dollar sign (not a hyphen), so the echo should work correctly.
16406 # The option is referenced via a variable to avoid confusing sed.
16407 lt_compile=`echo "$ac_compile" | $SED \
16408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16410 -e 's:$: $lt_compiler_flag:'`
16411 (eval echo "\"\$as_me:16411: $lt_compile\"" >&5)
16412 (eval "$lt_compile" 2>conftest.err)
16413 ac_status=$?
16414 cat conftest.err >&5
16415 echo "$as_me:16415: \$? = $ac_status" >&5
16416 if (exit $ac_status) && test -s "$ac_outfile"; then
16417 # The compiler can only warn and ignore the option if not recognized
16418 # So say no if there are warnings other than the usual output.
16419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16422 lt_prog_compiler_pic_works_GCJ=yes
16425 $rm conftest*
16428 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16429 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16431 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16432 case $lt_prog_compiler_pic_GCJ in
16433 "" | " "*) ;;
16434 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16435 esac
16436 else
16437 lt_prog_compiler_pic_GCJ=
16438 lt_prog_compiler_can_build_shared_GCJ=no
16442 case $host_os in
16443 # For platforms which do not support PIC, -DPIC is meaningless:
16444 *djgpp*)
16445 lt_prog_compiler_pic_GCJ=
16448 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16450 esac
16453 # Check to make sure the static flag actually works.
16455 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16456 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16457 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16458 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 else
16461 lt_prog_compiler_static_works_GCJ=no
16462 save_LDFLAGS="$LDFLAGS"
16463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16464 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16466 # The linker can only warn and ignore the option if not recognized
16467 # So say no if there are warnings
16468 if test -s conftest.err; then
16469 # Append any errors to the config.log.
16470 cat conftest.err 1>&5
16471 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16473 if diff conftest.exp conftest.er2 >/dev/null; then
16474 lt_prog_compiler_static_works_GCJ=yes
16476 else
16477 lt_prog_compiler_static_works_GCJ=yes
16480 $rm conftest*
16481 LDFLAGS="$save_LDFLAGS"
16484 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16485 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16487 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16489 else
16490 lt_prog_compiler_static_GCJ=
16494 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16495 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16496 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 lt_cv_prog_compiler_c_o_GCJ=no
16500 $rm -r conftest 2>/dev/null
16501 mkdir conftest
16502 cd conftest
16503 mkdir out
16504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16506 lt_compiler_flag="-o out/conftest2.$ac_objext"
16507 # Insert the option either (1) after the last *FLAGS variable, or
16508 # (2) before a word containing "conftest.", or (3) at the end.
16509 # Note that $ac_compile itself does not contain backslashes and begins
16510 # with a dollar sign (not a hyphen), so the echo should work correctly.
16511 lt_compile=`echo "$ac_compile" | $SED \
16512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16514 -e 's:$: $lt_compiler_flag:'`
16515 (eval echo "\"\$as_me:16515: $lt_compile\"" >&5)
16516 (eval "$lt_compile" 2>out/conftest.err)
16517 ac_status=$?
16518 cat out/conftest.err >&5
16519 echo "$as_me:16519: \$? = $ac_status" >&5
16520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16521 then
16522 # The compiler can only warn and ignore the option if not recognized
16523 # So say no if there are warnings
16524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16527 lt_cv_prog_compiler_c_o_GCJ=yes
16530 chmod u+w . 2>&5
16531 $rm conftest*
16532 # SGI C++ compiler will create directory out/ii_files/ for
16533 # template instantiation
16534 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16535 $rm out/* && rmdir out
16536 cd ..
16537 rmdir conftest
16538 $rm conftest*
16541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16542 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16545 hard_links="nottested"
16546 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16547 # do not overwrite the value of need_locks provided by the user
16548 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16549 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16550 hard_links=yes
16551 $rm conftest*
16552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16553 touch conftest.a
16554 ln conftest.a conftest.b 2>&5 || hard_links=no
16555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16556 { echo "$as_me:$LINENO: result: $hard_links" >&5
16557 echo "${ECHO_T}$hard_links" >&6; }
16558 if test "$hard_links" = no; then
16559 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16560 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16561 need_locks=warn
16563 else
16564 need_locks=no
16567 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16568 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16570 runpath_var=
16571 allow_undefined_flag_GCJ=
16572 enable_shared_with_static_runtimes_GCJ=no
16573 archive_cmds_GCJ=
16574 archive_expsym_cmds_GCJ=
16575 old_archive_From_new_cmds_GCJ=
16576 old_archive_from_expsyms_cmds_GCJ=
16577 export_dynamic_flag_spec_GCJ=
16578 whole_archive_flag_spec_GCJ=
16579 thread_safe_flag_spec_GCJ=
16580 hardcode_libdir_flag_spec_GCJ=
16581 hardcode_libdir_flag_spec_ld_GCJ=
16582 hardcode_libdir_separator_GCJ=
16583 hardcode_direct_GCJ=no
16584 hardcode_minus_L_GCJ=no
16585 hardcode_shlibpath_var_GCJ=unsupported
16586 link_all_deplibs_GCJ=unknown
16587 hardcode_automatic_GCJ=no
16588 module_cmds_GCJ=
16589 module_expsym_cmds_GCJ=
16590 always_export_symbols_GCJ=no
16591 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16592 # include_expsyms should be a list of space-separated symbols to be *always*
16593 # included in the symbol list
16594 include_expsyms_GCJ=
16595 # exclude_expsyms can be an extended regexp of symbols to exclude
16596 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16597 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16598 # as well as any symbol that contains `d'.
16599 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16601 # platforms (ab)use it in PIC code, but their linkers get confused if
16602 # the symbol is explicitly referenced. Since portable code cannot
16603 # rely on this symbol name, it's probably fine to never include it in
16604 # preloaded symbol tables.
16605 extract_expsyms_cmds=
16606 # Just being paranoid about ensuring that cc_basename is set.
16607 for cc_temp in $compiler""; do
16608 case $cc_temp in
16609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16611 \-*) ;;
16612 *) break;;
16613 esac
16614 done
16615 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16617 case $host_os in
16618 cygwin* | mingw* | pw32*)
16619 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16620 # When not using gcc, we currently assume that we are using
16621 # Microsoft Visual C++.
16622 if test "$GCC" != yes; then
16623 with_gnu_ld=no
16626 interix*)
16627 # we just hope/assume this is gcc and not c89 (= MSVC++)
16628 with_gnu_ld=yes
16630 openbsd*)
16631 with_gnu_ld=no
16633 esac
16635 ld_shlibs_GCJ=yes
16636 if test "$with_gnu_ld" = yes; then
16637 # If archive_cmds runs LD, not CC, wlarc should be empty
16638 wlarc='${wl}'
16640 # Set some defaults for GNU ld with shared library support. These
16641 # are reset later if shared libraries are not supported. Putting them
16642 # here allows them to be overridden if necessary.
16643 runpath_var=LD_RUN_PATH
16644 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16645 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16646 # ancient GNU ld didn't support --whole-archive et. al.
16647 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16648 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16649 else
16650 whole_archive_flag_spec_GCJ=
16652 supports_anon_versioning=no
16653 case `$LD -v 2>/dev/null` in
16654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16657 *\ 2.11.*) ;; # other 2.11 versions
16658 *) supports_anon_versioning=yes ;;
16659 esac
16661 # See if GNU ld supports shared libraries.
16662 case $host_os in
16663 aix3* | aix4* | aix5*)
16664 # On AIX/PPC, the GNU linker is very broken
16665 if test "$host_cpu" != ia64; then
16666 ld_shlibs_GCJ=no
16667 cat <<EOF 1>&2
16669 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16670 *** to be unable to reliably create shared libraries on AIX.
16671 *** Therefore, libtool is disabling shared libraries support. If you
16672 *** really care for shared libraries, you may want to modify your PATH
16673 *** so that a non-GNU linker is found, and then restart.
16679 amigaos*)
16680 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)'
16681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16682 hardcode_minus_L_GCJ=yes
16684 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16685 # that the semantics of dynamic libraries on AmigaOS, at least up
16686 # to version 4, is to share data among multiple programs linked
16687 # with the same dynamic library. Since this doesn't match the
16688 # behavior of shared libraries on other platforms, we can't use
16689 # them.
16690 ld_shlibs_GCJ=no
16693 beos*)
16694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16695 allow_undefined_flag_GCJ=unsupported
16696 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16697 # support --undefined. This deserves some investigation. FIXME
16698 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16699 else
16700 ld_shlibs_GCJ=no
16704 cygwin* | mingw* | pw32*)
16705 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16706 # as there is no search path for DLLs.
16707 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16708 allow_undefined_flag_GCJ=unsupported
16709 always_export_symbols_GCJ=no
16710 enable_shared_with_static_runtimes_GCJ=yes
16711 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16713 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16714 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16715 # If the export-symbols file already is a .def file (1st line
16716 # is EXPORTS), use it as is; otherwise, prepend...
16717 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16718 cp $export_symbols $output_objdir/$soname.def;
16719 else
16720 echo EXPORTS > $output_objdir/$soname.def;
16721 cat $export_symbols >> $output_objdir/$soname.def;
16723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16724 else
16725 ld_shlibs_GCJ=no
16729 interix3*)
16730 hardcode_direct_GCJ=no
16731 hardcode_shlibpath_var_GCJ=no
16732 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16733 export_dynamic_flag_spec_GCJ='${wl}-E'
16734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16735 # Instead, shared libraries are loaded at an image base (0x10000000 by
16736 # default) and relocated if they conflict, which is a slow very memory
16737 # consuming and fragmenting process. To avoid this, we pick a random,
16738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16740 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'
16741 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'
16744 linux* | k*bsd*-gnu)
16745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16746 tmp_addflag=
16747 case $cc_basename,$host_cpu in
16748 pgcc*) # Portland Group C compiler
16749 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'
16750 tmp_addflag=' $pic_flag'
16752 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16753 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'
16754 tmp_addflag=' $pic_flag -Mnomain' ;;
16755 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16756 tmp_addflag=' -i_dynamic' ;;
16757 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16758 tmp_addflag=' -i_dynamic -nofor_main' ;;
16759 ifc* | ifort*) # Intel Fortran compiler
16760 tmp_addflag=' -nofor_main' ;;
16761 esac
16762 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16764 if test $supports_anon_versioning = yes; then
16765 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16767 $echo "local: *; };" >> $output_objdir/$libname.ver~
16768 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16770 link_all_deplibs_GCJ=no
16771 else
16772 ld_shlibs_GCJ=no
16776 netbsd* | netbsdelf*-gnu)
16777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16778 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16779 wlarc=
16780 else
16781 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16782 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16786 solaris*)
16787 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16788 ld_shlibs_GCJ=no
16789 cat <<EOF 1>&2
16791 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16792 *** create shared libraries on Solaris systems. Therefore, libtool
16793 *** is disabling shared libraries support. We urge you to upgrade GNU
16794 *** binutils to release 2.9.1 or newer. Another option is to modify
16795 *** your PATH or compiler configuration so that the native linker is
16796 *** used, and then restart.
16799 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16800 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16801 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16802 else
16803 ld_shlibs_GCJ=no
16807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16808 case `$LD -v 2>&1` in
16809 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16810 ld_shlibs_GCJ=no
16811 cat <<_LT_EOF 1>&2
16813 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16814 *** reliably create shared libraries on SCO systems. Therefore, libtool
16815 *** is disabling shared libraries support. We urge you to upgrade GNU
16816 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16817 *** your PATH or compiler configuration so that the native linker is
16818 *** used, and then restart.
16820 _LT_EOF
16823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16827 else
16828 ld_shlibs_GCJ=no
16831 esac
16834 sunos4*)
16835 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16836 wlarc=
16837 hardcode_direct_GCJ=yes
16838 hardcode_shlibpath_var_GCJ=no
16842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16845 else
16846 ld_shlibs_GCJ=no
16849 esac
16851 if test "$ld_shlibs_GCJ" = no; then
16852 runpath_var=
16853 hardcode_libdir_flag_spec_GCJ=
16854 export_dynamic_flag_spec_GCJ=
16855 whole_archive_flag_spec_GCJ=
16857 else
16858 # PORTME fill in a description of your system's linker (not GNU ld)
16859 case $host_os in
16860 aix3*)
16861 allow_undefined_flag_GCJ=unsupported
16862 always_export_symbols_GCJ=yes
16863 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'
16864 # Note: this linker hardcodes the directories in LIBPATH if there
16865 # are no directories specified by -L.
16866 hardcode_minus_L_GCJ=yes
16867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16868 # Neither direct hardcoding nor static linking is supported with a
16869 # broken collect2.
16870 hardcode_direct_GCJ=unsupported
16874 aix4* | aix5*)
16875 if test "$host_cpu" = ia64; then
16876 # On IA64, the linker does run time linking by default, so we don't
16877 # have to do anything special.
16878 aix_use_runtimelinking=no
16879 exp_sym_flag='-Bexport'
16880 no_entry_flag=""
16881 else
16882 # If we're using GNU nm, then we don't want the "-C" option.
16883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16885 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'
16886 else
16887 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'
16889 aix_use_runtimelinking=no
16891 # Test if we are trying to use run time linking or normal
16892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16893 # need to do runtime linking.
16894 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16895 for ld_flag in $LDFLAGS; do
16896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16897 aix_use_runtimelinking=yes
16898 break
16900 done
16902 esac
16904 exp_sym_flag='-bexport'
16905 no_entry_flag='-bnoentry'
16908 # When large executables or shared objects are built, AIX ld can
16909 # have problems creating the table of contents. If linking a library
16910 # or program results in "error TOC overflow" add -mminimal-toc to
16911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16914 archive_cmds_GCJ=''
16915 hardcode_direct_GCJ=yes
16916 hardcode_libdir_separator_GCJ=':'
16917 link_all_deplibs_GCJ=yes
16919 if test "$GCC" = yes; then
16920 case $host_os in aix4.[012]|aix4.[012].*)
16921 # We only want to do this on AIX 4.2 and lower, the check
16922 # below for broken collect2 doesn't work under 4.3+
16923 collect2name=`${CC} -print-prog-name=collect2`
16924 if test -f "$collect2name" && \
16925 strings "$collect2name" | grep resolve_lib_name >/dev/null
16926 then
16927 # We have reworked collect2
16928 hardcode_direct_GCJ=yes
16929 else
16930 # We have old collect2
16931 hardcode_direct_GCJ=unsupported
16932 # It fails to find uninstalled libraries when the uninstalled
16933 # path is not listed in the libpath. Setting hardcode_minus_L
16934 # to unsupported forces relinking
16935 hardcode_minus_L_GCJ=yes
16936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16937 hardcode_libdir_separator_GCJ=
16940 esac
16941 shared_flag='-shared'
16942 if test "$aix_use_runtimelinking" = yes; then
16943 shared_flag="$shared_flag "'${wl}-G'
16945 else
16946 # not using gcc
16947 if test "$host_cpu" = ia64; then
16948 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16949 # chokes on -Wl,-G. The following line is correct:
16950 shared_flag='-G'
16951 else
16952 if test "$aix_use_runtimelinking" = yes; then
16953 shared_flag='${wl}-G'
16954 else
16955 shared_flag='${wl}-bM:SRE'
16960 # It seems that -bexpall does not export symbols beginning with
16961 # underscore (_), so it is better to generate a list of symbols to export.
16962 always_export_symbols_GCJ=yes
16963 if test "$aix_use_runtimelinking" = yes; then
16964 # Warning - without using the other runtime loading flags (-brtl),
16965 # -berok will link without error, but may produce a broken library.
16966 allow_undefined_flag_GCJ='-berok'
16967 # Determine the default libpath from the value encoded in an empty executable.
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16976 main ()
16980 return 0;
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (ac_try="$ac_link"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_link") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest$ac_exeext &&
17000 $as_test_x conftest$ac_exeext; then
17002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17004 # Check for a 64-bit object if we didn't find anything.
17005 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17006 }'`; fi
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17018 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17019 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"
17020 else
17021 if test "$host_cpu" = ia64; then
17022 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17023 allow_undefined_flag_GCJ="-z nodefs"
17024 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"
17025 else
17026 # Determine the default libpath from the value encoded in an empty executable.
17027 cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h. */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17035 main ()
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && {
17056 test -z "$ac_c_werror_flag" ||
17057 test ! -s conftest.err
17058 } && test -s conftest$ac_exeext &&
17059 $as_test_x conftest$ac_exeext; then
17061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17063 # Check for a 64-bit object if we didn't find anything.
17064 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17065 }'`; fi
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17077 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17078 # Warning - without using the other run time loading flags,
17079 # -berok will link without error, but may produce a broken library.
17080 no_undefined_flag_GCJ=' ${wl}-bernotok'
17081 allow_undefined_flag_GCJ=' ${wl}-berok'
17082 # Exported symbols can be pulled into shared objects from archives
17083 whole_archive_flag_spec_GCJ='$convenience'
17084 archive_cmds_need_lc_GCJ=yes
17085 # This is similar to how AIX traditionally builds its shared libraries.
17086 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'
17091 amigaos*)
17092 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)'
17093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17094 hardcode_minus_L_GCJ=yes
17095 # see comment about different semantics on the GNU ld section
17096 ld_shlibs_GCJ=no
17099 bsdi[45]*)
17100 export_dynamic_flag_spec_GCJ=-rdynamic
17103 cygwin* | mingw* | pw32*)
17104 # When not using gcc, we currently assume that we are using
17105 # Microsoft Visual C++.
17106 # hardcode_libdir_flag_spec is actually meaningless, as there is
17107 # no search path for DLLs.
17108 hardcode_libdir_flag_spec_GCJ=' '
17109 allow_undefined_flag_GCJ=unsupported
17110 # Tell ltmain to make .lib files, not .a files.
17111 libext=lib
17112 # Tell ltmain to make .dll files, not .so files.
17113 shrext_cmds=".dll"
17114 # FIXME: Setting linknames here is a bad hack.
17115 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17116 # The linker will automatically build a .lib file if we build a DLL.
17117 old_archive_From_new_cmds_GCJ='true'
17118 # FIXME: Should let the user specify the lib program.
17119 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17120 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17121 enable_shared_with_static_runtimes_GCJ=yes
17124 darwin* | rhapsody*)
17125 case $host_os in
17126 rhapsody* | darwin1.[012])
17127 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17129 *) # Darwin 1.3 on
17130 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17131 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17132 else
17133 case ${MACOSX_DEPLOYMENT_TARGET} in
17134 10.[012])
17135 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17137 10.*)
17138 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17140 esac
17143 esac
17144 archive_cmds_need_lc_GCJ=no
17145 hardcode_direct_GCJ=no
17146 hardcode_automatic_GCJ=yes
17147 hardcode_shlibpath_var_GCJ=unsupported
17148 whole_archive_flag_spec_GCJ=''
17149 link_all_deplibs_GCJ=yes
17150 if test "$GCC" = yes ; then
17151 output_verbose_link_cmd='echo'
17152 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17153 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17155 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17156 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}'
17157 else
17158 case $cc_basename in
17159 xlc*)
17160 output_verbose_link_cmd='echo'
17161 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17162 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17164 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17165 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}'
17168 ld_shlibs_GCJ=no
17170 esac
17174 dgux*)
17175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177 hardcode_shlibpath_var_GCJ=no
17180 freebsd1*)
17181 ld_shlibs_GCJ=no
17184 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17185 # support. Future versions do this automatically, but an explicit c++rt0.o
17186 # does not break anything, and helps significantly (at the cost of a little
17187 # extra space).
17188 freebsd2.2*)
17189 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17190 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17191 hardcode_direct_GCJ=yes
17192 hardcode_shlibpath_var_GCJ=no
17195 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17196 freebsd2*)
17197 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17198 hardcode_direct_GCJ=yes
17199 hardcode_minus_L_GCJ=yes
17200 hardcode_shlibpath_var_GCJ=no
17203 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17204 freebsd* | dragonfly*)
17205 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17206 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17207 hardcode_direct_GCJ=yes
17208 hardcode_shlibpath_var_GCJ=no
17211 hpux9*)
17212 if test "$GCC" = yes; then
17213 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'
17214 else
17215 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'
17217 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17218 hardcode_libdir_separator_GCJ=:
17219 hardcode_direct_GCJ=yes
17221 # hardcode_minus_L: Not really in the search PATH,
17222 # but as the default location of the library.
17223 hardcode_minus_L_GCJ=yes
17224 export_dynamic_flag_spec_GCJ='${wl}-E'
17227 hpux10*)
17228 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17229 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17230 else
17231 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17233 if test "$with_gnu_ld" = no; then
17234 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17235 hardcode_libdir_separator_GCJ=:
17237 hardcode_direct_GCJ=yes
17238 export_dynamic_flag_spec_GCJ='${wl}-E'
17240 # hardcode_minus_L: Not really in the search PATH,
17241 # but as the default location of the library.
17242 hardcode_minus_L_GCJ=yes
17246 hpux11*)
17247 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17248 case $host_cpu in
17249 hppa*64*)
17250 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17252 ia64*)
17253 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17256 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17258 esac
17259 else
17260 case $host_cpu in
17261 hppa*64*)
17262 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17264 ia64*)
17265 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17268 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17270 esac
17272 if test "$with_gnu_ld" = no; then
17273 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17274 hardcode_libdir_separator_GCJ=:
17276 case $host_cpu in
17277 hppa*64*|ia64*)
17278 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17279 hardcode_direct_GCJ=no
17280 hardcode_shlibpath_var_GCJ=no
17283 hardcode_direct_GCJ=yes
17284 export_dynamic_flag_spec_GCJ='${wl}-E'
17286 # hardcode_minus_L: Not really in the search PATH,
17287 # but as the default location of the library.
17288 hardcode_minus_L_GCJ=yes
17290 esac
17294 irix5* | irix6* | nonstopux*)
17295 if test "$GCC" = yes; then
17296 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'
17297 else
17298 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'
17299 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17302 hardcode_libdir_separator_GCJ=:
17303 link_all_deplibs_GCJ=yes
17306 netbsd* | netbsdelf*-gnu)
17307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17308 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17309 else
17310 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17312 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17313 hardcode_direct_GCJ=yes
17314 hardcode_shlibpath_var_GCJ=no
17317 newsos6)
17318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 hardcode_direct_GCJ=yes
17320 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17321 hardcode_libdir_separator_GCJ=:
17322 hardcode_shlibpath_var_GCJ=no
17325 openbsd*)
17326 hardcode_direct_GCJ=yes
17327 hardcode_shlibpath_var_GCJ=no
17328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17332 export_dynamic_flag_spec_GCJ='${wl}-E'
17333 else
17334 case $host_os in
17335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17336 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17337 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17340 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17341 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343 esac
17347 os2*)
17348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17349 hardcode_minus_L_GCJ=yes
17350 allow_undefined_flag_GCJ=unsupported
17351 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'
17352 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17355 osf3*)
17356 if test "$GCC" = yes; then
17357 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17358 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'
17359 else
17360 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17361 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'
17363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17364 hardcode_libdir_separator_GCJ=:
17367 osf4* | osf5*) # as osf3* with the addition of -msym flag
17368 if test "$GCC" = yes; then
17369 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17370 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'
17371 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17372 else
17373 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17374 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'
17375 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~
17376 $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'
17378 # Both c and cxx compiler support -rpath directly
17379 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17381 hardcode_libdir_separator_GCJ=:
17384 solaris*)
17385 no_undefined_flag_GCJ=' -z text'
17386 if test "$GCC" = yes; then
17387 wlarc='${wl}'
17388 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17389 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17390 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17391 else
17392 wlarc=''
17393 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17397 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17398 hardcode_shlibpath_var_GCJ=no
17399 case $host_os in
17400 solaris2.[0-5] | solaris2.[0-5].*) ;;
17402 # The compiler driver will combine linker options so we
17403 # cannot just pass the convience library names through
17404 # without $wl, iff we do not link with $LD.
17405 # Luckily, gcc supports the same syntax we need for Sun Studio.
17406 # Supported since Solaris 2.6 (maybe 2.5.1?)
17407 case $wlarc in
17409 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17411 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17412 esac ;;
17413 esac
17414 link_all_deplibs_GCJ=yes
17417 sunos4*)
17418 if test "x$host_vendor" = xsequent; then
17419 # Use $CC to link under sequent, because it throws in some extra .o
17420 # files that make .init and .fini sections work.
17421 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17422 else
17423 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17426 hardcode_direct_GCJ=yes
17427 hardcode_minus_L_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=no
17431 sysv4)
17432 case $host_vendor in
17433 sni)
17434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17435 hardcode_direct_GCJ=yes # is this really true???
17437 siemens)
17438 ## LD is ld it makes a PLAMLIB
17439 ## CC just makes a GrossModule.
17440 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17441 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17442 hardcode_direct_GCJ=no
17444 motorola)
17445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17448 esac
17449 runpath_var='LD_RUN_PATH'
17450 hardcode_shlibpath_var_GCJ=no
17453 sysv4.3*)
17454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_shlibpath_var_GCJ=no
17456 export_dynamic_flag_spec_GCJ='-Bexport'
17459 sysv4*MP*)
17460 if test -d /usr/nec; then
17461 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17462 hardcode_shlibpath_var_GCJ=no
17463 runpath_var=LD_RUN_PATH
17464 hardcode_runpath_var=yes
17465 ld_shlibs_GCJ=yes
17469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17470 no_undefined_flag_GCJ='${wl}-z,text'
17471 archive_cmds_need_lc_GCJ=no
17472 hardcode_shlibpath_var_GCJ=no
17473 runpath_var='LD_RUN_PATH'
17475 if test "$GCC" = yes; then
17476 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17477 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 else
17479 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17484 sysv5* | sco3.2v5* | sco5v6*)
17485 # Note: We can NOT use -z defs as we might desire, because we do not
17486 # link with -lc, and that would cause any symbols used from libc to
17487 # always be unresolved, which means just about no library would
17488 # ever link correctly. If we're not using GNU ld we use -z text
17489 # though, which does catch some bad symbols but isn't as heavy-handed
17490 # as -z defs.
17491 no_undefined_flag_GCJ='${wl}-z,text'
17492 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17493 archive_cmds_need_lc_GCJ=no
17494 hardcode_shlibpath_var_GCJ=no
17495 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17496 hardcode_libdir_separator_GCJ=':'
17497 link_all_deplibs_GCJ=yes
17498 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17499 runpath_var='LD_RUN_PATH'
17501 if test "$GCC" = yes; then
17502 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 else
17505 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17506 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17510 uts4*)
17511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513 hardcode_shlibpath_var_GCJ=no
17517 ld_shlibs_GCJ=no
17519 esac
17522 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17523 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17524 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17527 # Do we need to explicitly link libc?
17529 case "x$archive_cmds_need_lc_GCJ" in
17530 x|xyes)
17531 # Assume -lc should be added
17532 archive_cmds_need_lc_GCJ=yes
17534 if test "$enable_shared" = yes && test "$GCC" = yes; then
17535 case $archive_cmds_GCJ in
17536 *'~'*)
17537 # FIXME: we may have to deal with multi-command sequences.
17539 '$CC '*)
17540 # Test whether the compiler implicitly links with -lc since on some
17541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17542 # to ld, don't add -lc before -lgcc.
17543 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17545 $rm conftest*
17546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17549 (eval $ac_compile) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); } 2>conftest.err; then
17553 soname=conftest
17554 lib=conftest
17555 libobjs=conftest.$ac_objext
17556 deplibs=
17557 wl=$lt_prog_compiler_wl_GCJ
17558 pic_flag=$lt_prog_compiler_pic_GCJ
17559 compiler_flags=-v
17560 linker_flags=-v
17561 verstring=
17562 output_objdir=.
17563 libname=conftest
17564 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17565 allow_undefined_flag_GCJ=
17566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17567 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }
17571 then
17572 archive_cmds_need_lc_GCJ=no
17573 else
17574 archive_cmds_need_lc_GCJ=yes
17576 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17577 else
17578 cat conftest.err 1>&5
17580 $rm conftest*
17581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17582 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17584 esac
17587 esac
17589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17591 library_names_spec=
17592 libname_spec='lib$name'
17593 soname_spec=
17594 shrext_cmds=".so"
17595 postinstall_cmds=
17596 postuninstall_cmds=
17597 finish_cmds=
17598 finish_eval=
17599 shlibpath_var=
17600 shlibpath_overrides_runpath=unknown
17601 version_type=none
17602 dynamic_linker="$host_os ld.so"
17603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17604 if test "$GCC" = yes; then
17605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17607 # if the path contains ";" then we assume it to be the separator
17608 # otherwise default to the standard path separator (i.e. ":") - it is
17609 # assumed that no part of a normal pathname contains ";" but that should
17610 # okay in the real world where ";" in dirpaths is itself problematic.
17611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17612 else
17613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17615 else
17616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17618 need_lib_prefix=unknown
17619 hardcode_into_libs=no
17621 # when you set need_version to no, make sure it does not cause -set_version
17622 # flags to be left without arguments
17623 need_version=unknown
17625 case $host_os in
17626 aix3*)
17627 version_type=linux
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17629 shlibpath_var=LIBPATH
17631 # AIX 3 has no versioning support, so we append a major version to the name.
17632 soname_spec='${libname}${release}${shared_ext}$major'
17635 aix4* | aix5*)
17636 version_type=linux
17637 need_lib_prefix=no
17638 need_version=no
17639 hardcode_into_libs=yes
17640 if test "$host_cpu" = ia64; then
17641 # AIX 5 supports IA64
17642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 else
17645 # With GCC up to 2.95.x, collect2 would create an import file
17646 # for dependence libraries. The import file would start with
17647 # the line `#! .'. This would cause the generated library to
17648 # depend on `.', always an invalid library. This was fixed in
17649 # development snapshots of GCC prior to 3.0.
17650 case $host_os in
17651 aix4 | aix4.[01] | aix4.[01].*)
17652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17653 echo ' yes '
17654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17656 else
17657 can_build_shared=no
17660 esac
17661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17662 # soname into executable. Probably we can add versioning support to
17663 # collect2, so additional links can be useful in future.
17664 if test "$aix_use_runtimelinking" = yes; then
17665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17666 # instead of lib<name>.a to let people know that these are not
17667 # typical AIX shared libraries.
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 else
17670 # We preserve .a as extension for shared libraries through AIX4.2
17671 # and later when we are not doing run time linking.
17672 library_names_spec='${libname}${release}.a $libname.a'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17675 shlibpath_var=LIBPATH
17679 amigaos*)
17680 library_names_spec='$libname.ixlibrary $libname.a'
17681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17682 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'
17685 beos*)
17686 library_names_spec='${libname}${shared_ext}'
17687 dynamic_linker="$host_os ld.so"
17688 shlibpath_var=LIBRARY_PATH
17691 bsdi[45]*)
17692 version_type=linux
17693 need_version=no
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17695 soname_spec='${libname}${release}${shared_ext}$major'
17696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17700 # the default ld.so.conf also contains /usr/contrib/lib and
17701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17702 # libtool to hard-code these into programs
17705 cygwin* | mingw* | pw32*)
17706 version_type=windows
17707 shrext_cmds=".dll"
17708 need_version=no
17709 need_lib_prefix=no
17711 case $GCC,$host_os in
17712 yes,cygwin* | yes,mingw* | yes,pw32*)
17713 library_names_spec='$libname.dll.a'
17714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17715 postinstall_cmds='base_file=`basename \${file}`~
17716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17717 dldir=$destdir/`dirname \$dlpath`~
17718 test -d \$dldir || mkdir -p \$dldir~
17719 $install_prog $dir/$dlname \$dldir/$dlname~
17720 chmod a+x \$dldir/$dlname'
17721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17722 dlpath=$dir/\$dldll~
17723 $rm \$dlpath'
17724 shlibpath_overrides_runpath=yes
17726 case $host_os in
17727 cygwin*)
17728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17729 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17732 mingw*)
17733 # MinGW DLLs use traditional 'lib' prefix
17734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17737 # It is most probably a Windows format PATH printed by
17738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17739 # path with ; separators, and with drive letters. We can handle the
17740 # drive letters (cygwin fileutils understands them), so leave them,
17741 # especially as we might pass files found there to a mingw objdump,
17742 # which wouldn't understand a cygwinified path. Ahh.
17743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17744 else
17745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17748 pw32*)
17749 # pw32 DLLs use 'pw' prefix rather than 'lib'
17750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17752 esac
17756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17758 esac
17759 dynamic_linker='Win32 ld.exe'
17760 # FIXME: first we should search . and the directory the executable is in
17761 shlibpath_var=PATH
17764 darwin* | rhapsody*)
17765 dynamic_linker="$host_os dyld"
17766 version_type=darwin
17767 need_lib_prefix=no
17768 need_version=no
17769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17770 soname_spec='${libname}${release}${major}$shared_ext'
17771 shlibpath_overrides_runpath=yes
17772 shlibpath_var=DYLD_LIBRARY_PATH
17773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17775 if test "$GCC" = yes; then
17776 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17777 else
17778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17783 dgux*)
17784 version_type=linux
17785 need_lib_prefix=no
17786 need_version=no
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17792 freebsd1*)
17793 dynamic_linker=no
17796 freebsd* | dragonfly*)
17797 # DragonFly does not have aout. When/if they implement a new
17798 # versioning mechanism, adjust this.
17799 if test -x /usr/bin/objformat; then
17800 objformat=`/usr/bin/objformat`
17801 else
17802 case $host_os in
17803 freebsd[123]*) objformat=aout ;;
17804 *) objformat=elf ;;
17805 esac
17807 version_type=freebsd-$objformat
17808 case $version_type in
17809 freebsd-elf*)
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17811 need_version=no
17812 need_lib_prefix=no
17814 freebsd-*)
17815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17816 need_version=yes
17818 esac
17819 shlibpath_var=LD_LIBRARY_PATH
17820 case $host_os in
17821 freebsd2*)
17822 shlibpath_overrides_runpath=yes
17824 freebsd3.[01]* | freebsdelf3.[01]*)
17825 shlibpath_overrides_runpath=yes
17826 hardcode_into_libs=yes
17828 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17829 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17830 shlibpath_overrides_runpath=no
17831 hardcode_into_libs=yes
17833 freebsd*) # from 4.6 on
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17837 esac
17840 gnu*)
17841 version_type=linux
17842 need_lib_prefix=no
17843 need_version=no
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17845 soname_spec='${libname}${release}${shared_ext}$major'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 hardcode_into_libs=yes
17850 hpux9* | hpux10* | hpux11*)
17851 # Give a soname corresponding to the major version so that dld.sl refuses to
17852 # link against other versions.
17853 version_type=sunos
17854 need_lib_prefix=no
17855 need_version=no
17856 case $host_cpu in
17857 ia64*)
17858 shrext_cmds='.so'
17859 hardcode_into_libs=yes
17860 dynamic_linker="$host_os dld.so"
17861 shlibpath_var=LD_LIBRARY_PATH
17862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 if test "X$HPUX_IA64_MODE" = X32; then
17866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17867 else
17868 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17872 hppa*64*)
17873 shrext_cmds='.sl'
17874 hardcode_into_libs=yes
17875 dynamic_linker="$host_os dld.sl"
17876 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879 soname_spec='${libname}${release}${shared_ext}$major'
17880 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17884 shrext_cmds='.sl'
17885 dynamic_linker="$host_os dld.sl"
17886 shlibpath_var=SHLIB_PATH
17887 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17891 esac
17892 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17893 postinstall_cmds='chmod 555 $lib'
17896 interix3*)
17897 version_type=linux
17898 need_lib_prefix=no
17899 need_version=no
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 shlibpath_overrides_runpath=no
17905 hardcode_into_libs=yes
17908 irix5* | irix6* | nonstopux*)
17909 case $host_os in
17910 nonstopux*) version_type=nonstopux ;;
17912 if test "$lt_cv_prog_gnu_ld" = yes; then
17913 version_type=linux
17914 else
17915 version_type=irix
17916 fi ;;
17917 esac
17918 need_lib_prefix=no
17919 need_version=no
17920 soname_spec='${libname}${release}${shared_ext}$major'
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17922 case $host_os in
17923 irix5* | nonstopux*)
17924 libsuff= shlibsuff=
17927 case $LD in # libtool.m4 will add one of these switches to LD
17928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17929 libsuff= shlibsuff= libmagic=32-bit;;
17930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17931 libsuff=32 shlibsuff=N32 libmagic=N32;;
17932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17934 *) libsuff= shlibsuff= libmagic=never-match;;
17935 esac
17937 esac
17938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17939 shlibpath_overrides_runpath=no
17940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17942 hardcode_into_libs=yes
17945 # No shared lib support for Linux oldld, aout, or coff.
17946 linux*oldld* | linux*aout* | linux*coff*)
17947 dynamic_linker=no
17950 # This must be Linux ELF.
17951 linux* | k*bsd*-gnu)
17952 version_type=linux
17953 need_lib_prefix=no
17954 need_version=no
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 soname_spec='${libname}${release}${shared_ext}$major'
17957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=no
17960 # This implies no fast_install, which is unacceptable.
17961 # Some rework will be needed to allow for fast_install
17962 # before this can be enabled.
17963 hardcode_into_libs=yes
17965 # Append ld.so.conf contents to the search path
17966 if test -f /etc/ld.so.conf; then
17967 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17968 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17971 # We used to test for /lib/ld.so.1 and disable shared libraries on
17972 # powerpc, because MkLinux only supported shared libraries with the
17973 # GNU dynamic linker. Since this was broken with cross compilers,
17974 # most powerpc-linux boxes support dynamic linking these days and
17975 # people can always --disable-shared, the test was removed, and we
17976 # assume the GNU/Linux dynamic linker is in use.
17977 dynamic_linker='GNU/Linux ld.so'
17980 netbsdelf*-gnu)
17981 version_type=linux
17982 need_lib_prefix=no
17983 need_version=no
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17985 soname_spec='${libname}${release}${shared_ext}$major'
17986 shlibpath_var=LD_LIBRARY_PATH
17987 shlibpath_overrides_runpath=no
17988 hardcode_into_libs=yes
17989 dynamic_linker='NetBSD ld.elf_so'
17992 netbsd*)
17993 version_type=sunos
17994 need_lib_prefix=no
17995 need_version=no
17996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17999 dynamic_linker='NetBSD (a.out) ld.so'
18000 else
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 dynamic_linker='NetBSD ld.elf_so'
18005 shlibpath_var=LD_LIBRARY_PATH
18006 shlibpath_overrides_runpath=yes
18007 hardcode_into_libs=yes
18010 newsos6)
18011 version_type=linux
18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013 shlibpath_var=LD_LIBRARY_PATH
18014 shlibpath_overrides_runpath=yes
18017 nto-qnx*)
18018 version_type=linux
18019 need_lib_prefix=no
18020 need_version=no
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath=yes
18027 openbsd*)
18028 version_type=sunos
18029 sys_lib_dlsearch_path_spec="/usr/lib"
18030 need_lib_prefix=no
18031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18032 case $host_os in
18033 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18034 *) need_version=no ;;
18035 esac
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18040 case $host_os in
18041 openbsd2.[89] | openbsd2.[89].*)
18042 shlibpath_overrides_runpath=no
18045 shlibpath_overrides_runpath=yes
18047 esac
18048 else
18049 shlibpath_overrides_runpath=yes
18053 os2*)
18054 libname_spec='$name'
18055 shrext_cmds=".dll"
18056 need_lib_prefix=no
18057 library_names_spec='$libname${shared_ext} $libname.a'
18058 dynamic_linker='OS/2 ld.exe'
18059 shlibpath_var=LIBPATH
18062 osf3* | osf4* | osf5*)
18063 version_type=osf
18064 need_lib_prefix=no
18065 need_version=no
18066 soname_spec='${libname}${release}${shared_ext}$major'
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068 shlibpath_var=LD_LIBRARY_PATH
18069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18073 solaris*)
18074 version_type=linux
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath=yes
18081 hardcode_into_libs=yes
18082 # ldd complains unless libraries are executable
18083 postinstall_cmds='chmod +x $lib'
18086 sunos4*)
18087 version_type=sunos
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18089 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18090 shlibpath_var=LD_LIBRARY_PATH
18091 shlibpath_overrides_runpath=yes
18092 if test "$with_gnu_ld" = yes; then
18093 need_lib_prefix=no
18095 need_version=yes
18098 sysv4 | sysv4.3*)
18099 version_type=linux
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 case $host_vendor in
18104 sni)
18105 shlibpath_overrides_runpath=no
18106 need_lib_prefix=no
18107 export_dynamic_flag_spec='${wl}-Blargedynsym'
18108 runpath_var=LD_RUN_PATH
18110 siemens)
18111 need_lib_prefix=no
18113 motorola)
18114 need_lib_prefix=no
18115 need_version=no
18116 shlibpath_overrides_runpath=no
18117 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18119 esac
18122 sysv4*MP*)
18123 if test -d /usr/nec ;then
18124 version_type=linux
18125 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18126 soname_spec='$libname${shared_ext}.$major'
18127 shlibpath_var=LD_LIBRARY_PATH
18131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18132 version_type=freebsd-elf
18133 need_lib_prefix=no
18134 need_version=no
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 hardcode_into_libs=yes
18139 if test "$with_gnu_ld" = yes; then
18140 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18141 shlibpath_overrides_runpath=no
18142 else
18143 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18144 shlibpath_overrides_runpath=yes
18145 case $host_os in
18146 sco3.2v5*)
18147 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18149 esac
18151 sys_lib_dlsearch_path_spec='/usr/lib'
18154 uts4*)
18155 version_type=linux
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157 soname_spec='${libname}${release}${shared_ext}$major'
18158 shlibpath_var=LD_LIBRARY_PATH
18162 dynamic_linker=no
18164 esac
18165 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18166 echo "${ECHO_T}$dynamic_linker" >&6; }
18167 test "$dynamic_linker" = no && can_build_shared=no
18169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18170 if test "$GCC" = yes; then
18171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18174 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18176 hardcode_action_GCJ=
18177 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18178 test -n "$runpath_var_GCJ" || \
18179 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18181 # We can hardcode non-existant directories.
18182 if test "$hardcode_direct_GCJ" != no &&
18183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18184 # have to relink, otherwise we might link with an installed library
18185 # when we should be linking with a yet-to-be-installed one
18186 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18187 test "$hardcode_minus_L_GCJ" != no; then
18188 # Linking always hardcodes the temporary library directory.
18189 hardcode_action_GCJ=relink
18190 else
18191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18192 hardcode_action_GCJ=immediate
18194 else
18195 # We cannot hardcode anything, or else we can only hardcode existing
18196 # directories.
18197 hardcode_action_GCJ=unsupported
18199 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18200 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18202 if test "$hardcode_action_GCJ" = relink; then
18203 # Fast installation is not supported
18204 enable_fast_install=no
18205 elif test "$shlibpath_overrides_runpath" = yes ||
18206 test "$enable_shared" = no; then
18207 # Fast installation is not necessary
18208 enable_fast_install=needless
18212 # The else clause should only fire when bootstrapping the
18213 # libtool distribution, otherwise you forgot to ship ltmain.sh
18214 # with your package, and you will get complaints that there are
18215 # no rules to generate ltmain.sh.
18216 if test -f "$ltmain"; then
18217 # See if we are running on zsh, and set the options which allow our commands through
18218 # without removal of \ escapes.
18219 if test -n "${ZSH_VERSION+set}" ; then
18220 setopt NO_GLOB_SUBST
18222 # Now quote all the things that may contain metacharacters while being
18223 # careful not to overquote the AC_SUBSTed values. We take copies of the
18224 # variables and quote the copies for generation of the libtool script.
18225 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18226 SED SHELL STRIP \
18227 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18228 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18229 deplibs_check_method reload_flag reload_cmds need_locks \
18230 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18231 lt_cv_sys_global_symbol_to_c_name_address \
18232 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18233 old_postinstall_cmds old_postuninstall_cmds \
18234 compiler_GCJ \
18235 CC_GCJ \
18236 LD_GCJ \
18237 lt_prog_compiler_wl_GCJ \
18238 lt_prog_compiler_pic_GCJ \
18239 lt_prog_compiler_static_GCJ \
18240 lt_prog_compiler_no_builtin_flag_GCJ \
18241 export_dynamic_flag_spec_GCJ \
18242 thread_safe_flag_spec_GCJ \
18243 whole_archive_flag_spec_GCJ \
18244 enable_shared_with_static_runtimes_GCJ \
18245 old_archive_cmds_GCJ \
18246 old_archive_from_new_cmds_GCJ \
18247 predep_objects_GCJ \
18248 postdep_objects_GCJ \
18249 predeps_GCJ \
18250 postdeps_GCJ \
18251 compiler_lib_search_path_GCJ \
18252 archive_cmds_GCJ \
18253 archive_expsym_cmds_GCJ \
18254 postinstall_cmds_GCJ \
18255 postuninstall_cmds_GCJ \
18256 old_archive_from_expsyms_cmds_GCJ \
18257 allow_undefined_flag_GCJ \
18258 no_undefined_flag_GCJ \
18259 export_symbols_cmds_GCJ \
18260 hardcode_libdir_flag_spec_GCJ \
18261 hardcode_libdir_flag_spec_ld_GCJ \
18262 hardcode_libdir_separator_GCJ \
18263 hardcode_automatic_GCJ \
18264 module_cmds_GCJ \
18265 module_expsym_cmds_GCJ \
18266 lt_cv_prog_compiler_c_o_GCJ \
18267 exclude_expsyms_GCJ \
18268 include_expsyms_GCJ; do
18270 case $var in
18271 old_archive_cmds_GCJ | \
18272 old_archive_from_new_cmds_GCJ | \
18273 archive_cmds_GCJ | \
18274 archive_expsym_cmds_GCJ | \
18275 module_cmds_GCJ | \
18276 module_expsym_cmds_GCJ | \
18277 old_archive_from_expsyms_cmds_GCJ | \
18278 export_symbols_cmds_GCJ | \
18279 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18280 postinstall_cmds | postuninstall_cmds | \
18281 old_postinstall_cmds | old_postuninstall_cmds | \
18282 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18283 # Double-quote double-evaled strings.
18284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18289 esac
18290 done
18292 case $lt_echo in
18293 *'\$0 --fallback-echo"')
18294 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18296 esac
18298 cfgfile="$ofile"
18300 cat <<__EOF__ >> "$cfgfile"
18301 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18305 # Shell to use when invoking shell scripts.
18306 SHELL=$lt_SHELL
18308 # Whether or not to build shared libraries.
18309 build_libtool_libs=$enable_shared
18311 # Whether or not to build static libraries.
18312 build_old_libs=$enable_static
18314 # Whether or not to add -lc for building shared libraries.
18315 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18317 # Whether or not to disallow shared libs when runtime libs are static
18318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18320 # Whether or not to optimize for fast installation.
18321 fast_install=$enable_fast_install
18323 # The host system.
18324 host_alias=$host_alias
18325 host=$host
18326 host_os=$host_os
18328 # The build system.
18329 build_alias=$build_alias
18330 build=$build
18331 build_os=$build_os
18333 # An echo program that does not interpret backslashes.
18334 echo=$lt_echo
18336 # The archiver.
18337 AR=$lt_AR
18338 AR_FLAGS=$lt_AR_FLAGS
18340 # A C compiler.
18341 LTCC=$lt_LTCC
18343 # LTCC compiler flags.
18344 LTCFLAGS=$lt_LTCFLAGS
18346 # A language-specific compiler.
18347 CC=$lt_compiler_GCJ
18349 # Is the compiler the GNU C compiler?
18350 with_gcc=$GCC_GCJ
18352 # An ERE matcher.
18353 EGREP=$lt_EGREP
18355 # The linker used to build libraries.
18356 LD=$lt_LD_GCJ
18358 # Whether we need hard or soft links.
18359 LN_S=$lt_LN_S
18361 # A BSD-compatible nm program.
18362 NM=$lt_NM
18364 # A symbol stripping program
18365 STRIP=$lt_STRIP
18367 # Used to examine libraries when file_magic_cmd begins "file"
18368 MAGIC_CMD=$MAGIC_CMD
18370 # Used on cygwin: DLL creation program.
18371 DLLTOOL="$DLLTOOL"
18373 # Used on cygwin: object dumper.
18374 OBJDUMP="$OBJDUMP"
18376 # Used on cygwin: assembler.
18377 AS="$AS"
18379 # The name of the directory that contains temporary libtool files.
18380 objdir=$objdir
18382 # How to create reloadable object files.
18383 reload_flag=$lt_reload_flag
18384 reload_cmds=$lt_reload_cmds
18386 # How to pass a linker flag through the compiler.
18387 wl=$lt_lt_prog_compiler_wl_GCJ
18389 # Object file suffix (normally "o").
18390 objext="$ac_objext"
18392 # Old archive suffix (normally "a").
18393 libext="$libext"
18395 # Shared library suffix (normally ".so").
18396 shrext_cmds='$shrext_cmds'
18398 # Executable file suffix (normally "").
18399 exeext="$exeext"
18401 # Additional compiler flags for building library objects.
18402 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18403 pic_mode=$pic_mode
18405 # What is the maximum length of a command?
18406 max_cmd_len=$lt_cv_sys_max_cmd_len
18408 # Does compiler simultaneously support -c and -o options?
18409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18411 # Must we lock files when doing compilation?
18412 need_locks=$lt_need_locks
18414 # Do we need the lib prefix for modules?
18415 need_lib_prefix=$need_lib_prefix
18417 # Do we need a version for libraries?
18418 need_version=$need_version
18420 # Whether dlopen is supported.
18421 dlopen_support=$enable_dlopen
18423 # Whether dlopen of programs is supported.
18424 dlopen_self=$enable_dlopen_self
18426 # Whether dlopen of statically linked programs is supported.
18427 dlopen_self_static=$enable_dlopen_self_static
18429 # Compiler flag to prevent dynamic linking.
18430 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18432 # Compiler flag to turn off builtin functions.
18433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18435 # Compiler flag to allow reflexive dlopens.
18436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18438 # Compiler flag to generate shared objects directly from archives.
18439 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18441 # Compiler flag to generate thread-safe objects.
18442 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18444 # Library versioning type.
18445 version_type=$version_type
18447 # Format of library name prefix.
18448 libname_spec=$lt_libname_spec
18450 # List of archive names. First name is the real one, the rest are links.
18451 # The last name is the one that the linker finds with -lNAME.
18452 library_names_spec=$lt_library_names_spec
18454 # The coded name of the library, if different from the real name.
18455 soname_spec=$lt_soname_spec
18457 # Commands used to build and install an old-style archive.
18458 RANLIB=$lt_RANLIB
18459 old_archive_cmds=$lt_old_archive_cmds_GCJ
18460 old_postinstall_cmds=$lt_old_postinstall_cmds
18461 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18463 # Create an old-style archive from a shared archive.
18464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18466 # Create a temporary old-style archive to link instead of a shared archive.
18467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18469 # Commands used to build and install a shared archive.
18470 archive_cmds=$lt_archive_cmds_GCJ
18471 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18472 postinstall_cmds=$lt_postinstall_cmds
18473 postuninstall_cmds=$lt_postuninstall_cmds
18475 # Commands used to build a loadable module (assumed same as above if empty)
18476 module_cmds=$lt_module_cmds_GCJ
18477 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18479 # Commands to strip libraries.
18480 old_striplib=$lt_old_striplib
18481 striplib=$lt_striplib
18483 # Dependencies to place before the objects being linked to create a
18484 # shared library.
18485 predep_objects=$lt_predep_objects_GCJ
18487 # Dependencies to place after the objects being linked to create a
18488 # shared library.
18489 postdep_objects=$lt_postdep_objects_GCJ
18491 # Dependencies to place before the objects being linked to create a
18492 # shared library.
18493 predeps=$lt_predeps_GCJ
18495 # Dependencies to place after the objects being linked to create a
18496 # shared library.
18497 postdeps=$lt_postdeps_GCJ
18499 # The library search path used internally by the compiler when linking
18500 # a shared library.
18501 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18503 # Method to check whether dependent libraries are shared objects.
18504 deplibs_check_method=$lt_deplibs_check_method
18506 # Command to use when deplibs_check_method == file_magic.
18507 file_magic_cmd=$lt_file_magic_cmd
18509 # Flag that allows shared libraries with undefined symbols to be built.
18510 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18512 # Flag that forces no undefined symbols.
18513 no_undefined_flag=$lt_no_undefined_flag_GCJ
18515 # Commands used to finish a libtool library installation in a directory.
18516 finish_cmds=$lt_finish_cmds
18518 # Same as above, but a single script fragment to be evaled but not shown.
18519 finish_eval=$lt_finish_eval
18521 # Take the output of nm and produce a listing of raw symbols and C names.
18522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18524 # Transform the output of nm in a proper C declaration
18525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18527 # Transform the output of nm in a C name address pair
18528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18530 # This is the shared library runtime path variable.
18531 runpath_var=$runpath_var
18533 # This is the shared library path variable.
18534 shlibpath_var=$shlibpath_var
18536 # Is shlibpath searched before the hard-coded library search path?
18537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18539 # How to hardcode a shared library path into an executable.
18540 hardcode_action=$hardcode_action_GCJ
18542 # Whether we should hardcode library paths into libraries.
18543 hardcode_into_libs=$hardcode_into_libs
18545 # Flag to hardcode \$libdir into a binary during linking.
18546 # This must work even if \$libdir does not exist.
18547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18549 # If ld is used when linking, flag to hardcode \$libdir into
18550 # a binary during linking. This must work even if \$libdir does
18551 # not exist.
18552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18554 # Whether we need a single -rpath flag with a separated argument.
18555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_direct=$hardcode_direct_GCJ
18561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18562 # resulting binary.
18563 hardcode_minus_L=$hardcode_minus_L_GCJ
18565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18566 # the resulting binary.
18567 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18569 # Set to yes if building a shared library automatically hardcodes DIR into the library
18570 # and all subsequent libraries and executables linked against it.
18571 hardcode_automatic=$hardcode_automatic_GCJ
18573 # Variables whose values should be saved in libtool wrapper scripts and
18574 # restored at relink time.
18575 variables_saved_for_relink="$variables_saved_for_relink"
18577 # Whether libtool must link a program against all its dependency libraries.
18578 link_all_deplibs=$link_all_deplibs_GCJ
18580 # Compile-time system search path for libraries
18581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18583 # Run-time system search path for libraries
18584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18586 # Fix the shell variable \$srcfile for the compiler.
18587 fix_srcfile_path="$fix_srcfile_path_GCJ"
18589 # Set to yes if exported symbols are required.
18590 always_export_symbols=$always_export_symbols_GCJ
18592 # The commands to list exported symbols.
18593 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18595 # The commands to extract the exported symbol list from a shared archive.
18596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18598 # Symbols that should not be listed in the preloaded symbols.
18599 exclude_expsyms=$lt_exclude_expsyms_GCJ
18601 # Symbols that must always be exported.
18602 include_expsyms=$lt_include_expsyms_GCJ
18604 # ### END LIBTOOL TAG CONFIG: $tagname
18606 __EOF__
18609 else
18610 # If there is no Makefile yet, we rely on a make rule to execute
18611 # `config.status --recheck' to rerun these tests and create the
18612 # libtool script then.
18613 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18614 if test -f "$ltmain_in"; then
18615 test -f Makefile && make "$ltmain"
18620 ac_ext=c
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18626 CC="$lt_save_CC"
18628 else
18629 tagname=""
18636 # Source file extension for RC test sources.
18637 ac_ext=rc
18639 # Object file extension for compiled RC test sources.
18640 objext=o
18641 objext_RC=$objext
18643 # Code to be used in simple compile tests
18644 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18646 # Code to be used in simple link tests
18647 lt_simple_link_test_code="$lt_simple_compile_test_code"
18649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18651 # If no C compiler was specified, use CC.
18652 LTCC=${LTCC-"$CC"}
18654 # If no C compiler flags were specified, use CFLAGS.
18655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18657 # Allow CC to be a program name with arguments.
18658 compiler=$CC
18661 # save warnings/boilerplate of simple test code
18662 ac_outfile=conftest.$ac_objext
18663 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18665 _lt_compiler_boilerplate=`cat conftest.err`
18666 $rm conftest*
18668 ac_outfile=conftest.$ac_objext
18669 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671 _lt_linker_boilerplate=`cat conftest.err`
18672 $rm conftest*
18675 # Allow CC to be a program name with arguments.
18676 lt_save_CC="$CC"
18677 CC=${RC-"windres"}
18678 compiler=$CC
18679 compiler_RC=$CC
18680 for cc_temp in $compiler""; do
18681 case $cc_temp in
18682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18684 \-*) ;;
18685 *) break;;
18686 esac
18687 done
18688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18690 lt_cv_prog_compiler_c_o_RC=yes
18692 # The else clause should only fire when bootstrapping the
18693 # libtool distribution, otherwise you forgot to ship ltmain.sh
18694 # with your package, and you will get complaints that there are
18695 # no rules to generate ltmain.sh.
18696 if test -f "$ltmain"; then
18697 # See if we are running on zsh, and set the options which allow our commands through
18698 # without removal of \ escapes.
18699 if test -n "${ZSH_VERSION+set}" ; then
18700 setopt NO_GLOB_SUBST
18702 # Now quote all the things that may contain metacharacters while being
18703 # careful not to overquote the AC_SUBSTed values. We take copies of the
18704 # variables and quote the copies for generation of the libtool script.
18705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18706 SED SHELL STRIP \
18707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18709 deplibs_check_method reload_flag reload_cmds need_locks \
18710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18711 lt_cv_sys_global_symbol_to_c_name_address \
18712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18713 old_postinstall_cmds old_postuninstall_cmds \
18714 compiler_RC \
18715 CC_RC \
18716 LD_RC \
18717 lt_prog_compiler_wl_RC \
18718 lt_prog_compiler_pic_RC \
18719 lt_prog_compiler_static_RC \
18720 lt_prog_compiler_no_builtin_flag_RC \
18721 export_dynamic_flag_spec_RC \
18722 thread_safe_flag_spec_RC \
18723 whole_archive_flag_spec_RC \
18724 enable_shared_with_static_runtimes_RC \
18725 old_archive_cmds_RC \
18726 old_archive_from_new_cmds_RC \
18727 predep_objects_RC \
18728 postdep_objects_RC \
18729 predeps_RC \
18730 postdeps_RC \
18731 compiler_lib_search_path_RC \
18732 archive_cmds_RC \
18733 archive_expsym_cmds_RC \
18734 postinstall_cmds_RC \
18735 postuninstall_cmds_RC \
18736 old_archive_from_expsyms_cmds_RC \
18737 allow_undefined_flag_RC \
18738 no_undefined_flag_RC \
18739 export_symbols_cmds_RC \
18740 hardcode_libdir_flag_spec_RC \
18741 hardcode_libdir_flag_spec_ld_RC \
18742 hardcode_libdir_separator_RC \
18743 hardcode_automatic_RC \
18744 module_cmds_RC \
18745 module_expsym_cmds_RC \
18746 lt_cv_prog_compiler_c_o_RC \
18747 exclude_expsyms_RC \
18748 include_expsyms_RC; do
18750 case $var in
18751 old_archive_cmds_RC | \
18752 old_archive_from_new_cmds_RC | \
18753 archive_cmds_RC | \
18754 archive_expsym_cmds_RC | \
18755 module_cmds_RC | \
18756 module_expsym_cmds_RC | \
18757 old_archive_from_expsyms_cmds_RC | \
18758 export_symbols_cmds_RC | \
18759 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18760 postinstall_cmds | postuninstall_cmds | \
18761 old_postinstall_cmds | old_postuninstall_cmds | \
18762 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18763 # Double-quote double-evaled strings.
18764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18769 esac
18770 done
18772 case $lt_echo in
18773 *'\$0 --fallback-echo"')
18774 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18776 esac
18778 cfgfile="$ofile"
18780 cat <<__EOF__ >> "$cfgfile"
18781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18785 # Shell to use when invoking shell scripts.
18786 SHELL=$lt_SHELL
18788 # Whether or not to build shared libraries.
18789 build_libtool_libs=$enable_shared
18791 # Whether or not to build static libraries.
18792 build_old_libs=$enable_static
18794 # Whether or not to add -lc for building shared libraries.
18795 build_libtool_need_lc=$archive_cmds_need_lc_RC
18797 # Whether or not to disallow shared libs when runtime libs are static
18798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18800 # Whether or not to optimize for fast installation.
18801 fast_install=$enable_fast_install
18803 # The host system.
18804 host_alias=$host_alias
18805 host=$host
18806 host_os=$host_os
18808 # The build system.
18809 build_alias=$build_alias
18810 build=$build
18811 build_os=$build_os
18813 # An echo program that does not interpret backslashes.
18814 echo=$lt_echo
18816 # The archiver.
18817 AR=$lt_AR
18818 AR_FLAGS=$lt_AR_FLAGS
18820 # A C compiler.
18821 LTCC=$lt_LTCC
18823 # LTCC compiler flags.
18824 LTCFLAGS=$lt_LTCFLAGS
18826 # A language-specific compiler.
18827 CC=$lt_compiler_RC
18829 # Is the compiler the GNU C compiler?
18830 with_gcc=$GCC_RC
18832 # An ERE matcher.
18833 EGREP=$lt_EGREP
18835 # The linker used to build libraries.
18836 LD=$lt_LD_RC
18838 # Whether we need hard or soft links.
18839 LN_S=$lt_LN_S
18841 # A BSD-compatible nm program.
18842 NM=$lt_NM
18844 # A symbol stripping program
18845 STRIP=$lt_STRIP
18847 # Used to examine libraries when file_magic_cmd begins "file"
18848 MAGIC_CMD=$MAGIC_CMD
18850 # Used on cygwin: DLL creation program.
18851 DLLTOOL="$DLLTOOL"
18853 # Used on cygwin: object dumper.
18854 OBJDUMP="$OBJDUMP"
18856 # Used on cygwin: assembler.
18857 AS="$AS"
18859 # The name of the directory that contains temporary libtool files.
18860 objdir=$objdir
18862 # How to create reloadable object files.
18863 reload_flag=$lt_reload_flag
18864 reload_cmds=$lt_reload_cmds
18866 # How to pass a linker flag through the compiler.
18867 wl=$lt_lt_prog_compiler_wl_RC
18869 # Object file suffix (normally "o").
18870 objext="$ac_objext"
18872 # Old archive suffix (normally "a").
18873 libext="$libext"
18875 # Shared library suffix (normally ".so").
18876 shrext_cmds='$shrext_cmds'
18878 # Executable file suffix (normally "").
18879 exeext="$exeext"
18881 # Additional compiler flags for building library objects.
18882 pic_flag=$lt_lt_prog_compiler_pic_RC
18883 pic_mode=$pic_mode
18885 # What is the maximum length of a command?
18886 max_cmd_len=$lt_cv_sys_max_cmd_len
18888 # Does compiler simultaneously support -c and -o options?
18889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18891 # Must we lock files when doing compilation?
18892 need_locks=$lt_need_locks
18894 # Do we need the lib prefix for modules?
18895 need_lib_prefix=$need_lib_prefix
18897 # Do we need a version for libraries?
18898 need_version=$need_version
18900 # Whether dlopen is supported.
18901 dlopen_support=$enable_dlopen
18903 # Whether dlopen of programs is supported.
18904 dlopen_self=$enable_dlopen_self
18906 # Whether dlopen of statically linked programs is supported.
18907 dlopen_self_static=$enable_dlopen_self_static
18909 # Compiler flag to prevent dynamic linking.
18910 link_static_flag=$lt_lt_prog_compiler_static_RC
18912 # Compiler flag to turn off builtin functions.
18913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18915 # Compiler flag to allow reflexive dlopens.
18916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18918 # Compiler flag to generate shared objects directly from archives.
18919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18921 # Compiler flag to generate thread-safe objects.
18922 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18924 # Library versioning type.
18925 version_type=$version_type
18927 # Format of library name prefix.
18928 libname_spec=$lt_libname_spec
18930 # List of archive names. First name is the real one, the rest are links.
18931 # The last name is the one that the linker finds with -lNAME.
18932 library_names_spec=$lt_library_names_spec
18934 # The coded name of the library, if different from the real name.
18935 soname_spec=$lt_soname_spec
18937 # Commands used to build and install an old-style archive.
18938 RANLIB=$lt_RANLIB
18939 old_archive_cmds=$lt_old_archive_cmds_RC
18940 old_postinstall_cmds=$lt_old_postinstall_cmds
18941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18943 # Create an old-style archive from a shared archive.
18944 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18946 # Create a temporary old-style archive to link instead of a shared archive.
18947 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18949 # Commands used to build and install a shared archive.
18950 archive_cmds=$lt_archive_cmds_RC
18951 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18952 postinstall_cmds=$lt_postinstall_cmds
18953 postuninstall_cmds=$lt_postuninstall_cmds
18955 # Commands used to build a loadable module (assumed same as above if empty)
18956 module_cmds=$lt_module_cmds_RC
18957 module_expsym_cmds=$lt_module_expsym_cmds_RC
18959 # Commands to strip libraries.
18960 old_striplib=$lt_old_striplib
18961 striplib=$lt_striplib
18963 # Dependencies to place before the objects being linked to create a
18964 # shared library.
18965 predep_objects=$lt_predep_objects_RC
18967 # Dependencies to place after the objects being linked to create a
18968 # shared library.
18969 postdep_objects=$lt_postdep_objects_RC
18971 # Dependencies to place before the objects being linked to create a
18972 # shared library.
18973 predeps=$lt_predeps_RC
18975 # Dependencies to place after the objects being linked to create a
18976 # shared library.
18977 postdeps=$lt_postdeps_RC
18979 # The library search path used internally by the compiler when linking
18980 # a shared library.
18981 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18983 # Method to check whether dependent libraries are shared objects.
18984 deplibs_check_method=$lt_deplibs_check_method
18986 # Command to use when deplibs_check_method == file_magic.
18987 file_magic_cmd=$lt_file_magic_cmd
18989 # Flag that allows shared libraries with undefined symbols to be built.
18990 allow_undefined_flag=$lt_allow_undefined_flag_RC
18992 # Flag that forces no undefined symbols.
18993 no_undefined_flag=$lt_no_undefined_flag_RC
18995 # Commands used to finish a libtool library installation in a directory.
18996 finish_cmds=$lt_finish_cmds
18998 # Same as above, but a single script fragment to be evaled but not shown.
18999 finish_eval=$lt_finish_eval
19001 # Take the output of nm and produce a listing of raw symbols and C names.
19002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19004 # Transform the output of nm in a proper C declaration
19005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19007 # Transform the output of nm in a C name address pair
19008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19010 # This is the shared library runtime path variable.
19011 runpath_var=$runpath_var
19013 # This is the shared library path variable.
19014 shlibpath_var=$shlibpath_var
19016 # Is shlibpath searched before the hard-coded library search path?
19017 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19019 # How to hardcode a shared library path into an executable.
19020 hardcode_action=$hardcode_action_RC
19022 # Whether we should hardcode library paths into libraries.
19023 hardcode_into_libs=$hardcode_into_libs
19025 # Flag to hardcode \$libdir into a binary during linking.
19026 # This must work even if \$libdir does not exist.
19027 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19029 # If ld is used when linking, flag to hardcode \$libdir into
19030 # a binary during linking. This must work even if \$libdir does
19031 # not exist.
19032 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19034 # Whether we need a single -rpath flag with a separated argument.
19035 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19037 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19038 # resulting binary.
19039 hardcode_direct=$hardcode_direct_RC
19041 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19042 # resulting binary.
19043 hardcode_minus_L=$hardcode_minus_L_RC
19045 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19046 # the resulting binary.
19047 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19049 # Set to yes if building a shared library automatically hardcodes DIR into the library
19050 # and all subsequent libraries and executables linked against it.
19051 hardcode_automatic=$hardcode_automatic_RC
19053 # Variables whose values should be saved in libtool wrapper scripts and
19054 # restored at relink time.
19055 variables_saved_for_relink="$variables_saved_for_relink"
19057 # Whether libtool must link a program against all its dependency libraries.
19058 link_all_deplibs=$link_all_deplibs_RC
19060 # Compile-time system search path for libraries
19061 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19063 # Run-time system search path for libraries
19064 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19066 # Fix the shell variable \$srcfile for the compiler.
19067 fix_srcfile_path="$fix_srcfile_path_RC"
19069 # Set to yes if exported symbols are required.
19070 always_export_symbols=$always_export_symbols_RC
19072 # The commands to list exported symbols.
19073 export_symbols_cmds=$lt_export_symbols_cmds_RC
19075 # The commands to extract the exported symbol list from a shared archive.
19076 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19078 # Symbols that should not be listed in the preloaded symbols.
19079 exclude_expsyms=$lt_exclude_expsyms_RC
19081 # Symbols that must always be exported.
19082 include_expsyms=$lt_include_expsyms_RC
19084 # ### END LIBTOOL TAG CONFIG: $tagname
19086 __EOF__
19089 else
19090 # If there is no Makefile yet, we rely on a make rule to execute
19091 # `config.status --recheck' to rerun these tests and create the
19092 # libtool script then.
19093 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19094 if test -f "$ltmain_in"; then
19095 test -f Makefile && make "$ltmain"
19100 ac_ext=c
19101 ac_cpp='$CPP $CPPFLAGS'
19102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106 CC="$lt_save_CC"
19111 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19112 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19113 { (exit 1); exit 1; }; }
19115 esac
19117 # Append the new tag name to the list of available tags.
19118 if test -n "$tagname" ; then
19119 available_tags="$available_tags $tagname"
19122 done
19123 IFS="$lt_save_ifs"
19125 # Now substitute the updated list of available tags.
19126 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19127 mv "${ofile}T" "$ofile"
19128 chmod +x "$ofile"
19129 else
19130 rm -f "${ofile}T"
19131 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19132 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19133 { (exit 1); exit 1; }; }
19139 # This can be used to rebuild libtool when needed
19140 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19142 # Always use our own libtool.
19143 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19145 # Prevent multiple expansion
19167 ac_ext=cpp
19168 ac_cpp='$CXXCPP $CPPFLAGS'
19169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19175 # Check whether --with-libtar was given.
19176 if test "${with_libtar+set}" = set; then
19177 withval=$with_libtar; LIBTAR_CFLAGS="-I$with_libtar/include"
19178 LIBTAR_LIBS="-L$with_libtar/lib -ltar"
19179 else
19180 echo "Guessing libtar location... may not compile...";
19181 LIBTAR_CFLAGS=""
19182 LIBTAR_LIBS="-ltar"
19189 # Check whether --with-libz was given.
19190 if test "${with_libz+set}" = set; then
19191 withval=$with_libz; LIBZ_CFLAGS="-I$with_libtar/include"
19192 LIBZ_LIBS="-L$with_libtar/lib -ltar"
19193 else
19194 echo "Guessing zlib location... may not compile...";
19195 LIBZ_CFLAGS=""
19196 LIBZ_LIBS="-lz"
19204 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19205 if test -n "$ac_tool_prefix"; then
19206 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19207 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213 case $PKG_CONFIG in
19214 [\\/]* | ?:[\\/]*)
19215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19221 IFS=$as_save_IFS
19222 test -z "$as_dir" && as_dir=.
19223 for ac_exec_ext in '' $ac_executable_extensions; do
19224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19227 break 2
19229 done
19230 done
19231 IFS=$as_save_IFS
19234 esac
19236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19237 if test -n "$PKG_CONFIG"; then
19238 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19239 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19240 else
19241 { echo "$as_me:$LINENO: result: no" >&5
19242 echo "${ECHO_T}no" >&6; }
19247 if test -z "$ac_cv_path_PKG_CONFIG"; then
19248 ac_pt_PKG_CONFIG=$PKG_CONFIG
19249 # Extract the first word of "pkg-config", so it can be a program name with args.
19250 set dummy pkg-config; ac_word=$2
19251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19253 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256 case $ac_pt_PKG_CONFIG in
19257 [\\/]* | ?:[\\/]*)
19258 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19262 for as_dir in $PATH
19264 IFS=$as_save_IFS
19265 test -z "$as_dir" && as_dir=.
19266 for ac_exec_ext in '' $ac_executable_extensions; do
19267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19268 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19270 break 2
19272 done
19273 done
19274 IFS=$as_save_IFS
19277 esac
19279 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19280 if test -n "$ac_pt_PKG_CONFIG"; then
19281 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19282 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19283 else
19284 { echo "$as_me:$LINENO: result: no" >&5
19285 echo "${ECHO_T}no" >&6; }
19288 if test "x$ac_pt_PKG_CONFIG" = x; then
19289 PKG_CONFIG=""
19290 else
19291 case $cross_compiling:$ac_tool_warned in
19292 yes:)
19293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19294 whose name does not start with the host triplet. If you think this
19295 configuration is useful to you, please write to autoconf@gnu.org." >&5
19296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19297 whose name does not start with the host triplet. If you think this
19298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19299 ac_tool_warned=yes ;;
19300 esac
19301 PKG_CONFIG=$ac_pt_PKG_CONFIG
19303 else
19304 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19308 if test -n "$PKG_CONFIG"; then
19309 _pkg_min_version=0.9.0
19310 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19311 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19312 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19313 { echo "$as_me:$LINENO: result: yes" >&5
19314 echo "${ECHO_T}yes" >&6; }
19315 else
19316 { echo "$as_me:$LINENO: result: no" >&5
19317 echo "${ECHO_T}no" >&6; }
19318 PKG_CONFIG=""
19323 pkg_failed=no
19324 { echo "$as_me:$LINENO: checking for BARRY" >&5
19325 echo $ECHO_N "checking for BARRY... $ECHO_C" >&6; }
19327 if test -n "$PKG_CONFIG"; then
19328 if test -n "$BARRY_CFLAGS"; then
19329 pkg_cv_BARRY_CFLAGS="$BARRY_CFLAGS"
19330 else
19331 if test -n "$PKG_CONFIG" && \
19332 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
19333 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; then
19337 pkg_cv_BARRY_CFLAGS=`$PKG_CONFIG --cflags "libbarry-0 libusb" 2>/dev/null`
19338 else
19339 pkg_failed=yes
19342 else
19343 pkg_failed=untried
19345 if test -n "$PKG_CONFIG"; then
19346 if test -n "$BARRY_LIBS"; then
19347 pkg_cv_BARRY_LIBS="$BARRY_LIBS"
19348 else
19349 if test -n "$PKG_CONFIG" && \
19350 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
19351 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; then
19355 pkg_cv_BARRY_LIBS=`$PKG_CONFIG --libs "libbarry-0 libusb" 2>/dev/null`
19356 else
19357 pkg_failed=yes
19360 else
19361 pkg_failed=untried
19366 if test $pkg_failed = yes; then
19368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19369 _pkg_short_errors_supported=yes
19370 else
19371 _pkg_short_errors_supported=no
19373 if test $_pkg_short_errors_supported = yes; then
19374 BARRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarry-0 libusb"`
19375 else
19376 BARRY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarry-0 libusb"`
19378 # Put the nasty error message in config.log where it belongs
19379 echo "$BARRY_PKG_ERRORS" >&5
19381 { { echo "$as_me:$LINENO: error: Package requirements (libbarry-0 libusb) were not met:
19383 $BARRY_PKG_ERRORS
19385 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19386 installed software in a non-standard prefix.
19388 Alternatively, you may set the environment variables BARRY_CFLAGS
19389 and BARRY_LIBS to avoid the need to call pkg-config.
19390 See the pkg-config man page for more details.
19391 " >&5
19392 echo "$as_me: error: Package requirements (libbarry-0 libusb) were not met:
19394 $BARRY_PKG_ERRORS
19396 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19397 installed software in a non-standard prefix.
19399 Alternatively, you may set the environment variables BARRY_CFLAGS
19400 and BARRY_LIBS to avoid the need to call pkg-config.
19401 See the pkg-config man page for more details.
19402 " >&2;}
19403 { (exit 1); exit 1; }; }
19404 elif test $pkg_failed = untried; then
19405 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19406 is in your PATH or set the PKG_CONFIG environment variable to the full
19407 path to pkg-config.
19409 Alternatively, you may set the environment variables BARRY_CFLAGS
19410 and BARRY_LIBS to avoid the need to call pkg-config.
19411 See the pkg-config man page for more details.
19413 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19414 See \`config.log' for more details." >&5
19415 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19416 is in your PATH or set the PKG_CONFIG environment variable to the full
19417 path to pkg-config.
19419 Alternatively, you may set the environment variables BARRY_CFLAGS
19420 and BARRY_LIBS to avoid the need to call pkg-config.
19421 See the pkg-config man page for more details.
19423 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19424 See \`config.log' for more details." >&2;}
19425 { (exit 1); exit 1; }; }
19426 else
19427 BARRY_CFLAGS=$pkg_cv_BARRY_CFLAGS
19428 BARRY_LIBS=$pkg_cv_BARRY_LIBS
19429 { echo "$as_me:$LINENO: result: yes" >&5
19430 echo "${ECHO_T}yes" >&6; }
19434 pkg_failed=no
19435 { echo "$as_me:$LINENO: checking for GTKMM" >&5
19436 echo $ECHO_N "checking for GTKMM... $ECHO_C" >&6; }
19438 if test -n "$PKG_CONFIG"; then
19439 if test -n "$GTKMM_CFLAGS"; then
19440 pkg_cv_GTKMM_CFLAGS="$GTKMM_CFLAGS"
19441 else
19442 if test -n "$PKG_CONFIG" && \
19443 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 libglademm-2.4 gthread-2.0\"") >&5
19444 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; then
19448 pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 libglademm-2.4 gthread-2.0" 2>/dev/null`
19449 else
19450 pkg_failed=yes
19453 else
19454 pkg_failed=untried
19456 if test -n "$PKG_CONFIG"; then
19457 if test -n "$GTKMM_LIBS"; then
19458 pkg_cv_GTKMM_LIBS="$GTKMM_LIBS"
19459 else
19460 if test -n "$PKG_CONFIG" && \
19461 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 libglademm-2.4 gthread-2.0\"") >&5
19462 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0") 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; then
19466 pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 libglademm-2.4 gthread-2.0" 2>/dev/null`
19467 else
19468 pkg_failed=yes
19471 else
19472 pkg_failed=untried
19477 if test $pkg_failed = yes; then
19479 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19480 _pkg_short_errors_supported=yes
19481 else
19482 _pkg_short_errors_supported=no
19484 if test $_pkg_short_errors_supported = yes; then
19485 GTKMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0"`
19486 else
19487 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 libglademm-2.4 gthread-2.0"`
19489 # Put the nasty error message in config.log where it belongs
19490 echo "$GTKMM_PKG_ERRORS" >&5
19492 { { echo "$as_me:$LINENO: error: Package requirements (gtkmm-2.4 libglademm-2.4 gthread-2.0) were not met:
19494 $GTKMM_PKG_ERRORS
19496 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19497 installed software in a non-standard prefix.
19499 Alternatively, you may set the environment variables GTKMM_CFLAGS
19500 and GTKMM_LIBS to avoid the need to call pkg-config.
19501 See the pkg-config man page for more details.
19502 " >&5
19503 echo "$as_me: error: Package requirements (gtkmm-2.4 libglademm-2.4 gthread-2.0) were not met:
19505 $GTKMM_PKG_ERRORS
19507 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19508 installed software in a non-standard prefix.
19510 Alternatively, you may set the environment variables GTKMM_CFLAGS
19511 and GTKMM_LIBS to avoid the need to call pkg-config.
19512 See the pkg-config man page for more details.
19513 " >&2;}
19514 { (exit 1); exit 1; }; }
19515 elif test $pkg_failed = untried; then
19516 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19517 is in your PATH or set the PKG_CONFIG environment variable to the full
19518 path to pkg-config.
19520 Alternatively, you may set the environment variables GTKMM_CFLAGS
19521 and GTKMM_LIBS to avoid the need to call pkg-config.
19522 See the pkg-config man page for more details.
19524 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19525 See \`config.log' for more details." >&5
19526 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19527 is in your PATH or set the PKG_CONFIG environment variable to the full
19528 path to pkg-config.
19530 Alternatively, you may set the environment variables GTKMM_CFLAGS
19531 and GTKMM_LIBS to avoid the need to call pkg-config.
19532 See the pkg-config man page for more details.
19534 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19535 See \`config.log' for more details." >&2;}
19536 { (exit 1); exit 1; }; }
19537 else
19538 GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
19539 GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
19540 { echo "$as_me:$LINENO: result: yes" >&5
19541 echo "${ECHO_T}yes" >&6; }
19545 # Carry the special tree build environment variables from parent configure,
19546 # just in case user is doing a complete tree build with --enable-gui
19550 # Setup gladedir, so src/Makefile.am can use it for the compile
19551 # and for the glade file installations. (glade_DATA)
19552 gladedir="$datadir/barry/glade/"
19555 # Checks for libraries.
19556 #AC_CHECK_LIB([IOKit], [main])
19558 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19559 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
19560 if test "${ac_cv_lib_pthread_main+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563 ac_check_lib_save_LIBS=$LIBS
19564 LIBS="-lpthread $LIBS"
19565 cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h. */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19574 main ()
19576 return main ();
19578 return 0;
19580 _ACEOF
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_cxx_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_pthread_main=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_pthread_main=no
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19612 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
19613 if test $ac_cv_lib_pthread_main = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_LIBPTHREAD 1
19616 _ACEOF
19618 LIBS="-lpthread $LIBS"
19622 #AC_CHECK_LIB([libusb], [libusb_init])
19624 # Checks for header files.
19630 ac_header_dirent=no
19631 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19632 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19633 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19634 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #include <sys/types.h>
19645 #include <$ac_hdr>
19648 main ()
19650 if ((DIR *) 0)
19651 return 0;
19653 return 0;
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_cxx_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 eval "$as_ac_Header=yes"
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 eval "$as_ac_Header=no"
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 ac_res=`eval echo '${'$as_ac_Header'}'`
19684 { echo "$as_me:$LINENO: result: $ac_res" >&5
19685 echo "${ECHO_T}$ac_res" >&6; }
19686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19689 _ACEOF
19691 ac_header_dirent=$ac_hdr; break
19694 done
19695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19696 if test $ac_header_dirent = dirent.h; then
19697 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19698 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19699 if test "${ac_cv_search_opendir+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702 ac_func_search_save_LIBS=$LIBS
19703 cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h. */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19710 /* Override any GCC internal prototype to avoid an error.
19711 Use char because int might match the return type of a GCC
19712 builtin and then its argument prototype would still apply. */
19713 #ifdef __cplusplus
19714 extern "C"
19715 #endif
19716 char opendir ();
19718 main ()
19720 return opendir ();
19722 return 0;
19724 _ACEOF
19725 for ac_lib in '' dir; do
19726 if test -z "$ac_lib"; then
19727 ac_res="none required"
19728 else
19729 ac_res=-l$ac_lib
19730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_cxx_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 ac_cv_search_opendir=$ac_res
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext
19760 if test "${ac_cv_search_opendir+set}" = set; then
19761 break
19763 done
19764 if test "${ac_cv_search_opendir+set}" = set; then
19766 else
19767 ac_cv_search_opendir=no
19769 rm conftest.$ac_ext
19770 LIBS=$ac_func_search_save_LIBS
19772 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19773 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19774 ac_res=$ac_cv_search_opendir
19775 if test "$ac_res" != no; then
19776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19780 else
19781 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19782 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19783 if test "${ac_cv_search_opendir+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 ac_func_search_save_LIBS=$LIBS
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h. */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19797 #ifdef __cplusplus
19798 extern "C"
19799 #endif
19800 char opendir ();
19802 main ()
19804 return opendir ();
19806 return 0;
19808 _ACEOF
19809 for ac_lib in '' x; do
19810 if test -z "$ac_lib"; then
19811 ac_res="none required"
19812 else
19813 ac_res=-l$ac_lib
19814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_cxx_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_search_opendir=$ac_res
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext
19844 if test "${ac_cv_search_opendir+set}" = set; then
19845 break
19847 done
19848 if test "${ac_cv_search_opendir+set}" = set; then
19850 else
19851 ac_cv_search_opendir=no
19853 rm conftest.$ac_ext
19854 LIBS=$ac_func_search_save_LIBS
19856 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19857 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19858 ac_res=$ac_cv_search_opendir
19859 if test "$ac_res" != no; then
19860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19867 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19868 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19869 if test "${ac_cv_header_stdc+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <stdlib.h>
19879 #include <stdarg.h>
19880 #include <string.h>
19881 #include <float.h>
19884 main ()
19888 return 0;
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_compile") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_cxx_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest.$ac_objext; then
19908 ac_cv_header_stdc=yes
19909 else
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19913 ac_cv_header_stdc=no
19916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918 if test $ac_cv_header_stdc = yes; then
19919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 #include <string.h>
19928 _ACEOF
19929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19930 $EGREP "memchr" >/dev/null 2>&1; then
19932 else
19933 ac_cv_header_stdc=no
19935 rm -f conftest*
19939 if test $ac_cv_header_stdc = yes; then
19940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <stdlib.h>
19949 _ACEOF
19950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19951 $EGREP "free" >/dev/null 2>&1; then
19953 else
19954 ac_cv_header_stdc=no
19956 rm -f conftest*
19960 if test $ac_cv_header_stdc = yes; then
19961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19962 if test "$cross_compiling" = yes; then
19964 else
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 #include <ctype.h>
19972 #include <stdlib.h>
19973 #if ((' ' & 0x0FF) == 0x020)
19974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19976 #else
19977 # define ISLOWER(c) \
19978 (('a' <= (c) && (c) <= 'i') \
19979 || ('j' <= (c) && (c) <= 'r') \
19980 || ('s' <= (c) && (c) <= 'z'))
19981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19982 #endif
19984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19986 main ()
19988 int i;
19989 for (i = 0; i < 256; i++)
19990 if (XOR (islower (i), ISLOWER (i))
19991 || toupper (i) != TOUPPER (i))
19992 return 2;
19993 return 0;
19995 _ACEOF
19996 rm -f conftest$ac_exeext
19997 if { (ac_try="$ac_link"
19998 case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_link") 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20007 { (case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_try") 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20017 else
20018 echo "$as_me: program exited with status $ac_status" >&5
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ( exit $ac_status )
20023 ac_cv_header_stdc=no
20025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20032 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20033 if test $ac_cv_header_stdc = yes; then
20035 cat >>confdefs.h <<\_ACEOF
20036 #define STDC_HEADERS 1
20037 _ACEOF
20044 for ac_header in assert.h stdint.h time.h
20046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 ac_res=`eval echo '${'$as_ac_Header'}'`
20054 { echo "$as_me:$LINENO: result: $ac_res" >&5
20055 echo "${ECHO_T}$ac_res" >&6; }
20056 else
20057 # Is the header compilable?
20058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 $ac_includes_default
20067 #include <$ac_header>
20068 _ACEOF
20069 rm -f conftest.$ac_objext
20070 if { (ac_try="$ac_compile"
20071 case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_compile") 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } && {
20083 test -z "$ac_cxx_werror_flag" ||
20084 test ! -s conftest.err
20085 } && test -s conftest.$ac_objext; then
20086 ac_header_compiler=yes
20087 else
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20091 ac_header_compiler=no
20094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20096 echo "${ECHO_T}$ac_header_compiler" >&6; }
20098 # Is the header present?
20099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h. */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 #include <$ac_header>
20108 _ACEOF
20109 if { (ac_try="$ac_cpp conftest.$ac_ext"
20110 case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } >/dev/null && {
20122 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20123 test ! -s conftest.err
20124 }; then
20125 ac_header_preproc=yes
20126 else
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_header_preproc=no
20133 rm -f conftest.err conftest.$ac_ext
20134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20135 echo "${ECHO_T}$ac_header_preproc" >&6; }
20137 # So? What about this header?
20138 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20139 yes:no: )
20140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20144 ac_header_preproc=yes
20146 no:yes:* )
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20159 ( cat <<\_ASBOX
20160 ## ------------------------------------------------ ##
20161 ## Report this to barry-devel@lists.sourceforge.net ##
20162 ## ------------------------------------------------ ##
20163 _ASBOX
20164 ) | sed "s/^/$as_me: WARNING: /" >&2
20166 esac
20167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 eval "$as_ac_Header=\$ac_header_preproc"
20174 ac_res=`eval echo '${'$as_ac_Header'}'`
20175 { echo "$as_me:$LINENO: result: $ac_res" >&5
20176 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 _ACEOF
20186 done
20189 # Checks for typedefs, structures, and compiler characteristics.
20190 #AC_TYPE_SIZE_T
20191 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20192 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20193 if test "${ac_cv_header_time+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 #include <sys/types.h>
20203 #include <sys/time.h>
20204 #include <time.h>
20207 main ()
20209 if ((struct tm *) 0)
20210 return 0;
20212 return 0;
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_compile") 2>conftest.er1
20223 ac_status=$?
20224 grep -v '^ *+' conftest.er1 >conftest.err
20225 rm -f conftest.er1
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } && {
20229 test -z "$ac_cxx_werror_flag" ||
20230 test ! -s conftest.err
20231 } && test -s conftest.$ac_objext; then
20232 ac_cv_header_time=yes
20233 else
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_cv_header_time=no
20240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20243 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20244 if test $ac_cv_header_time = yes; then
20246 cat >>confdefs.h <<\_ACEOF
20247 #define TIME_WITH_SYS_TIME 1
20248 _ACEOF
20252 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20253 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20254 if test "${ac_cv_struct_tm+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 #include <sys/types.h>
20264 #include <time.h>
20267 main ()
20269 struct tm tm;
20270 int *p = &tm.tm_sec;
20271 return !p;
20273 return 0;
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_cxx_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_cv_struct_tm=time.h
20294 else
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_struct_tm=sys/time.h
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20304 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20305 if test $ac_cv_struct_tm = sys/time.h; then
20307 cat >>confdefs.h <<\_ACEOF
20308 #define TM_IN_SYS_TIME 1
20309 _ACEOF
20314 # Checks for library functions.
20315 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20316 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
20317 if test "${ac_cv_func_closedir_void+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320 if test "$cross_compiling" = yes; then
20321 ac_cv_func_closedir_void=yes
20322 else
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 $ac_includes_default
20330 #include <$ac_header_dirent>
20331 #ifndef __cplusplus
20332 int closedir ();
20333 #endif
20336 main ()
20338 return closedir (opendir (".")) != 0;
20340 return 0;
20342 _ACEOF
20343 rm -f conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20354 { (case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_try") 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_func_closedir_void=no
20364 else
20365 echo "$as_me: program exited with status $ac_status" >&5
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ( exit $ac_status )
20370 ac_cv_func_closedir_void=yes
20372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20378 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
20379 if test $ac_cv_func_closedir_void = yes; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define CLOSEDIR_VOID 1
20383 _ACEOF
20387 if test $ac_cv_c_compiler_gnu = yes; then
20388 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20389 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20390 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393 ac_pattern="Autoconf.*'x'"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <sgtty.h>
20401 Autoconf TIOCGETP
20402 _ACEOF
20403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20405 ac_cv_prog_gcc_traditional=yes
20406 else
20407 ac_cv_prog_gcc_traditional=no
20409 rm -f conftest*
20412 if test $ac_cv_prog_gcc_traditional = no; then
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 #include <termio.h>
20420 Autoconf TCGETA
20421 _ACEOF
20422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20423 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20424 ac_cv_prog_gcc_traditional=yes
20426 rm -f conftest*
20430 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20431 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20432 if test $ac_cv_prog_gcc_traditional = yes; then
20433 CC="$CC -traditional"
20438 for ac_header in stdlib.h
20440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 ac_res=`eval echo '${'$as_ac_Header'}'`
20448 { echo "$as_me:$LINENO: result: $ac_res" >&5
20449 echo "${ECHO_T}$ac_res" >&6; }
20450 else
20451 # Is the header compilable?
20452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h. */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 $ac_includes_default
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_cxx_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.$ac_objext; then
20480 ac_header_compiler=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_compiler=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20490 echo "${ECHO_T}$ac_header_compiler" >&6; }
20492 # Is the header present?
20493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20495 cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h. */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <$ac_header>
20502 _ACEOF
20503 if { (ac_try="$ac_cpp conftest.$ac_ext"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20510 ac_status=$?
20511 grep -v '^ *+' conftest.er1 >conftest.err
20512 rm -f conftest.er1
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } >/dev/null && {
20516 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20517 test ! -s conftest.err
20518 }; then
20519 ac_header_preproc=yes
20520 else
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_header_preproc=no
20527 rm -f conftest.err conftest.$ac_ext
20528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20529 echo "${ECHO_T}$ac_header_preproc" >&6; }
20531 # So? What about this header?
20532 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20533 yes:no: )
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20538 ac_header_preproc=yes
20540 no:yes:* )
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20553 ( cat <<\_ASBOX
20554 ## ------------------------------------------------ ##
20555 ## Report this to barry-devel@lists.sourceforge.net ##
20556 ## ------------------------------------------------ ##
20557 _ASBOX
20558 ) | sed "s/^/$as_me: WARNING: /" >&2
20560 esac
20561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566 eval "$as_ac_Header=\$ac_header_preproc"
20568 ac_res=`eval echo '${'$as_ac_Header'}'`
20569 { echo "$as_me:$LINENO: result: $ac_res" >&5
20570 echo "${ECHO_T}$ac_res" >&6; }
20573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20576 _ACEOF
20580 done
20582 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20583 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
20584 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 if test "$cross_compiling" = yes; then
20588 ac_cv_func_malloc_0_nonnull=no
20589 else
20590 cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h. */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20597 # include <stdlib.h>
20598 #else
20599 char *malloc ();
20600 #endif
20603 main ()
20605 return ! malloc (0);
20607 return 0;
20609 _ACEOF
20610 rm -f conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20630 ac_cv_func_malloc_0_nonnull=yes
20631 else
20632 echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ( exit $ac_status )
20637 ac_cv_func_malloc_0_nonnull=no
20639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20644 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20645 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20646 if test $ac_cv_func_malloc_0_nonnull = yes; then
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE_MALLOC 1
20650 _ACEOF
20652 else
20653 cat >>confdefs.h <<\_ACEOF
20654 #define HAVE_MALLOC 0
20655 _ACEOF
20657 case " $LIBOBJS " in
20658 *" malloc.$ac_objext "* ) ;;
20659 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20661 esac
20664 cat >>confdefs.h <<\_ACEOF
20665 #define malloc rpl_malloc
20666 _ACEOF
20676 for ac_header in $ac_header_list
20678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 ac_res=`eval echo '${'$as_ac_Header'}'`
20686 { echo "$as_me:$LINENO: result: $ac_res" >&5
20687 echo "${ECHO_T}$ac_res" >&6; }
20688 else
20689 # Is the header compilable?
20690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20692 cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h. */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 $ac_includes_default
20699 #include <$ac_header>
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_cxx_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest.$ac_objext; then
20718 ac_header_compiler=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_header_compiler=no
20726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20728 echo "${ECHO_T}$ac_header_compiler" >&6; }
20730 # Is the header present?
20731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20733 cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h. */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20739 #include <$ac_header>
20740 _ACEOF
20741 if { (ac_try="$ac_cpp conftest.$ac_ext"
20742 case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } >/dev/null && {
20754 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20755 test ! -s conftest.err
20756 }; then
20757 ac_header_preproc=yes
20758 else
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_header_preproc=no
20765 rm -f conftest.err conftest.$ac_ext
20766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20767 echo "${ECHO_T}$ac_header_preproc" >&6; }
20769 # So? What about this header?
20770 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20771 yes:no: )
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20776 ac_header_preproc=yes
20778 no:yes:* )
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20791 ( cat <<\_ASBOX
20792 ## ------------------------------------------------ ##
20793 ## Report this to barry-devel@lists.sourceforge.net ##
20794 ## ------------------------------------------------ ##
20795 _ASBOX
20796 ) | sed "s/^/$as_me: WARNING: /" >&2
20798 esac
20799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804 eval "$as_ac_Header=\$ac_header_preproc"
20806 ac_res=`eval echo '${'$as_ac_Header'}'`
20807 { echo "$as_me:$LINENO: result: $ac_res" >&5
20808 echo "${ECHO_T}$ac_res" >&6; }
20811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20812 cat >>confdefs.h <<_ACEOF
20813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20814 _ACEOF
20818 done
20828 for ac_func in $ac_func_list
20830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20844 #define $ac_func innocuous_$ac_func
20846 /* System header to define __stub macros and hopefully few prototypes,
20847 which can conflict with char $ac_func (); below.
20848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20849 <limits.h> exists even on freestanding compilers. */
20851 #ifdef __STDC__
20852 # include <limits.h>
20853 #else
20854 # include <assert.h>
20855 #endif
20857 #undef $ac_func
20859 /* Override any GCC internal prototype to avoid an error.
20860 Use char because int might match the return type of a GCC
20861 builtin and then its argument prototype would still apply. */
20862 #ifdef __cplusplus
20863 extern "C"
20864 #endif
20865 char $ac_func ();
20866 /* The GNU C library defines this for functions which it implements
20867 to always fail with ENOSYS. Some functions are actually named
20868 something starting with __ and the normal name is an alias. */
20869 #if defined __stub_$ac_func || defined __stub___$ac_func
20870 choke me
20871 #endif
20874 main ()
20876 return $ac_func ();
20878 return 0;
20880 _ACEOF
20881 rm -f conftest.$ac_objext conftest$ac_exeext
20882 if { (ac_try="$ac_link"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_link") 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && {
20895 test -z "$ac_cxx_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest$ac_exeext &&
20898 $as_test_x conftest$ac_exeext; then
20899 eval "$as_ac_var=yes"
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 eval "$as_ac_var=no"
20907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20908 conftest$ac_exeext conftest.$ac_ext
20910 ac_res=`eval echo '${'$as_ac_var'}'`
20911 { echo "$as_me:$LINENO: result: $ac_res" >&5
20912 echo "${ECHO_T}$ac_res" >&6; }
20913 if test `eval echo '${'$as_ac_var'}'` = yes; then
20914 cat >>confdefs.h <<_ACEOF
20915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20916 _ACEOF
20919 done
20937 { echo "$as_me:$LINENO: checking for working mktime" >&5
20938 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
20939 if test "${ac_cv_func_working_mktime+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 if test "$cross_compiling" = yes; then
20943 ac_cv_func_working_mktime=no
20944 else
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 /* Test program from Paul Eggert and Tony Leneis. */
20952 #ifdef TIME_WITH_SYS_TIME
20953 # include <sys/time.h>
20954 # include <time.h>
20955 #else
20956 # ifdef HAVE_SYS_TIME_H
20957 # include <sys/time.h>
20958 # else
20959 # include <time.h>
20960 # endif
20961 #endif
20963 #include <stdlib.h>
20965 #ifdef HAVE_UNISTD_H
20966 # include <unistd.h>
20967 #endif
20969 #ifndef HAVE_ALARM
20970 # define alarm(X) /* empty */
20971 #endif
20973 /* Work around redefinition to rpl_putenv by other config tests. */
20974 #undef putenv
20976 static time_t time_t_max;
20977 static time_t time_t_min;
20979 /* Values we'll use to set the TZ environment variable. */
20980 static char *tz_strings[] = {
20981 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20982 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20984 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20986 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20987 Based on a problem report from Andreas Jaeger. */
20988 static int
20989 spring_forward_gap ()
20991 /* glibc (up to about 1998-10-07) failed this test. */
20992 struct tm tm;
20994 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20995 instead of "TZ=America/Vancouver" in order to detect the bug even
20996 on systems that don't support the Olson extension, or don't have the
20997 full zoneinfo tables installed. */
20998 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21000 tm.tm_year = 98;
21001 tm.tm_mon = 3;
21002 tm.tm_mday = 5;
21003 tm.tm_hour = 2;
21004 tm.tm_min = 0;
21005 tm.tm_sec = 0;
21006 tm.tm_isdst = -1;
21007 return mktime (&tm) != (time_t) -1;
21010 static int
21011 mktime_test1 (now)
21012 time_t now;
21014 struct tm *lt;
21015 return ! (lt = localtime (&now)) || mktime (lt) == now;
21018 static int
21019 mktime_test (now)
21020 time_t now;
21022 return (mktime_test1 (now)
21023 && mktime_test1 ((time_t) (time_t_max - now))
21024 && mktime_test1 ((time_t) (time_t_min + now)));
21027 static int
21028 irix_6_4_bug ()
21030 /* Based on code from Ariel Faigon. */
21031 struct tm tm;
21032 tm.tm_year = 96;
21033 tm.tm_mon = 3;
21034 tm.tm_mday = 0;
21035 tm.tm_hour = 0;
21036 tm.tm_min = 0;
21037 tm.tm_sec = 0;
21038 tm.tm_isdst = -1;
21039 mktime (&tm);
21040 return tm.tm_mon == 2 && tm.tm_mday == 31;
21043 static int
21044 bigtime_test (j)
21045 int j;
21047 struct tm tm;
21048 time_t now;
21049 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21050 now = mktime (&tm);
21051 if (now != (time_t) -1)
21053 struct tm *lt = localtime (&now);
21054 if (! (lt
21055 && lt->tm_year == tm.tm_year
21056 && lt->tm_mon == tm.tm_mon
21057 && lt->tm_mday == tm.tm_mday
21058 && lt->tm_hour == tm.tm_hour
21059 && lt->tm_min == tm.tm_min
21060 && lt->tm_sec == tm.tm_sec
21061 && lt->tm_yday == tm.tm_yday
21062 && lt->tm_wday == tm.tm_wday
21063 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21064 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21065 return 0;
21067 return 1;
21070 static int
21071 year_2050_test ()
21073 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21074 ignoring leap seconds. */
21075 unsigned long int answer = 2527315200UL;
21077 struct tm tm;
21078 time_t t;
21079 tm.tm_year = 2050 - 1900;
21080 tm.tm_mon = 2 - 1;
21081 tm.tm_mday = 1;
21082 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21083 tm.tm_isdst = -1;
21085 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21086 instead of "TZ=America/Vancouver" in order to detect the bug even
21087 on systems that don't support the Olson extension, or don't have the
21088 full zoneinfo tables installed. */
21089 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21091 t = mktime (&tm);
21093 /* Check that the result is either a failure, or close enough
21094 to the correct answer that we can assume the discrepancy is
21095 due to leap seconds. */
21096 return (t == (time_t) -1
21097 || (0 < t && answer - 120 <= t && t <= answer + 120));
21101 main ()
21103 time_t t, delta;
21104 int i, j;
21106 /* This test makes some buggy mktime implementations loop.
21107 Give up after 60 seconds; a mktime slower than that
21108 isn't worth using anyway. */
21109 alarm (60);
21111 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21112 continue;
21113 time_t_max--;
21114 if ((time_t) -1 < 0)
21115 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
21116 continue;
21117 delta = time_t_max / 997; /* a suitable prime number */
21118 for (i = 0; i < N_STRINGS; i++)
21120 if (tz_strings[i])
21121 putenv (tz_strings[i]);
21123 for (t = 0; t <= time_t_max - delta; t += delta)
21124 if (! mktime_test (t))
21125 return 1;
21126 if (! (mktime_test ((time_t) 1)
21127 && mktime_test ((time_t) (60 * 60))
21128 && mktime_test ((time_t) (60 * 60 * 24))))
21129 return 1;
21131 for (j = 1; 0 < j; j *= 2)
21132 if (! bigtime_test (j))
21133 return 1;
21134 if (! bigtime_test (j - 1))
21135 return 1;
21137 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
21139 _ACEOF
21140 rm -f conftest$ac_exeext
21141 if { (ac_try="$ac_link"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_link") 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21151 { (case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_func_working_mktime=yes
21161 else
21162 echo "$as_me: program exited with status $ac_status" >&5
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ( exit $ac_status )
21167 ac_cv_func_working_mktime=no
21169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21175 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
21176 if test $ac_cv_func_working_mktime = no; then
21177 case " $LIBOBJS " in
21178 *" mktime.$ac_objext "* ) ;;
21179 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
21181 esac
21186 for ac_header in stdlib.h
21188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196 { echo "$as_me:$LINENO: result: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21198 else
21199 # Is the header compilable?
21200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h. */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 $ac_includes_default
21209 #include <$ac_header>
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } && {
21225 test -z "$ac_cxx_werror_flag" ||
21226 test ! -s conftest.err
21227 } && test -s conftest.$ac_objext; then
21228 ac_header_compiler=yes
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_header_compiler=no
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6; }
21240 # Is the header present?
21241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h. */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 #include <$ac_header>
21250 _ACEOF
21251 if { (ac_try="$ac_cpp conftest.$ac_ext"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21258 ac_status=$?
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } >/dev/null && {
21264 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21265 test ! -s conftest.err
21266 }; then
21267 ac_header_preproc=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_header_preproc=no
21275 rm -f conftest.err conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21277 echo "${ECHO_T}$ac_header_preproc" >&6; }
21279 # So? What about this header?
21280 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21281 yes:no: )
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21286 ac_header_preproc=yes
21288 no:yes:* )
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21301 ( cat <<\_ASBOX
21302 ## ------------------------------------------------ ##
21303 ## Report this to barry-devel@lists.sourceforge.net ##
21304 ## ------------------------------------------------ ##
21305 _ASBOX
21306 ) | sed "s/^/$as_me: WARNING: /" >&2
21308 esac
21309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314 eval "$as_ac_Header=\$ac_header_preproc"
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317 { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21322 cat >>confdefs.h <<_ACEOF
21323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21324 _ACEOF
21328 done
21330 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21331 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21332 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335 if test "$cross_compiling" = yes; then
21336 ac_cv_func_realloc_0_nonnull=no
21337 else
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21345 # include <stdlib.h>
21346 #else
21347 char *realloc ();
21348 #endif
21351 main ()
21353 return ! realloc (0, 0);
21355 return 0;
21357 _ACEOF
21358 rm -f conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_link") 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21369 { (case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_try") 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_func_realloc_0_nonnull=yes
21379 else
21380 echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ( exit $ac_status )
21385 ac_cv_func_realloc_0_nonnull=no
21387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21392 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21393 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21394 if test $ac_cv_func_realloc_0_nonnull = yes; then
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_REALLOC 1
21398 _ACEOF
21400 else
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_REALLOC 0
21403 _ACEOF
21405 case " $LIBOBJS " in
21406 *" realloc.$ac_objext "* ) ;;
21407 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
21409 esac
21412 cat >>confdefs.h <<\_ACEOF
21413 #define realloc rpl_realloc
21414 _ACEOF
21422 for ac_header in sys/select.h sys/socket.h
21424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21429 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21434 else
21435 # Is the header compilable?
21436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 $ac_includes_default
21445 #include <$ac_header>
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_cxx_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
21464 ac_header_compiler=yes
21465 else
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 ac_header_compiler=no
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21474 echo "${ECHO_T}$ac_header_compiler" >&6; }
21476 # Is the header present?
21477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <$ac_header>
21486 _ACEOF
21487 if { (ac_try="$ac_cpp conftest.$ac_ext"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21494 ac_status=$?
21495 grep -v '^ *+' conftest.er1 >conftest.err
21496 rm -f conftest.er1
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } >/dev/null && {
21500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21501 test ! -s conftest.err
21502 }; then
21503 ac_header_preproc=yes
21504 else
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_header_preproc=no
21511 rm -f conftest.err conftest.$ac_ext
21512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21513 echo "${ECHO_T}$ac_header_preproc" >&6; }
21515 # So? What about this header?
21516 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21517 yes:no: )
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21522 ac_header_preproc=yes
21524 no:yes:* )
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21537 ( cat <<\_ASBOX
21538 ## ------------------------------------------------ ##
21539 ## Report this to barry-devel@lists.sourceforge.net ##
21540 ## ------------------------------------------------ ##
21541 _ASBOX
21542 ) | sed "s/^/$as_me: WARNING: /" >&2
21544 esac
21545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550 eval "$as_ac_Header=\$ac_header_preproc"
21552 ac_res=`eval echo '${'$as_ac_Header'}'`
21553 { echo "$as_me:$LINENO: result: $ac_res" >&5
21554 echo "${ECHO_T}$ac_res" >&6; }
21557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21558 cat >>confdefs.h <<_ACEOF
21559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21560 _ACEOF
21564 done
21566 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
21567 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
21568 if test "${ac_cv_func_select_args+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21572 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21573 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 #ifdef HAVE_SYS_SELECT_H
21582 # include <sys/select.h>
21583 #endif
21584 #ifdef HAVE_SYS_SOCKET_H
21585 # include <sys/socket.h>
21586 #endif
21589 main ()
21591 extern int select ($ac_arg1,
21592 $ac_arg234, $ac_arg234, $ac_arg234,
21593 $ac_arg5);
21595 return 0;
21597 _ACEOF
21598 rm -f conftest.$ac_objext
21599 if { (ac_try="$ac_compile"
21600 case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_compile") 2>conftest.er1
21606 ac_status=$?
21607 grep -v '^ *+' conftest.er1 >conftest.err
21608 rm -f conftest.er1
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } && {
21612 test -z "$ac_cxx_werror_flag" ||
21613 test ! -s conftest.err
21614 } && test -s conftest.$ac_objext; then
21615 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21616 else
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21624 done
21625 done
21626 done
21627 # Provide a safe default value.
21628 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21631 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21632 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
21633 ac_save_IFS=$IFS; IFS=','
21634 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21635 IFS=$ac_save_IFS
21636 shift
21638 cat >>confdefs.h <<_ACEOF
21639 #define SELECT_TYPE_ARG1 $1
21640 _ACEOF
21643 cat >>confdefs.h <<_ACEOF
21644 #define SELECT_TYPE_ARG234 ($2)
21645 _ACEOF
21648 cat >>confdefs.h <<_ACEOF
21649 #define SELECT_TYPE_ARG5 ($3)
21650 _ACEOF
21652 rm -f conftest*
21654 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21655 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
21656 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659 rm -f conftest.sym conftest.file
21660 echo >conftest.file
21661 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21662 if test "$cross_compiling" = yes; then
21663 ac_cv_func_lstat_dereferences_slashed_symlink=no
21664 else
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 $ac_includes_default
21673 main ()
21675 struct stat sbuf;
21676 /* Linux will dereference the symlink and fail.
21677 That is better in the sense that it means we will not
21678 have to compile and use the lstat wrapper. */
21679 return lstat ("conftest.sym/", &sbuf) == 0;
21681 return 0;
21683 _ACEOF
21684 rm -f conftest$ac_exeext
21685 if { (ac_try="$ac_link"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_link") 2>&5
21692 ac_status=$?
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21695 { (case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_try") 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_func_lstat_dereferences_slashed_symlink=yes
21705 else
21706 echo "$as_me: program exited with status $ac_status" >&5
21707 echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ( exit $ac_status )
21711 ac_cv_func_lstat_dereferences_slashed_symlink=no
21713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 else
21718 # If the `ln -s' command failed, then we probably don't even
21719 # have an lstat function.
21720 ac_cv_func_lstat_dereferences_slashed_symlink=no
21722 rm -f conftest.sym conftest.file
21725 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21726 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21728 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21730 cat >>confdefs.h <<_ACEOF
21731 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21732 _ACEOF
21735 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21736 case " $LIBOBJS " in
21737 *" lstat.$ac_objext "* ) ;;
21738 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
21740 esac
21744 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21745 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
21746 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749 if test "$cross_compiling" = yes; then
21750 ac_cv_func_stat_empty_string_bug=yes
21751 else
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 $ac_includes_default
21760 main ()
21762 struct stat sbuf;
21763 return stat ("", &sbuf) == 0;
21765 return 0;
21767 _ACEOF
21768 rm -f conftest$ac_exeext
21769 if { (ac_try="$ac_link"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_link") 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21779 { (case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_try") 2>&5
21785 ac_status=$?
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); }; }; then
21788 ac_cv_func_stat_empty_string_bug=no
21789 else
21790 echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ( exit $ac_status )
21795 ac_cv_func_stat_empty_string_bug=yes
21797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21803 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
21804 if test $ac_cv_func_stat_empty_string_bug = yes; then
21805 case " $LIBOBJS " in
21806 *" stat.$ac_objext "* ) ;;
21807 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
21809 esac
21812 cat >>confdefs.h <<_ACEOF
21813 #define HAVE_STAT_EMPTY_STRING_BUG 1
21814 _ACEOF
21827 for ac_func in bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul
21829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835 cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h. */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21843 #define $ac_func innocuous_$ac_func
21845 /* System header to define __stub macros and hopefully few prototypes,
21846 which can conflict with char $ac_func (); below.
21847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21848 <limits.h> exists even on freestanding compilers. */
21850 #ifdef __STDC__
21851 # include <limits.h>
21852 #else
21853 # include <assert.h>
21854 #endif
21856 #undef $ac_func
21858 /* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21861 #ifdef __cplusplus
21862 extern "C"
21863 #endif
21864 char $ac_func ();
21865 /* The GNU C library defines this for functions which it implements
21866 to always fail with ENOSYS. Some functions are actually named
21867 something starting with __ and the normal name is an alias. */
21868 #if defined __stub_$ac_func || defined __stub___$ac_func
21869 choke me
21870 #endif
21873 main ()
21875 return $ac_func ();
21877 return 0;
21879 _ACEOF
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (ac_try="$ac_link"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_link") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_cxx_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext &&
21897 $as_test_x conftest$ac_exeext; then
21898 eval "$as_ac_var=yes"
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 eval "$as_ac_var=no"
21906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21907 conftest$ac_exeext conftest.$ac_ext
21909 ac_res=`eval echo '${'$as_ac_var'}'`
21910 { echo "$as_me:$LINENO: result: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21912 if test `eval echo '${'$as_ac_var'}'` = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21915 _ACEOF
21918 done
21921 ac_config_files="$ac_config_files Makefile src/Makefile"
21923 cat >confcache <<\_ACEOF
21924 # This file is a shell script that caches the results of configure
21925 # tests run on this system so they can be shared between configure
21926 # scripts and configure runs, see configure's option --config-cache.
21927 # It is not useful on other systems. If it contains results you don't
21928 # want to keep, you may remove or edit it.
21930 # config.status only pays attention to the cache file if you give it
21931 # the --recheck option to rerun configure.
21933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21935 # following values.
21937 _ACEOF
21939 # The following way of writing the cache mishandles newlines in values,
21940 # but we know of no workaround that is simple, portable, and efficient.
21941 # So, we kill variables containing newlines.
21942 # Ultrix sh set writes to stderr and can't be redirected directly,
21943 # and sets the high bit in the cache file unless we assign to the vars.
21945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21946 eval ac_val=\$$ac_var
21947 case $ac_val in #(
21948 *${as_nl}*)
21949 case $ac_var in #(
21950 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21951 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21952 esac
21953 case $ac_var in #(
21954 _ | IFS | as_nl) ;; #(
21955 *) $as_unset $ac_var ;;
21956 esac ;;
21957 esac
21958 done
21960 (set) 2>&1 |
21961 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21962 *${as_nl}ac_space=\ *)
21963 # `set' does not quote correctly, so add quotes (double-quote
21964 # substitution turns \\\\ into \\, and sed turns \\ into \).
21965 sed -n \
21966 "s/'/'\\\\''/g;
21967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21968 ;; #(
21970 # `set' quotes correctly as required by POSIX, so do not add quotes.
21971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21973 esac |
21974 sort
21976 sed '
21977 /^ac_cv_env_/b end
21978 t clear
21979 :clear
21980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21981 t end
21982 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21983 :end' >>confcache
21984 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21985 if test -w "$cache_file"; then
21986 test "x$cache_file" != "x/dev/null" &&
21987 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21988 echo "$as_me: updating cache $cache_file" >&6;}
21989 cat confcache >$cache_file
21990 else
21991 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21992 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21995 rm -f confcache
21997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21998 # Let make expand exec_prefix.
21999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22001 DEFS=-DHAVE_CONFIG_H
22003 ac_libobjs=
22004 ac_ltlibobjs=
22005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22006 # 1. Remove the extension, and $U if already installed.
22007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22008 ac_i=`echo "$ac_i" | sed "$ac_script"`
22009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22010 # will be set to the directory where LIBOBJS objects are built.
22011 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22012 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22013 done
22014 LIBOBJS=$ac_libobjs
22016 LTLIBOBJS=$ac_ltlibobjs
22019 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22020 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22021 Usually this means the macro was only invoked conditionally." >&5
22022 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22023 Usually this means the macro was only invoked conditionally." >&2;}
22024 { (exit 1); exit 1; }; }
22026 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22027 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22028 Usually this means the macro was only invoked conditionally." >&5
22029 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22030 Usually this means the macro was only invoked conditionally." >&2;}
22031 { (exit 1); exit 1; }; }
22033 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22034 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22035 Usually this means the macro was only invoked conditionally." >&5
22036 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22037 Usually this means the macro was only invoked conditionally." >&2;}
22038 { (exit 1); exit 1; }; }
22041 : ${CONFIG_STATUS=./config.status}
22042 ac_clean_files_save=$ac_clean_files
22043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22044 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22045 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22046 cat >$CONFIG_STATUS <<_ACEOF
22047 #! $SHELL
22048 # Generated by $as_me.
22049 # Run this file to recreate the current configuration.
22050 # Compiler output produced by configure, useful for debugging
22051 # configure, is in config.log if it exists.
22053 debug=false
22054 ac_cs_recheck=false
22055 ac_cs_silent=false
22056 SHELL=\${CONFIG_SHELL-$SHELL}
22057 _ACEOF
22059 cat >>$CONFIG_STATUS <<\_ACEOF
22060 ## --------------------- ##
22061 ## M4sh Initialization. ##
22062 ## --------------------- ##
22064 # Be more Bourne compatible
22065 DUALCASE=1; export DUALCASE # for MKS sh
22066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22067 emulate sh
22068 NULLCMD=:
22069 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22070 # is contrary to our usage. Disable this feature.
22071 alias -g '${1+"$@"}'='"$@"'
22072 setopt NO_GLOB_SUBST
22073 else
22074 case `(set -o) 2>/dev/null` in
22075 *posix*) set -o posix ;;
22076 esac
22083 # PATH needs CR
22084 # Avoid depending upon Character Ranges.
22085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22088 as_cr_digits='0123456789'
22089 as_cr_alnum=$as_cr_Letters$as_cr_digits
22091 # The user is always right.
22092 if test "${PATH_SEPARATOR+set}" != set; then
22093 echo "#! /bin/sh" >conf$$.sh
22094 echo "exit 0" >>conf$$.sh
22095 chmod +x conf$$.sh
22096 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22097 PATH_SEPARATOR=';'
22098 else
22099 PATH_SEPARATOR=:
22101 rm -f conf$$.sh
22104 # Support unset when possible.
22105 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22106 as_unset=unset
22107 else
22108 as_unset=false
22112 # IFS
22113 # We need space, tab and new line, in precisely that order. Quoting is
22114 # there to prevent editors from complaining about space-tab.
22115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22116 # splitting by setting IFS to empty value.)
22117 as_nl='
22119 IFS=" "" $as_nl"
22121 # Find who we are. Look in the path if we contain no directory separator.
22122 case $0 in
22123 *[\\/]* ) as_myself=$0 ;;
22124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22125 for as_dir in $PATH
22127 IFS=$as_save_IFS
22128 test -z "$as_dir" && as_dir=.
22129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22130 done
22131 IFS=$as_save_IFS
22134 esac
22135 # We did not find ourselves, most probably we were run as `sh COMMAND'
22136 # in which case we are not to be found in the path.
22137 if test "x$as_myself" = x; then
22138 as_myself=$0
22140 if test ! -f "$as_myself"; then
22141 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22142 { (exit 1); exit 1; }
22145 # Work around bugs in pre-3.0 UWIN ksh.
22146 for as_var in ENV MAIL MAILPATH
22147 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22148 done
22149 PS1='$ '
22150 PS2='> '
22151 PS4='+ '
22153 # NLS nuisances.
22154 for as_var in \
22155 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22156 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22157 LC_TELEPHONE LC_TIME
22159 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22160 eval $as_var=C; export $as_var
22161 else
22162 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22164 done
22166 # Required to use basename.
22167 if expr a : '\(a\)' >/dev/null 2>&1 &&
22168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22169 as_expr=expr
22170 else
22171 as_expr=false
22174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22175 as_basename=basename
22176 else
22177 as_basename=false
22181 # Name of the executable.
22182 as_me=`$as_basename -- "$0" ||
22183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22184 X"$0" : 'X\(//\)$' \| \
22185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22186 echo X/"$0" |
22187 sed '/^.*\/\([^/][^/]*\)\/*$/{
22188 s//\1/
22191 /^X\/\(\/\/\)$/{
22192 s//\1/
22195 /^X\/\(\/\).*/{
22196 s//\1/
22199 s/.*/./; q'`
22201 # CDPATH.
22202 $as_unset CDPATH
22206 as_lineno_1=$LINENO
22207 as_lineno_2=$LINENO
22208 test "x$as_lineno_1" != "x$as_lineno_2" &&
22209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22212 # uniformly replaced by the line number. The first 'sed' inserts a
22213 # line-number line after each line using $LINENO; the second 'sed'
22214 # does the real work. The second script uses 'N' to pair each
22215 # line-number line with the line containing $LINENO, and appends
22216 # trailing '-' during substitution so that $LINENO is not a special
22217 # case at line end.
22218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22219 # scripts with optimization help from Paolo Bonzini. Blame Lee
22220 # E. McMahon (1931-1989) for sed's syntax. :-)
22221 sed -n '
22223 /[$]LINENO/=
22224 ' <$as_myself |
22225 sed '
22226 s/[$]LINENO.*/&-/
22227 t lineno
22229 :lineno
22231 :loop
22232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22233 t loop
22234 s/-\n.*//
22235 ' >$as_me.lineno &&
22236 chmod +x "$as_me.lineno" ||
22237 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22238 { (exit 1); exit 1; }; }
22240 # Don't try to exec as it changes $[0], causing all sort of problems
22241 # (the dirname of $[0] is not the place where we might find the
22242 # original and so on. Autoconf is especially sensitive to this).
22243 . "./$as_me.lineno"
22244 # Exit status is that of the last command.
22245 exit
22249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22250 as_dirname=dirname
22251 else
22252 as_dirname=false
22255 ECHO_C= ECHO_N= ECHO_T=
22256 case `echo -n x` in
22257 -n*)
22258 case `echo 'x\c'` in
22259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22260 *) ECHO_C='\c';;
22261 esac;;
22263 ECHO_N='-n';;
22264 esac
22266 if expr a : '\(a\)' >/dev/null 2>&1 &&
22267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22268 as_expr=expr
22269 else
22270 as_expr=false
22273 rm -f conf$$ conf$$.exe conf$$.file
22274 if test -d conf$$.dir; then
22275 rm -f conf$$.dir/conf$$.file
22276 else
22277 rm -f conf$$.dir
22278 mkdir conf$$.dir
22280 echo >conf$$.file
22281 if ln -s conf$$.file conf$$ 2>/dev/null; then
22282 as_ln_s='ln -s'
22283 # ... but there are two gotchas:
22284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22286 # In both cases, we have to default to `cp -p'.
22287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22288 as_ln_s='cp -p'
22289 elif ln conf$$.file conf$$ 2>/dev/null; then
22290 as_ln_s=ln
22291 else
22292 as_ln_s='cp -p'
22294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22295 rmdir conf$$.dir 2>/dev/null
22297 if mkdir -p . 2>/dev/null; then
22298 as_mkdir_p=:
22299 else
22300 test -d ./-p && rmdir ./-p
22301 as_mkdir_p=false
22304 if test -x / >/dev/null 2>&1; then
22305 as_test_x='test -x'
22306 else
22307 if ls -dL / >/dev/null 2>&1; then
22308 as_ls_L_option=L
22309 else
22310 as_ls_L_option=
22312 as_test_x='
22313 eval sh -c '\''
22314 if test -d "$1"; then
22315 test -d "$1/.";
22316 else
22317 case $1 in
22318 -*)set "./$1";;
22319 esac;
22320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22321 ???[sx]*):;;*)false;;esac;fi
22322 '\'' sh
22325 as_executable_p=$as_test_x
22327 # Sed expression to map a string onto a valid CPP name.
22328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22330 # Sed expression to map a string onto a valid variable name.
22331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22334 exec 6>&1
22336 # Save the log message, to keep $[0] and so on meaningful, and to
22337 # report actual input values of CONFIG_FILES etc. instead of their
22338 # values after options handling.
22339 ac_log="
22340 This file was extended by barry-backup $as_me 0.1, which was
22341 generated by GNU Autoconf 2.61. Invocation command line was
22343 CONFIG_FILES = $CONFIG_FILES
22344 CONFIG_HEADERS = $CONFIG_HEADERS
22345 CONFIG_LINKS = $CONFIG_LINKS
22346 CONFIG_COMMANDS = $CONFIG_COMMANDS
22347 $ $0 $@
22349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22352 _ACEOF
22354 cat >>$CONFIG_STATUS <<_ACEOF
22355 # Files that config.status was made for.
22356 config_files="$ac_config_files"
22357 config_headers="$ac_config_headers"
22358 config_commands="$ac_config_commands"
22360 _ACEOF
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 ac_cs_usage="\
22364 \`$as_me' instantiates files from templates according to the
22365 current configuration.
22367 Usage: $0 [OPTIONS] [FILE]...
22369 -h, --help print this help, then exit
22370 -V, --version print version number and configuration settings, then exit
22371 -q, --quiet do not print progress messages
22372 -d, --debug don't remove temporary files
22373 --recheck update $as_me by reconfiguring in the same conditions
22374 --file=FILE[:TEMPLATE]
22375 instantiate the configuration file FILE
22376 --header=FILE[:TEMPLATE]
22377 instantiate the configuration header FILE
22379 Configuration files:
22380 $config_files
22382 Configuration headers:
22383 $config_headers
22385 Configuration commands:
22386 $config_commands
22388 Report bugs to <bug-autoconf@gnu.org>."
22390 _ACEOF
22391 cat >>$CONFIG_STATUS <<_ACEOF
22392 ac_cs_version="\\
22393 barry-backup config.status 0.1
22394 configured by $0, generated by GNU Autoconf 2.61,
22395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22397 Copyright (C) 2006 Free Software Foundation, Inc.
22398 This config.status script is free software; the Free Software Foundation
22399 gives unlimited permission to copy, distribute and modify it."
22401 ac_pwd='$ac_pwd'
22402 srcdir='$srcdir'
22403 INSTALL='$INSTALL'
22404 _ACEOF
22406 cat >>$CONFIG_STATUS <<\_ACEOF
22407 # If no file are specified by the user, then we need to provide default
22408 # value. By we need to know if files were specified by the user.
22409 ac_need_defaults=:
22410 while test $# != 0
22412 case $1 in
22413 --*=*)
22414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22416 ac_shift=:
22419 ac_option=$1
22420 ac_optarg=$2
22421 ac_shift=shift
22423 esac
22425 case $ac_option in
22426 # Handling of the options.
22427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22428 ac_cs_recheck=: ;;
22429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22430 echo "$ac_cs_version"; exit ;;
22431 --debug | --debu | --deb | --de | --d | -d )
22432 debug=: ;;
22433 --file | --fil | --fi | --f )
22434 $ac_shift
22435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22436 ac_need_defaults=false;;
22437 --header | --heade | --head | --hea )
22438 $ac_shift
22439 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22440 ac_need_defaults=false;;
22441 --he | --h)
22442 # Conflict between --help and --header
22443 { echo "$as_me: error: ambiguous option: $1
22444 Try \`$0 --help' for more information." >&2
22445 { (exit 1); exit 1; }; };;
22446 --help | --hel | -h )
22447 echo "$ac_cs_usage"; exit ;;
22448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22450 ac_cs_silent=: ;;
22452 # This is an error.
22453 -*) { echo "$as_me: error: unrecognized option: $1
22454 Try \`$0 --help' for more information." >&2
22455 { (exit 1); exit 1; }; } ;;
22457 *) ac_config_targets="$ac_config_targets $1"
22458 ac_need_defaults=false ;;
22460 esac
22461 shift
22462 done
22464 ac_configure_extra_args=
22466 if $ac_cs_silent; then
22467 exec 6>/dev/null
22468 ac_configure_extra_args="$ac_configure_extra_args --silent"
22471 _ACEOF
22472 cat >>$CONFIG_STATUS <<_ACEOF
22473 if \$ac_cs_recheck; then
22474 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22475 CONFIG_SHELL=$SHELL
22476 export CONFIG_SHELL
22477 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22480 _ACEOF
22481 cat >>$CONFIG_STATUS <<\_ACEOF
22482 exec 5>>config.log
22484 echo
22485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22486 ## Running $as_me. ##
22487 _ASBOX
22488 echo "$ac_log"
22489 } >&5
22491 _ACEOF
22492 cat >>$CONFIG_STATUS <<_ACEOF
22494 # INIT-COMMANDS
22496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22498 _ACEOF
22500 cat >>$CONFIG_STATUS <<\_ACEOF
22502 # Handling of arguments.
22503 for ac_config_target in $ac_config_targets
22505 case $ac_config_target in
22506 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22507 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22508 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22509 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22511 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22513 { (exit 1); exit 1; }; };;
22514 esac
22515 done
22518 # If the user did not use the arguments to specify the items to instantiate,
22519 # then the envvar interface is used. Set only those that are not.
22520 # We use the long form for the default assignment because of an extremely
22521 # bizarre bug on SunOS 4.1.3.
22522 if $ac_need_defaults; then
22523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22528 # Have a temporary directory for convenience. Make it in the build tree
22529 # simply because there is no reason against having it here, and in addition,
22530 # creating and moving files from /tmp can sometimes cause problems.
22531 # Hook for its removal unless debugging.
22532 # Note that there is a small window in which the directory will not be cleaned:
22533 # after its creation but before its name has been assigned to `$tmp'.
22534 $debug ||
22536 tmp=
22537 trap 'exit_status=$?
22538 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22540 trap '{ (exit 1); exit 1; }' 1 2 13 15
22542 # Create a (secure) tmp directory for tmp files.
22545 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22546 test -n "$tmp" && test -d "$tmp"
22547 } ||
22549 tmp=./conf$$-$RANDOM
22550 (umask 077 && mkdir "$tmp")
22551 } ||
22553 echo "$me: cannot create a temporary directory in ." >&2
22554 { (exit 1); exit 1; }
22558 # Set up the sed scripts for CONFIG_FILES section.
22561 # No need to generate the scripts if there are no CONFIG_FILES.
22562 # This happens for instance when ./config.status config.h
22563 if test -n "$CONFIG_FILES"; then
22565 _ACEOF
22569 ac_delim='%!_!# '
22570 for ac_last_try in false false false false false :; do
22571 cat >conf$$subs.sed <<_ACEOF
22572 SHELL!$SHELL$ac_delim
22573 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22574 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22575 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22576 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22577 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22578 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22579 exec_prefix!$exec_prefix$ac_delim
22580 prefix!$prefix$ac_delim
22581 program_transform_name!$program_transform_name$ac_delim
22582 bindir!$bindir$ac_delim
22583 sbindir!$sbindir$ac_delim
22584 libexecdir!$libexecdir$ac_delim
22585 datarootdir!$datarootdir$ac_delim
22586 datadir!$datadir$ac_delim
22587 sysconfdir!$sysconfdir$ac_delim
22588 sharedstatedir!$sharedstatedir$ac_delim
22589 localstatedir!$localstatedir$ac_delim
22590 includedir!$includedir$ac_delim
22591 oldincludedir!$oldincludedir$ac_delim
22592 docdir!$docdir$ac_delim
22593 infodir!$infodir$ac_delim
22594 htmldir!$htmldir$ac_delim
22595 dvidir!$dvidir$ac_delim
22596 pdfdir!$pdfdir$ac_delim
22597 psdir!$psdir$ac_delim
22598 libdir!$libdir$ac_delim
22599 localedir!$localedir$ac_delim
22600 mandir!$mandir$ac_delim
22601 DEFS!$DEFS$ac_delim
22602 ECHO_C!$ECHO_C$ac_delim
22603 ECHO_N!$ECHO_N$ac_delim
22604 ECHO_T!$ECHO_T$ac_delim
22605 LIBS!$LIBS$ac_delim
22606 build_alias!$build_alias$ac_delim
22607 host_alias!$host_alias$ac_delim
22608 target_alias!$target_alias$ac_delim
22609 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22610 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22611 INSTALL_DATA!$INSTALL_DATA$ac_delim
22612 CYGPATH_W!$CYGPATH_W$ac_delim
22613 PACKAGE!$PACKAGE$ac_delim
22614 VERSION!$VERSION$ac_delim
22615 ACLOCAL!$ACLOCAL$ac_delim
22616 AUTOCONF!$AUTOCONF$ac_delim
22617 AUTOMAKE!$AUTOMAKE$ac_delim
22618 AUTOHEADER!$AUTOHEADER$ac_delim
22619 MAKEINFO!$MAKEINFO$ac_delim
22620 install_sh!$install_sh$ac_delim
22621 STRIP!$STRIP$ac_delim
22622 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22623 mkdir_p!$mkdir_p$ac_delim
22624 AWK!$AWK$ac_delim
22625 SET_MAKE!$SET_MAKE$ac_delim
22626 am__leading_dot!$am__leading_dot$ac_delim
22627 AMTAR!$AMTAR$ac_delim
22628 am__tar!$am__tar$ac_delim
22629 am__untar!$am__untar$ac_delim
22630 CC!$CC$ac_delim
22631 CFLAGS!$CFLAGS$ac_delim
22632 LDFLAGS!$LDFLAGS$ac_delim
22633 CPPFLAGS!$CPPFLAGS$ac_delim
22634 ac_ct_CC!$ac_ct_CC$ac_delim
22635 EXEEXT!$EXEEXT$ac_delim
22636 OBJEXT!$OBJEXT$ac_delim
22637 DEPDIR!$DEPDIR$ac_delim
22638 am__include!$am__include$ac_delim
22639 am__quote!$am__quote$ac_delim
22640 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22641 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22642 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22643 CCDEPMODE!$CCDEPMODE$ac_delim
22644 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22645 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22646 CXX!$CXX$ac_delim
22647 CXXFLAGS!$CXXFLAGS$ac_delim
22648 ac_ct_CXX!$ac_ct_CXX$ac_delim
22649 CXXDEPMODE!$CXXDEPMODE$ac_delim
22650 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22651 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22652 build!$build$ac_delim
22653 build_cpu!$build_cpu$ac_delim
22654 build_vendor!$build_vendor$ac_delim
22655 build_os!$build_os$ac_delim
22656 host!$host$ac_delim
22657 host_cpu!$host_cpu$ac_delim
22658 host_vendor!$host_vendor$ac_delim
22659 host_os!$host_os$ac_delim
22660 GREP!$GREP$ac_delim
22661 EGREP!$EGREP$ac_delim
22662 LN_S!$LN_S$ac_delim
22663 ECHO!$ECHO$ac_delim
22664 AR!$AR$ac_delim
22665 RANLIB!$RANLIB$ac_delim
22666 CPP!$CPP$ac_delim
22667 CXXCPP!$CXXCPP$ac_delim
22668 F77!$F77$ac_delim
22669 _ACEOF
22671 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22672 break
22673 elif $ac_last_try; then
22674 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22675 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22676 { (exit 1); exit 1; }; }
22677 else
22678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22680 done
22682 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22683 if test -n "$ac_eof"; then
22684 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22685 ac_eof=`expr $ac_eof + 1`
22688 cat >>$CONFIG_STATUS <<_ACEOF
22689 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22691 _ACEOF
22692 sed '
22693 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22694 s/^/s,@/; s/!/@,|#_!!_#|/
22697 s/'"$ac_delim"'$/,g/; t
22698 s/$/\\/; p
22699 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22700 ' >>$CONFIG_STATUS <conf$$subs.sed
22701 rm -f conf$$subs.sed
22702 cat >>$CONFIG_STATUS <<_ACEOF
22703 CEOF$ac_eof
22704 _ACEOF
22707 ac_delim='%!_!# '
22708 for ac_last_try in false false false false false :; do
22709 cat >conf$$subs.sed <<_ACEOF
22710 FFLAGS!$FFLAGS$ac_delim
22711 ac_ct_F77!$ac_ct_F77$ac_delim
22712 LIBTOOL!$LIBTOOL$ac_delim
22713 LIBTAR_CFLAGS!$LIBTAR_CFLAGS$ac_delim
22714 LIBTAR_LIBS!$LIBTAR_LIBS$ac_delim
22715 LIBZ_CFLAGS!$LIBZ_CFLAGS$ac_delim
22716 LIBZ_LIBS!$LIBZ_LIBS$ac_delim
22717 PKG_CONFIG!$PKG_CONFIG$ac_delim
22718 BARRY_CFLAGS!$BARRY_CFLAGS$ac_delim
22719 BARRY_LIBS!$BARRY_LIBS$ac_delim
22720 GTKMM_CFLAGS!$GTKMM_CFLAGS$ac_delim
22721 GTKMM_LIBS!$GTKMM_LIBS$ac_delim
22722 TREE_BUILD_CXXFLAGS!$TREE_BUILD_CXXFLAGS$ac_delim
22723 TREE_BUILD_LDFLAGS!$TREE_BUILD_LDFLAGS$ac_delim
22724 gladedir!$gladedir$ac_delim
22725 LIBOBJS!$LIBOBJS$ac_delim
22726 LTLIBOBJS!$LTLIBOBJS$ac_delim
22727 _ACEOF
22729 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
22730 break
22731 elif $ac_last_try; then
22732 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22733 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22734 { (exit 1); exit 1; }; }
22735 else
22736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22738 done
22740 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22741 if test -n "$ac_eof"; then
22742 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22743 ac_eof=`expr $ac_eof + 1`
22746 cat >>$CONFIG_STATUS <<_ACEOF
22747 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22749 _ACEOF
22750 sed '
22751 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22752 s/^/s,@/; s/!/@,|#_!!_#|/
22755 s/'"$ac_delim"'$/,g/; t
22756 s/$/\\/; p
22757 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22758 ' >>$CONFIG_STATUS <conf$$subs.sed
22759 rm -f conf$$subs.sed
22760 cat >>$CONFIG_STATUS <<_ACEOF
22761 :end
22762 s/|#_!!_#|//g
22763 CEOF$ac_eof
22764 _ACEOF
22767 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22768 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22769 # trailing colons and then remove the whole line if VPATH becomes empty
22770 # (actually we leave an empty line to preserve line numbers).
22771 if test "x$srcdir" = x.; then
22772 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22773 s/:*\$(srcdir):*/:/
22774 s/:*\${srcdir}:*/:/
22775 s/:*@srcdir@:*/:/
22776 s/^\([^=]*=[ ]*\):*/\1/
22777 s/:*$//
22778 s/^[^=]*=[ ]*$//
22782 cat >>$CONFIG_STATUS <<\_ACEOF
22783 fi # test -n "$CONFIG_FILES"
22786 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22788 case $ac_tag in
22789 :[FHLC]) ac_mode=$ac_tag; continue;;
22790 esac
22791 case $ac_mode$ac_tag in
22792 :[FHL]*:*);;
22793 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22794 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22795 { (exit 1); exit 1; }; };;
22796 :[FH]-) ac_tag=-:-;;
22797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22798 esac
22799 ac_save_IFS=$IFS
22800 IFS=:
22801 set x $ac_tag
22802 IFS=$ac_save_IFS
22803 shift
22804 ac_file=$1
22805 shift
22807 case $ac_mode in
22808 :L) ac_source=$1;;
22809 :[FH])
22810 ac_file_inputs=
22811 for ac_f
22813 case $ac_f in
22814 -) ac_f="$tmp/stdin";;
22815 *) # Look for the file first in the build tree, then in the source tree
22816 # (if the path is not absolute). The absolute path cannot be DOS-style,
22817 # because $ac_f cannot contain `:'.
22818 test -f "$ac_f" ||
22819 case $ac_f in
22820 [\\/$]*) false;;
22821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22822 esac ||
22823 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22824 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22825 { (exit 1); exit 1; }; };;
22826 esac
22827 ac_file_inputs="$ac_file_inputs $ac_f"
22828 done
22830 # Let's still pretend it is `configure' which instantiates (i.e., don't
22831 # use $as_me), people would be surprised to read:
22832 # /* config.h. Generated by config.status. */
22833 configure_input="Generated from "`IFS=:
22834 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22835 if test x"$ac_file" != x-; then
22836 configure_input="$ac_file. $configure_input"
22837 { echo "$as_me:$LINENO: creating $ac_file" >&5
22838 echo "$as_me: creating $ac_file" >&6;}
22841 case $ac_tag in
22842 *:-:* | *:-) cat >"$tmp/stdin";;
22843 esac
22845 esac
22847 ac_dir=`$as_dirname -- "$ac_file" ||
22848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$ac_file" : 'X\(//\)[^/]' \| \
22850 X"$ac_file" : 'X\(//\)$' \| \
22851 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22852 echo X"$ac_file" |
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22854 s//\1/
22857 /^X\(\/\/\)[^/].*/{
22858 s//\1/
22861 /^X\(\/\/\)$/{
22862 s//\1/
22865 /^X\(\/\).*/{
22866 s//\1/
22869 s/.*/./; q'`
22870 { as_dir="$ac_dir"
22871 case $as_dir in #(
22872 -*) as_dir=./$as_dir;;
22873 esac
22874 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22875 as_dirs=
22876 while :; do
22877 case $as_dir in #(
22878 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22879 *) as_qdir=$as_dir;;
22880 esac
22881 as_dirs="'$as_qdir' $as_dirs"
22882 as_dir=`$as_dirname -- "$as_dir" ||
22883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22884 X"$as_dir" : 'X\(//\)[^/]' \| \
22885 X"$as_dir" : 'X\(//\)$' \| \
22886 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22887 echo X"$as_dir" |
22888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22889 s//\1/
22892 /^X\(\/\/\)[^/].*/{
22893 s//\1/
22896 /^X\(\/\/\)$/{
22897 s//\1/
22900 /^X\(\/\).*/{
22901 s//\1/
22904 s/.*/./; q'`
22905 test -d "$as_dir" && break
22906 done
22907 test -z "$as_dirs" || eval "mkdir $as_dirs"
22908 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22909 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22910 { (exit 1); exit 1; }; }; }
22911 ac_builddir=.
22913 case "$ac_dir" in
22914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22917 # A ".." for each directory in $ac_dir_suffix.
22918 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22919 case $ac_top_builddir_sub in
22920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22922 esac ;;
22923 esac
22924 ac_abs_top_builddir=$ac_pwd
22925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22926 # for backward compatibility:
22927 ac_top_builddir=$ac_top_build_prefix
22929 case $srcdir in
22930 .) # We are building in place.
22931 ac_srcdir=.
22932 ac_top_srcdir=$ac_top_builddir_sub
22933 ac_abs_top_srcdir=$ac_pwd ;;
22934 [\\/]* | ?:[\\/]* ) # Absolute name.
22935 ac_srcdir=$srcdir$ac_dir_suffix;
22936 ac_top_srcdir=$srcdir
22937 ac_abs_top_srcdir=$srcdir ;;
22938 *) # Relative name.
22939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22940 ac_top_srcdir=$ac_top_build_prefix$srcdir
22941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22942 esac
22943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22946 case $ac_mode in
22949 # CONFIG_FILE
22952 case $INSTALL in
22953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22955 esac
22956 _ACEOF
22958 cat >>$CONFIG_STATUS <<\_ACEOF
22959 # If the template does not know about datarootdir, expand it.
22960 # FIXME: This hack should be removed a few years after 2.60.
22961 ac_datarootdir_hack=; ac_datarootdir_seen=
22963 case `sed -n '/datarootdir/ {
22967 /@datadir@/p
22968 /@docdir@/p
22969 /@infodir@/p
22970 /@localedir@/p
22971 /@mandir@/p
22972 ' $ac_file_inputs` in
22973 *datarootdir*) ac_datarootdir_seen=yes;;
22974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22975 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22976 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22977 _ACEOF
22978 cat >>$CONFIG_STATUS <<_ACEOF
22979 ac_datarootdir_hack='
22980 s&@datadir@&$datadir&g
22981 s&@docdir@&$docdir&g
22982 s&@infodir@&$infodir&g
22983 s&@localedir@&$localedir&g
22984 s&@mandir@&$mandir&g
22985 s&\\\${datarootdir}&$datarootdir&g' ;;
22986 esac
22987 _ACEOF
22989 # Neutralize VPATH when `$srcdir' = `.'.
22990 # Shell code in configure.ac might set extrasub.
22991 # FIXME: do we really want to maintain this feature?
22992 cat >>$CONFIG_STATUS <<_ACEOF
22993 sed "$ac_vpsub
22994 $extrasub
22995 _ACEOF
22996 cat >>$CONFIG_STATUS <<\_ACEOF
22998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22999 s&@configure_input@&$configure_input&;t t
23000 s&@top_builddir@&$ac_top_builddir_sub&;t t
23001 s&@srcdir@&$ac_srcdir&;t t
23002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23003 s&@top_srcdir@&$ac_top_srcdir&;t t
23004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23005 s&@builddir@&$ac_builddir&;t t
23006 s&@abs_builddir@&$ac_abs_builddir&;t t
23007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23008 s&@INSTALL@&$ac_INSTALL&;t t
23009 $ac_datarootdir_hack
23010 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23012 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23013 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23015 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23016 which seems to be undefined. Please make sure it is defined." >&5
23017 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23018 which seems to be undefined. Please make sure it is defined." >&2;}
23020 rm -f "$tmp/stdin"
23021 case $ac_file in
23022 -) cat "$tmp/out"; rm -f "$tmp/out";;
23023 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23024 esac
23028 # CONFIG_HEADER
23030 _ACEOF
23032 # Transform confdefs.h into a sed script `conftest.defines', that
23033 # substitutes the proper values into config.h.in to produce config.h.
23034 rm -f conftest.defines conftest.tail
23035 # First, append a space to every undef/define line, to ease matching.
23036 echo 's/$/ /' >conftest.defines
23037 # Then, protect against being on the right side of a sed subst, or in
23038 # an unquoted here document, in config.status. If some macros were
23039 # called several times there might be several #defines for the same
23040 # symbol, which is useless. But do not sort them, since the last
23041 # AC_DEFINE must be honored.
23042 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23043 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23044 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23045 # PARAMS is the parameter list in the macro definition--in most cases, it's
23046 # just an empty string.
23047 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23048 ac_dB='\\)[ (].*,\\1define\\2'
23049 ac_dC=' '
23050 ac_dD=' ,'
23052 uniq confdefs.h |
23053 sed -n '
23054 t rset
23055 :rset
23056 s/^[ ]*#[ ]*define[ ][ ]*//
23057 t ok
23060 s/[\\&,]/\\&/g
23061 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23062 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23063 ' >>conftest.defines
23065 # Remove the space that was appended to ease matching.
23066 # Then replace #undef with comments. This is necessary, for
23067 # example, in the case of _POSIX_SOURCE, which is predefined and required
23068 # on some systems where configure will not decide to define it.
23069 # (The regexp can be short, since the line contains either #define or #undef.)
23070 echo 's/ $//
23071 s,^[ #]*u.*,/* & */,' >>conftest.defines
23073 # Break up conftest.defines:
23074 ac_max_sed_lines=50
23076 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23077 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23078 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23079 # et cetera.
23080 ac_in='$ac_file_inputs'
23081 ac_out='"$tmp/out1"'
23082 ac_nxt='"$tmp/out2"'
23084 while :
23086 # Write a here document:
23087 cat >>$CONFIG_STATUS <<_ACEOF
23088 # First, check the format of the line:
23089 cat >"\$tmp/defines.sed" <<\\CEOF
23090 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23091 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23093 :def
23094 _ACEOF
23095 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23096 echo 'CEOF
23097 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23098 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23099 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23100 grep . conftest.tail >/dev/null || break
23101 rm -f conftest.defines
23102 mv conftest.tail conftest.defines
23103 done
23104 rm -f conftest.defines conftest.tail
23106 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23108 if test x"$ac_file" != x-; then
23109 echo "/* $configure_input */" >"$tmp/config.h"
23110 cat "$ac_result" >>"$tmp/config.h"
23111 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23112 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23113 echo "$as_me: $ac_file is unchanged" >&6;}
23114 else
23115 rm -f $ac_file
23116 mv "$tmp/config.h" $ac_file
23118 else
23119 echo "/* $configure_input */"
23120 cat "$ac_result"
23122 rm -f "$tmp/out12"
23123 # Compute $ac_file's index in $config_headers.
23124 _am_stamp_count=1
23125 for _am_header in $config_headers :; do
23126 case $_am_header in
23127 $ac_file | $ac_file:* )
23128 break ;;
23130 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23131 esac
23132 done
23133 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23134 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23135 X$ac_file : 'X\(//\)[^/]' \| \
23136 X$ac_file : 'X\(//\)$' \| \
23137 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23138 echo X$ac_file |
23139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23140 s//\1/
23143 /^X\(\/\/\)[^/].*/{
23144 s//\1/
23147 /^X\(\/\/\)$/{
23148 s//\1/
23151 /^X\(\/\).*/{
23152 s//\1/
23155 s/.*/./; q'`/stamp-h$_am_stamp_count
23158 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23159 echo "$as_me: executing $ac_file commands" >&6;}
23161 esac
23164 case $ac_file$ac_mode in
23165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23166 # Strip MF so we end up with the name of the file.
23167 mf=`echo "$mf" | sed -e 's/:.*$//'`
23168 # Check whether this is an Automake generated Makefile or not.
23169 # We used to match only the files named `Makefile.in', but
23170 # some people rename them; so instead we look at the file content.
23171 # Grep'ing the first line is not enough: some people post-process
23172 # each Makefile.in and add a new line on top of each file to say so.
23173 # So let's grep whole file.
23174 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23175 dirpart=`$as_dirname -- "$mf" ||
23176 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23177 X"$mf" : 'X\(//\)[^/]' \| \
23178 X"$mf" : 'X\(//\)$' \| \
23179 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23180 echo X"$mf" |
23181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23182 s//\1/
23185 /^X\(\/\/\)[^/].*/{
23186 s//\1/
23189 /^X\(\/\/\)$/{
23190 s//\1/
23193 /^X\(\/\).*/{
23194 s//\1/
23197 s/.*/./; q'`
23198 else
23199 continue
23201 # Extract the definition of DEPDIR, am__include, and am__quote
23202 # from the Makefile without running `make'.
23203 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23204 test -z "$DEPDIR" && continue
23205 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23206 test -z "am__include" && continue
23207 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23208 # When using ansi2knr, U may be empty or an underscore; expand it
23209 U=`sed -n 's/^U = //p' < "$mf"`
23210 # Find all dependency output files, they are included files with
23211 # $(DEPDIR) in their names. We invoke sed twice because it is the
23212 # simplest approach to changing $(DEPDIR) to its actual value in the
23213 # expansion.
23214 for file in `sed -n "
23215 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23216 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23217 # Make sure the directory exists.
23218 test -f "$dirpart/$file" && continue
23219 fdir=`$as_dirname -- "$file" ||
23220 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221 X"$file" : 'X\(//\)[^/]' \| \
23222 X"$file" : 'X\(//\)$' \| \
23223 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23224 echo X"$file" |
23225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23226 s//\1/
23229 /^X\(\/\/\)[^/].*/{
23230 s//\1/
23233 /^X\(\/\/\)$/{
23234 s//\1/
23237 /^X\(\/\).*/{
23238 s//\1/
23241 s/.*/./; q'`
23242 { as_dir=$dirpart/$fdir
23243 case $as_dir in #(
23244 -*) as_dir=./$as_dir;;
23245 esac
23246 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23247 as_dirs=
23248 while :; do
23249 case $as_dir in #(
23250 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23251 *) as_qdir=$as_dir;;
23252 esac
23253 as_dirs="'$as_qdir' $as_dirs"
23254 as_dir=`$as_dirname -- "$as_dir" ||
23255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23256 X"$as_dir" : 'X\(//\)[^/]' \| \
23257 X"$as_dir" : 'X\(//\)$' \| \
23258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23259 echo X"$as_dir" |
23260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23261 s//\1/
23264 /^X\(\/\/\)[^/].*/{
23265 s//\1/
23268 /^X\(\/\/\)$/{
23269 s//\1/
23272 /^X\(\/\).*/{
23273 s//\1/
23276 s/.*/./; q'`
23277 test -d "$as_dir" && break
23278 done
23279 test -z "$as_dirs" || eval "mkdir $as_dirs"
23280 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23281 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23282 { (exit 1); exit 1; }; }; }
23283 # echo "creating $dirpart/$file"
23284 echo '# dummy' > "$dirpart/$file"
23285 done
23286 done
23289 esac
23290 done # for ac_tag
23293 { (exit 0); exit 0; }
23294 _ACEOF
23295 chmod +x $CONFIG_STATUS
23296 ac_clean_files=$ac_clean_files_save
23299 # configure is writing to config.log, and then calls config.status.
23300 # config.status does its own redirection, appending to config.log.
23301 # Unfortunately, on DOS this fails, as config.log is still kept open
23302 # by configure, so config.status won't be able to write to it; its
23303 # output is simply discarded. So we exec the FD to /dev/null,
23304 # effectively closing config.log, so it can be properly (re)opened and
23305 # appended to by config.status. When coming back to configure, we
23306 # need to make the FD available again.
23307 if test "$no_create" != yes; then
23308 ac_cs_success=:
23309 ac_config_status_args=
23310 test "$silent" = yes &&
23311 ac_config_status_args="$ac_config_status_args --quiet"
23312 exec 5>/dev/null
23313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23314 exec 5>>config.log
23315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23316 # would make configure fail if this is the last instruction.
23317 $ac_cs_success || { (exit 1); exit 1; }