Tarball tree for barry-0.15.tar.bz2
[barry.git] / opensync-plugin / configure
blob860c134accfe8ba5313accbce0cedd80d6e9aee7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Barry OpenSync Plugin 0.2.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='Barry OpenSync Plugin'
728 PACKAGE_TARNAME='barryplugin'
729 PACKAGE_VERSION='0.2'
730 PACKAGE_STRING='Barry OpenSync Plugin 0.2'
731 PACKAGE_BUGREPORT=''
733 ac_unique_file="src/barry_sync.cc"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 PKG_CONFIG
829 PACKAGE_CFLAGS
830 PACKAGE_LIBS
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
848 GREP
849 EGREP
851 CXXFLAGS
852 ac_ct_CXX
853 CXXDEPMODE
854 am__fastdepCXX_TRUE
855 am__fastdepCXX_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
865 LN_S
866 ECHO
868 RANLIB
869 DSYMUTIL
870 NMEDIT
871 CXXCPP
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 WITH_GCCVISIBILITY_TRUE
877 WITH_GCCVISIBILITY_FALSE
878 BARRY_CFLAGS
879 BARRY_LIBS
880 TREE_BUILD_CXXFLAGS
881 TREE_BUILD_LDFLAGS
882 OPENSYNC_CONFIGDIR
883 OPENSYNC_PLUGINDIR
884 OPENSYNC_FORMATSDIR
885 OPENSYNC_HEADERDIR
886 LIBOBJS
887 LTLIBOBJS'
888 ac_subst_files=''
889 ac_precious_vars='build_alias
890 host_alias
891 target_alias
892 PKG_CONFIG
893 PACKAGE_CFLAGS
894 PACKAGE_LIBS
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
902 CXXFLAGS
904 CXXCPP
906 FFLAGS
907 BARRY_CFLAGS
908 BARRY_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 OpenSync Plugin 0.2 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/barryplugin]
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 OpenSync Plugin 0.2:";;
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-static[=PKGS] build static libraries [default=no]
1491 --enable-shared[=PKGS] build shared 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]
1504 Some influential environment variables:
1505 PKG_CONFIG path to pkg-config utility
1506 PACKAGE_CFLAGS
1507 C compiler flags for PACKAGE, overriding pkg-config
1508 PACKAGE_LIBS
1509 linker flags for PACKAGE, overriding pkg-config
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CPP C preprocessor
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CXXCPP C++ preprocessor
1521 F77 Fortran 77 compiler command
1522 FFLAGS Fortran 77 compiler flags
1523 BARRY_CFLAGS
1524 C compiler flags for BARRY, overriding pkg-config
1525 BARRY_LIBS linker flags for BARRY, overriding pkg-config
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 _ACEOF
1531 ac_status=$?
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" || continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 Barry OpenSync Plugin configure 0.2
1591 generated by GNU Autoconf 2.61
1593 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1594 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598 exit
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1604 It was created by Barry OpenSync Plugin $as_me 0.2, which was
1605 generated by GNU Autoconf 2.61. Invocation command line was
1607 $ $0 $@
1609 _ACEOF
1610 exec 5>>config.log
1612 cat <<_ASUNAME
1613 ## --------- ##
1614 ## Platform. ##
1615 ## --------- ##
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 _ASUNAME
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1639 IFS=$as_save_IFS
1640 test -z "$as_dir" && as_dir=.
1641 echo "PATH: $as_dir"
1642 done
1643 IFS=$as_save_IFS
1645 } >&5
1647 cat >&5 <<_ACEOF
1650 ## ----------- ##
1651 ## Core tests. ##
1652 ## ----------- ##
1654 _ACEOF
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_configure_args=
1663 ac_configure_args0=
1664 ac_configure_args1=
1665 ac_must_keep_next=false
1666 for ac_pass in 1 2
1668 for ac_arg
1670 case $ac_arg in
1671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1674 continue ;;
1675 *\'*)
1676 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 esac
1678 case $ac_pass in
1679 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1682 if test $ac_must_keep_next = true; then
1683 ac_must_keep_next=false # Got value, back to normal.
1684 else
1685 case $ac_arg in
1686 *=* | --config-cache | -C | -disable-* | --disable-* \
1687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689 | -with-* | --with-* | -without-* | --without-* | --x)
1690 case "$ac_configure_args0 " in
1691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 esac
1694 -* ) ac_must_keep_next=true ;;
1695 esac
1697 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 esac
1700 done
1701 done
1702 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1703 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log. We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711 # Save into config.log some information that might help in debugging.
1713 echo
1715 cat <<\_ASBOX
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1719 _ASBOX
1720 echo
1721 # The following way of writing the cache mishandles newlines in values,
1723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724 eval ac_val=\$$ac_var
1725 case $ac_val in #(
1726 *${as_nl}*)
1727 case $ac_var in #(
1728 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1729 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 esac
1731 case $ac_var in #(
1732 _ | IFS | as_nl) ;; #(
1733 *) $as_unset $ac_var ;;
1734 esac ;;
1735 esac
1736 done
1737 (set) 2>&1 |
1738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1740 sed -n \
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 ;; #(
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 esac |
1748 sort
1750 echo
1752 cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1768 if test -n "$ac_subst_files"; then
1769 cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774 echo
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1778 case $ac_val in
1779 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 esac
1781 echo "$ac_var='\''$ac_val'\''"
1782 done | sort
1783 echo
1786 if test -s confdefs.h; then
1787 cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792 echo
1793 cat confdefs.h
1794 echo
1796 test "$ac_signal" != 0 &&
1797 echo "$as_me: caught signal $ac_signal"
1798 echo "$as_me: exit $exit_status"
1799 } >&5
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 exit $exit_status
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842 set x "$CONFIG_SITE"
1843 elif test "x$prefix" != xNONE; then
1844 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 else
1846 set x "$ac_default_prefix/share/config.site" \
1847 "$ac_default_prefix/etc/config.site"
1849 shift
1850 for ac_site_file
1852 if test -r "$ac_site_file"; then
1853 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1854 echo "$as_me: loading site script $ac_site_file" >&6;}
1855 sed 's/^/| /' "$ac_site_file" >&5
1856 . "$ac_site_file"
1858 done
1860 if test -r "$cache_file"; then
1861 # Some versions of bash will fail to source /dev/null (special
1862 # files actually), so we avoid doing that.
1863 if test -f "$cache_file"; then
1864 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1865 echo "$as_me: loading cache $cache_file" >&6;}
1866 case $cache_file in
1867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1868 *) . "./$cache_file";;
1869 esac
1871 else
1872 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1873 echo "$as_me: creating cache $cache_file" >&6;}
1874 >$cache_file
1877 # Check that the precious variables saved in the cache have kept the same
1878 # value.
1879 ac_cache_corrupted=false
1880 for ac_var in $ac_precious_vars; do
1881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1882 eval ac_new_set=\$ac_env_${ac_var}_set
1883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1884 eval ac_new_val=\$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1886 set,)
1887 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted=: ;;
1890 ,set)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,);;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1898 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1899 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1900 echo "$as_me: former value: $ac_old_val" >&2;}
1901 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1902 echo "$as_me: current value: $ac_new_val" >&2;}
1903 ac_cache_corrupted=:
1904 fi;;
1905 esac
1906 # Pass precious variables to config.status.
1907 if test "$ac_new_set" = set; then
1908 case $ac_new_val in
1909 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1910 *) ac_arg=$ac_var=$ac_new_val ;;
1911 esac
1912 case " $ac_configure_args " in
1913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1914 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1915 esac
1917 done
1918 if $ac_cache_corrupted; then
1919 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1920 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1921 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1922 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1923 { (exit 1); exit 1; }; }
1950 ac_ext=c
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 ac_config_headers="$ac_config_headers config.h"
1960 ac_aux_dir=
1961 for ac_dir in .. "$srcdir"/..; do
1962 if test -f "$ac_dir/install-sh"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 break
1966 elif test -f "$ac_dir/install.sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 break
1970 elif test -f "$ac_dir/shtool"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 break
1975 done
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in .. \"$srcdir\"/.." >&2;}
1979 { (exit 1); exit 1; }; }
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 am__api_version="1.9"
1993 # Find a good install program. We prefer a C program (faster),
1994 # so one script is as good as another. But avoid the broken or
1995 # incompatible versions:
1996 # SysV /etc/install, /usr/sbin/install
1997 # SunOS /usr/etc/install
1998 # IRIX /sbin/install
1999 # AIX /bin/install
2000 # AmigaOS /C/install, which installs bootblocks on floppy discs
2001 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2002 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2004 # OS/2's system install, which has a completely different semantic
2005 # ./install, which can be erroneously created by make from ./install.sh.
2006 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2007 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2008 if test -z "$INSTALL"; then
2009 if test "${ac_cv_path_install+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 # Account for people who put trailing slashes in PATH elements.
2018 case $as_dir/ in
2019 ./ | .// | /cC/* | \
2020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2021 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2022 /usr/ucb/* ) ;;
2024 # OSF1 and SCO ODT 3.0 have their own names for install.
2025 # Don't use installbsd from OSF since it installs stuff as root
2026 # by default.
2027 for ac_prog in ginstall scoinst install; do
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2030 if test $ac_prog = install &&
2031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2032 # AIX install. It has an incompatible calling convention.
2034 elif test $ac_prog = install &&
2035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036 # program-specific install script used by HP pwplus--don't use.
2038 else
2039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2040 break 3
2043 done
2044 done
2046 esac
2047 done
2048 IFS=$as_save_IFS
2052 if test "${ac_cv_path_install+set}" = set; then
2053 INSTALL=$ac_cv_path_install
2054 else
2055 # As a last resort, use the slow shell script. Don't cache a
2056 # value for INSTALL within a source directory, because that will
2057 # break other packages using the cache if that directory is
2058 # removed, or if the value is a relative name.
2059 INSTALL=$ac_install_sh
2062 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2063 echo "${ECHO_T}$INSTALL" >&6; }
2065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2066 # It thinks the first close brace ends the variable substitution.
2067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2073 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2074 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2075 # Just in case
2076 sleep 1
2077 echo timestamp > conftest.file
2078 # Do `set' in a subshell so we don't clobber the current shell's
2079 # arguments. Must try -L first in case configure is actually a
2080 # symlink; some systems play weird games with the mod time of symlinks
2081 # (eg FreeBSD returns the mod time of the symlink's containing
2082 # directory).
2083 if (
2084 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2085 if test "$*" = "X"; then
2086 # -L didn't work.
2087 set X `ls -t $srcdir/configure conftest.file`
2089 rm -f conftest.file
2090 if test "$*" != "X $srcdir/configure conftest.file" \
2091 && test "$*" != "X conftest.file $srcdir/configure"; then
2093 # If neither matched, then we have a broken ls. This can happen
2094 # if, for instance, CONFIG_SHELL is bash and it inherits a
2095 # broken ls alias from the environment. This has actually
2096 # happened. Such a system could not be considered "sane".
2097 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2098 alias in your environment" >&5
2099 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2100 alias in your environment" >&2;}
2101 { (exit 1); exit 1; }; }
2104 test "$2" = conftest.file
2106 then
2107 # Ok.
2109 else
2110 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2111 Check your system clock" >&5
2112 echo "$as_me: error: newly created file is older than distributed files!
2113 Check your system clock" >&2;}
2114 { (exit 1); exit 1; }; }
2116 { echo "$as_me:$LINENO: result: yes" >&5
2117 echo "${ECHO_T}yes" >&6; }
2118 test "$program_prefix" != NONE &&
2119 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2120 # Use a double $ so make ignores it.
2121 test "$program_suffix" != NONE &&
2122 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2123 # Double any \ or $. echo might interpret backslashes.
2124 # By default was `s,x,x', remove it if useless.
2125 cat <<\_ACEOF >conftest.sed
2126 s/[\\$]/&&/g;s/;s,x,x,$//
2127 _ACEOF
2128 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2129 rm -f conftest.sed
2131 # expand $ac_aux_dir to an absolute path
2132 am_aux_dir=`cd $ac_aux_dir && pwd`
2134 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2135 # Use eval to expand $SHELL
2136 if eval "$MISSING --run true"; then
2137 am_missing_run="$MISSING --run "
2138 else
2139 am_missing_run=
2140 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2141 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2144 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2145 # We used to keeping the `.' as first argument, in order to
2146 # allow $(mkdir_p) to be used without argument. As in
2147 # $(mkdir_p) $(somedir)
2148 # where $(somedir) is conditionally defined. However this is wrong
2149 # for two reasons:
2150 # 1. if the package is installed by a user who cannot write `.'
2151 # make install will fail,
2152 # 2. the above comment should most certainly read
2153 # $(mkdir_p) $(DESTDIR)$(somedir)
2154 # so it does not work when $(somedir) is undefined and
2155 # $(DESTDIR) is not.
2156 # To support the latter case, we have to write
2157 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2158 # so the `.' trick is pointless.
2159 mkdir_p='mkdir -p --'
2160 else
2161 # On NextStep and OpenStep, the `mkdir' command does not
2162 # recognize any option. It will interpret all options as
2163 # directories to create, and then abort because `.' already
2164 # exists.
2165 for d in ./-p ./--version;
2167 test -d $d && rmdir $d
2168 done
2169 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2170 if test -f "$ac_aux_dir/mkinstalldirs"; then
2171 mkdir_p='$(mkinstalldirs)'
2172 else
2173 mkdir_p='$(install_sh) -d'
2177 for ac_prog in gawk mawk nawk awk
2179 # Extract the first word of "$ac_prog", so it can be a program name with args.
2180 set dummy $ac_prog; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_AWK+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$AWK"; then
2187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 ac_cv_prog_AWK="$ac_prog"
2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 break 2
2200 done
2201 done
2202 IFS=$as_save_IFS
2206 AWK=$ac_cv_prog_AWK
2207 if test -n "$AWK"; then
2208 { echo "$as_me:$LINENO: result: $AWK" >&5
2209 echo "${ECHO_T}$AWK" >&6; }
2210 else
2211 { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2216 test -n "$AWK" && break
2217 done
2219 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2220 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2221 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2222 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.make <<\_ACEOF
2226 SHELL = /bin/sh
2227 all:
2228 @echo '@@@%%%=$(MAKE)=@@@%%%'
2229 _ACEOF
2230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2231 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2232 *@@@%%%=?*=@@@%%%*)
2233 eval ac_cv_prog_make_${ac_make}_set=yes;;
2235 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 esac
2237 rm -f conftest.make
2239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242 SET_MAKE=
2243 else
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246 SET_MAKE="MAKE=${MAKE-make}"
2249 rm -rf .tst 2>/dev/null
2250 mkdir .tst 2>/dev/null
2251 if test -d .tst; then
2252 am__leading_dot=.
2253 else
2254 am__leading_dot=_
2256 rmdir .tst 2>/dev/null
2258 # test to see if srcdir already configured
2259 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2260 test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2262 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
2266 # test whether we have cygpath
2267 if test -z "$CYGPATH_W"; then
2268 if (cygpath --version) >/dev/null 2>/dev/null; then
2269 CYGPATH_W='cygpath -w'
2270 else
2271 CYGPATH_W=echo
2276 # Define the identity of the package.
2277 PACKAGE='barryplugin'
2278 VERSION='0.2'
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE "$PACKAGE"
2283 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 #define VERSION "$VERSION"
2288 _ACEOF
2290 # Some tools Automake needs.
2292 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2298 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2301 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2304 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2308 # Installed binaries are usually stripped using `strip' when the user
2309 # run `make install-strip'. However `strip' might not be the right
2310 # tool to use in cross-compilation environments, therefore Automake
2311 # will honor the `STRIP' environment variable to overrule this program.
2312 if test "$cross_compiling" != no; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}strip; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test -n "$STRIP"; then
2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2337 IFS=$as_save_IFS
2341 STRIP=$ac_cv_prog_STRIP
2342 if test -n "$STRIP"; then
2343 { echo "$as_me:$LINENO: result: $STRIP" >&5
2344 echo "${ECHO_T}$STRIP" >&6; }
2345 else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2352 if test -z "$ac_cv_prog_STRIP"; then
2353 ac_ct_STRIP=$STRIP
2354 # Extract the first word of "strip", so it can be a program name with args.
2355 set dummy strip; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$ac_ct_STRIP"; then
2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_STRIP="strip"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2375 done
2376 done
2377 IFS=$as_save_IFS
2381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2382 if test -n "$ac_ct_STRIP"; then
2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2390 if test "x$ac_ct_STRIP" = x; then
2391 STRIP=":"
2392 else
2393 case $cross_compiling:$ac_tool_warned in
2394 yes:)
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2401 ac_tool_warned=yes ;;
2402 esac
2403 STRIP=$ac_ct_STRIP
2405 else
2406 STRIP="$ac_cv_prog_STRIP"
2410 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2412 # We need awk for the "check" target. The system "awk" is bad on
2413 # some platforms.
2414 # Always define AMTAR for backward compatibility.
2416 AMTAR=${AMTAR-"${am_missing_run}tar"}
2418 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425 pkg_modules="opensync-1.0 glib-2.0"
2428 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 case $PKG_CONFIG in
2438 [\\/]* | ?:[\\/]*)
2439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2458 esac
2460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2461 if test -n "$PKG_CONFIG"; then
2462 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2463 echo "${ECHO_T}$PKG_CONFIG" >&6; }
2464 else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2471 if test -z "$ac_cv_path_PKG_CONFIG"; then
2472 ac_pt_PKG_CONFIG=$PKG_CONFIG
2473 # Extract the first word of "pkg-config", so it can be a program name with args.
2474 set dummy pkg-config; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 case $ac_pt_PKG_CONFIG in
2481 [\\/]* | ?:[\\/]*)
2482 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2501 esac
2503 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2504 if test -n "$ac_pt_PKG_CONFIG"; then
2505 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2506 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_pt_PKG_CONFIG" = x; then
2513 PKG_CONFIG=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 PKG_CONFIG=$ac_pt_PKG_CONFIG
2527 else
2528 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2532 if test -n "$PKG_CONFIG"; then
2533 _pkg_min_version=0.9.0
2534 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2535 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2536 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2537 { echo "$as_me:$LINENO: result: yes" >&5
2538 echo "${ECHO_T}yes" >&6; }
2539 else
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 PKG_CONFIG=""
2547 pkg_failed=no
2548 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
2549 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
2551 if test -n "$PKG_CONFIG"; then
2552 if test -n "$PACKAGE_CFLAGS"; then
2553 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
2554 else
2555 if test -n "$PKG_CONFIG" && \
2556 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2557 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; then
2561 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
2562 else
2563 pkg_failed=yes
2566 else
2567 pkg_failed=untried
2569 if test -n "$PKG_CONFIG"; then
2570 if test -n "$PACKAGE_LIBS"; then
2571 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
2572 else
2573 if test -n "$PKG_CONFIG" && \
2574 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2575 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; then
2579 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
2580 else
2581 pkg_failed=yes
2584 else
2585 pkg_failed=untried
2590 if test $pkg_failed = yes; then
2592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2593 _pkg_short_errors_supported=yes
2594 else
2595 _pkg_short_errors_supported=no
2597 if test $_pkg_short_errors_supported = yes; then
2598 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
2599 else
2600 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
2602 # Put the nasty error message in config.log where it belongs
2603 echo "$PACKAGE_PKG_ERRORS" >&5
2605 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
2607 $PACKAGE_PKG_ERRORS
2609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2610 installed software in a non-standard prefix.
2612 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2613 and PACKAGE_LIBS to avoid the need to call pkg-config.
2614 See the pkg-config man page for more details.
2615 " >&5
2616 echo "$as_me: error: Package requirements ($pkg_modules) were not met:
2618 $PACKAGE_PKG_ERRORS
2620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2621 installed software in a non-standard prefix.
2623 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2624 and PACKAGE_LIBS to avoid the need to call pkg-config.
2625 See the pkg-config man page for more details.
2626 " >&2;}
2627 { (exit 1); exit 1; }; }
2628 elif test $pkg_failed = untried; then
2629 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2630 is in your PATH or set the PKG_CONFIG environment variable to the full
2631 path to pkg-config.
2633 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2634 and PACKAGE_LIBS to avoid the need to call pkg-config.
2635 See the pkg-config man page for more details.
2637 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2640 is in your PATH or set the PKG_CONFIG environment variable to the full
2641 path to pkg-config.
2643 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2644 and PACKAGE_LIBS to avoid the need to call pkg-config.
2645 See the pkg-config man page for more details.
2647 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2648 See \`config.log' for more details." >&2;}
2649 { (exit 1); exit 1; }; }
2650 else
2651 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
2652 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
2653 { echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6; }
2660 DEPDIR="${am__leading_dot}deps"
2662 ac_config_commands="$ac_config_commands depfiles"
2665 am_make=${MAKE-make}
2666 cat > confinc << 'END'
2667 am__doit:
2668 @echo done
2669 .PHONY: am__doit
2671 # If we don't find an include directive, just comment out the code.
2672 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2673 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2674 am__include="#"
2675 am__quote=
2676 _am_result=none
2677 # First try GNU make style include.
2678 echo "include confinc" > confmf
2679 # We grep out `Entering directory' and `Leaving directory'
2680 # messages which can occur if `w' ends up in MAKEFLAGS.
2681 # In particular we don't look at `^make:' because GNU make might
2682 # be invoked under some other name (usually "gmake"), in which
2683 # case it prints its new name instead of `make'.
2684 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2685 am__include=include
2686 am__quote=
2687 _am_result=GNU
2689 # Now try BSD make style include.
2690 if test "$am__include" = "#"; then
2691 echo '.include "confinc"' > confmf
2692 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2693 am__include=.include
2694 am__quote="\""
2695 _am_result=BSD
2700 { echo "$as_me:$LINENO: result: $_am_result" >&5
2701 echo "${ECHO_T}$_am_result" >&6; }
2702 rm -f confinc confmf
2704 # Check whether --enable-dependency-tracking was given.
2705 if test "${enable_dependency_tracking+set}" = set; then
2706 enableval=$enable_dependency_tracking;
2709 if test "x$enable_dependency_tracking" != xno; then
2710 am_depcomp="$ac_aux_dir/depcomp"
2711 AMDEPBACKSLASH='\'
2715 if test "x$enable_dependency_tracking" != xno; then
2716 AMDEP_TRUE=
2717 AMDEP_FALSE='#'
2718 else
2719 AMDEP_TRUE='#'
2720 AMDEP_FALSE=
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761 echo "${ECHO_T}$CC" >&6; }
2762 else
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2769 if test -z "$ac_cv_prog_CC"; then
2770 ac_ct_CC=$CC
2771 # Extract the first word of "gcc", so it can be a program name with args.
2772 set dummy gcc; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="gcc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2794 IFS=$as_save_IFS
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2801 echo "${ECHO_T}$ac_ct_CC" >&6; }
2802 else
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2807 if test "x$ac_ct_CC" = x; then
2808 CC=""
2809 else
2810 case $cross_compiling:$ac_tool_warned in
2811 yes:)
2812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&5
2815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2816 whose name does not start with the host triplet. If you think this
2817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2818 ac_tool_warned=yes ;;
2819 esac
2820 CC=$ac_ct_CC
2822 else
2823 CC="$ac_cv_prog_CC"
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}cc; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_CC="${ac_tool_prefix}cc"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { echo "$as_me:$LINENO: result: $CC" >&5
2858 echo "${ECHO_T}$CC" >&6; }
2859 else
2860 { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 ac_prog_rejected=no
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2887 ac_prog_rejected=yes
2888 continue
2890 ac_cv_prog_CC="cc"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2896 IFS=$as_save_IFS
2898 if test $ac_prog_rejected = yes; then
2899 # We found a bogon in the path, so make sure we never use it.
2900 set dummy $ac_cv_prog_CC
2901 shift
2902 if test $# != 0; then
2903 # We chose a different compiler from the bogus one.
2904 # However, it has the same basename, so the bogon will be chosen
2905 # first if we set CC to just the basename; use the full file name.
2906 shift
2907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { echo "$as_me:$LINENO: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6; }
2916 else
2917 { echo "$as_me:$LINENO: result: no" >&5
2918 echo "${ECHO_T}no" >&6; }
2923 if test -z "$CC"; then
2924 if test -n "$ac_tool_prefix"; then
2925 for ac_prog in cl.exe
2927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2948 done
2949 done
2950 IFS=$as_save_IFS
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 { echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6; }
2958 else
2959 { echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6; }
2964 test -n "$CC" && break
2965 done
2967 if test -z "$CC"; then
2968 ac_ct_CC=$CC
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_ac_ct_CC="$ac_prog"
2989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3001 echo "${ECHO_T}$ac_ct_CC" >&6; }
3002 else
3003 { echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6; }
3008 test -n "$ac_ct_CC" && break
3009 done
3011 if test "x$ac_ct_CC" = x; then
3012 CC=""
3013 else
3014 case $cross_compiling:$ac_tool_warned in
3015 yes:)
3016 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf@gnu.org." >&5
3019 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3020 whose name does not start with the host triplet. If you think this
3021 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO: checking for C compiler version" >&5
3039 ac_compiler=`set X $ac_compile; echo $2`
3040 { (ac_try="$ac_compiler --version >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler --version >&5") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3050 { (ac_try="$ac_compiler -v >&5"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compiler -v >&5") 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }
3060 { (ac_try="$ac_compiler -V >&5"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compiler -V >&5") 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3079 main ()
3083 return 0;
3085 _ACEOF
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3090 # of exeext.
3091 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3092 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3093 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # List of possible output files, starting from the most likely.
3096 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3097 # only as a last resort. b.out is created by i960 compilers.
3098 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3100 # The IRIX 6 linker writes into existing files which may not be
3101 # executable, retaining their permissions. Remove them first so a
3102 # subsequent execution test works.
3103 ac_rmfiles=
3104 for ac_file in $ac_files
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110 done
3111 rm -f $ac_rmfiles
3113 if { (ac_try="$ac_link_default"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_link_default") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3124 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3125 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3126 # so that the user can short-circuit this test for compilers unknown to
3127 # Autoconf.
3128 for ac_file in $ac_files ''
3130 test -f "$ac_file" || continue
3131 case $ac_file in
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3134 [ab].out )
3135 # We found the default executable, but exeext='' is most
3136 # certainly right.
3137 break;;
3138 *.* )
3139 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3140 then :; else
3141 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 # We set ac_cv_exeext here because the later test for it is not
3144 # safe: cross compilers may not add the suffix if given an `-o'
3145 # argument, so we may need to know it at that point already.
3146 # Even if this section looks crufty: it has the advantage of
3147 # actually working.
3148 break;;
3150 break;;
3151 esac
3152 done
3153 test "$ac_cv_exeext" = no && ac_cv_exeext=
3155 else
3156 ac_file=''
3159 { echo "$as_me:$LINENO: result: $ac_file" >&5
3160 echo "${ECHO_T}$ac_file" >&6; }
3161 if test -z "$ac_file"; then
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C compiler cannot create executables
3168 See \`config.log' for more details." >&2;}
3169 { (exit 77); exit 77; }; }
3172 ac_exeext=$ac_cv_exeext
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3179 # If not cross compiling, check that we can run a simple program.
3180 if test "$cross_compiling" != yes; then
3181 if { ac_try='./$ac_file'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 cross_compiling=no
3192 else
3193 if test "$cross_compiling" = maybe; then
3194 cross_compiling=yes
3195 else
3196 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot run C compiled programs.
3200 If you meant to cross compile, use \`--host'.
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3206 { echo "$as_me:$LINENO: result: yes" >&5
3207 echo "${ECHO_T}yes" >&6; }
3209 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 # Check that the compiler produces executables we can run. If not, either
3212 # the compiler is broken, or we cross compile.
3213 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3214 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3215 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3216 echo "${ECHO_T}$cross_compiling" >&6; }
3218 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3219 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3220 if { (ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; then
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 # `rm'.
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242 done
3243 else
3244 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&5
3246 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3251 rm -f conftest$ac_cv_exeext
3252 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3253 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3255 rm -f conftest.$ac_ext
3256 EXEEXT=$ac_cv_exeext
3257 ac_exeext=$EXEEXT
3258 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3259 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3260 if test "${ac_cv_objext+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 rm -f conftest.o conftest.obj
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; then
3289 for ac_file in conftest.o conftest.obj conftest.*; do
3290 test -f "$ac_file" || continue;
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294 break;;
3295 esac
3296 done
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." >&2;}
3305 { (exit 1); exit 1; }; }
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3311 echo "${ECHO_T}$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3313 ac_objext=$OBJEXT
3314 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3327 main ()
3329 #ifndef __GNUC__
3330 choke me
3331 #endif
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_compiler_gnu=yes
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_compiler_gnu=no
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3367 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3368 GCC=`test $ac_compiler_gnu = yes && echo yes`
3369 ac_test_CFLAGS=${CFLAGS+set}
3370 ac_save_CFLAGS=$CFLAGS
3371 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3372 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_cc_g+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 ac_save_c_werror_flag=$ac_c_werror_flag
3377 ac_c_werror_flag=yes
3378 ac_cv_prog_cc_g=no
3379 CFLAGS="-g"
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_prog_cc_g=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 CFLAGS=""
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_c_werror_flag=$ac_save_c_werror_flag
3456 CFLAGS="-g"
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3465 main ()
3469 return 0;
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3489 ac_cv_prog_cc_g=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3512 CFLAGS="-g -O2"
3513 else
3514 CFLAGS="-g"
3516 else
3517 if test "$GCC" = yes; then
3518 CFLAGS="-O2"
3519 else
3520 CFLAGS=
3523 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3524 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 ac_cv_prog_cc_c89=no
3529 ac_save_CC=$CC
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <stdarg.h>
3537 #include <stdio.h>
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3544 char **p;
3545 int i;
3547 return p[i];
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3551 char *s;
3552 va_list v;
3553 va_start (v,p);
3554 s = g (p, va_arg (v,int));
3555 va_end (v);
3556 return s;
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3560 function prototypes and stuff, but not '\xHH' hex character constants.
3561 These don't provoke an error unfortunately, instead are silently treated
3562 as 'x'. The following induces an error, until -std is added to get
3563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3564 array size at least. It's necessary to write '\x00'==0 to get something
3565 that's true only with -std. */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3569 inside strings and character constants. */
3570 #define FOO(x) 'x'
3571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 int argc;
3578 char **argv;
3580 main ()
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3584 return 0;
3586 _ACEOF
3587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 CC="$ac_save_CC $ac_arg"
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } && {
3605 test -z "$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 } && test -s conftest.$ac_objext; then
3608 ac_cv_prog_cc_c89=$ac_arg
3609 else
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3616 rm -f core conftest.err conftest.$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3626 { echo "$as_me:$LINENO: result: none needed" >&5
3627 echo "${ECHO_T}none needed" >&6; } ;;
3628 xno)
3629 { echo "$as_me:$LINENO: result: unsupported" >&5
3630 echo "${ECHO_T}unsupported" >&6; } ;;
3632 CC="$CC $ac_cv_prog_cc_c89"
3633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3634 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3638 ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 depcc="$CC" am_compiler_list=
3646 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3647 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652 # We make a subdir and do the tests there. Otherwise we can end up
3653 # making bogus files that we don't know about and never remove. For
3654 # instance it was reported that on HP-UX the gcc test will end up
3655 # making a dummy file named `D' -- because `-MD' means `put the output
3656 # in D'.
3657 mkdir conftest.dir
3658 # Copy depcomp to subdir because otherwise we won't find it if we're
3659 # using a relative directory.
3660 cp "$am_depcomp" conftest.dir
3661 cd conftest.dir
3662 # We will build objects and dependencies in a subdirectory because
3663 # it helps to detect inapplicable dependency modes. For instance
3664 # both Tru64's cc and ICC support -MD to output dependencies as a
3665 # side effect of compilation, but ICC will put the dependencies in
3666 # the current directory while Tru64 will put them in the object
3667 # directory.
3668 mkdir sub
3670 am_cv_CC_dependencies_compiler_type=none
3671 if test "$am_compiler_list" = ""; then
3672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674 for depmode in $am_compiler_list; do
3675 # Setup a source with many dependencies, because some compilers
3676 # like to wrap large dependency lists on column 80 (with \), and
3677 # we should not choose a depcomp mode which is confused by this.
3679 # We need to recreate these files for each test, as the compiler may
3680 # overwrite some of them when testing with obscure command lines.
3681 # This happens at least with the AIX C compiler.
3682 : > sub/conftest.c
3683 for i in 1 2 3 4 5 6; do
3684 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3685 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3686 # Solaris 8's {/usr,}/bin/sh.
3687 touch sub/conftst$i.h
3688 done
3689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3691 case $depmode in
3692 nosideeffect)
3693 # after this tag, mechanisms are not by side-effect, so they'll
3694 # only be used when explicitly requested
3695 if test "x$enable_dependency_tracking" = xyes; then
3696 continue
3697 else
3698 break
3701 none) break ;;
3702 esac
3703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3704 # mode. It turns out that the SunPro C++ compiler does not properly
3705 # handle `-M -o', and we need to detect this.
3706 if depmode=$depmode \
3707 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3709 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3710 >/dev/null 2>conftest.err &&
3711 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3712 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3713 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3714 # icc doesn't choke on unknown options, it will just issue warnings
3715 # or remarks (even with -Werror). So we grep stderr for any message
3716 # that says an option was ignored or not supported.
3717 # When given -MP, icc 7.0 and 7.1 complain thusly:
3718 # icc: Command line warning: ignoring option '-M'; no argument required
3719 # The diagnosis changed in icc 8.0:
3720 # icc: Command line remark: option '-MP' not supported
3721 if (grep 'ignoring option' conftest.err ||
3722 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3723 am_cv_CC_dependencies_compiler_type=$depmode
3724 break
3727 done
3729 cd ..
3730 rm -rf conftest.dir
3731 else
3732 am_cv_CC_dependencies_compiler_type=none
3736 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3737 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3738 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743 test "x$enable_dependency_tracking" != xno \
3744 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3745 am__fastdepCC_TRUE=
3746 am__fastdepCC_FALSE='#'
3747 else
3748 am__fastdepCC_TRUE='#'
3749 am__fastdepCC_FALSE=
3754 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3755 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3756 if test "${ac_cv_search_strerror+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 ac_func_search_save_LIBS=$LIBS
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3767 /* Override any GCC internal prototype to avoid an error.
3768 Use char because int might match the return type of a GCC
3769 builtin and then its argument prototype would still apply. */
3770 #ifdef __cplusplus
3771 extern "C"
3772 #endif
3773 char strerror ();
3775 main ()
3777 return strerror ();
3779 return 0;
3781 _ACEOF
3782 for ac_lib in '' cposix; do
3783 if test -z "$ac_lib"; then
3784 ac_res="none required"
3785 else
3786 ac_res=-l$ac_lib
3787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3789 rm -f conftest.$ac_objext conftest$ac_exeext
3790 if { (ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_link") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest$ac_exeext &&
3806 $as_test_x conftest$ac_exeext; then
3807 ac_cv_search_strerror=$ac_res
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3816 conftest$ac_exeext
3817 if test "${ac_cv_search_strerror+set}" = set; then
3818 break
3820 done
3821 if test "${ac_cv_search_strerror+set}" = set; then
3823 else
3824 ac_cv_search_strerror=no
3826 rm conftest.$ac_ext
3827 LIBS=$ac_func_search_save_LIBS
3829 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3830 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3831 ac_res=$ac_cv_search_strerror
3832 if test "$ac_res" != no; then
3833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_prog_CC+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3866 IFS=$as_save_IFS
3870 CC=$ac_cv_prog_CC
3871 if test -n "$CC"; then
3872 { echo "$as_me:$LINENO: result: $CC" >&5
3873 echo "${ECHO_T}$CC" >&6; }
3874 else
3875 { echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6; }
3881 if test -z "$ac_cv_prog_CC"; then
3882 ac_ct_CC=$CC
3883 # Extract the first word of "gcc", so it can be a program name with args.
3884 set dummy gcc; ac_word=$2
3885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_ac_ct_CC="gcc"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3913 echo "${ECHO_T}$ac_ct_CC" >&6; }
3914 else
3915 { echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6; }
3919 if test "x$ac_ct_CC" = x; then
3920 CC=""
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3925 whose name does not start with the host triplet. If you think this
3926 configuration is useful to you, please write to autoconf@gnu.org." >&5
3927 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3928 whose name does not start with the host triplet. If you think this
3929 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3930 ac_tool_warned=yes ;;
3931 esac
3932 CC=$ac_ct_CC
3934 else
3935 CC="$ac_cv_prog_CC"
3938 if test -z "$CC"; then
3939 if test -n "$ac_tool_prefix"; then
3940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3941 set dummy ${ac_tool_prefix}cc; ac_word=$2
3942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3944 if test "${ac_cv_prog_CC+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947 if test -n "$CC"; then
3948 ac_cv_prog_CC="$CC" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_CC="${ac_tool_prefix}cc"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3963 IFS=$as_save_IFS
3967 CC=$ac_cv_prog_CC
3968 if test -n "$CC"; then
3969 { echo "$as_me:$LINENO: result: $CC" >&5
3970 echo "${ECHO_T}$CC" >&6; }
3971 else
3972 { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3979 if test -z "$CC"; then
3980 # Extract the first word of "cc", so it can be a program name with args.
3981 set dummy cc; ac_word=$2
3982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 ac_prog_rejected=no
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3999 ac_prog_rejected=yes
4000 continue
4002 ac_cv_prog_CC="cc"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4010 if test $ac_prog_rejected = yes; then
4011 # We found a bogon in the path, so make sure we never use it.
4012 set dummy $ac_cv_prog_CC
4013 shift
4014 if test $# != 0; then
4015 # We chose a different compiler from the bogus one.
4016 # However, it has the same basename, so the bogon will be chosen
4017 # first if we set CC to just the basename; use the full file name.
4018 shift
4019 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { echo "$as_me:$LINENO: result: $CC" >&5
4027 echo "${ECHO_T}$CC" >&6; }
4028 else
4029 { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4035 if test -z "$CC"; then
4036 if test -n "$ac_tool_prefix"; then
4037 for ac_prog in cl.exe
4039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4060 done
4061 done
4062 IFS=$as_save_IFS
4066 CC=$ac_cv_prog_CC
4067 if test -n "$CC"; then
4068 { echo "$as_me:$LINENO: result: $CC" >&5
4069 echo "${ECHO_T}$CC" >&6; }
4070 else
4071 { echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6; }
4076 test -n "$CC" && break
4077 done
4079 if test -z "$CC"; then
4080 ac_ct_CC=$CC
4081 for ac_prog in cl.exe
4083 # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 if test -n "$ac_ct_CC"; then
4091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_ac_ct_CC="$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4111 if test -n "$ac_ct_CC"; then
4112 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4113 echo "${ECHO_T}$ac_ct_CC" >&6; }
4114 else
4115 { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4120 test -n "$ac_ct_CC" && break
4121 done
4123 if test "x$ac_ct_CC" = x; then
4124 CC=""
4125 else
4126 case $cross_compiling:$ac_tool_warned in
4127 yes:)
4128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4129 whose name does not start with the host triplet. If you think this
4130 configuration is useful to you, please write to autoconf@gnu.org." >&5
4131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4132 whose name does not start with the host triplet. If you think this
4133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4134 ac_tool_warned=yes ;;
4135 esac
4136 CC=$ac_ct_CC
4143 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4144 See \`config.log' for more details." >&5
4145 echo "$as_me: error: no acceptable C compiler found in \$PATH
4146 See \`config.log' for more details." >&2;}
4147 { (exit 1); exit 1; }; }
4149 # Provide some information about the compiler.
4150 echo "$as_me:$LINENO: checking for C compiler version" >&5
4151 ac_compiler=`set X $ac_compile; echo $2`
4152 { (ac_try="$ac_compiler --version >&5"
4153 case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156 esac
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_compiler --version >&5") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }
4162 { (ac_try="$ac_compiler -v >&5"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compiler -v >&5") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }
4172 { (ac_try="$ac_compiler -V >&5"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compiler -V >&5") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }
4183 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4184 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4185 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4196 main ()
4198 #ifndef __GNUC__
4199 choke me
4200 #endif
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 ac_compiler_gnu=yes
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 ac_compiler_gnu=no
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4235 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4236 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4237 GCC=`test $ac_compiler_gnu = yes && echo yes`
4238 ac_test_CFLAGS=${CFLAGS+set}
4239 ac_save_CFLAGS=$CFLAGS
4240 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4241 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_cc_g+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4247 ac_cv_prog_cc_g=no
4248 CFLAGS="-g"
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4257 main ()
4261 return 0;
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (ac_try="$ac_compile"
4266 case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_compile") 2>conftest.er1
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && {
4278 test -z "$ac_c_werror_flag" ||
4279 test ! -s conftest.err
4280 } && test -s conftest.$ac_objext; then
4281 ac_cv_prog_cc_g=yes
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 CFLAGS=""
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4295 main ()
4299 return 0;
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (ac_try="$ac_compile"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_compile") 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && {
4316 test -z "$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 } && test -s conftest.$ac_objext; then
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 ac_c_werror_flag=$ac_save_c_werror_flag
4325 CFLAGS="-g"
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4334 main ()
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4358 ac_cv_prog_cc_g=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 ac_c_werror_flag=$ac_save_c_werror_flag
4375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4376 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4377 if test "$ac_test_CFLAGS" = set; then
4378 CFLAGS=$ac_save_CFLAGS
4379 elif test $ac_cv_prog_cc_g = yes; then
4380 if test "$GCC" = yes; then
4381 CFLAGS="-g -O2"
4382 else
4383 CFLAGS="-g"
4385 else
4386 if test "$GCC" = yes; then
4387 CFLAGS="-O2"
4388 else
4389 CFLAGS=
4392 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4393 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_cc_c89+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 ac_cv_prog_cc_c89=no
4398 ac_save_CC=$CC
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <stdarg.h>
4406 #include <stdio.h>
4407 #include <sys/types.h>
4408 #include <sys/stat.h>
4409 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4410 struct buf { int x; };
4411 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4412 static char *e (p, i)
4413 char **p;
4414 int i;
4416 return p[i];
4418 static char *f (char * (*g) (char **, int), char **p, ...)
4420 char *s;
4421 va_list v;
4422 va_start (v,p);
4423 s = g (p, va_arg (v,int));
4424 va_end (v);
4425 return s;
4428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4429 function prototypes and stuff, but not '\xHH' hex character constants.
4430 These don't provoke an error unfortunately, instead are silently treated
4431 as 'x'. The following induces an error, until -std is added to get
4432 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4433 array size at least. It's necessary to write '\x00'==0 to get something
4434 that's true only with -std. */
4435 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4438 inside strings and character constants. */
4439 #define FOO(x) 'x'
4440 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4442 int test (int i, double x);
4443 struct s1 {int (*f) (int a);};
4444 struct s2 {int (*f) (double a);};
4445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4446 int argc;
4447 char **argv;
4449 main ()
4451 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4453 return 0;
4455 _ACEOF
4456 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4457 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4459 CC="$ac_save_CC $ac_arg"
4460 rm -f conftest.$ac_objext
4461 if { (ac_try="$ac_compile"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.$ac_objext; then
4477 ac_cv_prog_cc_c89=$ac_arg
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4485 rm -f core conftest.err conftest.$ac_objext
4486 test "x$ac_cv_prog_cc_c89" != "xno" && break
4487 done
4488 rm -f conftest.$ac_ext
4489 CC=$ac_save_CC
4492 # AC_CACHE_VAL
4493 case "x$ac_cv_prog_cc_c89" in
4495 { echo "$as_me:$LINENO: result: none needed" >&5
4496 echo "${ECHO_T}none needed" >&6; } ;;
4497 xno)
4498 { echo "$as_me:$LINENO: result: unsupported" >&5
4499 echo "${ECHO_T}unsupported" >&6; } ;;
4501 CC="$CC $ac_cv_prog_cc_c89"
4502 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4503 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4504 esac
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 depcc="$CC" am_compiler_list=
4515 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4516 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4517 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
4524 # making a dummy file named `D' -- because `-MD' means `put the output
4525 # in D'.
4526 mkdir conftest.dir
4527 # Copy depcomp to subdir because otherwise we won't find it if we're
4528 # using a relative directory.
4529 cp "$am_depcomp" conftest.dir
4530 cd conftest.dir
4531 # We will build objects and dependencies in a subdirectory because
4532 # it helps to detect inapplicable dependency modes. For instance
4533 # both Tru64's cc and ICC support -MD to output dependencies as a
4534 # side effect of compilation, but ICC will put the dependencies in
4535 # the current directory while Tru64 will put them in the object
4536 # directory.
4537 mkdir sub
4539 am_cv_CC_dependencies_compiler_type=none
4540 if test "$am_compiler_list" = ""; then
4541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4543 for depmode in $am_compiler_list; do
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4551 : > sub/conftest.c
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4555 # Solaris 8's {/usr,}/bin/sh.
4556 touch sub/conftst$i.h
4557 done
4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560 case $depmode in
4561 nosideeffect)
4562 # after this tag, mechanisms are not by side-effect, so they'll
4563 # only be used when explicitly requested
4564 if test "x$enable_dependency_tracking" = xyes; then
4565 continue
4566 else
4567 break
4570 none) break ;;
4571 esac
4572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4573 # mode. It turns out that the SunPro C++ compiler does not properly
4574 # handle `-M -o', and we need to detect this.
4575 if depmode=$depmode \
4576 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4577 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4578 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4579 >/dev/null 2>conftest.err &&
4580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4581 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4583 # icc doesn't choke on unknown options, it will just issue warnings
4584 # or remarks (even with -Werror). So we grep stderr for any message
4585 # that says an option was ignored or not supported.
4586 # When given -MP, icc 7.0 and 7.1 complain thusly:
4587 # icc: Command line warning: ignoring option '-M'; no argument required
4588 # The diagnosis changed in icc 8.0:
4589 # icc: Command line remark: option '-MP' not supported
4590 if (grep 'ignoring option' conftest.err ||
4591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4592 am_cv_CC_dependencies_compiler_type=$depmode
4593 break
4596 done
4598 cd ..
4599 rm -rf conftest.dir
4600 else
4601 am_cv_CC_dependencies_compiler_type=none
4605 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4606 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4607 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4612 test "x$enable_dependency_tracking" != xno \
4613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4614 am__fastdepCC_TRUE=
4615 am__fastdepCC_FALSE='#'
4616 else
4617 am__fastdepCC_TRUE='#'
4618 am__fastdepCC_FALSE=
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4698 echo "${ECHO_T}$ac_ct_CC" >&6; }
4699 else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&5
4712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4719 else
4720 CC="$ac_cv_prog_CC"
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { echo "$as_me:$LINENO: result: $CC" >&5
4755 echo "${ECHO_T}$CC" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4787 ac_cv_prog_CC="cc"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { echo "$as_me:$LINENO: result: $CC" >&5
4812 echo "${ECHO_T}$CC" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { echo "$as_me:$LINENO: result: $CC" >&5
4854 echo "${ECHO_T}$CC" >&6; }
4855 else
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 test -n "$CC" && break
4862 done
4864 if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4898 echo "${ECHO_T}$ac_ct_CC" >&6; }
4899 else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4905 test -n "$ac_ct_CC" && break
4906 done
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4914 whose name does not start with the host triplet. If you think this
4915 configuration is useful to you, please write to autoconf@gnu.org." >&5
4916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4917 whose name does not start with the host triplet. If you think this
4918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 CC=$ac_ct_CC
4928 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4929 See \`config.log' for more details." >&5
4930 echo "$as_me: error: no acceptable C compiler found in \$PATH
4931 See \`config.log' for more details." >&2;}
4932 { (exit 1); exit 1; }; }
4934 # Provide some information about the compiler.
4935 echo "$as_me:$LINENO: checking for C compiler version" >&5
4936 ac_compiler=`set X $ac_compile; echo $2`
4937 { (ac_try="$ac_compiler --version >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_compiler --version >&5") 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }
4947 { (ac_try="$ac_compiler -v >&5"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compiler -v >&5") 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }
4957 { (ac_try="$ac_compiler -V >&5"
4958 case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_compiler -V >&5") 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }
4968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 main ()
4983 #ifndef __GNUC__
4984 choke me
4985 #endif
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_compiler_gnu=yes
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_compiler_gnu=no
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5022 GCC=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_cc_g+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5042 main ()
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_compile") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } && {
5063 test -z "$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 } && test -s conftest.$ac_objext; then
5066 ac_cv_prog_cc_g=yes
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 CFLAGS=""
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5080 main ()
5084 return 0;
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (ac_try="$ac_compile"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_compile") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } && {
5101 test -z "$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 } && test -s conftest.$ac_objext; then
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_c_werror_flag=$ac_save_c_werror_flag
5110 CFLAGS="-g"
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5119 main ()
5123 return 0;
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
5143 ac_cv_prog_cc_g=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 ac_c_werror_flag=$ac_save_c_werror_flag
5160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5162 if test "$ac_test_CFLAGS" = set; then
5163 CFLAGS=$ac_save_CFLAGS
5164 elif test $ac_cv_prog_cc_g = yes; then
5165 if test "$GCC" = yes; then
5166 CFLAGS="-g -O2"
5167 else
5168 CFLAGS="-g"
5170 else
5171 if test "$GCC" = yes; then
5172 CFLAGS="-O2"
5173 else
5174 CFLAGS=
5177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5179 if test "${ac_cv_prog_cc_c89+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 ac_cv_prog_cc_c89=no
5183 ac_save_CC=$CC
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <stdarg.h>
5191 #include <stdio.h>
5192 #include <sys/types.h>
5193 #include <sys/stat.h>
5194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195 struct buf { int x; };
5196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197 static char *e (p, i)
5198 char **p;
5199 int i;
5201 return p[i];
5203 static char *f (char * (*g) (char **, int), char **p, ...)
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224 #define FOO(x) 'x'
5225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5227 int test (int i, double x);
5228 struct s1 {int (*f) (int a);};
5229 struct s2 {int (*f) (double a);};
5230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231 int argc;
5232 char **argv;
5234 main ()
5236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5238 return 0;
5240 _ACEOF
5241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5244 CC="$ac_save_CC $ac_arg"
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_prog_cc_c89=$ac_arg
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext
5271 test "x$ac_cv_prog_cc_c89" != "xno" && break
5272 done
5273 rm -f conftest.$ac_ext
5274 CC=$ac_save_CC
5277 # AC_CACHE_VAL
5278 case "x$ac_cv_prog_cc_c89" in
5280 { echo "$as_me:$LINENO: result: none needed" >&5
5281 echo "${ECHO_T}none needed" >&6; } ;;
5282 xno)
5283 { echo "$as_me:$LINENO: result: unsupported" >&5
5284 echo "${ECHO_T}unsupported" >&6; } ;;
5286 CC="$CC $ac_cv_prog_cc_c89"
5287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5289 esac
5292 ac_ext=c
5293 ac_cpp='$CPP $CPPFLAGS'
5294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 depcc="$CC" am_compiler_list=
5300 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5301 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5302 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5306 # We make a subdir and do the tests there. Otherwise we can end up
5307 # making bogus files that we don't know about and never remove. For
5308 # instance it was reported that on HP-UX the gcc test will end up
5309 # making a dummy file named `D' -- because `-MD' means `put the output
5310 # in D'.
5311 mkdir conftest.dir
5312 # Copy depcomp to subdir because otherwise we won't find it if we're
5313 # using a relative directory.
5314 cp "$am_depcomp" conftest.dir
5315 cd conftest.dir
5316 # We will build objects and dependencies in a subdirectory because
5317 # it helps to detect inapplicable dependency modes. For instance
5318 # both Tru64's cc and ICC support -MD to output dependencies as a
5319 # side effect of compilation, but ICC will put the dependencies in
5320 # the current directory while Tru64 will put them in the object
5321 # directory.
5322 mkdir sub
5324 am_cv_CC_dependencies_compiler_type=none
5325 if test "$am_compiler_list" = ""; then
5326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5328 for depmode in $am_compiler_list; do
5329 # Setup a source with many dependencies, because some compilers
5330 # like to wrap large dependency lists on column 80 (with \), and
5331 # we should not choose a depcomp mode which is confused by this.
5333 # We need to recreate these files for each test, as the compiler may
5334 # overwrite some of them when testing with obscure command lines.
5335 # This happens at least with the AIX C compiler.
5336 : > sub/conftest.c
5337 for i in 1 2 3 4 5 6; do
5338 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5339 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5340 # Solaris 8's {/usr,}/bin/sh.
5341 touch sub/conftst$i.h
5342 done
5343 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5345 case $depmode in
5346 nosideeffect)
5347 # after this tag, mechanisms are not by side-effect, so they'll
5348 # only be used when explicitly requested
5349 if test "x$enable_dependency_tracking" = xyes; then
5350 continue
5351 else
5352 break
5355 none) break ;;
5356 esac
5357 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5358 # mode. It turns out that the SunPro C++ compiler does not properly
5359 # handle `-M -o', and we need to detect this.
5360 if depmode=$depmode \
5361 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5364 >/dev/null 2>conftest.err &&
5365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5368 # icc doesn't choke on unknown options, it will just issue warnings
5369 # or remarks (even with -Werror). So we grep stderr for any message
5370 # that says an option was ignored or not supported.
5371 # When given -MP, icc 7.0 and 7.1 complain thusly:
5372 # icc: Command line warning: ignoring option '-M'; no argument required
5373 # The diagnosis changed in icc 8.0:
5374 # icc: Command line remark: option '-MP' not supported
5375 if (grep 'ignoring option' conftest.err ||
5376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5377 am_cv_CC_dependencies_compiler_type=$depmode
5378 break
5381 done
5383 cd ..
5384 rm -rf conftest.dir
5385 else
5386 am_cv_CC_dependencies_compiler_type=none
5390 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5391 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5392 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5397 test "x$enable_dependency_tracking" != xno \
5398 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5399 am__fastdepCC_TRUE=
5400 am__fastdepCC_FALSE='#'
5401 else
5402 am__fastdepCC_TRUE='#'
5403 am__fastdepCC_FALSE=
5408 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5410 ac_ext=c
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5416 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5417 # On Suns, sometimes $CPP names a directory.
5418 if test -n "$CPP" && test -d "$CPP"; then
5419 CPP=
5421 if test -z "$CPP"; then
5422 if test "${ac_cv_prog_CPP+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 # Double quotes because CPP needs to be expanded
5426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5428 ac_preproc_ok=false
5429 for ac_c_preproc_warn_flag in '' yes
5431 # Use a header file that comes with gcc, so configuring glibc
5432 # with a fresh cross-compiler works.
5433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434 # <limits.h> exists even on freestanding compilers.
5435 # On the NeXT, cc -E runs the code through the compiler's parser,
5436 # not just through cpp. "Syntax error" is here to catch this case.
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448 Syntax error
5449 _ACEOF
5450 if { (ac_try="$ac_cpp conftest.$ac_ext"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } >/dev/null && {
5463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5464 test ! -s conftest.err
5465 }; then
5467 else
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 # Broken: fails on valid input.
5472 continue
5475 rm -f conftest.err conftest.$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 #include <ac_nonexistent.h>
5486 _ACEOF
5487 if { (ac_try="$ac_cpp conftest.$ac_ext"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } >/dev/null && {
5500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 }; then
5503 # Broken: success on invalid input.
5504 continue
5505 else
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 # Passes both tests.
5510 ac_preproc_ok=:
5511 break
5514 rm -f conftest.err conftest.$ac_ext
5516 done
5517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518 rm -f conftest.err conftest.$ac_ext
5519 if $ac_preproc_ok; then
5520 break
5523 done
5524 ac_cv_prog_CPP=$CPP
5527 CPP=$ac_cv_prog_CPP
5528 else
5529 ac_cv_prog_CPP=$CPP
5531 { echo "$as_me:$LINENO: result: $CPP" >&5
5532 echo "${ECHO_T}$CPP" >&6; }
5533 ac_preproc_ok=false
5534 for ac_c_preproc_warn_flag in '' yes
5536 # Use a header file that comes with gcc, so configuring glibc
5537 # with a fresh cross-compiler works.
5538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5539 # <limits.h> exists even on freestanding compilers.
5540 # On the NeXT, cc -E runs the code through the compiler's parser,
5541 # not just through cpp. "Syntax error" is here to catch this case.
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #ifdef __STDC__
5549 # include <limits.h>
5550 #else
5551 # include <assert.h>
5552 #endif
5553 Syntax error
5554 _ACEOF
5555 if { (ac_try="$ac_cpp conftest.$ac_ext"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } >/dev/null && {
5568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 }; then
5572 else
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5576 # Broken: fails on valid input.
5577 continue
5580 rm -f conftest.err conftest.$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <ac_nonexistent.h>
5591 _ACEOF
5592 if { (ac_try="$ac_cpp conftest.$ac_ext"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null && {
5605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 }; then
5608 # Broken: success on invalid input.
5609 continue
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 # Passes both tests.
5615 ac_preproc_ok=:
5616 break
5619 rm -f conftest.err conftest.$ac_ext
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then
5626 else
5627 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5628 See \`config.log' for more details." >&5
5629 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details." >&2;}
5631 { (exit 1); exit 1; }; }
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5642 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5643 if test "${ac_cv_path_GREP+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 # Extract the first word of "grep ggrep" to use in msg output
5647 if test -z "$GREP"; then
5648 set dummy grep ggrep; ac_prog_name=$2
5649 if test "${ac_cv_path_GREP+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 ac_path_GREP_found=false
5653 # Loop through the user's path and test for each of PROGNAME-LIST
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_prog in grep ggrep; do
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5662 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5663 # Check for GNU ac_path_GREP and select it if it is found.
5664 # Check for GNU $ac_path_GREP
5665 case `"$ac_path_GREP" --version 2>&1` in
5666 *GNU*)
5667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5669 ac_count=0
5670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5671 while :
5673 cat "conftest.in" "conftest.in" >"conftest.tmp"
5674 mv "conftest.tmp" "conftest.in"
5675 cp "conftest.in" "conftest.nl"
5676 echo 'GREP' >> "conftest.nl"
5677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679 ac_count=`expr $ac_count + 1`
5680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5681 # Best one so far, save it but keep looking for a better one
5682 ac_cv_path_GREP="$ac_path_GREP"
5683 ac_path_GREP_max=$ac_count
5685 # 10*(2^10) chars as input seems more than enough
5686 test $ac_count -gt 10 && break
5687 done
5688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689 esac
5692 $ac_path_GREP_found && break 3
5693 done
5694 done
5696 done
5697 IFS=$as_save_IFS
5702 GREP="$ac_cv_path_GREP"
5703 if test -z "$GREP"; then
5704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5706 { (exit 1); exit 1; }; }
5709 else
5710 ac_cv_path_GREP=$GREP
5715 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5716 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5717 GREP="$ac_cv_path_GREP"
5720 { echo "$as_me:$LINENO: checking for egrep" >&5
5721 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5722 if test "${ac_cv_path_EGREP+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5726 then ac_cv_path_EGREP="$GREP -E"
5727 else
5728 # Extract the first word of "egrep" to use in msg output
5729 if test -z "$EGREP"; then
5730 set dummy egrep; ac_prog_name=$2
5731 if test "${ac_cv_path_EGREP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 ac_path_EGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in egrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5744 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5745 # Check for GNU ac_path_EGREP and select it if it is found.
5746 # Check for GNU $ac_path_EGREP
5747 case `"$ac_path_EGREP" --version 2>&1` in
5748 *GNU*)
5749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5751 ac_count=0
5752 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5753 while :
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 echo 'EGREP' >> "conftest.nl"
5759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 ac_count=`expr $ac_count + 1`
5762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_EGREP="$ac_path_EGREP"
5765 ac_path_EGREP_max=$ac_count
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771 esac
5774 $ac_path_EGREP_found && break 3
5775 done
5776 done
5778 done
5779 IFS=$as_save_IFS
5784 EGREP="$ac_cv_path_EGREP"
5785 if test -z "$EGREP"; then
5786 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5787 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5788 { (exit 1); exit 1; }; }
5791 else
5792 ac_cv_path_EGREP=$EGREP
5798 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5799 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5800 EGREP="$ac_cv_path_EGREP"
5803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5805 if test "${ac_cv_header_stdc+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #include <stdlib.h>
5815 #include <stdarg.h>
5816 #include <string.h>
5817 #include <float.h>
5820 main ()
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_header_stdc=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5849 ac_cv_header_stdc=no
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 if test $ac_cv_header_stdc = yes; then
5855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <string.h>
5864 _ACEOF
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "memchr" >/dev/null 2>&1; then
5868 else
5869 ac_cv_header_stdc=no
5871 rm -f conftest*
5875 if test $ac_cv_header_stdc = yes; then
5876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <stdlib.h>
5885 _ACEOF
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev/null 2>&1; then
5889 else
5890 ac_cv_header_stdc=no
5892 rm -f conftest*
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ctype.h>
5908 #include <stdlib.h>
5909 #if ((' ' & 0x0FF) == 0x020)
5910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5912 #else
5913 # define ISLOWER(c) \
5914 (('a' <= (c) && (c) <= 'i') \
5915 || ('j' <= (c) && (c) <= 'r') \
5916 || ('s' <= (c) && (c) <= 'z'))
5917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5918 #endif
5920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 main ()
5924 int i;
5925 for (i = 0; i < 256; i++)
5926 if (XOR (islower (i), ISLOWER (i))
5927 || toupper (i) != TOUPPER (i))
5928 return 2;
5929 return 0;
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5953 else
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ( exit $ac_status )
5959 ac_cv_header_stdc=no
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5968 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5969 if test $ac_cv_header_stdc = yes; then
5971 cat >>confdefs.h <<\_ACEOF
5972 #define STDC_HEADERS 1
5973 _ACEOF
5977 ac_ext=cpp
5978 ac_cpp='$CXXCPP $CPPFLAGS'
5979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5982 if test -z "$CXX"; then
5983 if test -n "$CCC"; then
5984 CXX=$CCC
5985 else
5986 if test -n "$ac_tool_prefix"; then
5987 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_CXX+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 if test -n "$CXX"; then
5997 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6010 done
6011 done
6012 IFS=$as_save_IFS
6016 CXX=$ac_cv_prog_CXX
6017 if test -n "$CXX"; then
6018 { echo "$as_me:$LINENO: result: $CXX" >&5
6019 echo "${ECHO_T}$CXX" >&6; }
6020 else
6021 { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6026 test -n "$CXX" && break
6027 done
6029 if test -z "$CXX"; then
6030 ac_ct_CXX=$CXX
6031 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6033 # Extract the first word of "$ac_prog", so it can be a program name with args.
6034 set dummy $ac_prog; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 if test -n "$ac_ct_CXX"; then
6041 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_CXX="$ac_prog"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6061 if test -n "$ac_ct_CXX"; then
6062 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6063 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6064 else
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6070 test -n "$ac_ct_CXX" && break
6071 done
6073 if test "x$ac_ct_CXX" = x; then
6074 CXX="g++"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6079 whose name does not start with the host triplet. If you think this
6080 configuration is useful to you, please write to autoconf@gnu.org." >&5
6081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086 CXX=$ac_ct_CXX
6092 # Provide some information about the compiler.
6093 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6094 ac_compiler=`set X $ac_compile; echo $2`
6095 { (ac_try="$ac_compiler --version >&5"
6096 case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compiler --version >&5") 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }
6105 { (ac_try="$ac_compiler -v >&5"
6106 case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compiler -v >&5") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }
6115 { (ac_try="$ac_compiler -V >&5"
6116 case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compiler -V >&5") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }
6126 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6127 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6128 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6139 main ()
6141 #ifndef __GNUC__
6142 choke me
6143 #endif
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_cxx_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_compiler_gnu=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_compiler_gnu=no
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6178 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6179 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6180 GXX=`test $ac_compiler_gnu = yes && echo yes`
6181 ac_test_CXXFLAGS=${CXXFLAGS+set}
6182 ac_save_CXXFLAGS=$CXXFLAGS
6183 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6184 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_cxx_g+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6189 ac_cxx_werror_flag=yes
6190 ac_cv_prog_cxx_g=no
6191 CXXFLAGS="-g"
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6200 main ()
6204 return 0;
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (ac_try="$ac_compile"
6209 case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_cxx_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
6224 ac_cv_prog_cxx_g=yes
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 CXXFLAGS=""
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6238 main ()
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (ac_try="$ac_compile"
6247 case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250 esac
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_cxx_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.$ac_objext; then
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6268 CXXFLAGS="-g"
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6277 main ()
6281 return 0;
6283 _ACEOF
6284 rm -f conftest.$ac_objext
6285 if { (ac_try="$ac_compile"
6286 case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_compile") 2>conftest.er1
6292 ac_status=$?
6293 grep -v '^ *+' conftest.er1 >conftest.err
6294 rm -f conftest.er1
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } && {
6298 test -z "$ac_cxx_werror_flag" ||
6299 test ! -s conftest.err
6300 } && test -s conftest.$ac_objext; then
6301 ac_cv_prog_cxx_g=yes
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6318 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6320 if test "$ac_test_CXXFLAGS" = set; then
6321 CXXFLAGS=$ac_save_CXXFLAGS
6322 elif test $ac_cv_prog_cxx_g = yes; then
6323 if test "$GXX" = yes; then
6324 CXXFLAGS="-g -O2"
6325 else
6326 CXXFLAGS="-g"
6328 else
6329 if test "$GXX" = yes; then
6330 CXXFLAGS="-O2"
6331 else
6332 CXXFLAGS=
6335 ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341 depcc="$CXX" am_compiler_list=
6343 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6344 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6345 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6349 # We make a subdir and do the tests there. Otherwise we can end up
6350 # making bogus files that we don't know about and never remove. For
6351 # instance it was reported that on HP-UX the gcc test will end up
6352 # making a dummy file named `D' -- because `-MD' means `put the output
6353 # in D'.
6354 mkdir conftest.dir
6355 # Copy depcomp to subdir because otherwise we won't find it if we're
6356 # using a relative directory.
6357 cp "$am_depcomp" conftest.dir
6358 cd conftest.dir
6359 # We will build objects and dependencies in a subdirectory because
6360 # it helps to detect inapplicable dependency modes. For instance
6361 # both Tru64's cc and ICC support -MD to output dependencies as a
6362 # side effect of compilation, but ICC will put the dependencies in
6363 # the current directory while Tru64 will put them in the object
6364 # directory.
6365 mkdir sub
6367 am_cv_CXX_dependencies_compiler_type=none
6368 if test "$am_compiler_list" = ""; then
6369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6371 for depmode in $am_compiler_list; do
6372 # Setup a source with many dependencies, because some compilers
6373 # like to wrap large dependency lists on column 80 (with \), and
6374 # we should not choose a depcomp mode which is confused by this.
6376 # We need to recreate these files for each test, as the compiler may
6377 # overwrite some of them when testing with obscure command lines.
6378 # This happens at least with the AIX C compiler.
6379 : > sub/conftest.c
6380 for i in 1 2 3 4 5 6; do
6381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6382 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6383 # Solaris 8's {/usr,}/bin/sh.
6384 touch sub/conftst$i.h
6385 done
6386 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6388 case $depmode in
6389 nosideeffect)
6390 # after this tag, mechanisms are not by side-effect, so they'll
6391 # only be used when explicitly requested
6392 if test "x$enable_dependency_tracking" = xyes; then
6393 continue
6394 else
6395 break
6398 none) break ;;
6399 esac
6400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6401 # mode. It turns out that the SunPro C++ compiler does not properly
6402 # handle `-M -o', and we need to detect this.
6403 if depmode=$depmode \
6404 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6406 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6407 >/dev/null 2>conftest.err &&
6408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6409 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6411 # icc doesn't choke on unknown options, it will just issue warnings
6412 # or remarks (even with -Werror). So we grep stderr for any message
6413 # that says an option was ignored or not supported.
6414 # When given -MP, icc 7.0 and 7.1 complain thusly:
6415 # icc: Command line warning: ignoring option '-M'; no argument required
6416 # The diagnosis changed in icc 8.0:
6417 # icc: Command line remark: option '-MP' not supported
6418 if (grep 'ignoring option' conftest.err ||
6419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6420 am_cv_CXX_dependencies_compiler_type=$depmode
6421 break
6424 done
6426 cd ..
6427 rm -rf conftest.dir
6428 else
6429 am_cv_CXX_dependencies_compiler_type=none
6433 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6434 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6435 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6440 test "x$enable_dependency_tracking" != xno \
6441 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6442 am__fastdepCXX_TRUE=
6443 am__fastdepCXX_FALSE='#'
6444 else
6445 am__fastdepCXX_TRUE='#'
6446 am__fastdepCXX_FALSE=
6450 # Check whether --enable-static was given.
6451 if test "${enable_static+set}" = set; then
6452 enableval=$enable_static; p=${PACKAGE-default}
6453 case $enableval in
6454 yes) enable_static=yes ;;
6455 no) enable_static=no ;;
6457 enable_static=no
6458 # Look at the argument we got. We use all the common list separators.
6459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6460 for pkg in $enableval; do
6461 IFS="$lt_save_ifs"
6462 if test "X$pkg" = "X$p"; then
6463 enable_static=yes
6465 done
6466 IFS="$lt_save_ifs"
6468 esac
6469 else
6470 enable_static=no
6475 # Check whether --enable-shared was given.
6476 if test "${enable_shared+set}" = set; then
6477 enableval=$enable_shared; p=${PACKAGE-default}
6478 case $enableval in
6479 yes) enable_shared=yes ;;
6480 no) enable_shared=no ;;
6482 enable_shared=no
6483 # Look at the argument we got. We use all the common list separators.
6484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6485 for pkg in $enableval; do
6486 IFS="$lt_save_ifs"
6487 if test "X$pkg" = "X$p"; then
6488 enable_shared=yes
6490 done
6491 IFS="$lt_save_ifs"
6493 esac
6494 else
6495 enable_shared=yes
6499 # Check whether --enable-fast-install was given.
6500 if test "${enable_fast_install+set}" = set; then
6501 enableval=$enable_fast_install; p=${PACKAGE-default}
6502 case $enableval in
6503 yes) enable_fast_install=yes ;;
6504 no) enable_fast_install=no ;;
6506 enable_fast_install=no
6507 # Look at the argument we got. We use all the common list separators.
6508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6509 for pkg in $enableval; do
6510 IFS="$lt_save_ifs"
6511 if test "X$pkg" = "X$p"; then
6512 enable_fast_install=yes
6514 done
6515 IFS="$lt_save_ifs"
6517 esac
6518 else
6519 enable_fast_install=yes
6523 # Make sure we can run config.sub.
6524 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6525 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6526 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6527 { (exit 1); exit 1; }; }
6529 { echo "$as_me:$LINENO: checking build system type" >&5
6530 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6531 if test "${ac_cv_build+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 ac_build_alias=$build_alias
6535 test "x$ac_build_alias" = x &&
6536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6537 test "x$ac_build_alias" = x &&
6538 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6539 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6540 { (exit 1); exit 1; }; }
6541 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6542 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6543 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6544 { (exit 1); exit 1; }; }
6547 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6548 echo "${ECHO_T}$ac_cv_build" >&6; }
6549 case $ac_cv_build in
6550 *-*-*) ;;
6551 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6552 echo "$as_me: error: invalid value of canonical build" >&2;}
6553 { (exit 1); exit 1; }; };;
6554 esac
6555 build=$ac_cv_build
6556 ac_save_IFS=$IFS; IFS='-'
6557 set x $ac_cv_build
6558 shift
6559 build_cpu=$1
6560 build_vendor=$2
6561 shift; shift
6562 # Remember, the first character of IFS is used to create $*,
6563 # except with old shells:
6564 build_os=$*
6565 IFS=$ac_save_IFS
6566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6569 { echo "$as_me:$LINENO: checking host system type" >&5
6570 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6571 if test "${ac_cv_host+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 if test "x$host_alias" = x; then
6575 ac_cv_host=$ac_cv_build
6576 else
6577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6578 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6580 { (exit 1); exit 1; }; }
6584 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6585 echo "${ECHO_T}$ac_cv_host" >&6; }
6586 case $ac_cv_host in
6587 *-*-*) ;;
6588 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6589 echo "$as_me: error: invalid value of canonical host" >&2;}
6590 { (exit 1); exit 1; }; };;
6591 esac
6592 host=$ac_cv_host
6593 ac_save_IFS=$IFS; IFS='-'
6594 set x $ac_cv_host
6595 shift
6596 host_cpu=$1
6597 host_vendor=$2
6598 shift; shift
6599 # Remember, the first character of IFS is used to create $*,
6600 # except with old shells:
6601 host_os=$*
6602 IFS=$ac_save_IFS
6603 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6606 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6607 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6608 if test "${lt_cv_path_SED+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 # Loop through the user's path and test for sed and gsed.
6612 # Then use that list of sed's as ones to test for truncation.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for lt_ac_prog in sed gsed; do
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6621 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6623 done
6624 done
6625 done
6626 IFS=$as_save_IFS
6627 lt_ac_max=0
6628 lt_ac_count=0
6629 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6630 # along with /bin/sed that truncates output.
6631 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6632 test ! -f $lt_ac_sed && continue
6633 cat /dev/null > conftest.in
6634 lt_ac_count=0
6635 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6636 # Check for GNU sed and select it if it is found.
6637 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6638 lt_cv_path_SED=$lt_ac_sed
6639 break
6641 while true; do
6642 cat conftest.in conftest.in >conftest.tmp
6643 mv conftest.tmp conftest.in
6644 cp conftest.in conftest.nl
6645 echo >>conftest.nl
6646 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6647 cmp -s conftest.out conftest.nl || break
6648 # 10000 chars as input seems more than enough
6649 test $lt_ac_count -gt 10 && break
6650 lt_ac_count=`expr $lt_ac_count + 1`
6651 if test $lt_ac_count -gt $lt_ac_max; then
6652 lt_ac_max=$lt_ac_count
6653 lt_cv_path_SED=$lt_ac_sed
6655 done
6656 done
6660 SED=$lt_cv_path_SED
6662 { echo "$as_me:$LINENO: result: $SED" >&5
6663 echo "${ECHO_T}$SED" >&6; }
6666 # Check whether --with-gnu-ld was given.
6667 if test "${with_gnu_ld+set}" = set; then
6668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6669 else
6670 with_gnu_ld=no
6673 ac_prog=ld
6674 if test "$GCC" = yes; then
6675 # Check if gcc -print-prog-name=ld gives a path.
6676 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6677 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6678 case $host in
6679 *-*-mingw*)
6680 # gcc leaves a trailing carriage return which upsets mingw
6681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6684 esac
6685 case $ac_prog in
6686 # Accept absolute paths.
6687 [\\/]* | ?:[\\/]*)
6688 re_direlt='/[^/][^/]*/\.\./'
6689 # Canonicalize the pathname of ld
6690 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6691 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6692 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6693 done
6694 test -z "$LD" && LD="$ac_prog"
6697 # If it fails, then pretend we aren't using GCC.
6698 ac_prog=ld
6701 # If it is relative, then search for the first ld in PATH.
6702 with_gnu_ld=unknown
6704 esac
6705 elif test "$with_gnu_ld" = yes; then
6706 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6707 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6708 else
6709 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6710 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6712 if test "${lt_cv_path_LD+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 if test -z "$LD"; then
6716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6717 for ac_dir in $PATH; do
6718 IFS="$lt_save_ifs"
6719 test -z "$ac_dir" && ac_dir=.
6720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6721 lt_cv_path_LD="$ac_dir/$ac_prog"
6722 # Check to see if the program is GNU ld. I'd rather use --version,
6723 # but apparently some variants of GNU ld only accept -v.
6724 # Break only if it was the GNU/non-GNU ld that we prefer.
6725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6726 *GNU* | *'with BFD'*)
6727 test "$with_gnu_ld" != no && break
6730 test "$with_gnu_ld" != yes && break
6732 esac
6734 done
6735 IFS="$lt_save_ifs"
6736 else
6737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6741 LD="$lt_cv_path_LD"
6742 if test -n "$LD"; then
6743 { echo "$as_me:$LINENO: result: $LD" >&5
6744 echo "${ECHO_T}$LD" >&6; }
6745 else
6746 { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6749 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6750 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6751 { (exit 1); exit 1; }; }
6752 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6753 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6754 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6758 case `$LD -v 2>&1 </dev/null` in
6759 *GNU* | *'with BFD'*)
6760 lt_cv_prog_gnu_ld=yes
6763 lt_cv_prog_gnu_ld=no
6765 esac
6767 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6768 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6769 with_gnu_ld=$lt_cv_prog_gnu_ld
6772 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6773 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6774 if test "${lt_cv_ld_reload_flag+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777 lt_cv_ld_reload_flag='-r'
6779 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6780 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6781 reload_flag=$lt_cv_ld_reload_flag
6782 case $reload_flag in
6783 "" | " "*) ;;
6784 *) reload_flag=" $reload_flag" ;;
6785 esac
6786 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6787 case $host_os in
6788 darwin*)
6789 if test "$GCC" = yes; then
6790 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6791 else
6792 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6795 esac
6797 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6798 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6799 if test "${lt_cv_path_NM+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 if test -n "$NM"; then
6803 # Let the user override the test.
6804 lt_cv_path_NM="$NM"
6805 else
6806 lt_nm_to_check="${ac_tool_prefix}nm"
6807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6808 lt_nm_to_check="$lt_nm_to_check nm"
6810 for lt_tmp_nm in $lt_nm_to_check; do
6811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6813 IFS="$lt_save_ifs"
6814 test -z "$ac_dir" && ac_dir=.
6815 tmp_nm="$ac_dir/$lt_tmp_nm"
6816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6817 # Check to see if the nm accepts a BSD-compat flag.
6818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6819 # nm: unknown option "B" ignored
6820 # Tru64's nm complains that /dev/null is an invalid object file
6821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6822 */dev/null* | *'Invalid file or object type'*)
6823 lt_cv_path_NM="$tmp_nm -B"
6824 break
6827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6828 */dev/null*)
6829 lt_cv_path_NM="$tmp_nm -p"
6830 break
6833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6834 continue # so that we can try to find one that supports BSD flags
6836 esac
6838 esac
6840 done
6841 IFS="$lt_save_ifs"
6842 done
6843 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6846 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6847 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6848 NM="$lt_cv_path_NM"
6850 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6851 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6852 LN_S=$as_ln_s
6853 if test "$LN_S" = "ln -s"; then
6854 { echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6; }
6856 else
6857 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6858 echo "${ECHO_T}no, using $LN_S" >&6; }
6861 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6862 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6863 if test "${lt_cv_deplibs_check_method+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 lt_cv_file_magic_cmd='$MAGIC_CMD'
6867 lt_cv_file_magic_test_file=
6868 lt_cv_deplibs_check_method='unknown'
6869 # Need to set the preceding variable on all platforms that support
6870 # interlibrary dependencies.
6871 # 'none' -- dependencies not supported.
6872 # `unknown' -- same as none, but documents that we really don't know.
6873 # 'pass_all' -- all dependencies passed with no checks.
6874 # 'test_compile' -- check by making test program.
6875 # 'file_magic [[regex]]' -- check by looking for files in library path
6876 # which responds to the $file_magic_cmd with a given extended regex.
6877 # If you have `file' or equivalent on your system and you're not sure
6878 # whether `pass_all' will *always* work, you probably want this one.
6880 case $host_os in
6881 aix[4-9]*)
6882 lt_cv_deplibs_check_method=pass_all
6885 beos*)
6886 lt_cv_deplibs_check_method=pass_all
6889 bsdi[45]*)
6890 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6891 lt_cv_file_magic_cmd='/usr/bin/file -L'
6892 lt_cv_file_magic_test_file=/shlib/libc.so
6895 cygwin*)
6896 # func_win32_libid is a shell function defined in ltmain.sh
6897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6898 lt_cv_file_magic_cmd='func_win32_libid'
6901 mingw* | pw32*)
6902 # Base MSYS/MinGW do not provide the 'file' command needed by
6903 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6904 # unless we find 'file', for example because we are cross-compiling.
6905 if ( file / ) >/dev/null 2>&1; then
6906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6907 lt_cv_file_magic_cmd='func_win32_libid'
6908 else
6909 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6910 lt_cv_file_magic_cmd='$OBJDUMP -f'
6914 darwin* | rhapsody*)
6915 lt_cv_deplibs_check_method=pass_all
6918 freebsd* | dragonfly*)
6919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6920 case $host_cpu in
6921 i*86 )
6922 # Not sure whether the presence of OpenBSD here was a mistake.
6923 # Let's accept both of them until this is cleared up.
6924 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6925 lt_cv_file_magic_cmd=/usr/bin/file
6926 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6928 esac
6929 else
6930 lt_cv_deplibs_check_method=pass_all
6934 gnu*)
6935 lt_cv_deplibs_check_method=pass_all
6938 hpux10.20* | hpux11*)
6939 lt_cv_file_magic_cmd=/usr/bin/file
6940 case $host_cpu in
6941 ia64*)
6942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6943 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6945 hppa*64*)
6946 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]'
6947 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6951 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6953 esac
6956 interix[3-9]*)
6957 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6961 irix5* | irix6* | nonstopux*)
6962 case $LD in
6963 *-32|*"-32 ") libmagic=32-bit;;
6964 *-n32|*"-n32 ") libmagic=N32;;
6965 *-64|*"-64 ") libmagic=64-bit;;
6966 *) libmagic=never-match;;
6967 esac
6968 lt_cv_deplibs_check_method=pass_all
6971 # This must be Linux ELF.
6972 linux* | k*bsd*-gnu)
6973 lt_cv_deplibs_check_method=pass_all
6976 netbsd* | netbsdelf*-gnu)
6977 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6979 else
6980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6984 newos6*)
6985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6986 lt_cv_file_magic_cmd=/usr/bin/file
6987 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6990 nto-qnx*)
6991 lt_cv_deplibs_check_method=unknown
6994 openbsd*)
6995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6997 else
6998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7002 osf3* | osf4* | osf5*)
7003 lt_cv_deplibs_check_method=pass_all
7006 rdos*)
7007 lt_cv_deplibs_check_method=pass_all
7010 solaris*)
7011 lt_cv_deplibs_check_method=pass_all
7014 sysv4 | sysv4.3*)
7015 case $host_vendor in
7016 motorola)
7017 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]'
7018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7020 ncr)
7021 lt_cv_deplibs_check_method=pass_all
7023 sequent)
7024 lt_cv_file_magic_cmd='/bin/file'
7025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7027 sni)
7028 lt_cv_file_magic_cmd='/bin/file'
7029 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7030 lt_cv_file_magic_test_file=/lib/libc.so
7032 siemens)
7033 lt_cv_deplibs_check_method=pass_all
7036 lt_cv_deplibs_check_method=pass_all
7038 esac
7041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7042 lt_cv_deplibs_check_method=pass_all
7044 esac
7047 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7048 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7049 file_magic_cmd=$lt_cv_file_magic_cmd
7050 deplibs_check_method=$lt_cv_deplibs_check_method
7051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7056 # If no C compiler was specified, use CC.
7057 LTCC=${LTCC-"$CC"}
7059 # If no C compiler flags were specified, use CFLAGS.
7060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7062 # Allow CC to be a program name with arguments.
7063 compiler=$CC
7065 # Check whether --enable-libtool-lock was given.
7066 if test "${enable_libtool_lock+set}" = set; then
7067 enableval=$enable_libtool_lock;
7070 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7072 # Some flags need to be propagated to the compiler or linker for good
7073 # libtool support.
7074 case $host in
7075 ia64-*-hpux*)
7076 # Find out which ABI we are using.
7077 echo 'int i;' > conftest.$ac_ext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; then
7083 case `/usr/bin/file conftest.$ac_objext` in
7084 *ELF-32*)
7085 HPUX_IA64_MODE="32"
7087 *ELF-64*)
7088 HPUX_IA64_MODE="64"
7090 esac
7092 rm -rf conftest*
7094 *-*-irix6*)
7095 # Find out which ABI we are using.
7096 echo '#line 7096 "configure"' > conftest.$ac_ext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; then
7102 if test "$lt_cv_prog_gnu_ld" = yes; then
7103 case `/usr/bin/file conftest.$ac_objext` in
7104 *32-bit*)
7105 LD="${LD-ld} -melf32bsmip"
7107 *N32*)
7108 LD="${LD-ld} -melf32bmipn32"
7110 *64-bit*)
7111 LD="${LD-ld} -melf64bmip"
7113 esac
7114 else
7115 case `/usr/bin/file conftest.$ac_objext` in
7116 *32-bit*)
7117 LD="${LD-ld} -32"
7119 *N32*)
7120 LD="${LD-ld} -n32"
7122 *64-bit*)
7123 LD="${LD-ld} -64"
7125 esac
7128 rm -rf conftest*
7131 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7132 s390*-*linux*|sparc*-*linux*)
7133 # Find out which ABI we are using.
7134 echo 'int i;' > conftest.$ac_ext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136 (eval $ac_compile) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; then
7140 case `/usr/bin/file conftest.o` in
7141 *32-bit*)
7142 case $host in
7143 x86_64-*kfreebsd*-gnu)
7144 LD="${LD-ld} -m elf_i386_fbsd"
7146 x86_64-*linux*)
7147 LD="${LD-ld} -m elf_i386"
7149 ppc64-*linux*|powerpc64-*linux*)
7150 LD="${LD-ld} -m elf32ppclinux"
7152 s390x-*linux*)
7153 LD="${LD-ld} -m elf_s390"
7155 sparc64-*linux*)
7156 LD="${LD-ld} -m elf32_sparc"
7158 esac
7160 *64-bit*)
7161 case $host in
7162 x86_64-*kfreebsd*-gnu)
7163 LD="${LD-ld} -m elf_x86_64_fbsd"
7165 x86_64-*linux*)
7166 LD="${LD-ld} -m elf_x86_64"
7168 ppc*-*linux*|powerpc*-*linux*)
7169 LD="${LD-ld} -m elf64ppc"
7171 s390*-*linux*)
7172 LD="${LD-ld} -m elf64_s390"
7174 sparc*-*linux*)
7175 LD="${LD-ld} -m elf64_sparc"
7177 esac
7179 esac
7181 rm -rf conftest*
7184 *-*-sco3.2v5*)
7185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7186 SAVE_CFLAGS="$CFLAGS"
7187 CFLAGS="$CFLAGS -belf"
7188 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7189 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7190 if test "${lt_cv_cc_needs_belf+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7207 main ()
7211 return 0;
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (ac_try="$ac_link"
7216 case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7219 esac
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_link") 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest$ac_exeext &&
7231 $as_test_x conftest$ac_exeext; then
7232 lt_cv_cc_needs_belf=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 lt_cv_cc_needs_belf=no
7240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7241 conftest$ac_exeext conftest.$ac_ext
7242 ac_ext=c
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7250 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7253 CFLAGS="$SAVE_CFLAGS"
7256 sparc*-*solaris*)
7257 # Find out which ABI we are using.
7258 echo 'int i;' > conftest.$ac_ext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; then
7264 case `/usr/bin/file conftest.o` in
7265 *64-bit*)
7266 case $lt_cv_prog_gnu_ld in
7267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7270 LD="${LD-ld} -64"
7273 esac
7275 esac
7277 rm -rf conftest*
7281 esac
7283 need_locks="$enable_libtool_lock"
7286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7297 inttypes.h stdint.h unistd.h
7299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7317 case "(($ac_try" in
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.$ac_objext; then
7332 eval "$as_ac_Header=yes"
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 eval "$as_ac_Header=no"
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 ac_res=`eval echo '${'$as_ac_Header'}'`
7343 { echo "$as_me:$LINENO: result: $ac_res" >&5
7344 echo "${ECHO_T}$ac_res" >&6; }
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 _ACEOF
7352 done
7356 for ac_header in dlfcn.h
7358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_res=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7368 else
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7420 _ACEOF
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7422 case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev/null && {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 }; then
7437 ac_header_preproc=yes
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_header_preproc=no
7445 rm -f conftest.err conftest.$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7451 yes:no: )
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc=yes
7458 no:yes:* )
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7473 esac
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 eval "$as_ac_Header=\$ac_header_preproc"
7481 ac_res=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7489 _ACEOF
7493 done
7497 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7498 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7499 (test "X$CXX" != "Xg++"))) ; then
7500 ac_ext=cpp
7501 ac_cpp='$CXXCPP $CPPFLAGS'
7502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7505 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7506 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7507 if test -z "$CXXCPP"; then
7508 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 # Double quotes because CXXCPP needs to be expanded
7512 for CXXCPP in "$CXX -E" "/lib/cpp"
7514 ac_preproc_ok=false
7515 for ac_cxx_preproc_warn_flag in '' yes
7517 # Use a header file that comes with gcc, so configuring glibc
7518 # with a fresh cross-compiler works.
7519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7520 # <limits.h> exists even on freestanding compilers.
7521 # On the NeXT, cc -E runs the code through the compiler's parser,
7522 # not just through cpp. "Syntax error" is here to catch this case.
7523 cat >conftest.$ac_ext <<_ACEOF
7524 /* confdefs.h. */
7525 _ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #ifdef __STDC__
7530 # include <limits.h>
7531 #else
7532 # include <assert.h>
7533 #endif
7534 Syntax error
7535 _ACEOF
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null && {
7549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7550 test ! -s conftest.err
7551 }; then
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 # Broken: fails on valid input.
7558 continue
7561 rm -f conftest.err conftest.$ac_ext
7563 # OK, works on sane cases. Now check whether nonexistent headers
7564 # can be detected and how.
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 #include <ac_nonexistent.h>
7572 _ACEOF
7573 if { (ac_try="$ac_cpp conftest.$ac_ext"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } >/dev/null && {
7586 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7587 test ! -s conftest.err
7588 }; then
7589 # Broken: success on invalid input.
7590 continue
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 # Passes both tests.
7596 ac_preproc_ok=:
7597 break
7600 rm -f conftest.err conftest.$ac_ext
7602 done
7603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7604 rm -f conftest.err conftest.$ac_ext
7605 if $ac_preproc_ok; then
7606 break
7609 done
7610 ac_cv_prog_CXXCPP=$CXXCPP
7613 CXXCPP=$ac_cv_prog_CXXCPP
7614 else
7615 ac_cv_prog_CXXCPP=$CXXCPP
7617 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7618 echo "${ECHO_T}$CXXCPP" >&6; }
7619 ac_preproc_ok=false
7620 for ac_cxx_preproc_warn_flag in '' yes
7622 # Use a header file that comes with gcc, so configuring glibc
7623 # with a fresh cross-compiler works.
7624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7625 # <limits.h> exists even on freestanding compilers.
7626 # On the NeXT, cc -E runs the code through the compiler's parser,
7627 # not just through cpp. "Syntax error" is here to catch this case.
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h. */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 #ifdef __STDC__
7635 # include <limits.h>
7636 #else
7637 # include <assert.h>
7638 #endif
7639 Syntax error
7640 _ACEOF
7641 if { (ac_try="$ac_cpp conftest.$ac_ext"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } >/dev/null && {
7654 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7655 test ! -s conftest.err
7656 }; then
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 # Broken: fails on valid input.
7663 continue
7666 rm -f conftest.err conftest.$ac_ext
7668 # OK, works on sane cases. Now check whether nonexistent headers
7669 # can be detected and how.
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7676 #include <ac_nonexistent.h>
7677 _ACEOF
7678 if { (ac_try="$ac_cpp conftest.$ac_ext"
7679 case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } >/dev/null && {
7691 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7692 test ! -s conftest.err
7693 }; then
7694 # Broken: success on invalid input.
7695 continue
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 # Passes both tests.
7701 ac_preproc_ok=:
7702 break
7705 rm -f conftest.err conftest.$ac_ext
7707 done
7708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7709 rm -f conftest.err conftest.$ac_ext
7710 if $ac_preproc_ok; then
7712 else
7713 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7714 See \`config.log' for more details." >&5
7715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7716 See \`config.log' for more details." >&2;}
7717 { (exit 1); exit 1; }; }
7720 ac_ext=cpp
7721 ac_cpp='$CXXCPP $CPPFLAGS'
7722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7729 ac_ext=f
7730 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7731 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7733 if test -n "$ac_tool_prefix"; then
7734 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
7736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_F77+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 if test -n "$F77"; then
7744 ac_cv_prog_F77="$F77" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7757 done
7758 done
7759 IFS=$as_save_IFS
7763 F77=$ac_cv_prog_F77
7764 if test -n "$F77"; then
7765 { echo "$as_me:$LINENO: result: $F77" >&5
7766 echo "${ECHO_T}$F77" >&6; }
7767 else
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7773 test -n "$F77" && break
7774 done
7776 if test -z "$F77"; then
7777 ac_ct_F77=$F77
7778 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
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 if test -n "$ac_ct_F77"; then
7788 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_ac_ct_F77="$ac_prog"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7801 done
7802 done
7803 IFS=$as_save_IFS
7807 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7808 if test -n "$ac_ct_F77"; then
7809 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7810 echo "${ECHO_T}$ac_ct_F77" >&6; }
7811 else
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7817 test -n "$ac_ct_F77" && break
7818 done
7820 if test "x$ac_ct_F77" = x; then
7821 F77=""
7822 else
7823 case $cross_compiling:$ac_tool_warned in
7824 yes:)
7825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7826 whose name does not start with the host triplet. If you think this
7827 configuration is useful to you, please write to autoconf@gnu.org." >&5
7828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7829 whose name does not start with the host triplet. If you think this
7830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833 F77=$ac_ct_F77
7838 # Provide some information about the compiler.
7839 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7840 ac_compiler=`set X $ac_compile; echo $2`
7841 { (ac_try="$ac_compiler --version >&5"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_compiler --version >&5") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }
7851 { (ac_try="$ac_compiler -v >&5"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_compiler -v >&5") 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }
7861 { (ac_try="$ac_compiler -V >&5"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compiler -V >&5") 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }
7871 rm -f a.out
7873 # If we don't use `.F' as extension, the preprocessor is not run on the
7874 # input file. (Note that this only needs to work for GNU compilers.)
7875 ac_save_ext=$ac_ext
7876 ac_ext=F
7877 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7878 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7879 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 program main
7884 #ifndef __GNUC__
7885 choke me
7886 #endif
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_compile") 2>conftest.er1
7898 ac_status=$?
7899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } && {
7904 test -z "$ac_f77_werror_flag" ||
7905 test ! -s conftest.err
7906 } && test -s conftest.$ac_objext; then
7907 ac_compiler_gnu=yes
7908 else
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 ac_compiler_gnu=no
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7919 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7920 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7921 ac_ext=$ac_save_ext
7922 ac_test_FFLAGS=${FFLAGS+set}
7923 ac_save_FFLAGS=$FFLAGS
7924 FFLAGS=
7925 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7926 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7927 if test "${ac_cv_prog_f77_g+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930 FFLAGS=-g
7931 cat >conftest.$ac_ext <<_ACEOF
7932 program main
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_f77_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_prog_f77_g=yes
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_prog_f77_g=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7965 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7966 if test "$ac_test_FFLAGS" = set; then
7967 FFLAGS=$ac_save_FFLAGS
7968 elif test $ac_cv_prog_f77_g = yes; then
7969 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7970 FFLAGS="-g -O2"
7971 else
7972 FFLAGS="-g"
7974 else
7975 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7976 FFLAGS="-O2"
7977 else
7978 FFLAGS=
7982 G77=`test $ac_compiler_gnu = yes && echo yes`
7983 ac_ext=c
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7992 # find the maximum length of command line arguments
7993 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7994 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7995 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7999 teststring="ABCD"
8001 case $build_os in
8002 msdosdjgpp*)
8003 # On DJGPP, this test can blow up pretty badly due to problems in libc
8004 # (any single argument exceeding 2000 bytes causes a buffer overrun
8005 # during glob expansion). Even if it were fixed, the result of this
8006 # check would be larger than it should be.
8007 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8010 gnu*)
8011 # Under GNU Hurd, this test is not required because there is
8012 # no limit to the length of command line arguments.
8013 # Libtool will interpret -1 as no limit whatsoever
8014 lt_cv_sys_max_cmd_len=-1;
8017 cygwin* | mingw*)
8018 # On Win9x/ME, this test blows up -- it succeeds, but takes
8019 # about 5 minutes as the teststring grows exponentially.
8020 # Worse, since 9x/ME are not pre-emptively multitasking,
8021 # you end up with a "frozen" computer, even though with patience
8022 # the test eventually succeeds (with a max line length of 256k).
8023 # Instead, let's just punt: use the minimum linelength reported by
8024 # all of the supported platforms: 8192 (on NT/2K/XP).
8025 lt_cv_sys_max_cmd_len=8192;
8028 amigaos*)
8029 # On AmigaOS with pdksh, this test takes hours, literally.
8030 # So we just punt and use a minimum line length of 8192.
8031 lt_cv_sys_max_cmd_len=8192;
8034 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8035 # This has been around since 386BSD, at least. Likely further.
8036 if test -x /sbin/sysctl; then
8037 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8038 elif test -x /usr/sbin/sysctl; then
8039 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8040 else
8041 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8043 # And add a safety zone
8044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8045 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8048 interix*)
8049 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8050 lt_cv_sys_max_cmd_len=196608
8053 osf*)
8054 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8055 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8056 # nice to cause kernel panics so lets avoid the loop below.
8057 # First set a reasonable default.
8058 lt_cv_sys_max_cmd_len=16384
8060 if test -x /sbin/sysconfig; then
8061 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8062 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8063 esac
8066 sco3.2v5*)
8067 lt_cv_sys_max_cmd_len=102400
8069 sysv5* | sco5v6* | sysv4.2uw2*)
8070 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8071 if test -n "$kargmax"; then
8072 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8073 else
8074 lt_cv_sys_max_cmd_len=32768
8078 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8079 if test -n "$lt_cv_sys_max_cmd_len"; then
8080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8082 else
8083 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8084 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8085 = "XX$teststring") >/dev/null 2>&1 &&
8086 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8087 lt_cv_sys_max_cmd_len=$new_result &&
8088 test $i != 17 # 1/2 MB should be enough
8090 i=`expr $i + 1`
8091 teststring=$teststring$teststring
8092 done
8093 teststring=
8094 # Add a significant safety factor because C++ compilers can tack on massive
8095 # amounts of additional arguments before passing them to the linker.
8096 # It appears as though 1/2 is a usable value.
8097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8100 esac
8104 if test -n $lt_cv_sys_max_cmd_len ; then
8105 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8106 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8107 else
8108 { echo "$as_me:$LINENO: result: none" >&5
8109 echo "${ECHO_T}none" >&6; }
8116 # Check for command to grab the raw symbol name followed by C symbol from nm.
8117 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8118 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8119 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8123 # These are sane defaults that work on at least a few old systems.
8124 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8126 # Character class describing NM global symbol codes.
8127 symcode='[BCDEGRST]'
8129 # Regexp to match symbols that can be accessed directly from C.
8130 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8132 # Transform an extracted symbol line into a proper C declaration
8133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8135 # Transform an extracted symbol line into symbol name and symbol address
8136 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'"
8138 # Define system-specific variables.
8139 case $host_os in
8140 aix*)
8141 symcode='[BCDT]'
8143 cygwin* | mingw* | pw32*)
8144 symcode='[ABCDGISTW]'
8146 hpux*) # Its linker distinguishes data from code symbols
8147 if test "$host_cpu" = ia64; then
8148 symcode='[ABCDEGRST]'
8150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8151 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'"
8153 linux* | k*bsd*-gnu)
8154 if test "$host_cpu" = ia64; then
8155 symcode='[ABCDGIRSTW]'
8156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8157 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'"
8160 irix* | nonstopux*)
8161 symcode='[BCDEGRST]'
8163 osf*)
8164 symcode='[BCDEGQRST]'
8166 solaris*)
8167 symcode='[BDRT]'
8169 sco3.2v5*)
8170 symcode='[DT]'
8172 sysv4.2uw2*)
8173 symcode='[DT]'
8175 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8176 symcode='[ABDT]'
8178 sysv4)
8179 symcode='[DFNSTU]'
8181 esac
8183 # Handle CRLF in mingw tool chain
8184 opt_cr=
8185 case $build_os in
8186 mingw*)
8187 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8189 esac
8191 # If we're using GNU nm, then use its standard symbol codes.
8192 case `$NM -V 2>&1` in
8193 *GNU* | *'with BFD'*)
8194 symcode='[ABCDGIRSTW]' ;;
8195 esac
8197 # Try without a prefix undercore, then with it.
8198 for ac_symprfx in "" "_"; do
8200 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8201 symxfrm="\\1 $ac_symprfx\\2 \\2"
8203 # Write the raw and C identifiers.
8204 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8206 # Check to see that the pipe works correctly.
8207 pipe_works=no
8209 rm -f conftest*
8210 cat > conftest.$ac_ext <<EOF
8211 #ifdef __cplusplus
8212 extern "C" {
8213 #endif
8214 char nm_test_var;
8215 void nm_test_func(){}
8216 #ifdef __cplusplus
8218 #endif
8219 int main(){nm_test_var='a';nm_test_func();return(0);}
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; then
8227 # Now try to grab the symbols.
8228 nlist=conftest.nm
8229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && test -s "$nlist"; then
8234 # Try sorting and uniquifying the output.
8235 if sort "$nlist" | uniq > "$nlist"T; then
8236 mv -f "$nlist"T "$nlist"
8237 else
8238 rm -f "$nlist"T
8241 # Make sure that we snagged all the symbols we need.
8242 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8243 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8244 cat <<EOF > conftest.$ac_ext
8245 #ifdef __cplusplus
8246 extern "C" {
8247 #endif
8250 # Now generate the symbol file.
8251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8253 cat <<EOF >> conftest.$ac_ext
8254 #if defined (__STDC__) && __STDC__
8255 # define lt_ptr_t void *
8256 #else
8257 # define lt_ptr_t char *
8258 # define const
8259 #endif
8261 /* The mapping between symbol names and symbols. */
8262 const struct {
8263 const char *name;
8264 lt_ptr_t address;
8266 lt_preloaded_symbols[] =
8269 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8270 cat <<\EOF >> conftest.$ac_ext
8271 {0, (lt_ptr_t) 0}
8274 #ifdef __cplusplus
8276 #endif
8278 # Now try linking the two files.
8279 mv conftest.$ac_objext conftstm.$ac_objext
8280 lt_save_LIBS="$LIBS"
8281 lt_save_CFLAGS="$CFLAGS"
8282 LIBS="conftstm.$ac_objext"
8283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8289 pipe_works=yes
8291 LIBS="$lt_save_LIBS"
8292 CFLAGS="$lt_save_CFLAGS"
8293 else
8294 echo "cannot find nm_test_func in $nlist" >&5
8296 else
8297 echo "cannot find nm_test_var in $nlist" >&5
8299 else
8300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8302 else
8303 echo "$progname: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 rm -rf conftest* conftst*
8308 # Do not use the global_symbol_pipe unless it works.
8309 if test "$pipe_works" = yes; then
8310 break
8311 else
8312 lt_cv_sys_global_symbol_pipe=
8314 done
8318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8319 lt_cv_sys_global_symbol_to_cdecl=
8321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8322 { echo "$as_me:$LINENO: result: failed" >&5
8323 echo "${ECHO_T}failed" >&6; }
8324 else
8325 { echo "$as_me:$LINENO: result: ok" >&5
8326 echo "${ECHO_T}ok" >&6; }
8329 { echo "$as_me:$LINENO: checking for objdir" >&5
8330 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8331 if test "${lt_cv_objdir+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 rm -f .libs 2>/dev/null
8335 mkdir .libs 2>/dev/null
8336 if test -d .libs; then
8337 lt_cv_objdir=.libs
8338 else
8339 # MS-DOS does not allow filenames that begin with a dot.
8340 lt_cv_objdir=_libs
8342 rmdir .libs 2>/dev/null
8344 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8345 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8346 objdir=$lt_cv_objdir
8352 case $host_os in
8353 aix3*)
8354 # AIX sometimes has problems with the GCC collect2 program. For some
8355 # reason, if we set the COLLECT_NAMES environment variable, the problems
8356 # vanish in a puff of smoke.
8357 if test "X${COLLECT_NAMES+set}" != Xset; then
8358 COLLECT_NAMES=
8359 export COLLECT_NAMES
8362 esac
8364 # Sed substitution that helps us do robust quoting. It backslashifies
8365 # metacharacters that are still active within double-quoted strings.
8366 Xsed='sed -e 1s/^X//'
8367 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8369 # Same as above, but do not quote variable references.
8370 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8372 # Sed substitution to delay expansion of an escaped shell variable in a
8373 # double_quote_subst'ed string.
8374 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8376 # Sed substitution to avoid accidental globbing in evaled expressions
8377 no_glob_subst='s/\*/\\\*/g'
8379 # Constants:
8380 rm="rm -f"
8382 # Global variables:
8383 default_ofile=libtool
8384 can_build_shared=yes
8386 # All known linkers require a `.a' archive for static linking (except MSVC,
8387 # which needs '.lib').
8388 libext=a
8389 ltmain="$ac_aux_dir/ltmain.sh"
8390 ofile="$default_ofile"
8391 with_gnu_ld="$lt_cv_prog_gnu_ld"
8393 if test -n "$ac_tool_prefix"; then
8394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8395 set dummy ${ac_tool_prefix}ar; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_AR+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 if test -n "$AR"; then
8402 ac_cv_prog_AR="$AR" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_AR="${ac_tool_prefix}ar"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8417 IFS=$as_save_IFS
8421 AR=$ac_cv_prog_AR
8422 if test -n "$AR"; then
8423 { echo "$as_me:$LINENO: result: $AR" >&5
8424 echo "${ECHO_T}$AR" >&6; }
8425 else
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8432 if test -z "$ac_cv_prog_AR"; then
8433 ac_ct_AR=$AR
8434 # Extract the first word of "ar", so it can be a program name with args.
8435 set dummy ar; ac_word=$2
8436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 else
8441 if test -n "$ac_ct_AR"; then
8442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_prog_ac_ct_AR="ar"
8452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8455 done
8456 done
8457 IFS=$as_save_IFS
8461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8462 if test -n "$ac_ct_AR"; then
8463 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8464 echo "${ECHO_T}$ac_ct_AR" >&6; }
8465 else
8466 { echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6; }
8470 if test "x$ac_ct_AR" = x; then
8471 AR="false"
8472 else
8473 case $cross_compiling:$ac_tool_warned in
8474 yes:)
8475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8476 whose name does not start with the host triplet. If you think this
8477 configuration is useful to you, please write to autoconf@gnu.org." >&5
8478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8479 whose name does not start with the host triplet. If you think this
8480 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8481 ac_tool_warned=yes ;;
8482 esac
8483 AR=$ac_ct_AR
8485 else
8486 AR="$ac_cv_prog_AR"
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8494 if test "${ac_cv_prog_RANLIB+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 RANLIB=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8520 echo "${ECHO_T}$RANLIB" >&6; }
8521 else
8522 { echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib; ac_word=$2
8532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_prog_ac_ct_RANLIB="ranlib"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8560 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8561 else
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x; then
8567 RANLIB=":"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8572 whose name does not start with the host triplet. If you think this
8573 configuration is useful to you, please write to autoconf@gnu.org." >&5
8574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8575 whose name does not start with the host triplet. If you think this
8576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8577 ac_tool_warned=yes ;;
8578 esac
8579 RANLIB=$ac_ct_RANLIB
8581 else
8582 RANLIB="$ac_cv_prog_RANLIB"
8585 if test -n "$ac_tool_prefix"; then
8586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8587 set dummy ${ac_tool_prefix}strip; ac_word=$2
8588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8590 if test "${ac_cv_prog_STRIP+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 if test -n "$STRIP"; then
8594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8595 else
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8607 done
8608 done
8609 IFS=$as_save_IFS
8613 STRIP=$ac_cv_prog_STRIP
8614 if test -n "$STRIP"; then
8615 { echo "$as_me:$LINENO: result: $STRIP" >&5
8616 echo "${ECHO_T}$STRIP" >&6; }
8617 else
8618 { echo "$as_me:$LINENO: result: no" >&5
8619 echo "${ECHO_T}no" >&6; }
8624 if test -z "$ac_cv_prog_STRIP"; then
8625 ac_ct_STRIP=$STRIP
8626 # Extract the first word of "strip", so it can be a program name with args.
8627 set dummy strip; ac_word=$2
8628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633 if test -n "$ac_ct_STRIP"; then
8634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643 ac_cv_prog_ac_ct_STRIP="strip"
8644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 break 2
8647 done
8648 done
8649 IFS=$as_save_IFS
8653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8654 if test -n "$ac_ct_STRIP"; then
8655 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8656 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8657 else
8658 { echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6; }
8662 if test "x$ac_ct_STRIP" = x; then
8663 STRIP=":"
8664 else
8665 case $cross_compiling:$ac_tool_warned in
8666 yes:)
8667 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8668 whose name does not start with the host triplet. If you think this
8669 configuration is useful to you, please write to autoconf@gnu.org." >&5
8670 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8671 whose name does not start with the host triplet. If you think this
8672 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675 STRIP=$ac_ct_STRIP
8677 else
8678 STRIP="$ac_cv_prog_STRIP"
8682 old_CC="$CC"
8683 old_CFLAGS="$CFLAGS"
8685 # Set sane defaults for various variables
8686 test -z "$AR" && AR=ar
8687 test -z "$AR_FLAGS" && AR_FLAGS=cru
8688 test -z "$AS" && AS=as
8689 test -z "$CC" && CC=cc
8690 test -z "$LTCC" && LTCC=$CC
8691 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8692 test -z "$DLLTOOL" && DLLTOOL=dlltool
8693 test -z "$LD" && LD=ld
8694 test -z "$LN_S" && LN_S="ln -s"
8695 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8696 test -z "$NM" && NM=nm
8697 test -z "$SED" && SED=sed
8698 test -z "$OBJDUMP" && OBJDUMP=objdump
8699 test -z "$RANLIB" && RANLIB=:
8700 test -z "$STRIP" && STRIP=:
8701 test -z "$ac_objext" && ac_objext=o
8703 # Determine commands to create old-style static archives.
8704 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8705 old_postinstall_cmds='chmod 644 $oldlib'
8706 old_postuninstall_cmds=
8708 if test -n "$RANLIB"; then
8709 case $host_os in
8710 openbsd*)
8711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8716 esac
8717 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8720 for cc_temp in $compiler""; do
8721 case $cc_temp in
8722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8724 \-*) ;;
8725 *) break;;
8726 esac
8727 done
8728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8731 # Only perform the check for file, if the check method requires it
8732 case $deplibs_check_method in
8733 file_magic*)
8734 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8735 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8736 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8737 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740 case $MAGIC_CMD in
8741 [\\/*] | ?:[\\/]*)
8742 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8745 lt_save_MAGIC_CMD="$MAGIC_CMD"
8746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8748 for ac_dir in $ac_dummy; do
8749 IFS="$lt_save_ifs"
8750 test -z "$ac_dir" && ac_dir=.
8751 if test -f $ac_dir/${ac_tool_prefix}file; then
8752 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8753 if test -n "$file_magic_test_file"; then
8754 case $deplibs_check_method in
8755 "file_magic "*)
8756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8759 $EGREP "$file_magic_regex" > /dev/null; then
8761 else
8762 cat <<EOF 1>&2
8764 *** Warning: the command libtool uses to detect shared libraries,
8765 *** $file_magic_cmd, produces output that libtool cannot recognize.
8766 *** The result is that libtool may fail to recognize shared libraries
8767 *** as such. This will affect the creation of libtool libraries that
8768 *** depend on shared libraries, but programs linked with such libtool
8769 *** libraries will work regardless of this problem. Nevertheless, you
8770 *** may want to report the problem to your system manager and/or to
8771 *** bug-libtool@gnu.org
8774 fi ;;
8775 esac
8777 break
8779 done
8780 IFS="$lt_save_ifs"
8781 MAGIC_CMD="$lt_save_MAGIC_CMD"
8783 esac
8786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8787 if test -n "$MAGIC_CMD"; then
8788 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8789 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8790 else
8791 { echo "$as_me:$LINENO: result: no" >&5
8792 echo "${ECHO_T}no" >&6; }
8795 if test -z "$lt_cv_path_MAGIC_CMD"; then
8796 if test -n "$ac_tool_prefix"; then
8797 { echo "$as_me:$LINENO: checking for file" >&5
8798 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 case $MAGIC_CMD in
8803 [\\/*] | ?:[\\/]*)
8804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8807 lt_save_MAGIC_CMD="$MAGIC_CMD"
8808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8810 for ac_dir in $ac_dummy; do
8811 IFS="$lt_save_ifs"
8812 test -z "$ac_dir" && ac_dir=.
8813 if test -f $ac_dir/file; then
8814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8815 if test -n "$file_magic_test_file"; then
8816 case $deplibs_check_method in
8817 "file_magic "*)
8818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8821 $EGREP "$file_magic_regex" > /dev/null; then
8823 else
8824 cat <<EOF 1>&2
8826 *** Warning: the command libtool uses to detect shared libraries,
8827 *** $file_magic_cmd, produces output that libtool cannot recognize.
8828 *** The result is that libtool may fail to recognize shared libraries
8829 *** as such. This will affect the creation of libtool libraries that
8830 *** depend on shared libraries, but programs linked with such libtool
8831 *** libraries will work regardless of this problem. Nevertheless, you
8832 *** may want to report the problem to your system manager and/or to
8833 *** bug-libtool@gnu.org
8836 fi ;;
8837 esac
8839 break
8841 done
8842 IFS="$lt_save_ifs"
8843 MAGIC_CMD="$lt_save_MAGIC_CMD"
8845 esac
8848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8849 if test -n "$MAGIC_CMD"; then
8850 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8851 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8852 else
8853 { echo "$as_me:$LINENO: result: no" >&5
8854 echo "${ECHO_T}no" >&6; }
8857 else
8858 MAGIC_CMD=:
8864 esac
8867 case $host_os in
8868 rhapsody* | darwin*)
8869 if test -n "$ac_tool_prefix"; then
8870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8871 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8874 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 if test -n "$DSYMUTIL"; then
8878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8897 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8898 if test -n "$DSYMUTIL"; then
8899 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8900 echo "${ECHO_T}$DSYMUTIL" >&6; }
8901 else
8902 { echo "$as_me:$LINENO: result: no" >&5
8903 echo "${ECHO_T}no" >&6; }
8908 if test -z "$ac_cv_prog_DSYMUTIL"; then
8909 ac_ct_DSYMUTIL=$DSYMUTIL
8910 # Extract the first word of "dsymutil", so it can be a program name with args.
8911 set dummy dsymutil; ac_word=$2
8912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8914 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 if test -n "$ac_ct_DSYMUTIL"; then
8918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8937 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8938 if test -n "$ac_ct_DSYMUTIL"; then
8939 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8940 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8941 else
8942 { echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6; }
8946 if test "x$ac_ct_DSYMUTIL" = x; then
8947 DSYMUTIL=":"
8948 else
8949 case $cross_compiling:$ac_tool_warned in
8950 yes:)
8951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8952 whose name does not start with the host triplet. If you think this
8953 configuration is useful to you, please write to autoconf@gnu.org." >&5
8954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8955 whose name does not start with the host triplet. If you think this
8956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8957 ac_tool_warned=yes ;;
8958 esac
8959 DSYMUTIL=$ac_ct_DSYMUTIL
8961 else
8962 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8965 if test -n "$ac_tool_prefix"; then
8966 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8967 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8970 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973 if test -n "$NMEDIT"; then
8974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8993 NMEDIT=$ac_cv_prog_NMEDIT
8994 if test -n "$NMEDIT"; then
8995 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8996 echo "${ECHO_T}$NMEDIT" >&6; }
8997 else
8998 { echo "$as_me:$LINENO: result: no" >&5
8999 echo "${ECHO_T}no" >&6; }
9004 if test -z "$ac_cv_prog_NMEDIT"; then
9005 ac_ct_NMEDIT=$NMEDIT
9006 # Extract the first word of "nmedit", so it can be a program name with args.
9007 set dummy nmedit; ac_word=$2
9008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9010 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 if test -n "$ac_ct_NMEDIT"; then
9014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9015 else
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9023 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9027 done
9028 done
9029 IFS=$as_save_IFS
9033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9034 if test -n "$ac_ct_NMEDIT"; then
9035 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9036 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
9037 else
9038 { echo "$as_me:$LINENO: result: no" >&5
9039 echo "${ECHO_T}no" >&6; }
9042 if test "x$ac_ct_NMEDIT" = x; then
9043 NMEDIT=":"
9044 else
9045 case $cross_compiling:$ac_tool_warned in
9046 yes:)
9047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9048 whose name does not start with the host triplet. If you think this
9049 configuration is useful to you, please write to autoconf@gnu.org." >&5
9050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9051 whose name does not start with the host triplet. If you think this
9052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9053 ac_tool_warned=yes ;;
9054 esac
9055 NMEDIT=$ac_ct_NMEDIT
9057 else
9058 NMEDIT="$ac_cv_prog_NMEDIT"
9062 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9063 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
9064 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067 lt_cv_apple_cc_single_mod=no
9068 if test -z "${LT_MULTI_MODULE}"; then
9069 # By default we will add the -single_module flag. You can override
9070 # by either setting the environment variable LT_MULTI_MODULE
9071 # non-empty at configure time, or by adding -multi_module to the
9072 # link flags.
9073 echo "int foo(void){return 1;}" > conftest.c
9074 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9075 -dynamiclib ${wl}-single_module conftest.c
9076 if test -f libconftest.dylib; then
9077 lt_cv_apple_cc_single_mod=yes
9078 rm -rf libconftest.dylib*
9080 rm conftest.c
9083 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9084 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
9085 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9086 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
9087 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 lt_cv_ld_exported_symbols_list=no
9091 save_LDFLAGS=$LDFLAGS
9092 echo "_main" > conftest.sym
9093 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h. */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9102 main ()
9106 return 0;
9108 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114 esac
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_link") 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext &&
9126 $as_test_x conftest$ac_exeext; then
9127 lt_cv_ld_exported_symbols_list=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 lt_cv_ld_exported_symbols_list=no
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9137 LDFLAGS="$save_LDFLAGS"
9140 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9141 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9142 case $host_os in
9143 rhapsody* | darwin1.[0123])
9144 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9145 darwin1.*)
9146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9147 darwin*)
9148 # if running on 10.5 or later, the deployment target defaults
9149 # to the OS version, if on x86, and 10.4, the deployment
9150 # target defaults to 10.4. Don't you love it?
9151 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9152 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9153 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9154 10.[012]*)
9155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9156 10.*)
9157 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9158 esac
9160 esac
9161 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9162 _lt_dar_single_mod='$single_module'
9164 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9165 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9166 else
9167 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9169 if test "$DSYMUTIL" != ":"; then
9170 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9171 else
9172 _lt_dsymutil=
9175 esac
9178 enable_dlopen=no
9179 enable_win32_dll=no
9181 # Check whether --enable-libtool-lock was given.
9182 if test "${enable_libtool_lock+set}" = set; then
9183 enableval=$enable_libtool_lock;
9186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9189 # Check whether --with-pic was given.
9190 if test "${with_pic+set}" = set; then
9191 withval=$with_pic; pic_mode="$withval"
9192 else
9193 pic_mode=default
9196 test -z "$pic_mode" && pic_mode=default
9198 # Use C for the default configuration in the libtool script
9199 tagname=
9200 lt_save_CC="$CC"
9201 ac_ext=c
9202 ac_cpp='$CPP $CPPFLAGS'
9203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9208 # Source file extension for C test sources.
9209 ac_ext=c
9211 # Object file extension for compiled C test sources.
9212 objext=o
9213 objext=$objext
9215 # Code to be used in simple compile tests
9216 lt_simple_compile_test_code="int some_variable = 0;"
9218 # Code to be used in simple link tests
9219 lt_simple_link_test_code='int main(){return(0);}'
9222 # If no C compiler was specified, use CC.
9223 LTCC=${LTCC-"$CC"}
9225 # If no C compiler flags were specified, use CFLAGS.
9226 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9228 # Allow CC to be a program name with arguments.
9229 compiler=$CC
9232 # save warnings/boilerplate of simple test code
9233 ac_outfile=conftest.$ac_objext
9234 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9236 _lt_compiler_boilerplate=`cat conftest.err`
9237 $rm conftest*
9239 ac_outfile=conftest.$ac_objext
9240 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9242 _lt_linker_boilerplate=`cat conftest.err`
9243 $rm -r conftest*
9247 lt_prog_compiler_no_builtin_flag=
9249 if test "$GCC" = yes; then
9250 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9253 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9254 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9255 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 else
9258 lt_cv_prog_compiler_rtti_exceptions=no
9259 ac_outfile=conftest.$ac_objext
9260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9261 lt_compiler_flag="-fno-rtti -fno-exceptions"
9262 # Insert the option either (1) after the last *FLAGS variable, or
9263 # (2) before a word containing "conftest.", or (3) at the end.
9264 # Note that $ac_compile itself does not contain backslashes and begins
9265 # with a dollar sign (not a hyphen), so the echo should work correctly.
9266 # The option is referenced via a variable to avoid confusing sed.
9267 lt_compile=`echo "$ac_compile" | $SED \
9268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9270 -e 's:$: $lt_compiler_flag:'`
9271 (eval echo "\"\$as_me:9271: $lt_compile\"" >&5)
9272 (eval "$lt_compile" 2>conftest.err)
9273 ac_status=$?
9274 cat conftest.err >&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 if (exit $ac_status) && test -s "$ac_outfile"; then
9277 # The compiler can only warn and ignore the option if not recognized
9278 # So say no if there are warnings other than the usual output.
9279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9282 lt_cv_prog_compiler_rtti_exceptions=yes
9285 $rm conftest*
9288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9289 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9291 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9293 else
9299 lt_prog_compiler_wl=
9300 lt_prog_compiler_pic=
9301 lt_prog_compiler_static=
9303 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9306 if test "$GCC" = yes; then
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_static='-static'
9310 case $host_os in
9311 aix*)
9312 # All AIX code is PIC.
9313 if test "$host_cpu" = ia64; then
9314 # AIX 5 now supports IA64 processor
9315 lt_prog_compiler_static='-Bstatic'
9319 amigaos*)
9320 # FIXME: we need at least 68020 code to build shared libraries, but
9321 # adding the `-m68020' flag to GCC prevents building anything better,
9322 # like `-m68040'.
9323 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9327 # PIC is the default for these OSes.
9330 mingw* | cygwin* | pw32* | os2*)
9331 # This hack is so that the source file can tell whether it is being
9332 # built for inclusion in a dll (and should export symbols for example).
9333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9334 # (--disable-auto-import) libraries
9335 lt_prog_compiler_pic='-DDLL_EXPORT'
9338 darwin* | rhapsody*)
9339 # PIC is the default on this platform
9340 # Common symbols not allowed in MH_DYLIB files
9341 lt_prog_compiler_pic='-fno-common'
9344 interix[3-9]*)
9345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9346 # Instead, we relocate shared libraries at runtime.
9349 msdosdjgpp*)
9350 # Just because we use GCC doesn't mean we suddenly get shared libraries
9351 # on systems that don't support them.
9352 lt_prog_compiler_can_build_shared=no
9353 enable_shared=no
9356 sysv4*MP*)
9357 if test -d /usr/nec; then
9358 lt_prog_compiler_pic=-Kconform_pic
9362 hpux*)
9363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9364 # not for PA HP-UX.
9365 case $host_cpu in
9366 hppa*64*|ia64*)
9367 # +Z the default
9370 lt_prog_compiler_pic='-fPIC'
9372 esac
9376 lt_prog_compiler_pic='-fPIC'
9378 esac
9379 else
9380 # PORTME Check for flag to pass linker flags through the system compiler.
9381 case $host_os in
9382 aix*)
9383 lt_prog_compiler_wl='-Wl,'
9384 if test "$host_cpu" = ia64; then
9385 # AIX 5 now supports IA64 processor
9386 lt_prog_compiler_static='-Bstatic'
9387 else
9388 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9391 darwin*)
9392 # PIC is the default on this platform
9393 # Common symbols not allowed in MH_DYLIB files
9394 case $cc_basename in
9395 xlc*)
9396 lt_prog_compiler_pic='-qnocommon'
9397 lt_prog_compiler_wl='-Wl,'
9399 esac
9402 mingw* | cygwin* | pw32* | os2*)
9403 # This hack is so that the source file can tell whether it is being
9404 # built for inclusion in a dll (and should export symbols for example).
9405 lt_prog_compiler_pic='-DDLL_EXPORT'
9408 hpux9* | hpux10* | hpux11*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9411 # not for PA HP-UX.
9412 case $host_cpu in
9413 hppa*64*|ia64*)
9414 # +Z the default
9417 lt_prog_compiler_pic='+Z'
9419 esac
9420 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9421 lt_prog_compiler_static='${wl}-a ${wl}archive'
9424 irix5* | irix6* | nonstopux*)
9425 lt_prog_compiler_wl='-Wl,'
9426 # PIC (with -KPIC) is the default.
9427 lt_prog_compiler_static='-non_shared'
9430 newsos6)
9431 lt_prog_compiler_pic='-KPIC'
9432 lt_prog_compiler_static='-Bstatic'
9435 linux* | k*bsd*-gnu)
9436 case $cc_basename in
9437 icc* | ecc*)
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-static'
9442 pgcc* | pgf77* | pgf90* | pgf95*)
9443 # Portland Group compilers (*not* the Pentium gcc compiler,
9444 # which looks to be a dead project)
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-fpic'
9447 lt_prog_compiler_static='-Bstatic'
9449 ccc*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # All Alpha code is PIC.
9452 lt_prog_compiler_static='-non_shared'
9455 case `$CC -V 2>&1 | sed 5q` in
9456 *Sun\ C*)
9457 # Sun C 5.9
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl='-Wl,'
9462 *Sun\ F*)
9463 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9464 lt_prog_compiler_pic='-KPIC'
9465 lt_prog_compiler_static='-Bstatic'
9466 lt_prog_compiler_wl=''
9468 esac
9470 esac
9473 osf3* | osf4* | osf5*)
9474 lt_prog_compiler_wl='-Wl,'
9475 # All OSF/1 code is PIC.
9476 lt_prog_compiler_static='-non_shared'
9479 rdos*)
9480 lt_prog_compiler_static='-non_shared'
9483 solaris*)
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 case $cc_basename in
9487 f77* | f90* | f95*)
9488 lt_prog_compiler_wl='-Qoption ld ';;
9490 lt_prog_compiler_wl='-Wl,';;
9491 esac
9494 sunos4*)
9495 lt_prog_compiler_wl='-Qoption ld '
9496 lt_prog_compiler_pic='-PIC'
9497 lt_prog_compiler_static='-Bstatic'
9500 sysv4 | sysv4.2uw2* | sysv4.3*)
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_pic='-KPIC'
9503 lt_prog_compiler_static='-Bstatic'
9506 sysv4*MP*)
9507 if test -d /usr/nec ;then
9508 lt_prog_compiler_pic='-Kconform_pic'
9509 lt_prog_compiler_static='-Bstatic'
9513 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-KPIC'
9516 lt_prog_compiler_static='-Bstatic'
9519 unicos*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_can_build_shared=no
9524 uts4*)
9525 lt_prog_compiler_pic='-pic'
9526 lt_prog_compiler_static='-Bstatic'
9530 lt_prog_compiler_can_build_shared=no
9532 esac
9535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9536 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9539 # Check to make sure the PIC flag actually works.
9541 if test -n "$lt_prog_compiler_pic"; then
9543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9545 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 lt_cv_prog_compiler_pic_works=no
9549 ac_outfile=conftest.$ac_objext
9550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9551 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9552 # Insert the option either (1) after the last *FLAGS variable, or
9553 # (2) before a word containing "conftest.", or (3) at the end.
9554 # Note that $ac_compile itself does not contain backslashes and begins
9555 # with a dollar sign (not a hyphen), so the echo should work correctly.
9556 # The option is referenced via a variable to avoid confusing sed.
9557 lt_compile=`echo "$ac_compile" | $SED \
9558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9560 -e 's:$: $lt_compiler_flag:'`
9561 (eval echo "\"\$as_me:9561: $lt_compile\"" >&5)
9562 (eval "$lt_compile" 2>conftest.err)
9563 ac_status=$?
9564 cat conftest.err >&5
9565 echo "$as_me:9565: \$? = $ac_status" >&5
9566 if (exit $ac_status) && test -s "$ac_outfile"; then
9567 # The compiler can only warn and ignore the option if not recognized
9568 # So say no if there are warnings other than the usual output.
9569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9572 lt_cv_prog_compiler_pic_works=yes
9575 $rm conftest*
9578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9579 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9581 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9582 case $lt_prog_compiler_pic in
9583 "" | " "*) ;;
9584 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9585 esac
9586 else
9587 lt_prog_compiler_pic=
9588 lt_prog_compiler_can_build_shared=no
9592 case $host_os in
9593 # For platforms which do not support PIC, -DPIC is meaningless:
9594 *djgpp*)
9595 lt_prog_compiler_pic=
9598 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9600 esac
9603 # Check to make sure the static flag actually works.
9605 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9606 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9608 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 lt_cv_prog_compiler_static_works=no
9612 save_LDFLAGS="$LDFLAGS"
9613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9616 # The linker can only warn and ignore the option if not recognized
9617 # So say no if there are warnings
9618 if test -s conftest.err; then
9619 # Append any errors to the config.log.
9620 cat conftest.err 1>&5
9621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9623 if diff conftest.exp conftest.er2 >/dev/null; then
9624 lt_cv_prog_compiler_static_works=yes
9626 else
9627 lt_cv_prog_compiler_static_works=yes
9630 $rm -r conftest*
9631 LDFLAGS="$save_LDFLAGS"
9634 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9635 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9637 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9639 else
9640 lt_prog_compiler_static=
9644 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9646 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 lt_cv_prog_compiler_c_o=no
9650 $rm -r conftest 2>/dev/null
9651 mkdir conftest
9652 cd conftest
9653 mkdir out
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656 lt_compiler_flag="-o out/conftest2.$ac_objext"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:9665: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>out/conftest.err)
9667 ac_status=$?
9668 cat out/conftest.err >&5
9669 echo "$as_me:9669: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9671 then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings
9674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_c_o=yes
9680 chmod u+w . 2>&5
9681 $rm conftest*
9682 # SGI C++ compiler will create directory out/ii_files/ for
9683 # template instantiation
9684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9685 $rm out/* && rmdir out
9686 cd ..
9687 rmdir conftest
9688 $rm conftest*
9691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9695 hard_links="nottested"
9696 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9697 # do not overwrite the value of need_locks provided by the user
9698 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9700 hard_links=yes
9701 $rm conftest*
9702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9703 touch conftest.a
9704 ln conftest.a conftest.b 2>&5 || hard_links=no
9705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9706 { echo "$as_me:$LINENO: result: $hard_links" >&5
9707 echo "${ECHO_T}$hard_links" >&6; }
9708 if test "$hard_links" = no; then
9709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9711 need_locks=warn
9713 else
9714 need_locks=no
9717 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9720 runpath_var=
9721 allow_undefined_flag=
9722 enable_shared_with_static_runtimes=no
9723 archive_cmds=
9724 archive_expsym_cmds=
9725 old_archive_From_new_cmds=
9726 old_archive_from_expsyms_cmds=
9727 export_dynamic_flag_spec=
9728 whole_archive_flag_spec=
9729 thread_safe_flag_spec=
9730 hardcode_libdir_flag_spec=
9731 hardcode_libdir_flag_spec_ld=
9732 hardcode_libdir_separator=
9733 hardcode_direct=no
9734 hardcode_minus_L=no
9735 hardcode_shlibpath_var=unsupported
9736 link_all_deplibs=unknown
9737 hardcode_automatic=no
9738 module_cmds=
9739 module_expsym_cmds=
9740 always_export_symbols=no
9741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9742 # include_expsyms should be a list of space-separated symbols to be *always*
9743 # included in the symbol list
9744 include_expsyms=
9745 # exclude_expsyms can be an extended regexp of symbols to exclude
9746 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9747 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9748 # as well as any symbol that contains `d'.
9749 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9750 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9751 # platforms (ab)use it in PIC code, but their linkers get confused if
9752 # the symbol is explicitly referenced. Since portable code cannot
9753 # rely on this symbol name, it's probably fine to never include it in
9754 # preloaded symbol tables.
9755 # Exclude shared library initialization/finalization symbols.
9756 extract_expsyms_cmds=
9757 # Just being paranoid about ensuring that cc_basename is set.
9758 for cc_temp in $compiler""; do
9759 case $cc_temp in
9760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9762 \-*) ;;
9763 *) break;;
9764 esac
9765 done
9766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9768 case $host_os in
9769 cygwin* | mingw* | pw32*)
9770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9771 # When not using gcc, we currently assume that we are using
9772 # Microsoft Visual C++.
9773 if test "$GCC" != yes; then
9774 with_gnu_ld=no
9777 interix*)
9778 # we just hope/assume this is gcc and not c89 (= MSVC++)
9779 with_gnu_ld=yes
9781 openbsd*)
9782 with_gnu_ld=no
9784 esac
9786 ld_shlibs=yes
9787 if test "$with_gnu_ld" = yes; then
9788 # If archive_cmds runs LD, not CC, wlarc should be empty
9789 wlarc='${wl}'
9791 # Set some defaults for GNU ld with shared library support. These
9792 # are reset later if shared libraries are not supported. Putting them
9793 # here allows them to be overridden if necessary.
9794 runpath_var=LD_RUN_PATH
9795 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9796 export_dynamic_flag_spec='${wl}--export-dynamic'
9797 # ancient GNU ld didn't support --whole-archive et. al.
9798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9799 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9800 else
9801 whole_archive_flag_spec=
9803 supports_anon_versioning=no
9804 case `$LD -v 2>/dev/null` in
9805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9808 *\ 2.11.*) ;; # other 2.11 versions
9809 *) supports_anon_versioning=yes ;;
9810 esac
9812 # See if GNU ld supports shared libraries.
9813 case $host_os in
9814 aix[3-9]*)
9815 # On AIX/PPC, the GNU linker is very broken
9816 if test "$host_cpu" != ia64; then
9817 ld_shlibs=no
9818 cat <<EOF 1>&2
9820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9821 *** to be unable to reliably create shared libraries on AIX.
9822 *** Therefore, libtool is disabling shared libraries support. If you
9823 *** really care for shared libraries, you may want to modify your PATH
9824 *** so that a non-GNU linker is found, and then restart.
9830 amigaos*)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9835 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9836 # that the semantics of dynamic libraries on AmigaOS, at least up
9837 # to version 4, is to share data among multiple programs linked
9838 # with the same dynamic library. Since this doesn't match the
9839 # behavior of shared libraries on other platforms, we can't use
9840 # them.
9841 ld_shlibs=no
9844 beos*)
9845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9846 allow_undefined_flag=unsupported
9847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9848 # support --undefined. This deserves some investigation. FIXME
9849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850 else
9851 ld_shlibs=no
9855 cygwin* | mingw* | pw32*)
9856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9857 # as there is no search path for DLLs.
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 allow_undefined_flag=unsupported
9860 always_export_symbols=no
9861 enable_shared_with_static_runtimes=yes
9862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9866 # If the export-symbols file already is a .def file (1st line
9867 # is EXPORTS), use it as is; otherwise, prepend...
9868 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9869 cp $export_symbols $output_objdir/$soname.def;
9870 else
9871 echo EXPORTS > $output_objdir/$soname.def;
9872 cat $export_symbols >> $output_objdir/$soname.def;
9874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9875 else
9876 ld_shlibs=no
9880 interix[3-9]*)
9881 hardcode_direct=no
9882 hardcode_shlibpath_var=no
9883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9884 export_dynamic_flag_spec='${wl}-E'
9885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9886 # Instead, shared libraries are loaded at an image base (0x10000000 by
9887 # default) and relocated if they conflict, which is a slow very memory
9888 # consuming and fragmenting process. To avoid this, we pick a random,
9889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9892 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'
9895 gnu* | linux* | k*bsd*-gnu)
9896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9897 tmp_addflag=
9898 case $cc_basename,$host_cpu in
9899 pgcc*) # Portland Group C compiler
9900 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'
9901 tmp_addflag=' $pic_flag'
9903 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9904 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'
9905 tmp_addflag=' $pic_flag -Mnomain' ;;
9906 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9907 tmp_addflag=' -i_dynamic' ;;
9908 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9909 tmp_addflag=' -i_dynamic -nofor_main' ;;
9910 ifc* | ifort*) # Intel Fortran compiler
9911 tmp_addflag=' -nofor_main' ;;
9912 esac
9913 case `$CC -V 2>&1 | sed 5q` in
9914 *Sun\ C*) # Sun C 5.9
9915 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9916 tmp_sharedflag='-G' ;;
9917 *Sun\ F*) # Sun Fortran 8.3
9918 tmp_sharedflag='-G' ;;
9920 tmp_sharedflag='-shared' ;;
9921 esac
9922 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 if test $supports_anon_versioning = yes; then
9925 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9927 $echo "local: *; };" >> $output_objdir/$libname.ver~
9928 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9930 link_all_deplibs=no
9931 else
9932 ld_shlibs=no
9936 netbsd* | netbsdelf*-gnu)
9937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9938 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9939 wlarc=
9940 else
9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9946 solaris*)
9947 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9948 ld_shlibs=no
9949 cat <<EOF 1>&2
9951 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9952 *** create shared libraries on Solaris systems. Therefore, libtool
9953 *** is disabling shared libraries support. We urge you to upgrade GNU
9954 *** binutils to release 2.9.1 or newer. Another option is to modify
9955 *** your PATH or compiler configuration so that the native linker is
9956 *** used, and then restart.
9959 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9962 else
9963 ld_shlibs=no
9967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9968 case `$LD -v 2>&1` in
9969 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9970 ld_shlibs=no
9971 cat <<_LT_EOF 1>&2
9973 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9974 *** reliably create shared libraries on SCO systems. Therefore, libtool
9975 *** is disabling shared libraries support. We urge you to upgrade GNU
9976 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9977 *** your PATH or compiler configuration so that the native linker is
9978 *** used, and then restart.
9980 _LT_EOF
9983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9984 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9987 else
9988 ld_shlibs=no
9991 esac
9994 sunos4*)
9995 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9996 wlarc=
9997 hardcode_direct=yes
9998 hardcode_shlibpath_var=no
10002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005 else
10006 ld_shlibs=no
10009 esac
10011 if test "$ld_shlibs" = no; then
10012 runpath_var=
10013 hardcode_libdir_flag_spec=
10014 export_dynamic_flag_spec=
10015 whole_archive_flag_spec=
10017 else
10018 # PORTME fill in a description of your system's linker (not GNU ld)
10019 case $host_os in
10020 aix3*)
10021 allow_undefined_flag=unsupported
10022 always_export_symbols=yes
10023 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'
10024 # Note: this linker hardcodes the directories in LIBPATH if there
10025 # are no directories specified by -L.
10026 hardcode_minus_L=yes
10027 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10028 # Neither direct hardcoding nor static linking is supported with a
10029 # broken collect2.
10030 hardcode_direct=unsupported
10034 aix[4-9]*)
10035 if test "$host_cpu" = ia64; then
10036 # On IA64, the linker does run time linking by default, so we don't
10037 # have to do anything special.
10038 aix_use_runtimelinking=no
10039 exp_sym_flag='-Bexport'
10040 no_entry_flag=""
10041 else
10042 # If we're using GNU nm, then we don't want the "-C" option.
10043 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10044 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10045 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'
10046 else
10047 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'
10049 aix_use_runtimelinking=no
10051 # Test if we are trying to use run time linking or normal
10052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10053 # need to do runtime linking.
10054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10055 for ld_flag in $LDFLAGS; do
10056 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10057 aix_use_runtimelinking=yes
10058 break
10060 done
10062 esac
10064 exp_sym_flag='-bexport'
10065 no_entry_flag='-bnoentry'
10068 # When large executables or shared objects are built, AIX ld can
10069 # have problems creating the table of contents. If linking a library
10070 # or program results in "error TOC overflow" add -mminimal-toc to
10071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10074 archive_cmds=''
10075 hardcode_direct=yes
10076 hardcode_libdir_separator=':'
10077 link_all_deplibs=yes
10079 if test "$GCC" = yes; then
10080 case $host_os in aix4.[012]|aix4.[012].*)
10081 # We only want to do this on AIX 4.2 and lower, the check
10082 # below for broken collect2 doesn't work under 4.3+
10083 collect2name=`${CC} -print-prog-name=collect2`
10084 if test -f "$collect2name" && \
10085 strings "$collect2name" | grep resolve_lib_name >/dev/null
10086 then
10087 # We have reworked collect2
10089 else
10090 # We have old collect2
10091 hardcode_direct=unsupported
10092 # It fails to find uninstalled libraries when the uninstalled
10093 # path is not listed in the libpath. Setting hardcode_minus_L
10094 # to unsupported forces relinking
10095 hardcode_minus_L=yes
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_libdir_separator=
10100 esac
10101 shared_flag='-shared'
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag="$shared_flag "'${wl}-G'
10105 else
10106 # not using gcc
10107 if test "$host_cpu" = ia64; then
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
10110 shared_flag='-G'
10111 else
10112 if test "$aix_use_runtimelinking" = yes; then
10113 shared_flag='${wl}-G'
10114 else
10115 shared_flag='${wl}-bM:SRE'
10120 # It seems that -bexpall does not export symbols beginning with
10121 # underscore (_), so it is better to generate a list of symbols to export.
10122 always_export_symbols=yes
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # Warning - without using the other runtime loading flags (-brtl),
10125 # -berok will link without error, but may produce a broken library.
10126 allow_undefined_flag='-berok'
10127 # Determine the default libpath from the value encoded in an empty executable.
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10136 main ()
10140 return 0;
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest$ac_exeext &&
10160 $as_test_x conftest$ac_exeext; then
10162 lt_aix_libpath_sed='
10163 /Import File Strings/,/^$/ {
10164 /^0/ {
10165 s/^0 *\(.*\)$/\1/
10169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170 # Check for a 64-bit object if we didn't find anything.
10171 if test -z "$aix_libpath"; then
10172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182 conftest$ac_exeext conftest.$ac_ext
10183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10186 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"
10187 else
10188 if test "$host_cpu" = ia64; then
10189 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10190 allow_undefined_flag="-z nodefs"
10191 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"
10192 else
10193 # Determine the default libpath from the value encoded in an empty executable.
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10202 main ()
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext &&
10226 $as_test_x conftest$ac_exeext; then
10228 lt_aix_libpath_sed='
10229 /Import File Strings/,/^$/ {
10230 /^0/ {
10231 s/^0 *\(.*\)$/\1/
10235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10236 # Check for a 64-bit object if we didn't find anything.
10237 if test -z "$aix_libpath"; then
10238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248 conftest$ac_exeext conftest.$ac_ext
10249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10252 # Warning - without using the other run time loading flags,
10253 # -berok will link without error, but may produce a broken library.
10254 no_undefined_flag=' ${wl}-bernotok'
10255 allow_undefined_flag=' ${wl}-berok'
10256 # Exported symbols can be pulled into shared objects from archives
10257 whole_archive_flag_spec='$convenience'
10258 archive_cmds_need_lc=yes
10259 # This is similar to how AIX traditionally builds its shared libraries.
10260 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'
10265 amigaos*)
10266 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)'
10267 hardcode_libdir_flag_spec='-L$libdir'
10268 hardcode_minus_L=yes
10269 # see comment about different semantics on the GNU ld section
10270 ld_shlibs=no
10273 bsdi[45]*)
10274 export_dynamic_flag_spec=-rdynamic
10277 cygwin* | mingw* | pw32*)
10278 # When not using gcc, we currently assume that we are using
10279 # Microsoft Visual C++.
10280 # hardcode_libdir_flag_spec is actually meaningless, as there is
10281 # no search path for DLLs.
10282 hardcode_libdir_flag_spec=' '
10283 allow_undefined_flag=unsupported
10284 # Tell ltmain to make .lib files, not .a files.
10285 libext=lib
10286 # Tell ltmain to make .dll files, not .so files.
10287 shrext_cmds=".dll"
10288 # FIXME: Setting linknames here is a bad hack.
10289 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10290 # The linker will automatically build a .lib file if we build a DLL.
10291 old_archive_From_new_cmds='true'
10292 # FIXME: Should let the user specify the lib program.
10293 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10294 fix_srcfile_path='`cygpath -w "$srcfile"`'
10295 enable_shared_with_static_runtimes=yes
10298 darwin* | rhapsody*)
10299 case $host_os in
10300 rhapsody* | darwin1.[012])
10301 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10303 *) # Darwin 1.3 on
10304 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10305 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10306 else
10307 case ${MACOSX_DEPLOYMENT_TARGET} in
10308 10.[012])
10309 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10311 10.*)
10312 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10314 esac
10317 esac
10318 archive_cmds_need_lc=no
10319 hardcode_direct=no
10320 hardcode_automatic=yes
10321 hardcode_shlibpath_var=unsupported
10322 whole_archive_flag_spec=''
10323 link_all_deplibs=yes
10324 if test "$GCC" = yes ; then
10325 output_verbose_link_cmd='echo'
10326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10328 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10329 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10330 else
10331 case $cc_basename in
10332 xlc*)
10333 output_verbose_link_cmd='echo'
10334 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10335 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10337 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10338 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}'
10341 ld_shlibs=no
10343 esac
10347 dgux*)
10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_shlibpath_var=no
10353 freebsd1*)
10354 ld_shlibs=no
10357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10358 # support. Future versions do this automatically, but an explicit c++rt0.o
10359 # does not break anything, and helps significantly (at the cost of a little
10360 # extra space).
10361 freebsd2.2*)
10362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10369 freebsd2*)
10370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_direct=yes
10372 hardcode_minus_L=yes
10373 hardcode_shlibpath_var=no
10376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10377 freebsd* | dragonfly*)
10378 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10379 hardcode_libdir_flag_spec='-R$libdir'
10380 hardcode_direct=yes
10381 hardcode_shlibpath_var=no
10384 hpux9*)
10385 if test "$GCC" = yes; then
10386 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'
10387 else
10388 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'
10390 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10391 hardcode_libdir_separator=:
10392 hardcode_direct=yes
10394 # hardcode_minus_L: Not really in the search PATH,
10395 # but as the default location of the library.
10396 hardcode_minus_L=yes
10397 export_dynamic_flag_spec='${wl}-E'
10400 hpux10*)
10401 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10403 else
10404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10406 if test "$with_gnu_ld" = no; then
10407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10408 hardcode_libdir_separator=:
10410 hardcode_direct=yes
10411 export_dynamic_flag_spec='${wl}-E'
10413 # hardcode_minus_L: Not really in the search PATH,
10414 # but as the default location of the library.
10415 hardcode_minus_L=yes
10419 hpux11*)
10420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10421 case $host_cpu in
10422 hppa*64*)
10423 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 ia64*)
10426 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10431 esac
10432 else
10433 case $host_cpu in
10434 hppa*64*)
10435 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10437 ia64*)
10438 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10441 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443 esac
10445 if test "$with_gnu_ld" = no; then
10446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10447 hardcode_libdir_separator=:
10449 case $host_cpu in
10450 hppa*64*|ia64*)
10451 hardcode_libdir_flag_spec_ld='+b $libdir'
10452 hardcode_direct=no
10453 hardcode_shlibpath_var=no
10456 hardcode_direct=yes
10457 export_dynamic_flag_spec='${wl}-E'
10459 # hardcode_minus_L: Not really in the search PATH,
10460 # but as the default location of the library.
10461 hardcode_minus_L=yes
10463 esac
10467 irix5* | irix6* | nonstopux*)
10468 if test "$GCC" = yes; then
10469 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'
10470 else
10471 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'
10472 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10475 hardcode_libdir_separator=:
10476 link_all_deplibs=yes
10479 netbsd* | netbsdelf*-gnu)
10480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10482 else
10483 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10485 hardcode_libdir_flag_spec='-R$libdir'
10486 hardcode_direct=yes
10487 hardcode_shlibpath_var=no
10490 newsos6)
10491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492 hardcode_direct=yes
10493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator=:
10495 hardcode_shlibpath_var=no
10498 openbsd*)
10499 if test -f /usr/libexec/ld.so; then
10500 hardcode_direct=yes
10501 hardcode_shlibpath_var=no
10502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10506 export_dynamic_flag_spec='${wl}-E'
10507 else
10508 case $host_os in
10509 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10511 hardcode_libdir_flag_spec='-R$libdir'
10514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10517 esac
10519 else
10520 ld_shlibs=no
10524 os2*)
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10527 allow_undefined_flag=unsupported
10528 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'
10529 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10532 osf3*)
10533 if test "$GCC" = yes; then
10534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10535 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'
10536 else
10537 allow_undefined_flag=' -expect_unresolved \*'
10538 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'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 hardcode_libdir_separator=:
10544 osf4* | osf5*) # as osf3* with the addition of -msym flag
10545 if test "$GCC" = yes; then
10546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10547 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'
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 else
10550 allow_undefined_flag=' -expect_unresolved \*'
10551 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'
10552 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10553 $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'
10555 # Both c and cxx compiler support -rpath directly
10556 hardcode_libdir_flag_spec='-rpath $libdir'
10558 hardcode_libdir_separator=:
10561 solaris*)
10562 no_undefined_flag=' -z text'
10563 if test "$GCC" = yes; then
10564 wlarc='${wl}'
10565 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10567 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10568 else
10569 wlarc=''
10570 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10571 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_shlibpath_var=no
10576 case $host_os in
10577 solaris2.[0-5] | solaris2.[0-5].*) ;;
10579 # The compiler driver will combine and reorder linker options,
10580 # but understands `-z linker_flag'. GCC discards it without `$wl',
10581 # but is careful enough not to reorder.
10582 # Supported since Solaris 2.6 (maybe 2.5.1?)
10583 if test "$GCC" = yes; then
10584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10585 else
10586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10589 esac
10590 link_all_deplibs=yes
10593 sunos4*)
10594 if test "x$host_vendor" = xsequent; then
10595 # Use $CC to link under sequent, because it throws in some extra .o
10596 # files that make .init and .fini sections work.
10597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598 else
10599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_direct=yes
10603 hardcode_minus_L=yes
10604 hardcode_shlibpath_var=no
10607 sysv4)
10608 case $host_vendor in
10609 sni)
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=yes # is this really true???
10613 siemens)
10614 ## LD is ld it makes a PLAMLIB
10615 ## CC just makes a GrossModule.
10616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10617 reload_cmds='$CC -r -o $output$reload_objs'
10618 hardcode_direct=no
10620 motorola)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10624 esac
10625 runpath_var='LD_RUN_PATH'
10626 hardcode_shlibpath_var=no
10629 sysv4.3*)
10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_shlibpath_var=no
10632 export_dynamic_flag_spec='-Bexport'
10635 sysv4*MP*)
10636 if test -d /usr/nec; then
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_shlibpath_var=no
10639 runpath_var=LD_RUN_PATH
10640 hardcode_runpath_var=yes
10641 ld_shlibs=yes
10645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10646 no_undefined_flag='${wl}-z,text'
10647 archive_cmds_need_lc=no
10648 hardcode_shlibpath_var=no
10649 runpath_var='LD_RUN_PATH'
10651 if test "$GCC" = yes; then
10652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 else
10655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 sysv5* | sco3.2v5* | sco5v6*)
10661 # Note: We can NOT use -z defs as we might desire, because we do not
10662 # link with -lc, and that would cause any symbols used from libc to
10663 # always be unresolved, which means just about no library would
10664 # ever link correctly. If we're not using GNU ld we use -z text
10665 # though, which does catch some bad symbols but isn't as heavy-handed
10666 # as -z defs.
10667 no_undefined_flag='${wl}-z,text'
10668 allow_undefined_flag='${wl}-z,nodefs'
10669 archive_cmds_need_lc=no
10670 hardcode_shlibpath_var=no
10671 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10672 hardcode_libdir_separator=':'
10673 link_all_deplibs=yes
10674 export_dynamic_flag_spec='${wl}-Bexport'
10675 runpath_var='LD_RUN_PATH'
10677 if test "$GCC" = yes; then
10678 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 else
10681 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 uts4*)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_libdir_flag_spec='-L$libdir'
10689 hardcode_shlibpath_var=no
10693 ld_shlibs=no
10695 esac
10698 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10699 echo "${ECHO_T}$ld_shlibs" >&6; }
10700 test "$ld_shlibs" = no && can_build_shared=no
10703 # Do we need to explicitly link libc?
10705 case "x$archive_cmds_need_lc" in
10706 x|xyes)
10707 # Assume -lc should be added
10708 archive_cmds_need_lc=yes
10710 if test "$enable_shared" = yes && test "$GCC" = yes; then
10711 case $archive_cmds in
10712 *'~'*)
10713 # FIXME: we may have to deal with multi-command sequences.
10715 '$CC '*)
10716 # Test whether the compiler implicitly links with -lc since on some
10717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10718 # to ld, don't add -lc before -lgcc.
10719 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10721 $rm conftest*
10722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725 (eval $ac_compile) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } 2>conftest.err; then
10729 soname=conftest
10730 lib=conftest
10731 libobjs=conftest.$ac_objext
10732 deplibs=
10733 wl=$lt_prog_compiler_wl
10734 pic_flag=$lt_prog_compiler_pic
10735 compiler_flags=-v
10736 linker_flags=-v
10737 verstring=
10738 output_objdir=.
10739 libname=conftest
10740 lt_save_allow_undefined_flag=$allow_undefined_flag
10741 allow_undefined_flag=
10742 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10743 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }
10747 then
10748 archive_cmds_need_lc=no
10749 else
10750 archive_cmds_need_lc=yes
10752 allow_undefined_flag=$lt_save_allow_undefined_flag
10753 else
10754 cat conftest.err 1>&5
10756 $rm conftest*
10757 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10758 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10760 esac
10763 esac
10765 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10766 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10767 library_names_spec=
10768 libname_spec='lib$name'
10769 soname_spec=
10770 shrext_cmds=".so"
10771 postinstall_cmds=
10772 postuninstall_cmds=
10773 finish_cmds=
10774 finish_eval=
10775 shlibpath_var=
10776 shlibpath_overrides_runpath=unknown
10777 version_type=none
10778 dynamic_linker="$host_os ld.so"
10779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10781 if test "$GCC" = yes; then
10782 case $host_os in
10783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10784 *) lt_awk_arg="/^libraries:/" ;;
10785 esac
10786 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10787 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10788 # if the path contains ";" then we assume it to be the separator
10789 # otherwise default to the standard path separator (i.e. ":") - it is
10790 # assumed that no part of a normal pathname contains ";" but that should
10791 # okay in the real world where ";" in dirpaths is itself problematic.
10792 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10793 else
10794 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10796 # Ok, now we have the path, separated by spaces, we can step through it
10797 # and add multilib dir if necessary.
10798 lt_tmp_lt_search_path_spec=
10799 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10800 for lt_sys_path in $lt_search_path_spec; do
10801 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10803 else
10804 test -d "$lt_sys_path" && \
10805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10807 done
10808 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10809 BEGIN {RS=" "; FS="/|\n";} {
10810 lt_foo="";
10811 lt_count=0;
10812 for (lt_i = NF; lt_i > 0; lt_i--) {
10813 if ($lt_i != "" && $lt_i != ".") {
10814 if ($lt_i == "..") {
10815 lt_count++;
10816 } else {
10817 if (lt_count == 0) {
10818 lt_foo="/" $lt_i lt_foo;
10819 } else {
10820 lt_count--;
10825 if (lt_foo != "") { lt_freq[lt_foo]++; }
10826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10828 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10829 else
10830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10832 need_lib_prefix=unknown
10833 hardcode_into_libs=no
10835 # when you set need_version to no, make sure it does not cause -set_version
10836 # flags to be left without arguments
10837 need_version=unknown
10839 case $host_os in
10840 aix3*)
10841 version_type=linux
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10843 shlibpath_var=LIBPATH
10845 # AIX 3 has no versioning support, so we append a major version to the name.
10846 soname_spec='${libname}${release}${shared_ext}$major'
10849 aix[4-9]*)
10850 version_type=linux
10851 need_lib_prefix=no
10852 need_version=no
10853 hardcode_into_libs=yes
10854 if test "$host_cpu" = ia64; then
10855 # AIX 5 supports IA64
10856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 else
10859 # With GCC up to 2.95.x, collect2 would create an import file
10860 # for dependence libraries. The import file would start with
10861 # the line `#! .'. This would cause the generated library to
10862 # depend on `.', always an invalid library. This was fixed in
10863 # development snapshots of GCC prior to 3.0.
10864 case $host_os in
10865 aix4 | aix4.[01] | aix4.[01].*)
10866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10867 echo ' yes '
10868 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10870 else
10871 can_build_shared=no
10874 esac
10875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10876 # soname into executable. Probably we can add versioning support to
10877 # collect2, so additional links can be useful in future.
10878 if test "$aix_use_runtimelinking" = yes; then
10879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10880 # instead of lib<name>.a to let people know that these are not
10881 # typical AIX shared libraries.
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883 else
10884 # We preserve .a as extension for shared libraries through AIX4.2
10885 # and later when we are not doing run time linking.
10886 library_names_spec='${libname}${release}.a $libname.a'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10889 shlibpath_var=LIBPATH
10893 amigaos*)
10894 library_names_spec='$libname.ixlibrary $libname.a'
10895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10896 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'
10899 beos*)
10900 library_names_spec='${libname}${shared_ext}'
10901 dynamic_linker="$host_os ld.so"
10902 shlibpath_var=LIBRARY_PATH
10905 bsdi[45]*)
10906 version_type=linux
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10914 # the default ld.so.conf also contains /usr/contrib/lib and
10915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10916 # libtool to hard-code these into programs
10919 cygwin* | mingw* | pw32*)
10920 version_type=windows
10921 shrext_cmds=".dll"
10922 need_version=no
10923 need_lib_prefix=no
10925 case $GCC,$host_os in
10926 yes,cygwin* | yes,mingw* | yes,pw32*)
10927 library_names_spec='$libname.dll.a'
10928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10929 postinstall_cmds='base_file=`basename \${file}`~
10930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10931 dldir=$destdir/`dirname \$dlpath`~
10932 test -d \$dldir || mkdir -p \$dldir~
10933 $install_prog $dir/$dlname \$dldir/$dlname~
10934 chmod a+x \$dldir/$dlname'
10935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10936 dlpath=$dir/\$dldll~
10937 $rm \$dlpath'
10938 shlibpath_overrides_runpath=yes
10940 case $host_os in
10941 cygwin*)
10942 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10943 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10944 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10946 mingw*)
10947 # MinGW DLLs use traditional 'lib' prefix
10948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10950 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10951 # It is most probably a Windows format PATH printed by
10952 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10953 # path with ; separators, and with drive letters. We can handle the
10954 # drive letters (cygwin fileutils understands them), so leave them,
10955 # especially as we might pass files found there to a mingw objdump,
10956 # which wouldn't understand a cygwinified path. Ahh.
10957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10958 else
10959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10962 pw32*)
10963 # pw32 DLLs use 'pw' prefix rather than 'lib'
10964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966 esac
10970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10972 esac
10973 dynamic_linker='Win32 ld.exe'
10974 # FIXME: first we should search . and the directory the executable is in
10975 shlibpath_var=PATH
10978 darwin* | rhapsody*)
10979 dynamic_linker="$host_os dyld"
10980 version_type=darwin
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10984 soname_spec='${libname}${release}${major}$shared_ext'
10985 shlibpath_overrides_runpath=yes
10986 shlibpath_var=DYLD_LIBRARY_PATH
10987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10989 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10993 dgux*)
10994 version_type=linux
10995 need_lib_prefix=no
10996 need_version=no
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11002 freebsd1*)
11003 dynamic_linker=no
11006 freebsd* | dragonfly*)
11007 # DragonFly does not have aout. When/if they implement a new
11008 # versioning mechanism, adjust this.
11009 if test -x /usr/bin/objformat; then
11010 objformat=`/usr/bin/objformat`
11011 else
11012 case $host_os in
11013 freebsd[123]*) objformat=aout ;;
11014 *) objformat=elf ;;
11015 esac
11017 version_type=freebsd-$objformat
11018 case $version_type in
11019 freebsd-elf*)
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 need_version=no
11022 need_lib_prefix=no
11024 freebsd-*)
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11026 need_version=yes
11028 esac
11029 shlibpath_var=LD_LIBRARY_PATH
11030 case $host_os in
11031 freebsd2*)
11032 shlibpath_overrides_runpath=yes
11034 freebsd3.[01]* | freebsdelf3.[01]*)
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11040 shlibpath_overrides_runpath=no
11041 hardcode_into_libs=yes
11043 *) # from 4.6 on, and DragonFly
11044 shlibpath_overrides_runpath=yes
11045 hardcode_into_libs=yes
11047 esac
11050 gnu*)
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 hardcode_into_libs=yes
11060 hpux9* | hpux10* | hpux11*)
11061 # Give a soname corresponding to the major version so that dld.sl refuses to
11062 # link against other versions.
11063 version_type=sunos
11064 need_lib_prefix=no
11065 need_version=no
11066 case $host_cpu in
11067 ia64*)
11068 shrext_cmds='.so'
11069 hardcode_into_libs=yes
11070 dynamic_linker="$host_os dld.so"
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 if test "X$HPUX_IA64_MODE" = X32; then
11076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11077 else
11078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11082 hppa*64*)
11083 shrext_cmds='.sl'
11084 hardcode_into_libs=yes
11085 dynamic_linker="$host_os dld.sl"
11086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11094 shrext_cmds='.sl'
11095 dynamic_linker="$host_os dld.sl"
11096 shlibpath_var=SHLIB_PATH
11097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11101 esac
11102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11103 postinstall_cmds='chmod 555 $lib'
11106 interix[3-9]*)
11107 version_type=linux
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=no
11115 hardcode_into_libs=yes
11118 irix5* | irix6* | nonstopux*)
11119 case $host_os in
11120 nonstopux*) version_type=nonstopux ;;
11122 if test "$lt_cv_prog_gnu_ld" = yes; then
11123 version_type=linux
11124 else
11125 version_type=irix
11126 fi ;;
11127 esac
11128 need_lib_prefix=no
11129 need_version=no
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11132 case $host_os in
11133 irix5* | nonstopux*)
11134 libsuff= shlibsuff=
11137 case $LD in # libtool.m4 will add one of these switches to LD
11138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11139 libsuff= shlibsuff= libmagic=32-bit;;
11140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11141 libsuff=32 shlibsuff=N32 libmagic=N32;;
11142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11144 *) libsuff= shlibsuff= libmagic=never-match;;
11145 esac
11147 esac
11148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11149 shlibpath_overrides_runpath=no
11150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11152 hardcode_into_libs=yes
11155 # No shared lib support for Linux oldld, aout, or coff.
11156 linux*oldld* | linux*aout* | linux*coff*)
11157 dynamic_linker=no
11160 # This must be Linux ELF.
11161 linux* | k*bsd*-gnu)
11162 version_type=linux
11163 need_lib_prefix=no
11164 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=no
11170 # This implies no fast_install, which is unacceptable.
11171 # Some rework will be needed to allow for fast_install
11172 # before this can be enabled.
11173 hardcode_into_libs=yes
11175 # Append ld.so.conf contents to the search path
11176 if test -f /etc/ld.so.conf; then
11177 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11181 # We used to test for /lib/ld.so.1 and disable shared libraries on
11182 # powerpc, because MkLinux only supported shared libraries with the
11183 # GNU dynamic linker. Since this was broken with cross compilers,
11184 # most powerpc-linux boxes support dynamic linking these days and
11185 # people can always --disable-shared, the test was removed, and we
11186 # assume the GNU/Linux dynamic linker is in use.
11187 dynamic_linker='GNU/Linux ld.so'
11190 netbsdelf*-gnu)
11191 version_type=linux
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11199 dynamic_linker='NetBSD ld.elf_so'
11202 netbsd*)
11203 version_type=sunos
11204 need_lib_prefix=no
11205 need_version=no
11206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209 dynamic_linker='NetBSD (a.out) ld.so'
11210 else
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 dynamic_linker='NetBSD ld.elf_so'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11220 newsos6)
11221 version_type=linux
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11227 nto-qnx*)
11228 version_type=linux
11229 need_lib_prefix=no
11230 need_version=no
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 shlibpath_overrides_runpath=yes
11237 openbsd*)
11238 version_type=sunos
11239 sys_lib_dlsearch_path_spec="/usr/lib"
11240 need_lib_prefix=no
11241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11242 case $host_os in
11243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11244 *) need_version=no ;;
11245 esac
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11250 case $host_os in
11251 openbsd2.[89] | openbsd2.[89].*)
11252 shlibpath_overrides_runpath=no
11255 shlibpath_overrides_runpath=yes
11257 esac
11258 else
11259 shlibpath_overrides_runpath=yes
11263 os2*)
11264 libname_spec='$name'
11265 shrext_cmds=".dll"
11266 need_lib_prefix=no
11267 library_names_spec='$libname${shared_ext} $libname.a'
11268 dynamic_linker='OS/2 ld.exe'
11269 shlibpath_var=LIBPATH
11272 osf3* | osf4* | osf5*)
11273 version_type=osf
11274 need_lib_prefix=no
11275 need_version=no
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11283 rdos*)
11284 dynamic_linker=no
11287 solaris*)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11296 # ldd complains unless libraries are executable
11297 postinstall_cmds='chmod +x $lib'
11300 sunos4*)
11301 version_type=sunos
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=yes
11306 if test "$with_gnu_ld" = yes; then
11307 need_lib_prefix=no
11309 need_version=yes
11312 sysv4 | sysv4.3*)
11313 version_type=linux
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 case $host_vendor in
11318 sni)
11319 shlibpath_overrides_runpath=no
11320 need_lib_prefix=no
11321 export_dynamic_flag_spec='${wl}-Blargedynsym'
11322 runpath_var=LD_RUN_PATH
11324 siemens)
11325 need_lib_prefix=no
11327 motorola)
11328 need_lib_prefix=no
11329 need_version=no
11330 shlibpath_overrides_runpath=no
11331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11333 esac
11336 sysv4*MP*)
11337 if test -d /usr/nec ;then
11338 version_type=linux
11339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11340 soname_spec='$libname${shared_ext}.$major'
11341 shlibpath_var=LD_LIBRARY_PATH
11345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11346 version_type=freebsd-elf
11347 need_lib_prefix=no
11348 need_version=no
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LD_LIBRARY_PATH
11352 hardcode_into_libs=yes
11353 if test "$with_gnu_ld" = yes; then
11354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11355 shlibpath_overrides_runpath=no
11356 else
11357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11358 shlibpath_overrides_runpath=yes
11359 case $host_os in
11360 sco3.2v5*)
11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11363 esac
11365 sys_lib_dlsearch_path_spec='/usr/lib'
11368 uts4*)
11369 version_type=linux
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 shlibpath_var=LD_LIBRARY_PATH
11376 dynamic_linker=no
11378 esac
11379 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11380 echo "${ECHO_T}$dynamic_linker" >&6; }
11381 test "$dynamic_linker" = no && can_build_shared=no
11383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11390 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11396 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11399 if test "$GCC" = yes; then
11400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11403 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11405 hardcode_action=
11406 if test -n "$hardcode_libdir_flag_spec" || \
11407 test -n "$runpath_var" || \
11408 test "X$hardcode_automatic" = "Xyes" ; then
11410 # We can hardcode non-existant directories.
11411 if test "$hardcode_direct" != no &&
11412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413 # have to relink, otherwise we might link with an installed library
11414 # when we should be linking with a yet-to-be-installed one
11415 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416 test "$hardcode_minus_L" != no; then
11417 # Linking always hardcodes the temporary library directory.
11418 hardcode_action=relink
11419 else
11420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421 hardcode_action=immediate
11423 else
11424 # We cannot hardcode anything, or else we can only hardcode existing
11425 # directories.
11426 hardcode_action=unsupported
11428 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11429 echo "${ECHO_T}$hardcode_action" >&6; }
11431 if test "$hardcode_action" = relink; then
11432 # Fast installation is not supported
11433 enable_fast_install=no
11434 elif test "$shlibpath_overrides_runpath" = yes ||
11435 test "$enable_shared" = no; then
11436 # Fast installation is not necessary
11437 enable_fast_install=needless
11440 striplib=
11441 old_striplib=
11442 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11443 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11444 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11447 { echo "$as_me:$LINENO: result: yes" >&5
11448 echo "${ECHO_T}yes" >&6; }
11449 else
11450 # FIXME - insert some real tests, host_os isn't really good enough
11451 case $host_os in
11452 darwin*)
11453 if test -n "$STRIP" ; then
11454 striplib="$STRIP -x"
11455 old_striplib="$STRIP -S"
11456 { echo "$as_me:$LINENO: result: yes" >&5
11457 echo "${ECHO_T}yes" >&6; }
11458 else
11459 { echo "$as_me:$LINENO: result: no" >&5
11460 echo "${ECHO_T}no" >&6; }
11464 { echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6; }
11467 esac
11470 if test "x$enable_dlopen" != xyes; then
11471 enable_dlopen=unknown
11472 enable_dlopen_self=unknown
11473 enable_dlopen_self_static=unknown
11474 else
11475 lt_cv_dlopen=no
11476 lt_cv_dlopen_libs=
11478 case $host_os in
11479 beos*)
11480 lt_cv_dlopen="load_add_on"
11481 lt_cv_dlopen_libs=
11482 lt_cv_dlopen_self=yes
11485 mingw* | pw32*)
11486 lt_cv_dlopen="LoadLibrary"
11487 lt_cv_dlopen_libs=
11490 cygwin*)
11491 lt_cv_dlopen="dlopen"
11492 lt_cv_dlopen_libs=
11495 darwin*)
11496 # if libdl is installed we need to link against it
11497 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11498 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502 ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-ldl $LIBS"
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11519 main ()
11521 return dlopen ();
11523 return 0;
11525 _ACEOF
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } && {
11540 test -z "$ac_c_werror_flag" ||
11541 test ! -s conftest.err
11542 } && test -s conftest$ac_exeext &&
11543 $as_test_x conftest$ac_exeext; then
11544 ac_cv_lib_dl_dlopen=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_lib_dl_dlopen=no
11552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11558 if test $ac_cv_lib_dl_dlopen = yes; then
11559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11560 else
11562 lt_cv_dlopen="dyld"
11563 lt_cv_dlopen_libs=
11564 lt_cv_dlopen_self=yes
11571 { echo "$as_me:$LINENO: checking for shl_load" >&5
11572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11573 if test "${ac_cv_func_shl_load+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11584 #define shl_load innocuous_shl_load
11586 /* System header to define __stub macros and hopefully few prototypes,
11587 which can conflict with char shl_load (); below.
11588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589 <limits.h> exists even on freestanding compilers. */
11591 #ifdef __STDC__
11592 # include <limits.h>
11593 #else
11594 # include <assert.h>
11595 #endif
11597 #undef shl_load
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char shl_load ();
11606 /* The GNU C library defines this for functions which it implements
11607 to always fail with ENOSYS. Some functions are actually named
11608 something starting with __ and the normal name is an alias. */
11609 #if defined __stub_shl_load || defined __stub___shl_load
11610 choke me
11611 #endif
11614 main ()
11616 return shl_load ();
11618 return 0;
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_link") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest$ac_exeext &&
11638 $as_test_x conftest$ac_exeext; then
11639 ac_cv_func_shl_load=yes
11640 else
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 ac_cv_func_shl_load=no
11647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11648 conftest$ac_exeext conftest.$ac_ext
11650 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11651 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11652 if test $ac_cv_func_shl_load = yes; then
11653 lt_cv_dlopen="shl_load"
11654 else
11655 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660 ac_check_lib_save_LIBS=$LIBS
11661 LIBS="-ldld $LIBS"
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char shl_load ();
11677 main ()
11679 return shl_load ();
11681 return 0;
11683 _ACEOF
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (ac_try="$ac_link"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_link") 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } && {
11698 test -z "$ac_c_werror_flag" ||
11699 test ! -s conftest.err
11700 } && test -s conftest$ac_exeext &&
11701 $as_test_x conftest$ac_exeext; then
11702 ac_cv_lib_dld_shl_load=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 ac_cv_lib_dld_shl_load=no
11710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11715 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11716 if test $ac_cv_lib_dld_shl_load = yes; then
11717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11718 else
11719 { echo "$as_me:$LINENO: checking for dlopen" >&5
11720 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11721 if test "${ac_cv_func_dlopen+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732 #define dlopen innocuous_dlopen
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char dlopen (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11739 #ifdef __STDC__
11740 # include <limits.h>
11741 #else
11742 # include <assert.h>
11743 #endif
11745 #undef dlopen
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char dlopen ();
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined __stub_dlopen || defined __stub___dlopen
11758 choke me
11759 #endif
11762 main ()
11764 return dlopen ();
11766 return 0;
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest$ac_exeext &&
11786 $as_test_x conftest$ac_exeext; then
11787 ac_cv_func_dlopen=yes
11788 else
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_cv_func_dlopen=no
11795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11796 conftest$ac_exeext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11799 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11800 if test $ac_cv_func_dlopen = yes; then
11801 lt_cv_dlopen="dlopen"
11802 else
11803 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11804 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-ldl $LIBS"
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11817 /* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 char dlopen ();
11825 main ()
11827 return dlopen ();
11829 return 0;
11831 _ACEOF
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (ac_try="$ac_link"
11834 case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_link") 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest$ac_exeext &&
11849 $as_test_x conftest$ac_exeext; then
11850 ac_cv_lib_dl_dlopen=yes
11851 else
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_cv_lib_dl_dlopen=no
11858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11863 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11864 if test $ac_cv_lib_dl_dlopen = yes; then
11865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11866 else
11867 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11868 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11869 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lsvld $LIBS"
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char dlopen ();
11889 main ()
11891 return dlopen ();
11893 return 0;
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 ac_cv_lib_svld_dlopen=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_lib_svld_dlopen=no
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11927 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11928 if test $ac_cv_lib_svld_dlopen = yes; then
11929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11930 else
11931 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11932 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-ldld $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char dld_link ();
11953 main ()
11955 return dld_link ();
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest$ac_exeext &&
11977 $as_test_x conftest$ac_exeext; then
11978 ac_cv_lib_dld_dld_link=yes
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_lib_dld_dld_link=no
11986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11991 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11992 if test $ac_cv_lib_dld_dld_link = yes; then
11993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12012 esac
12014 if test "x$lt_cv_dlopen" != xno; then
12015 enable_dlopen=yes
12016 else
12017 enable_dlopen=no
12020 case $lt_cv_dlopen in
12021 dlopen)
12022 save_CPPFLAGS="$CPPFLAGS"
12023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12025 save_LDFLAGS="$LDFLAGS"
12026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12028 save_LIBS="$LIBS"
12029 LIBS="$lt_cv_dlopen_libs $LIBS"
12031 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12032 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12033 if test "${lt_cv_dlopen_self+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 if test "$cross_compiling" = yes; then :
12037 lt_cv_dlopen_self=cross
12038 else
12039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12040 lt_status=$lt_dlunknown
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12042 "configure"
12043 #include "confdefs.h"
12045 #if HAVE_DLFCN_H
12046 #include <dlfcn.h>
12047 #endif
12049 #include <stdio.h>
12051 #ifdef RTLD_GLOBAL
12052 # define LT_DLGLOBAL RTLD_GLOBAL
12053 #else
12054 # ifdef DL_GLOBAL
12055 # define LT_DLGLOBAL DL_GLOBAL
12056 # else
12057 # define LT_DLGLOBAL 0
12058 # endif
12059 #endif
12061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12062 find out it does not work in some platform. */
12063 #ifndef LT_DLLAZY_OR_NOW
12064 # ifdef RTLD_LAZY
12065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12066 # else
12067 # ifdef DL_LAZY
12068 # define LT_DLLAZY_OR_NOW DL_LAZY
12069 # else
12070 # ifdef RTLD_NOW
12071 # define LT_DLLAZY_OR_NOW RTLD_NOW
12072 # else
12073 # ifdef DL_NOW
12074 # define LT_DLLAZY_OR_NOW DL_NOW
12075 # else
12076 # define LT_DLLAZY_OR_NOW 0
12077 # endif
12078 # endif
12079 # endif
12080 # endif
12081 #endif
12083 #ifdef __cplusplus
12084 extern "C" void exit (int);
12085 #endif
12087 void fnord() { int i=42;}
12088 int main ()
12090 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12091 int status = $lt_dlunknown;
12093 if (self)
12095 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12096 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12097 /* dlclose (self); */
12099 else
12100 puts (dlerror ());
12102 exit (status);
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 (eval $ac_link) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12110 (./conftest; exit; ) >&5 2>/dev/null
12111 lt_status=$?
12112 case x$lt_status in
12113 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12115 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12116 esac
12117 else :
12118 # compilation failed
12119 lt_cv_dlopen_self=no
12122 rm -fr conftest*
12126 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12127 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12129 if test "x$lt_cv_dlopen_self" = xyes; then
12130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12131 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12132 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12133 if test "${lt_cv_dlopen_self_static+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136 if test "$cross_compiling" = yes; then :
12137 lt_cv_dlopen_self_static=cross
12138 else
12139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12140 lt_status=$lt_dlunknown
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12142 "configure"
12143 #include "confdefs.h"
12145 #if HAVE_DLFCN_H
12146 #include <dlfcn.h>
12147 #endif
12149 #include <stdio.h>
12151 #ifdef RTLD_GLOBAL
12152 # define LT_DLGLOBAL RTLD_GLOBAL
12153 #else
12154 # ifdef DL_GLOBAL
12155 # define LT_DLGLOBAL DL_GLOBAL
12156 # else
12157 # define LT_DLGLOBAL 0
12158 # endif
12159 #endif
12161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12162 find out it does not work in some platform. */
12163 #ifndef LT_DLLAZY_OR_NOW
12164 # ifdef RTLD_LAZY
12165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12166 # else
12167 # ifdef DL_LAZY
12168 # define LT_DLLAZY_OR_NOW DL_LAZY
12169 # else
12170 # ifdef RTLD_NOW
12171 # define LT_DLLAZY_OR_NOW RTLD_NOW
12172 # else
12173 # ifdef DL_NOW
12174 # define LT_DLLAZY_OR_NOW DL_NOW
12175 # else
12176 # define LT_DLLAZY_OR_NOW 0
12177 # endif
12178 # endif
12179 # endif
12180 # endif
12181 #endif
12183 #ifdef __cplusplus
12184 extern "C" void exit (int);
12185 #endif
12187 void fnord() { int i=42;}
12188 int main ()
12190 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12191 int status = $lt_dlunknown;
12193 if (self)
12195 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12196 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12197 /* dlclose (self); */
12199 else
12200 puts (dlerror ());
12202 exit (status);
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12210 (./conftest; exit; ) >&5 2>/dev/null
12211 lt_status=$?
12212 case x$lt_status in
12213 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12214 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12215 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12216 esac
12217 else :
12218 # compilation failed
12219 lt_cv_dlopen_self_static=no
12222 rm -fr conftest*
12226 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12227 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12230 CPPFLAGS="$save_CPPFLAGS"
12231 LDFLAGS="$save_LDFLAGS"
12232 LIBS="$save_LIBS"
12234 esac
12236 case $lt_cv_dlopen_self in
12237 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12238 *) enable_dlopen_self=unknown ;;
12239 esac
12241 case $lt_cv_dlopen_self_static in
12242 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12243 *) enable_dlopen_self_static=unknown ;;
12244 esac
12248 # Report which library types will actually be built
12249 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12250 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12251 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12252 echo "${ECHO_T}$can_build_shared" >&6; }
12254 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12255 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12256 test "$can_build_shared" = "no" && enable_shared=no
12258 # On AIX, shared libraries and static libraries use the same namespace, and
12259 # are all built from PIC.
12260 case $host_os in
12261 aix3*)
12262 test "$enable_shared" = yes && enable_static=no
12263 if test -n "$RANLIB"; then
12264 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12265 postinstall_cmds='$RANLIB $lib'
12269 aix[4-9]*)
12270 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12271 test "$enable_shared" = yes && enable_static=no
12274 esac
12275 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12276 echo "${ECHO_T}$enable_shared" >&6; }
12278 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12279 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12280 # Make sure either enable_shared or enable_static is yes.
12281 test "$enable_shared" = yes || enable_static=yes
12282 { echo "$as_me:$LINENO: result: $enable_static" >&5
12283 echo "${ECHO_T}$enable_static" >&6; }
12285 # The else clause should only fire when bootstrapping the
12286 # libtool distribution, otherwise you forgot to ship ltmain.sh
12287 # with your package, and you will get complaints that there are
12288 # no rules to generate ltmain.sh.
12289 if test -f "$ltmain"; then
12290 # See if we are running on zsh, and set the options which allow our commands through
12291 # without removal of \ escapes.
12292 if test -n "${ZSH_VERSION+set}" ; then
12293 setopt NO_GLOB_SUBST
12295 # Now quote all the things that may contain metacharacters while being
12296 # careful not to overquote the AC_SUBSTed values. We take copies of the
12297 # variables and quote the copies for generation of the libtool script.
12298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12299 SED SHELL STRIP \
12300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12302 deplibs_check_method reload_flag reload_cmds need_locks \
12303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12304 lt_cv_sys_global_symbol_to_c_name_address \
12305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12306 old_postinstall_cmds old_postuninstall_cmds \
12307 compiler \
12308 CC \
12309 LD \
12310 lt_prog_compiler_wl \
12311 lt_prog_compiler_pic \
12312 lt_prog_compiler_static \
12313 lt_prog_compiler_no_builtin_flag \
12314 export_dynamic_flag_spec \
12315 thread_safe_flag_spec \
12316 whole_archive_flag_spec \
12317 enable_shared_with_static_runtimes \
12318 old_archive_cmds \
12319 old_archive_from_new_cmds \
12320 predep_objects \
12321 postdep_objects \
12322 predeps \
12323 postdeps \
12324 compiler_lib_search_path \
12325 compiler_lib_search_dirs \
12326 archive_cmds \
12327 archive_expsym_cmds \
12328 postinstall_cmds \
12329 postuninstall_cmds \
12330 old_archive_from_expsyms_cmds \
12331 allow_undefined_flag \
12332 no_undefined_flag \
12333 export_symbols_cmds \
12334 hardcode_libdir_flag_spec \
12335 hardcode_libdir_flag_spec_ld \
12336 hardcode_libdir_separator \
12337 hardcode_automatic \
12338 module_cmds \
12339 module_expsym_cmds \
12340 lt_cv_prog_compiler_c_o \
12341 fix_srcfile_path \
12342 exclude_expsyms \
12343 include_expsyms; do
12345 case $var in
12346 old_archive_cmds | \
12347 old_archive_from_new_cmds | \
12348 archive_cmds | \
12349 archive_expsym_cmds | \
12350 module_cmds | \
12351 module_expsym_cmds | \
12352 old_archive_from_expsyms_cmds | \
12353 export_symbols_cmds | \
12354 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12355 postinstall_cmds | postuninstall_cmds | \
12356 old_postinstall_cmds | old_postuninstall_cmds | \
12357 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12358 # Double-quote double-evaled strings.
12359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12364 esac
12365 done
12367 case $lt_echo in
12368 *'\$0 --fallback-echo"')
12369 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12371 esac
12373 cfgfile="${ofile}T"
12374 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12375 $rm -f "$cfgfile"
12376 { echo "$as_me:$LINENO: creating $ofile" >&5
12377 echo "$as_me: creating $ofile" >&6;}
12379 cat <<__EOF__ >> "$cfgfile"
12380 #! $SHELL
12382 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12383 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12386 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12387 # Free Software Foundation, Inc.
12389 # This file is part of GNU Libtool:
12390 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12392 # This program is free software; you can redistribute it and/or modify
12393 # it under the terms of the GNU General Public License as published by
12394 # the Free Software Foundation; either version 2 of the License, or
12395 # (at your option) any later version.
12397 # This program is distributed in the hope that it will be useful, but
12398 # WITHOUT ANY WARRANTY; without even the implied warranty of
12399 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12400 # General Public License for more details.
12402 # You should have received a copy of the GNU General Public License
12403 # along with this program; if not, write to the Free Software
12404 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12406 # As a special exception to the GNU General Public License, if you
12407 # distribute this file as part of a program that contains a
12408 # configuration script generated by Autoconf, you may include it under
12409 # the same distribution terms that you use for the rest of that program.
12411 # A sed program that does not truncate output.
12412 SED=$lt_SED
12414 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12415 Xsed="$SED -e 1s/^X//"
12417 # The HP-UX ksh and POSIX shell print the target directory to stdout
12418 # if CDPATH is set.
12419 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12421 # The names of the tagged configurations supported by this script.
12422 available_tags=
12424 # ### BEGIN LIBTOOL CONFIG
12426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12428 # Shell to use when invoking shell scripts.
12429 SHELL=$lt_SHELL
12431 # Whether or not to build shared libraries.
12432 build_libtool_libs=$enable_shared
12434 # Whether or not to build static libraries.
12435 build_old_libs=$enable_static
12437 # Whether or not to add -lc for building shared libraries.
12438 build_libtool_need_lc=$archive_cmds_need_lc
12440 # Whether or not to disallow shared libs when runtime libs are static
12441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12443 # Whether or not to optimize for fast installation.
12444 fast_install=$enable_fast_install
12446 # The host system.
12447 host_alias=$host_alias
12448 host=$host
12449 host_os=$host_os
12451 # The build system.
12452 build_alias=$build_alias
12453 build=$build
12454 build_os=$build_os
12456 # An echo program that does not interpret backslashes.
12457 echo=$lt_echo
12459 # The archiver.
12460 AR=$lt_AR
12461 AR_FLAGS=$lt_AR_FLAGS
12463 # A C compiler.
12464 LTCC=$lt_LTCC
12466 # LTCC compiler flags.
12467 LTCFLAGS=$lt_LTCFLAGS
12469 # A language-specific compiler.
12470 CC=$lt_compiler
12472 # Is the compiler the GNU C compiler?
12473 with_gcc=$GCC
12475 # An ERE matcher.
12476 EGREP=$lt_EGREP
12478 # The linker used to build libraries.
12479 LD=$lt_LD
12481 # Whether we need hard or soft links.
12482 LN_S=$lt_LN_S
12484 # A BSD-compatible nm program.
12485 NM=$lt_NM
12487 # A symbol stripping program
12488 STRIP=$lt_STRIP
12490 # Used to examine libraries when file_magic_cmd begins "file"
12491 MAGIC_CMD=$MAGIC_CMD
12493 # Used on cygwin: DLL creation program.
12494 DLLTOOL="$DLLTOOL"
12496 # Used on cygwin: object dumper.
12497 OBJDUMP="$OBJDUMP"
12499 # Used on cygwin: assembler.
12500 AS="$AS"
12502 # The name of the directory that contains temporary libtool files.
12503 objdir=$objdir
12505 # How to create reloadable object files.
12506 reload_flag=$lt_reload_flag
12507 reload_cmds=$lt_reload_cmds
12509 # How to pass a linker flag through the compiler.
12510 wl=$lt_lt_prog_compiler_wl
12512 # Object file suffix (normally "o").
12513 objext="$ac_objext"
12515 # Old archive suffix (normally "a").
12516 libext="$libext"
12518 # Shared library suffix (normally ".so").
12519 shrext_cmds='$shrext_cmds'
12521 # Executable file suffix (normally "").
12522 exeext="$exeext"
12524 # Additional compiler flags for building library objects.
12525 pic_flag=$lt_lt_prog_compiler_pic
12526 pic_mode=$pic_mode
12528 # What is the maximum length of a command?
12529 max_cmd_len=$lt_cv_sys_max_cmd_len
12531 # Does compiler simultaneously support -c and -o options?
12532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12534 # Must we lock files when doing compilation?
12535 need_locks=$lt_need_locks
12537 # Do we need the lib prefix for modules?
12538 need_lib_prefix=$need_lib_prefix
12540 # Do we need a version for libraries?
12541 need_version=$need_version
12543 # Whether dlopen is supported.
12544 dlopen_support=$enable_dlopen
12546 # Whether dlopen of programs is supported.
12547 dlopen_self=$enable_dlopen_self
12549 # Whether dlopen of statically linked programs is supported.
12550 dlopen_self_static=$enable_dlopen_self_static
12552 # Compiler flag to prevent dynamic linking.
12553 link_static_flag=$lt_lt_prog_compiler_static
12555 # Compiler flag to turn off builtin functions.
12556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12558 # Compiler flag to allow reflexive dlopens.
12559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12561 # Compiler flag to generate shared objects directly from archives.
12562 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12564 # Compiler flag to generate thread-safe objects.
12565 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12567 # Library versioning type.
12568 version_type=$version_type
12570 # Format of library name prefix.
12571 libname_spec=$lt_libname_spec
12573 # List of archive names. First name is the real one, the rest are links.
12574 # The last name is the one that the linker finds with -lNAME.
12575 library_names_spec=$lt_library_names_spec
12577 # The coded name of the library, if different from the real name.
12578 soname_spec=$lt_soname_spec
12580 # Commands used to build and install an old-style archive.
12581 RANLIB=$lt_RANLIB
12582 old_archive_cmds=$lt_old_archive_cmds
12583 old_postinstall_cmds=$lt_old_postinstall_cmds
12584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12586 # Create an old-style archive from a shared archive.
12587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12589 # Create a temporary old-style archive to link instead of a shared archive.
12590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12592 # Commands used to build and install a shared archive.
12593 archive_cmds=$lt_archive_cmds
12594 archive_expsym_cmds=$lt_archive_expsym_cmds
12595 postinstall_cmds=$lt_postinstall_cmds
12596 postuninstall_cmds=$lt_postuninstall_cmds
12598 # Commands used to build a loadable module (assumed same as above if empty)
12599 module_cmds=$lt_module_cmds
12600 module_expsym_cmds=$lt_module_expsym_cmds
12602 # Commands to strip libraries.
12603 old_striplib=$lt_old_striplib
12604 striplib=$lt_striplib
12606 # Dependencies to place before the objects being linked to create a
12607 # shared library.
12608 predep_objects=$lt_predep_objects
12610 # Dependencies to place after the objects being linked to create a
12611 # shared library.
12612 postdep_objects=$lt_postdep_objects
12614 # Dependencies to place before the objects being linked to create a
12615 # shared library.
12616 predeps=$lt_predeps
12618 # Dependencies to place after the objects being linked to create a
12619 # shared library.
12620 postdeps=$lt_postdeps
12622 # The directories searched by this compiler when creating a shared
12623 # library
12624 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12626 # The library search path used internally by the compiler when linking
12627 # a shared library.
12628 compiler_lib_search_path=$lt_compiler_lib_search_path
12630 # Method to check whether dependent libraries are shared objects.
12631 deplibs_check_method=$lt_deplibs_check_method
12633 # Command to use when deplibs_check_method == file_magic.
12634 file_magic_cmd=$lt_file_magic_cmd
12636 # Flag that allows shared libraries with undefined symbols to be built.
12637 allow_undefined_flag=$lt_allow_undefined_flag
12639 # Flag that forces no undefined symbols.
12640 no_undefined_flag=$lt_no_undefined_flag
12642 # Commands used to finish a libtool library installation in a directory.
12643 finish_cmds=$lt_finish_cmds
12645 # Same as above, but a single script fragment to be evaled but not shown.
12646 finish_eval=$lt_finish_eval
12648 # Take the output of nm and produce a listing of raw symbols and C names.
12649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12651 # Transform the output of nm in a proper C declaration
12652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12654 # Transform the output of nm in a C name address pair
12655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12657 # This is the shared library runtime path variable.
12658 runpath_var=$runpath_var
12660 # This is the shared library path variable.
12661 shlibpath_var=$shlibpath_var
12663 # Is shlibpath searched before the hard-coded library search path?
12664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12666 # How to hardcode a shared library path into an executable.
12667 hardcode_action=$hardcode_action
12669 # Whether we should hardcode library paths into libraries.
12670 hardcode_into_libs=$hardcode_into_libs
12672 # Flag to hardcode \$libdir into a binary during linking.
12673 # This must work even if \$libdir does not exist.
12674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12676 # If ld is used when linking, flag to hardcode \$libdir into
12677 # a binary during linking. This must work even if \$libdir does
12678 # not exist.
12679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12681 # Whether we need a single -rpath flag with a separated argument.
12682 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12685 # resulting binary.
12686 hardcode_direct=$hardcode_direct
12688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12689 # resulting binary.
12690 hardcode_minus_L=$hardcode_minus_L
12692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12693 # the resulting binary.
12694 hardcode_shlibpath_var=$hardcode_shlibpath_var
12696 # Set to yes if building a shared library automatically hardcodes DIR into the library
12697 # and all subsequent libraries and executables linked against it.
12698 hardcode_automatic=$hardcode_automatic
12700 # Variables whose values should be saved in libtool wrapper scripts and
12701 # restored at relink time.
12702 variables_saved_for_relink="$variables_saved_for_relink"
12704 # Whether libtool must link a program against all its dependency libraries.
12705 link_all_deplibs=$link_all_deplibs
12707 # Compile-time system search path for libraries
12708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12710 # Run-time system search path for libraries
12711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12713 # Fix the shell variable \$srcfile for the compiler.
12714 fix_srcfile_path=$lt_fix_srcfile_path
12716 # Set to yes if exported symbols are required.
12717 always_export_symbols=$always_export_symbols
12719 # The commands to list exported symbols.
12720 export_symbols_cmds=$lt_export_symbols_cmds
12722 # The commands to extract the exported symbol list from a shared archive.
12723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12725 # Symbols that should not be listed in the preloaded symbols.
12726 exclude_expsyms=$lt_exclude_expsyms
12728 # Symbols that must always be exported.
12729 include_expsyms=$lt_include_expsyms
12731 # ### END LIBTOOL CONFIG
12733 __EOF__
12736 case $host_os in
12737 aix3*)
12738 cat <<\EOF >> "$cfgfile"
12740 # AIX sometimes has problems with the GCC collect2 program. For some
12741 # reason, if we set the COLLECT_NAMES environment variable, the problems
12742 # vanish in a puff of smoke.
12743 if test "X${COLLECT_NAMES+set}" != Xset; then
12744 COLLECT_NAMES=
12745 export COLLECT_NAMES
12749 esac
12751 # We use sed instead of cat because bash on DJGPP gets confused if
12752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12753 # text mode, it properly converts lines to CR/LF. This bash problem
12754 # is reportedly fixed, but why not run on old versions too?
12755 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12757 mv -f "$cfgfile" "$ofile" || \
12758 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12759 chmod +x "$ofile"
12761 else
12762 # If there is no Makefile yet, we rely on a make rule to execute
12763 # `config.status --recheck' to rerun these tests and create the
12764 # libtool script then.
12765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12766 if test -f "$ltmain_in"; then
12767 test -f Makefile && make "$ltmain"
12772 ac_ext=c
12773 ac_cpp='$CPP $CPPFLAGS'
12774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12778 CC="$lt_save_CC"
12781 # Check whether --with-tags was given.
12782 if test "${with_tags+set}" = set; then
12783 withval=$with_tags; tagnames="$withval"
12787 if test -f "$ltmain" && test -n "$tagnames"; then
12788 if test ! -f "${ofile}"; then
12789 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12790 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12793 if test -z "$LTCC"; then
12794 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12795 if test -z "$LTCC"; then
12796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12797 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12798 else
12799 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12800 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12803 if test -z "$LTCFLAGS"; then
12804 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12807 # Extract list of available tagged configurations in $ofile.
12808 # Note that this assumes the entire list is on one line.
12809 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12812 for tagname in $tagnames; do
12813 IFS="$lt_save_ifs"
12814 # Check whether tagname contains only valid characters
12815 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12816 "") ;;
12817 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12818 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12819 { (exit 1); exit 1; }; }
12821 esac
12823 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12824 then
12825 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12826 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12827 { (exit 1); exit 1; }; }
12830 # Update the list of available tags.
12831 if test -n "$tagname"; then
12832 echo appending configuration tag \"$tagname\" to $ofile
12834 case $tagname in
12835 CXX)
12836 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12837 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12838 (test "X$CXX" != "Xg++"))) ; then
12839 ac_ext=cpp
12840 ac_cpp='$CXXCPP $CPPFLAGS'
12841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12848 archive_cmds_need_lc_CXX=no
12849 allow_undefined_flag_CXX=
12850 always_export_symbols_CXX=no
12851 archive_expsym_cmds_CXX=
12852 export_dynamic_flag_spec_CXX=
12853 hardcode_direct_CXX=no
12854 hardcode_libdir_flag_spec_CXX=
12855 hardcode_libdir_flag_spec_ld_CXX=
12856 hardcode_libdir_separator_CXX=
12857 hardcode_minus_L_CXX=no
12858 hardcode_shlibpath_var_CXX=unsupported
12859 hardcode_automatic_CXX=no
12860 module_cmds_CXX=
12861 module_expsym_cmds_CXX=
12862 link_all_deplibs_CXX=unknown
12863 old_archive_cmds_CXX=$old_archive_cmds
12864 no_undefined_flag_CXX=
12865 whole_archive_flag_spec_CXX=
12866 enable_shared_with_static_runtimes_CXX=no
12868 # Dependencies to place before and after the object being linked:
12869 predep_objects_CXX=
12870 postdep_objects_CXX=
12871 predeps_CXX=
12872 postdeps_CXX=
12873 compiler_lib_search_path_CXX=
12874 compiler_lib_search_dirs_CXX=
12876 # Source file extension for C++ test sources.
12877 ac_ext=cpp
12879 # Object file extension for compiled C++ test sources.
12880 objext=o
12881 objext_CXX=$objext
12883 # Code to be used in simple compile tests
12884 lt_simple_compile_test_code="int some_variable = 0;"
12886 # Code to be used in simple link tests
12887 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12891 # If no C compiler was specified, use CC.
12892 LTCC=${LTCC-"$CC"}
12894 # If no C compiler flags were specified, use CFLAGS.
12895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12897 # Allow CC to be a program name with arguments.
12898 compiler=$CC
12901 # save warnings/boilerplate of simple test code
12902 ac_outfile=conftest.$ac_objext
12903 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12905 _lt_compiler_boilerplate=`cat conftest.err`
12906 $rm conftest*
12908 ac_outfile=conftest.$ac_objext
12909 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12911 _lt_linker_boilerplate=`cat conftest.err`
12912 $rm -r conftest*
12915 # Allow CC to be a program name with arguments.
12916 lt_save_CC=$CC
12917 lt_save_LD=$LD
12918 lt_save_GCC=$GCC
12919 GCC=$GXX
12920 lt_save_with_gnu_ld=$with_gnu_ld
12921 lt_save_path_LD=$lt_cv_path_LD
12922 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12923 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12924 else
12925 $as_unset lt_cv_prog_gnu_ld
12927 if test -n "${lt_cv_path_LDCXX+set}"; then
12928 lt_cv_path_LD=$lt_cv_path_LDCXX
12929 else
12930 $as_unset lt_cv_path_LD
12932 test -z "${LDCXX+set}" || LD=$LDCXX
12933 CC=${CXX-"c++"}
12934 compiler=$CC
12935 compiler_CXX=$CC
12936 for cc_temp in $compiler""; do
12937 case $cc_temp in
12938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12940 \-*) ;;
12941 *) break;;
12942 esac
12943 done
12944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12947 # We don't want -fno-exception wen compiling C++ code, so set the
12948 # no_builtin_flag separately
12949 if test "$GXX" = yes; then
12950 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12951 else
12952 lt_prog_compiler_no_builtin_flag_CXX=
12955 if test "$GXX" = yes; then
12956 # Set up default GNU C++ configuration
12959 # Check whether --with-gnu-ld was given.
12960 if test "${with_gnu_ld+set}" = set; then
12961 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12962 else
12963 with_gnu_ld=no
12966 ac_prog=ld
12967 if test "$GCC" = yes; then
12968 # Check if gcc -print-prog-name=ld gives a path.
12969 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12970 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12971 case $host in
12972 *-*-mingw*)
12973 # gcc leaves a trailing carriage return which upsets mingw
12974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12977 esac
12978 case $ac_prog in
12979 # Accept absolute paths.
12980 [\\/]* | ?:[\\/]*)
12981 re_direlt='/[^/][^/]*/\.\./'
12982 # Canonicalize the pathname of ld
12983 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12985 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12986 done
12987 test -z "$LD" && LD="$ac_prog"
12990 # If it fails, then pretend we aren't using GCC.
12991 ac_prog=ld
12994 # If it is relative, then search for the first ld in PATH.
12995 with_gnu_ld=unknown
12997 esac
12998 elif test "$with_gnu_ld" = yes; then
12999 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13000 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13001 else
13002 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13003 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13005 if test "${lt_cv_path_LD+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008 if test -z "$LD"; then
13009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13010 for ac_dir in $PATH; do
13011 IFS="$lt_save_ifs"
13012 test -z "$ac_dir" && ac_dir=.
13013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13014 lt_cv_path_LD="$ac_dir/$ac_prog"
13015 # Check to see if the program is GNU ld. I'd rather use --version,
13016 # but apparently some variants of GNU ld only accept -v.
13017 # Break only if it was the GNU/non-GNU ld that we prefer.
13018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13019 *GNU* | *'with BFD'*)
13020 test "$with_gnu_ld" != no && break
13023 test "$with_gnu_ld" != yes && break
13025 esac
13027 done
13028 IFS="$lt_save_ifs"
13029 else
13030 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13034 LD="$lt_cv_path_LD"
13035 if test -n "$LD"; then
13036 { echo "$as_me:$LINENO: result: $LD" >&5
13037 echo "${ECHO_T}$LD" >&6; }
13038 else
13039 { echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6; }
13042 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13043 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13044 { (exit 1); exit 1; }; }
13045 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13046 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13047 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13051 case `$LD -v 2>&1 </dev/null` in
13052 *GNU* | *'with BFD'*)
13053 lt_cv_prog_gnu_ld=yes
13056 lt_cv_prog_gnu_ld=no
13058 esac
13060 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13061 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13062 with_gnu_ld=$lt_cv_prog_gnu_ld
13066 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13067 # archiving commands below assume that GNU ld is being used.
13068 if test "$with_gnu_ld" = yes; then
13069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 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'
13072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13075 # If archive_cmds runs LD, not CC, wlarc should be empty
13076 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13077 # investigate it a little bit more. (MM)
13078 wlarc='${wl}'
13080 # ancient GNU ld didn't support --whole-archive et. al.
13081 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13082 grep 'no-whole-archive' > /dev/null; then
13083 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13084 else
13085 whole_archive_flag_spec_CXX=
13087 else
13088 with_gnu_ld=no
13089 wlarc=
13091 # A generic and very simple default shared library creation
13092 # command for GNU C++ for the case where it uses the native
13093 # linker, instead of GNU ld. If possible, this setting should
13094 # overridden to take advantage of the native linker features on
13095 # the platform it is being used on.
13096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13099 # Commands to make compiler produce verbose output that lists
13100 # what "hidden" libraries, object files and flags are used when
13101 # linking a shared library.
13102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13104 else
13105 GXX=no
13106 with_gnu_ld=no
13107 wlarc=
13110 # PORTME: fill in a description of your system's C++ link characteristics
13111 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13113 ld_shlibs_CXX=yes
13114 case $host_os in
13115 aix3*)
13116 # FIXME: insert proper C++ library support
13117 ld_shlibs_CXX=no
13119 aix[4-9]*)
13120 if test "$host_cpu" = ia64; then
13121 # On IA64, the linker does run time linking by default, so we don't
13122 # have to do anything special.
13123 aix_use_runtimelinking=no
13124 exp_sym_flag='-Bexport'
13125 no_entry_flag=""
13126 else
13127 aix_use_runtimelinking=no
13129 # Test if we are trying to use run time linking or normal
13130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13131 # need to do runtime linking.
13132 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13133 for ld_flag in $LDFLAGS; do
13134 case $ld_flag in
13135 *-brtl*)
13136 aix_use_runtimelinking=yes
13137 break
13139 esac
13140 done
13142 esac
13144 exp_sym_flag='-bexport'
13145 no_entry_flag='-bnoentry'
13148 # When large executables or shared objects are built, AIX ld can
13149 # have problems creating the table of contents. If linking a library
13150 # or program results in "error TOC overflow" add -mminimal-toc to
13151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13154 archive_cmds_CXX=''
13155 hardcode_direct_CXX=yes
13156 hardcode_libdir_separator_CXX=':'
13157 link_all_deplibs_CXX=yes
13159 if test "$GXX" = yes; then
13160 case $host_os in aix4.[012]|aix4.[012].*)
13161 # We only want to do this on AIX 4.2 and lower, the check
13162 # below for broken collect2 doesn't work under 4.3+
13163 collect2name=`${CC} -print-prog-name=collect2`
13164 if test -f "$collect2name" && \
13165 strings "$collect2name" | grep resolve_lib_name >/dev/null
13166 then
13167 # We have reworked collect2
13169 else
13170 # We have old collect2
13171 hardcode_direct_CXX=unsupported
13172 # It fails to find uninstalled libraries when the uninstalled
13173 # path is not listed in the libpath. Setting hardcode_minus_L
13174 # to unsupported forces relinking
13175 hardcode_minus_L_CXX=yes
13176 hardcode_libdir_flag_spec_CXX='-L$libdir'
13177 hardcode_libdir_separator_CXX=
13180 esac
13181 shared_flag='-shared'
13182 if test "$aix_use_runtimelinking" = yes; then
13183 shared_flag="$shared_flag "'${wl}-G'
13185 else
13186 # not using gcc
13187 if test "$host_cpu" = ia64; then
13188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13189 # chokes on -Wl,-G. The following line is correct:
13190 shared_flag='-G'
13191 else
13192 if test "$aix_use_runtimelinking" = yes; then
13193 shared_flag='${wl}-G'
13194 else
13195 shared_flag='${wl}-bM:SRE'
13200 # It seems that -bexpall does not export symbols beginning with
13201 # underscore (_), so it is better to generate a list of symbols to export.
13202 always_export_symbols_CXX=yes
13203 if test "$aix_use_runtimelinking" = yes; then
13204 # Warning - without using the other runtime loading flags (-brtl),
13205 # -berok will link without error, but may produce a broken library.
13206 allow_undefined_flag_CXX='-berok'
13207 # Determine the default libpath from the value encoded in an empty executable.
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h. */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13216 main ()
13220 return 0;
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_cxx_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest$ac_exeext &&
13240 $as_test_x conftest$ac_exeext; then
13242 lt_aix_libpath_sed='
13243 /Import File Strings/,/^$/ {
13244 /^0/ {
13245 s/^0 *\(.*\)$/\1/
13249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13250 # Check for a 64-bit object if we didn't find anything.
13251 if test -z "$aix_libpath"; then
13252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13262 conftest$ac_exeext conftest.$ac_ext
13263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13265 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13267 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"
13268 else
13269 if test "$host_cpu" = ia64; then
13270 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13271 allow_undefined_flag_CXX="-z nodefs"
13272 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"
13273 else
13274 # Determine the default libpath from the value encoded in an empty executable.
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h. */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13283 main ()
13287 return 0;
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_link") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_cxx_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest$ac_exeext &&
13307 $as_test_x conftest$ac_exeext; then
13309 lt_aix_libpath_sed='
13310 /Import File Strings/,/^$/ {
13311 /^0/ {
13312 s/^0 *\(.*\)$/\1/
13316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13317 # Check for a 64-bit object if we didn't find anything.
13318 if test -z "$aix_libpath"; then
13319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13321 else
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13329 conftest$ac_exeext conftest.$ac_ext
13330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13333 # Warning - without using the other run time loading flags,
13334 # -berok will link without error, but may produce a broken library.
13335 no_undefined_flag_CXX=' ${wl}-bernotok'
13336 allow_undefined_flag_CXX=' ${wl}-berok'
13337 # Exported symbols can be pulled into shared objects from archives
13338 whole_archive_flag_spec_CXX='$convenience'
13339 archive_cmds_need_lc_CXX=yes
13340 # This is similar to how AIX traditionally builds its shared libraries.
13341 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'
13346 beos*)
13347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13348 allow_undefined_flag_CXX=unsupported
13349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13350 # support --undefined. This deserves some investigation. FIXME
13351 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 else
13353 ld_shlibs_CXX=no
13357 chorus*)
13358 case $cc_basename in
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13363 esac
13366 cygwin* | mingw* | pw32*)
13367 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13368 # as there is no search path for DLLs.
13369 hardcode_libdir_flag_spec_CXX='-L$libdir'
13370 allow_undefined_flag_CXX=unsupported
13371 always_export_symbols_CXX=no
13372 enable_shared_with_static_runtimes_CXX=yes
13374 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13375 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'
13376 # If the export-symbols file already is a .def file (1st line
13377 # is EXPORTS), use it as is; otherwise, prepend...
13378 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13379 cp $export_symbols $output_objdir/$soname.def;
13380 else
13381 echo EXPORTS > $output_objdir/$soname.def;
13382 cat $export_symbols >> $output_objdir/$soname.def;
13384 $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'
13385 else
13386 ld_shlibs_CXX=no
13389 darwin* | rhapsody*)
13390 archive_cmds_need_lc_CXX=no
13391 hardcode_direct_CXX=no
13392 hardcode_automatic_CXX=yes
13393 hardcode_shlibpath_var_CXX=unsupported
13394 whole_archive_flag_spec_CXX=''
13395 link_all_deplibs_CXX=yes
13396 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13397 if test "$GXX" = yes ; then
13398 output_verbose_link_cmd='echo'
13399 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13400 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13401 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13402 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13403 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13404 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13405 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13407 else
13408 case $cc_basename in
13409 xlc*)
13410 output_verbose_link_cmd='echo'
13411 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13412 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13414 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13415 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}'
13418 ld_shlibs_CXX=no
13420 esac
13424 dgux*)
13425 case $cc_basename in
13426 ec++*)
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13430 ghcx*)
13431 # Green Hills C++ Compiler
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13439 esac
13441 freebsd[12]*)
13442 # C++ shared libraries reported to be fairly broken before switch to ELF
13443 ld_shlibs_CXX=no
13445 freebsd-elf*)
13446 archive_cmds_need_lc_CXX=no
13448 freebsd* | dragonfly*)
13449 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13450 # conventions
13451 ld_shlibs_CXX=yes
13453 gnu*)
13455 hpux9*)
13456 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13457 hardcode_libdir_separator_CXX=:
13458 export_dynamic_flag_spec_CXX='${wl}-E'
13459 hardcode_direct_CXX=yes
13460 hardcode_minus_L_CXX=yes # Not in the search PATH,
13461 # but as the default
13462 # location of the library.
13464 case $cc_basename in
13465 CC*)
13466 # FIXME: insert proper C++ library support
13467 ld_shlibs_CXX=no
13469 aCC*)
13470 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'
13471 # Commands to make compiler produce verbose output that lists
13472 # what "hidden" libraries, object files and flags are used when
13473 # linking a shared library.
13475 # There doesn't appear to be a way to prevent this compiler from
13476 # explicitly linking system object files so we need to strip them
13477 # from the output so that they don't get included in the library
13478 # dependencies.
13479 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'
13482 if test "$GXX" = yes; then
13483 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'
13484 else
13485 # FIXME: insert proper C++ library support
13486 ld_shlibs_CXX=no
13489 esac
13491 hpux10*|hpux11*)
13492 if test $with_gnu_ld = no; then
13493 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13494 hardcode_libdir_separator_CXX=:
13496 case $host_cpu in
13497 hppa*64*|ia64*) ;;
13499 export_dynamic_flag_spec_CXX='${wl}-E'
13501 esac
13503 case $host_cpu in
13504 hppa*64*|ia64*)
13505 hardcode_direct_CXX=no
13506 hardcode_shlibpath_var_CXX=no
13509 hardcode_direct_CXX=yes
13510 hardcode_minus_L_CXX=yes # Not in the search PATH,
13511 # but as the default
13512 # location of the library.
13514 esac
13516 case $cc_basename in
13517 CC*)
13518 # FIXME: insert proper C++ library support
13519 ld_shlibs_CXX=no
13521 aCC*)
13522 case $host_cpu in
13523 hppa*64*)
13524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13526 ia64*)
13527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13530 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13532 esac
13533 # Commands to make compiler produce verbose output that lists
13534 # what "hidden" libraries, object files and flags are used when
13535 # linking a shared library.
13537 # There doesn't appear to be a way to prevent this compiler from
13538 # explicitly linking system object files so we need to strip them
13539 # from the output so that they don't get included in the library
13540 # dependencies.
13541 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'
13544 if test "$GXX" = yes; then
13545 if test $with_gnu_ld = no; then
13546 case $host_cpu in
13547 hppa*64*)
13548 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13550 ia64*)
13551 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554 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'
13556 esac
13558 else
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13563 esac
13565 interix[3-9]*)
13566 hardcode_direct_CXX=no
13567 hardcode_shlibpath_var_CXX=no
13568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13569 export_dynamic_flag_spec_CXX='${wl}-E'
13570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13571 # Instead, shared libraries are loaded at an image base (0x10000000 by
13572 # default) and relocated if they conflict, which is a slow very memory
13573 # consuming and fragmenting process. To avoid this, we pick a random,
13574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13576 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'
13577 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'
13579 irix5* | irix6*)
13580 case $cc_basename in
13581 CC*)
13582 # SGI C++
13583 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'
13585 # Archives containing C++ object files must be created using
13586 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13587 # necessary to make sure instantiated templates are included
13588 # in the archive.
13589 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13592 if test "$GXX" = yes; then
13593 if test "$with_gnu_ld" = no; then
13594 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'
13595 else
13596 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'
13599 link_all_deplibs_CXX=yes
13601 esac
13602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13603 hardcode_libdir_separator_CXX=:
13605 linux* | k*bsd*-gnu)
13606 case $cc_basename in
13607 KCC*)
13608 # Kuck and Associates, Inc. (KAI) C++ Compiler
13610 # KCC will only create a shared library if the output file
13611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13612 # to its proper name (with version) after linking.
13613 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'
13614 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'
13615 # Commands to make compiler produce verbose output that lists
13616 # what "hidden" libraries, object files and flags are used when
13617 # linking a shared library.
13619 # There doesn't appear to be a way to prevent this compiler from
13620 # explicitly linking system object files so we need to strip them
13621 # from the output so that they don't get included in the library
13622 # dependencies.
13623 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'
13625 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13628 # Archives containing C++ object files must be created using
13629 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13630 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13632 icpc*)
13633 # Intel C++
13634 with_gnu_ld=yes
13635 # version 8.0 and above of icpc choke on multiply defined symbols
13636 # if we add $predep_objects and $postdep_objects, however 7.1 and
13637 # earlier do not add the objects themselves.
13638 case `$CC -V 2>&1` in
13639 *"Version 7."*)
13640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641 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'
13643 *) # Version 8.0 or newer
13644 tmp_idyn=
13645 case $host_cpu in
13646 ia64*) tmp_idyn=' -i_dynamic';;
13647 esac
13648 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13649 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'
13651 esac
13652 archive_cmds_need_lc_CXX=no
13653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13655 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13657 pgCC* | pgcpp*)
13658 # Portland Group C++ compiler
13659 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13660 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'
13662 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13663 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13664 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'
13666 cxx*)
13667 # Compaq C++
13668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669 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'
13671 runpath_var=LD_RUN_PATH
13672 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13673 hardcode_libdir_separator_CXX=:
13675 # Commands to make compiler produce verbose output that lists
13676 # what "hidden" libraries, object files and flags are used when
13677 # linking a shared library.
13679 # There doesn't appear to be a way to prevent this compiler from
13680 # explicitly linking system object files so we need to strip them
13681 # from the output so that they don't get included in the library
13682 # dependencies.
13683 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'
13686 case `$CC -V 2>&1 | sed 5q` in
13687 *Sun\ C*)
13688 # Sun C++ 5.9
13689 no_undefined_flag_CXX=' -zdefs'
13690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13691 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13692 hardcode_libdir_flag_spec_CXX='-R$libdir'
13693 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13695 # Not sure whether something based on
13696 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13697 # would be better.
13698 output_verbose_link_cmd='echo'
13700 # Archives containing C++ object files must be created using
13701 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13702 # necessary to make sure instantiated templates are included
13703 # in the archive.
13704 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13706 esac
13708 esac
13710 lynxos*)
13711 # FIXME: insert proper C++ library support
13712 ld_shlibs_CXX=no
13714 m88k*)
13715 # FIXME: insert proper C++ library support
13716 ld_shlibs_CXX=no
13718 mvs*)
13719 case $cc_basename in
13720 cxx*)
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13728 esac
13730 netbsd* | netbsdelf*-gnu)
13731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13732 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13733 wlarc=
13734 hardcode_libdir_flag_spec_CXX='-R$libdir'
13735 hardcode_direct_CXX=yes
13736 hardcode_shlibpath_var_CXX=no
13738 # Workaround some broken pre-1.5 toolchains
13739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13741 openbsd2*)
13742 # C++ shared libraries are fairly broken
13743 ld_shlibs_CXX=no
13745 openbsd*)
13746 if test -f /usr/libexec/ld.so; then
13747 hardcode_direct_CXX=yes
13748 hardcode_shlibpath_var_CXX=no
13749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13752 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13753 export_dynamic_flag_spec_CXX='${wl}-E'
13754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13756 output_verbose_link_cmd='echo'
13757 else
13758 ld_shlibs_CXX=no
13761 osf3*)
13762 case $cc_basename in
13763 KCC*)
13764 # Kuck and Associates, Inc. (KAI) C++ Compiler
13766 # KCC will only create a shared library if the output file
13767 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13768 # to its proper name (with version) after linking.
13769 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'
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772 hardcode_libdir_separator_CXX=:
13774 # Archives containing C++ object files must be created using
13775 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13776 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13779 RCC*)
13780 # Rational C++ 2.4.1
13781 # FIXME: insert proper C++ library support
13782 ld_shlibs_CXX=no
13784 cxx*)
13785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13786 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'
13788 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13789 hardcode_libdir_separator_CXX=:
13791 # Commands to make compiler produce verbose output that lists
13792 # what "hidden" libraries, object files and flags are used when
13793 # linking a shared library.
13795 # There doesn't appear to be a way to prevent this compiler from
13796 # explicitly linking system object files so we need to strip them
13797 # from the output so that they don't get included in the library
13798 # dependencies.
13799 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'
13802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13803 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13804 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'
13806 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13807 hardcode_libdir_separator_CXX=:
13809 # Commands to make compiler produce verbose output that lists
13810 # what "hidden" libraries, object files and flags are used when
13811 # linking a shared library.
13812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13814 else
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13819 esac
13821 osf4* | osf5*)
13822 case $cc_basename in
13823 KCC*)
13824 # Kuck and Associates, Inc. (KAI) C++ Compiler
13826 # KCC will only create a shared library if the output file
13827 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13828 # to its proper name (with version) after linking.
13829 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'
13831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832 hardcode_libdir_separator_CXX=:
13834 # Archives containing C++ object files must be created using
13835 # the KAI C++ compiler.
13836 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13838 RCC*)
13839 # Rational C++ 2.4.1
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13843 cxx*)
13844 allow_undefined_flag_CXX=' -expect_unresolved \*'
13845 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'
13846 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13847 echo "-hidden">> $lib.exp~
13848 $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~
13849 $rm $lib.exp'
13851 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13852 hardcode_libdir_separator_CXX=:
13854 # Commands to make compiler produce verbose output that lists
13855 # what "hidden" libraries, object files and flags are used when
13856 # linking a shared library.
13858 # There doesn't appear to be a way to prevent this compiler from
13859 # explicitly linking system object files so we need to strip them
13860 # from the output so that they don't get included in the library
13861 # dependencies.
13862 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'
13865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13867 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'
13869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13870 hardcode_libdir_separator_CXX=:
13872 # Commands to make compiler produce verbose output that lists
13873 # what "hidden" libraries, object files and flags are used when
13874 # linking a shared library.
13875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13877 else
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13882 esac
13884 psos*)
13885 # FIXME: insert proper C++ library support
13886 ld_shlibs_CXX=no
13888 sunos4*)
13889 case $cc_basename in
13890 CC*)
13891 # Sun C++ 4.x
13892 # FIXME: insert proper C++ library support
13893 ld_shlibs_CXX=no
13895 lcc*)
13896 # Lucid
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13901 # FIXME: insert proper C++ library support
13902 ld_shlibs_CXX=no
13904 esac
13906 solaris*)
13907 case $cc_basename in
13908 CC*)
13909 # Sun C++ 4.2, 5.x and Centerline C++
13910 archive_cmds_need_lc_CXX=yes
13911 no_undefined_flag_CXX=' -zdefs'
13912 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13913 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13914 $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'
13916 hardcode_libdir_flag_spec_CXX='-R$libdir'
13917 hardcode_shlibpath_var_CXX=no
13918 case $host_os in
13919 solaris2.[0-5] | solaris2.[0-5].*) ;;
13921 # The compiler driver will combine and reorder linker options,
13922 # but understands `-z linker_flag'.
13923 # Supported since Solaris 2.6 (maybe 2.5.1?)
13924 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13926 esac
13927 link_all_deplibs_CXX=yes
13929 output_verbose_link_cmd='echo'
13931 # Archives containing C++ object files must be created using
13932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13933 # necessary to make sure instantiated templates are included
13934 # in the archive.
13935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13937 gcx*)
13938 # Green Hills C++ Compiler
13939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13941 # The C++ compiler must be used to create the archive.
13942 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13945 # GNU C++ compiler with Solaris linker
13946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13947 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13948 if $CC --version | grep -v '^2\.7' > /dev/null; then
13949 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13950 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13953 # Commands to make compiler produce verbose output that lists
13954 # what "hidden" libraries, object files and flags are used when
13955 # linking a shared library.
13956 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13957 else
13958 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13959 # platform.
13960 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13961 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13962 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13964 # Commands to make compiler produce verbose output that lists
13965 # what "hidden" libraries, object files and flags are used when
13966 # linking a shared library.
13967 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13970 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13971 case $host_os in
13972 solaris2.[0-5] | solaris2.[0-5].*) ;;
13974 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13976 esac
13979 esac
13981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13982 no_undefined_flag_CXX='${wl}-z,text'
13983 archive_cmds_need_lc_CXX=no
13984 hardcode_shlibpath_var_CXX=no
13985 runpath_var='LD_RUN_PATH'
13987 case $cc_basename in
13988 CC*)
13989 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13993 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13996 esac
13998 sysv5* | sco3.2v5* | sco5v6*)
13999 # Note: We can NOT use -z defs as we might desire, because we do not
14000 # link with -lc, and that would cause any symbols used from libc to
14001 # always be unresolved, which means just about no library would
14002 # ever link correctly. If we're not using GNU ld we use -z text
14003 # though, which does catch some bad symbols but isn't as heavy-handed
14004 # as -z defs.
14005 # For security reasons, it is highly recommended that you always
14006 # use absolute paths for naming shared libraries, and exclude the
14007 # DT_RUNPATH tag from executables and libraries. But doing so
14008 # requires that you compile everything twice, which is a pain.
14009 # So that behaviour is only enabled if SCOABSPATH is set to a
14010 # non-empty value in the environment. Most likely only useful for
14011 # creating official distributions of packages.
14012 # This is a hack until libtool officially supports absolute path
14013 # names for shared libraries.
14014 no_undefined_flag_CXX='${wl}-z,text'
14015 allow_undefined_flag_CXX='${wl}-z,nodefs'
14016 archive_cmds_need_lc_CXX=no
14017 hardcode_shlibpath_var_CXX=no
14018 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14019 hardcode_libdir_separator_CXX=':'
14020 link_all_deplibs_CXX=yes
14021 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14022 runpath_var='LD_RUN_PATH'
14024 case $cc_basename in
14025 CC*)
14026 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14027 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14030 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14033 esac
14035 tandem*)
14036 case $cc_basename in
14037 NCC*)
14038 # NonStop-UX NCC 3.20
14039 # FIXME: insert proper C++ library support
14040 ld_shlibs_CXX=no
14043 # FIXME: insert proper C++ library support
14044 ld_shlibs_CXX=no
14046 esac
14048 vxworks*)
14049 # FIXME: insert proper C++ library support
14050 ld_shlibs_CXX=no
14053 # FIXME: insert proper C++ library support
14054 ld_shlibs_CXX=no
14056 esac
14057 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14058 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14059 test "$ld_shlibs_CXX" = no && can_build_shared=no
14061 GCC_CXX="$GXX"
14062 LD_CXX="$LD"
14064 cat > conftest.$ac_ext <<EOF
14065 class Foo
14067 public:
14068 Foo (void) { a = 0; }
14069 private:
14070 int a;
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; then
14079 # Parse the compiler output and extract the necessary
14080 # objects, libraries and library flags.
14082 # Sentinel used to keep track of whether or not we are before
14083 # the conftest object file.
14084 pre_test_object_deps_done=no
14086 # The `*' in the case matches for architectures that use `case' in
14087 # $output_verbose_cmd can trigger glob expansion during the loop
14088 # eval without this substitution.
14089 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14091 for p in `eval $output_verbose_link_cmd`; do
14092 case $p in
14094 -L* | -R* | -l*)
14095 # Some compilers place space between "-{L,R}" and the path.
14096 # Remove the space.
14097 if test $p = "-L" \
14098 || test $p = "-R"; then
14099 prev=$p
14100 continue
14101 else
14102 prev=
14105 if test "$pre_test_object_deps_done" = no; then
14106 case $p in
14107 -L* | -R*)
14108 # Internal compiler library paths should come after those
14109 # provided the user. The postdeps already come after the
14110 # user supplied libs so there is no need to process them.
14111 if test -z "$compiler_lib_search_path_CXX"; then
14112 compiler_lib_search_path_CXX="${prev}${p}"
14113 else
14114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14117 # The "-l" case would never come before the object being
14118 # linked, so don't bother handling this case.
14119 esac
14120 else
14121 if test -z "$postdeps_CXX"; then
14122 postdeps_CXX="${prev}${p}"
14123 else
14124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14129 *.$objext)
14130 # This assumes that the test object file only shows up
14131 # once in the compiler output.
14132 if test "$p" = "conftest.$objext"; then
14133 pre_test_object_deps_done=yes
14134 continue
14137 if test "$pre_test_object_deps_done" = no; then
14138 if test -z "$predep_objects_CXX"; then
14139 predep_objects_CXX="$p"
14140 else
14141 predep_objects_CXX="$predep_objects_CXX $p"
14143 else
14144 if test -z "$postdep_objects_CXX"; then
14145 postdep_objects_CXX="$p"
14146 else
14147 postdep_objects_CXX="$postdep_objects_CXX $p"
14152 *) ;; # Ignore the rest.
14154 esac
14155 done
14157 # Clean up.
14158 rm -f a.out a.exe
14159 else
14160 echo "libtool.m4: error: problem compiling CXX test program"
14163 $rm -f confest.$objext
14165 compiler_lib_search_dirs_CXX=
14166 if test -n "$compiler_lib_search_path_CXX"; then
14167 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14170 # PORTME: override above test on systems where it is broken
14171 case $host_os in
14172 interix[3-9]*)
14173 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14174 # hack all around it, let's just trust "g++" to DTRT.
14175 predep_objects_CXX=
14176 postdep_objects_CXX=
14177 postdeps_CXX=
14180 linux*)
14181 case `$CC -V 2>&1 | sed 5q` in
14182 *Sun\ C*)
14183 # Sun C++ 5.9
14185 # The more standards-conforming stlport4 library is
14186 # incompatible with the Cstd library. Avoid specifying
14187 # it if it's in CXXFLAGS. Ignore libCrun as
14188 # -library=stlport4 depends on it.
14189 case " $CXX $CXXFLAGS " in
14190 *" -library=stlport4 "*)
14191 solaris_use_stlport4=yes
14193 esac
14194 if test "$solaris_use_stlport4" != yes; then
14195 postdeps_CXX='-library=Cstd -library=Crun'
14198 esac
14201 solaris*)
14202 case $cc_basename in
14203 CC*)
14204 # The more standards-conforming stlport4 library is
14205 # incompatible with the Cstd library. Avoid specifying
14206 # it if it's in CXXFLAGS. Ignore libCrun as
14207 # -library=stlport4 depends on it.
14208 case " $CXX $CXXFLAGS " in
14209 *" -library=stlport4 "*)
14210 solaris_use_stlport4=yes
14212 esac
14214 # Adding this requires a known-good setup of shared libraries for
14215 # Sun compiler versions before 5.6, else PIC objects from an old
14216 # archive will be linked into the output, leading to subtle bugs.
14217 if test "$solaris_use_stlport4" != yes; then
14218 postdeps_CXX='-library=Cstd -library=Crun'
14221 esac
14223 esac
14225 case " $postdeps_CXX " in
14226 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14227 esac
14229 lt_prog_compiler_wl_CXX=
14230 lt_prog_compiler_pic_CXX=
14231 lt_prog_compiler_static_CXX=
14233 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14234 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14236 # C++ specific cases for pic, static, wl, etc.
14237 if test "$GXX" = yes; then
14238 lt_prog_compiler_wl_CXX='-Wl,'
14239 lt_prog_compiler_static_CXX='-static'
14241 case $host_os in
14242 aix*)
14243 # All AIX code is PIC.
14244 if test "$host_cpu" = ia64; then
14245 # AIX 5 now supports IA64 processor
14246 lt_prog_compiler_static_CXX='-Bstatic'
14249 amigaos*)
14250 # FIXME: we need at least 68020 code to build shared libraries, but
14251 # adding the `-m68020' flag to GCC prevents building anything better,
14252 # like `-m68040'.
14253 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14255 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14256 # PIC is the default for these OSes.
14258 mingw* | cygwin* | os2* | pw32*)
14259 # This hack is so that the source file can tell whether it is being
14260 # built for inclusion in a dll (and should export symbols for example).
14261 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14262 # (--disable-auto-import) libraries
14263 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14265 darwin* | rhapsody*)
14266 # PIC is the default on this platform
14267 # Common symbols not allowed in MH_DYLIB files
14268 lt_prog_compiler_pic_CXX='-fno-common'
14270 *djgpp*)
14271 # DJGPP does not support shared libraries at all
14272 lt_prog_compiler_pic_CXX=
14274 interix[3-9]*)
14275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14276 # Instead, we relocate shared libraries at runtime.
14278 sysv4*MP*)
14279 if test -d /usr/nec; then
14280 lt_prog_compiler_pic_CXX=-Kconform_pic
14283 hpux*)
14284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14285 # not for PA HP-UX.
14286 case $host_cpu in
14287 hppa*64*|ia64*)
14290 lt_prog_compiler_pic_CXX='-fPIC'
14292 esac
14295 lt_prog_compiler_pic_CXX='-fPIC'
14297 esac
14298 else
14299 case $host_os in
14300 aix[4-9]*)
14301 # All AIX code is PIC.
14302 if test "$host_cpu" = ia64; then
14303 # AIX 5 now supports IA64 processor
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 else
14306 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14309 chorus*)
14310 case $cc_basename in
14311 cxch68*)
14312 # Green Hills C++ Compiler
14313 # _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"
14315 esac
14317 darwin*)
14318 # PIC is the default on this platform
14319 # Common symbols not allowed in MH_DYLIB files
14320 case $cc_basename in
14321 xlc*)
14322 lt_prog_compiler_pic_CXX='-qnocommon'
14323 lt_prog_compiler_wl_CXX='-Wl,'
14325 esac
14327 dgux*)
14328 case $cc_basename in
14329 ec++*)
14330 lt_prog_compiler_pic_CXX='-KPIC'
14332 ghcx*)
14333 # Green Hills C++ Compiler
14334 lt_prog_compiler_pic_CXX='-pic'
14338 esac
14340 freebsd* | dragonfly*)
14341 # FreeBSD uses GNU C++
14343 hpux9* | hpux10* | hpux11*)
14344 case $cc_basename in
14345 CC*)
14346 lt_prog_compiler_wl_CXX='-Wl,'
14347 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14348 if test "$host_cpu" != ia64; then
14349 lt_prog_compiler_pic_CXX='+Z'
14352 aCC*)
14353 lt_prog_compiler_wl_CXX='-Wl,'
14354 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14355 case $host_cpu in
14356 hppa*64*|ia64*)
14357 # +Z the default
14360 lt_prog_compiler_pic_CXX='+Z'
14362 esac
14366 esac
14368 interix*)
14369 # This is c89, which is MS Visual C++ (no shared libs)
14370 # Anyone wants to do a port?
14372 irix5* | irix6* | nonstopux*)
14373 case $cc_basename in
14374 CC*)
14375 lt_prog_compiler_wl_CXX='-Wl,'
14376 lt_prog_compiler_static_CXX='-non_shared'
14377 # CC pic flag -KPIC is the default.
14381 esac
14383 linux* | k*bsd*-gnu)
14384 case $cc_basename in
14385 KCC*)
14386 # KAI C++ Compiler
14387 lt_prog_compiler_wl_CXX='--backend -Wl,'
14388 lt_prog_compiler_pic_CXX='-fPIC'
14390 icpc* | ecpc*)
14391 # Intel C++
14392 lt_prog_compiler_wl_CXX='-Wl,'
14393 lt_prog_compiler_pic_CXX='-KPIC'
14394 lt_prog_compiler_static_CXX='-static'
14396 pgCC* | pgcpp*)
14397 # Portland Group C++ compiler.
14398 lt_prog_compiler_wl_CXX='-Wl,'
14399 lt_prog_compiler_pic_CXX='-fpic'
14400 lt_prog_compiler_static_CXX='-Bstatic'
14402 cxx*)
14403 # Compaq C++
14404 # Make sure the PIC flag is empty. It appears that all Alpha
14405 # Linux and Compaq Tru64 Unix objects are PIC.
14406 lt_prog_compiler_pic_CXX=
14407 lt_prog_compiler_static_CXX='-non_shared'
14410 case `$CC -V 2>&1 | sed 5q` in
14411 *Sun\ C*)
14412 # Sun C++ 5.9
14413 lt_prog_compiler_pic_CXX='-KPIC'
14414 lt_prog_compiler_static_CXX='-Bstatic'
14415 lt_prog_compiler_wl_CXX='-Qoption ld '
14417 esac
14419 esac
14421 lynxos*)
14423 m88k*)
14425 mvs*)
14426 case $cc_basename in
14427 cxx*)
14428 lt_prog_compiler_pic_CXX='-W c,exportall'
14432 esac
14434 netbsd* | netbsdelf*-gnu)
14436 osf3* | osf4* | osf5*)
14437 case $cc_basename in
14438 KCC*)
14439 lt_prog_compiler_wl_CXX='--backend -Wl,'
14441 RCC*)
14442 # Rational C++ 2.4.1
14443 lt_prog_compiler_pic_CXX='-pic'
14445 cxx*)
14446 # Digital/Compaq C++
14447 lt_prog_compiler_wl_CXX='-Wl,'
14448 # Make sure the PIC flag is empty. It appears that all Alpha
14449 # Linux and Compaq Tru64 Unix objects are PIC.
14450 lt_prog_compiler_pic_CXX=
14451 lt_prog_compiler_static_CXX='-non_shared'
14455 esac
14457 psos*)
14459 solaris*)
14460 case $cc_basename in
14461 CC*)
14462 # Sun C++ 4.2, 5.x and Centerline C++
14463 lt_prog_compiler_pic_CXX='-KPIC'
14464 lt_prog_compiler_static_CXX='-Bstatic'
14465 lt_prog_compiler_wl_CXX='-Qoption ld '
14467 gcx*)
14468 # Green Hills C++ Compiler
14469 lt_prog_compiler_pic_CXX='-PIC'
14473 esac
14475 sunos4*)
14476 case $cc_basename in
14477 CC*)
14478 # Sun C++ 4.x
14479 lt_prog_compiler_pic_CXX='-pic'
14480 lt_prog_compiler_static_CXX='-Bstatic'
14482 lcc*)
14483 # Lucid
14484 lt_prog_compiler_pic_CXX='-pic'
14488 esac
14490 tandem*)
14491 case $cc_basename in
14492 NCC*)
14493 # NonStop-UX NCC 3.20
14494 lt_prog_compiler_pic_CXX='-KPIC'
14498 esac
14500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14501 case $cc_basename in
14502 CC*)
14503 lt_prog_compiler_wl_CXX='-Wl,'
14504 lt_prog_compiler_pic_CXX='-KPIC'
14505 lt_prog_compiler_static_CXX='-Bstatic'
14507 esac
14509 vxworks*)
14512 lt_prog_compiler_can_build_shared_CXX=no
14514 esac
14517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14518 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14521 # Check to make sure the PIC flag actually works.
14523 if test -n "$lt_prog_compiler_pic_CXX"; then
14525 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14526 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14527 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530 lt_cv_prog_compiler_pic_works_CXX=no
14531 ac_outfile=conftest.$ac_objext
14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 # The option is referenced via a variable to avoid confusing sed.
14539 lt_compile=`echo "$ac_compile" | $SED \
14540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542 -e 's:$: $lt_compiler_flag:'`
14543 (eval echo "\"\$as_me:14543: $lt_compile\"" >&5)
14544 (eval "$lt_compile" 2>conftest.err)
14545 ac_status=$?
14546 cat conftest.err >&5
14547 echo "$as_me:14547: \$? = $ac_status" >&5
14548 if (exit $ac_status) && test -s "$ac_outfile"; then
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings other than the usual output.
14551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14554 lt_cv_prog_compiler_pic_works_CXX=yes
14557 $rm conftest*
14560 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14561 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14563 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14564 case $lt_prog_compiler_pic_CXX in
14565 "" | " "*) ;;
14566 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14567 esac
14568 else
14569 lt_prog_compiler_pic_CXX=
14570 lt_prog_compiler_can_build_shared_CXX=no
14574 case $host_os in
14575 # For platforms which do not support PIC, -DPIC is meaningless:
14576 *djgpp*)
14577 lt_prog_compiler_pic_CXX=
14580 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14582 esac
14585 # Check to make sure the static flag actually works.
14587 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14588 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14589 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14590 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593 lt_cv_prog_compiler_static_works_CXX=no
14594 save_LDFLAGS="$LDFLAGS"
14595 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14598 # The linker can only warn and ignore the option if not recognized
14599 # So say no if there are warnings
14600 if test -s conftest.err; then
14601 # Append any errors to the config.log.
14602 cat conftest.err 1>&5
14603 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14605 if diff conftest.exp conftest.er2 >/dev/null; then
14606 lt_cv_prog_compiler_static_works_CXX=yes
14608 else
14609 lt_cv_prog_compiler_static_works_CXX=yes
14612 $rm -r conftest*
14613 LDFLAGS="$save_LDFLAGS"
14616 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14617 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14619 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14621 else
14622 lt_prog_compiler_static_CXX=
14626 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14627 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14628 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631 lt_cv_prog_compiler_c_o_CXX=no
14632 $rm -r conftest 2>/dev/null
14633 mkdir conftest
14634 cd conftest
14635 mkdir out
14636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14638 lt_compiler_flag="-o out/conftest2.$ac_objext"
14639 # Insert the option either (1) after the last *FLAGS variable, or
14640 # (2) before a word containing "conftest.", or (3) at the end.
14641 # Note that $ac_compile itself does not contain backslashes and begins
14642 # with a dollar sign (not a hyphen), so the echo should work correctly.
14643 lt_compile=`echo "$ac_compile" | $SED \
14644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14646 -e 's:$: $lt_compiler_flag:'`
14647 (eval echo "\"\$as_me:14647: $lt_compile\"" >&5)
14648 (eval "$lt_compile" 2>out/conftest.err)
14649 ac_status=$?
14650 cat out/conftest.err >&5
14651 echo "$as_me:14651: \$? = $ac_status" >&5
14652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14653 then
14654 # The compiler can only warn and ignore the option if not recognized
14655 # So say no if there are warnings
14656 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14659 lt_cv_prog_compiler_c_o_CXX=yes
14662 chmod u+w . 2>&5
14663 $rm conftest*
14664 # SGI C++ compiler will create directory out/ii_files/ for
14665 # template instantiation
14666 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14667 $rm out/* && rmdir out
14668 cd ..
14669 rmdir conftest
14670 $rm conftest*
14673 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14674 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14677 hard_links="nottested"
14678 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14679 # do not overwrite the value of need_locks provided by the user
14680 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14681 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14682 hard_links=yes
14683 $rm conftest*
14684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14685 touch conftest.a
14686 ln conftest.a conftest.b 2>&5 || hard_links=no
14687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14688 { echo "$as_me:$LINENO: result: $hard_links" >&5
14689 echo "${ECHO_T}$hard_links" >&6; }
14690 if test "$hard_links" = no; then
14691 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14692 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14693 need_locks=warn
14695 else
14696 need_locks=no
14699 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14700 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14703 case $host_os in
14704 aix[4-9]*)
14705 # If we're using GNU nm, then we don't want the "-C" option.
14706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14707 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14708 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'
14709 else
14710 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'
14713 pw32*)
14714 export_symbols_cmds_CXX="$ltdll_cmds"
14716 cygwin* | mingw*)
14717 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'
14719 linux* | k*bsd*-gnu)
14720 link_all_deplibs_CXX=no
14723 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14725 esac
14726 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14728 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14729 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14730 test "$ld_shlibs_CXX" = no && can_build_shared=no
14733 # Do we need to explicitly link libc?
14735 case "x$archive_cmds_need_lc_CXX" in
14736 x|xyes)
14737 # Assume -lc should be added
14738 archive_cmds_need_lc_CXX=yes
14740 if test "$enable_shared" = yes && test "$GCC" = yes; then
14741 case $archive_cmds_CXX in
14742 *'~'*)
14743 # FIXME: we may have to deal with multi-command sequences.
14745 '$CC '*)
14746 # Test whether the compiler implicitly links with -lc since on some
14747 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14748 # to ld, don't add -lc before -lgcc.
14749 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14750 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14751 $rm conftest*
14752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755 (eval $ac_compile) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } 2>conftest.err; then
14759 soname=conftest
14760 lib=conftest
14761 libobjs=conftest.$ac_objext
14762 deplibs=
14763 wl=$lt_prog_compiler_wl_CXX
14764 pic_flag=$lt_prog_compiler_pic_CXX
14765 compiler_flags=-v
14766 linker_flags=-v
14767 verstring=
14768 output_objdir=.
14769 libname=conftest
14770 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14771 allow_undefined_flag_CXX=
14772 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14773 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }
14777 then
14778 archive_cmds_need_lc_CXX=no
14779 else
14780 archive_cmds_need_lc_CXX=yes
14782 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14783 else
14784 cat conftest.err 1>&5
14786 $rm conftest*
14787 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14788 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14790 esac
14793 esac
14795 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14796 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14797 library_names_spec=
14798 libname_spec='lib$name'
14799 soname_spec=
14800 shrext_cmds=".so"
14801 postinstall_cmds=
14802 postuninstall_cmds=
14803 finish_cmds=
14804 finish_eval=
14805 shlibpath_var=
14806 shlibpath_overrides_runpath=unknown
14807 version_type=none
14808 dynamic_linker="$host_os ld.so"
14809 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14811 need_lib_prefix=unknown
14812 hardcode_into_libs=no
14814 # when you set need_version to no, make sure it does not cause -set_version
14815 # flags to be left without arguments
14816 need_version=unknown
14818 case $host_os in
14819 aix3*)
14820 version_type=linux
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14822 shlibpath_var=LIBPATH
14824 # AIX 3 has no versioning support, so we append a major version to the name.
14825 soname_spec='${libname}${release}${shared_ext}$major'
14828 aix[4-9]*)
14829 version_type=linux
14830 need_lib_prefix=no
14831 need_version=no
14832 hardcode_into_libs=yes
14833 if test "$host_cpu" = ia64; then
14834 # AIX 5 supports IA64
14835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 else
14838 # With GCC up to 2.95.x, collect2 would create an import file
14839 # for dependence libraries. The import file would start with
14840 # the line `#! .'. This would cause the generated library to
14841 # depend on `.', always an invalid library. This was fixed in
14842 # development snapshots of GCC prior to 3.0.
14843 case $host_os in
14844 aix4 | aix4.[01] | aix4.[01].*)
14845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14846 echo ' yes '
14847 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14849 else
14850 can_build_shared=no
14853 esac
14854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14855 # soname into executable. Probably we can add versioning support to
14856 # collect2, so additional links can be useful in future.
14857 if test "$aix_use_runtimelinking" = yes; then
14858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14859 # instead of lib<name>.a to let people know that these are not
14860 # typical AIX shared libraries.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 else
14863 # We preserve .a as extension for shared libraries through AIX4.2
14864 # and later when we are not doing run time linking.
14865 library_names_spec='${libname}${release}.a $libname.a'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14868 shlibpath_var=LIBPATH
14872 amigaos*)
14873 library_names_spec='$libname.ixlibrary $libname.a'
14874 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14875 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'
14878 beos*)
14879 library_names_spec='${libname}${shared_ext}'
14880 dynamic_linker="$host_os ld.so"
14881 shlibpath_var=LIBRARY_PATH
14884 bsdi[45]*)
14885 version_type=linux
14886 need_version=no
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14893 # the default ld.so.conf also contains /usr/contrib/lib and
14894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14895 # libtool to hard-code these into programs
14898 cygwin* | mingw* | pw32*)
14899 version_type=windows
14900 shrext_cmds=".dll"
14901 need_version=no
14902 need_lib_prefix=no
14904 case $GCC,$host_os in
14905 yes,cygwin* | yes,mingw* | yes,pw32*)
14906 library_names_spec='$libname.dll.a'
14907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14908 postinstall_cmds='base_file=`basename \${file}`~
14909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14910 dldir=$destdir/`dirname \$dlpath`~
14911 test -d \$dldir || mkdir -p \$dldir~
14912 $install_prog $dir/$dlname \$dldir/$dlname~
14913 chmod a+x \$dldir/$dlname'
14914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14915 dlpath=$dir/\$dldll~
14916 $rm \$dlpath'
14917 shlibpath_overrides_runpath=yes
14919 case $host_os in
14920 cygwin*)
14921 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14922 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14923 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14925 mingw*)
14926 # MinGW DLLs use traditional 'lib' prefix
14927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14929 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14930 # It is most probably a Windows format PATH printed by
14931 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14932 # path with ; separators, and with drive letters. We can handle the
14933 # drive letters (cygwin fileutils understands them), so leave them,
14934 # especially as we might pass files found there to a mingw objdump,
14935 # which wouldn't understand a cygwinified path. Ahh.
14936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14937 else
14938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14941 pw32*)
14942 # pw32 DLLs use 'pw' prefix rather than 'lib'
14943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945 esac
14949 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14951 esac
14952 dynamic_linker='Win32 ld.exe'
14953 # FIXME: first we should search . and the directory the executable is in
14954 shlibpath_var=PATH
14957 darwin* | rhapsody*)
14958 dynamic_linker="$host_os dyld"
14959 version_type=darwin
14960 need_lib_prefix=no
14961 need_version=no
14962 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14963 soname_spec='${libname}${release}${major}$shared_ext'
14964 shlibpath_overrides_runpath=yes
14965 shlibpath_var=DYLD_LIBRARY_PATH
14966 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14971 dgux*)
14972 version_type=linux
14973 need_lib_prefix=no
14974 need_version=no
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14977 shlibpath_var=LD_LIBRARY_PATH
14980 freebsd1*)
14981 dynamic_linker=no
14984 freebsd* | dragonfly*)
14985 # DragonFly does not have aout. When/if they implement a new
14986 # versioning mechanism, adjust this.
14987 if test -x /usr/bin/objformat; then
14988 objformat=`/usr/bin/objformat`
14989 else
14990 case $host_os in
14991 freebsd[123]*) objformat=aout ;;
14992 *) objformat=elf ;;
14993 esac
14995 version_type=freebsd-$objformat
14996 case $version_type in
14997 freebsd-elf*)
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14999 need_version=no
15000 need_lib_prefix=no
15002 freebsd-*)
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15004 need_version=yes
15006 esac
15007 shlibpath_var=LD_LIBRARY_PATH
15008 case $host_os in
15009 freebsd2*)
15010 shlibpath_overrides_runpath=yes
15012 freebsd3.[01]* | freebsdelf3.[01]*)
15013 shlibpath_overrides_runpath=yes
15014 hardcode_into_libs=yes
15016 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15017 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15018 shlibpath_overrides_runpath=no
15019 hardcode_into_libs=yes
15021 *) # from 4.6 on, and DragonFly
15022 shlibpath_overrides_runpath=yes
15023 hardcode_into_libs=yes
15025 esac
15028 gnu*)
15029 version_type=linux
15030 need_lib_prefix=no
15031 need_version=no
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 hardcode_into_libs=yes
15038 hpux9* | hpux10* | hpux11*)
15039 # Give a soname corresponding to the major version so that dld.sl refuses to
15040 # link against other versions.
15041 version_type=sunos
15042 need_lib_prefix=no
15043 need_version=no
15044 case $host_cpu in
15045 ia64*)
15046 shrext_cmds='.so'
15047 hardcode_into_libs=yes
15048 dynamic_linker="$host_os dld.so"
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 if test "X$HPUX_IA64_MODE" = X32; then
15054 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15055 else
15056 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15060 hppa*64*)
15061 shrext_cmds='.sl'
15062 hardcode_into_libs=yes
15063 dynamic_linker="$host_os dld.sl"
15064 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15072 shrext_cmds='.sl'
15073 dynamic_linker="$host_os dld.sl"
15074 shlibpath_var=SHLIB_PATH
15075 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15079 esac
15080 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15081 postinstall_cmds='chmod 555 $lib'
15084 interix[3-9]*)
15085 version_type=linux
15086 need_lib_prefix=no
15087 need_version=no
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=no
15093 hardcode_into_libs=yes
15096 irix5* | irix6* | nonstopux*)
15097 case $host_os in
15098 nonstopux*) version_type=nonstopux ;;
15100 if test "$lt_cv_prog_gnu_ld" = yes; then
15101 version_type=linux
15102 else
15103 version_type=irix
15104 fi ;;
15105 esac
15106 need_lib_prefix=no
15107 need_version=no
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15110 case $host_os in
15111 irix5* | nonstopux*)
15112 libsuff= shlibsuff=
15115 case $LD in # libtool.m4 will add one of these switches to LD
15116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15117 libsuff= shlibsuff= libmagic=32-bit;;
15118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15119 libsuff=32 shlibsuff=N32 libmagic=N32;;
15120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15122 *) libsuff= shlibsuff= libmagic=never-match;;
15123 esac
15125 esac
15126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15127 shlibpath_overrides_runpath=no
15128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15130 hardcode_into_libs=yes
15133 # No shared lib support for Linux oldld, aout, or coff.
15134 linux*oldld* | linux*aout* | linux*coff*)
15135 dynamic_linker=no
15138 # This must be Linux ELF.
15139 linux* | k*bsd*-gnu)
15140 version_type=linux
15141 need_lib_prefix=no
15142 need_version=no
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15146 shlibpath_var=LD_LIBRARY_PATH
15147 shlibpath_overrides_runpath=no
15148 # This implies no fast_install, which is unacceptable.
15149 # Some rework will be needed to allow for fast_install
15150 # before this can be enabled.
15151 hardcode_into_libs=yes
15153 # Append ld.so.conf contents to the search path
15154 if test -f /etc/ld.so.conf; then
15155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15159 # We used to test for /lib/ld.so.1 and disable shared libraries on
15160 # powerpc, because MkLinux only supported shared libraries with the
15161 # GNU dynamic linker. Since this was broken with cross compilers,
15162 # most powerpc-linux boxes support dynamic linking these days and
15163 # people can always --disable-shared, the test was removed, and we
15164 # assume the GNU/Linux dynamic linker is in use.
15165 dynamic_linker='GNU/Linux ld.so'
15168 netbsdelf*-gnu)
15169 version_type=linux
15170 need_lib_prefix=no
15171 need_version=no
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=no
15176 hardcode_into_libs=yes
15177 dynamic_linker='NetBSD ld.elf_so'
15180 netbsd*)
15181 version_type=sunos
15182 need_lib_prefix=no
15183 need_version=no
15184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15187 dynamic_linker='NetBSD (a.out) ld.so'
15188 else
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 dynamic_linker='NetBSD ld.elf_so'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 hardcode_into_libs=yes
15198 newsos6)
15199 version_type=linux
15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 shlibpath_overrides_runpath=yes
15205 nto-qnx*)
15206 version_type=linux
15207 need_lib_prefix=no
15208 need_version=no
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15215 openbsd*)
15216 version_type=sunos
15217 sys_lib_dlsearch_path_spec="/usr/lib"
15218 need_lib_prefix=no
15219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15220 case $host_os in
15221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15222 *) need_version=no ;;
15223 esac
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15228 case $host_os in
15229 openbsd2.[89] | openbsd2.[89].*)
15230 shlibpath_overrides_runpath=no
15233 shlibpath_overrides_runpath=yes
15235 esac
15236 else
15237 shlibpath_overrides_runpath=yes
15241 os2*)
15242 libname_spec='$name'
15243 shrext_cmds=".dll"
15244 need_lib_prefix=no
15245 library_names_spec='$libname${shared_ext} $libname.a'
15246 dynamic_linker='OS/2 ld.exe'
15247 shlibpath_var=LIBPATH
15250 osf3* | osf4* | osf5*)
15251 version_type=osf
15252 need_lib_prefix=no
15253 need_version=no
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15261 rdos*)
15262 dynamic_linker=no
15265 solaris*)
15266 version_type=linux
15267 need_lib_prefix=no
15268 need_version=no
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15274 # ldd complains unless libraries are executable
15275 postinstall_cmds='chmod +x $lib'
15278 sunos4*)
15279 version_type=sunos
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15282 shlibpath_var=LD_LIBRARY_PATH
15283 shlibpath_overrides_runpath=yes
15284 if test "$with_gnu_ld" = yes; then
15285 need_lib_prefix=no
15287 need_version=yes
15290 sysv4 | sysv4.3*)
15291 version_type=linux
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 case $host_vendor in
15296 sni)
15297 shlibpath_overrides_runpath=no
15298 need_lib_prefix=no
15299 export_dynamic_flag_spec='${wl}-Blargedynsym'
15300 runpath_var=LD_RUN_PATH
15302 siemens)
15303 need_lib_prefix=no
15305 motorola)
15306 need_lib_prefix=no
15307 need_version=no
15308 shlibpath_overrides_runpath=no
15309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15311 esac
15314 sysv4*MP*)
15315 if test -d /usr/nec ;then
15316 version_type=linux
15317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15318 soname_spec='$libname${shared_ext}.$major'
15319 shlibpath_var=LD_LIBRARY_PATH
15323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15324 version_type=freebsd-elf
15325 need_lib_prefix=no
15326 need_version=no
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15328 soname_spec='${libname}${release}${shared_ext}$major'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 hardcode_into_libs=yes
15331 if test "$with_gnu_ld" = yes; then
15332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15333 shlibpath_overrides_runpath=no
15334 else
15335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15336 shlibpath_overrides_runpath=yes
15337 case $host_os in
15338 sco3.2v5*)
15339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15341 esac
15343 sys_lib_dlsearch_path_spec='/usr/lib'
15346 uts4*)
15347 version_type=linux
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 shlibpath_var=LD_LIBRARY_PATH
15354 dynamic_linker=no
15356 esac
15357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15358 echo "${ECHO_T}$dynamic_linker" >&6; }
15359 test "$dynamic_linker" = no && can_build_shared=no
15361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15367 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15374 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15377 if test "$GCC" = yes; then
15378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15381 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15383 hardcode_action_CXX=
15384 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15385 test -n "$runpath_var_CXX" || \
15386 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15388 # We can hardcode non-existant directories.
15389 if test "$hardcode_direct_CXX" != no &&
15390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15391 # have to relink, otherwise we might link with an installed library
15392 # when we should be linking with a yet-to-be-installed one
15393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15394 test "$hardcode_minus_L_CXX" != no; then
15395 # Linking always hardcodes the temporary library directory.
15396 hardcode_action_CXX=relink
15397 else
15398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15399 hardcode_action_CXX=immediate
15401 else
15402 # We cannot hardcode anything, or else we can only hardcode existing
15403 # directories.
15404 hardcode_action_CXX=unsupported
15406 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15407 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15409 if test "$hardcode_action_CXX" = relink; then
15410 # Fast installation is not supported
15411 enable_fast_install=no
15412 elif test "$shlibpath_overrides_runpath" = yes ||
15413 test "$enable_shared" = no; then
15414 # Fast installation is not necessary
15415 enable_fast_install=needless
15419 # The else clause should only fire when bootstrapping the
15420 # libtool distribution, otherwise you forgot to ship ltmain.sh
15421 # with your package, and you will get complaints that there are
15422 # no rules to generate ltmain.sh.
15423 if test -f "$ltmain"; then
15424 # See if we are running on zsh, and set the options which allow our commands through
15425 # without removal of \ escapes.
15426 if test -n "${ZSH_VERSION+set}" ; then
15427 setopt NO_GLOB_SUBST
15429 # Now quote all the things that may contain metacharacters while being
15430 # careful not to overquote the AC_SUBSTed values. We take copies of the
15431 # variables and quote the copies for generation of the libtool script.
15432 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15433 SED SHELL STRIP \
15434 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15435 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15436 deplibs_check_method reload_flag reload_cmds need_locks \
15437 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15438 lt_cv_sys_global_symbol_to_c_name_address \
15439 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15440 old_postinstall_cmds old_postuninstall_cmds \
15441 compiler_CXX \
15442 CC_CXX \
15443 LD_CXX \
15444 lt_prog_compiler_wl_CXX \
15445 lt_prog_compiler_pic_CXX \
15446 lt_prog_compiler_static_CXX \
15447 lt_prog_compiler_no_builtin_flag_CXX \
15448 export_dynamic_flag_spec_CXX \
15449 thread_safe_flag_spec_CXX \
15450 whole_archive_flag_spec_CXX \
15451 enable_shared_with_static_runtimes_CXX \
15452 old_archive_cmds_CXX \
15453 old_archive_from_new_cmds_CXX \
15454 predep_objects_CXX \
15455 postdep_objects_CXX \
15456 predeps_CXX \
15457 postdeps_CXX \
15458 compiler_lib_search_path_CXX \
15459 compiler_lib_search_dirs_CXX \
15460 archive_cmds_CXX \
15461 archive_expsym_cmds_CXX \
15462 postinstall_cmds_CXX \
15463 postuninstall_cmds_CXX \
15464 old_archive_from_expsyms_cmds_CXX \
15465 allow_undefined_flag_CXX \
15466 no_undefined_flag_CXX \
15467 export_symbols_cmds_CXX \
15468 hardcode_libdir_flag_spec_CXX \
15469 hardcode_libdir_flag_spec_ld_CXX \
15470 hardcode_libdir_separator_CXX \
15471 hardcode_automatic_CXX \
15472 module_cmds_CXX \
15473 module_expsym_cmds_CXX \
15474 lt_cv_prog_compiler_c_o_CXX \
15475 fix_srcfile_path_CXX \
15476 exclude_expsyms_CXX \
15477 include_expsyms_CXX; do
15479 case $var in
15480 old_archive_cmds_CXX | \
15481 old_archive_from_new_cmds_CXX | \
15482 archive_cmds_CXX | \
15483 archive_expsym_cmds_CXX | \
15484 module_cmds_CXX | \
15485 module_expsym_cmds_CXX | \
15486 old_archive_from_expsyms_cmds_CXX | \
15487 export_symbols_cmds_CXX | \
15488 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15489 postinstall_cmds | postuninstall_cmds | \
15490 old_postinstall_cmds | old_postuninstall_cmds | \
15491 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15492 # Double-quote double-evaled strings.
15493 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15496 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15498 esac
15499 done
15501 case $lt_echo in
15502 *'\$0 --fallback-echo"')
15503 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15505 esac
15507 cfgfile="$ofile"
15509 cat <<__EOF__ >> "$cfgfile"
15510 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15514 # Shell to use when invoking shell scripts.
15515 SHELL=$lt_SHELL
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15523 # Whether or not to add -lc for building shared libraries.
15524 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15526 # Whether or not to disallow shared libs when runtime libs are static
15527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15529 # Whether or not to optimize for fast installation.
15530 fast_install=$enable_fast_install
15532 # The host system.
15533 host_alias=$host_alias
15534 host=$host
15535 host_os=$host_os
15537 # The build system.
15538 build_alias=$build_alias
15539 build=$build
15540 build_os=$build_os
15542 # An echo program that does not interpret backslashes.
15543 echo=$lt_echo
15545 # The archiver.
15546 AR=$lt_AR
15547 AR_FLAGS=$lt_AR_FLAGS
15549 # A C compiler.
15550 LTCC=$lt_LTCC
15552 # LTCC compiler flags.
15553 LTCFLAGS=$lt_LTCFLAGS
15555 # A language-specific compiler.
15556 CC=$lt_compiler_CXX
15558 # Is the compiler the GNU C compiler?
15559 with_gcc=$GCC_CXX
15561 # An ERE matcher.
15562 EGREP=$lt_EGREP
15564 # The linker used to build libraries.
15565 LD=$lt_LD_CXX
15567 # Whether we need hard or soft links.
15568 LN_S=$lt_LN_S
15570 # A BSD-compatible nm program.
15571 NM=$lt_NM
15573 # A symbol stripping program
15574 STRIP=$lt_STRIP
15576 # Used to examine libraries when file_magic_cmd begins "file"
15577 MAGIC_CMD=$MAGIC_CMD
15579 # Used on cygwin: DLL creation program.
15580 DLLTOOL="$DLLTOOL"
15582 # Used on cygwin: object dumper.
15583 OBJDUMP="$OBJDUMP"
15585 # Used on cygwin: assembler.
15586 AS="$AS"
15588 # The name of the directory that contains temporary libtool files.
15589 objdir=$objdir
15591 # How to create reloadable object files.
15592 reload_flag=$lt_reload_flag
15593 reload_cmds=$lt_reload_cmds
15595 # How to pass a linker flag through the compiler.
15596 wl=$lt_lt_prog_compiler_wl_CXX
15598 # Object file suffix (normally "o").
15599 objext="$ac_objext"
15601 # Old archive suffix (normally "a").
15602 libext="$libext"
15604 # Shared library suffix (normally ".so").
15605 shrext_cmds='$shrext_cmds'
15607 # Executable file suffix (normally "").
15608 exeext="$exeext"
15610 # Additional compiler flags for building library objects.
15611 pic_flag=$lt_lt_prog_compiler_pic_CXX
15612 pic_mode=$pic_mode
15614 # What is the maximum length of a command?
15615 max_cmd_len=$lt_cv_sys_max_cmd_len
15617 # Does compiler simultaneously support -c and -o options?
15618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15620 # Must we lock files when doing compilation?
15621 need_locks=$lt_need_locks
15623 # Do we need the lib prefix for modules?
15624 need_lib_prefix=$need_lib_prefix
15626 # Do we need a version for libraries?
15627 need_version=$need_version
15629 # Whether dlopen is supported.
15630 dlopen_support=$enable_dlopen
15632 # Whether dlopen of programs is supported.
15633 dlopen_self=$enable_dlopen_self
15635 # Whether dlopen of statically linked programs is supported.
15636 dlopen_self_static=$enable_dlopen_self_static
15638 # Compiler flag to prevent dynamic linking.
15639 link_static_flag=$lt_lt_prog_compiler_static_CXX
15641 # Compiler flag to turn off builtin functions.
15642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15644 # Compiler flag to allow reflexive dlopens.
15645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15647 # Compiler flag to generate shared objects directly from archives.
15648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15650 # Compiler flag to generate thread-safe objects.
15651 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15653 # Library versioning type.
15654 version_type=$version_type
15656 # Format of library name prefix.
15657 libname_spec=$lt_libname_spec
15659 # List of archive names. First name is the real one, the rest are links.
15660 # The last name is the one that the linker finds with -lNAME.
15661 library_names_spec=$lt_library_names_spec
15663 # The coded name of the library, if different from the real name.
15664 soname_spec=$lt_soname_spec
15666 # Commands used to build and install an old-style archive.
15667 RANLIB=$lt_RANLIB
15668 old_archive_cmds=$lt_old_archive_cmds_CXX
15669 old_postinstall_cmds=$lt_old_postinstall_cmds
15670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15672 # Create an old-style archive from a shared archive.
15673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15675 # Create a temporary old-style archive to link instead of a shared archive.
15676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15678 # Commands used to build and install a shared archive.
15679 archive_cmds=$lt_archive_cmds_CXX
15680 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15681 postinstall_cmds=$lt_postinstall_cmds
15682 postuninstall_cmds=$lt_postuninstall_cmds
15684 # Commands used to build a loadable module (assumed same as above if empty)
15685 module_cmds=$lt_module_cmds_CXX
15686 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15688 # Commands to strip libraries.
15689 old_striplib=$lt_old_striplib
15690 striplib=$lt_striplib
15692 # Dependencies to place before the objects being linked to create a
15693 # shared library.
15694 predep_objects=$lt_predep_objects_CXX
15696 # Dependencies to place after the objects being linked to create a
15697 # shared library.
15698 postdep_objects=$lt_postdep_objects_CXX
15700 # Dependencies to place before the objects being linked to create a
15701 # shared library.
15702 predeps=$lt_predeps_CXX
15704 # Dependencies to place after the objects being linked to create a
15705 # shared library.
15706 postdeps=$lt_postdeps_CXX
15708 # The directories searched by this compiler when creating a shared
15709 # library
15710 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15712 # The library search path used internally by the compiler when linking
15713 # a shared library.
15714 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15716 # Method to check whether dependent libraries are shared objects.
15717 deplibs_check_method=$lt_deplibs_check_method
15719 # Command to use when deplibs_check_method == file_magic.
15720 file_magic_cmd=$lt_file_magic_cmd
15722 # Flag that allows shared libraries with undefined symbols to be built.
15723 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15725 # Flag that forces no undefined symbols.
15726 no_undefined_flag=$lt_no_undefined_flag_CXX
15728 # Commands used to finish a libtool library installation in a directory.
15729 finish_cmds=$lt_finish_cmds
15731 # Same as above, but a single script fragment to be evaled but not shown.
15732 finish_eval=$lt_finish_eval
15734 # Take the output of nm and produce a listing of raw symbols and C names.
15735 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15737 # Transform the output of nm in a proper C declaration
15738 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15740 # Transform the output of nm in a C name address pair
15741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15743 # This is the shared library runtime path variable.
15744 runpath_var=$runpath_var
15746 # This is the shared library path variable.
15747 shlibpath_var=$shlibpath_var
15749 # Is shlibpath searched before the hard-coded library search path?
15750 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15752 # How to hardcode a shared library path into an executable.
15753 hardcode_action=$hardcode_action_CXX
15755 # Whether we should hardcode library paths into libraries.
15756 hardcode_into_libs=$hardcode_into_libs
15758 # Flag to hardcode \$libdir into a binary during linking.
15759 # This must work even if \$libdir does not exist.
15760 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15762 # If ld is used when linking, flag to hardcode \$libdir into
15763 # a binary during linking. This must work even if \$libdir does
15764 # not exist.
15765 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15767 # Whether we need a single -rpath flag with a separated argument.
15768 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15770 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15771 # resulting binary.
15772 hardcode_direct=$hardcode_direct_CXX
15774 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15775 # resulting binary.
15776 hardcode_minus_L=$hardcode_minus_L_CXX
15778 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15779 # the resulting binary.
15780 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15782 # Set to yes if building a shared library automatically hardcodes DIR into the library
15783 # and all subsequent libraries and executables linked against it.
15784 hardcode_automatic=$hardcode_automatic_CXX
15786 # Variables whose values should be saved in libtool wrapper scripts and
15787 # restored at relink time.
15788 variables_saved_for_relink="$variables_saved_for_relink"
15790 # Whether libtool must link a program against all its dependency libraries.
15791 link_all_deplibs=$link_all_deplibs_CXX
15793 # Compile-time system search path for libraries
15794 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15796 # Run-time system search path for libraries
15797 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15799 # Fix the shell variable \$srcfile for the compiler.
15800 fix_srcfile_path=$lt_fix_srcfile_path
15802 # Set to yes if exported symbols are required.
15803 always_export_symbols=$always_export_symbols_CXX
15805 # The commands to list exported symbols.
15806 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15808 # The commands to extract the exported symbol list from a shared archive.
15809 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15811 # Symbols that should not be listed in the preloaded symbols.
15812 exclude_expsyms=$lt_exclude_expsyms_CXX
15814 # Symbols that must always be exported.
15815 include_expsyms=$lt_include_expsyms_CXX
15817 # ### END LIBTOOL TAG CONFIG: $tagname
15819 __EOF__
15822 else
15823 # If there is no Makefile yet, we rely on a make rule to execute
15824 # `config.status --recheck' to rerun these tests and create the
15825 # libtool script then.
15826 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15827 if test -f "$ltmain_in"; then
15828 test -f Makefile && make "$ltmain"
15833 ac_ext=c
15834 ac_cpp='$CPP $CPPFLAGS'
15835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15839 CC=$lt_save_CC
15840 LDCXX=$LD
15841 LD=$lt_save_LD
15842 GCC=$lt_save_GCC
15843 with_gnu_ldcxx=$with_gnu_ld
15844 with_gnu_ld=$lt_save_with_gnu_ld
15845 lt_cv_path_LDCXX=$lt_cv_path_LD
15846 lt_cv_path_LD=$lt_save_path_LD
15847 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15848 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15850 else
15851 tagname=""
15855 F77)
15856 if test -n "$F77" && test "X$F77" != "Xno"; then
15858 ac_ext=f
15859 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15860 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15864 archive_cmds_need_lc_F77=no
15865 allow_undefined_flag_F77=
15866 always_export_symbols_F77=no
15867 archive_expsym_cmds_F77=
15868 export_dynamic_flag_spec_F77=
15869 hardcode_direct_F77=no
15870 hardcode_libdir_flag_spec_F77=
15871 hardcode_libdir_flag_spec_ld_F77=
15872 hardcode_libdir_separator_F77=
15873 hardcode_minus_L_F77=no
15874 hardcode_automatic_F77=no
15875 module_cmds_F77=
15876 module_expsym_cmds_F77=
15877 link_all_deplibs_F77=unknown
15878 old_archive_cmds_F77=$old_archive_cmds
15879 no_undefined_flag_F77=
15880 whole_archive_flag_spec_F77=
15881 enable_shared_with_static_runtimes_F77=no
15883 # Source file extension for f77 test sources.
15884 ac_ext=f
15886 # Object file extension for compiled f77 test sources.
15887 objext=o
15888 objext_F77=$objext
15890 # Code to be used in simple compile tests
15891 lt_simple_compile_test_code="\
15892 subroutine t
15893 return
15897 # Code to be used in simple link tests
15898 lt_simple_link_test_code="\
15899 program t
15903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15905 # If no C compiler was specified, use CC.
15906 LTCC=${LTCC-"$CC"}
15908 # If no C compiler flags were specified, use CFLAGS.
15909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15911 # Allow CC to be a program name with arguments.
15912 compiler=$CC
15915 # save warnings/boilerplate of simple test code
15916 ac_outfile=conftest.$ac_objext
15917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15919 _lt_compiler_boilerplate=`cat conftest.err`
15920 $rm conftest*
15922 ac_outfile=conftest.$ac_objext
15923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15925 _lt_linker_boilerplate=`cat conftest.err`
15926 $rm -r conftest*
15929 # Allow CC to be a program name with arguments.
15930 lt_save_CC="$CC"
15931 CC=${F77-"f77"}
15932 compiler=$CC
15933 compiler_F77=$CC
15934 for cc_temp in $compiler""; do
15935 case $cc_temp in
15936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15938 \-*) ;;
15939 *) break;;
15940 esac
15941 done
15942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15945 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15946 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15947 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15948 echo "${ECHO_T}$can_build_shared" >&6; }
15950 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15951 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15952 test "$can_build_shared" = "no" && enable_shared=no
15954 # On AIX, shared libraries and static libraries use the same namespace, and
15955 # are all built from PIC.
15956 case $host_os in
15957 aix3*)
15958 test "$enable_shared" = yes && enable_static=no
15959 if test -n "$RANLIB"; then
15960 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15961 postinstall_cmds='$RANLIB $lib'
15964 aix[4-9]*)
15965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15966 test "$enable_shared" = yes && enable_static=no
15969 esac
15970 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15971 echo "${ECHO_T}$enable_shared" >&6; }
15973 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15975 # Make sure either enable_shared or enable_static is yes.
15976 test "$enable_shared" = yes || enable_static=yes
15977 { echo "$as_me:$LINENO: result: $enable_static" >&5
15978 echo "${ECHO_T}$enable_static" >&6; }
15980 GCC_F77="$G77"
15981 LD_F77="$LD"
15983 lt_prog_compiler_wl_F77=
15984 lt_prog_compiler_pic_F77=
15985 lt_prog_compiler_static_F77=
15987 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15988 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15990 if test "$GCC" = yes; then
15991 lt_prog_compiler_wl_F77='-Wl,'
15992 lt_prog_compiler_static_F77='-static'
15994 case $host_os in
15995 aix*)
15996 # All AIX code is PIC.
15997 if test "$host_cpu" = ia64; then
15998 # AIX 5 now supports IA64 processor
15999 lt_prog_compiler_static_F77='-Bstatic'
16003 amigaos*)
16004 # FIXME: we need at least 68020 code to build shared libraries, but
16005 # adding the `-m68020' flag to GCC prevents building anything better,
16006 # like `-m68040'.
16007 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16011 # PIC is the default for these OSes.
16014 mingw* | cygwin* | pw32* | os2*)
16015 # This hack is so that the source file can tell whether it is being
16016 # built for inclusion in a dll (and should export symbols for example).
16017 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16018 # (--disable-auto-import) libraries
16019 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16022 darwin* | rhapsody*)
16023 # PIC is the default on this platform
16024 # Common symbols not allowed in MH_DYLIB files
16025 lt_prog_compiler_pic_F77='-fno-common'
16028 interix[3-9]*)
16029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16030 # Instead, we relocate shared libraries at runtime.
16033 msdosdjgpp*)
16034 # Just because we use GCC doesn't mean we suddenly get shared libraries
16035 # on systems that don't support them.
16036 lt_prog_compiler_can_build_shared_F77=no
16037 enable_shared=no
16040 sysv4*MP*)
16041 if test -d /usr/nec; then
16042 lt_prog_compiler_pic_F77=-Kconform_pic
16046 hpux*)
16047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16048 # not for PA HP-UX.
16049 case $host_cpu in
16050 hppa*64*|ia64*)
16051 # +Z the default
16054 lt_prog_compiler_pic_F77='-fPIC'
16056 esac
16060 lt_prog_compiler_pic_F77='-fPIC'
16062 esac
16063 else
16064 # PORTME Check for flag to pass linker flags through the system compiler.
16065 case $host_os in
16066 aix*)
16067 lt_prog_compiler_wl_F77='-Wl,'
16068 if test "$host_cpu" = ia64; then
16069 # AIX 5 now supports IA64 processor
16070 lt_prog_compiler_static_F77='-Bstatic'
16071 else
16072 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16075 darwin*)
16076 # PIC is the default on this platform
16077 # Common symbols not allowed in MH_DYLIB files
16078 case $cc_basename in
16079 xlc*)
16080 lt_prog_compiler_pic_F77='-qnocommon'
16081 lt_prog_compiler_wl_F77='-Wl,'
16083 esac
16086 mingw* | cygwin* | pw32* | os2*)
16087 # This hack is so that the source file can tell whether it is being
16088 # built for inclusion in a dll (and should export symbols for example).
16089 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16092 hpux9* | hpux10* | hpux11*)
16093 lt_prog_compiler_wl_F77='-Wl,'
16094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16095 # not for PA HP-UX.
16096 case $host_cpu in
16097 hppa*64*|ia64*)
16098 # +Z the default
16101 lt_prog_compiler_pic_F77='+Z'
16103 esac
16104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16105 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16108 irix5* | irix6* | nonstopux*)
16109 lt_prog_compiler_wl_F77='-Wl,'
16110 # PIC (with -KPIC) is the default.
16111 lt_prog_compiler_static_F77='-non_shared'
16114 newsos6)
16115 lt_prog_compiler_pic_F77='-KPIC'
16116 lt_prog_compiler_static_F77='-Bstatic'
16119 linux* | k*bsd*-gnu)
16120 case $cc_basename in
16121 icc* | ecc*)
16122 lt_prog_compiler_wl_F77='-Wl,'
16123 lt_prog_compiler_pic_F77='-KPIC'
16124 lt_prog_compiler_static_F77='-static'
16126 pgcc* | pgf77* | pgf90* | pgf95*)
16127 # Portland Group compilers (*not* the Pentium gcc compiler,
16128 # which looks to be a dead project)
16129 lt_prog_compiler_wl_F77='-Wl,'
16130 lt_prog_compiler_pic_F77='-fpic'
16131 lt_prog_compiler_static_F77='-Bstatic'
16133 ccc*)
16134 lt_prog_compiler_wl_F77='-Wl,'
16135 # All Alpha code is PIC.
16136 lt_prog_compiler_static_F77='-non_shared'
16139 case `$CC -V 2>&1 | sed 5q` in
16140 *Sun\ C*)
16141 # Sun C 5.9
16142 lt_prog_compiler_pic_F77='-KPIC'
16143 lt_prog_compiler_static_F77='-Bstatic'
16144 lt_prog_compiler_wl_F77='-Wl,'
16146 *Sun\ F*)
16147 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16148 lt_prog_compiler_pic_F77='-KPIC'
16149 lt_prog_compiler_static_F77='-Bstatic'
16150 lt_prog_compiler_wl_F77=''
16152 esac
16154 esac
16157 osf3* | osf4* | osf5*)
16158 lt_prog_compiler_wl_F77='-Wl,'
16159 # All OSF/1 code is PIC.
16160 lt_prog_compiler_static_F77='-non_shared'
16163 rdos*)
16164 lt_prog_compiler_static_F77='-non_shared'
16167 solaris*)
16168 lt_prog_compiler_pic_F77='-KPIC'
16169 lt_prog_compiler_static_F77='-Bstatic'
16170 case $cc_basename in
16171 f77* | f90* | f95*)
16172 lt_prog_compiler_wl_F77='-Qoption ld ';;
16174 lt_prog_compiler_wl_F77='-Wl,';;
16175 esac
16178 sunos4*)
16179 lt_prog_compiler_wl_F77='-Qoption ld '
16180 lt_prog_compiler_pic_F77='-PIC'
16181 lt_prog_compiler_static_F77='-Bstatic'
16184 sysv4 | sysv4.2uw2* | sysv4.3*)
16185 lt_prog_compiler_wl_F77='-Wl,'
16186 lt_prog_compiler_pic_F77='-KPIC'
16187 lt_prog_compiler_static_F77='-Bstatic'
16190 sysv4*MP*)
16191 if test -d /usr/nec ;then
16192 lt_prog_compiler_pic_F77='-Kconform_pic'
16193 lt_prog_compiler_static_F77='-Bstatic'
16197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16198 lt_prog_compiler_wl_F77='-Wl,'
16199 lt_prog_compiler_pic_F77='-KPIC'
16200 lt_prog_compiler_static_F77='-Bstatic'
16203 unicos*)
16204 lt_prog_compiler_wl_F77='-Wl,'
16205 lt_prog_compiler_can_build_shared_F77=no
16208 uts4*)
16209 lt_prog_compiler_pic_F77='-pic'
16210 lt_prog_compiler_static_F77='-Bstatic'
16214 lt_prog_compiler_can_build_shared_F77=no
16216 esac
16219 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16220 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16223 # Check to make sure the PIC flag actually works.
16225 if test -n "$lt_prog_compiler_pic_F77"; then
16227 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16228 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16229 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 lt_cv_prog_compiler_pic_works_F77=no
16233 ac_outfile=conftest.$ac_objext
16234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16235 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16236 # Insert the option either (1) after the last *FLAGS variable, or
16237 # (2) before a word containing "conftest.", or (3) at the end.
16238 # Note that $ac_compile itself does not contain backslashes and begins
16239 # with a dollar sign (not a hyphen), so the echo should work correctly.
16240 # The option is referenced via a variable to avoid confusing sed.
16241 lt_compile=`echo "$ac_compile" | $SED \
16242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16244 -e 's:$: $lt_compiler_flag:'`
16245 (eval echo "\"\$as_me:16245: $lt_compile\"" >&5)
16246 (eval "$lt_compile" 2>conftest.err)
16247 ac_status=$?
16248 cat conftest.err >&5
16249 echo "$as_me:16249: \$? = $ac_status" >&5
16250 if (exit $ac_status) && test -s "$ac_outfile"; then
16251 # The compiler can only warn and ignore the option if not recognized
16252 # So say no if there are warnings other than the usual output.
16253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16256 lt_cv_prog_compiler_pic_works_F77=yes
16259 $rm conftest*
16262 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16263 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16265 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16266 case $lt_prog_compiler_pic_F77 in
16267 "" | " "*) ;;
16268 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16269 esac
16270 else
16271 lt_prog_compiler_pic_F77=
16272 lt_prog_compiler_can_build_shared_F77=no
16276 case $host_os in
16277 # For platforms which do not support PIC, -DPIC is meaningless:
16278 *djgpp*)
16279 lt_prog_compiler_pic_F77=
16282 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16284 esac
16287 # Check to make sure the static flag actually works.
16289 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16290 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16291 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16292 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295 lt_cv_prog_compiler_static_works_F77=no
16296 save_LDFLAGS="$LDFLAGS"
16297 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16298 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16299 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16300 # The linker can only warn and ignore the option if not recognized
16301 # So say no if there are warnings
16302 if test -s conftest.err; then
16303 # Append any errors to the config.log.
16304 cat conftest.err 1>&5
16305 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16306 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16307 if diff conftest.exp conftest.er2 >/dev/null; then
16308 lt_cv_prog_compiler_static_works_F77=yes
16310 else
16311 lt_cv_prog_compiler_static_works_F77=yes
16314 $rm -r conftest*
16315 LDFLAGS="$save_LDFLAGS"
16318 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16319 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16321 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16323 else
16324 lt_prog_compiler_static_F77=
16328 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16329 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16330 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333 lt_cv_prog_compiler_c_o_F77=no
16334 $rm -r conftest 2>/dev/null
16335 mkdir conftest
16336 cd conftest
16337 mkdir out
16338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16340 lt_compiler_flag="-o out/conftest2.$ac_objext"
16341 # Insert the option either (1) after the last *FLAGS variable, or
16342 # (2) before a word containing "conftest.", or (3) at the end.
16343 # Note that $ac_compile itself does not contain backslashes and begins
16344 # with a dollar sign (not a hyphen), so the echo should work correctly.
16345 lt_compile=`echo "$ac_compile" | $SED \
16346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16348 -e 's:$: $lt_compiler_flag:'`
16349 (eval echo "\"\$as_me:16349: $lt_compile\"" >&5)
16350 (eval "$lt_compile" 2>out/conftest.err)
16351 ac_status=$?
16352 cat out/conftest.err >&5
16353 echo "$as_me:16353: \$? = $ac_status" >&5
16354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16355 then
16356 # The compiler can only warn and ignore the option if not recognized
16357 # So say no if there are warnings
16358 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16361 lt_cv_prog_compiler_c_o_F77=yes
16364 chmod u+w . 2>&5
16365 $rm conftest*
16366 # SGI C++ compiler will create directory out/ii_files/ for
16367 # template instantiation
16368 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16369 $rm out/* && rmdir out
16370 cd ..
16371 rmdir conftest
16372 $rm conftest*
16375 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16376 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16379 hard_links="nottested"
16380 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16381 # do not overwrite the value of need_locks provided by the user
16382 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16383 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16384 hard_links=yes
16385 $rm conftest*
16386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16387 touch conftest.a
16388 ln conftest.a conftest.b 2>&5 || hard_links=no
16389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16390 { echo "$as_me:$LINENO: result: $hard_links" >&5
16391 echo "${ECHO_T}$hard_links" >&6; }
16392 if test "$hard_links" = no; then
16393 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16394 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16395 need_locks=warn
16397 else
16398 need_locks=no
16401 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16402 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16404 runpath_var=
16405 allow_undefined_flag_F77=
16406 enable_shared_with_static_runtimes_F77=no
16407 archive_cmds_F77=
16408 archive_expsym_cmds_F77=
16409 old_archive_From_new_cmds_F77=
16410 old_archive_from_expsyms_cmds_F77=
16411 export_dynamic_flag_spec_F77=
16412 whole_archive_flag_spec_F77=
16413 thread_safe_flag_spec_F77=
16414 hardcode_libdir_flag_spec_F77=
16415 hardcode_libdir_flag_spec_ld_F77=
16416 hardcode_libdir_separator_F77=
16417 hardcode_direct_F77=no
16418 hardcode_minus_L_F77=no
16419 hardcode_shlibpath_var_F77=unsupported
16420 link_all_deplibs_F77=unknown
16421 hardcode_automatic_F77=no
16422 module_cmds_F77=
16423 module_expsym_cmds_F77=
16424 always_export_symbols_F77=no
16425 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16426 # include_expsyms should be a list of space-separated symbols to be *always*
16427 # included in the symbol list
16428 include_expsyms_F77=
16429 # exclude_expsyms can be an extended regexp of symbols to exclude
16430 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16431 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16432 # as well as any symbol that contains `d'.
16433 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16434 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16435 # platforms (ab)use it in PIC code, but their linkers get confused if
16436 # the symbol is explicitly referenced. Since portable code cannot
16437 # rely on this symbol name, it's probably fine to never include it in
16438 # preloaded symbol tables.
16439 # Exclude shared library initialization/finalization symbols.
16440 extract_expsyms_cmds=
16441 # Just being paranoid about ensuring that cc_basename is set.
16442 for cc_temp in $compiler""; do
16443 case $cc_temp in
16444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16446 \-*) ;;
16447 *) break;;
16448 esac
16449 done
16450 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16452 case $host_os in
16453 cygwin* | mingw* | pw32*)
16454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16455 # When not using gcc, we currently assume that we are using
16456 # Microsoft Visual C++.
16457 if test "$GCC" != yes; then
16458 with_gnu_ld=no
16461 interix*)
16462 # we just hope/assume this is gcc and not c89 (= MSVC++)
16463 with_gnu_ld=yes
16465 openbsd*)
16466 with_gnu_ld=no
16468 esac
16470 ld_shlibs_F77=yes
16471 if test "$with_gnu_ld" = yes; then
16472 # If archive_cmds runs LD, not CC, wlarc should be empty
16473 wlarc='${wl}'
16475 # Set some defaults for GNU ld with shared library support. These
16476 # are reset later if shared libraries are not supported. Putting them
16477 # here allows them to be overridden if necessary.
16478 runpath_var=LD_RUN_PATH
16479 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16480 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16481 # ancient GNU ld didn't support --whole-archive et. al.
16482 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16483 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16484 else
16485 whole_archive_flag_spec_F77=
16487 supports_anon_versioning=no
16488 case `$LD -v 2>/dev/null` in
16489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16492 *\ 2.11.*) ;; # other 2.11 versions
16493 *) supports_anon_versioning=yes ;;
16494 esac
16496 # See if GNU ld supports shared libraries.
16497 case $host_os in
16498 aix[3-9]*)
16499 # On AIX/PPC, the GNU linker is very broken
16500 if test "$host_cpu" != ia64; then
16501 ld_shlibs_F77=no
16502 cat <<EOF 1>&2
16504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16505 *** to be unable to reliably create shared libraries on AIX.
16506 *** Therefore, libtool is disabling shared libraries support. If you
16507 *** really care for shared libraries, you may want to modify your PATH
16508 *** so that a non-GNU linker is found, and then restart.
16514 amigaos*)
16515 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)'
16516 hardcode_libdir_flag_spec_F77='-L$libdir'
16517 hardcode_minus_L_F77=yes
16519 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16520 # that the semantics of dynamic libraries on AmigaOS, at least up
16521 # to version 4, is to share data among multiple programs linked
16522 # with the same dynamic library. Since this doesn't match the
16523 # behavior of shared libraries on other platforms, we can't use
16524 # them.
16525 ld_shlibs_F77=no
16528 beos*)
16529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16530 allow_undefined_flag_F77=unsupported
16531 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16532 # support --undefined. This deserves some investigation. FIXME
16533 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16534 else
16535 ld_shlibs_F77=no
16539 cygwin* | mingw* | pw32*)
16540 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16541 # as there is no search path for DLLs.
16542 hardcode_libdir_flag_spec_F77='-L$libdir'
16543 allow_undefined_flag_F77=unsupported
16544 always_export_symbols_F77=no
16545 enable_shared_with_static_runtimes_F77=yes
16546 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16550 # If the export-symbols file already is a .def file (1st line
16551 # is EXPORTS), use it as is; otherwise, prepend...
16552 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16553 cp $export_symbols $output_objdir/$soname.def;
16554 else
16555 echo EXPORTS > $output_objdir/$soname.def;
16556 cat $export_symbols >> $output_objdir/$soname.def;
16558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16559 else
16560 ld_shlibs_F77=no
16564 interix[3-9]*)
16565 hardcode_direct_F77=no
16566 hardcode_shlibpath_var_F77=no
16567 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16568 export_dynamic_flag_spec_F77='${wl}-E'
16569 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16570 # Instead, shared libraries are loaded at an image base (0x10000000 by
16571 # default) and relocated if they conflict, which is a slow very memory
16572 # consuming and fragmenting process. To avoid this, we pick a random,
16573 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16574 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16575 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'
16576 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'
16579 gnu* | linux* | k*bsd*-gnu)
16580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16581 tmp_addflag=
16582 case $cc_basename,$host_cpu in
16583 pgcc*) # Portland Group C compiler
16584 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'
16585 tmp_addflag=' $pic_flag'
16587 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16588 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'
16589 tmp_addflag=' $pic_flag -Mnomain' ;;
16590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16591 tmp_addflag=' -i_dynamic' ;;
16592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16593 tmp_addflag=' -i_dynamic -nofor_main' ;;
16594 ifc* | ifort*) # Intel Fortran compiler
16595 tmp_addflag=' -nofor_main' ;;
16596 esac
16597 case `$CC -V 2>&1 | sed 5q` in
16598 *Sun\ C*) # Sun C 5.9
16599 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16600 tmp_sharedflag='-G' ;;
16601 *Sun\ F*) # Sun Fortran 8.3
16602 tmp_sharedflag='-G' ;;
16604 tmp_sharedflag='-shared' ;;
16605 esac
16606 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16608 if test $supports_anon_versioning = yes; then
16609 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16611 $echo "local: *; };" >> $output_objdir/$libname.ver~
16612 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16614 link_all_deplibs_F77=no
16615 else
16616 ld_shlibs_F77=no
16620 netbsd* | netbsdelf*-gnu)
16621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16622 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16623 wlarc=
16624 else
16625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16630 solaris*)
16631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16632 ld_shlibs_F77=no
16633 cat <<EOF 1>&2
16635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16636 *** create shared libraries on Solaris systems. Therefore, libtool
16637 *** is disabling shared libraries support. We urge you to upgrade GNU
16638 *** binutils to release 2.9.1 or newer. Another option is to modify
16639 *** your PATH or compiler configuration so that the native linker is
16640 *** used, and then restart.
16643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16646 else
16647 ld_shlibs_F77=no
16651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16652 case `$LD -v 2>&1` in
16653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16654 ld_shlibs_F77=no
16655 cat <<_LT_EOF 1>&2
16657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16658 *** reliably create shared libraries on SCO systems. Therefore, libtool
16659 *** is disabling shared libraries support. We urge you to upgrade GNU
16660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16661 *** your PATH or compiler configuration so that the native linker is
16662 *** used, and then restart.
16664 _LT_EOF
16667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16668 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16671 else
16672 ld_shlibs_F77=no
16675 esac
16678 sunos4*)
16679 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680 wlarc=
16681 hardcode_direct_F77=yes
16682 hardcode_shlibpath_var_F77=no
16686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16689 else
16690 ld_shlibs_F77=no
16693 esac
16695 if test "$ld_shlibs_F77" = no; then
16696 runpath_var=
16697 hardcode_libdir_flag_spec_F77=
16698 export_dynamic_flag_spec_F77=
16699 whole_archive_flag_spec_F77=
16701 else
16702 # PORTME fill in a description of your system's linker (not GNU ld)
16703 case $host_os in
16704 aix3*)
16705 allow_undefined_flag_F77=unsupported
16706 always_export_symbols_F77=yes
16707 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'
16708 # Note: this linker hardcodes the directories in LIBPATH if there
16709 # are no directories specified by -L.
16710 hardcode_minus_L_F77=yes
16711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16712 # Neither direct hardcoding nor static linking is supported with a
16713 # broken collect2.
16714 hardcode_direct_F77=unsupported
16718 aix[4-9]*)
16719 if test "$host_cpu" = ia64; then
16720 # On IA64, the linker does run time linking by default, so we don't
16721 # have to do anything special.
16722 aix_use_runtimelinking=no
16723 exp_sym_flag='-Bexport'
16724 no_entry_flag=""
16725 else
16726 # If we're using GNU nm, then we don't want the "-C" option.
16727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16729 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'
16730 else
16731 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'
16733 aix_use_runtimelinking=no
16735 # Test if we are trying to use run time linking or normal
16736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16737 # need to do runtime linking.
16738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16739 for ld_flag in $LDFLAGS; do
16740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16741 aix_use_runtimelinking=yes
16742 break
16744 done
16746 esac
16748 exp_sym_flag='-bexport'
16749 no_entry_flag='-bnoentry'
16752 # When large executables or shared objects are built, AIX ld can
16753 # have problems creating the table of contents. If linking a library
16754 # or program results in "error TOC overflow" add -mminimal-toc to
16755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16758 archive_cmds_F77=''
16759 hardcode_direct_F77=yes
16760 hardcode_libdir_separator_F77=':'
16761 link_all_deplibs_F77=yes
16763 if test "$GCC" = yes; then
16764 case $host_os in aix4.[012]|aix4.[012].*)
16765 # We only want to do this on AIX 4.2 and lower, the check
16766 # below for broken collect2 doesn't work under 4.3+
16767 collect2name=`${CC} -print-prog-name=collect2`
16768 if test -f "$collect2name" && \
16769 strings "$collect2name" | grep resolve_lib_name >/dev/null
16770 then
16771 # We have reworked collect2
16773 else
16774 # We have old collect2
16775 hardcode_direct_F77=unsupported
16776 # It fails to find uninstalled libraries when the uninstalled
16777 # path is not listed in the libpath. Setting hardcode_minus_L
16778 # to unsupported forces relinking
16779 hardcode_minus_L_F77=yes
16780 hardcode_libdir_flag_spec_F77='-L$libdir'
16781 hardcode_libdir_separator_F77=
16784 esac
16785 shared_flag='-shared'
16786 if test "$aix_use_runtimelinking" = yes; then
16787 shared_flag="$shared_flag "'${wl}-G'
16789 else
16790 # not using gcc
16791 if test "$host_cpu" = ia64; then
16792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16793 # chokes on -Wl,-G. The following line is correct:
16794 shared_flag='-G'
16795 else
16796 if test "$aix_use_runtimelinking" = yes; then
16797 shared_flag='${wl}-G'
16798 else
16799 shared_flag='${wl}-bM:SRE'
16804 # It seems that -bexpall does not export symbols beginning with
16805 # underscore (_), so it is better to generate a list of symbols to export.
16806 always_export_symbols_F77=yes
16807 if test "$aix_use_runtimelinking" = yes; then
16808 # Warning - without using the other runtime loading flags (-brtl),
16809 # -berok will link without error, but may produce a broken library.
16810 allow_undefined_flag_F77='-berok'
16811 # Determine the default libpath from the value encoded in an empty executable.
16812 cat >conftest.$ac_ext <<_ACEOF
16813 program main
16816 _ACEOF
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818 if { (ac_try="$ac_link"
16819 case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822 esac
16823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_link") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_f77_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest$ac_exeext &&
16834 $as_test_x conftest$ac_exeext; then
16836 lt_aix_libpath_sed='
16837 /Import File Strings/,/^$/ {
16838 /^0/ {
16839 s/^0 *\(.*\)$/\1/
16843 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16844 # Check for a 64-bit object if we didn't find anything.
16845 if test -z "$aix_libpath"; then
16846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16856 conftest$ac_exeext conftest.$ac_ext
16857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16859 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16860 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"
16861 else
16862 if test "$host_cpu" = ia64; then
16863 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16864 allow_undefined_flag_F77="-z nodefs"
16865 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"
16866 else
16867 # Determine the default libpath from the value encoded in an empty executable.
16868 cat >conftest.$ac_ext <<_ACEOF
16869 program main
16872 _ACEOF
16873 rm -f conftest.$ac_objext conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16881 ac_status=$?
16882 grep -v '^ *+' conftest.er1 >conftest.err
16883 rm -f conftest.er1
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } && {
16887 test -z "$ac_f77_werror_flag" ||
16888 test ! -s conftest.err
16889 } && test -s conftest$ac_exeext &&
16890 $as_test_x conftest$ac_exeext; then
16892 lt_aix_libpath_sed='
16893 /Import File Strings/,/^$/ {
16894 /^0/ {
16895 s/^0 *\(.*\)$/\1/
16899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16900 # Check for a 64-bit object if we didn't find anything.
16901 if test -z "$aix_libpath"; then
16902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16912 conftest$ac_exeext conftest.$ac_ext
16913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16915 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16916 # Warning - without using the other run time loading flags,
16917 # -berok will link without error, but may produce a broken library.
16918 no_undefined_flag_F77=' ${wl}-bernotok'
16919 allow_undefined_flag_F77=' ${wl}-berok'
16920 # Exported symbols can be pulled into shared objects from archives
16921 whole_archive_flag_spec_F77='$convenience'
16922 archive_cmds_need_lc_F77=yes
16923 # This is similar to how AIX traditionally builds its shared libraries.
16924 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'
16929 amigaos*)
16930 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)'
16931 hardcode_libdir_flag_spec_F77='-L$libdir'
16932 hardcode_minus_L_F77=yes
16933 # see comment about different semantics on the GNU ld section
16934 ld_shlibs_F77=no
16937 bsdi[45]*)
16938 export_dynamic_flag_spec_F77=-rdynamic
16941 cygwin* | mingw* | pw32*)
16942 # When not using gcc, we currently assume that we are using
16943 # Microsoft Visual C++.
16944 # hardcode_libdir_flag_spec is actually meaningless, as there is
16945 # no search path for DLLs.
16946 hardcode_libdir_flag_spec_F77=' '
16947 allow_undefined_flag_F77=unsupported
16948 # Tell ltmain to make .lib files, not .a files.
16949 libext=lib
16950 # Tell ltmain to make .dll files, not .so files.
16951 shrext_cmds=".dll"
16952 # FIXME: Setting linknames here is a bad hack.
16953 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16954 # The linker will automatically build a .lib file if we build a DLL.
16955 old_archive_From_new_cmds_F77='true'
16956 # FIXME: Should let the user specify the lib program.
16957 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16958 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16959 enable_shared_with_static_runtimes_F77=yes
16962 darwin* | rhapsody*)
16963 case $host_os in
16964 rhapsody* | darwin1.[012])
16965 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16967 *) # Darwin 1.3 on
16968 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16969 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16970 else
16971 case ${MACOSX_DEPLOYMENT_TARGET} in
16972 10.[012])
16973 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16975 10.*)
16976 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16978 esac
16981 esac
16982 archive_cmds_need_lc_F77=no
16983 hardcode_direct_F77=no
16984 hardcode_automatic_F77=yes
16985 hardcode_shlibpath_var_F77=unsupported
16986 whole_archive_flag_spec_F77=''
16987 link_all_deplibs_F77=yes
16988 if test "$GCC" = yes ; then
16989 output_verbose_link_cmd='echo'
16990 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16991 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16992 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16993 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16994 else
16995 case $cc_basename in
16996 xlc*)
16997 output_verbose_link_cmd='echo'
16998 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16999 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17001 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17002 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}'
17005 ld_shlibs_F77=no
17007 esac
17011 dgux*)
17012 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_libdir_flag_spec_F77='-L$libdir'
17014 hardcode_shlibpath_var_F77=no
17017 freebsd1*)
17018 ld_shlibs_F77=no
17021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17022 # support. Future versions do this automatically, but an explicit c++rt0.o
17023 # does not break anything, and helps significantly (at the cost of a little
17024 # extra space).
17025 freebsd2.2*)
17026 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17027 hardcode_libdir_flag_spec_F77='-R$libdir'
17028 hardcode_direct_F77=yes
17029 hardcode_shlibpath_var_F77=no
17032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17033 freebsd2*)
17034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17035 hardcode_direct_F77=yes
17036 hardcode_minus_L_F77=yes
17037 hardcode_shlibpath_var_F77=no
17040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17041 freebsd* | dragonfly*)
17042 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17043 hardcode_libdir_flag_spec_F77='-R$libdir'
17044 hardcode_direct_F77=yes
17045 hardcode_shlibpath_var_F77=no
17048 hpux9*)
17049 if test "$GCC" = yes; then
17050 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'
17051 else
17052 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'
17054 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17055 hardcode_libdir_separator_F77=:
17056 hardcode_direct_F77=yes
17058 # hardcode_minus_L: Not really in the search PATH,
17059 # but as the default location of the library.
17060 hardcode_minus_L_F77=yes
17061 export_dynamic_flag_spec_F77='${wl}-E'
17064 hpux10*)
17065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17066 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17067 else
17068 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17070 if test "$with_gnu_ld" = no; then
17071 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17072 hardcode_libdir_separator_F77=:
17074 hardcode_direct_F77=yes
17075 export_dynamic_flag_spec_F77='${wl}-E'
17077 # hardcode_minus_L: Not really in the search PATH,
17078 # but as the default location of the library.
17079 hardcode_minus_L_F77=yes
17083 hpux11*)
17084 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17085 case $host_cpu in
17086 hppa*64*)
17087 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 ia64*)
17090 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17093 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17095 esac
17096 else
17097 case $host_cpu in
17098 hppa*64*)
17099 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17101 ia64*)
17102 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17107 esac
17109 if test "$with_gnu_ld" = no; then
17110 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17111 hardcode_libdir_separator_F77=:
17113 case $host_cpu in
17114 hppa*64*|ia64*)
17115 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17116 hardcode_direct_F77=no
17117 hardcode_shlibpath_var_F77=no
17120 hardcode_direct_F77=yes
17121 export_dynamic_flag_spec_F77='${wl}-E'
17123 # hardcode_minus_L: Not really in the search PATH,
17124 # but as the default location of the library.
17125 hardcode_minus_L_F77=yes
17127 esac
17131 irix5* | irix6* | nonstopux*)
17132 if test "$GCC" = yes; then
17133 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'
17134 else
17135 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'
17136 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17139 hardcode_libdir_separator_F77=:
17140 link_all_deplibs_F77=yes
17143 netbsd* | netbsdelf*-gnu)
17144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17145 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17146 else
17147 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17149 hardcode_libdir_flag_spec_F77='-R$libdir'
17150 hardcode_direct_F77=yes
17151 hardcode_shlibpath_var_F77=no
17154 newsos6)
17155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156 hardcode_direct_F77=yes
17157 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17158 hardcode_libdir_separator_F77=:
17159 hardcode_shlibpath_var_F77=no
17162 openbsd*)
17163 if test -f /usr/libexec/ld.so; then
17164 hardcode_direct_F77=yes
17165 hardcode_shlibpath_var_F77=no
17166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17167 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17168 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17169 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17170 export_dynamic_flag_spec_F77='${wl}-E'
17171 else
17172 case $host_os in
17173 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17174 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17175 hardcode_libdir_flag_spec_F77='-R$libdir'
17178 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17179 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17181 esac
17183 else
17184 ld_shlibs_F77=no
17188 os2*)
17189 hardcode_libdir_flag_spec_F77='-L$libdir'
17190 hardcode_minus_L_F77=yes
17191 allow_undefined_flag_F77=unsupported
17192 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'
17193 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17196 osf3*)
17197 if test "$GCC" = yes; then
17198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17199 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'
17200 else
17201 allow_undefined_flag_F77=' -expect_unresolved \*'
17202 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'
17204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17205 hardcode_libdir_separator_F77=:
17208 osf4* | osf5*) # as osf3* with the addition of -msym flag
17209 if test "$GCC" = yes; then
17210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17211 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'
17212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17213 else
17214 allow_undefined_flag_F77=' -expect_unresolved \*'
17215 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'
17216 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~
17217 $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'
17219 # Both c and cxx compiler support -rpath directly
17220 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17222 hardcode_libdir_separator_F77=:
17225 solaris*)
17226 no_undefined_flag_F77=' -z text'
17227 if test "$GCC" = yes; then
17228 wlarc='${wl}'
17229 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17232 else
17233 wlarc=''
17234 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17238 hardcode_libdir_flag_spec_F77='-R$libdir'
17239 hardcode_shlibpath_var_F77=no
17240 case $host_os in
17241 solaris2.[0-5] | solaris2.[0-5].*) ;;
17243 # The compiler driver will combine and reorder linker options,
17244 # but understands `-z linker_flag'. GCC discards it without `$wl',
17245 # but is careful enough not to reorder.
17246 # Supported since Solaris 2.6 (maybe 2.5.1?)
17247 if test "$GCC" = yes; then
17248 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17249 else
17250 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17253 esac
17254 link_all_deplibs_F77=yes
17257 sunos4*)
17258 if test "x$host_vendor" = xsequent; then
17259 # Use $CC to link under sequent, because it throws in some extra .o
17260 # files that make .init and .fini sections work.
17261 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17262 else
17263 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17265 hardcode_libdir_flag_spec_F77='-L$libdir'
17266 hardcode_direct_F77=yes
17267 hardcode_minus_L_F77=yes
17268 hardcode_shlibpath_var_F77=no
17271 sysv4)
17272 case $host_vendor in
17273 sni)
17274 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17275 hardcode_direct_F77=yes # is this really true???
17277 siemens)
17278 ## LD is ld it makes a PLAMLIB
17279 ## CC just makes a GrossModule.
17280 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17281 reload_cmds_F77='$CC -r -o $output$reload_objs'
17282 hardcode_direct_F77=no
17284 motorola)
17285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17286 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17288 esac
17289 runpath_var='LD_RUN_PATH'
17290 hardcode_shlibpath_var_F77=no
17293 sysv4.3*)
17294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17295 hardcode_shlibpath_var_F77=no
17296 export_dynamic_flag_spec_F77='-Bexport'
17299 sysv4*MP*)
17300 if test -d /usr/nec; then
17301 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17302 hardcode_shlibpath_var_F77=no
17303 runpath_var=LD_RUN_PATH
17304 hardcode_runpath_var=yes
17305 ld_shlibs_F77=yes
17309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17310 no_undefined_flag_F77='${wl}-z,text'
17311 archive_cmds_need_lc_F77=no
17312 hardcode_shlibpath_var_F77=no
17313 runpath_var='LD_RUN_PATH'
17315 if test "$GCC" = yes; then
17316 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17317 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 else
17319 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17324 sysv5* | sco3.2v5* | sco5v6*)
17325 # Note: We can NOT use -z defs as we might desire, because we do not
17326 # link with -lc, and that would cause any symbols used from libc to
17327 # always be unresolved, which means just about no library would
17328 # ever link correctly. If we're not using GNU ld we use -z text
17329 # though, which does catch some bad symbols but isn't as heavy-handed
17330 # as -z defs.
17331 no_undefined_flag_F77='${wl}-z,text'
17332 allow_undefined_flag_F77='${wl}-z,nodefs'
17333 archive_cmds_need_lc_F77=no
17334 hardcode_shlibpath_var_F77=no
17335 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17336 hardcode_libdir_separator_F77=':'
17337 link_all_deplibs_F77=yes
17338 export_dynamic_flag_spec_F77='${wl}-Bexport'
17339 runpath_var='LD_RUN_PATH'
17341 if test "$GCC" = yes; then
17342 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17344 else
17345 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17350 uts4*)
17351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352 hardcode_libdir_flag_spec_F77='-L$libdir'
17353 hardcode_shlibpath_var_F77=no
17357 ld_shlibs_F77=no
17359 esac
17362 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17363 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17364 test "$ld_shlibs_F77" = no && can_build_shared=no
17367 # Do we need to explicitly link libc?
17369 case "x$archive_cmds_need_lc_F77" in
17370 x|xyes)
17371 # Assume -lc should be added
17372 archive_cmds_need_lc_F77=yes
17374 if test "$enable_shared" = yes && test "$GCC" = yes; then
17375 case $archive_cmds_F77 in
17376 *'~'*)
17377 # FIXME: we may have to deal with multi-command sequences.
17379 '$CC '*)
17380 # Test whether the compiler implicitly links with -lc since on some
17381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17382 # to ld, don't add -lc before -lgcc.
17383 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17385 $rm conftest*
17386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } 2>conftest.err; then
17393 soname=conftest
17394 lib=conftest
17395 libobjs=conftest.$ac_objext
17396 deplibs=
17397 wl=$lt_prog_compiler_wl_F77
17398 pic_flag=$lt_prog_compiler_pic_F77
17399 compiler_flags=-v
17400 linker_flags=-v
17401 verstring=
17402 output_objdir=.
17403 libname=conftest
17404 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17405 allow_undefined_flag_F77=
17406 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17407 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }
17411 then
17412 archive_cmds_need_lc_F77=no
17413 else
17414 archive_cmds_need_lc_F77=yes
17416 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17417 else
17418 cat conftest.err 1>&5
17420 $rm conftest*
17421 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17422 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17424 esac
17427 esac
17429 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17430 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17431 library_names_spec=
17432 libname_spec='lib$name'
17433 soname_spec=
17434 shrext_cmds=".so"
17435 postinstall_cmds=
17436 postuninstall_cmds=
17437 finish_cmds=
17438 finish_eval=
17439 shlibpath_var=
17440 shlibpath_overrides_runpath=unknown
17441 version_type=none
17442 dynamic_linker="$host_os ld.so"
17443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17445 need_lib_prefix=unknown
17446 hardcode_into_libs=no
17448 # when you set need_version to no, make sure it does not cause -set_version
17449 # flags to be left without arguments
17450 need_version=unknown
17452 case $host_os in
17453 aix3*)
17454 version_type=linux
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17456 shlibpath_var=LIBPATH
17458 # AIX 3 has no versioning support, so we append a major version to the name.
17459 soname_spec='${libname}${release}${shared_ext}$major'
17462 aix[4-9]*)
17463 version_type=linux
17464 need_lib_prefix=no
17465 need_version=no
17466 hardcode_into_libs=yes
17467 if test "$host_cpu" = ia64; then
17468 # AIX 5 supports IA64
17469 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 else
17472 # With GCC up to 2.95.x, collect2 would create an import file
17473 # for dependence libraries. The import file would start with
17474 # the line `#! .'. This would cause the generated library to
17475 # depend on `.', always an invalid library. This was fixed in
17476 # development snapshots of GCC prior to 3.0.
17477 case $host_os in
17478 aix4 | aix4.[01] | aix4.[01].*)
17479 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17480 echo ' yes '
17481 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17483 else
17484 can_build_shared=no
17487 esac
17488 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17489 # soname into executable. Probably we can add versioning support to
17490 # collect2, so additional links can be useful in future.
17491 if test "$aix_use_runtimelinking" = yes; then
17492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17493 # instead of lib<name>.a to let people know that these are not
17494 # typical AIX shared libraries.
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 else
17497 # We preserve .a as extension for shared libraries through AIX4.2
17498 # and later when we are not doing run time linking.
17499 library_names_spec='${libname}${release}.a $libname.a'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LIBPATH
17506 amigaos*)
17507 library_names_spec='$libname.ixlibrary $libname.a'
17508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17509 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'
17512 beos*)
17513 library_names_spec='${libname}${shared_ext}'
17514 dynamic_linker="$host_os ld.so"
17515 shlibpath_var=LIBRARY_PATH
17518 bsdi[45]*)
17519 version_type=linux
17520 need_version=no
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17527 # the default ld.so.conf also contains /usr/contrib/lib and
17528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17529 # libtool to hard-code these into programs
17532 cygwin* | mingw* | pw32*)
17533 version_type=windows
17534 shrext_cmds=".dll"
17535 need_version=no
17536 need_lib_prefix=no
17538 case $GCC,$host_os in
17539 yes,cygwin* | yes,mingw* | yes,pw32*)
17540 library_names_spec='$libname.dll.a'
17541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17542 postinstall_cmds='base_file=`basename \${file}`~
17543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17544 dldir=$destdir/`dirname \$dlpath`~
17545 test -d \$dldir || mkdir -p \$dldir~
17546 $install_prog $dir/$dlname \$dldir/$dlname~
17547 chmod a+x \$dldir/$dlname'
17548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17549 dlpath=$dir/\$dldll~
17550 $rm \$dlpath'
17551 shlibpath_overrides_runpath=yes
17553 case $host_os in
17554 cygwin*)
17555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17557 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17559 mingw*)
17560 # MinGW DLLs use traditional 'lib' prefix
17561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17563 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17564 # It is most probably a Windows format PATH printed by
17565 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17566 # path with ; separators, and with drive letters. We can handle the
17567 # drive letters (cygwin fileutils understands them), so leave them,
17568 # especially as we might pass files found there to a mingw objdump,
17569 # which wouldn't understand a cygwinified path. Ahh.
17570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17571 else
17572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17575 pw32*)
17576 # pw32 DLLs use 'pw' prefix rather than 'lib'
17577 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17579 esac
17583 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17585 esac
17586 dynamic_linker='Win32 ld.exe'
17587 # FIXME: first we should search . and the directory the executable is in
17588 shlibpath_var=PATH
17591 darwin* | rhapsody*)
17592 dynamic_linker="$host_os dyld"
17593 version_type=darwin
17594 need_lib_prefix=no
17595 need_version=no
17596 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17597 soname_spec='${libname}${release}${major}$shared_ext'
17598 shlibpath_overrides_runpath=yes
17599 shlibpath_var=DYLD_LIBRARY_PATH
17600 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17602 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17605 dgux*)
17606 version_type=linux
17607 need_lib_prefix=no
17608 need_version=no
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 shlibpath_var=LD_LIBRARY_PATH
17614 freebsd1*)
17615 dynamic_linker=no
17618 freebsd* | dragonfly*)
17619 # DragonFly does not have aout. When/if they implement a new
17620 # versioning mechanism, adjust this.
17621 if test -x /usr/bin/objformat; then
17622 objformat=`/usr/bin/objformat`
17623 else
17624 case $host_os in
17625 freebsd[123]*) objformat=aout ;;
17626 *) objformat=elf ;;
17627 esac
17629 version_type=freebsd-$objformat
17630 case $version_type in
17631 freebsd-elf*)
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17633 need_version=no
17634 need_lib_prefix=no
17636 freebsd-*)
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17638 need_version=yes
17640 esac
17641 shlibpath_var=LD_LIBRARY_PATH
17642 case $host_os in
17643 freebsd2*)
17644 shlibpath_overrides_runpath=yes
17646 freebsd3.[01]* | freebsdelf3.[01]*)
17647 shlibpath_overrides_runpath=yes
17648 hardcode_into_libs=yes
17650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17652 shlibpath_overrides_runpath=no
17653 hardcode_into_libs=yes
17655 *) # from 4.6 on, and DragonFly
17656 shlibpath_overrides_runpath=yes
17657 hardcode_into_libs=yes
17659 esac
17662 gnu*)
17663 version_type=linux
17664 need_lib_prefix=no
17665 need_version=no
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 shlibpath_var=LD_LIBRARY_PATH
17669 hardcode_into_libs=yes
17672 hpux9* | hpux10* | hpux11*)
17673 # Give a soname corresponding to the major version so that dld.sl refuses to
17674 # link against other versions.
17675 version_type=sunos
17676 need_lib_prefix=no
17677 need_version=no
17678 case $host_cpu in
17679 ia64*)
17680 shrext_cmds='.so'
17681 hardcode_into_libs=yes
17682 dynamic_linker="$host_os dld.so"
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 if test "X$HPUX_IA64_MODE" = X32; then
17688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17689 else
17690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17694 hppa*64*)
17695 shrext_cmds='.sl'
17696 hardcode_into_libs=yes
17697 dynamic_linker="$host_os dld.sl"
17698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17706 shrext_cmds='.sl'
17707 dynamic_linker="$host_os dld.sl"
17708 shlibpath_var=SHLIB_PATH
17709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17713 esac
17714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17715 postinstall_cmds='chmod 555 $lib'
17718 interix[3-9]*)
17719 version_type=linux
17720 need_lib_prefix=no
17721 need_version=no
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 shlibpath_overrides_runpath=no
17727 hardcode_into_libs=yes
17730 irix5* | irix6* | nonstopux*)
17731 case $host_os in
17732 nonstopux*) version_type=nonstopux ;;
17734 if test "$lt_cv_prog_gnu_ld" = yes; then
17735 version_type=linux
17736 else
17737 version_type=irix
17738 fi ;;
17739 esac
17740 need_lib_prefix=no
17741 need_version=no
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17744 case $host_os in
17745 irix5* | nonstopux*)
17746 libsuff= shlibsuff=
17749 case $LD in # libtool.m4 will add one of these switches to LD
17750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17751 libsuff= shlibsuff= libmagic=32-bit;;
17752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17753 libsuff=32 shlibsuff=N32 libmagic=N32;;
17754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17756 *) libsuff= shlibsuff= libmagic=never-match;;
17757 esac
17759 esac
17760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17761 shlibpath_overrides_runpath=no
17762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17764 hardcode_into_libs=yes
17767 # No shared lib support for Linux oldld, aout, or coff.
17768 linux*oldld* | linux*aout* | linux*coff*)
17769 dynamic_linker=no
17772 # This must be Linux ELF.
17773 linux* | k*bsd*-gnu)
17774 version_type=linux
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 shlibpath_overrides_runpath=no
17782 # This implies no fast_install, which is unacceptable.
17783 # Some rework will be needed to allow for fast_install
17784 # before this can be enabled.
17785 hardcode_into_libs=yes
17787 # Append ld.so.conf contents to the search path
17788 if test -f /etc/ld.so.conf; then
17789 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17793 # We used to test for /lib/ld.so.1 and disable shared libraries on
17794 # powerpc, because MkLinux only supported shared libraries with the
17795 # GNU dynamic linker. Since this was broken with cross compilers,
17796 # most powerpc-linux boxes support dynamic linking these days and
17797 # people can always --disable-shared, the test was removed, and we
17798 # assume the GNU/Linux dynamic linker is in use.
17799 dynamic_linker='GNU/Linux ld.so'
17802 netbsdelf*-gnu)
17803 version_type=linux
17804 need_lib_prefix=no
17805 need_version=no
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 shlibpath_var=LD_LIBRARY_PATH
17809 shlibpath_overrides_runpath=no
17810 hardcode_into_libs=yes
17811 dynamic_linker='NetBSD ld.elf_so'
17814 netbsd*)
17815 version_type=sunos
17816 need_lib_prefix=no
17817 need_version=no
17818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17821 dynamic_linker='NetBSD (a.out) ld.so'
17822 else
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17825 dynamic_linker='NetBSD ld.elf_so'
17827 shlibpath_var=LD_LIBRARY_PATH
17828 shlibpath_overrides_runpath=yes
17829 hardcode_into_libs=yes
17832 newsos6)
17833 version_type=linux
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17839 nto-qnx*)
17840 version_type=linux
17841 need_lib_prefix=no
17842 need_version=no
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=yes
17849 openbsd*)
17850 version_type=sunos
17851 sys_lib_dlsearch_path_spec="/usr/lib"
17852 need_lib_prefix=no
17853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17854 case $host_os in
17855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17856 *) need_version=no ;;
17857 esac
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17862 case $host_os in
17863 openbsd2.[89] | openbsd2.[89].*)
17864 shlibpath_overrides_runpath=no
17867 shlibpath_overrides_runpath=yes
17869 esac
17870 else
17871 shlibpath_overrides_runpath=yes
17875 os2*)
17876 libname_spec='$name'
17877 shrext_cmds=".dll"
17878 need_lib_prefix=no
17879 library_names_spec='$libname${shared_ext} $libname.a'
17880 dynamic_linker='OS/2 ld.exe'
17881 shlibpath_var=LIBPATH
17884 osf3* | osf4* | osf5*)
17885 version_type=osf
17886 need_lib_prefix=no
17887 need_version=no
17888 soname_spec='${libname}${release}${shared_ext}$major'
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17895 rdos*)
17896 dynamic_linker=no
17899 solaris*)
17900 version_type=linux
17901 need_lib_prefix=no
17902 need_version=no
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17904 soname_spec='${libname}${release}${shared_ext}$major'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 shlibpath_overrides_runpath=yes
17907 hardcode_into_libs=yes
17908 # ldd complains unless libraries are executable
17909 postinstall_cmds='chmod +x $lib'
17912 sunos4*)
17913 version_type=sunos
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 shlibpath_overrides_runpath=yes
17918 if test "$with_gnu_ld" = yes; then
17919 need_lib_prefix=no
17921 need_version=yes
17924 sysv4 | sysv4.3*)
17925 version_type=linux
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17927 soname_spec='${libname}${release}${shared_ext}$major'
17928 shlibpath_var=LD_LIBRARY_PATH
17929 case $host_vendor in
17930 sni)
17931 shlibpath_overrides_runpath=no
17932 need_lib_prefix=no
17933 export_dynamic_flag_spec='${wl}-Blargedynsym'
17934 runpath_var=LD_RUN_PATH
17936 siemens)
17937 need_lib_prefix=no
17939 motorola)
17940 need_lib_prefix=no
17941 need_version=no
17942 shlibpath_overrides_runpath=no
17943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17945 esac
17948 sysv4*MP*)
17949 if test -d /usr/nec ;then
17950 version_type=linux
17951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17952 soname_spec='$libname${shared_ext}.$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17958 version_type=freebsd-elf
17959 need_lib_prefix=no
17960 need_version=no
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 shlibpath_var=LD_LIBRARY_PATH
17964 hardcode_into_libs=yes
17965 if test "$with_gnu_ld" = yes; then
17966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17967 shlibpath_overrides_runpath=no
17968 else
17969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17970 shlibpath_overrides_runpath=yes
17971 case $host_os in
17972 sco3.2v5*)
17973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17975 esac
17977 sys_lib_dlsearch_path_spec='/usr/lib'
17980 uts4*)
17981 version_type=linux
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 shlibpath_var=LD_LIBRARY_PATH
17988 dynamic_linker=no
17990 esac
17991 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17992 echo "${ECHO_T}$dynamic_linker" >&6; }
17993 test "$dynamic_linker" = no && can_build_shared=no
17995 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18002 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18011 if test "$GCC" = yes; then
18012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18015 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18016 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18017 hardcode_action_F77=
18018 if test -n "$hardcode_libdir_flag_spec_F77" || \
18019 test -n "$runpath_var_F77" || \
18020 test "X$hardcode_automatic_F77" = "Xyes" ; then
18022 # We can hardcode non-existant directories.
18023 if test "$hardcode_direct_F77" != no &&
18024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18025 # have to relink, otherwise we might link with an installed library
18026 # when we should be linking with a yet-to-be-installed one
18027 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18028 test "$hardcode_minus_L_F77" != no; then
18029 # Linking always hardcodes the temporary library directory.
18030 hardcode_action_F77=relink
18031 else
18032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18033 hardcode_action_F77=immediate
18035 else
18036 # We cannot hardcode anything, or else we can only hardcode existing
18037 # directories.
18038 hardcode_action_F77=unsupported
18040 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18041 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18043 if test "$hardcode_action_F77" = relink; then
18044 # Fast installation is not supported
18045 enable_fast_install=no
18046 elif test "$shlibpath_overrides_runpath" = yes ||
18047 test "$enable_shared" = no; then
18048 # Fast installation is not necessary
18049 enable_fast_install=needless
18053 # The else clause should only fire when bootstrapping the
18054 # libtool distribution, otherwise you forgot to ship ltmain.sh
18055 # with your package, and you will get complaints that there are
18056 # no rules to generate ltmain.sh.
18057 if test -f "$ltmain"; then
18058 # See if we are running on zsh, and set the options which allow our commands through
18059 # without removal of \ escapes.
18060 if test -n "${ZSH_VERSION+set}" ; then
18061 setopt NO_GLOB_SUBST
18063 # Now quote all the things that may contain metacharacters while being
18064 # careful not to overquote the AC_SUBSTed values. We take copies of the
18065 # variables and quote the copies for generation of the libtool script.
18066 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18067 SED SHELL STRIP \
18068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18070 deplibs_check_method reload_flag reload_cmds need_locks \
18071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18072 lt_cv_sys_global_symbol_to_c_name_address \
18073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18074 old_postinstall_cmds old_postuninstall_cmds \
18075 compiler_F77 \
18076 CC_F77 \
18077 LD_F77 \
18078 lt_prog_compiler_wl_F77 \
18079 lt_prog_compiler_pic_F77 \
18080 lt_prog_compiler_static_F77 \
18081 lt_prog_compiler_no_builtin_flag_F77 \
18082 export_dynamic_flag_spec_F77 \
18083 thread_safe_flag_spec_F77 \
18084 whole_archive_flag_spec_F77 \
18085 enable_shared_with_static_runtimes_F77 \
18086 old_archive_cmds_F77 \
18087 old_archive_from_new_cmds_F77 \
18088 predep_objects_F77 \
18089 postdep_objects_F77 \
18090 predeps_F77 \
18091 postdeps_F77 \
18092 compiler_lib_search_path_F77 \
18093 compiler_lib_search_dirs_F77 \
18094 archive_cmds_F77 \
18095 archive_expsym_cmds_F77 \
18096 postinstall_cmds_F77 \
18097 postuninstall_cmds_F77 \
18098 old_archive_from_expsyms_cmds_F77 \
18099 allow_undefined_flag_F77 \
18100 no_undefined_flag_F77 \
18101 export_symbols_cmds_F77 \
18102 hardcode_libdir_flag_spec_F77 \
18103 hardcode_libdir_flag_spec_ld_F77 \
18104 hardcode_libdir_separator_F77 \
18105 hardcode_automatic_F77 \
18106 module_cmds_F77 \
18107 module_expsym_cmds_F77 \
18108 lt_cv_prog_compiler_c_o_F77 \
18109 fix_srcfile_path_F77 \
18110 exclude_expsyms_F77 \
18111 include_expsyms_F77; do
18113 case $var in
18114 old_archive_cmds_F77 | \
18115 old_archive_from_new_cmds_F77 | \
18116 archive_cmds_F77 | \
18117 archive_expsym_cmds_F77 | \
18118 module_cmds_F77 | \
18119 module_expsym_cmds_F77 | \
18120 old_archive_from_expsyms_cmds_F77 | \
18121 export_symbols_cmds_F77 | \
18122 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18123 postinstall_cmds | postuninstall_cmds | \
18124 old_postinstall_cmds | old_postuninstall_cmds | \
18125 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18126 # Double-quote double-evaled strings.
18127 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18132 esac
18133 done
18135 case $lt_echo in
18136 *'\$0 --fallback-echo"')
18137 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18139 esac
18141 cfgfile="$ofile"
18143 cat <<__EOF__ >> "$cfgfile"
18144 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18148 # Shell to use when invoking shell scripts.
18149 SHELL=$lt_SHELL
18151 # Whether or not to build shared libraries.
18152 build_libtool_libs=$enable_shared
18154 # Whether or not to build static libraries.
18155 build_old_libs=$enable_static
18157 # Whether or not to add -lc for building shared libraries.
18158 build_libtool_need_lc=$archive_cmds_need_lc_F77
18160 # Whether or not to disallow shared libs when runtime libs are static
18161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18163 # Whether or not to optimize for fast installation.
18164 fast_install=$enable_fast_install
18166 # The host system.
18167 host_alias=$host_alias
18168 host=$host
18169 host_os=$host_os
18171 # The build system.
18172 build_alias=$build_alias
18173 build=$build
18174 build_os=$build_os
18176 # An echo program that does not interpret backslashes.
18177 echo=$lt_echo
18179 # The archiver.
18180 AR=$lt_AR
18181 AR_FLAGS=$lt_AR_FLAGS
18183 # A C compiler.
18184 LTCC=$lt_LTCC
18186 # LTCC compiler flags.
18187 LTCFLAGS=$lt_LTCFLAGS
18189 # A language-specific compiler.
18190 CC=$lt_compiler_F77
18192 # Is the compiler the GNU C compiler?
18193 with_gcc=$GCC_F77
18195 # An ERE matcher.
18196 EGREP=$lt_EGREP
18198 # The linker used to build libraries.
18199 LD=$lt_LD_F77
18201 # Whether we need hard or soft links.
18202 LN_S=$lt_LN_S
18204 # A BSD-compatible nm program.
18205 NM=$lt_NM
18207 # A symbol stripping program
18208 STRIP=$lt_STRIP
18210 # Used to examine libraries when file_magic_cmd begins "file"
18211 MAGIC_CMD=$MAGIC_CMD
18213 # Used on cygwin: DLL creation program.
18214 DLLTOOL="$DLLTOOL"
18216 # Used on cygwin: object dumper.
18217 OBJDUMP="$OBJDUMP"
18219 # Used on cygwin: assembler.
18220 AS="$AS"
18222 # The name of the directory that contains temporary libtool files.
18223 objdir=$objdir
18225 # How to create reloadable object files.
18226 reload_flag=$lt_reload_flag
18227 reload_cmds=$lt_reload_cmds
18229 # How to pass a linker flag through the compiler.
18230 wl=$lt_lt_prog_compiler_wl_F77
18232 # Object file suffix (normally "o").
18233 objext="$ac_objext"
18235 # Old archive suffix (normally "a").
18236 libext="$libext"
18238 # Shared library suffix (normally ".so").
18239 shrext_cmds='$shrext_cmds'
18241 # Executable file suffix (normally "").
18242 exeext="$exeext"
18244 # Additional compiler flags for building library objects.
18245 pic_flag=$lt_lt_prog_compiler_pic_F77
18246 pic_mode=$pic_mode
18248 # What is the maximum length of a command?
18249 max_cmd_len=$lt_cv_sys_max_cmd_len
18251 # Does compiler simultaneously support -c and -o options?
18252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18254 # Must we lock files when doing compilation?
18255 need_locks=$lt_need_locks
18257 # Do we need the lib prefix for modules?
18258 need_lib_prefix=$need_lib_prefix
18260 # Do we need a version for libraries?
18261 need_version=$need_version
18263 # Whether dlopen is supported.
18264 dlopen_support=$enable_dlopen
18266 # Whether dlopen of programs is supported.
18267 dlopen_self=$enable_dlopen_self
18269 # Whether dlopen of statically linked programs is supported.
18270 dlopen_self_static=$enable_dlopen_self_static
18272 # Compiler flag to prevent dynamic linking.
18273 link_static_flag=$lt_lt_prog_compiler_static_F77
18275 # Compiler flag to turn off builtin functions.
18276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18278 # Compiler flag to allow reflexive dlopens.
18279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18281 # Compiler flag to generate shared objects directly from archives.
18282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18284 # Compiler flag to generate thread-safe objects.
18285 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18287 # Library versioning type.
18288 version_type=$version_type
18290 # Format of library name prefix.
18291 libname_spec=$lt_libname_spec
18293 # List of archive names. First name is the real one, the rest are links.
18294 # The last name is the one that the linker finds with -lNAME.
18295 library_names_spec=$lt_library_names_spec
18297 # The coded name of the library, if different from the real name.
18298 soname_spec=$lt_soname_spec
18300 # Commands used to build and install an old-style archive.
18301 RANLIB=$lt_RANLIB
18302 old_archive_cmds=$lt_old_archive_cmds_F77
18303 old_postinstall_cmds=$lt_old_postinstall_cmds
18304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18306 # Create an old-style archive from a shared archive.
18307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18309 # Create a temporary old-style archive to link instead of a shared archive.
18310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18312 # Commands used to build and install a shared archive.
18313 archive_cmds=$lt_archive_cmds_F77
18314 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18315 postinstall_cmds=$lt_postinstall_cmds
18316 postuninstall_cmds=$lt_postuninstall_cmds
18318 # Commands used to build a loadable module (assumed same as above if empty)
18319 module_cmds=$lt_module_cmds_F77
18320 module_expsym_cmds=$lt_module_expsym_cmds_F77
18322 # Commands to strip libraries.
18323 old_striplib=$lt_old_striplib
18324 striplib=$lt_striplib
18326 # Dependencies to place before the objects being linked to create a
18327 # shared library.
18328 predep_objects=$lt_predep_objects_F77
18330 # Dependencies to place after the objects being linked to create a
18331 # shared library.
18332 postdep_objects=$lt_postdep_objects_F77
18334 # Dependencies to place before the objects being linked to create a
18335 # shared library.
18336 predeps=$lt_predeps_F77
18338 # Dependencies to place after the objects being linked to create a
18339 # shared library.
18340 postdeps=$lt_postdeps_F77
18342 # The directories searched by this compiler when creating a shared
18343 # library
18344 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18346 # The library search path used internally by the compiler when linking
18347 # a shared library.
18348 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18350 # Method to check whether dependent libraries are shared objects.
18351 deplibs_check_method=$lt_deplibs_check_method
18353 # Command to use when deplibs_check_method == file_magic.
18354 file_magic_cmd=$lt_file_magic_cmd
18356 # Flag that allows shared libraries with undefined symbols to be built.
18357 allow_undefined_flag=$lt_allow_undefined_flag_F77
18359 # Flag that forces no undefined symbols.
18360 no_undefined_flag=$lt_no_undefined_flag_F77
18362 # Commands used to finish a libtool library installation in a directory.
18363 finish_cmds=$lt_finish_cmds
18365 # Same as above, but a single script fragment to be evaled but not shown.
18366 finish_eval=$lt_finish_eval
18368 # Take the output of nm and produce a listing of raw symbols and C names.
18369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18371 # Transform the output of nm in a proper C declaration
18372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18374 # Transform the output of nm in a C name address pair
18375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18377 # This is the shared library runtime path variable.
18378 runpath_var=$runpath_var
18380 # This is the shared library path variable.
18381 shlibpath_var=$shlibpath_var
18383 # Is shlibpath searched before the hard-coded library search path?
18384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18386 # How to hardcode a shared library path into an executable.
18387 hardcode_action=$hardcode_action_F77
18389 # Whether we should hardcode library paths into libraries.
18390 hardcode_into_libs=$hardcode_into_libs
18392 # Flag to hardcode \$libdir into a binary during linking.
18393 # This must work even if \$libdir does not exist.
18394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18396 # If ld is used when linking, flag to hardcode \$libdir into
18397 # a binary during linking. This must work even if \$libdir does
18398 # not exist.
18399 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18401 # Whether we need a single -rpath flag with a separated argument.
18402 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18404 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18405 # resulting binary.
18406 hardcode_direct=$hardcode_direct_F77
18408 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18409 # resulting binary.
18410 hardcode_minus_L=$hardcode_minus_L_F77
18412 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18413 # the resulting binary.
18414 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18416 # Set to yes if building a shared library automatically hardcodes DIR into the library
18417 # and all subsequent libraries and executables linked against it.
18418 hardcode_automatic=$hardcode_automatic_F77
18420 # Variables whose values should be saved in libtool wrapper scripts and
18421 # restored at relink time.
18422 variables_saved_for_relink="$variables_saved_for_relink"
18424 # Whether libtool must link a program against all its dependency libraries.
18425 link_all_deplibs=$link_all_deplibs_F77
18427 # Compile-time system search path for libraries
18428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18430 # Run-time system search path for libraries
18431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18433 # Fix the shell variable \$srcfile for the compiler.
18434 fix_srcfile_path=$lt_fix_srcfile_path
18436 # Set to yes if exported symbols are required.
18437 always_export_symbols=$always_export_symbols_F77
18439 # The commands to list exported symbols.
18440 export_symbols_cmds=$lt_export_symbols_cmds_F77
18442 # The commands to extract the exported symbol list from a shared archive.
18443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18445 # Symbols that should not be listed in the preloaded symbols.
18446 exclude_expsyms=$lt_exclude_expsyms_F77
18448 # Symbols that must always be exported.
18449 include_expsyms=$lt_include_expsyms_F77
18451 # ### END LIBTOOL TAG CONFIG: $tagname
18453 __EOF__
18456 else
18457 # If there is no Makefile yet, we rely on a make rule to execute
18458 # `config.status --recheck' to rerun these tests and create the
18459 # libtool script then.
18460 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18461 if test -f "$ltmain_in"; then
18462 test -f Makefile && make "$ltmain"
18467 ac_ext=c
18468 ac_cpp='$CPP $CPPFLAGS'
18469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473 CC="$lt_save_CC"
18475 else
18476 tagname=""
18480 GCJ)
18481 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18484 # Source file extension for Java test sources.
18485 ac_ext=java
18487 # Object file extension for compiled Java test sources.
18488 objext=o
18489 objext_GCJ=$objext
18491 # Code to be used in simple compile tests
18492 lt_simple_compile_test_code="class foo {}"
18494 # Code to be used in simple link tests
18495 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18497 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18499 # If no C compiler was specified, use CC.
18500 LTCC=${LTCC-"$CC"}
18502 # If no C compiler flags were specified, use CFLAGS.
18503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18505 # Allow CC to be a program name with arguments.
18506 compiler=$CC
18509 # save warnings/boilerplate of simple test code
18510 ac_outfile=conftest.$ac_objext
18511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18513 _lt_compiler_boilerplate=`cat conftest.err`
18514 $rm conftest*
18516 ac_outfile=conftest.$ac_objext
18517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18519 _lt_linker_boilerplate=`cat conftest.err`
18520 $rm -r conftest*
18523 # Allow CC to be a program name with arguments.
18524 lt_save_CC="$CC"
18525 CC=${GCJ-"gcj"}
18526 compiler=$CC
18527 compiler_GCJ=$CC
18528 for cc_temp in $compiler""; do
18529 case $cc_temp in
18530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18532 \-*) ;;
18533 *) break;;
18534 esac
18535 done
18536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18539 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18540 archive_cmds_need_lc_GCJ=no
18542 old_archive_cmds_GCJ=$old_archive_cmds
18545 lt_prog_compiler_no_builtin_flag_GCJ=
18547 if test "$GCC" = yes; then
18548 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18551 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18552 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18553 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556 lt_cv_prog_compiler_rtti_exceptions=no
18557 ac_outfile=conftest.$ac_objext
18558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18559 lt_compiler_flag="-fno-rtti -fno-exceptions"
18560 # Insert the option either (1) after the last *FLAGS variable, or
18561 # (2) before a word containing "conftest.", or (3) at the end.
18562 # Note that $ac_compile itself does not contain backslashes and begins
18563 # with a dollar sign (not a hyphen), so the echo should work correctly.
18564 # The option is referenced via a variable to avoid confusing sed.
18565 lt_compile=`echo "$ac_compile" | $SED \
18566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18568 -e 's:$: $lt_compiler_flag:'`
18569 (eval echo "\"\$as_me:18569: $lt_compile\"" >&5)
18570 (eval "$lt_compile" 2>conftest.err)
18571 ac_status=$?
18572 cat conftest.err >&5
18573 echo "$as_me:18573: \$? = $ac_status" >&5
18574 if (exit $ac_status) && test -s "$ac_outfile"; then
18575 # The compiler can only warn and ignore the option if not recognized
18576 # So say no if there are warnings other than the usual output.
18577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18580 lt_cv_prog_compiler_rtti_exceptions=yes
18583 $rm conftest*
18586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18587 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18589 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18590 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18591 else
18597 lt_prog_compiler_wl_GCJ=
18598 lt_prog_compiler_pic_GCJ=
18599 lt_prog_compiler_static_GCJ=
18601 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18604 if test "$GCC" = yes; then
18605 lt_prog_compiler_wl_GCJ='-Wl,'
18606 lt_prog_compiler_static_GCJ='-static'
18608 case $host_os in
18609 aix*)
18610 # All AIX code is PIC.
18611 if test "$host_cpu" = ia64; then
18612 # AIX 5 now supports IA64 processor
18613 lt_prog_compiler_static_GCJ='-Bstatic'
18617 amigaos*)
18618 # FIXME: we need at least 68020 code to build shared libraries, but
18619 # adding the `-m68020' flag to GCC prevents building anything better,
18620 # like `-m68040'.
18621 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18625 # PIC is the default for these OSes.
18628 mingw* | cygwin* | pw32* | os2*)
18629 # This hack is so that the source file can tell whether it is being
18630 # built for inclusion in a dll (and should export symbols for example).
18631 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18632 # (--disable-auto-import) libraries
18636 darwin* | rhapsody*)
18637 # PIC is the default on this platform
18638 # Common symbols not allowed in MH_DYLIB files
18639 lt_prog_compiler_pic_GCJ='-fno-common'
18642 interix[3-9]*)
18643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18644 # Instead, we relocate shared libraries at runtime.
18647 msdosdjgpp*)
18648 # Just because we use GCC doesn't mean we suddenly get shared libraries
18649 # on systems that don't support them.
18650 lt_prog_compiler_can_build_shared_GCJ=no
18651 enable_shared=no
18654 sysv4*MP*)
18655 if test -d /usr/nec; then
18656 lt_prog_compiler_pic_GCJ=-Kconform_pic
18660 hpux*)
18661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18662 # not for PA HP-UX.
18663 case $host_cpu in
18664 hppa*64*|ia64*)
18665 # +Z the default
18668 lt_prog_compiler_pic_GCJ='-fPIC'
18670 esac
18674 lt_prog_compiler_pic_GCJ='-fPIC'
18676 esac
18677 else
18678 # PORTME Check for flag to pass linker flags through the system compiler.
18679 case $host_os in
18680 aix*)
18681 lt_prog_compiler_wl_GCJ='-Wl,'
18682 if test "$host_cpu" = ia64; then
18683 # AIX 5 now supports IA64 processor
18684 lt_prog_compiler_static_GCJ='-Bstatic'
18685 else
18686 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18689 darwin*)
18690 # PIC is the default on this platform
18691 # Common symbols not allowed in MH_DYLIB files
18692 case $cc_basename in
18693 xlc*)
18694 lt_prog_compiler_pic_GCJ='-qnocommon'
18695 lt_prog_compiler_wl_GCJ='-Wl,'
18697 esac
18700 mingw* | cygwin* | pw32* | os2*)
18701 # This hack is so that the source file can tell whether it is being
18702 # built for inclusion in a dll (and should export symbols for example).
18706 hpux9* | hpux10* | hpux11*)
18707 lt_prog_compiler_wl_GCJ='-Wl,'
18708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18709 # not for PA HP-UX.
18710 case $host_cpu in
18711 hppa*64*|ia64*)
18712 # +Z the default
18715 lt_prog_compiler_pic_GCJ='+Z'
18717 esac
18718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18719 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18722 irix5* | irix6* | nonstopux*)
18723 lt_prog_compiler_wl_GCJ='-Wl,'
18724 # PIC (with -KPIC) is the default.
18725 lt_prog_compiler_static_GCJ='-non_shared'
18728 newsos6)
18729 lt_prog_compiler_pic_GCJ='-KPIC'
18730 lt_prog_compiler_static_GCJ='-Bstatic'
18733 linux* | k*bsd*-gnu)
18734 case $cc_basename in
18735 icc* | ecc*)
18736 lt_prog_compiler_wl_GCJ='-Wl,'
18737 lt_prog_compiler_pic_GCJ='-KPIC'
18738 lt_prog_compiler_static_GCJ='-static'
18740 pgcc* | pgf77* | pgf90* | pgf95*)
18741 # Portland Group compilers (*not* the Pentium gcc compiler,
18742 # which looks to be a dead project)
18743 lt_prog_compiler_wl_GCJ='-Wl,'
18744 lt_prog_compiler_pic_GCJ='-fpic'
18745 lt_prog_compiler_static_GCJ='-Bstatic'
18747 ccc*)
18748 lt_prog_compiler_wl_GCJ='-Wl,'
18749 # All Alpha code is PIC.
18750 lt_prog_compiler_static_GCJ='-non_shared'
18753 case `$CC -V 2>&1 | sed 5q` in
18754 *Sun\ C*)
18755 # Sun C 5.9
18756 lt_prog_compiler_pic_GCJ='-KPIC'
18757 lt_prog_compiler_static_GCJ='-Bstatic'
18758 lt_prog_compiler_wl_GCJ='-Wl,'
18760 *Sun\ F*)
18761 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18762 lt_prog_compiler_pic_GCJ='-KPIC'
18763 lt_prog_compiler_static_GCJ='-Bstatic'
18764 lt_prog_compiler_wl_GCJ=''
18766 esac
18768 esac
18771 osf3* | osf4* | osf5*)
18772 lt_prog_compiler_wl_GCJ='-Wl,'
18773 # All OSF/1 code is PIC.
18774 lt_prog_compiler_static_GCJ='-non_shared'
18777 rdos*)
18778 lt_prog_compiler_static_GCJ='-non_shared'
18781 solaris*)
18782 lt_prog_compiler_pic_GCJ='-KPIC'
18783 lt_prog_compiler_static_GCJ='-Bstatic'
18784 case $cc_basename in
18785 f77* | f90* | f95*)
18786 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18788 lt_prog_compiler_wl_GCJ='-Wl,';;
18789 esac
18792 sunos4*)
18793 lt_prog_compiler_wl_GCJ='-Qoption ld '
18794 lt_prog_compiler_pic_GCJ='-PIC'
18795 lt_prog_compiler_static_GCJ='-Bstatic'
18798 sysv4 | sysv4.2uw2* | sysv4.3*)
18799 lt_prog_compiler_wl_GCJ='-Wl,'
18800 lt_prog_compiler_pic_GCJ='-KPIC'
18801 lt_prog_compiler_static_GCJ='-Bstatic'
18804 sysv4*MP*)
18805 if test -d /usr/nec ;then
18806 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18807 lt_prog_compiler_static_GCJ='-Bstatic'
18811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18812 lt_prog_compiler_wl_GCJ='-Wl,'
18813 lt_prog_compiler_pic_GCJ='-KPIC'
18814 lt_prog_compiler_static_GCJ='-Bstatic'
18817 unicos*)
18818 lt_prog_compiler_wl_GCJ='-Wl,'
18819 lt_prog_compiler_can_build_shared_GCJ=no
18822 uts4*)
18823 lt_prog_compiler_pic_GCJ='-pic'
18824 lt_prog_compiler_static_GCJ='-Bstatic'
18828 lt_prog_compiler_can_build_shared_GCJ=no
18830 esac
18833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18834 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18837 # Check to make sure the PIC flag actually works.
18839 if test -n "$lt_prog_compiler_pic_GCJ"; then
18841 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18843 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 lt_cv_prog_compiler_pic_works_GCJ=no
18847 ac_outfile=conftest.$ac_objext
18848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18849 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18850 # Insert the option either (1) after the last *FLAGS variable, or
18851 # (2) before a word containing "conftest.", or (3) at the end.
18852 # Note that $ac_compile itself does not contain backslashes and begins
18853 # with a dollar sign (not a hyphen), so the echo should work correctly.
18854 # The option is referenced via a variable to avoid confusing sed.
18855 lt_compile=`echo "$ac_compile" | $SED \
18856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18858 -e 's:$: $lt_compiler_flag:'`
18859 (eval echo "\"\$as_me:18859: $lt_compile\"" >&5)
18860 (eval "$lt_compile" 2>conftest.err)
18861 ac_status=$?
18862 cat conftest.err >&5
18863 echo "$as_me:18863: \$? = $ac_status" >&5
18864 if (exit $ac_status) && test -s "$ac_outfile"; then
18865 # The compiler can only warn and ignore the option if not recognized
18866 # So say no if there are warnings other than the usual output.
18867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18870 lt_cv_prog_compiler_pic_works_GCJ=yes
18873 $rm conftest*
18876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18877 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18879 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18880 case $lt_prog_compiler_pic_GCJ in
18881 "" | " "*) ;;
18882 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18883 esac
18884 else
18885 lt_prog_compiler_pic_GCJ=
18886 lt_prog_compiler_can_build_shared_GCJ=no
18890 case $host_os in
18891 # For platforms which do not support PIC, -DPIC is meaningless:
18892 *djgpp*)
18893 lt_prog_compiler_pic_GCJ=
18896 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18898 esac
18901 # Check to make sure the static flag actually works.
18903 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18904 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18905 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18906 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909 lt_cv_prog_compiler_static_works_GCJ=no
18910 save_LDFLAGS="$LDFLAGS"
18911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18912 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18914 # The linker can only warn and ignore the option if not recognized
18915 # So say no if there are warnings
18916 if test -s conftest.err; then
18917 # Append any errors to the config.log.
18918 cat conftest.err 1>&5
18919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18921 if diff conftest.exp conftest.er2 >/dev/null; then
18922 lt_cv_prog_compiler_static_works_GCJ=yes
18924 else
18925 lt_cv_prog_compiler_static_works_GCJ=yes
18928 $rm -r conftest*
18929 LDFLAGS="$save_LDFLAGS"
18932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18933 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18935 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18937 else
18938 lt_prog_compiler_static_GCJ=
18942 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18944 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 lt_cv_prog_compiler_c_o_GCJ=no
18948 $rm -r conftest 2>/dev/null
18949 mkdir conftest
18950 cd conftest
18951 mkdir out
18952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18954 lt_compiler_flag="-o out/conftest2.$ac_objext"
18955 # Insert the option either (1) after the last *FLAGS variable, or
18956 # (2) before a word containing "conftest.", or (3) at the end.
18957 # Note that $ac_compile itself does not contain backslashes and begins
18958 # with a dollar sign (not a hyphen), so the echo should work correctly.
18959 lt_compile=`echo "$ac_compile" | $SED \
18960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18962 -e 's:$: $lt_compiler_flag:'`
18963 (eval echo "\"\$as_me:18963: $lt_compile\"" >&5)
18964 (eval "$lt_compile" 2>out/conftest.err)
18965 ac_status=$?
18966 cat out/conftest.err >&5
18967 echo "$as_me:18967: \$? = $ac_status" >&5
18968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18969 then
18970 # The compiler can only warn and ignore the option if not recognized
18971 # So say no if there are warnings
18972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18975 lt_cv_prog_compiler_c_o_GCJ=yes
18978 chmod u+w . 2>&5
18979 $rm conftest*
18980 # SGI C++ compiler will create directory out/ii_files/ for
18981 # template instantiation
18982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18983 $rm out/* && rmdir out
18984 cd ..
18985 rmdir conftest
18986 $rm conftest*
18989 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18993 hard_links="nottested"
18994 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18995 # do not overwrite the value of need_locks provided by the user
18996 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18998 hard_links=yes
18999 $rm conftest*
19000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19001 touch conftest.a
19002 ln conftest.a conftest.b 2>&5 || hard_links=no
19003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19004 { echo "$as_me:$LINENO: result: $hard_links" >&5
19005 echo "${ECHO_T}$hard_links" >&6; }
19006 if test "$hard_links" = no; then
19007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19009 need_locks=warn
19011 else
19012 need_locks=no
19015 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19018 runpath_var=
19019 allow_undefined_flag_GCJ=
19020 enable_shared_with_static_runtimes_GCJ=no
19021 archive_cmds_GCJ=
19022 archive_expsym_cmds_GCJ=
19023 old_archive_From_new_cmds_GCJ=
19024 old_archive_from_expsyms_cmds_GCJ=
19025 export_dynamic_flag_spec_GCJ=
19026 whole_archive_flag_spec_GCJ=
19027 thread_safe_flag_spec_GCJ=
19028 hardcode_libdir_flag_spec_GCJ=
19029 hardcode_libdir_flag_spec_ld_GCJ=
19030 hardcode_libdir_separator_GCJ=
19031 hardcode_direct_GCJ=no
19032 hardcode_minus_L_GCJ=no
19033 hardcode_shlibpath_var_GCJ=unsupported
19034 link_all_deplibs_GCJ=unknown
19035 hardcode_automatic_GCJ=no
19036 module_cmds_GCJ=
19037 module_expsym_cmds_GCJ=
19038 always_export_symbols_GCJ=no
19039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19040 # include_expsyms should be a list of space-separated symbols to be *always*
19041 # included in the symbol list
19042 include_expsyms_GCJ=
19043 # exclude_expsyms can be an extended regexp of symbols to exclude
19044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19046 # as well as any symbol that contains `d'.
19047 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19049 # platforms (ab)use it in PIC code, but their linkers get confused if
19050 # the symbol is explicitly referenced. Since portable code cannot
19051 # rely on this symbol name, it's probably fine to never include it in
19052 # preloaded symbol tables.
19053 # Exclude shared library initialization/finalization symbols.
19054 extract_expsyms_cmds=
19055 # Just being paranoid about ensuring that cc_basename is set.
19056 for cc_temp in $compiler""; do
19057 case $cc_temp in
19058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19060 \-*) ;;
19061 *) break;;
19062 esac
19063 done
19064 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19066 case $host_os in
19067 cygwin* | mingw* | pw32*)
19068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19069 # When not using gcc, we currently assume that we are using
19070 # Microsoft Visual C++.
19071 if test "$GCC" != yes; then
19072 with_gnu_ld=no
19075 interix*)
19076 # we just hope/assume this is gcc and not c89 (= MSVC++)
19077 with_gnu_ld=yes
19079 openbsd*)
19080 with_gnu_ld=no
19082 esac
19084 ld_shlibs_GCJ=yes
19085 if test "$with_gnu_ld" = yes; then
19086 # If archive_cmds runs LD, not CC, wlarc should be empty
19087 wlarc='${wl}'
19089 # Set some defaults for GNU ld with shared library support. These
19090 # are reset later if shared libraries are not supported. Putting them
19091 # here allows them to be overridden if necessary.
19092 runpath_var=LD_RUN_PATH
19093 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19094 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19095 # ancient GNU ld didn't support --whole-archive et. al.
19096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19097 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19098 else
19099 whole_archive_flag_spec_GCJ=
19101 supports_anon_versioning=no
19102 case `$LD -v 2>/dev/null` in
19103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19106 *\ 2.11.*) ;; # other 2.11 versions
19107 *) supports_anon_versioning=yes ;;
19108 esac
19110 # See if GNU ld supports shared libraries.
19111 case $host_os in
19112 aix[3-9]*)
19113 # On AIX/PPC, the GNU linker is very broken
19114 if test "$host_cpu" != ia64; then
19115 ld_shlibs_GCJ=no
19116 cat <<EOF 1>&2
19118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19119 *** to be unable to reliably create shared libraries on AIX.
19120 *** Therefore, libtool is disabling shared libraries support. If you
19121 *** really care for shared libraries, you may want to modify your PATH
19122 *** so that a non-GNU linker is found, and then restart.
19128 amigaos*)
19129 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)'
19130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19131 hardcode_minus_L_GCJ=yes
19133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19134 # that the semantics of dynamic libraries on AmigaOS, at least up
19135 # to version 4, is to share data among multiple programs linked
19136 # with the same dynamic library. Since this doesn't match the
19137 # behavior of shared libraries on other platforms, we can't use
19138 # them.
19139 ld_shlibs_GCJ=no
19142 beos*)
19143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19144 allow_undefined_flag_GCJ=unsupported
19145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19146 # support --undefined. This deserves some investigation. FIXME
19147 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148 else
19149 ld_shlibs_GCJ=no
19153 cygwin* | mingw* | pw32*)
19154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19155 # as there is no search path for DLLs.
19156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19157 allow_undefined_flag_GCJ=unsupported
19158 always_export_symbols_GCJ=no
19159 enable_shared_with_static_runtimes_GCJ=yes
19160 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19164 # If the export-symbols file already is a .def file (1st line
19165 # is EXPORTS), use it as is; otherwise, prepend...
19166 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19167 cp $export_symbols $output_objdir/$soname.def;
19168 else
19169 echo EXPORTS > $output_objdir/$soname.def;
19170 cat $export_symbols >> $output_objdir/$soname.def;
19172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19173 else
19174 ld_shlibs_GCJ=no
19178 interix[3-9]*)
19179 hardcode_direct_GCJ=no
19180 hardcode_shlibpath_var_GCJ=no
19181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19182 export_dynamic_flag_spec_GCJ='${wl}-E'
19183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19184 # Instead, shared libraries are loaded at an image base (0x10000000 by
19185 # default) and relocated if they conflict, which is a slow very memory
19186 # consuming and fragmenting process. To avoid this, we pick a random,
19187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19189 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'
19190 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'
19193 gnu* | linux* | k*bsd*-gnu)
19194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19195 tmp_addflag=
19196 case $cc_basename,$host_cpu in
19197 pgcc*) # Portland Group C compiler
19198 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'
19199 tmp_addflag=' $pic_flag'
19201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19202 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'
19203 tmp_addflag=' $pic_flag -Mnomain' ;;
19204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19205 tmp_addflag=' -i_dynamic' ;;
19206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19207 tmp_addflag=' -i_dynamic -nofor_main' ;;
19208 ifc* | ifort*) # Intel Fortran compiler
19209 tmp_addflag=' -nofor_main' ;;
19210 esac
19211 case `$CC -V 2>&1 | sed 5q` in
19212 *Sun\ C*) # Sun C 5.9
19213 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19214 tmp_sharedflag='-G' ;;
19215 *Sun\ F*) # Sun Fortran 8.3
19216 tmp_sharedflag='-G' ;;
19218 tmp_sharedflag='-shared' ;;
19219 esac
19220 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19222 if test $supports_anon_versioning = yes; then
19223 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19225 $echo "local: *; };" >> $output_objdir/$libname.ver~
19226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19228 link_all_deplibs_GCJ=no
19229 else
19230 ld_shlibs_GCJ=no
19234 netbsd* | netbsdelf*-gnu)
19235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19236 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19237 wlarc=
19238 else
19239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19244 solaris*)
19245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19246 ld_shlibs_GCJ=no
19247 cat <<EOF 1>&2
19249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19250 *** create shared libraries on Solaris systems. Therefore, libtool
19251 *** is disabling shared libraries support. We urge you to upgrade GNU
19252 *** binutils to release 2.9.1 or newer. Another option is to modify
19253 *** your PATH or compiler configuration so that the native linker is
19254 *** used, and then restart.
19257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19260 else
19261 ld_shlibs_GCJ=no
19265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19266 case `$LD -v 2>&1` in
19267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19268 ld_shlibs_GCJ=no
19269 cat <<_LT_EOF 1>&2
19271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19272 *** reliably create shared libraries on SCO systems. Therefore, libtool
19273 *** is disabling shared libraries support. We urge you to upgrade GNU
19274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19275 *** your PATH or compiler configuration so that the native linker is
19276 *** used, and then restart.
19278 _LT_EOF
19281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19282 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19285 else
19286 ld_shlibs_GCJ=no
19289 esac
19292 sunos4*)
19293 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19294 wlarc=
19295 hardcode_direct_GCJ=yes
19296 hardcode_shlibpath_var_GCJ=no
19300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19303 else
19304 ld_shlibs_GCJ=no
19307 esac
19309 if test "$ld_shlibs_GCJ" = no; then
19310 runpath_var=
19311 hardcode_libdir_flag_spec_GCJ=
19312 export_dynamic_flag_spec_GCJ=
19313 whole_archive_flag_spec_GCJ=
19315 else
19316 # PORTME fill in a description of your system's linker (not GNU ld)
19317 case $host_os in
19318 aix3*)
19319 allow_undefined_flag_GCJ=unsupported
19320 always_export_symbols_GCJ=yes
19321 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'
19322 # Note: this linker hardcodes the directories in LIBPATH if there
19323 # are no directories specified by -L.
19324 hardcode_minus_L_GCJ=yes
19325 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19326 # Neither direct hardcoding nor static linking is supported with a
19327 # broken collect2.
19328 hardcode_direct_GCJ=unsupported
19332 aix[4-9]*)
19333 if test "$host_cpu" = ia64; then
19334 # On IA64, the linker does run time linking by default, so we don't
19335 # have to do anything special.
19336 aix_use_runtimelinking=no
19337 exp_sym_flag='-Bexport'
19338 no_entry_flag=""
19339 else
19340 # If we're using GNU nm, then we don't want the "-C" option.
19341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19343 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'
19344 else
19345 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'
19347 aix_use_runtimelinking=no
19349 # Test if we are trying to use run time linking or normal
19350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19351 # need to do runtime linking.
19352 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19353 for ld_flag in $LDFLAGS; do
19354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19355 aix_use_runtimelinking=yes
19356 break
19358 done
19360 esac
19362 exp_sym_flag='-bexport'
19363 no_entry_flag='-bnoentry'
19366 # When large executables or shared objects are built, AIX ld can
19367 # have problems creating the table of contents. If linking a library
19368 # or program results in "error TOC overflow" add -mminimal-toc to
19369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19372 archive_cmds_GCJ=''
19373 hardcode_direct_GCJ=yes
19374 hardcode_libdir_separator_GCJ=':'
19375 link_all_deplibs_GCJ=yes
19377 if test "$GCC" = yes; then
19378 case $host_os in aix4.[012]|aix4.[012].*)
19379 # We only want to do this on AIX 4.2 and lower, the check
19380 # below for broken collect2 doesn't work under 4.3+
19381 collect2name=`${CC} -print-prog-name=collect2`
19382 if test -f "$collect2name" && \
19383 strings "$collect2name" | grep resolve_lib_name >/dev/null
19384 then
19385 # We have reworked collect2
19387 else
19388 # We have old collect2
19389 hardcode_direct_GCJ=unsupported
19390 # It fails to find uninstalled libraries when the uninstalled
19391 # path is not listed in the libpath. Setting hardcode_minus_L
19392 # to unsupported forces relinking
19393 hardcode_minus_L_GCJ=yes
19394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19395 hardcode_libdir_separator_GCJ=
19398 esac
19399 shared_flag='-shared'
19400 if test "$aix_use_runtimelinking" = yes; then
19401 shared_flag="$shared_flag "'${wl}-G'
19403 else
19404 # not using gcc
19405 if test "$host_cpu" = ia64; then
19406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19407 # chokes on -Wl,-G. The following line is correct:
19408 shared_flag='-G'
19409 else
19410 if test "$aix_use_runtimelinking" = yes; then
19411 shared_flag='${wl}-G'
19412 else
19413 shared_flag='${wl}-bM:SRE'
19418 # It seems that -bexpall does not export symbols beginning with
19419 # underscore (_), so it is better to generate a list of symbols to export.
19420 always_export_symbols_GCJ=yes
19421 if test "$aix_use_runtimelinking" = yes; then
19422 # Warning - without using the other runtime loading flags (-brtl),
19423 # -berok will link without error, but may produce a broken library.
19424 allow_undefined_flag_GCJ='-berok'
19425 # Determine the default libpath from the value encoded in an empty executable.
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19434 main ()
19438 return 0;
19440 _ACEOF
19441 rm -f conftest.$ac_objext conftest$ac_exeext
19442 if { (ac_try="$ac_link"
19443 case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_link") 2>conftest.er1
19449 ac_status=$?
19450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && {
19455 test -z "$ac_c_werror_flag" ||
19456 test ! -s conftest.err
19457 } && test -s conftest$ac_exeext &&
19458 $as_test_x conftest$ac_exeext; then
19460 lt_aix_libpath_sed='
19461 /Import File Strings/,/^$/ {
19462 /^0/ {
19463 s/^0 *\(.*\)$/\1/
19467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19468 # Check for a 64-bit object if we didn't find anything.
19469 if test -z "$aix_libpath"; then
19470 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19472 else
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480 conftest$ac_exeext conftest.$ac_ext
19481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19483 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19484 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"
19485 else
19486 if test "$host_cpu" = ia64; then
19487 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19488 allow_undefined_flag_GCJ="-z nodefs"
19489 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"
19490 else
19491 # Determine the default libpath from the value encoded in an empty executable.
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19500 main ()
19504 return 0;
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19526 lt_aix_libpath_sed='
19527 /Import File Strings/,/^$/ {
19528 /^0/ {
19529 s/^0 *\(.*\)$/\1/
19533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19534 # Check for a 64-bit object if we didn't find anything.
19535 if test -z "$aix_libpath"; then
19536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19546 conftest$ac_exeext conftest.$ac_ext
19547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19550 # Warning - without using the other run time loading flags,
19551 # -berok will link without error, but may produce a broken library.
19552 no_undefined_flag_GCJ=' ${wl}-bernotok'
19553 allow_undefined_flag_GCJ=' ${wl}-berok'
19554 # Exported symbols can be pulled into shared objects from archives
19555 whole_archive_flag_spec_GCJ='$convenience'
19556 archive_cmds_need_lc_GCJ=yes
19557 # This is similar to how AIX traditionally builds its shared libraries.
19558 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'
19563 amigaos*)
19564 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)'
19565 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19566 hardcode_minus_L_GCJ=yes
19567 # see comment about different semantics on the GNU ld section
19568 ld_shlibs_GCJ=no
19571 bsdi[45]*)
19572 export_dynamic_flag_spec_GCJ=-rdynamic
19575 cygwin* | mingw* | pw32*)
19576 # When not using gcc, we currently assume that we are using
19577 # Microsoft Visual C++.
19578 # hardcode_libdir_flag_spec is actually meaningless, as there is
19579 # no search path for DLLs.
19580 hardcode_libdir_flag_spec_GCJ=' '
19581 allow_undefined_flag_GCJ=unsupported
19582 # Tell ltmain to make .lib files, not .a files.
19583 libext=lib
19584 # Tell ltmain to make .dll files, not .so files.
19585 shrext_cmds=".dll"
19586 # FIXME: Setting linknames here is a bad hack.
19587 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19588 # The linker will automatically build a .lib file if we build a DLL.
19589 old_archive_From_new_cmds_GCJ='true'
19590 # FIXME: Should let the user specify the lib program.
19591 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19592 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19593 enable_shared_with_static_runtimes_GCJ=yes
19596 darwin* | rhapsody*)
19597 case $host_os in
19598 rhapsody* | darwin1.[012])
19599 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19601 *) # Darwin 1.3 on
19602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19603 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19604 else
19605 case ${MACOSX_DEPLOYMENT_TARGET} in
19606 10.[012])
19607 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19609 10.*)
19610 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19612 esac
19615 esac
19616 archive_cmds_need_lc_GCJ=no
19617 hardcode_direct_GCJ=no
19618 hardcode_automatic_GCJ=yes
19619 hardcode_shlibpath_var_GCJ=unsupported
19620 whole_archive_flag_spec_GCJ=''
19621 link_all_deplibs_GCJ=yes
19622 if test "$GCC" = yes ; then
19623 output_verbose_link_cmd='echo'
19624 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19625 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19626 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19627 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19628 else
19629 case $cc_basename in
19630 xlc*)
19631 output_verbose_link_cmd='echo'
19632 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19633 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19635 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19636 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}'
19639 ld_shlibs_GCJ=no
19641 esac
19645 dgux*)
19646 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19648 hardcode_shlibpath_var_GCJ=no
19651 freebsd1*)
19652 ld_shlibs_GCJ=no
19655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19656 # support. Future versions do this automatically, but an explicit c++rt0.o
19657 # does not break anything, and helps significantly (at the cost of a little
19658 # extra space).
19659 freebsd2.2*)
19660 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19661 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19662 hardcode_direct_GCJ=yes
19663 hardcode_shlibpath_var_GCJ=no
19666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19667 freebsd2*)
19668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_direct_GCJ=yes
19670 hardcode_minus_L_GCJ=yes
19671 hardcode_shlibpath_var_GCJ=no
19674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19675 freebsd* | dragonfly*)
19676 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19678 hardcode_direct_GCJ=yes
19679 hardcode_shlibpath_var_GCJ=no
19682 hpux9*)
19683 if test "$GCC" = yes; then
19684 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'
19685 else
19686 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'
19688 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19689 hardcode_libdir_separator_GCJ=:
19690 hardcode_direct_GCJ=yes
19692 # hardcode_minus_L: Not really in the search PATH,
19693 # but as the default location of the library.
19694 hardcode_minus_L_GCJ=yes
19695 export_dynamic_flag_spec_GCJ='${wl}-E'
19698 hpux10*)
19699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19700 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19701 else
19702 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19704 if test "$with_gnu_ld" = no; then
19705 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19706 hardcode_libdir_separator_GCJ=:
19708 hardcode_direct_GCJ=yes
19709 export_dynamic_flag_spec_GCJ='${wl}-E'
19711 # hardcode_minus_L: Not really in the search PATH,
19712 # but as the default location of the library.
19713 hardcode_minus_L_GCJ=yes
19717 hpux11*)
19718 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19719 case $host_cpu in
19720 hppa*64*)
19721 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 ia64*)
19724 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19729 esac
19730 else
19731 case $host_cpu in
19732 hppa*64*)
19733 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 ia64*)
19736 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19739 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19741 esac
19743 if test "$with_gnu_ld" = no; then
19744 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19745 hardcode_libdir_separator_GCJ=:
19747 case $host_cpu in
19748 hppa*64*|ia64*)
19749 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19750 hardcode_direct_GCJ=no
19751 hardcode_shlibpath_var_GCJ=no
19754 hardcode_direct_GCJ=yes
19755 export_dynamic_flag_spec_GCJ='${wl}-E'
19757 # hardcode_minus_L: Not really in the search PATH,
19758 # but as the default location of the library.
19759 hardcode_minus_L_GCJ=yes
19761 esac
19765 irix5* | irix6* | nonstopux*)
19766 if test "$GCC" = yes; then
19767 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'
19768 else
19769 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'
19770 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19772 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19773 hardcode_libdir_separator_GCJ=:
19774 link_all_deplibs_GCJ=yes
19777 netbsd* | netbsdelf*-gnu)
19778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19779 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19780 else
19781 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19783 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19784 hardcode_direct_GCJ=yes
19785 hardcode_shlibpath_var_GCJ=no
19788 newsos6)
19789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19790 hardcode_direct_GCJ=yes
19791 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19792 hardcode_libdir_separator_GCJ=:
19793 hardcode_shlibpath_var_GCJ=no
19796 openbsd*)
19797 if test -f /usr/libexec/ld.so; then
19798 hardcode_direct_GCJ=yes
19799 hardcode_shlibpath_var_GCJ=no
19800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19801 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19802 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19804 export_dynamic_flag_spec_GCJ='${wl}-E'
19805 else
19806 case $host_os in
19807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19808 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19812 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19815 esac
19817 else
19818 ld_shlibs_GCJ=no
19822 os2*)
19823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19824 hardcode_minus_L_GCJ=yes
19825 allow_undefined_flag_GCJ=unsupported
19826 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'
19827 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19830 osf3*)
19831 if test "$GCC" = yes; then
19832 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19833 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'
19834 else
19835 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19836 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'
19838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19839 hardcode_libdir_separator_GCJ=:
19842 osf4* | osf5*) # as osf3* with the addition of -msym flag
19843 if test "$GCC" = yes; then
19844 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19845 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'
19846 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19847 else
19848 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19849 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'
19850 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~
19851 $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'
19853 # Both c and cxx compiler support -rpath directly
19854 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19856 hardcode_libdir_separator_GCJ=:
19859 solaris*)
19860 no_undefined_flag_GCJ=' -z text'
19861 if test "$GCC" = yes; then
19862 wlarc='${wl}'
19863 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19864 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19865 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19866 else
19867 wlarc=''
19868 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19869 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19872 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19873 hardcode_shlibpath_var_GCJ=no
19874 case $host_os in
19875 solaris2.[0-5] | solaris2.[0-5].*) ;;
19877 # The compiler driver will combine and reorder linker options,
19878 # but understands `-z linker_flag'. GCC discards it without `$wl',
19879 # but is careful enough not to reorder.
19880 # Supported since Solaris 2.6 (maybe 2.5.1?)
19881 if test "$GCC" = yes; then
19882 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19883 else
19884 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19887 esac
19888 link_all_deplibs_GCJ=yes
19891 sunos4*)
19892 if test "x$host_vendor" = xsequent; then
19893 # Use $CC to link under sequent, because it throws in some extra .o
19894 # files that make .init and .fini sections work.
19895 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896 else
19897 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19900 hardcode_direct_GCJ=yes
19901 hardcode_minus_L_GCJ=yes
19902 hardcode_shlibpath_var_GCJ=no
19905 sysv4)
19906 case $host_vendor in
19907 sni)
19908 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909 hardcode_direct_GCJ=yes # is this really true???
19911 siemens)
19912 ## LD is ld it makes a PLAMLIB
19913 ## CC just makes a GrossModule.
19914 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19916 hardcode_direct_GCJ=no
19918 motorola)
19919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19922 esac
19923 runpath_var='LD_RUN_PATH'
19924 hardcode_shlibpath_var_GCJ=no
19927 sysv4.3*)
19928 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929 hardcode_shlibpath_var_GCJ=no
19930 export_dynamic_flag_spec_GCJ='-Bexport'
19933 sysv4*MP*)
19934 if test -d /usr/nec; then
19935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936 hardcode_shlibpath_var_GCJ=no
19937 runpath_var=LD_RUN_PATH
19938 hardcode_runpath_var=yes
19939 ld_shlibs_GCJ=yes
19943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19944 no_undefined_flag_GCJ='${wl}-z,text'
19945 archive_cmds_need_lc_GCJ=no
19946 hardcode_shlibpath_var_GCJ=no
19947 runpath_var='LD_RUN_PATH'
19949 if test "$GCC" = yes; then
19950 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19951 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 else
19953 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19954 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19958 sysv5* | sco3.2v5* | sco5v6*)
19959 # Note: We can NOT use -z defs as we might desire, because we do not
19960 # link with -lc, and that would cause any symbols used from libc to
19961 # always be unresolved, which means just about no library would
19962 # ever link correctly. If we're not using GNU ld we use -z text
19963 # though, which does catch some bad symbols but isn't as heavy-handed
19964 # as -z defs.
19965 no_undefined_flag_GCJ='${wl}-z,text'
19966 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19967 archive_cmds_need_lc_GCJ=no
19968 hardcode_shlibpath_var_GCJ=no
19969 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19970 hardcode_libdir_separator_GCJ=':'
19971 link_all_deplibs_GCJ=yes
19972 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19973 runpath_var='LD_RUN_PATH'
19975 if test "$GCC" = yes; then
19976 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19977 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19978 else
19979 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19980 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19984 uts4*)
19985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19987 hardcode_shlibpath_var_GCJ=no
19991 ld_shlibs_GCJ=no
19993 esac
19996 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19997 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19998 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20001 # Do we need to explicitly link libc?
20003 case "x$archive_cmds_need_lc_GCJ" in
20004 x|xyes)
20005 # Assume -lc should be added
20006 archive_cmds_need_lc_GCJ=yes
20008 if test "$enable_shared" = yes && test "$GCC" = yes; then
20009 case $archive_cmds_GCJ in
20010 *'~'*)
20011 # FIXME: we may have to deal with multi-command sequences.
20013 '$CC '*)
20014 # Test whether the compiler implicitly links with -lc since on some
20015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20016 # to ld, don't add -lc before -lgcc.
20017 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20018 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20019 $rm conftest*
20020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } 2>conftest.err; then
20027 soname=conftest
20028 lib=conftest
20029 libobjs=conftest.$ac_objext
20030 deplibs=
20031 wl=$lt_prog_compiler_wl_GCJ
20032 pic_flag=$lt_prog_compiler_pic_GCJ
20033 compiler_flags=-v
20034 linker_flags=-v
20035 verstring=
20036 output_objdir=.
20037 libname=conftest
20038 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20039 allow_undefined_flag_GCJ=
20040 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20041 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }
20045 then
20046 archive_cmds_need_lc_GCJ=no
20047 else
20048 archive_cmds_need_lc_GCJ=yes
20050 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20051 else
20052 cat conftest.err 1>&5
20054 $rm conftest*
20055 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20056 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20058 esac
20061 esac
20063 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20065 library_names_spec=
20066 libname_spec='lib$name'
20067 soname_spec=
20068 shrext_cmds=".so"
20069 postinstall_cmds=
20070 postuninstall_cmds=
20071 finish_cmds=
20072 finish_eval=
20073 shlibpath_var=
20074 shlibpath_overrides_runpath=unknown
20075 version_type=none
20076 dynamic_linker="$host_os ld.so"
20077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20079 need_lib_prefix=unknown
20080 hardcode_into_libs=no
20082 # when you set need_version to no, make sure it does not cause -set_version
20083 # flags to be left without arguments
20084 need_version=unknown
20086 case $host_os in
20087 aix3*)
20088 version_type=linux
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20090 shlibpath_var=LIBPATH
20092 # AIX 3 has no versioning support, so we append a major version to the name.
20093 soname_spec='${libname}${release}${shared_ext}$major'
20096 aix[4-9]*)
20097 version_type=linux
20098 need_lib_prefix=no
20099 need_version=no
20100 hardcode_into_libs=yes
20101 if test "$host_cpu" = ia64; then
20102 # AIX 5 supports IA64
20103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20104 shlibpath_var=LD_LIBRARY_PATH
20105 else
20106 # With GCC up to 2.95.x, collect2 would create an import file
20107 # for dependence libraries. The import file would start with
20108 # the line `#! .'. This would cause the generated library to
20109 # depend on `.', always an invalid library. This was fixed in
20110 # development snapshots of GCC prior to 3.0.
20111 case $host_os in
20112 aix4 | aix4.[01] | aix4.[01].*)
20113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20114 echo ' yes '
20115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20117 else
20118 can_build_shared=no
20121 esac
20122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20123 # soname into executable. Probably we can add versioning support to
20124 # collect2, so additional links can be useful in future.
20125 if test "$aix_use_runtimelinking" = yes; then
20126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20127 # instead of lib<name>.a to let people know that these are not
20128 # typical AIX shared libraries.
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20130 else
20131 # We preserve .a as extension for shared libraries through AIX4.2
20132 # and later when we are not doing run time linking.
20133 library_names_spec='${libname}${release}.a $libname.a'
20134 soname_spec='${libname}${release}${shared_ext}$major'
20136 shlibpath_var=LIBPATH
20140 amigaos*)
20141 library_names_spec='$libname.ixlibrary $libname.a'
20142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20143 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'
20146 beos*)
20147 library_names_spec='${libname}${shared_ext}'
20148 dynamic_linker="$host_os ld.so"
20149 shlibpath_var=LIBRARY_PATH
20152 bsdi[45]*)
20153 version_type=linux
20154 need_version=no
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20158 shlibpath_var=LD_LIBRARY_PATH
20159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20161 # the default ld.so.conf also contains /usr/contrib/lib and
20162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20163 # libtool to hard-code these into programs
20166 cygwin* | mingw* | pw32*)
20167 version_type=windows
20168 shrext_cmds=".dll"
20169 need_version=no
20170 need_lib_prefix=no
20172 case $GCC,$host_os in
20173 yes,cygwin* | yes,mingw* | yes,pw32*)
20174 library_names_spec='$libname.dll.a'
20175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20176 postinstall_cmds='base_file=`basename \${file}`~
20177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20178 dldir=$destdir/`dirname \$dlpath`~
20179 test -d \$dldir || mkdir -p \$dldir~
20180 $install_prog $dir/$dlname \$dldir/$dlname~
20181 chmod a+x \$dldir/$dlname'
20182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20183 dlpath=$dir/\$dldll~
20184 $rm \$dlpath'
20185 shlibpath_overrides_runpath=yes
20187 case $host_os in
20188 cygwin*)
20189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20193 mingw*)
20194 # MinGW DLLs use traditional 'lib' prefix
20195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20198 # It is most probably a Windows format PATH printed by
20199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20200 # path with ; separators, and with drive letters. We can handle the
20201 # drive letters (cygwin fileutils understands them), so leave them,
20202 # especially as we might pass files found there to a mingw objdump,
20203 # which wouldn't understand a cygwinified path. Ahh.
20204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20205 else
20206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20209 pw32*)
20210 # pw32 DLLs use 'pw' prefix rather than 'lib'
20211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20213 esac
20217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20219 esac
20220 dynamic_linker='Win32 ld.exe'
20221 # FIXME: first we should search . and the directory the executable is in
20222 shlibpath_var=PATH
20225 darwin* | rhapsody*)
20226 dynamic_linker="$host_os dyld"
20227 version_type=darwin
20228 need_lib_prefix=no
20229 need_version=no
20230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20231 soname_spec='${libname}${release}${major}$shared_ext'
20232 shlibpath_overrides_runpath=yes
20233 shlibpath_var=DYLD_LIBRARY_PATH
20234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20239 dgux*)
20240 version_type=linux
20241 need_lib_prefix=no
20242 need_version=no
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 shlibpath_var=LD_LIBRARY_PATH
20248 freebsd1*)
20249 dynamic_linker=no
20252 freebsd* | dragonfly*)
20253 # DragonFly does not have aout. When/if they implement a new
20254 # versioning mechanism, adjust this.
20255 if test -x /usr/bin/objformat; then
20256 objformat=`/usr/bin/objformat`
20257 else
20258 case $host_os in
20259 freebsd[123]*) objformat=aout ;;
20260 *) objformat=elf ;;
20261 esac
20263 version_type=freebsd-$objformat
20264 case $version_type in
20265 freebsd-elf*)
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20267 need_version=no
20268 need_lib_prefix=no
20270 freebsd-*)
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20272 need_version=yes
20274 esac
20275 shlibpath_var=LD_LIBRARY_PATH
20276 case $host_os in
20277 freebsd2*)
20278 shlibpath_overrides_runpath=yes
20280 freebsd3.[01]* | freebsdelf3.[01]*)
20281 shlibpath_overrides_runpath=yes
20282 hardcode_into_libs=yes
20284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20286 shlibpath_overrides_runpath=no
20287 hardcode_into_libs=yes
20289 *) # from 4.6 on, and DragonFly
20290 shlibpath_overrides_runpath=yes
20291 hardcode_into_libs=yes
20293 esac
20296 gnu*)
20297 version_type=linux
20298 need_lib_prefix=no
20299 need_version=no
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 hardcode_into_libs=yes
20306 hpux9* | hpux10* | hpux11*)
20307 # Give a soname corresponding to the major version so that dld.sl refuses to
20308 # link against other versions.
20309 version_type=sunos
20310 need_lib_prefix=no
20311 need_version=no
20312 case $host_cpu in
20313 ia64*)
20314 shrext_cmds='.so'
20315 hardcode_into_libs=yes
20316 dynamic_linker="$host_os dld.so"
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 if test "X$HPUX_IA64_MODE" = X32; then
20322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20323 else
20324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20328 hppa*64*)
20329 shrext_cmds='.sl'
20330 hardcode_into_libs=yes
20331 dynamic_linker="$host_os dld.sl"
20332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 soname_spec='${libname}${release}${shared_ext}$major'
20336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340 shrext_cmds='.sl'
20341 dynamic_linker="$host_os dld.sl"
20342 shlibpath_var=SHLIB_PATH
20343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20347 esac
20348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20349 postinstall_cmds='chmod 555 $lib'
20352 interix[3-9]*)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20364 irix5* | irix6* | nonstopux*)
20365 case $host_os in
20366 nonstopux*) version_type=nonstopux ;;
20368 if test "$lt_cv_prog_gnu_ld" = yes; then
20369 version_type=linux
20370 else
20371 version_type=irix
20372 fi ;;
20373 esac
20374 need_lib_prefix=no
20375 need_version=no
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20378 case $host_os in
20379 irix5* | nonstopux*)
20380 libsuff= shlibsuff=
20383 case $LD in # libtool.m4 will add one of these switches to LD
20384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20385 libsuff= shlibsuff= libmagic=32-bit;;
20386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20387 libsuff=32 shlibsuff=N32 libmagic=N32;;
20388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20390 *) libsuff= shlibsuff= libmagic=never-match;;
20391 esac
20393 esac
20394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20395 shlibpath_overrides_runpath=no
20396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20398 hardcode_into_libs=yes
20401 # No shared lib support for Linux oldld, aout, or coff.
20402 linux*oldld* | linux*aout* | linux*coff*)
20403 dynamic_linker=no
20406 # This must be Linux ELF.
20407 linux* | k*bsd*-gnu)
20408 version_type=linux
20409 need_lib_prefix=no
20410 need_version=no
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=no
20416 # This implies no fast_install, which is unacceptable.
20417 # Some rework will be needed to allow for fast_install
20418 # before this can be enabled.
20419 hardcode_into_libs=yes
20421 # Append ld.so.conf contents to the search path
20422 if test -f /etc/ld.so.conf; then
20423 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20427 # We used to test for /lib/ld.so.1 and disable shared libraries on
20428 # powerpc, because MkLinux only supported shared libraries with the
20429 # GNU dynamic linker. Since this was broken with cross compilers,
20430 # most powerpc-linux boxes support dynamic linking these days and
20431 # people can always --disable-shared, the test was removed, and we
20432 # assume the GNU/Linux dynamic linker is in use.
20433 dynamic_linker='GNU/Linux ld.so'
20436 netbsdelf*-gnu)
20437 version_type=linux
20438 need_lib_prefix=no
20439 need_version=no
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20441 soname_spec='${libname}${release}${shared_ext}$major'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 shlibpath_overrides_runpath=no
20444 hardcode_into_libs=yes
20445 dynamic_linker='NetBSD ld.elf_so'
20448 netbsd*)
20449 version_type=sunos
20450 need_lib_prefix=no
20451 need_version=no
20452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20455 dynamic_linker='NetBSD (a.out) ld.so'
20456 else
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 dynamic_linker='NetBSD ld.elf_so'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 hardcode_into_libs=yes
20466 newsos6)
20467 version_type=linux
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=yes
20473 nto-qnx*)
20474 version_type=linux
20475 need_lib_prefix=no
20476 need_version=no
20477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=yes
20483 openbsd*)
20484 version_type=sunos
20485 sys_lib_dlsearch_path_spec="/usr/lib"
20486 need_lib_prefix=no
20487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20488 case $host_os in
20489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20490 *) need_version=no ;;
20491 esac
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20494 shlibpath_var=LD_LIBRARY_PATH
20495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20496 case $host_os in
20497 openbsd2.[89] | openbsd2.[89].*)
20498 shlibpath_overrides_runpath=no
20501 shlibpath_overrides_runpath=yes
20503 esac
20504 else
20505 shlibpath_overrides_runpath=yes
20509 os2*)
20510 libname_spec='$name'
20511 shrext_cmds=".dll"
20512 need_lib_prefix=no
20513 library_names_spec='$libname${shared_ext} $libname.a'
20514 dynamic_linker='OS/2 ld.exe'
20515 shlibpath_var=LIBPATH
20518 osf3* | osf4* | osf5*)
20519 version_type=osf
20520 need_lib_prefix=no
20521 need_version=no
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20529 rdos*)
20530 dynamic_linker=no
20533 solaris*)
20534 version_type=linux
20535 need_lib_prefix=no
20536 need_version=no
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 shlibpath_overrides_runpath=yes
20541 hardcode_into_libs=yes
20542 # ldd complains unless libraries are executable
20543 postinstall_cmds='chmod +x $lib'
20546 sunos4*)
20547 version_type=sunos
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20550 shlibpath_var=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath=yes
20552 if test "$with_gnu_ld" = yes; then
20553 need_lib_prefix=no
20555 need_version=yes
20558 sysv4 | sysv4.3*)
20559 version_type=linux
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 shlibpath_var=LD_LIBRARY_PATH
20563 case $host_vendor in
20564 sni)
20565 shlibpath_overrides_runpath=no
20566 need_lib_prefix=no
20567 export_dynamic_flag_spec='${wl}-Blargedynsym'
20568 runpath_var=LD_RUN_PATH
20570 siemens)
20571 need_lib_prefix=no
20573 motorola)
20574 need_lib_prefix=no
20575 need_version=no
20576 shlibpath_overrides_runpath=no
20577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579 esac
20582 sysv4*MP*)
20583 if test -d /usr/nec ;then
20584 version_type=linux
20585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20586 soname_spec='$libname${shared_ext}.$major'
20587 shlibpath_var=LD_LIBRARY_PATH
20591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20592 version_type=freebsd-elf
20593 need_lib_prefix=no
20594 need_version=no
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20596 soname_spec='${libname}${release}${shared_ext}$major'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 hardcode_into_libs=yes
20599 if test "$with_gnu_ld" = yes; then
20600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20601 shlibpath_overrides_runpath=no
20602 else
20603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20604 shlibpath_overrides_runpath=yes
20605 case $host_os in
20606 sco3.2v5*)
20607 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20609 esac
20611 sys_lib_dlsearch_path_spec='/usr/lib'
20614 uts4*)
20615 version_type=linux
20616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617 soname_spec='${libname}${release}${shared_ext}$major'
20618 shlibpath_var=LD_LIBRARY_PATH
20622 dynamic_linker=no
20624 esac
20625 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20626 echo "${ECHO_T}$dynamic_linker" >&6; }
20627 test "$dynamic_linker" = no && can_build_shared=no
20629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20642 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20645 if test "$GCC" = yes; then
20646 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20651 hardcode_action_GCJ=
20652 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20653 test -n "$runpath_var_GCJ" || \
20654 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20656 # We can hardcode non-existant directories.
20657 if test "$hardcode_direct_GCJ" != no &&
20658 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20659 # have to relink, otherwise we might link with an installed library
20660 # when we should be linking with a yet-to-be-installed one
20661 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20662 test "$hardcode_minus_L_GCJ" != no; then
20663 # Linking always hardcodes the temporary library directory.
20664 hardcode_action_GCJ=relink
20665 else
20666 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20667 hardcode_action_GCJ=immediate
20669 else
20670 # We cannot hardcode anything, or else we can only hardcode existing
20671 # directories.
20672 hardcode_action_GCJ=unsupported
20674 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20675 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20677 if test "$hardcode_action_GCJ" = relink; then
20678 # Fast installation is not supported
20679 enable_fast_install=no
20680 elif test "$shlibpath_overrides_runpath" = yes ||
20681 test "$enable_shared" = no; then
20682 # Fast installation is not necessary
20683 enable_fast_install=needless
20687 # The else clause should only fire when bootstrapping the
20688 # libtool distribution, otherwise you forgot to ship ltmain.sh
20689 # with your package, and you will get complaints that there are
20690 # no rules to generate ltmain.sh.
20691 if test -f "$ltmain"; then
20692 # See if we are running on zsh, and set the options which allow our commands through
20693 # without removal of \ escapes.
20694 if test -n "${ZSH_VERSION+set}" ; then
20695 setopt NO_GLOB_SUBST
20697 # Now quote all the things that may contain metacharacters while being
20698 # careful not to overquote the AC_SUBSTed values. We take copies of the
20699 # variables and quote the copies for generation of the libtool script.
20700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20701 SED SHELL STRIP \
20702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20704 deplibs_check_method reload_flag reload_cmds need_locks \
20705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20706 lt_cv_sys_global_symbol_to_c_name_address \
20707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20708 old_postinstall_cmds old_postuninstall_cmds \
20709 compiler_GCJ \
20710 CC_GCJ \
20711 LD_GCJ \
20712 lt_prog_compiler_wl_GCJ \
20713 lt_prog_compiler_pic_GCJ \
20714 lt_prog_compiler_static_GCJ \
20715 lt_prog_compiler_no_builtin_flag_GCJ \
20716 export_dynamic_flag_spec_GCJ \
20717 thread_safe_flag_spec_GCJ \
20718 whole_archive_flag_spec_GCJ \
20719 enable_shared_with_static_runtimes_GCJ \
20720 old_archive_cmds_GCJ \
20721 old_archive_from_new_cmds_GCJ \
20722 predep_objects_GCJ \
20723 postdep_objects_GCJ \
20724 predeps_GCJ \
20725 postdeps_GCJ \
20726 compiler_lib_search_path_GCJ \
20727 compiler_lib_search_dirs_GCJ \
20728 archive_cmds_GCJ \
20729 archive_expsym_cmds_GCJ \
20730 postinstall_cmds_GCJ \
20731 postuninstall_cmds_GCJ \
20732 old_archive_from_expsyms_cmds_GCJ \
20733 allow_undefined_flag_GCJ \
20734 no_undefined_flag_GCJ \
20735 export_symbols_cmds_GCJ \
20736 hardcode_libdir_flag_spec_GCJ \
20737 hardcode_libdir_flag_spec_ld_GCJ \
20738 hardcode_libdir_separator_GCJ \
20739 hardcode_automatic_GCJ \
20740 module_cmds_GCJ \
20741 module_expsym_cmds_GCJ \
20742 lt_cv_prog_compiler_c_o_GCJ \
20743 fix_srcfile_path_GCJ \
20744 exclude_expsyms_GCJ \
20745 include_expsyms_GCJ; do
20747 case $var in
20748 old_archive_cmds_GCJ | \
20749 old_archive_from_new_cmds_GCJ | \
20750 archive_cmds_GCJ | \
20751 archive_expsym_cmds_GCJ | \
20752 module_cmds_GCJ | \
20753 module_expsym_cmds_GCJ | \
20754 old_archive_from_expsyms_cmds_GCJ | \
20755 export_symbols_cmds_GCJ | \
20756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20757 postinstall_cmds | postuninstall_cmds | \
20758 old_postinstall_cmds | old_postuninstall_cmds | \
20759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20760 # Double-quote double-evaled strings.
20761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20766 esac
20767 done
20769 case $lt_echo in
20770 *'\$0 --fallback-echo"')
20771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20773 esac
20775 cfgfile="$ofile"
20777 cat <<__EOF__ >> "$cfgfile"
20778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20782 # Shell to use when invoking shell scripts.
20783 SHELL=$lt_SHELL
20785 # Whether or not to build shared libraries.
20786 build_libtool_libs=$enable_shared
20788 # Whether or not to build static libraries.
20789 build_old_libs=$enable_static
20791 # Whether or not to add -lc for building shared libraries.
20792 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20794 # Whether or not to disallow shared libs when runtime libs are static
20795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20797 # Whether or not to optimize for fast installation.
20798 fast_install=$enable_fast_install
20800 # The host system.
20801 host_alias=$host_alias
20802 host=$host
20803 host_os=$host_os
20805 # The build system.
20806 build_alias=$build_alias
20807 build=$build
20808 build_os=$build_os
20810 # An echo program that does not interpret backslashes.
20811 echo=$lt_echo
20813 # The archiver.
20814 AR=$lt_AR
20815 AR_FLAGS=$lt_AR_FLAGS
20817 # A C compiler.
20818 LTCC=$lt_LTCC
20820 # LTCC compiler flags.
20821 LTCFLAGS=$lt_LTCFLAGS
20823 # A language-specific compiler.
20824 CC=$lt_compiler_GCJ
20826 # Is the compiler the GNU C compiler?
20827 with_gcc=$GCC_GCJ
20829 # An ERE matcher.
20830 EGREP=$lt_EGREP
20832 # The linker used to build libraries.
20833 LD=$lt_LD_GCJ
20835 # Whether we need hard or soft links.
20836 LN_S=$lt_LN_S
20838 # A BSD-compatible nm program.
20839 NM=$lt_NM
20841 # A symbol stripping program
20842 STRIP=$lt_STRIP
20844 # Used to examine libraries when file_magic_cmd begins "file"
20845 MAGIC_CMD=$MAGIC_CMD
20847 # Used on cygwin: DLL creation program.
20848 DLLTOOL="$DLLTOOL"
20850 # Used on cygwin: object dumper.
20851 OBJDUMP="$OBJDUMP"
20853 # Used on cygwin: assembler.
20854 AS="$AS"
20856 # The name of the directory that contains temporary libtool files.
20857 objdir=$objdir
20859 # How to create reloadable object files.
20860 reload_flag=$lt_reload_flag
20861 reload_cmds=$lt_reload_cmds
20863 # How to pass a linker flag through the compiler.
20864 wl=$lt_lt_prog_compiler_wl_GCJ
20866 # Object file suffix (normally "o").
20867 objext="$ac_objext"
20869 # Old archive suffix (normally "a").
20870 libext="$libext"
20872 # Shared library suffix (normally ".so").
20873 shrext_cmds='$shrext_cmds'
20875 # Executable file suffix (normally "").
20876 exeext="$exeext"
20878 # Additional compiler flags for building library objects.
20879 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20880 pic_mode=$pic_mode
20882 # What is the maximum length of a command?
20883 max_cmd_len=$lt_cv_sys_max_cmd_len
20885 # Does compiler simultaneously support -c and -o options?
20886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20888 # Must we lock files when doing compilation?
20889 need_locks=$lt_need_locks
20891 # Do we need the lib prefix for modules?
20892 need_lib_prefix=$need_lib_prefix
20894 # Do we need a version for libraries?
20895 need_version=$need_version
20897 # Whether dlopen is supported.
20898 dlopen_support=$enable_dlopen
20900 # Whether dlopen of programs is supported.
20901 dlopen_self=$enable_dlopen_self
20903 # Whether dlopen of statically linked programs is supported.
20904 dlopen_self_static=$enable_dlopen_self_static
20906 # Compiler flag to prevent dynamic linking.
20907 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20909 # Compiler flag to turn off builtin functions.
20910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20912 # Compiler flag to allow reflexive dlopens.
20913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20915 # Compiler flag to generate shared objects directly from archives.
20916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20918 # Compiler flag to generate thread-safe objects.
20919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20921 # Library versioning type.
20922 version_type=$version_type
20924 # Format of library name prefix.
20925 libname_spec=$lt_libname_spec
20927 # List of archive names. First name is the real one, the rest are links.
20928 # The last name is the one that the linker finds with -lNAME.
20929 library_names_spec=$lt_library_names_spec
20931 # The coded name of the library, if different from the real name.
20932 soname_spec=$lt_soname_spec
20934 # Commands used to build and install an old-style archive.
20935 RANLIB=$lt_RANLIB
20936 old_archive_cmds=$lt_old_archive_cmds_GCJ
20937 old_postinstall_cmds=$lt_old_postinstall_cmds
20938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20940 # Create an old-style archive from a shared archive.
20941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20943 # Create a temporary old-style archive to link instead of a shared archive.
20944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20946 # Commands used to build and install a shared archive.
20947 archive_cmds=$lt_archive_cmds_GCJ
20948 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20949 postinstall_cmds=$lt_postinstall_cmds
20950 postuninstall_cmds=$lt_postuninstall_cmds
20952 # Commands used to build a loadable module (assumed same as above if empty)
20953 module_cmds=$lt_module_cmds_GCJ
20954 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20956 # Commands to strip libraries.
20957 old_striplib=$lt_old_striplib
20958 striplib=$lt_striplib
20960 # Dependencies to place before the objects being linked to create a
20961 # shared library.
20962 predep_objects=$lt_predep_objects_GCJ
20964 # Dependencies to place after the objects being linked to create a
20965 # shared library.
20966 postdep_objects=$lt_postdep_objects_GCJ
20968 # Dependencies to place before the objects being linked to create a
20969 # shared library.
20970 predeps=$lt_predeps_GCJ
20972 # Dependencies to place after the objects being linked to create a
20973 # shared library.
20974 postdeps=$lt_postdeps_GCJ
20976 # The directories searched by this compiler when creating a shared
20977 # library
20978 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20980 # The library search path used internally by the compiler when linking
20981 # a shared library.
20982 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20984 # Method to check whether dependent libraries are shared objects.
20985 deplibs_check_method=$lt_deplibs_check_method
20987 # Command to use when deplibs_check_method == file_magic.
20988 file_magic_cmd=$lt_file_magic_cmd
20990 # Flag that allows shared libraries with undefined symbols to be built.
20991 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20993 # Flag that forces no undefined symbols.
20994 no_undefined_flag=$lt_no_undefined_flag_GCJ
20996 # Commands used to finish a libtool library installation in a directory.
20997 finish_cmds=$lt_finish_cmds
20999 # Same as above, but a single script fragment to be evaled but not shown.
21000 finish_eval=$lt_finish_eval
21002 # Take the output of nm and produce a listing of raw symbols and C names.
21003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21005 # Transform the output of nm in a proper C declaration
21006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21008 # Transform the output of nm in a C name address pair
21009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21011 # This is the shared library runtime path variable.
21012 runpath_var=$runpath_var
21014 # This is the shared library path variable.
21015 shlibpath_var=$shlibpath_var
21017 # Is shlibpath searched before the hard-coded library search path?
21018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21020 # How to hardcode a shared library path into an executable.
21021 hardcode_action=$hardcode_action_GCJ
21023 # Whether we should hardcode library paths into libraries.
21024 hardcode_into_libs=$hardcode_into_libs
21026 # Flag to hardcode \$libdir into a binary during linking.
21027 # This must work even if \$libdir does not exist.
21028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21030 # If ld is used when linking, flag to hardcode \$libdir into
21031 # a binary during linking. This must work even if \$libdir does
21032 # not exist.
21033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21035 # Whether we need a single -rpath flag with a separated argument.
21036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21039 # resulting binary.
21040 hardcode_direct=$hardcode_direct_GCJ
21042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21043 # resulting binary.
21044 hardcode_minus_L=$hardcode_minus_L_GCJ
21046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21047 # the resulting binary.
21048 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21050 # Set to yes if building a shared library automatically hardcodes DIR into the library
21051 # and all subsequent libraries and executables linked against it.
21052 hardcode_automatic=$hardcode_automatic_GCJ
21054 # Variables whose values should be saved in libtool wrapper scripts and
21055 # restored at relink time.
21056 variables_saved_for_relink="$variables_saved_for_relink"
21058 # Whether libtool must link a program against all its dependency libraries.
21059 link_all_deplibs=$link_all_deplibs_GCJ
21061 # Compile-time system search path for libraries
21062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21064 # Run-time system search path for libraries
21065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21067 # Fix the shell variable \$srcfile for the compiler.
21068 fix_srcfile_path=$lt_fix_srcfile_path
21070 # Set to yes if exported symbols are required.
21071 always_export_symbols=$always_export_symbols_GCJ
21073 # The commands to list exported symbols.
21074 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21076 # The commands to extract the exported symbol list from a shared archive.
21077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21079 # Symbols that should not be listed in the preloaded symbols.
21080 exclude_expsyms=$lt_exclude_expsyms_GCJ
21082 # Symbols that must always be exported.
21083 include_expsyms=$lt_include_expsyms_GCJ
21085 # ### END LIBTOOL TAG CONFIG: $tagname
21087 __EOF__
21090 else
21091 # If there is no Makefile yet, we rely on a make rule to execute
21092 # `config.status --recheck' to rerun these tests and create the
21093 # libtool script then.
21094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21095 if test -f "$ltmain_in"; then
21096 test -f Makefile && make "$ltmain"
21101 ac_ext=c
21102 ac_cpp='$CPP $CPPFLAGS'
21103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21107 CC="$lt_save_CC"
21109 else
21110 tagname=""
21117 # Source file extension for RC test sources.
21118 ac_ext=rc
21120 # Object file extension for compiled RC test sources.
21121 objext=o
21122 objext_RC=$objext
21124 # Code to be used in simple compile tests
21125 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21127 # Code to be used in simple link tests
21128 lt_simple_link_test_code="$lt_simple_compile_test_code"
21130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21132 # If no C compiler was specified, use CC.
21133 LTCC=${LTCC-"$CC"}
21135 # If no C compiler flags were specified, use CFLAGS.
21136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21138 # Allow CC to be a program name with arguments.
21139 compiler=$CC
21142 # save warnings/boilerplate of simple test code
21143 ac_outfile=conftest.$ac_objext
21144 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21145 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21146 _lt_compiler_boilerplate=`cat conftest.err`
21147 $rm conftest*
21149 ac_outfile=conftest.$ac_objext
21150 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21151 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21152 _lt_linker_boilerplate=`cat conftest.err`
21153 $rm -r conftest*
21156 # Allow CC to be a program name with arguments.
21157 lt_save_CC="$CC"
21158 CC=${RC-"windres"}
21159 compiler=$CC
21160 compiler_RC=$CC
21161 for cc_temp in $compiler""; do
21162 case $cc_temp in
21163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21165 \-*) ;;
21166 *) break;;
21167 esac
21168 done
21169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21171 lt_cv_prog_compiler_c_o_RC=yes
21173 # The else clause should only fire when bootstrapping the
21174 # libtool distribution, otherwise you forgot to ship ltmain.sh
21175 # with your package, and you will get complaints that there are
21176 # no rules to generate ltmain.sh.
21177 if test -f "$ltmain"; then
21178 # See if we are running on zsh, and set the options which allow our commands through
21179 # without removal of \ escapes.
21180 if test -n "${ZSH_VERSION+set}" ; then
21181 setopt NO_GLOB_SUBST
21183 # Now quote all the things that may contain metacharacters while being
21184 # careful not to overquote the AC_SUBSTed values. We take copies of the
21185 # variables and quote the copies for generation of the libtool script.
21186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21187 SED SHELL STRIP \
21188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21190 deplibs_check_method reload_flag reload_cmds need_locks \
21191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21192 lt_cv_sys_global_symbol_to_c_name_address \
21193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21194 old_postinstall_cmds old_postuninstall_cmds \
21195 compiler_RC \
21196 CC_RC \
21197 LD_RC \
21198 lt_prog_compiler_wl_RC \
21199 lt_prog_compiler_pic_RC \
21200 lt_prog_compiler_static_RC \
21201 lt_prog_compiler_no_builtin_flag_RC \
21202 export_dynamic_flag_spec_RC \
21203 thread_safe_flag_spec_RC \
21204 whole_archive_flag_spec_RC \
21205 enable_shared_with_static_runtimes_RC \
21206 old_archive_cmds_RC \
21207 old_archive_from_new_cmds_RC \
21208 predep_objects_RC \
21209 postdep_objects_RC \
21210 predeps_RC \
21211 postdeps_RC \
21212 compiler_lib_search_path_RC \
21213 compiler_lib_search_dirs_RC \
21214 archive_cmds_RC \
21215 archive_expsym_cmds_RC \
21216 postinstall_cmds_RC \
21217 postuninstall_cmds_RC \
21218 old_archive_from_expsyms_cmds_RC \
21219 allow_undefined_flag_RC \
21220 no_undefined_flag_RC \
21221 export_symbols_cmds_RC \
21222 hardcode_libdir_flag_spec_RC \
21223 hardcode_libdir_flag_spec_ld_RC \
21224 hardcode_libdir_separator_RC \
21225 hardcode_automatic_RC \
21226 module_cmds_RC \
21227 module_expsym_cmds_RC \
21228 lt_cv_prog_compiler_c_o_RC \
21229 fix_srcfile_path_RC \
21230 exclude_expsyms_RC \
21231 include_expsyms_RC; do
21233 case $var in
21234 old_archive_cmds_RC | \
21235 old_archive_from_new_cmds_RC | \
21236 archive_cmds_RC | \
21237 archive_expsym_cmds_RC | \
21238 module_cmds_RC | \
21239 module_expsym_cmds_RC | \
21240 old_archive_from_expsyms_cmds_RC | \
21241 export_symbols_cmds_RC | \
21242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21243 postinstall_cmds | postuninstall_cmds | \
21244 old_postinstall_cmds | old_postuninstall_cmds | \
21245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21246 # Double-quote double-evaled strings.
21247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21252 esac
21253 done
21255 case $lt_echo in
21256 *'\$0 --fallback-echo"')
21257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21259 esac
21261 cfgfile="$ofile"
21263 cat <<__EOF__ >> "$cfgfile"
21264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21268 # Shell to use when invoking shell scripts.
21269 SHELL=$lt_SHELL
21271 # Whether or not to build shared libraries.
21272 build_libtool_libs=$enable_shared
21274 # Whether or not to build static libraries.
21275 build_old_libs=$enable_static
21277 # Whether or not to add -lc for building shared libraries.
21278 build_libtool_need_lc=$archive_cmds_need_lc_RC
21280 # Whether or not to disallow shared libs when runtime libs are static
21281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21283 # Whether or not to optimize for fast installation.
21284 fast_install=$enable_fast_install
21286 # The host system.
21287 host_alias=$host_alias
21288 host=$host
21289 host_os=$host_os
21291 # The build system.
21292 build_alias=$build_alias
21293 build=$build
21294 build_os=$build_os
21296 # An echo program that does not interpret backslashes.
21297 echo=$lt_echo
21299 # The archiver.
21300 AR=$lt_AR
21301 AR_FLAGS=$lt_AR_FLAGS
21303 # A C compiler.
21304 LTCC=$lt_LTCC
21306 # LTCC compiler flags.
21307 LTCFLAGS=$lt_LTCFLAGS
21309 # A language-specific compiler.
21310 CC=$lt_compiler_RC
21312 # Is the compiler the GNU C compiler?
21313 with_gcc=$GCC_RC
21315 # An ERE matcher.
21316 EGREP=$lt_EGREP
21318 # The linker used to build libraries.
21319 LD=$lt_LD_RC
21321 # Whether we need hard or soft links.
21322 LN_S=$lt_LN_S
21324 # A BSD-compatible nm program.
21325 NM=$lt_NM
21327 # A symbol stripping program
21328 STRIP=$lt_STRIP
21330 # Used to examine libraries when file_magic_cmd begins "file"
21331 MAGIC_CMD=$MAGIC_CMD
21333 # Used on cygwin: DLL creation program.
21334 DLLTOOL="$DLLTOOL"
21336 # Used on cygwin: object dumper.
21337 OBJDUMP="$OBJDUMP"
21339 # Used on cygwin: assembler.
21340 AS="$AS"
21342 # The name of the directory that contains temporary libtool files.
21343 objdir=$objdir
21345 # How to create reloadable object files.
21346 reload_flag=$lt_reload_flag
21347 reload_cmds=$lt_reload_cmds
21349 # How to pass a linker flag through the compiler.
21350 wl=$lt_lt_prog_compiler_wl_RC
21352 # Object file suffix (normally "o").
21353 objext="$ac_objext"
21355 # Old archive suffix (normally "a").
21356 libext="$libext"
21358 # Shared library suffix (normally ".so").
21359 shrext_cmds='$shrext_cmds'
21361 # Executable file suffix (normally "").
21362 exeext="$exeext"
21364 # Additional compiler flags for building library objects.
21365 pic_flag=$lt_lt_prog_compiler_pic_RC
21366 pic_mode=$pic_mode
21368 # What is the maximum length of a command?
21369 max_cmd_len=$lt_cv_sys_max_cmd_len
21371 # Does compiler simultaneously support -c and -o options?
21372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21374 # Must we lock files when doing compilation?
21375 need_locks=$lt_need_locks
21377 # Do we need the lib prefix for modules?
21378 need_lib_prefix=$need_lib_prefix
21380 # Do we need a version for libraries?
21381 need_version=$need_version
21383 # Whether dlopen is supported.
21384 dlopen_support=$enable_dlopen
21386 # Whether dlopen of programs is supported.
21387 dlopen_self=$enable_dlopen_self
21389 # Whether dlopen of statically linked programs is supported.
21390 dlopen_self_static=$enable_dlopen_self_static
21392 # Compiler flag to prevent dynamic linking.
21393 link_static_flag=$lt_lt_prog_compiler_static_RC
21395 # Compiler flag to turn off builtin functions.
21396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21398 # Compiler flag to allow reflexive dlopens.
21399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21401 # Compiler flag to generate shared objects directly from archives.
21402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21404 # Compiler flag to generate thread-safe objects.
21405 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21407 # Library versioning type.
21408 version_type=$version_type
21410 # Format of library name prefix.
21411 libname_spec=$lt_libname_spec
21413 # List of archive names. First name is the real one, the rest are links.
21414 # The last name is the one that the linker finds with -lNAME.
21415 library_names_spec=$lt_library_names_spec
21417 # The coded name of the library, if different from the real name.
21418 soname_spec=$lt_soname_spec
21420 # Commands used to build and install an old-style archive.
21421 RANLIB=$lt_RANLIB
21422 old_archive_cmds=$lt_old_archive_cmds_RC
21423 old_postinstall_cmds=$lt_old_postinstall_cmds
21424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21426 # Create an old-style archive from a shared archive.
21427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21429 # Create a temporary old-style archive to link instead of a shared archive.
21430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21432 # Commands used to build and install a shared archive.
21433 archive_cmds=$lt_archive_cmds_RC
21434 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21435 postinstall_cmds=$lt_postinstall_cmds
21436 postuninstall_cmds=$lt_postuninstall_cmds
21438 # Commands used to build a loadable module (assumed same as above if empty)
21439 module_cmds=$lt_module_cmds_RC
21440 module_expsym_cmds=$lt_module_expsym_cmds_RC
21442 # Commands to strip libraries.
21443 old_striplib=$lt_old_striplib
21444 striplib=$lt_striplib
21446 # Dependencies to place before the objects being linked to create a
21447 # shared library.
21448 predep_objects=$lt_predep_objects_RC
21450 # Dependencies to place after the objects being linked to create a
21451 # shared library.
21452 postdep_objects=$lt_postdep_objects_RC
21454 # Dependencies to place before the objects being linked to create a
21455 # shared library.
21456 predeps=$lt_predeps_RC
21458 # Dependencies to place after the objects being linked to create a
21459 # shared library.
21460 postdeps=$lt_postdeps_RC
21462 # The directories searched by this compiler when creating a shared
21463 # library
21464 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21466 # The library search path used internally by the compiler when linking
21467 # a shared library.
21468 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21470 # Method to check whether dependent libraries are shared objects.
21471 deplibs_check_method=$lt_deplibs_check_method
21473 # Command to use when deplibs_check_method == file_magic.
21474 file_magic_cmd=$lt_file_magic_cmd
21476 # Flag that allows shared libraries with undefined symbols to be built.
21477 allow_undefined_flag=$lt_allow_undefined_flag_RC
21479 # Flag that forces no undefined symbols.
21480 no_undefined_flag=$lt_no_undefined_flag_RC
21482 # Commands used to finish a libtool library installation in a directory.
21483 finish_cmds=$lt_finish_cmds
21485 # Same as above, but a single script fragment to be evaled but not shown.
21486 finish_eval=$lt_finish_eval
21488 # Take the output of nm and produce a listing of raw symbols and C names.
21489 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21491 # Transform the output of nm in a proper C declaration
21492 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21494 # Transform the output of nm in a C name address pair
21495 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21497 # This is the shared library runtime path variable.
21498 runpath_var=$runpath_var
21500 # This is the shared library path variable.
21501 shlibpath_var=$shlibpath_var
21503 # Is shlibpath searched before the hard-coded library search path?
21504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21506 # How to hardcode a shared library path into an executable.
21507 hardcode_action=$hardcode_action_RC
21509 # Whether we should hardcode library paths into libraries.
21510 hardcode_into_libs=$hardcode_into_libs
21512 # Flag to hardcode \$libdir into a binary during linking.
21513 # This must work even if \$libdir does not exist.
21514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21516 # If ld is used when linking, flag to hardcode \$libdir into
21517 # a binary during linking. This must work even if \$libdir does
21518 # not exist.
21519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21521 # Whether we need a single -rpath flag with a separated argument.
21522 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21524 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21525 # resulting binary.
21526 hardcode_direct=$hardcode_direct_RC
21528 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21529 # resulting binary.
21530 hardcode_minus_L=$hardcode_minus_L_RC
21532 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21533 # the resulting binary.
21534 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21536 # Set to yes if building a shared library automatically hardcodes DIR into the library
21537 # and all subsequent libraries and executables linked against it.
21538 hardcode_automatic=$hardcode_automatic_RC
21540 # Variables whose values should be saved in libtool wrapper scripts and
21541 # restored at relink time.
21542 variables_saved_for_relink="$variables_saved_for_relink"
21544 # Whether libtool must link a program against all its dependency libraries.
21545 link_all_deplibs=$link_all_deplibs_RC
21547 # Compile-time system search path for libraries
21548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21550 # Run-time system search path for libraries
21551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21553 # Fix the shell variable \$srcfile for the compiler.
21554 fix_srcfile_path=$lt_fix_srcfile_path
21556 # Set to yes if exported symbols are required.
21557 always_export_symbols=$always_export_symbols_RC
21559 # The commands to list exported symbols.
21560 export_symbols_cmds=$lt_export_symbols_cmds_RC
21562 # The commands to extract the exported symbol list from a shared archive.
21563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21565 # Symbols that should not be listed in the preloaded symbols.
21566 exclude_expsyms=$lt_exclude_expsyms_RC
21568 # Symbols that must always be exported.
21569 include_expsyms=$lt_include_expsyms_RC
21571 # ### END LIBTOOL TAG CONFIG: $tagname
21573 __EOF__
21576 else
21577 # If there is no Makefile yet, we rely on a make rule to execute
21578 # `config.status --recheck' to rerun these tests and create the
21579 # libtool script then.
21580 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21581 if test -f "$ltmain_in"; then
21582 test -f Makefile && make "$ltmain"
21587 ac_ext=c
21588 ac_cpp='$CPP $CPPFLAGS'
21589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21593 CC="$lt_save_CC"
21598 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21599 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21600 { (exit 1); exit 1; }; }
21602 esac
21604 # Append the new tag name to the list of available tags.
21605 if test -n "$tagname" ; then
21606 available_tags="$available_tags $tagname"
21609 done
21610 IFS="$lt_save_ifs"
21612 # Now substitute the updated list of available tags.
21613 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21614 mv "${ofile}T" "$ofile"
21615 chmod +x "$ofile"
21616 else
21617 rm -f "${ofile}T"
21618 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21619 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21620 { (exit 1); exit 1; }; }
21626 # This can be used to rebuild libtool when needed
21627 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21629 # Always use our own libtool.
21630 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21632 # Prevent multiple expansion
21654 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
21655 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
21656 if test "${ac_cv_path_SED+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21660 for ac_i in 1 2 3 4 5 6 7; do
21661 ac_script="$ac_script$as_nl$ac_script"
21662 done
21663 echo "$ac_script" | sed 99q >conftest.sed
21664 $as_unset ac_script || ac_script=
21665 # Extract the first word of "sed gsed" to use in msg output
21666 if test -z "$SED"; then
21667 set dummy sed gsed; ac_prog_name=$2
21668 if test "${ac_cv_path_SED+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 ac_path_SED_found=false
21672 # Loop through the user's path and test for each of PROGNAME-LIST
21673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21674 for as_dir in $PATH
21676 IFS=$as_save_IFS
21677 test -z "$as_dir" && as_dir=.
21678 for ac_prog in sed gsed; do
21679 for ac_exec_ext in '' $ac_executable_extensions; do
21680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
21681 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
21682 # Check for GNU ac_path_SED and select it if it is found.
21683 # Check for GNU $ac_path_SED
21684 case `"$ac_path_SED" --version 2>&1` in
21685 *GNU*)
21686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21688 ac_count=0
21689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
21690 while :
21692 cat "conftest.in" "conftest.in" >"conftest.tmp"
21693 mv "conftest.tmp" "conftest.in"
21694 cp "conftest.in" "conftest.nl"
21695 echo '' >> "conftest.nl"
21696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21698 ac_count=`expr $ac_count + 1`
21699 if test $ac_count -gt ${ac_path_SED_max-0}; then
21700 # Best one so far, save it but keep looking for a better one
21701 ac_cv_path_SED="$ac_path_SED"
21702 ac_path_SED_max=$ac_count
21704 # 10*(2^10) chars as input seems more than enough
21705 test $ac_count -gt 10 && break
21706 done
21707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21708 esac
21711 $ac_path_SED_found && break 3
21712 done
21713 done
21715 done
21716 IFS=$as_save_IFS
21721 SED="$ac_cv_path_SED"
21722 if test -z "$SED"; then
21723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
21724 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
21725 { (exit 1); exit 1; }; }
21728 else
21729 ac_cv_path_SED=$SED
21733 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
21734 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
21735 SED="$ac_cv_path_SED"
21736 rm -f conftest.sed
21743 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
21745 { echo "$as_me:$LINENO: checking whether the C compiler accepts the -fvisibility=hidden flag" >&5
21746 echo $ECHO_N "checking whether the C compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
21747 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21752 ac_ext=c
21753 ac_cpp='$CPP $CPPFLAGS'
21754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21759 save_CFLAGS="$CFLAGS"
21760 CFLAGS="$CFLAGS -fvisibility=hidden"
21761 cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h. */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21770 main ()
21774 return 0;
21777 _ACEOF
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21796 eval "ax_cv_c_check_flag_$flag=yes"
21798 else
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21803 eval "ax_cv_c_check_flag_$flag=no"
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 CFLAGS="$save_CFLAGS"
21811 ac_ext=c
21812 ac_cpp='$CPP $CPPFLAGS'
21813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21820 ac_res=`eval echo '${'ax_cv_c_check_flag_$flag'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21824 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
21827 HAVE_C_GCCVISIBILITY=1
21829 else
21832 HAVE_C_GCCVISIBILITY=0
21842 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
21844 { echo "$as_me:$LINENO: checking whether the C++ compiler accepts the -fvisibility=hidden flag" >&5
21845 echo $ECHO_N "checking whether the C++ compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
21846 if { as_var=ax_cv_cxx_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21851 ac_ext=cpp
21852 ac_cpp='$CXXCPP $CPPFLAGS'
21853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21858 save_CXXFLAGS="$CXXFLAGS"
21859 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21860 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21869 main ()
21873 return 0;
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (ac_try="$ac_compile"
21879 case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21882 esac
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_compile") 2>conftest.er1
21885 ac_status=$?
21886 grep -v '^ *+' conftest.er1 >conftest.err
21887 rm -f conftest.er1
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } && {
21891 test -z "$ac_cxx_werror_flag" ||
21892 test ! -s conftest.err
21893 } && test -s conftest.$ac_objext; then
21895 eval "ax_cv_cxx_check_flag_$flag=yes"
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21902 eval "ax_cv_cxx_check_flag_$flag=no"
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 CXXFLAGS="$save_CXXFLAGS"
21910 ac_ext=c
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21919 ac_res=`eval echo '${'ax_cv_cxx_check_flag_$flag'}'`
21920 { echo "$as_me:$LINENO: result: $ac_res" >&5
21921 echo "${ECHO_T}$ac_res" >&6; }
21923 if eval "test \"`echo '$ax_cv_cxx_check_flag_'$flag`\" = yes"; then
21926 HAVE_CXX_GCCVISIBILITY=1
21928 else
21931 HAVE_CXX_GCCVISIBILITY=0
21938 if test "$HAVE_C_GCCVISIBILITY" = "1" -a "$HAVE_CXX_GCCVISIBILITY" = "1"; then
21939 WITH_GCCVISIBILITY_TRUE=
21940 WITH_GCCVISIBILITY_FALSE='#'
21941 else
21942 WITH_GCCVISIBILITY_TRUE='#'
21943 WITH_GCCVISIBILITY_FALSE=
21947 ac_ext=cpp
21948 ac_cpp='$CXXCPP $CPPFLAGS'
21949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21955 pkg_failed=no
21956 { echo "$as_me:$LINENO: checking for BARRY" >&5
21957 echo $ECHO_N "checking for BARRY... $ECHO_C" >&6; }
21959 if test -n "$PKG_CONFIG"; then
21960 if test -n "$BARRY_CFLAGS"; then
21961 pkg_cv_BARRY_CFLAGS="$BARRY_CFLAGS"
21962 else
21963 if test -n "$PKG_CONFIG" && \
21964 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
21965 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; then
21969 pkg_cv_BARRY_CFLAGS=`$PKG_CONFIG --cflags "libbarry-0 libusb" 2>/dev/null`
21970 else
21971 pkg_failed=yes
21974 else
21975 pkg_failed=untried
21977 if test -n "$PKG_CONFIG"; then
21978 if test -n "$BARRY_LIBS"; then
21979 pkg_cv_BARRY_LIBS="$BARRY_LIBS"
21980 else
21981 if test -n "$PKG_CONFIG" && \
21982 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
21983 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; then
21987 pkg_cv_BARRY_LIBS=`$PKG_CONFIG --libs "libbarry-0 libusb" 2>/dev/null`
21988 else
21989 pkg_failed=yes
21992 else
21993 pkg_failed=untried
21998 if test $pkg_failed = yes; then
22000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22001 _pkg_short_errors_supported=yes
22002 else
22003 _pkg_short_errors_supported=no
22005 if test $_pkg_short_errors_supported = yes; then
22006 BARRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarry-0 libusb"`
22007 else
22008 BARRY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarry-0 libusb"`
22010 # Put the nasty error message in config.log where it belongs
22011 echo "$BARRY_PKG_ERRORS" >&5
22013 { { echo "$as_me:$LINENO: error: Package requirements (libbarry-0 libusb) were not met:
22015 $BARRY_PKG_ERRORS
22017 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22018 installed software in a non-standard prefix.
22020 Alternatively, you may set the environment variables BARRY_CFLAGS
22021 and BARRY_LIBS to avoid the need to call pkg-config.
22022 See the pkg-config man page for more details.
22023 " >&5
22024 echo "$as_me: error: Package requirements (libbarry-0 libusb) were not met:
22026 $BARRY_PKG_ERRORS
22028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22029 installed software in a non-standard prefix.
22031 Alternatively, you may set the environment variables BARRY_CFLAGS
22032 and BARRY_LIBS to avoid the need to call pkg-config.
22033 See the pkg-config man page for more details.
22034 " >&2;}
22035 { (exit 1); exit 1; }; }
22036 elif test $pkg_failed = untried; then
22037 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22038 is in your PATH or set the PKG_CONFIG environment variable to the full
22039 path to pkg-config.
22041 Alternatively, you may set the environment variables BARRY_CFLAGS
22042 and BARRY_LIBS to avoid the need to call pkg-config.
22043 See the pkg-config man page for more details.
22045 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22046 See \`config.log' for more details." >&5
22047 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22048 is in your PATH or set the PKG_CONFIG environment variable to the full
22049 path to pkg-config.
22051 Alternatively, you may set the environment variables BARRY_CFLAGS
22052 and BARRY_LIBS to avoid the need to call pkg-config.
22053 See the pkg-config man page for more details.
22055 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22056 See \`config.log' for more details." >&2;}
22057 { (exit 1); exit 1; }; }
22058 else
22059 BARRY_CFLAGS=$pkg_cv_BARRY_CFLAGS
22060 BARRY_LIBS=$pkg_cv_BARRY_LIBS
22061 { echo "$as_me:$LINENO: result: yes" >&5
22062 echo "${ECHO_T}yes" >&6; }
22066 # Carry the special tree build environment variables from parent configure,
22067 # just in case user is doing a complete tree build with --enable-opensync-plugin
22071 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir opensync-1.0)
22072 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir opensync-1.0)
22073 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir opensync-1.0)
22074 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir opensync-1.0)
22076 ## This is the place where you can install the default configuration files of your plugin
22077 ## This is the dir where you plugin will be installed
22078 ## Here are format plugins installed (if any)
22079 ## Here are the headers that a user interface may need (if any)
22081 ac_config_files="$ac_config_files Makefile src/Makefile"
22083 cat >confcache <<\_ACEOF
22084 # This file is a shell script that caches the results of configure
22085 # tests run on this system so they can be shared between configure
22086 # scripts and configure runs, see configure's option --config-cache.
22087 # It is not useful on other systems. If it contains results you don't
22088 # want to keep, you may remove or edit it.
22090 # config.status only pays attention to the cache file if you give it
22091 # the --recheck option to rerun configure.
22093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22095 # following values.
22097 _ACEOF
22099 # The following way of writing the cache mishandles newlines in values,
22100 # but we know of no workaround that is simple, portable, and efficient.
22101 # So, we kill variables containing newlines.
22102 # Ultrix sh set writes to stderr and can't be redirected directly,
22103 # and sets the high bit in the cache file unless we assign to the vars.
22105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22106 eval ac_val=\$$ac_var
22107 case $ac_val in #(
22108 *${as_nl}*)
22109 case $ac_var in #(
22110 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22111 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22112 esac
22113 case $ac_var in #(
22114 _ | IFS | as_nl) ;; #(
22115 *) $as_unset $ac_var ;;
22116 esac ;;
22117 esac
22118 done
22120 (set) 2>&1 |
22121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22122 *${as_nl}ac_space=\ *)
22123 # `set' does not quote correctly, so add quotes (double-quote
22124 # substitution turns \\\\ into \\, and sed turns \\ into \).
22125 sed -n \
22126 "s/'/'\\\\''/g;
22127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22128 ;; #(
22130 # `set' quotes correctly as required by POSIX, so do not add quotes.
22131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22133 esac |
22134 sort
22136 sed '
22137 /^ac_cv_env_/b end
22138 t clear
22139 :clear
22140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22141 t end
22142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22143 :end' >>confcache
22144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22145 if test -w "$cache_file"; then
22146 test "x$cache_file" != "x/dev/null" &&
22147 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22148 echo "$as_me: updating cache $cache_file" >&6;}
22149 cat confcache >$cache_file
22150 else
22151 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22152 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22155 rm -f confcache
22157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22158 # Let make expand exec_prefix.
22159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22161 DEFS=-DHAVE_CONFIG_H
22163 ac_libobjs=
22164 ac_ltlibobjs=
22165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22166 # 1. Remove the extension, and $U if already installed.
22167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22168 ac_i=`echo "$ac_i" | sed "$ac_script"`
22169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22170 # will be set to the directory where LIBOBJS objects are built.
22171 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22172 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22173 done
22174 LIBOBJS=$ac_libobjs
22176 LTLIBOBJS=$ac_ltlibobjs
22179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22180 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22181 Usually this means the macro was only invoked conditionally." >&5
22182 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22183 Usually this means the macro was only invoked conditionally." >&2;}
22184 { (exit 1); exit 1; }; }
22186 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22187 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22188 Usually this means the macro was only invoked conditionally." >&5
22189 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22190 Usually this means the macro was only invoked conditionally." >&2;}
22191 { (exit 1); exit 1; }; }
22193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22194 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22195 Usually this means the macro was only invoked conditionally." >&5
22196 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22197 Usually this means the macro was only invoked conditionally." >&2;}
22198 { (exit 1); exit 1; }; }
22200 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22201 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22202 Usually this means the macro was only invoked conditionally." >&5
22203 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22204 Usually this means the macro was only invoked conditionally." >&2;}
22205 { (exit 1); exit 1; }; }
22207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22208 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22209 Usually this means the macro was only invoked conditionally." >&5
22210 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22211 Usually this means the macro was only invoked conditionally." >&2;}
22212 { (exit 1); exit 1; }; }
22214 if test -z "${WITH_GCCVISIBILITY_TRUE}" && test -z "${WITH_GCCVISIBILITY_FALSE}"; then
22215 { { echo "$as_me:$LINENO: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
22216 Usually this means the macro was only invoked conditionally." >&5
22217 echo "$as_me: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
22218 Usually this means the macro was only invoked conditionally." >&2;}
22219 { (exit 1); exit 1; }; }
22222 : ${CONFIG_STATUS=./config.status}
22223 ac_clean_files_save=$ac_clean_files
22224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22225 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22226 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22227 cat >$CONFIG_STATUS <<_ACEOF
22228 #! $SHELL
22229 # Generated by $as_me.
22230 # Run this file to recreate the current configuration.
22231 # Compiler output produced by configure, useful for debugging
22232 # configure, is in config.log if it exists.
22234 debug=false
22235 ac_cs_recheck=false
22236 ac_cs_silent=false
22237 SHELL=\${CONFIG_SHELL-$SHELL}
22238 _ACEOF
22240 cat >>$CONFIG_STATUS <<\_ACEOF
22241 ## --------------------- ##
22242 ## M4sh Initialization. ##
22243 ## --------------------- ##
22245 # Be more Bourne compatible
22246 DUALCASE=1; export DUALCASE # for MKS sh
22247 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22248 emulate sh
22249 NULLCMD=:
22250 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22251 # is contrary to our usage. Disable this feature.
22252 alias -g '${1+"$@"}'='"$@"'
22253 setopt NO_GLOB_SUBST
22254 else
22255 case `(set -o) 2>/dev/null` in
22256 *posix*) set -o posix ;;
22257 esac
22264 # PATH needs CR
22265 # Avoid depending upon Character Ranges.
22266 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22267 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22268 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22269 as_cr_digits='0123456789'
22270 as_cr_alnum=$as_cr_Letters$as_cr_digits
22272 # The user is always right.
22273 if test "${PATH_SEPARATOR+set}" != set; then
22274 echo "#! /bin/sh" >conf$$.sh
22275 echo "exit 0" >>conf$$.sh
22276 chmod +x conf$$.sh
22277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22278 PATH_SEPARATOR=';'
22279 else
22280 PATH_SEPARATOR=:
22282 rm -f conf$$.sh
22285 # Support unset when possible.
22286 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22287 as_unset=unset
22288 else
22289 as_unset=false
22293 # IFS
22294 # We need space, tab and new line, in precisely that order. Quoting is
22295 # there to prevent editors from complaining about space-tab.
22296 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22297 # splitting by setting IFS to empty value.)
22298 as_nl='
22300 IFS=" "" $as_nl"
22302 # Find who we are. Look in the path if we contain no directory separator.
22303 case $0 in
22304 *[\\/]* ) as_myself=$0 ;;
22305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22306 for as_dir in $PATH
22308 IFS=$as_save_IFS
22309 test -z "$as_dir" && as_dir=.
22310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22311 done
22312 IFS=$as_save_IFS
22315 esac
22316 # We did not find ourselves, most probably we were run as `sh COMMAND'
22317 # in which case we are not to be found in the path.
22318 if test "x$as_myself" = x; then
22319 as_myself=$0
22321 if test ! -f "$as_myself"; then
22322 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22323 { (exit 1); exit 1; }
22326 # Work around bugs in pre-3.0 UWIN ksh.
22327 for as_var in ENV MAIL MAILPATH
22328 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22329 done
22330 PS1='$ '
22331 PS2='> '
22332 PS4='+ '
22334 # NLS nuisances.
22335 for as_var in \
22336 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22337 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22338 LC_TELEPHONE LC_TIME
22340 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22341 eval $as_var=C; export $as_var
22342 else
22343 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22345 done
22347 # Required to use basename.
22348 if expr a : '\(a\)' >/dev/null 2>&1 &&
22349 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22350 as_expr=expr
22351 else
22352 as_expr=false
22355 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22356 as_basename=basename
22357 else
22358 as_basename=false
22362 # Name of the executable.
22363 as_me=`$as_basename -- "$0" ||
22364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22365 X"$0" : 'X\(//\)$' \| \
22366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22367 echo X/"$0" |
22368 sed '/^.*\/\([^/][^/]*\)\/*$/{
22369 s//\1/
22372 /^X\/\(\/\/\)$/{
22373 s//\1/
22376 /^X\/\(\/\).*/{
22377 s//\1/
22380 s/.*/./; q'`
22382 # CDPATH.
22383 $as_unset CDPATH
22387 as_lineno_1=$LINENO
22388 as_lineno_2=$LINENO
22389 test "x$as_lineno_1" != "x$as_lineno_2" &&
22390 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22392 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22393 # uniformly replaced by the line number. The first 'sed' inserts a
22394 # line-number line after each line using $LINENO; the second 'sed'
22395 # does the real work. The second script uses 'N' to pair each
22396 # line-number line with the line containing $LINENO, and appends
22397 # trailing '-' during substitution so that $LINENO is not a special
22398 # case at line end.
22399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22400 # scripts with optimization help from Paolo Bonzini. Blame Lee
22401 # E. McMahon (1931-1989) for sed's syntax. :-)
22402 sed -n '
22404 /[$]LINENO/=
22405 ' <$as_myself |
22406 sed '
22407 s/[$]LINENO.*/&-/
22408 t lineno
22410 :lineno
22412 :loop
22413 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22414 t loop
22415 s/-\n.*//
22416 ' >$as_me.lineno &&
22417 chmod +x "$as_me.lineno" ||
22418 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22419 { (exit 1); exit 1; }; }
22421 # Don't try to exec as it changes $[0], causing all sort of problems
22422 # (the dirname of $[0] is not the place where we might find the
22423 # original and so on. Autoconf is especially sensitive to this).
22424 . "./$as_me.lineno"
22425 # Exit status is that of the last command.
22426 exit
22430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22431 as_dirname=dirname
22432 else
22433 as_dirname=false
22436 ECHO_C= ECHO_N= ECHO_T=
22437 case `echo -n x` in
22438 -n*)
22439 case `echo 'x\c'` in
22440 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22441 *) ECHO_C='\c';;
22442 esac;;
22444 ECHO_N='-n';;
22445 esac
22447 if expr a : '\(a\)' >/dev/null 2>&1 &&
22448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22449 as_expr=expr
22450 else
22451 as_expr=false
22454 rm -f conf$$ conf$$.exe conf$$.file
22455 if test -d conf$$.dir; then
22456 rm -f conf$$.dir/conf$$.file
22457 else
22458 rm -f conf$$.dir
22459 mkdir conf$$.dir
22461 echo >conf$$.file
22462 if ln -s conf$$.file conf$$ 2>/dev/null; then
22463 as_ln_s='ln -s'
22464 # ... but there are two gotchas:
22465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22467 # In both cases, we have to default to `cp -p'.
22468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22469 as_ln_s='cp -p'
22470 elif ln conf$$.file conf$$ 2>/dev/null; then
22471 as_ln_s=ln
22472 else
22473 as_ln_s='cp -p'
22475 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22476 rmdir conf$$.dir 2>/dev/null
22478 if mkdir -p . 2>/dev/null; then
22479 as_mkdir_p=:
22480 else
22481 test -d ./-p && rmdir ./-p
22482 as_mkdir_p=false
22485 if test -x / >/dev/null 2>&1; then
22486 as_test_x='test -x'
22487 else
22488 if ls -dL / >/dev/null 2>&1; then
22489 as_ls_L_option=L
22490 else
22491 as_ls_L_option=
22493 as_test_x='
22494 eval sh -c '\''
22495 if test -d "$1"; then
22496 test -d "$1/.";
22497 else
22498 case $1 in
22499 -*)set "./$1";;
22500 esac;
22501 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22502 ???[sx]*):;;*)false;;esac;fi
22503 '\'' sh
22506 as_executable_p=$as_test_x
22508 # Sed expression to map a string onto a valid CPP name.
22509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22511 # Sed expression to map a string onto a valid variable name.
22512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22515 exec 6>&1
22517 # Save the log message, to keep $[0] and so on meaningful, and to
22518 # report actual input values of CONFIG_FILES etc. instead of their
22519 # values after options handling.
22520 ac_log="
22521 This file was extended by Barry OpenSync Plugin $as_me 0.2, which was
22522 generated by GNU Autoconf 2.61. Invocation command line was
22524 CONFIG_FILES = $CONFIG_FILES
22525 CONFIG_HEADERS = $CONFIG_HEADERS
22526 CONFIG_LINKS = $CONFIG_LINKS
22527 CONFIG_COMMANDS = $CONFIG_COMMANDS
22528 $ $0 $@
22530 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22533 _ACEOF
22535 cat >>$CONFIG_STATUS <<_ACEOF
22536 # Files that config.status was made for.
22537 config_files="$ac_config_files"
22538 config_headers="$ac_config_headers"
22539 config_commands="$ac_config_commands"
22541 _ACEOF
22543 cat >>$CONFIG_STATUS <<\_ACEOF
22544 ac_cs_usage="\
22545 \`$as_me' instantiates files from templates according to the
22546 current configuration.
22548 Usage: $0 [OPTIONS] [FILE]...
22550 -h, --help print this help, then exit
22551 -V, --version print version number and configuration settings, then exit
22552 -q, --quiet do not print progress messages
22553 -d, --debug don't remove temporary files
22554 --recheck update $as_me by reconfiguring in the same conditions
22555 --file=FILE[:TEMPLATE]
22556 instantiate the configuration file FILE
22557 --header=FILE[:TEMPLATE]
22558 instantiate the configuration header FILE
22560 Configuration files:
22561 $config_files
22563 Configuration headers:
22564 $config_headers
22566 Configuration commands:
22567 $config_commands
22569 Report bugs to <bug-autoconf@gnu.org>."
22571 _ACEOF
22572 cat >>$CONFIG_STATUS <<_ACEOF
22573 ac_cs_version="\\
22574 Barry OpenSync Plugin config.status 0.2
22575 configured by $0, generated by GNU Autoconf 2.61,
22576 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22578 Copyright (C) 2006 Free Software Foundation, Inc.
22579 This config.status script is free software; the Free Software Foundation
22580 gives unlimited permission to copy, distribute and modify it."
22582 ac_pwd='$ac_pwd'
22583 srcdir='$srcdir'
22584 INSTALL='$INSTALL'
22585 _ACEOF
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22588 # If no file are specified by the user, then we need to provide default
22589 # value. By we need to know if files were specified by the user.
22590 ac_need_defaults=:
22591 while test $# != 0
22593 case $1 in
22594 --*=*)
22595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22597 ac_shift=:
22600 ac_option=$1
22601 ac_optarg=$2
22602 ac_shift=shift
22604 esac
22606 case $ac_option in
22607 # Handling of the options.
22608 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22609 ac_cs_recheck=: ;;
22610 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22611 echo "$ac_cs_version"; exit ;;
22612 --debug | --debu | --deb | --de | --d | -d )
22613 debug=: ;;
22614 --file | --fil | --fi | --f )
22615 $ac_shift
22616 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22617 ac_need_defaults=false;;
22618 --header | --heade | --head | --hea )
22619 $ac_shift
22620 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22621 ac_need_defaults=false;;
22622 --he | --h)
22623 # Conflict between --help and --header
22624 { echo "$as_me: error: ambiguous option: $1
22625 Try \`$0 --help' for more information." >&2
22626 { (exit 1); exit 1; }; };;
22627 --help | --hel | -h )
22628 echo "$ac_cs_usage"; exit ;;
22629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22631 ac_cs_silent=: ;;
22633 # This is an error.
22634 -*) { echo "$as_me: error: unrecognized option: $1
22635 Try \`$0 --help' for more information." >&2
22636 { (exit 1); exit 1; }; } ;;
22638 *) ac_config_targets="$ac_config_targets $1"
22639 ac_need_defaults=false ;;
22641 esac
22642 shift
22643 done
22645 ac_configure_extra_args=
22647 if $ac_cs_silent; then
22648 exec 6>/dev/null
22649 ac_configure_extra_args="$ac_configure_extra_args --silent"
22652 _ACEOF
22653 cat >>$CONFIG_STATUS <<_ACEOF
22654 if \$ac_cs_recheck; then
22655 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22656 CONFIG_SHELL=$SHELL
22657 export CONFIG_SHELL
22658 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22661 _ACEOF
22662 cat >>$CONFIG_STATUS <<\_ACEOF
22663 exec 5>>config.log
22665 echo
22666 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22667 ## Running $as_me. ##
22668 _ASBOX
22669 echo "$ac_log"
22670 } >&5
22672 _ACEOF
22673 cat >>$CONFIG_STATUS <<_ACEOF
22675 # INIT-COMMANDS
22677 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22679 _ACEOF
22681 cat >>$CONFIG_STATUS <<\_ACEOF
22683 # Handling of arguments.
22684 for ac_config_target in $ac_config_targets
22686 case $ac_config_target in
22687 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22688 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22689 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22690 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22692 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22693 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22694 { (exit 1); exit 1; }; };;
22695 esac
22696 done
22699 # If the user did not use the arguments to specify the items to instantiate,
22700 # then the envvar interface is used. Set only those that are not.
22701 # We use the long form for the default assignment because of an extremely
22702 # bizarre bug on SunOS 4.1.3.
22703 if $ac_need_defaults; then
22704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22709 # Have a temporary directory for convenience. Make it in the build tree
22710 # simply because there is no reason against having it here, and in addition,
22711 # creating and moving files from /tmp can sometimes cause problems.
22712 # Hook for its removal unless debugging.
22713 # Note that there is a small window in which the directory will not be cleaned:
22714 # after its creation but before its name has been assigned to `$tmp'.
22715 $debug ||
22717 tmp=
22718 trap 'exit_status=$?
22719 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22721 trap '{ (exit 1); exit 1; }' 1 2 13 15
22723 # Create a (secure) tmp directory for tmp files.
22726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22727 test -n "$tmp" && test -d "$tmp"
22728 } ||
22730 tmp=./conf$$-$RANDOM
22731 (umask 077 && mkdir "$tmp")
22732 } ||
22734 echo "$me: cannot create a temporary directory in ." >&2
22735 { (exit 1); exit 1; }
22739 # Set up the sed scripts for CONFIG_FILES section.
22742 # No need to generate the scripts if there are no CONFIG_FILES.
22743 # This happens for instance when ./config.status config.h
22744 if test -n "$CONFIG_FILES"; then
22746 _ACEOF
22750 ac_delim='%!_!# '
22751 for ac_last_try in false false false false false :; do
22752 cat >conf$$subs.sed <<_ACEOF
22753 SHELL!$SHELL$ac_delim
22754 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22755 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22756 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22757 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22758 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22759 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22760 exec_prefix!$exec_prefix$ac_delim
22761 prefix!$prefix$ac_delim
22762 program_transform_name!$program_transform_name$ac_delim
22763 bindir!$bindir$ac_delim
22764 sbindir!$sbindir$ac_delim
22765 libexecdir!$libexecdir$ac_delim
22766 datarootdir!$datarootdir$ac_delim
22767 datadir!$datadir$ac_delim
22768 sysconfdir!$sysconfdir$ac_delim
22769 sharedstatedir!$sharedstatedir$ac_delim
22770 localstatedir!$localstatedir$ac_delim
22771 includedir!$includedir$ac_delim
22772 oldincludedir!$oldincludedir$ac_delim
22773 docdir!$docdir$ac_delim
22774 infodir!$infodir$ac_delim
22775 htmldir!$htmldir$ac_delim
22776 dvidir!$dvidir$ac_delim
22777 pdfdir!$pdfdir$ac_delim
22778 psdir!$psdir$ac_delim
22779 libdir!$libdir$ac_delim
22780 localedir!$localedir$ac_delim
22781 mandir!$mandir$ac_delim
22782 DEFS!$DEFS$ac_delim
22783 ECHO_C!$ECHO_C$ac_delim
22784 ECHO_N!$ECHO_N$ac_delim
22785 ECHO_T!$ECHO_T$ac_delim
22786 LIBS!$LIBS$ac_delim
22787 build_alias!$build_alias$ac_delim
22788 host_alias!$host_alias$ac_delim
22789 target_alias!$target_alias$ac_delim
22790 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22791 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22792 INSTALL_DATA!$INSTALL_DATA$ac_delim
22793 CYGPATH_W!$CYGPATH_W$ac_delim
22794 PACKAGE!$PACKAGE$ac_delim
22795 VERSION!$VERSION$ac_delim
22796 ACLOCAL!$ACLOCAL$ac_delim
22797 AUTOCONF!$AUTOCONF$ac_delim
22798 AUTOMAKE!$AUTOMAKE$ac_delim
22799 AUTOHEADER!$AUTOHEADER$ac_delim
22800 MAKEINFO!$MAKEINFO$ac_delim
22801 install_sh!$install_sh$ac_delim
22802 STRIP!$STRIP$ac_delim
22803 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22804 mkdir_p!$mkdir_p$ac_delim
22805 AWK!$AWK$ac_delim
22806 SET_MAKE!$SET_MAKE$ac_delim
22807 am__leading_dot!$am__leading_dot$ac_delim
22808 AMTAR!$AMTAR$ac_delim
22809 am__tar!$am__tar$ac_delim
22810 am__untar!$am__untar$ac_delim
22811 PKG_CONFIG!$PKG_CONFIG$ac_delim
22812 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
22813 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
22814 CC!$CC$ac_delim
22815 CFLAGS!$CFLAGS$ac_delim
22816 LDFLAGS!$LDFLAGS$ac_delim
22817 CPPFLAGS!$CPPFLAGS$ac_delim
22818 ac_ct_CC!$ac_ct_CC$ac_delim
22819 EXEEXT!$EXEEXT$ac_delim
22820 OBJEXT!$OBJEXT$ac_delim
22821 DEPDIR!$DEPDIR$ac_delim
22822 am__include!$am__include$ac_delim
22823 am__quote!$am__quote$ac_delim
22824 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22825 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22826 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22827 CCDEPMODE!$CCDEPMODE$ac_delim
22828 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22829 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22830 CPP!$CPP$ac_delim
22831 GREP!$GREP$ac_delim
22832 EGREP!$EGREP$ac_delim
22833 CXX!$CXX$ac_delim
22834 CXXFLAGS!$CXXFLAGS$ac_delim
22835 ac_ct_CXX!$ac_ct_CXX$ac_delim
22836 CXXDEPMODE!$CXXDEPMODE$ac_delim
22837 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22838 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22839 build!$build$ac_delim
22840 build_cpu!$build_cpu$ac_delim
22841 build_vendor!$build_vendor$ac_delim
22842 build_os!$build_os$ac_delim
22843 host!$host$ac_delim
22844 host_cpu!$host_cpu$ac_delim
22845 host_vendor!$host_vendor$ac_delim
22846 host_os!$host_os$ac_delim
22847 SED!$SED$ac_delim
22848 LN_S!$LN_S$ac_delim
22849 ECHO!$ECHO$ac_delim
22850 _ACEOF
22852 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22853 break
22854 elif $ac_last_try; then
22855 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22856 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22857 { (exit 1); exit 1; }; }
22858 else
22859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22861 done
22863 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22864 if test -n "$ac_eof"; then
22865 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22866 ac_eof=`expr $ac_eof + 1`
22869 cat >>$CONFIG_STATUS <<_ACEOF
22870 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22872 _ACEOF
22873 sed '
22874 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22875 s/^/s,@/; s/!/@,|#_!!_#|/
22878 s/'"$ac_delim"'$/,g/; t
22879 s/$/\\/; p
22880 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22881 ' >>$CONFIG_STATUS <conf$$subs.sed
22882 rm -f conf$$subs.sed
22883 cat >>$CONFIG_STATUS <<_ACEOF
22884 CEOF$ac_eof
22885 _ACEOF
22888 ac_delim='%!_!# '
22889 for ac_last_try in false false false false false :; do
22890 cat >conf$$subs.sed <<_ACEOF
22891 AR!$AR$ac_delim
22892 RANLIB!$RANLIB$ac_delim
22893 DSYMUTIL!$DSYMUTIL$ac_delim
22894 NMEDIT!$NMEDIT$ac_delim
22895 CXXCPP!$CXXCPP$ac_delim
22896 F77!$F77$ac_delim
22897 FFLAGS!$FFLAGS$ac_delim
22898 ac_ct_F77!$ac_ct_F77$ac_delim
22899 LIBTOOL!$LIBTOOL$ac_delim
22900 WITH_GCCVISIBILITY_TRUE!$WITH_GCCVISIBILITY_TRUE$ac_delim
22901 WITH_GCCVISIBILITY_FALSE!$WITH_GCCVISIBILITY_FALSE$ac_delim
22902 BARRY_CFLAGS!$BARRY_CFLAGS$ac_delim
22903 BARRY_LIBS!$BARRY_LIBS$ac_delim
22904 TREE_BUILD_CXXFLAGS!$TREE_BUILD_CXXFLAGS$ac_delim
22905 TREE_BUILD_LDFLAGS!$TREE_BUILD_LDFLAGS$ac_delim
22906 OPENSYNC_CONFIGDIR!$OPENSYNC_CONFIGDIR$ac_delim
22907 OPENSYNC_PLUGINDIR!$OPENSYNC_PLUGINDIR$ac_delim
22908 OPENSYNC_FORMATSDIR!$OPENSYNC_FORMATSDIR$ac_delim
22909 OPENSYNC_HEADERDIR!$OPENSYNC_HEADERDIR$ac_delim
22910 LIBOBJS!$LIBOBJS$ac_delim
22911 LTLIBOBJS!$LTLIBOBJS$ac_delim
22912 _ACEOF
22914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
22915 break
22916 elif $ac_last_try; then
22917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22919 { (exit 1); exit 1; }; }
22920 else
22921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22923 done
22925 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22926 if test -n "$ac_eof"; then
22927 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22928 ac_eof=`expr $ac_eof + 1`
22931 cat >>$CONFIG_STATUS <<_ACEOF
22932 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22934 _ACEOF
22935 sed '
22936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22937 s/^/s,@/; s/!/@,|#_!!_#|/
22940 s/'"$ac_delim"'$/,g/; t
22941 s/$/\\/; p
22942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22943 ' >>$CONFIG_STATUS <conf$$subs.sed
22944 rm -f conf$$subs.sed
22945 cat >>$CONFIG_STATUS <<_ACEOF
22946 :end
22947 s/|#_!!_#|//g
22948 CEOF$ac_eof
22949 _ACEOF
22952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22954 # trailing colons and then remove the whole line if VPATH becomes empty
22955 # (actually we leave an empty line to preserve line numbers).
22956 if test "x$srcdir" = x.; then
22957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22958 s/:*\$(srcdir):*/:/
22959 s/:*\${srcdir}:*/:/
22960 s/:*@srcdir@:*/:/
22961 s/^\([^=]*=[ ]*\):*/\1/
22962 s/:*$//
22963 s/^[^=]*=[ ]*$//
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22968 fi # test -n "$CONFIG_FILES"
22971 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22973 case $ac_tag in
22974 :[FHLC]) ac_mode=$ac_tag; continue;;
22975 esac
22976 case $ac_mode$ac_tag in
22977 :[FHL]*:*);;
22978 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22980 { (exit 1); exit 1; }; };;
22981 :[FH]-) ac_tag=-:-;;
22982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22983 esac
22984 ac_save_IFS=$IFS
22985 IFS=:
22986 set x $ac_tag
22987 IFS=$ac_save_IFS
22988 shift
22989 ac_file=$1
22990 shift
22992 case $ac_mode in
22993 :L) ac_source=$1;;
22994 :[FH])
22995 ac_file_inputs=
22996 for ac_f
22998 case $ac_f in
22999 -) ac_f="$tmp/stdin";;
23000 *) # Look for the file first in the build tree, then in the source tree
23001 # (if the path is not absolute). The absolute path cannot be DOS-style,
23002 # because $ac_f cannot contain `:'.
23003 test -f "$ac_f" ||
23004 case $ac_f in
23005 [\\/$]*) false;;
23006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23007 esac ||
23008 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23010 { (exit 1); exit 1; }; };;
23011 esac
23012 ac_file_inputs="$ac_file_inputs $ac_f"
23013 done
23015 # Let's still pretend it is `configure' which instantiates (i.e., don't
23016 # use $as_me), people would be surprised to read:
23017 # /* config.h. Generated by config.status. */
23018 configure_input="Generated from "`IFS=:
23019 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23020 if test x"$ac_file" != x-; then
23021 configure_input="$ac_file. $configure_input"
23022 { echo "$as_me:$LINENO: creating $ac_file" >&5
23023 echo "$as_me: creating $ac_file" >&6;}
23026 case $ac_tag in
23027 *:-:* | *:-) cat >"$tmp/stdin";;
23028 esac
23030 esac
23032 ac_dir=`$as_dirname -- "$ac_file" ||
23033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23034 X"$ac_file" : 'X\(//\)[^/]' \| \
23035 X"$ac_file" : 'X\(//\)$' \| \
23036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23037 echo X"$ac_file" |
23038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23039 s//\1/
23042 /^X\(\/\/\)[^/].*/{
23043 s//\1/
23046 /^X\(\/\/\)$/{
23047 s//\1/
23050 /^X\(\/\).*/{
23051 s//\1/
23054 s/.*/./; q'`
23055 { as_dir="$ac_dir"
23056 case $as_dir in #(
23057 -*) as_dir=./$as_dir;;
23058 esac
23059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23060 as_dirs=
23061 while :; do
23062 case $as_dir in #(
23063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23064 *) as_qdir=$as_dir;;
23065 esac
23066 as_dirs="'$as_qdir' $as_dirs"
23067 as_dir=`$as_dirname -- "$as_dir" ||
23068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23069 X"$as_dir" : 'X\(//\)[^/]' \| \
23070 X"$as_dir" : 'X\(//\)$' \| \
23071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23072 echo X"$as_dir" |
23073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23074 s//\1/
23077 /^X\(\/\/\)[^/].*/{
23078 s//\1/
23081 /^X\(\/\/\)$/{
23082 s//\1/
23085 /^X\(\/\).*/{
23086 s//\1/
23089 s/.*/./; q'`
23090 test -d "$as_dir" && break
23091 done
23092 test -z "$as_dirs" || eval "mkdir $as_dirs"
23093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23095 { (exit 1); exit 1; }; }; }
23096 ac_builddir=.
23098 case "$ac_dir" in
23099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23102 # A ".." for each directory in $ac_dir_suffix.
23103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23104 case $ac_top_builddir_sub in
23105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23107 esac ;;
23108 esac
23109 ac_abs_top_builddir=$ac_pwd
23110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23111 # for backward compatibility:
23112 ac_top_builddir=$ac_top_build_prefix
23114 case $srcdir in
23115 .) # We are building in place.
23116 ac_srcdir=.
23117 ac_top_srcdir=$ac_top_builddir_sub
23118 ac_abs_top_srcdir=$ac_pwd ;;
23119 [\\/]* | ?:[\\/]* ) # Absolute name.
23120 ac_srcdir=$srcdir$ac_dir_suffix;
23121 ac_top_srcdir=$srcdir
23122 ac_abs_top_srcdir=$srcdir ;;
23123 *) # Relative name.
23124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23125 ac_top_srcdir=$ac_top_build_prefix$srcdir
23126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23127 esac
23128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23131 case $ac_mode in
23134 # CONFIG_FILE
23137 case $INSTALL in
23138 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23139 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23140 esac
23141 _ACEOF
23143 cat >>$CONFIG_STATUS <<\_ACEOF
23144 # If the template does not know about datarootdir, expand it.
23145 # FIXME: This hack should be removed a few years after 2.60.
23146 ac_datarootdir_hack=; ac_datarootdir_seen=
23148 case `sed -n '/datarootdir/ {
23152 /@datadir@/p
23153 /@docdir@/p
23154 /@infodir@/p
23155 /@localedir@/p
23156 /@mandir@/p
23157 ' $ac_file_inputs` in
23158 *datarootdir*) ac_datarootdir_seen=yes;;
23159 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23160 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23161 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23162 _ACEOF
23163 cat >>$CONFIG_STATUS <<_ACEOF
23164 ac_datarootdir_hack='
23165 s&@datadir@&$datadir&g
23166 s&@docdir@&$docdir&g
23167 s&@infodir@&$infodir&g
23168 s&@localedir@&$localedir&g
23169 s&@mandir@&$mandir&g
23170 s&\\\${datarootdir}&$datarootdir&g' ;;
23171 esac
23172 _ACEOF
23174 # Neutralize VPATH when `$srcdir' = `.'.
23175 # Shell code in configure.ac might set extrasub.
23176 # FIXME: do we really want to maintain this feature?
23177 cat >>$CONFIG_STATUS <<_ACEOF
23178 sed "$ac_vpsub
23179 $extrasub
23180 _ACEOF
23181 cat >>$CONFIG_STATUS <<\_ACEOF
23183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23184 s&@configure_input@&$configure_input&;t t
23185 s&@top_builddir@&$ac_top_builddir_sub&;t t
23186 s&@srcdir@&$ac_srcdir&;t t
23187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23188 s&@top_srcdir@&$ac_top_srcdir&;t t
23189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23190 s&@builddir@&$ac_builddir&;t t
23191 s&@abs_builddir@&$ac_abs_builddir&;t t
23192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23193 s&@INSTALL@&$ac_INSTALL&;t t
23194 $ac_datarootdir_hack
23195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23200 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23201 which seems to be undefined. Please make sure it is defined." >&5
23202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23203 which seems to be undefined. Please make sure it is defined." >&2;}
23205 rm -f "$tmp/stdin"
23206 case $ac_file in
23207 -) cat "$tmp/out"; rm -f "$tmp/out";;
23208 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23209 esac
23213 # CONFIG_HEADER
23215 _ACEOF
23217 # Transform confdefs.h into a sed script `conftest.defines', that
23218 # substitutes the proper values into config.h.in to produce config.h.
23219 rm -f conftest.defines conftest.tail
23220 # First, append a space to every undef/define line, to ease matching.
23221 echo 's/$/ /' >conftest.defines
23222 # Then, protect against being on the right side of a sed subst, or in
23223 # an unquoted here document, in config.status. If some macros were
23224 # called several times there might be several #defines for the same
23225 # symbol, which is useless. But do not sort them, since the last
23226 # AC_DEFINE must be honored.
23227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23230 # PARAMS is the parameter list in the macro definition--in most cases, it's
23231 # just an empty string.
23232 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23233 ac_dB='\\)[ (].*,\\1define\\2'
23234 ac_dC=' '
23235 ac_dD=' ,'
23237 uniq confdefs.h |
23238 sed -n '
23239 t rset
23240 :rset
23241 s/^[ ]*#[ ]*define[ ][ ]*//
23242 t ok
23245 s/[\\&,]/\\&/g
23246 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23247 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23248 ' >>conftest.defines
23250 # Remove the space that was appended to ease matching.
23251 # Then replace #undef with comments. This is necessary, for
23252 # example, in the case of _POSIX_SOURCE, which is predefined and required
23253 # on some systems where configure will not decide to define it.
23254 # (The regexp can be short, since the line contains either #define or #undef.)
23255 echo 's/ $//
23256 s,^[ #]*u.*,/* & */,' >>conftest.defines
23258 # Break up conftest.defines:
23259 ac_max_sed_lines=50
23261 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23262 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23263 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23264 # et cetera.
23265 ac_in='$ac_file_inputs'
23266 ac_out='"$tmp/out1"'
23267 ac_nxt='"$tmp/out2"'
23269 while :
23271 # Write a here document:
23272 cat >>$CONFIG_STATUS <<_ACEOF
23273 # First, check the format of the line:
23274 cat >"\$tmp/defines.sed" <<\\CEOF
23275 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23276 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23278 :def
23279 _ACEOF
23280 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23281 echo 'CEOF
23282 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23283 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23284 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23285 grep . conftest.tail >/dev/null || break
23286 rm -f conftest.defines
23287 mv conftest.tail conftest.defines
23288 done
23289 rm -f conftest.defines conftest.tail
23291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23292 cat >>$CONFIG_STATUS <<\_ACEOF
23293 if test x"$ac_file" != x-; then
23294 echo "/* $configure_input */" >"$tmp/config.h"
23295 cat "$ac_result" >>"$tmp/config.h"
23296 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23297 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23298 echo "$as_me: $ac_file is unchanged" >&6;}
23299 else
23300 rm -f $ac_file
23301 mv "$tmp/config.h" $ac_file
23303 else
23304 echo "/* $configure_input */"
23305 cat "$ac_result"
23307 rm -f "$tmp/out12"
23308 # Compute $ac_file's index in $config_headers.
23309 _am_stamp_count=1
23310 for _am_header in $config_headers :; do
23311 case $_am_header in
23312 $ac_file | $ac_file:* )
23313 break ;;
23315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23316 esac
23317 done
23318 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23319 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23320 X$ac_file : 'X\(//\)[^/]' \| \
23321 X$ac_file : 'X\(//\)$' \| \
23322 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23323 echo X$ac_file |
23324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23325 s//\1/
23328 /^X\(\/\/\)[^/].*/{
23329 s//\1/
23332 /^X\(\/\/\)$/{
23333 s//\1/
23336 /^X\(\/\).*/{
23337 s//\1/
23340 s/.*/./; q'`/stamp-h$_am_stamp_count
23343 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23344 echo "$as_me: executing $ac_file commands" >&6;}
23346 esac
23349 case $ac_file$ac_mode in
23350 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23351 # Strip MF so we end up with the name of the file.
23352 mf=`echo "$mf" | sed -e 's/:.*$//'`
23353 # Check whether this is an Automake generated Makefile or not.
23354 # We used to match only the files named `Makefile.in', but
23355 # some people rename them; so instead we look at the file content.
23356 # Grep'ing the first line is not enough: some people post-process
23357 # each Makefile.in and add a new line on top of each file to say so.
23358 # So let's grep whole file.
23359 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23360 dirpart=`$as_dirname -- "$mf" ||
23361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23362 X"$mf" : 'X\(//\)[^/]' \| \
23363 X"$mf" : 'X\(//\)$' \| \
23364 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23365 echo X"$mf" |
23366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23367 s//\1/
23370 /^X\(\/\/\)[^/].*/{
23371 s//\1/
23374 /^X\(\/\/\)$/{
23375 s//\1/
23378 /^X\(\/\).*/{
23379 s//\1/
23382 s/.*/./; q'`
23383 else
23384 continue
23386 # Extract the definition of DEPDIR, am__include, and am__quote
23387 # from the Makefile without running `make'.
23388 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23389 test -z "$DEPDIR" && continue
23390 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23391 test -z "am__include" && continue
23392 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23393 # When using ansi2knr, U may be empty or an underscore; expand it
23394 U=`sed -n 's/^U = //p' < "$mf"`
23395 # Find all dependency output files, they are included files with
23396 # $(DEPDIR) in their names. We invoke sed twice because it is the
23397 # simplest approach to changing $(DEPDIR) to its actual value in the
23398 # expansion.
23399 for file in `sed -n "
23400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23402 # Make sure the directory exists.
23403 test -f "$dirpart/$file" && continue
23404 fdir=`$as_dirname -- "$file" ||
23405 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23406 X"$file" : 'X\(//\)[^/]' \| \
23407 X"$file" : 'X\(//\)$' \| \
23408 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23409 echo X"$file" |
23410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23411 s//\1/
23414 /^X\(\/\/\)[^/].*/{
23415 s//\1/
23418 /^X\(\/\/\)$/{
23419 s//\1/
23422 /^X\(\/\).*/{
23423 s//\1/
23426 s/.*/./; q'`
23427 { as_dir=$dirpart/$fdir
23428 case $as_dir in #(
23429 -*) as_dir=./$as_dir;;
23430 esac
23431 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23432 as_dirs=
23433 while :; do
23434 case $as_dir in #(
23435 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23436 *) as_qdir=$as_dir;;
23437 esac
23438 as_dirs="'$as_qdir' $as_dirs"
23439 as_dir=`$as_dirname -- "$as_dir" ||
23440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23441 X"$as_dir" : 'X\(//\)[^/]' \| \
23442 X"$as_dir" : 'X\(//\)$' \| \
23443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23444 echo X"$as_dir" |
23445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23446 s//\1/
23449 /^X\(\/\/\)[^/].*/{
23450 s//\1/
23453 /^X\(\/\/\)$/{
23454 s//\1/
23457 /^X\(\/\).*/{
23458 s//\1/
23461 s/.*/./; q'`
23462 test -d "$as_dir" && break
23463 done
23464 test -z "$as_dirs" || eval "mkdir $as_dirs"
23465 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23466 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23467 { (exit 1); exit 1; }; }; }
23468 # echo "creating $dirpart/$file"
23469 echo '# dummy' > "$dirpart/$file"
23470 done
23471 done
23474 esac
23475 done # for ac_tag
23478 { (exit 0); exit 0; }
23479 _ACEOF
23480 chmod +x $CONFIG_STATUS
23481 ac_clean_files=$ac_clean_files_save
23484 # configure is writing to config.log, and then calls config.status.
23485 # config.status does its own redirection, appending to config.log.
23486 # Unfortunately, on DOS this fails, as config.log is still kept open
23487 # by configure, so config.status won't be able to write to it; its
23488 # output is simply discarded. So we exec the FD to /dev/null,
23489 # effectively closing config.log, so it can be properly (re)opened and
23490 # appended to by config.status. When coming back to configure, we
23491 # need to make the FD available again.
23492 if test "$no_create" != yes; then
23493 ac_cs_success=:
23494 ac_config_status_args=
23495 test "$silent" = yes &&
23496 ac_config_status_args="$ac_config_status_args --quiet"
23497 exec 5>/dev/null
23498 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23499 exec 5>>config.log
23500 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23501 # would make configure fail if this is the last instruction.
23502 $ac_cs_success || { (exit 1); exit 1; }