usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / accel-pptp / configure
blob0c167c557e0c6a88c8c3649e69f88e775ddb7be9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="configure.in"
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
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
853 GREP
854 EGREP
855 LN_S
856 ECHO
858 RANLIB
861 CXXFLAGS
862 ac_ct_CXX
863 CXXDEPMODE
864 am__fastdepCXX_TRUE
865 am__fastdepCXX_FALSE
866 CXXCPP
868 FFLAGS
869 ac_ct_F77
870 LIBTOOL
871 LIBOBJS
872 LTLIBOBJS'
873 ac_subst_files=''
874 ac_precious_vars='build_alias
875 host_alias
876 target_alias
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
884 CXXFLAGS
886 CXXCPP
888 FFLAGS'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=no ;;
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1010 -enable-* | --enable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1207 -with-* | --with-*)
1208 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 { echo "$as_me: error: invalid package name: $ac_package" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214 eval with_$ac_package=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 { echo "$as_me: error: invalid package name: $ac_package" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223 eval with_$ac_package=no ;;
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245 { (exit 1); exit 1; }; }
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253 { (exit 1); exit 1; }; }
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265 esac
1266 done
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 { echo "$as_me: error: missing argument to $ac_option" >&2
1271 { (exit 1); exit 1; }; }
1274 # Be sure to have absolute directory names.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$0" : 'X\(//\)[^/]' \| \
1330 X"$0" : 'X\(//\)$' \| \
1331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 echo X"$0" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1341 /^X\(\/\/\)$/{
1342 s//\1/
1345 /^X\(\/\).*/{
1346 s//\1/
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1354 else
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --disable-dependency-tracking speeds up one-time build
1467 --enable-dependency-tracking do not reject slow dependency extractors
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-tags[=TAGS] include additional configurations [automatic]
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CPP C preprocessor
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1493 CXXCPP C++ preprocessor
1494 F77 Fortran 77 compiler command
1495 FFLAGS Fortran 77 compiler flags
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 _ACEOF
1501 ac_status=$?
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1508 ac_builddir=.
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 configure
1561 generated by GNU Autoconf 2.61
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by $as_me, which was
1575 generated by GNU Autoconf 2.61. Invocation command line was
1577 $ $0 $@
1579 _ACEOF
1580 exec 5>>config.log
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 _ASUNAME
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1615 } >&5
1617 cat >&5 <<_ACEOF
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1624 _ACEOF
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1638 for ac_arg
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
1645 *\'*)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 esac
1648 case $ac_pass in
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1654 else
1655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1664 -* ) ac_must_keep_next=true ;;
1665 esac
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 esac
1670 done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1683 echo
1685 cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1704 esac ;;
1705 esac
1706 done
1707 (set) 2>&1 |
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1710 sed -n \
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 esac |
1718 sort
1720 echo
1722 cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1731 case $ac_val in
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 esac
1734 echo "$ac_var='\''$ac_val'\''"
1735 done | sort
1736 echo
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
1752 done | sort
1753 echo
1756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762 echo
1763 cat confdefs.h
1764 echo
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1769 } >&5
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 exit $exit_status
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1819 shift
1820 for ac_site_file
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1828 done
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836 case $cache_file in
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1839 esac
1841 else
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844 >$cache_file
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1856 set,)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,set)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,);;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 esac
1887 done
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1912 ac_ext=c
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920 ac_config_headers="$ac_config_headers config.h"
1922 am__api_version="1.9"
1923 ac_aux_dir=
1924 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1925 if test -f "$ac_dir/install-sh"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/install-sh -c"
1928 break
1929 elif test -f "$ac_dir/install.sh"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install.sh -c"
1932 break
1933 elif test -f "$ac_dir/shtool"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/shtool install -c"
1936 break
1938 done
1939 if test -z "$ac_aux_dir"; then
1940 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1942 { (exit 1); exit 1; }; }
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954 # Find a good install program. We prefer a C program (faster),
1955 # so one script is as good as another. But avoid the broken or
1956 # incompatible versions:
1957 # SysV /etc/install, /usr/sbin/install
1958 # SunOS /usr/etc/install
1959 # IRIX /sbin/install
1960 # AIX /bin/install
1961 # AmigaOS /C/install, which installs bootblocks on floppy discs
1962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1965 # OS/2's system install, which has a completely different semantic
1966 # ./install, which can be erroneously created by make from ./install.sh.
1967 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1968 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1969 if test -z "$INSTALL"; then
1970 if test "${ac_cv_path_install+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 # Account for people who put trailing slashes in PATH elements.
1979 case $as_dir/ in
1980 ./ | .// | /cC/* | \
1981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1983 /usr/ucb/* ) ;;
1985 # OSF1 and SCO ODT 3.0 have their own names for install.
1986 # Don't use installbsd from OSF since it installs stuff as root
1987 # by default.
1988 for ac_prog in ginstall scoinst install; do
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1991 if test $ac_prog = install &&
1992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993 # AIX install. It has an incompatible calling convention.
1995 elif test $ac_prog = install &&
1996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1997 # program-specific install script used by HP pwplus--don't use.
1999 else
2000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2001 break 3
2004 done
2005 done
2007 esac
2008 done
2009 IFS=$as_save_IFS
2013 if test "${ac_cv_path_install+set}" = set; then
2014 INSTALL=$ac_cv_path_install
2015 else
2016 # As a last resort, use the slow shell script. Don't cache a
2017 # value for INSTALL within a source directory, because that will
2018 # break other packages using the cache if that directory is
2019 # removed, or if the value is a relative name.
2020 INSTALL=$ac_install_sh
2023 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2024 echo "${ECHO_T}$INSTALL" >&6; }
2026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2027 # It thinks the first close brace ends the variable substitution.
2028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2034 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2036 # Just in case
2037 sleep 1
2038 echo timestamp > conftest.file
2039 # Do `set' in a subshell so we don't clobber the current shell's
2040 # arguments. Must try -L first in case configure is actually a
2041 # symlink; some systems play weird games with the mod time of symlinks
2042 # (eg FreeBSD returns the mod time of the symlink's containing
2043 # directory).
2044 if (
2045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2046 if test "$*" = "X"; then
2047 # -L didn't work.
2048 set X `ls -t $srcdir/configure conftest.file`
2050 rm -f conftest.file
2051 if test "$*" != "X $srcdir/configure conftest.file" \
2052 && test "$*" != "X conftest.file $srcdir/configure"; then
2054 # If neither matched, then we have a broken ls. This can happen
2055 # if, for instance, CONFIG_SHELL is bash and it inherits a
2056 # broken ls alias from the environment. This has actually
2057 # happened. Such a system could not be considered "sane".
2058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2059 alias in your environment" >&5
2060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2061 alias in your environment" >&2;}
2062 { (exit 1); exit 1; }; }
2065 test "$2" = conftest.file
2067 then
2068 # Ok.
2070 else
2071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2072 Check your system clock" >&5
2073 echo "$as_me: error: newly created file is older than distributed files!
2074 Check your system clock" >&2;}
2075 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: yes" >&5
2078 echo "${ECHO_T}yes" >&6; }
2079 test "$program_prefix" != NONE &&
2080 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2081 # Use a double $ so make ignores it.
2082 test "$program_suffix" != NONE &&
2083 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2084 # Double any \ or $. echo might interpret backslashes.
2085 # By default was `s,x,x', remove it if useless.
2086 cat <<\_ACEOF >conftest.sed
2087 s/[\\$]/&&/g;s/;s,x,x,$//
2088 _ACEOF
2089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2090 rm -f conftest.sed
2092 # expand $ac_aux_dir to an absolute path
2093 am_aux_dir=`cd $ac_aux_dir && pwd`
2095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2096 # Use eval to expand $SHELL
2097 if eval "$MISSING --run true"; then
2098 am_missing_run="$MISSING --run "
2099 else
2100 am_missing_run=
2101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2106 # We used to keeping the `.' as first argument, in order to
2107 # allow $(mkdir_p) to be used without argument. As in
2108 # $(mkdir_p) $(somedir)
2109 # where $(somedir) is conditionally defined. However this is wrong
2110 # for two reasons:
2111 # 1. if the package is installed by a user who cannot write `.'
2112 # make install will fail,
2113 # 2. the above comment should most certainly read
2114 # $(mkdir_p) $(DESTDIR)$(somedir)
2115 # so it does not work when $(somedir) is undefined and
2116 # $(DESTDIR) is not.
2117 # To support the latter case, we have to write
2118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2119 # so the `.' trick is pointless.
2120 mkdir_p='mkdir -p --'
2121 else
2122 # On NextStep and OpenStep, the `mkdir' command does not
2123 # recognize any option. It will interpret all options as
2124 # directories to create, and then abort because `.' already
2125 # exists.
2126 for d in ./-p ./--version;
2128 test -d $d && rmdir $d
2129 done
2130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2131 if test -f "$ac_aux_dir/mkinstalldirs"; then
2132 mkdir_p='$(mkinstalldirs)'
2133 else
2134 mkdir_p='$(install_sh) -d'
2138 for ac_prog in gawk mawk nawk awk
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_AWK+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$AWK"; then
2148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_prog_AWK="$ac_prog"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2161 done
2162 done
2163 IFS=$as_save_IFS
2167 AWK=$ac_cv_prog_AWK
2168 if test -n "$AWK"; then
2169 { echo "$as_me:$LINENO: result: $AWK" >&5
2170 echo "${ECHO_T}$AWK" >&6; }
2171 else
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2177 test -n "$AWK" && break
2178 done
2180 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2181 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2182 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2183 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 cat >conftest.make <<\_ACEOF
2187 SHELL = /bin/sh
2188 all:
2189 @echo '@@@%%%=$(MAKE)=@@@%%%'
2190 _ACEOF
2191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2193 *@@@%%%=?*=@@@%%%*)
2194 eval ac_cv_prog_make_${ac_make}_set=yes;;
2196 eval ac_cv_prog_make_${ac_make}_set=no;;
2197 esac
2198 rm -f conftest.make
2200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2201 { echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6; }
2203 SET_MAKE=
2204 else
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 SET_MAKE="MAKE=${MAKE-make}"
2210 rm -rf .tst 2>/dev/null
2211 mkdir .tst 2>/dev/null
2212 if test -d .tst; then
2213 am__leading_dot=.
2214 else
2215 am__leading_dot=_
2217 rmdir .tst 2>/dev/null
2219 # test to see if srcdir already configured
2220 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2221 test -f $srcdir/config.status; then
2222 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2223 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2224 { (exit 1); exit 1; }; }
2227 # test whether we have cygpath
2228 if test -z "$CYGPATH_W"; then
2229 if (cygpath --version) >/dev/null 2>/dev/null; then
2230 CYGPATH_W='cygpath -w'
2231 else
2232 CYGPATH_W=echo
2237 # Define the identity of the package.
2238 PACKAGE=pptp
2239 VERSION=0.8.5
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE "$PACKAGE"
2244 _ACEOF
2247 cat >>confdefs.h <<_ACEOF
2248 #define PLUGINVERSION "$VERSION"
2249 _ACEOF
2251 # Some tools Automake needs.
2253 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2256 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2259 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2262 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2265 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2267 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2269 # Installed binaries are usually stripped using `strip' when the user
2270 # run `make install-strip'. However `strip' might not be the right
2271 # tool to use in cross-compilation environments, therefore Automake
2272 # will honor the `STRIP' environment variable to overrule this program.
2273 if test "$cross_compiling" != no; then
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2276 set dummy ${ac_tool_prefix}strip; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_STRIP+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282 if test -n "$STRIP"; then
2283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 STRIP=$ac_cv_prog_STRIP
2303 if test -n "$STRIP"; then
2304 { echo "$as_me:$LINENO: result: $STRIP" >&5
2305 echo "${ECHO_T}$STRIP" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2313 if test -z "$ac_cv_prog_STRIP"; then
2314 ac_ct_STRIP=$STRIP
2315 # Extract the first word of "strip", so it can be a program name with args.
2316 set dummy strip; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$ac_ct_STRIP"; then
2323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_ac_ct_STRIP="strip"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2343 if test -n "$ac_ct_STRIP"; then
2344 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2345 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2351 if test "x$ac_ct_STRIP" = x; then
2352 STRIP=":"
2353 else
2354 case $cross_compiling:$ac_tool_warned in
2355 yes:)
2356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2357 whose name does not start with the host triplet. If you think this
2358 configuration is useful to you, please write to autoconf@gnu.org." >&5
2359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 STRIP=$ac_ct_STRIP
2366 else
2367 STRIP="$ac_cv_prog_STRIP"
2371 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2373 # We need awk for the "check" target. The system "awk" is bad on
2374 # some platforms.
2375 # Always define AMTAR for backward compatibility.
2377 AMTAR=${AMTAR-"${am_missing_run}tar"}
2379 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2419 done
2420 done
2421 IFS=$as_save_IFS
2425 CC=$ac_cv_prog_CC
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 CC=$ac_ct_CC
2489 else
2490 CC="$ac_cv_prog_CC"
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2516 done
2517 done
2518 IFS=$as_save_IFS
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2557 ac_cv_prog_CC="cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2617 IFS=$as_save_IFS
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2632 done
2634 if test -z "$CC"; then
2635 ac_ct_CC=$CC
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2676 done
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 CC=$ac_ct_CC
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 main ()
2750 return 0;
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777 done
2778 rm -f $ac_rmfiles
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2794 # Autoconf.
2795 for ac_file in $ac_files ''
2797 test -f "$ac_file" || continue
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 [ab].out )
2802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
2805 *.* )
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
2815 break;;
2817 break;;
2818 esac
2819 done
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 else
2823 ac_file=''
2826 { echo "$as_me:$LINENO: result: $ac_file" >&5
2827 echo "${ECHO_T}$ac_file" >&6; }
2828 if test -z "$ac_file"; then
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: C compiler cannot create executables
2835 See \`config.log' for more details." >&2;}
2836 { (exit 77); exit 77; }; }
2839 ac_exeext=$ac_cv_exeext
2841 # Check that the compiler produces executables we can run. If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846 # If not cross compiling, check that we can run a simple program.
2847 if test "$cross_compiling" != yes; then
2848 if { ac_try='./$ac_file'
2849 { (case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_try") 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 cross_compiling=no
2859 else
2860 if test "$cross_compiling" = maybe; then
2861 cross_compiling=yes
2862 else
2863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2864 If you meant to cross compile, use \`--host'.
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: cannot run C compiled programs.
2867 If you meant to cross compile, use \`--host'.
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874 echo "${ECHO_T}yes" >&6; }
2876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2877 ac_clean_files=$ac_clean_files_save
2878 # Check that the compiler produces executables we can run. If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2882 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2883 echo "${ECHO_T}$cross_compiling" >&6; }
2885 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2887 if { (ac_try="$ac_link"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899 # work properly (i.e., refer to `conftest.exe'), while it won't with
2900 # `rm'.
2901 for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
2903 case $ac_file in
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906 break;;
2907 * ) break;;
2908 esac
2909 done
2910 else
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2918 rm -f conftest$ac_cv_exeext
2919 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2920 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2922 rm -f conftest.$ac_ext
2923 EXEEXT=$ac_cv_exeext
2924 ac_exeext=$EXEEXT
2925 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2926 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2927 if test "${ac_cv_objext+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2938 main ()
2942 return 0;
2944 _ACEOF
2945 rm -f conftest.o conftest.obj
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 for ac_file in conftest.o conftest.obj conftest.*; do
2957 test -f "$ac_file" || continue;
2958 case $ac_file in
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 break;;
2962 esac
2963 done
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2978 echo "${ECHO_T}$ac_cv_objext" >&6; }
2979 OBJEXT=$ac_cv_objext
2980 ac_objext=$OBJEXT
2981 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2982 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2983 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2994 main ()
2996 #ifndef __GNUC__
2997 choke me
2998 #endif
3001 return 0;
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3012 ac_status=$?
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3021 ac_compiler_gnu=yes
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 ac_compiler_gnu=no
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3035 GCC=`test $ac_compiler_gnu = yes && echo yes`
3036 ac_test_CFLAGS=${CFLAGS+set}
3037 ac_save_CFLAGS=$CFLAGS
3038 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3039 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3040 if test "${ac_cv_prog_cc_g+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 ac_save_c_werror_flag=$ac_c_werror_flag
3044 ac_c_werror_flag=yes
3045 ac_cv_prog_cc_g=no
3046 CFLAGS="-g"
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3055 main ()
3059 return 0;
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
3079 ac_cv_prog_cc_g=yes
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 CFLAGS=""
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3093 main ()
3097 return 0;
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 ac_c_werror_flag=$ac_save_c_werror_flag
3123 CFLAGS="-g"
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>conftest.er1
3147 ac_status=$?
3148 grep -v '^ *+' conftest.er1 >conftest.err
3149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && {
3153 test -z "$ac_c_werror_flag" ||
3154 test ! -s conftest.err
3155 } && test -s conftest.$ac_objext; then
3156 ac_cv_prog_cc_g=yes
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_c_werror_flag=$ac_save_c_werror_flag
3173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3174 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3175 if test "$ac_test_CFLAGS" = set; then
3176 CFLAGS=$ac_save_CFLAGS
3177 elif test $ac_cv_prog_cc_g = yes; then
3178 if test "$GCC" = yes; then
3179 CFLAGS="-g -O2"
3180 else
3181 CFLAGS="-g"
3183 else
3184 if test "$GCC" = yes; then
3185 CFLAGS="-O2"
3186 else
3187 CFLAGS=
3190 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3191 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_cc_c89+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 ac_cv_prog_cc_c89=no
3196 ac_save_CC=$CC
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 #include <stdarg.h>
3204 #include <stdio.h>
3205 #include <sys/types.h>
3206 #include <sys/stat.h>
3207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3208 struct buf { int x; };
3209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3210 static char *e (p, i)
3211 char **p;
3212 int i;
3214 return p[i];
3216 static char *f (char * (*g) (char **, int), char **p, ...)
3218 char *s;
3219 va_list v;
3220 va_start (v,p);
3221 s = g (p, va_arg (v,int));
3222 va_end (v);
3223 return s;
3226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3227 function prototypes and stuff, but not '\xHH' hex character constants.
3228 These don't provoke an error unfortunately, instead are silently treated
3229 as 'x'. The following induces an error, until -std is added to get
3230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3231 array size at least. It's necessary to write '\x00'==0 to get something
3232 that's true only with -std. */
3233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3236 inside strings and character constants. */
3237 #define FOO(x) 'x'
3238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3240 int test (int i, double x);
3241 struct s1 {int (*f) (int a);};
3242 struct s2 {int (*f) (double a);};
3243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3244 int argc;
3245 char **argv;
3247 main ()
3249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3251 return 0;
3253 _ACEOF
3254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3257 CC="$ac_save_CC $ac_arg"
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_prog_cc_c89=$ac_arg
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3283 rm -f core conftest.err conftest.$ac_objext
3284 test "x$ac_cv_prog_cc_c89" != "xno" && break
3285 done
3286 rm -f conftest.$ac_ext
3287 CC=$ac_save_CC
3290 # AC_CACHE_VAL
3291 case "x$ac_cv_prog_cc_c89" in
3293 { echo "$as_me:$LINENO: result: none needed" >&5
3294 echo "${ECHO_T}none needed" >&6; } ;;
3295 xno)
3296 { echo "$as_me:$LINENO: result: unsupported" >&5
3297 echo "${ECHO_T}unsupported" >&6; } ;;
3299 CC="$CC $ac_cv_prog_cc_c89"
3300 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3301 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3302 esac
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 DEPDIR="${am__leading_dot}deps"
3312 ac_config_commands="$ac_config_commands depfiles"
3315 am_make=${MAKE-make}
3316 cat > confinc << 'END'
3317 am__doit:
3318 @echo done
3319 .PHONY: am__doit
3321 # If we don't find an include directive, just comment out the code.
3322 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3323 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3324 am__include="#"
3325 am__quote=
3326 _am_result=none
3327 # First try GNU make style include.
3328 echo "include confinc" > confmf
3329 # We grep out `Entering directory' and `Leaving directory'
3330 # messages which can occur if `w' ends up in MAKEFLAGS.
3331 # In particular we don't look at `^make:' because GNU make might
3332 # be invoked under some other name (usually "gmake"), in which
3333 # case it prints its new name instead of `make'.
3334 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3335 am__include=include
3336 am__quote=
3337 _am_result=GNU
3339 # Now try BSD make style include.
3340 if test "$am__include" = "#"; then
3341 echo '.include "confinc"' > confmf
3342 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3343 am__include=.include
3344 am__quote="\""
3345 _am_result=BSD
3350 { echo "$as_me:$LINENO: result: $_am_result" >&5
3351 echo "${ECHO_T}$_am_result" >&6; }
3352 rm -f confinc confmf
3354 # Check whether --enable-dependency-tracking was given.
3355 if test "${enable_dependency_tracking+set}" = set; then
3356 enableval=$enable_dependency_tracking;
3359 if test "x$enable_dependency_tracking" != xno; then
3360 am_depcomp="$ac_aux_dir/depcomp"
3361 AMDEPBACKSLASH='\'
3365 if test "x$enable_dependency_tracking" != xno; then
3366 AMDEP_TRUE=
3367 AMDEP_FALSE='#'
3368 else
3369 AMDEP_TRUE='#'
3370 AMDEP_FALSE=
3376 depcc="$CC" am_compiler_list=
3378 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3379 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3380 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3384 # We make a subdir and do the tests there. Otherwise we can end up
3385 # making bogus files that we don't know about and never remove. For
3386 # instance it was reported that on HP-UX the gcc test will end up
3387 # making a dummy file named `D' -- because `-MD' means `put the output
3388 # in D'.
3389 mkdir conftest.dir
3390 # Copy depcomp to subdir because otherwise we won't find it if we're
3391 # using a relative directory.
3392 cp "$am_depcomp" conftest.dir
3393 cd conftest.dir
3394 # We will build objects and dependencies in a subdirectory because
3395 # it helps to detect inapplicable dependency modes. For instance
3396 # both Tru64's cc and ICC support -MD to output dependencies as a
3397 # side effect of compilation, but ICC will put the dependencies in
3398 # the current directory while Tru64 will put them in the object
3399 # directory.
3400 mkdir sub
3402 am_cv_CC_dependencies_compiler_type=none
3403 if test "$am_compiler_list" = ""; then
3404 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3406 for depmode in $am_compiler_list; do
3407 # Setup a source with many dependencies, because some compilers
3408 # like to wrap large dependency lists on column 80 (with \), and
3409 # we should not choose a depcomp mode which is confused by this.
3411 # We need to recreate these files for each test, as the compiler may
3412 # overwrite some of them when testing with obscure command lines.
3413 # This happens at least with the AIX C compiler.
3414 : > sub/conftest.c
3415 for i in 1 2 3 4 5 6; do
3416 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3417 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3418 # Solaris 8's {/usr,}/bin/sh.
3419 touch sub/conftst$i.h
3420 done
3421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3423 case $depmode in
3424 nosideeffect)
3425 # after this tag, mechanisms are not by side-effect, so they'll
3426 # only be used when explicitly requested
3427 if test "x$enable_dependency_tracking" = xyes; then
3428 continue
3429 else
3430 break
3433 none) break ;;
3434 esac
3435 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3436 # mode. It turns out that the SunPro C++ compiler does not properly
3437 # handle `-M -o', and we need to detect this.
3438 if depmode=$depmode \
3439 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3441 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3442 >/dev/null 2>conftest.err &&
3443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3444 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3446 # icc doesn't choke on unknown options, it will just issue warnings
3447 # or remarks (even with -Werror). So we grep stderr for any message
3448 # that says an option was ignored or not supported.
3449 # When given -MP, icc 7.0 and 7.1 complain thusly:
3450 # icc: Command line warning: ignoring option '-M'; no argument required
3451 # The diagnosis changed in icc 8.0:
3452 # icc: Command line remark: option '-MP' not supported
3453 if (grep 'ignoring option' conftest.err ||
3454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3455 am_cv_CC_dependencies_compiler_type=$depmode
3456 break
3459 done
3461 cd ..
3462 rm -rf conftest.dir
3463 else
3464 am_cv_CC_dependencies_compiler_type=none
3468 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3469 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3470 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3475 test "x$enable_dependency_tracking" != xno \
3476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3477 am__fastdepCC_TRUE=
3478 am__fastdepCC_FALSE='#'
3479 else
3480 am__fastdepCC_TRUE='#'
3481 am__fastdepCC_FALSE=
3485 # Check whether --enable-shared was given.
3486 if test "${enable_shared+set}" = set; then
3487 enableval=$enable_shared; p=${PACKAGE-default}
3488 case $enableval in
3489 yes) enable_shared=yes ;;
3490 no) enable_shared=no ;;
3492 enable_shared=no
3493 # Look at the argument we got. We use all the common list separators.
3494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3495 for pkg in $enableval; do
3496 IFS="$lt_save_ifs"
3497 if test "X$pkg" = "X$p"; then
3498 enable_shared=yes
3500 done
3501 IFS="$lt_save_ifs"
3503 esac
3504 else
3505 enable_shared=yes
3509 # Check whether --enable-static was given.
3510 if test "${enable_static+set}" = set; then
3511 enableval=$enable_static; p=${PACKAGE-default}
3512 case $enableval in
3513 yes) enable_static=yes ;;
3514 no) enable_static=no ;;
3516 enable_static=no
3517 # Look at the argument we got. We use all the common list separators.
3518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3519 for pkg in $enableval; do
3520 IFS="$lt_save_ifs"
3521 if test "X$pkg" = "X$p"; then
3522 enable_static=yes
3524 done
3525 IFS="$lt_save_ifs"
3527 esac
3528 else
3529 enable_static=yes
3533 # Check whether --enable-fast-install was given.
3534 if test "${enable_fast_install+set}" = set; then
3535 enableval=$enable_fast_install; p=${PACKAGE-default}
3536 case $enableval in
3537 yes) enable_fast_install=yes ;;
3538 no) enable_fast_install=no ;;
3540 enable_fast_install=no
3541 # Look at the argument we got. We use all the common list separators.
3542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3543 for pkg in $enableval; do
3544 IFS="$lt_save_ifs"
3545 if test "X$pkg" = "X$p"; then
3546 enable_fast_install=yes
3548 done
3549 IFS="$lt_save_ifs"
3551 esac
3552 else
3553 enable_fast_install=yes
3557 # Make sure we can run config.sub.
3558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3559 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3560 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3561 { (exit 1); exit 1; }; }
3563 { echo "$as_me:$LINENO: checking build system type" >&5
3564 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3565 if test "${ac_cv_build+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_build_alias=$build_alias
3569 test "x$ac_build_alias" = x &&
3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3571 test "x$ac_build_alias" = x &&
3572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3574 { (exit 1); exit 1; }; }
3575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3576 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3577 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3578 { (exit 1); exit 1; }; }
3581 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3582 echo "${ECHO_T}$ac_cv_build" >&6; }
3583 case $ac_cv_build in
3584 *-*-*) ;;
3585 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3586 echo "$as_me: error: invalid value of canonical build" >&2;}
3587 { (exit 1); exit 1; }; };;
3588 esac
3589 build=$ac_cv_build
3590 ac_save_IFS=$IFS; IFS='-'
3591 set x $ac_cv_build
3592 shift
3593 build_cpu=$1
3594 build_vendor=$2
3595 shift; shift
3596 # Remember, the first character of IFS is used to create $*,
3597 # except with old shells:
3598 build_os=$*
3599 IFS=$ac_save_IFS
3600 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603 { echo "$as_me:$LINENO: checking host system type" >&5
3604 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3605 if test "${ac_cv_host+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test "x$host_alias" = x; then
3609 ac_cv_host=$ac_cv_build
3610 else
3611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3612 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3613 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3614 { (exit 1); exit 1; }; }
3618 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3619 echo "${ECHO_T}$ac_cv_host" >&6; }
3620 case $ac_cv_host in
3621 *-*-*) ;;
3622 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3623 echo "$as_me: error: invalid value of canonical host" >&2;}
3624 { (exit 1); exit 1; }; };;
3625 esac
3626 host=$ac_cv_host
3627 ac_save_IFS=$IFS; IFS='-'
3628 set x $ac_cv_host
3629 shift
3630 host_cpu=$1
3631 host_vendor=$2
3632 shift; shift
3633 # Remember, the first character of IFS is used to create $*,
3634 # except with old shells:
3635 host_os=$*
3636 IFS=$ac_save_IFS
3637 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3640 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3641 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3642 if test "${lt_cv_path_SED+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 # Loop through the user's path and test for sed and gsed.
3646 # Then use that list of sed's as ones to test for truncation.
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for lt_ac_prog in sed gsed; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3655 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3657 done
3658 done
3659 done
3660 IFS=$as_save_IFS
3661 lt_ac_max=0
3662 lt_ac_count=0
3663 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3664 # along with /bin/sed that truncates output.
3665 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3666 test ! -f $lt_ac_sed && continue
3667 cat /dev/null > conftest.in
3668 lt_ac_count=0
3669 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3670 # Check for GNU sed and select it if it is found.
3671 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3672 lt_cv_path_SED=$lt_ac_sed
3673 break
3675 while true; do
3676 cat conftest.in conftest.in >conftest.tmp
3677 mv conftest.tmp conftest.in
3678 cp conftest.in conftest.nl
3679 echo >>conftest.nl
3680 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3681 cmp -s conftest.out conftest.nl || break
3682 # 10000 chars as input seems more than enough
3683 test $lt_ac_count -gt 10 && break
3684 lt_ac_count=`expr $lt_ac_count + 1`
3685 if test $lt_ac_count -gt $lt_ac_max; then
3686 lt_ac_max=$lt_ac_count
3687 lt_cv_path_SED=$lt_ac_sed
3689 done
3690 done
3694 SED=$lt_cv_path_SED
3696 { echo "$as_me:$LINENO: result: $SED" >&5
3697 echo "${ECHO_T}$SED" >&6; }
3699 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 # Extract the first word of "grep ggrep" to use in msg output
3705 if test -z "$GREP"; then
3706 set dummy grep ggrep; ac_prog_name=$2
3707 if test "${ac_cv_path_GREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 ac_path_GREP_found=false
3711 # Loop through the user's path and test for each of PROGNAME-LIST
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in grep ggrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3721 # Check for GNU ac_path_GREP and select it if it is found.
3722 # Check for GNU $ac_path_GREP
3723 case `"$ac_path_GREP" --version 2>&1` in
3724 *GNU*)
3725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 ac_count=0
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 while :
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'GREP' >> "conftest.nl"
3735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 ac_count=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_GREP="$ac_path_GREP"
3741 ac_path_GREP_max=$ac_count
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3745 done
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 esac
3750 $ac_path_GREP_found && break 3
3751 done
3752 done
3754 done
3755 IFS=$as_save_IFS
3760 GREP="$ac_cv_path_GREP"
3761 if test -z "$GREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3767 else
3768 ac_cv_path_GREP=$GREP
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3775 GREP="$ac_cv_path_GREP"
3778 { echo "$as_me:$LINENO: checking for egrep" >&5
3779 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3784 then ac_cv_path_EGREP="$GREP -E"
3785 else
3786 # Extract the first word of "egrep" to use in msg output
3787 if test -z "$EGREP"; then
3788 set dummy egrep; ac_prog_name=$2
3789 if test "${ac_cv_path_EGREP+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 ac_path_EGREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in egrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3802 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3803 # Check for GNU ac_path_EGREP and select it if it is found.
3804 # Check for GNU $ac_path_EGREP
3805 case `"$ac_path_EGREP" --version 2>&1` in
3806 *GNU*)
3807 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809 ac_count=0
3810 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811 while :
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 echo 'EGREP' >> "conftest.nl"
3817 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 ac_count=`expr $ac_count + 1`
3820 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_EGREP="$ac_path_EGREP"
3823 ac_path_EGREP_max=$ac_count
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3827 done
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3832 $ac_path_EGREP_found && break 3
3833 done
3834 done
3836 done
3837 IFS=$as_save_IFS
3842 EGREP="$ac_cv_path_EGREP"
3843 if test -z "$EGREP"; then
3844 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3845 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3846 { (exit 1); exit 1; }; }
3849 else
3850 ac_cv_path_EGREP=$EGREP
3856 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3857 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3858 EGREP="$ac_cv_path_EGREP"
3862 # Check whether --with-gnu-ld was given.
3863 if test "${with_gnu_ld+set}" = set; then
3864 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3865 else
3866 with_gnu_ld=no
3869 ac_prog=ld
3870 if test "$GCC" = yes; then
3871 # Check if gcc -print-prog-name=ld gives a path.
3872 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3873 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3874 case $host in
3875 *-*-mingw*)
3876 # gcc leaves a trailing carriage return which upsets mingw
3877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3880 esac
3881 case $ac_prog in
3882 # Accept absolute paths.
3883 [\\/]* | ?:[\\/]*)
3884 re_direlt='/[^/][^/]*/\.\./'
3885 # Canonicalize the pathname of ld
3886 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3887 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3888 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3889 done
3890 test -z "$LD" && LD="$ac_prog"
3893 # If it fails, then pretend we aren't using GCC.
3894 ac_prog=ld
3897 # If it is relative, then search for the first ld in PATH.
3898 with_gnu_ld=unknown
3900 esac
3901 elif test "$with_gnu_ld" = yes; then
3902 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3903 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3904 else
3905 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3906 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3908 if test "${lt_cv_path_LD+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 if test -z "$LD"; then
3912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3913 for ac_dir in $PATH; do
3914 IFS="$lt_save_ifs"
3915 test -z "$ac_dir" && ac_dir=.
3916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3917 lt_cv_path_LD="$ac_dir/$ac_prog"
3918 # Check to see if the program is GNU ld. I'd rather use --version,
3919 # but apparently some variants of GNU ld only accept -v.
3920 # Break only if it was the GNU/non-GNU ld that we prefer.
3921 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3922 *GNU* | *'with BFD'*)
3923 test "$with_gnu_ld" != no && break
3926 test "$with_gnu_ld" != yes && break
3928 esac
3930 done
3931 IFS="$lt_save_ifs"
3932 else
3933 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3937 LD="$lt_cv_path_LD"
3938 if test -n "$LD"; then
3939 { echo "$as_me:$LINENO: result: $LD" >&5
3940 echo "${ECHO_T}$LD" >&6; }
3941 else
3942 { echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6; }
3945 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3946 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3947 { (exit 1); exit 1; }; }
3948 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3949 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3950 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3954 case `$LD -v 2>&1 </dev/null` in
3955 *GNU* | *'with BFD'*)
3956 lt_cv_prog_gnu_ld=yes
3959 lt_cv_prog_gnu_ld=no
3961 esac
3963 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3964 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3965 with_gnu_ld=$lt_cv_prog_gnu_ld
3968 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3969 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3970 if test "${lt_cv_ld_reload_flag+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 lt_cv_ld_reload_flag='-r'
3975 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3976 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3977 reload_flag=$lt_cv_ld_reload_flag
3978 case $reload_flag in
3979 "" | " "*) ;;
3980 *) reload_flag=" $reload_flag" ;;
3981 esac
3982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3983 case $host_os in
3984 darwin*)
3985 if test "$GCC" = yes; then
3986 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3987 else
3988 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3991 esac
3993 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3994 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3995 if test "${lt_cv_path_NM+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998 if test -n "$NM"; then
3999 # Let the user override the test.
4000 lt_cv_path_NM="$NM"
4001 else
4002 lt_nm_to_check="${ac_tool_prefix}nm"
4003 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4004 lt_nm_to_check="$lt_nm_to_check nm"
4006 for lt_tmp_nm in $lt_nm_to_check; do
4007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4008 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4009 IFS="$lt_save_ifs"
4010 test -z "$ac_dir" && ac_dir=.
4011 tmp_nm="$ac_dir/$lt_tmp_nm"
4012 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4013 # Check to see if the nm accepts a BSD-compat flag.
4014 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4015 # nm: unknown option "B" ignored
4016 # Tru64's nm complains that /dev/null is an invalid object file
4017 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4018 */dev/null* | *'Invalid file or object type'*)
4019 lt_cv_path_NM="$tmp_nm -B"
4020 break
4023 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4024 */dev/null*)
4025 lt_cv_path_NM="$tmp_nm -p"
4026 break
4029 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4030 continue # so that we can try to find one that supports BSD flags
4032 esac
4034 esac
4036 done
4037 IFS="$lt_save_ifs"
4038 done
4039 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4042 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4043 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4044 NM="$lt_cv_path_NM"
4046 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4047 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4048 LN_S=$as_ln_s
4049 if test "$LN_S" = "ln -s"; then
4050 { echo "$as_me:$LINENO: result: yes" >&5
4051 echo "${ECHO_T}yes" >&6; }
4052 else
4053 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4054 echo "${ECHO_T}no, using $LN_S" >&6; }
4057 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4058 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4059 if test "${lt_cv_deplibs_check_method+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 lt_cv_file_magic_cmd='$MAGIC_CMD'
4063 lt_cv_file_magic_test_file=
4064 lt_cv_deplibs_check_method='unknown'
4065 # Need to set the preceding variable on all platforms that support
4066 # interlibrary dependencies.
4067 # 'none' -- dependencies not supported.
4068 # `unknown' -- same as none, but documents that we really don't know.
4069 # 'pass_all' -- all dependencies passed with no checks.
4070 # 'test_compile' -- check by making test program.
4071 # 'file_magic [[regex]]' -- check by looking for files in library path
4072 # which responds to the $file_magic_cmd with a given extended regex.
4073 # If you have `file' or equivalent on your system and you're not sure
4074 # whether `pass_all' will *always* work, you probably want this one.
4076 case $host_os in
4077 aix4* | aix5*)
4078 lt_cv_deplibs_check_method=pass_all
4081 beos*)
4082 lt_cv_deplibs_check_method=pass_all
4085 bsdi[45]*)
4086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4087 lt_cv_file_magic_cmd='/usr/bin/file -L'
4088 lt_cv_file_magic_test_file=/shlib/libc.so
4091 cygwin*)
4092 # func_win32_libid is a shell function defined in ltmain.sh
4093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4094 lt_cv_file_magic_cmd='func_win32_libid'
4097 mingw* | pw32*)
4098 # Base MSYS/MinGW do not provide the 'file' command needed by
4099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4100 # unless we find 'file', for example because we are cross-compiling.
4101 if ( file / ) >/dev/null 2>&1; then
4102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4103 lt_cv_file_magic_cmd='func_win32_libid'
4104 else
4105 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4106 lt_cv_file_magic_cmd='$OBJDUMP -f'
4110 darwin* | rhapsody*)
4111 lt_cv_deplibs_check_method=pass_all
4114 freebsd* | dragonfly*)
4115 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4116 case $host_cpu in
4117 i*86 )
4118 # Not sure whether the presence of OpenBSD here was a mistake.
4119 # Let's accept both of them until this is cleared up.
4120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4121 lt_cv_file_magic_cmd=/usr/bin/file
4122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4124 esac
4125 else
4126 lt_cv_deplibs_check_method=pass_all
4130 gnu*)
4131 lt_cv_deplibs_check_method=pass_all
4134 hpux10.20* | hpux11*)
4135 lt_cv_file_magic_cmd=/usr/bin/file
4136 case $host_cpu in
4137 ia64*)
4138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4141 hppa*64*)
4142 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]'
4143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4149 esac
4152 interix[3-9]*)
4153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4157 irix5* | irix6* | nonstopux*)
4158 case $LD in
4159 *-32|*"-32 ") libmagic=32-bit;;
4160 *-n32|*"-n32 ") libmagic=N32;;
4161 *-64|*"-64 ") libmagic=64-bit;;
4162 *) libmagic=never-match;;
4163 esac
4164 lt_cv_deplibs_check_method=pass_all
4167 # This must be Linux ELF.
4168 linux* | k*bsd*-gnu)
4169 lt_cv_deplibs_check_method=pass_all
4172 netbsd*)
4173 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4175 else
4176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4180 newos6*)
4181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4182 lt_cv_file_magic_cmd=/usr/bin/file
4183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4186 nto-qnx*)
4187 lt_cv_deplibs_check_method=unknown
4190 openbsd*)
4191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4193 else
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4198 osf3* | osf4* | osf5*)
4199 lt_cv_deplibs_check_method=pass_all
4202 rdos*)
4203 lt_cv_deplibs_check_method=pass_all
4206 solaris*)
4207 lt_cv_deplibs_check_method=pass_all
4210 sysv4 | sysv4.3*)
4211 case $host_vendor in
4212 motorola)
4213 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]'
4214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4216 ncr)
4217 lt_cv_deplibs_check_method=pass_all
4219 sequent)
4220 lt_cv_file_magic_cmd='/bin/file'
4221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4223 sni)
4224 lt_cv_file_magic_cmd='/bin/file'
4225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4226 lt_cv_file_magic_test_file=/lib/libc.so
4228 siemens)
4229 lt_cv_deplibs_check_method=pass_all
4232 lt_cv_deplibs_check_method=pass_all
4234 esac
4237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4240 esac
4243 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4244 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4245 file_magic_cmd=$lt_cv_file_magic_cmd
4246 deplibs_check_method=$lt_cv_deplibs_check_method
4247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4252 # If no C compiler was specified, use CC.
4253 LTCC=${LTCC-"$CC"}
4255 # If no C compiler flags were specified, use CFLAGS.
4256 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4258 # Allow CC to be a program name with arguments.
4259 compiler=$CC
4262 # Check whether --enable-libtool-lock was given.
4263 if test "${enable_libtool_lock+set}" = set; then
4264 enableval=$enable_libtool_lock;
4267 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4269 # Some flags need to be propagated to the compiler or linker for good
4270 # libtool support.
4271 case $host in
4272 ia64-*-hpux*)
4273 # Find out which ABI we are using.
4274 echo 'int i;' > conftest.$ac_ext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; then
4280 case `/usr/bin/file conftest.$ac_objext` in
4281 *ELF-32*)
4282 HPUX_IA64_MODE="32"
4284 *ELF-64*)
4285 HPUX_IA64_MODE="64"
4287 esac
4289 rm -rf conftest*
4291 *-*-irix6*)
4292 # Find out which ABI we are using.
4293 echo '#line 4293 "configure"' > conftest.$ac_ext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; then
4299 if test "$lt_cv_prog_gnu_ld" = yes; then
4300 case `/usr/bin/file conftest.$ac_objext` in
4301 *32-bit*)
4302 LD="${LD-ld} -melf32bsmip"
4304 *N32*)
4305 LD="${LD-ld} -melf32bmipn32"
4307 *64-bit*)
4308 LD="${LD-ld} -melf64bmip"
4310 esac
4311 else
4312 case `/usr/bin/file conftest.$ac_objext` in
4313 *32-bit*)
4314 LD="${LD-ld} -32"
4316 *N32*)
4317 LD="${LD-ld} -n32"
4319 *64-bit*)
4320 LD="${LD-ld} -64"
4322 esac
4325 rm -rf conftest*
4328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4329 s390*-*linux*|sparc*-*linux*)
4330 # Find out which ABI we are using.
4331 echo 'int i;' > conftest.$ac_ext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; then
4337 case `/usr/bin/file conftest.o` in
4338 *32-bit*)
4339 case $host in
4340 x86_64-*kfreebsd*-gnu)
4341 LD="${LD-ld} -m elf_i386_fbsd"
4343 x86_64-*linux*)
4344 LD="${LD-ld} -m elf_i386"
4346 ppc64-*linux*|powerpc64-*linux*)
4347 LD="${LD-ld} -m elf32ppclinux"
4349 s390x-*linux*)
4350 LD="${LD-ld} -m elf_s390"
4352 sparc64-*linux*)
4353 LD="${LD-ld} -m elf32_sparc"
4355 esac
4357 *64-bit*)
4358 case $host in
4359 x86_64-*kfreebsd*-gnu)
4360 LD="${LD-ld} -m elf_x86_64_fbsd"
4362 x86_64-*linux*)
4363 LD="${LD-ld} -m elf_x86_64"
4365 ppc*-*linux*|powerpc*-*linux*)
4366 LD="${LD-ld} -m elf64ppc"
4368 s390*-*linux*)
4369 LD="${LD-ld} -m elf64_s390"
4371 sparc*-*linux*)
4372 LD="${LD-ld} -m elf64_sparc"
4374 esac
4376 esac
4378 rm -rf conftest*
4381 *-*-sco3.2v5*)
4382 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4383 SAVE_CFLAGS="$CFLAGS"
4384 CFLAGS="$CFLAGS -belf"
4385 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4386 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4387 if test "${lt_cv_cc_needs_belf+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_link") 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest$ac_exeext &&
4428 $as_test_x conftest$ac_exeext; then
4429 lt_cv_cc_needs_belf=yes
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 lt_cv_cc_needs_belf=no
4437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4438 conftest$ac_exeext conftest.$ac_ext
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4447 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4448 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4449 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4450 CFLAGS="$SAVE_CFLAGS"
4453 sparc*-*solaris*)
4454 # Find out which ABI we are using.
4455 echo 'int i;' > conftest.$ac_ext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; then
4461 case `/usr/bin/file conftest.o` in
4462 *64-bit*)
4463 case $lt_cv_prog_gnu_ld in
4464 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4465 *) LD="${LD-ld} -64" ;;
4466 esac
4468 esac
4470 rm -rf conftest*
4474 esac
4476 need_locks="$enable_libtool_lock"
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4485 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4486 # On Suns, sometimes $CPP names a directory.
4487 if test -n "$CPP" && test -d "$CPP"; then
4488 CPP=
4490 if test -z "$CPP"; then
4491 if test "${ac_cv_prog_CPP+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494 # Double quotes because CPP needs to be expanded
4495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4497 ac_preproc_ok=false
4498 for ac_c_preproc_warn_flag in '' yes
4500 # Use a header file that comes with gcc, so configuring glibc
4501 # with a fresh cross-compiler works.
4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503 # <limits.h> exists even on freestanding compilers.
4504 # On the NeXT, cc -E runs the code through the compiler's parser,
4505 # not just through cpp. "Syntax error" is here to catch this case.
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4517 Syntax error
4518 _ACEOF
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } >/dev/null && {
4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4534 }; then
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4540 # Broken: fails on valid input.
4541 continue
4544 rm -f conftest.err conftest.$ac_ext
4546 # OK, works on sane cases. Now check whether nonexistent headers
4547 # can be detected and how.
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 #include <ac_nonexistent.h>
4555 _ACEOF
4556 if { (ac_try="$ac_cpp conftest.$ac_ext"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null && {
4569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 }; then
4572 # Broken: success on invalid input.
4573 continue
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 # Passes both tests.
4579 ac_preproc_ok=:
4580 break
4583 rm -f conftest.err conftest.$ac_ext
4585 done
4586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4587 rm -f conftest.err conftest.$ac_ext
4588 if $ac_preproc_ok; then
4589 break
4592 done
4593 ac_cv_prog_CPP=$CPP
4596 CPP=$ac_cv_prog_CPP
4597 else
4598 ac_cv_prog_CPP=$CPP
4600 { echo "$as_me:$LINENO: result: $CPP" >&5
4601 echo "${ECHO_T}$CPP" >&6; }
4602 ac_preproc_ok=false
4603 for ac_c_preproc_warn_flag in '' yes
4605 # Use a header file that comes with gcc, so configuring glibc
4606 # with a fresh cross-compiler works.
4607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4608 # <limits.h> exists even on freestanding compilers.
4609 # On the NeXT, cc -E runs the code through the compiler's parser,
4610 # not just through cpp. "Syntax error" is here to catch this case.
4611 cat >conftest.$ac_ext <<_ACEOF
4612 /* confdefs.h. */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #ifdef __STDC__
4618 # include <limits.h>
4619 #else
4620 # include <assert.h>
4621 #endif
4622 Syntax error
4623 _ACEOF
4624 if { (ac_try="$ac_cpp conftest.$ac_ext"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null && {
4637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 }; then
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 # Broken: fails on valid input.
4646 continue
4649 rm -f conftest.err conftest.$ac_ext
4651 # OK, works on sane cases. Now check whether nonexistent headers
4652 # can be detected and how.
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <ac_nonexistent.h>
4660 _ACEOF
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4677 # Broken: success on invalid input.
4678 continue
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 # Passes both tests.
4684 ac_preproc_ok=:
4685 break
4688 rm -f conftest.err conftest.$ac_ext
4690 done
4691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4692 rm -f conftest.err conftest.$ac_ext
4693 if $ac_preproc_ok; then
4695 else
4696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4711 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4712 if test "${ac_cv_header_stdc+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <stdlib.h>
4722 #include <stdarg.h>
4723 #include <string.h>
4724 #include <float.h>
4727 main ()
4731 return 0;
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest.$ac_objext; then
4751 ac_cv_header_stdc=yes
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 ac_cv_header_stdc=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <string.h>
4771 _ACEOF
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "memchr" >/dev/null 2>&1; then
4775 else
4776 ac_cv_header_stdc=no
4778 rm -f conftest*
4782 if test $ac_cv_header_stdc = yes; then
4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <stdlib.h>
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "free" >/dev/null 2>&1; then
4796 else
4797 ac_cv_header_stdc=no
4799 rm -f conftest*
4803 if test $ac_cv_header_stdc = yes; then
4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4805 if test "$cross_compiling" = yes; then
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <ctype.h>
4815 #include <stdlib.h>
4816 #if ((' ' & 0x0FF) == 0x020)
4817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4819 #else
4820 # define ISLOWER(c) \
4821 (('a' <= (c) && (c) <= 'i') \
4822 || ('j' <= (c) && (c) <= 'r') \
4823 || ('s' <= (c) && (c) <= 'z'))
4824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4825 #endif
4827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 main ()
4831 int i;
4832 for (i = 0; i < 256; i++)
4833 if (XOR (islower (i), ISLOWER (i))
4834 || toupper (i) != TOUPPER (i))
4835 return 2;
4836 return 0;
4838 _ACEOF
4839 rm -f conftest$ac_exeext
4840 if { (ac_try="$ac_link"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_link") 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4860 else
4861 echo "$as_me: program exited with status $ac_status" >&5
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ( exit $ac_status )
4866 ac_cv_header_stdc=no
4868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4875 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4876 if test $ac_cv_header_stdc = yes; then
4878 cat >>confdefs.h <<\_ACEOF
4879 #define STDC_HEADERS 1
4880 _ACEOF
4884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4894 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4895 inttypes.h stdint.h unistd.h
4897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4911 #include <$ac_header>
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (ac_try="$ac_compile"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_compile") 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && {
4927 test -z "$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4929 } && test -s conftest.$ac_objext; then
4930 eval "$as_ac_Header=yes"
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 eval "$as_ac_Header=no"
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_res=`eval echo '${'$as_ac_Header'}'`
4941 { echo "$as_me:$LINENO: result: $ac_res" >&5
4942 echo "${ECHO_T}$ac_res" >&6; }
4943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4944 cat >>confdefs.h <<_ACEOF
4945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4946 _ACEOF
4950 done
4954 for ac_header in dlfcn.h
4956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 ac_res=`eval echo '${'$as_ac_Header'}'`
4964 { echo "$as_me:$LINENO: result: $ac_res" >&5
4965 echo "${ECHO_T}$ac_res" >&6; }
4966 else
4967 # Is the header compilable?
4968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4977 #include <$ac_header>
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (ac_try="$ac_compile"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 ac_header_compiler=yes
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 ac_header_compiler=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5006 echo "${ECHO_T}$ac_header_compiler" >&6; }
5008 # Is the header present?
5009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <$ac_header>
5018 _ACEOF
5019 if { (ac_try="$ac_cpp conftest.$ac_ext"
5020 case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023 esac
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null && {
5032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5034 }; then
5035 ac_header_preproc=yes
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_header_preproc=no
5043 rm -f conftest.err conftest.$ac_ext
5044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5045 echo "${ECHO_T}$ac_header_preproc" >&6; }
5047 # So? What about this header?
5048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5049 yes:no: )
5050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5054 ac_header_preproc=yes
5056 no:yes:* )
5057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5071 esac
5072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 eval "$as_ac_Header=\$ac_header_preproc"
5079 ac_res=`eval echo '${'$as_ac_Header'}'`
5080 { echo "$as_me:$LINENO: result: $ac_res" >&5
5081 echo "${ECHO_T}$ac_res" >&6; }
5084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5085 cat >>confdefs.h <<_ACEOF
5086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 _ACEOF
5091 done
5093 ac_ext=cpp
5094 ac_cpp='$CXXCPP $CPPFLAGS'
5095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5098 if test -z "$CXX"; then
5099 if test -n "$CCC"; then
5100 CXX=$CCC
5101 else
5102 if test -n "$ac_tool_prefix"; then
5103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_prog_CXX+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112 if test -n "$CXX"; then
5113 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 CXX=$ac_cv_prog_CXX
5133 if test -n "$CXX"; then
5134 { echo "$as_me:$LINENO: result: $CXX" >&5
5135 echo "${ECHO_T}$CXX" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 test -n "$CXX" && break
5143 done
5145 if test -z "$CXX"; then
5146 ac_ct_CXX=$CXX
5147 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5153 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -n "$ac_ct_CXX"; then
5157 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_ac_ct_CXX="$ac_prog"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5170 done
5171 done
5172 IFS=$as_save_IFS
5176 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5177 if test -n "$ac_ct_CXX"; then
5178 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5179 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5180 else
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 test -n "$ac_ct_CXX" && break
5187 done
5189 if test "x$ac_ct_CXX" = x; then
5190 CXX="g++"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5195 whose name does not start with the host triplet. If you think this
5196 configuration is useful to you, please write to autoconf@gnu.org." >&5
5197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5198 whose name does not start with the host triplet. If you think this
5199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5200 ac_tool_warned=yes ;;
5201 esac
5202 CXX=$ac_ct_CXX
5208 # Provide some information about the compiler.
5209 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5210 ac_compiler=`set X $ac_compile; echo $2`
5211 { (ac_try="$ac_compiler --version >&5"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compiler --version >&5") 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }
5221 { (ac_try="$ac_compiler -v >&5"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_compiler -v >&5") 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (ac_try="$ac_compiler -V >&5"
5232 case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compiler -V >&5") 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5242 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5243 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5244 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5255 main ()
5257 #ifndef __GNUC__
5258 choke me
5259 #endif
5262 return 0;
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_cxx_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_compiler_gnu=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_compiler_gnu=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5294 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5296 GXX=`test $ac_compiler_gnu = yes && echo yes`
5297 ac_test_CXXFLAGS=${CXXFLAGS+set}
5298 ac_save_CXXFLAGS=$CXXFLAGS
5299 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5300 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5301 if test "${ac_cv_prog_cxx_g+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5305 ac_cxx_werror_flag=yes
5306 ac_cv_prog_cxx_g=no
5307 CXXFLAGS="-g"
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5316 main ()
5320 return 0;
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.$ac_objext; then
5340 ac_cv_prog_cxx_g=yes
5341 else
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 CXXFLAGS=""
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5354 main ()
5358 return 0;
5360 _ACEOF
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5363 case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5369 ac_status=$?
5370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_cxx_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5384 CXXFLAGS="-g"
5385 cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h. */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5393 main ()
5397 return 0;
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_cxx_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_cv_prog_cxx_g=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5435 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5436 if test "$ac_test_CXXFLAGS" = set; then
5437 CXXFLAGS=$ac_save_CXXFLAGS
5438 elif test $ac_cv_prog_cxx_g = yes; then
5439 if test "$GXX" = yes; then
5440 CXXFLAGS="-g -O2"
5441 else
5442 CXXFLAGS="-g"
5444 else
5445 if test "$GXX" = yes; then
5446 CXXFLAGS="-O2"
5447 else
5448 CXXFLAGS=
5451 ac_ext=cpp
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5457 depcc="$CXX" am_compiler_list=
5459 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5460 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5461 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5465 # We make a subdir and do the tests there. Otherwise we can end up
5466 # making bogus files that we don't know about and never remove. For
5467 # instance it was reported that on HP-UX the gcc test will end up
5468 # making a dummy file named `D' -- because `-MD' means `put the output
5469 # in D'.
5470 mkdir conftest.dir
5471 # Copy depcomp to subdir because otherwise we won't find it if we're
5472 # using a relative directory.
5473 cp "$am_depcomp" conftest.dir
5474 cd conftest.dir
5475 # We will build objects and dependencies in a subdirectory because
5476 # it helps to detect inapplicable dependency modes. For instance
5477 # both Tru64's cc and ICC support -MD to output dependencies as a
5478 # side effect of compilation, but ICC will put the dependencies in
5479 # the current directory while Tru64 will put them in the object
5480 # directory.
5481 mkdir sub
5483 am_cv_CXX_dependencies_compiler_type=none
5484 if test "$am_compiler_list" = ""; then
5485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5487 for depmode in $am_compiler_list; do
5488 # Setup a source with many dependencies, because some compilers
5489 # like to wrap large dependency lists on column 80 (with \), and
5490 # we should not choose a depcomp mode which is confused by this.
5492 # We need to recreate these files for each test, as the compiler may
5493 # overwrite some of them when testing with obscure command lines.
5494 # This happens at least with the AIX C compiler.
5495 : > sub/conftest.c
5496 for i in 1 2 3 4 5 6; do
5497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5499 # Solaris 8's {/usr,}/bin/sh.
5500 touch sub/conftst$i.h
5501 done
5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5504 case $depmode in
5505 nosideeffect)
5506 # after this tag, mechanisms are not by side-effect, so they'll
5507 # only be used when explicitly requested
5508 if test "x$enable_dependency_tracking" = xyes; then
5509 continue
5510 else
5511 break
5514 none) break ;;
5515 esac
5516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5517 # mode. It turns out that the SunPro C++ compiler does not properly
5518 # handle `-M -o', and we need to detect this.
5519 if depmode=$depmode \
5520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5523 >/dev/null 2>conftest.err &&
5524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5525 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5527 # icc doesn't choke on unknown options, it will just issue warnings
5528 # or remarks (even with -Werror). So we grep stderr for any message
5529 # that says an option was ignored or not supported.
5530 # When given -MP, icc 7.0 and 7.1 complain thusly:
5531 # icc: Command line warning: ignoring option '-M'; no argument required
5532 # The diagnosis changed in icc 8.0:
5533 # icc: Command line remark: option '-MP' not supported
5534 if (grep 'ignoring option' conftest.err ||
5535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5536 am_cv_CXX_dependencies_compiler_type=$depmode
5537 break
5540 done
5542 cd ..
5543 rm -rf conftest.dir
5544 else
5545 am_cv_CXX_dependencies_compiler_type=none
5549 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5550 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5551 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5556 test "x$enable_dependency_tracking" != xno \
5557 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5558 am__fastdepCXX_TRUE=
5559 am__fastdepCXX_FALSE='#'
5560 else
5561 am__fastdepCXX_TRUE='#'
5562 am__fastdepCXX_FALSE=
5568 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5570 (test "X$CXX" != "Xg++"))) ; then
5571 ac_ext=cpp
5572 ac_cpp='$CXXCPP $CPPFLAGS'
5573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5577 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5578 if test -z "$CXXCPP"; then
5579 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 # Double quotes because CXXCPP needs to be expanded
5583 for CXXCPP in "$CXX -E" "/lib/cpp"
5585 ac_preproc_ok=false
5586 for ac_cxx_preproc_warn_flag in '' yes
5588 # Use a header file that comes with gcc, so configuring glibc
5589 # with a fresh cross-compiler works.
5590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5591 # <limits.h> exists even on freestanding compilers.
5592 # On the NeXT, cc -E runs the code through the compiler's parser,
5593 # not just through cpp. "Syntax error" is here to catch this case.
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #ifdef __STDC__
5601 # include <limits.h>
5602 #else
5603 # include <assert.h>
5604 #endif
5605 Syntax error
5606 _ACEOF
5607 if { (ac_try="$ac_cpp conftest.$ac_ext"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } >/dev/null && {
5620 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5621 test ! -s conftest.err
5622 }; then
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 # Broken: fails on valid input.
5629 continue
5632 rm -f conftest.err conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <ac_nonexistent.h>
5643 _ACEOF
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null && {
5657 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5658 test ! -s conftest.err
5659 }; then
5660 # Broken: success on invalid input.
5661 continue
5662 else
5663 echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 # Passes both tests.
5667 ac_preproc_ok=:
5668 break
5671 rm -f conftest.err conftest.$ac_ext
5673 done
5674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5675 rm -f conftest.err conftest.$ac_ext
5676 if $ac_preproc_ok; then
5677 break
5680 done
5681 ac_cv_prog_CXXCPP=$CXXCPP
5684 CXXCPP=$ac_cv_prog_CXXCPP
5685 else
5686 ac_cv_prog_CXXCPP=$CXXCPP
5688 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5689 echo "${ECHO_T}$CXXCPP" >&6; }
5690 ac_preproc_ok=false
5691 for ac_cxx_preproc_warn_flag in '' yes
5693 # Use a header file that comes with gcc, so configuring glibc
5694 # with a fresh cross-compiler works.
5695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5696 # <limits.h> exists even on freestanding compilers.
5697 # On the NeXT, cc -E runs the code through the compiler's parser,
5698 # not just through cpp. "Syntax error" is here to catch this case.
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #ifdef __STDC__
5706 # include <limits.h>
5707 #else
5708 # include <assert.h>
5709 #endif
5710 Syntax error
5711 _ACEOF
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null && {
5725 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5726 test ! -s conftest.err
5727 }; then
5729 else
5730 echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 # Broken: fails on valid input.
5734 continue
5737 rm -f conftest.err conftest.$ac_ext
5739 # OK, works on sane cases. Now check whether nonexistent headers
5740 # can be detected and how.
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <ac_nonexistent.h>
5748 _ACEOF
5749 if { (ac_try="$ac_cpp conftest.$ac_ext"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null && {
5762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 }; then
5765 # Broken: success on invalid input.
5766 continue
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 # Passes both tests.
5772 ac_preproc_ok=:
5773 break
5776 rm -f conftest.err conftest.$ac_ext
5778 done
5779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5780 rm -f conftest.err conftest.$ac_ext
5781 if $ac_preproc_ok; then
5783 else
5784 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5785 See \`config.log' for more details." >&5
5786 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5787 See \`config.log' for more details." >&2;}
5788 { (exit 1); exit 1; }; }
5791 ac_ext=cpp
5792 ac_cpp='$CXXCPP $CPPFLAGS'
5793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 ac_ext=f
5801 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5802 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5804 if test -n "$ac_tool_prefix"; then
5805 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
5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_prog_F77+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 if test -n "$F77"; then
5815 ac_cv_prog_F77="$F77" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 F77=$ac_cv_prog_F77
5835 if test -n "$F77"; then
5836 { echo "$as_me:$LINENO: result: $F77" >&5
5837 echo "${ECHO_T}$F77" >&6; }
5838 else
5839 { echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6; }
5844 test -n "$F77" && break
5845 done
5847 if test -z "$F77"; then
5848 ac_ct_F77=$F77
5849 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
5851 # Extract the first word of "$ac_prog", so it can be a program name with args.
5852 set dummy $ac_prog; ac_word=$2
5853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5855 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 if test -n "$ac_ct_F77"; then
5859 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_F77="$ac_prog"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5879 if test -n "$ac_ct_F77"; then
5880 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5881 echo "${ECHO_T}$ac_ct_F77" >&6; }
5882 else
5883 { echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6; }
5888 test -n "$ac_ct_F77" && break
5889 done
5891 if test "x$ac_ct_F77" = x; then
5892 F77=""
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5897 whose name does not start with the host triplet. If you think this
5898 configuration is useful to you, please write to autoconf@gnu.org." >&5
5899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5900 whose name does not start with the host triplet. If you think this
5901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 F77=$ac_ct_F77
5909 # Provide some information about the compiler.
5910 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5911 ac_compiler=`set X $ac_compile; echo $2`
5912 { (ac_try="$ac_compiler --version >&5"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_compiler --version >&5") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }
5922 { (ac_try="$ac_compiler -v >&5"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compiler -v >&5") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }
5932 { (ac_try="$ac_compiler -V >&5"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_compiler -V >&5") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }
5942 rm -f a.out
5944 # If we don't use `.F' as extension, the preprocessor is not run on the
5945 # input file. (Note that this only needs to work for GNU compilers.)
5946 ac_save_ext=$ac_ext
5947 ac_ext=F
5948 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5949 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5950 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 program main
5955 #ifndef __GNUC__
5956 choke me
5957 #endif
5960 _ACEOF
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_f77_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_compiler_gnu=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_compiler_gnu=no
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5990 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5991 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5992 ac_ext=$ac_save_ext
5993 ac_test_FFLAGS=${FFLAGS+set}
5994 ac_save_FFLAGS=$FFLAGS
5995 FFLAGS=
5996 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5997 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5998 if test "${ac_cv_prog_f77_g+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 FFLAGS=-g
6002 cat >conftest.$ac_ext <<_ACEOF
6003 program main
6006 _ACEOF
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_f77_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_cv_prog_f77_g=yes
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_cv_prog_f77_g=no
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6036 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6037 if test "$ac_test_FFLAGS" = set; then
6038 FFLAGS=$ac_save_FFLAGS
6039 elif test $ac_cv_prog_f77_g = yes; then
6040 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6041 FFLAGS="-g -O2"
6042 else
6043 FFLAGS="-g"
6045 else
6046 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6047 FFLAGS="-O2"
6048 else
6049 FFLAGS=
6053 G77=`test $ac_compiler_gnu = yes && echo yes`
6054 ac_ext=c
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6064 # find the maximum length of command line arguments
6065 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6066 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6067 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6071 teststring="ABCD"
6073 case $build_os in
6074 msdosdjgpp*)
6075 # On DJGPP, this test can blow up pretty badly due to problems in libc
6076 # (any single argument exceeding 2000 bytes causes a buffer overrun
6077 # during glob expansion). Even if it were fixed, the result of this
6078 # check would be larger than it should be.
6079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6082 gnu*)
6083 # Under GNU Hurd, this test is not required because there is
6084 # no limit to the length of command line arguments.
6085 # Libtool will interpret -1 as no limit whatsoever
6086 lt_cv_sys_max_cmd_len=-1;
6089 cygwin* | mingw*)
6090 # On Win9x/ME, this test blows up -- it succeeds, but takes
6091 # about 5 minutes as the teststring grows exponentially.
6092 # Worse, since 9x/ME are not pre-emptively multitasking,
6093 # you end up with a "frozen" computer, even though with patience
6094 # the test eventually succeeds (with a max line length of 256k).
6095 # Instead, let's just punt: use the minimum linelength reported by
6096 # all of the supported platforms: 8192 (on NT/2K/XP).
6097 lt_cv_sys_max_cmd_len=8192;
6100 amigaos*)
6101 # On AmigaOS with pdksh, this test takes hours, literally.
6102 # So we just punt and use a minimum line length of 8192.
6103 lt_cv_sys_max_cmd_len=8192;
6106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6107 # This has been around since 386BSD, at least. Likely further.
6108 if test -x /sbin/sysctl; then
6109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6110 elif test -x /usr/sbin/sysctl; then
6111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6112 else
6113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6115 # And add a safety zone
6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6120 interix*)
6121 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6122 lt_cv_sys_max_cmd_len=196608
6125 osf*)
6126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6128 # nice to cause kernel panics so lets avoid the loop below.
6129 # First set a reasonable default.
6130 lt_cv_sys_max_cmd_len=16384
6132 if test -x /sbin/sysconfig; then
6133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6134 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6135 esac
6138 sco3.2v5*)
6139 lt_cv_sys_max_cmd_len=102400
6141 sysv5* | sco5v6* | sysv4.2uw2*)
6142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6143 if test -n "$kargmax"; then
6144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6145 else
6146 lt_cv_sys_max_cmd_len=32768
6150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6151 if test -n "$lt_cv_sys_max_cmd_len"; then
6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6154 else
6155 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6156 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6157 = "XX$teststring") >/dev/null 2>&1 &&
6158 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6159 lt_cv_sys_max_cmd_len=$new_result &&
6160 test $i != 17 # 1/2 MB should be enough
6162 i=`expr $i + 1`
6163 teststring=$teststring$teststring
6164 done
6165 teststring=
6166 # Add a significant safety factor because C++ compilers can tack on massive
6167 # amounts of additional arguments before passing them to the linker.
6168 # It appears as though 1/2 is a usable value.
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6172 esac
6176 if test -n $lt_cv_sys_max_cmd_len ; then
6177 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6178 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6179 else
6180 { echo "$as_me:$LINENO: result: none" >&5
6181 echo "${ECHO_T}none" >&6; }
6188 # Check for command to grab the raw symbol name followed by C symbol from nm.
6189 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6190 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6191 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6195 # These are sane defaults that work on at least a few old systems.
6196 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6198 # Character class describing NM global symbol codes.
6199 symcode='[BCDEGRST]'
6201 # Regexp to match symbols that can be accessed directly from C.
6202 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6204 # Transform an extracted symbol line into a proper C declaration
6205 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6207 # Transform an extracted symbol line into symbol name and symbol address
6208 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'"
6210 # Define system-specific variables.
6211 case $host_os in
6212 aix*)
6213 symcode='[BCDT]'
6215 cygwin* | mingw* | pw32*)
6216 symcode='[ABCDGISTW]'
6218 hpux*) # Its linker distinguishes data from code symbols
6219 if test "$host_cpu" = ia64; then
6220 symcode='[ABCDEGRST]'
6222 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6223 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'"
6225 linux* | k*bsd*-gnu)
6226 if test "$host_cpu" = ia64; then
6227 symcode='[ABCDGIRSTW]'
6228 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6229 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'"
6232 irix* | nonstopux*)
6233 symcode='[BCDEGRST]'
6235 osf*)
6236 symcode='[BCDEGQRST]'
6238 solaris*)
6239 symcode='[BDRT]'
6241 sco3.2v5*)
6242 symcode='[DT]'
6244 sysv4.2uw2*)
6245 symcode='[DT]'
6247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6248 symcode='[ABDT]'
6250 sysv4)
6251 symcode='[DFNSTU]'
6253 esac
6255 # Handle CRLF in mingw tool chain
6256 opt_cr=
6257 case $build_os in
6258 mingw*)
6259 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261 esac
6263 # If we're using GNU nm, then use its standard symbol codes.
6264 case `$NM -V 2>&1` in
6265 *GNU* | *'with BFD'*)
6266 symcode='[ABCDGIRSTW]' ;;
6267 esac
6269 # Try without a prefix undercore, then with it.
6270 for ac_symprfx in "" "_"; do
6272 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6273 symxfrm="\\1 $ac_symprfx\\2 \\2"
6275 # Write the raw and C identifiers.
6276 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6278 # Check to see that the pipe works correctly.
6279 pipe_works=no
6281 rm -f conftest*
6282 cat > conftest.$ac_ext <<EOF
6283 #ifdef __cplusplus
6284 extern "C" {
6285 #endif
6286 char nm_test_var;
6287 void nm_test_func(){}
6288 #ifdef __cplusplus
6290 #endif
6291 int main(){nm_test_var='a';nm_test_func();return(0);}
6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295 (eval $ac_compile) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; then
6299 # Now try to grab the symbols.
6300 nlist=conftest.nm
6301 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6302 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && test -s "$nlist"; then
6306 # Try sorting and uniquifying the output.
6307 if sort "$nlist" | uniq > "$nlist"T; then
6308 mv -f "$nlist"T "$nlist"
6309 else
6310 rm -f "$nlist"T
6313 # Make sure that we snagged all the symbols we need.
6314 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6315 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6316 cat <<EOF > conftest.$ac_ext
6317 #ifdef __cplusplus
6318 extern "C" {
6319 #endif
6322 # Now generate the symbol file.
6323 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6325 cat <<EOF >> conftest.$ac_ext
6326 #if defined (__STDC__) && __STDC__
6327 # define lt_ptr_t void *
6328 #else
6329 # define lt_ptr_t char *
6330 # define const
6331 #endif
6333 /* The mapping between symbol names and symbols. */
6334 const struct {
6335 const char *name;
6336 lt_ptr_t address;
6338 lt_preloaded_symbols[] =
6341 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6342 cat <<\EOF >> conftest.$ac_ext
6343 {0, (lt_ptr_t) 0}
6346 #ifdef __cplusplus
6348 #endif
6350 # Now try linking the two files.
6351 mv conftest.$ac_objext conftstm.$ac_objext
6352 lt_save_LIBS="$LIBS"
6353 lt_save_CFLAGS="$CFLAGS"
6354 LIBS="conftstm.$ac_objext"
6355 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6361 pipe_works=yes
6363 LIBS="$lt_save_LIBS"
6364 CFLAGS="$lt_save_CFLAGS"
6365 else
6366 echo "cannot find nm_test_func in $nlist" >&5
6368 else
6369 echo "cannot find nm_test_var in $nlist" >&5
6371 else
6372 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6374 else
6375 echo "$progname: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6378 rm -f conftest* conftst*
6380 # Do not use the global_symbol_pipe unless it works.
6381 if test "$pipe_works" = yes; then
6382 break
6383 else
6384 lt_cv_sys_global_symbol_pipe=
6386 done
6390 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6391 lt_cv_sys_global_symbol_to_cdecl=
6393 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6394 { echo "$as_me:$LINENO: result: failed" >&5
6395 echo "${ECHO_T}failed" >&6; }
6396 else
6397 { echo "$as_me:$LINENO: result: ok" >&5
6398 echo "${ECHO_T}ok" >&6; }
6401 { echo "$as_me:$LINENO: checking for objdir" >&5
6402 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6403 if test "${lt_cv_objdir+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 rm -f .libs 2>/dev/null
6407 mkdir .libs 2>/dev/null
6408 if test -d .libs; then
6409 lt_cv_objdir=.libs
6410 else
6411 # MS-DOS does not allow filenames that begin with a dot.
6412 lt_cv_objdir=_libs
6414 rmdir .libs 2>/dev/null
6416 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6417 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6418 objdir=$lt_cv_objdir
6424 case $host_os in
6425 aix3*)
6426 # AIX sometimes has problems with the GCC collect2 program. For some
6427 # reason, if we set the COLLECT_NAMES environment variable, the problems
6428 # vanish in a puff of smoke.
6429 if test "X${COLLECT_NAMES+set}" != Xset; then
6430 COLLECT_NAMES=
6431 export COLLECT_NAMES
6434 esac
6436 # Sed substitution that helps us do robust quoting. It backslashifies
6437 # metacharacters that are still active within double-quoted strings.
6438 Xsed='sed -e 1s/^X//'
6439 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6441 # Same as above, but do not quote variable references.
6442 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6444 # Sed substitution to delay expansion of an escaped shell variable in a
6445 # double_quote_subst'ed string.
6446 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6448 # Sed substitution to avoid accidental globbing in evaled expressions
6449 no_glob_subst='s/\*/\\\*/g'
6451 # Constants:
6452 rm="rm -f"
6454 # Global variables:
6455 default_ofile=libtool
6456 can_build_shared=yes
6458 # All known linkers require a `.a' archive for static linking (except MSVC,
6459 # which needs '.lib').
6460 libext=a
6461 ltmain="$ac_aux_dir/ltmain.sh"
6462 ofile="$default_ofile"
6463 with_gnu_ld="$lt_cv_prog_gnu_ld"
6465 if test -n "$ac_tool_prefix"; then
6466 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6467 set dummy ${ac_tool_prefix}ar; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_prog_AR+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 if test -n "$AR"; then
6474 ac_cv_prog_AR="$AR" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_prog_AR="${ac_tool_prefix}ar"
6484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6487 done
6488 done
6489 IFS=$as_save_IFS
6493 AR=$ac_cv_prog_AR
6494 if test -n "$AR"; then
6495 { echo "$as_me:$LINENO: result: $AR" >&5
6496 echo "${ECHO_T}$AR" >&6; }
6497 else
6498 { echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6; }
6504 if test -z "$ac_cv_prog_AR"; then
6505 ac_ct_AR=$AR
6506 # Extract the first word of "ar", so it can be a program name with args.
6507 set dummy ar; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 if test -n "$ac_ct_AR"; then
6514 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_ac_ct_AR="ar"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6527 done
6528 done
6529 IFS=$as_save_IFS
6533 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6534 if test -n "$ac_ct_AR"; then
6535 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6536 echo "${ECHO_T}$ac_ct_AR" >&6; }
6537 else
6538 { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6542 if test "x$ac_ct_AR" = x; then
6543 AR="false"
6544 else
6545 case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6548 whose name does not start with the host triplet. If you think this
6549 configuration is useful to you, please write to autoconf@gnu.org." >&5
6550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6551 whose name does not start with the host triplet. If you think this
6552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555 AR=$ac_ct_AR
6557 else
6558 AR="$ac_cv_prog_AR"
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_RANLIB+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569 if test -n "$RANLIB"; then
6570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6583 done
6584 done
6585 IFS=$as_save_IFS
6589 RANLIB=$ac_cv_prog_RANLIB
6590 if test -n "$RANLIB"; then
6591 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6592 echo "${ECHO_T}$RANLIB" >&6; }
6593 else
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6600 if test -z "$ac_cv_prog_RANLIB"; then
6601 ac_ct_RANLIB=$RANLIB
6602 # Extract the first word of "ranlib", so it can be a program name with args.
6603 set dummy ranlib; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609 if test -n "$ac_ct_RANLIB"; then
6610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_RANLIB="ranlib"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6623 done
6624 done
6625 IFS=$as_save_IFS
6629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6630 if test -n "$ac_ct_RANLIB"; then
6631 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6632 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6633 else
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6638 if test "x$ac_ct_RANLIB" = x; then
6639 RANLIB=":"
6640 else
6641 case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6650 esac
6651 RANLIB=$ac_ct_RANLIB
6653 else
6654 RANLIB="$ac_cv_prog_RANLIB"
6657 if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}strip; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_STRIP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 if test -n "$STRIP"; then
6666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6671 IFS=$as_save_IFS
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 break 2
6679 done
6680 done
6681 IFS=$as_save_IFS
6685 STRIP=$ac_cv_prog_STRIP
6686 if test -n "$STRIP"; then
6687 { echo "$as_me:$LINENO: result: $STRIP" >&5
6688 echo "${ECHO_T}$STRIP" >&6; }
6689 else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6696 if test -z "$ac_cv_prog_STRIP"; then
6697 ac_ct_STRIP=$STRIP
6698 # Extract the first word of "strip", so it can be a program name with args.
6699 set dummy strip; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 if test -n "$ac_ct_STRIP"; then
6706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_ac_ct_STRIP="strip"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6719 done
6720 done
6721 IFS=$as_save_IFS
6725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6726 if test -n "$ac_ct_STRIP"; then
6727 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6728 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6729 else
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6734 if test "x$ac_ct_STRIP" = x; then
6735 STRIP=":"
6736 else
6737 case $cross_compiling:$ac_tool_warned in
6738 yes:)
6739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6740 whose name does not start with the host triplet. If you think this
6741 configuration is useful to you, please write to autoconf@gnu.org." >&5
6742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet. If you think this
6744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 STRIP=$ac_ct_STRIP
6749 else
6750 STRIP="$ac_cv_prog_STRIP"
6754 old_CC="$CC"
6755 old_CFLAGS="$CFLAGS"
6757 # Set sane defaults for various variables
6758 test -z "$AR" && AR=ar
6759 test -z "$AR_FLAGS" && AR_FLAGS=cru
6760 test -z "$AS" && AS=as
6761 test -z "$CC" && CC=cc
6762 test -z "$LTCC" && LTCC=$CC
6763 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6764 test -z "$DLLTOOL" && DLLTOOL=dlltool
6765 test -z "$LD" && LD=ld
6766 test -z "$LN_S" && LN_S="ln -s"
6767 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6768 test -z "$NM" && NM=nm
6769 test -z "$SED" && SED=sed
6770 test -z "$OBJDUMP" && OBJDUMP=objdump
6771 test -z "$RANLIB" && RANLIB=:
6772 test -z "$STRIP" && STRIP=:
6773 test -z "$ac_objext" && ac_objext=o
6775 # Determine commands to create old-style static archives.
6776 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6777 old_postinstall_cmds='chmod 644 $oldlib'
6778 old_postuninstall_cmds=
6780 if test -n "$RANLIB"; then
6781 case $host_os in
6782 openbsd*)
6783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6788 esac
6789 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6792 for cc_temp in $compiler""; do
6793 case $cc_temp in
6794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6796 \-*) ;;
6797 *) break;;
6798 esac
6799 done
6800 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6803 # Only perform the check for file, if the check method requires it
6804 case $deplibs_check_method in
6805 file_magic*)
6806 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6807 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6808 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6809 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 case $MAGIC_CMD in
6813 [\\/*] | ?:[\\/]*)
6814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6817 lt_save_MAGIC_CMD="$MAGIC_CMD"
6818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6820 for ac_dir in $ac_dummy; do
6821 IFS="$lt_save_ifs"
6822 test -z "$ac_dir" && ac_dir=.
6823 if test -f $ac_dir/${ac_tool_prefix}file; then
6824 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6825 if test -n "$file_magic_test_file"; then
6826 case $deplibs_check_method in
6827 "file_magic "*)
6828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6831 $EGREP "$file_magic_regex" > /dev/null; then
6833 else
6834 cat <<EOF 1>&2
6836 *** Warning: the command libtool uses to detect shared libraries,
6837 *** $file_magic_cmd, produces output that libtool cannot recognize.
6838 *** The result is that libtool may fail to recognize shared libraries
6839 *** as such. This will affect the creation of libtool libraries that
6840 *** depend on shared libraries, but programs linked with such libtool
6841 *** libraries will work regardless of this problem. Nevertheless, you
6842 *** may want to report the problem to your system manager and/or to
6843 *** bug-libtool@gnu.org
6846 fi ;;
6847 esac
6849 break
6851 done
6852 IFS="$lt_save_ifs"
6853 MAGIC_CMD="$lt_save_MAGIC_CMD"
6855 esac
6858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6859 if test -n "$MAGIC_CMD"; then
6860 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6861 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6862 else
6863 { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6867 if test -z "$lt_cv_path_MAGIC_CMD"; then
6868 if test -n "$ac_tool_prefix"; then
6869 { echo "$as_me:$LINENO: checking for file" >&5
6870 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 case $MAGIC_CMD in
6875 [\\/*] | ?:[\\/]*)
6876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6879 lt_save_MAGIC_CMD="$MAGIC_CMD"
6880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6882 for ac_dir in $ac_dummy; do
6883 IFS="$lt_save_ifs"
6884 test -z "$ac_dir" && ac_dir=.
6885 if test -f $ac_dir/file; then
6886 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6887 if test -n "$file_magic_test_file"; then
6888 case $deplibs_check_method in
6889 "file_magic "*)
6890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6893 $EGREP "$file_magic_regex" > /dev/null; then
6895 else
6896 cat <<EOF 1>&2
6898 *** Warning: the command libtool uses to detect shared libraries,
6899 *** $file_magic_cmd, produces output that libtool cannot recognize.
6900 *** The result is that libtool may fail to recognize shared libraries
6901 *** as such. This will affect the creation of libtool libraries that
6902 *** depend on shared libraries, but programs linked with such libtool
6903 *** libraries will work regardless of this problem. Nevertheless, you
6904 *** may want to report the problem to your system manager and/or to
6905 *** bug-libtool@gnu.org
6908 fi ;;
6909 esac
6911 break
6913 done
6914 IFS="$lt_save_ifs"
6915 MAGIC_CMD="$lt_save_MAGIC_CMD"
6917 esac
6920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6921 if test -n "$MAGIC_CMD"; then
6922 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6923 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6924 else
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6929 else
6930 MAGIC_CMD=:
6936 esac
6938 enable_dlopen=no
6939 enable_win32_dll=no
6941 # Check whether --enable-libtool-lock was given.
6942 if test "${enable_libtool_lock+set}" = set; then
6943 enableval=$enable_libtool_lock;
6946 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6949 # Check whether --with-pic was given.
6950 if test "${with_pic+set}" = set; then
6951 withval=$with_pic; pic_mode="$withval"
6952 else
6953 pic_mode=default
6956 test -z "$pic_mode" && pic_mode=default
6958 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6960 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6961 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6962 # calls AC_LIBTOOL_CONFIG and creates libtool.
6964 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6965 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6966 if test "x$ltmain" = "x" ; then
6967 { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 { { echo "$as_me:$LINENO: error:
6971 *** [Gentoo] sanity check failed! ***
6972 *** \$ltmain is not defined, please check the patch for consistency! ***
6973 " >&5
6974 echo "$as_me: error:
6976 *** [Gentoo] sanity check failed! ***
6977 *** \$ltmain is not defined, please check the patch for consistency! ***
6978 " >&2;}
6979 { (exit 1); exit 1; }; }
6981 gentoo_lt_version="1.5.24"
6982 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6983 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 { { echo "$as_me:$LINENO: error:
6988 *** [Gentoo] sanity check failed! ***
6989 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6990 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6992 Please run:
6994 libtoolize --copy --force
6996 if appropriate, please contact the maintainer of this
6997 package (or your distribution) for help.
6998 " >&5
6999 echo "$as_me: error:
7001 *** [Gentoo] sanity check failed! ***
7002 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7003 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7005 Please run:
7007 libtoolize --copy --force
7009 if appropriate, please contact the maintainer of this
7010 package (or your distribution) for help.
7011 " >&2;}
7012 { (exit 1); exit 1; }; }
7013 else
7014 { echo "$as_me:$LINENO: result: yes" >&5
7015 echo "${ECHO_T}yes" >&6; }
7019 # Use C for the default configuration in the libtool script
7020 tagname=
7021 lt_save_CC="$CC"
7022 ac_ext=c
7023 ac_cpp='$CPP $CPPFLAGS'
7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 # Source file extension for C test sources.
7030 ac_ext=c
7032 # Object file extension for compiled C test sources.
7033 objext=o
7034 objext=$objext
7036 # Code to be used in simple compile tests
7037 lt_simple_compile_test_code="int some_variable = 0;"
7039 # Code to be used in simple link tests
7040 lt_simple_link_test_code='int main(){return(0);}'
7043 # If no C compiler was specified, use CC.
7044 LTCC=${LTCC-"$CC"}
7046 # If no C compiler flags were specified, use CFLAGS.
7047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7049 # Allow CC to be a program name with arguments.
7050 compiler=$CC
7053 # save warnings/boilerplate of simple test code
7054 ac_outfile=conftest.$ac_objext
7055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7057 _lt_compiler_boilerplate=`cat conftest.err`
7058 $rm conftest*
7060 ac_outfile=conftest.$ac_objext
7061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7063 _lt_linker_boilerplate=`cat conftest.err`
7064 $rm conftest*
7068 lt_prog_compiler_no_builtin_flag=
7070 if test "$GCC" = yes; then
7071 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7074 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7075 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 lt_cv_prog_compiler_rtti_exceptions=no
7080 ac_outfile=conftest.$ac_objext
7081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7082 lt_compiler_flag="-fno-rtti -fno-exceptions"
7083 # Insert the option either (1) after the last *FLAGS variable, or
7084 # (2) before a word containing "conftest.", or (3) at the end.
7085 # Note that $ac_compile itself does not contain backslashes and begins
7086 # with a dollar sign (not a hyphen), so the echo should work correctly.
7087 # The option is referenced via a variable to avoid confusing sed.
7088 lt_compile=`echo "$ac_compile" | $SED \
7089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7091 -e 's:$: $lt_compiler_flag:'`
7092 (eval echo "\"\$as_me:7092: $lt_compile\"" >&5)
7093 (eval "$lt_compile" 2>conftest.err)
7094 ac_status=$?
7095 cat conftest.err >&5
7096 echo "$as_me:7096: \$? = $ac_status" >&5
7097 if (exit $ac_status) && test -s "$ac_outfile"; then
7098 # The compiler can only warn and ignore the option if not recognized
7099 # So say no if there are warnings other than the usual output.
7100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7103 lt_cv_prog_compiler_rtti_exceptions=yes
7106 $rm conftest*
7109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7110 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7114 else
7120 lt_prog_compiler_wl=
7121 lt_prog_compiler_pic=
7122 lt_prog_compiler_static=
7124 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7125 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7127 if test "$GCC" = yes; then
7128 lt_prog_compiler_wl='-Wl,'
7129 lt_prog_compiler_static='-static'
7131 case $host_os in
7132 aix*)
7133 # All AIX code is PIC.
7134 if test "$host_cpu" = ia64; then
7135 # AIX 5 now supports IA64 processor
7136 lt_prog_compiler_static='-Bstatic'
7140 amigaos*)
7141 # FIXME: we need at least 68020 code to build shared libraries, but
7142 # adding the `-m68020' flag to GCC prevents building anything better,
7143 # like `-m68040'.
7144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7148 # PIC is the default for these OSes.
7151 mingw* | cygwin* | pw32* | os2*)
7152 # This hack is so that the source file can tell whether it is being
7153 # built for inclusion in a dll (and should export symbols for example).
7154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7155 # (--disable-auto-import) libraries
7156 lt_prog_compiler_pic='-DDLL_EXPORT'
7159 darwin* | rhapsody*)
7160 # PIC is the default on this platform
7161 # Common symbols not allowed in MH_DYLIB files
7162 lt_prog_compiler_pic='-fno-common'
7165 interix[3-9]*)
7166 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7167 # Instead, we relocate shared libraries at runtime.
7170 msdosdjgpp*)
7171 # Just because we use GCC doesn't mean we suddenly get shared libraries
7172 # on systems that don't support them.
7173 lt_prog_compiler_can_build_shared=no
7174 enable_shared=no
7177 sysv4*MP*)
7178 if test -d /usr/nec; then
7179 lt_prog_compiler_pic=-Kconform_pic
7183 hpux*)
7184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7185 # not for PA HP-UX.
7186 case $host_cpu in
7187 hppa*64*|ia64*)
7188 # +Z the default
7191 lt_prog_compiler_pic='-fPIC'
7193 esac
7197 lt_prog_compiler_pic='-fPIC'
7199 esac
7200 else
7201 # PORTME Check for flag to pass linker flags through the system compiler.
7202 case $host_os in
7203 aix*)
7204 lt_prog_compiler_wl='-Wl,'
7205 if test "$host_cpu" = ia64; then
7206 # AIX 5 now supports IA64 processor
7207 lt_prog_compiler_static='-Bstatic'
7208 else
7209 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7212 darwin*)
7213 # PIC is the default on this platform
7214 # Common symbols not allowed in MH_DYLIB files
7215 case $cc_basename in
7216 xlc*)
7217 lt_prog_compiler_pic='-qnocommon'
7218 lt_prog_compiler_wl='-Wl,'
7220 esac
7223 mingw* | cygwin* | pw32* | os2*)
7224 # This hack is so that the source file can tell whether it is being
7225 # built for inclusion in a dll (and should export symbols for example).
7226 lt_prog_compiler_pic='-DDLL_EXPORT'
7229 hpux9* | hpux10* | hpux11*)
7230 lt_prog_compiler_wl='-Wl,'
7231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7232 # not for PA HP-UX.
7233 case $host_cpu in
7234 hppa*64*|ia64*)
7235 # +Z the default
7238 lt_prog_compiler_pic='+Z'
7240 esac
7241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7242 lt_prog_compiler_static='${wl}-a ${wl}archive'
7245 irix5* | irix6* | nonstopux*)
7246 lt_prog_compiler_wl='-Wl,'
7247 # PIC (with -KPIC) is the default.
7248 lt_prog_compiler_static='-non_shared'
7251 newsos6)
7252 lt_prog_compiler_pic='-KPIC'
7253 lt_prog_compiler_static='-Bstatic'
7256 linux* | k*bsd*-gnu)
7257 case $cc_basename in
7258 icc* | ecc*)
7259 lt_prog_compiler_wl='-Wl,'
7260 lt_prog_compiler_pic='-KPIC'
7261 lt_prog_compiler_static='-static'
7263 pgcc* | pgf77* | pgf90* | pgf95*)
7264 # Portland Group compilers (*not* the Pentium gcc compiler,
7265 # which looks to be a dead project)
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_pic='-fpic'
7268 lt_prog_compiler_static='-Bstatic'
7270 ccc*)
7271 lt_prog_compiler_wl='-Wl,'
7272 # All Alpha code is PIC.
7273 lt_prog_compiler_static='-non_shared'
7276 case `$CC -V 2>&1 | sed 5q` in
7277 *Sun\ C*)
7278 # Sun C 5.9
7279 lt_prog_compiler_pic='-KPIC'
7280 lt_prog_compiler_static='-Bstatic'
7281 lt_prog_compiler_wl='-Wl,'
7283 *Sun\ F*)
7284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7285 lt_prog_compiler_pic='-KPIC'
7286 lt_prog_compiler_static='-Bstatic'
7287 lt_prog_compiler_wl=''
7289 esac
7291 esac
7294 osf3* | osf4* | osf5*)
7295 lt_prog_compiler_wl='-Wl,'
7296 # All OSF/1 code is PIC.
7297 lt_prog_compiler_static='-non_shared'
7300 rdos*)
7301 lt_prog_compiler_static='-non_shared'
7304 solaris*)
7305 lt_prog_compiler_pic='-KPIC'
7306 lt_prog_compiler_static='-Bstatic'
7307 case $cc_basename in
7308 f77* | f90* | f95*)
7309 lt_prog_compiler_wl='-Qoption ld ';;
7311 lt_prog_compiler_wl='-Wl,';;
7312 esac
7315 sunos4*)
7316 lt_prog_compiler_wl='-Qoption ld '
7317 lt_prog_compiler_pic='-PIC'
7318 lt_prog_compiler_static='-Bstatic'
7321 sysv4 | sysv4.2uw2* | sysv4.3*)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-KPIC'
7324 lt_prog_compiler_static='-Bstatic'
7327 sysv4*MP*)
7328 if test -d /usr/nec ;then
7329 lt_prog_compiler_pic='-Kconform_pic'
7330 lt_prog_compiler_static='-Bstatic'
7334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7335 lt_prog_compiler_wl='-Wl,'
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7340 unicos*)
7341 lt_prog_compiler_wl='-Wl,'
7342 lt_prog_compiler_can_build_shared=no
7345 uts4*)
7346 lt_prog_compiler_pic='-pic'
7347 lt_prog_compiler_static='-Bstatic'
7351 lt_prog_compiler_can_build_shared=no
7353 esac
7356 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7357 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7360 # Check to make sure the PIC flag actually works.
7362 if test -n "$lt_prog_compiler_pic"; then
7364 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7366 if test "${lt_prog_compiler_pic_works+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 lt_prog_compiler_pic_works=no
7370 ac_outfile=conftest.$ac_objext
7371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7372 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7373 # Insert the option either (1) after the last *FLAGS variable, or
7374 # (2) before a word containing "conftest.", or (3) at the end.
7375 # Note that $ac_compile itself does not contain backslashes and begins
7376 # with a dollar sign (not a hyphen), so the echo should work correctly.
7377 # The option is referenced via a variable to avoid confusing sed.
7378 lt_compile=`echo "$ac_compile" | $SED \
7379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7381 -e 's:$: $lt_compiler_flag:'`
7382 (eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
7383 (eval "$lt_compile" 2>conftest.err)
7384 ac_status=$?
7385 cat conftest.err >&5
7386 echo "$as_me:7386: \$? = $ac_status" >&5
7387 if (exit $ac_status) && test -s "$ac_outfile"; then
7388 # The compiler can only warn and ignore the option if not recognized
7389 # So say no if there are warnings other than the usual output.
7390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7393 lt_prog_compiler_pic_works=yes
7396 $rm conftest*
7399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7400 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7402 if test x"$lt_prog_compiler_pic_works" = xyes; then
7403 case $lt_prog_compiler_pic in
7404 "" | " "*) ;;
7405 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7406 esac
7407 else
7408 lt_prog_compiler_pic=
7409 lt_prog_compiler_can_build_shared=no
7413 case $host_os in
7414 # For platforms which do not support PIC, -DPIC is meaningless:
7415 *djgpp*)
7416 lt_prog_compiler_pic=
7419 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7421 esac
7424 # Check to make sure the static flag actually works.
7426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7427 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7428 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7429 if test "${lt_prog_compiler_static_works+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 lt_prog_compiler_static_works=no
7433 save_LDFLAGS="$LDFLAGS"
7434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7437 # The linker can only warn and ignore the option if not recognized
7438 # So say no if there are warnings
7439 if test -s conftest.err; then
7440 # Append any errors to the config.log.
7441 cat conftest.err 1>&5
7442 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7444 if diff conftest.exp conftest.er2 >/dev/null; then
7445 lt_prog_compiler_static_works=yes
7447 else
7448 lt_prog_compiler_static_works=yes
7451 $rm conftest*
7452 LDFLAGS="$save_LDFLAGS"
7455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7456 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7458 if test x"$lt_prog_compiler_static_works" = xyes; then
7460 else
7461 lt_prog_compiler_static=
7465 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 lt_cv_prog_compiler_c_o=no
7471 $rm -r conftest 2>/dev/null
7472 mkdir conftest
7473 cd conftest
7474 mkdir out
7475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477 lt_compiler_flag="-o out/conftest2.$ac_objext"
7478 # Insert the option either (1) after the last *FLAGS variable, or
7479 # (2) before a word containing "conftest.", or (3) at the end.
7480 # Note that $ac_compile itself does not contain backslashes and begins
7481 # with a dollar sign (not a hyphen), so the echo should work correctly.
7482 lt_compile=`echo "$ac_compile" | $SED \
7483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7485 -e 's:$: $lt_compiler_flag:'`
7486 (eval echo "\"\$as_me:7486: $lt_compile\"" >&5)
7487 (eval "$lt_compile" 2>out/conftest.err)
7488 ac_status=$?
7489 cat out/conftest.err >&5
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7492 then
7493 # The compiler can only warn and ignore the option if not recognized
7494 # So say no if there are warnings
7495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7498 lt_cv_prog_compiler_c_o=yes
7501 chmod u+w . 2>&5
7502 $rm conftest*
7503 # SGI C++ compiler will create directory out/ii_files/ for
7504 # template instantiation
7505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7506 $rm out/* && rmdir out
7507 cd ..
7508 rmdir conftest
7509 $rm conftest*
7512 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7513 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7516 hard_links="nottested"
7517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7518 # do not overwrite the value of need_locks provided by the user
7519 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7520 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7521 hard_links=yes
7522 $rm conftest*
7523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7524 touch conftest.a
7525 ln conftest.a conftest.b 2>&5 || hard_links=no
7526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527 { echo "$as_me:$LINENO: result: $hard_links" >&5
7528 echo "${ECHO_T}$hard_links" >&6; }
7529 if test "$hard_links" = no; then
7530 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7531 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7532 need_locks=warn
7534 else
7535 need_locks=no
7538 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7539 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7541 runpath_var=
7542 allow_undefined_flag=
7543 enable_shared_with_static_runtimes=no
7544 archive_cmds=
7545 archive_expsym_cmds=
7546 old_archive_From_new_cmds=
7547 old_archive_from_expsyms_cmds=
7548 export_dynamic_flag_spec=
7549 whole_archive_flag_spec=
7550 thread_safe_flag_spec=
7551 hardcode_libdir_flag_spec=
7552 hardcode_libdir_flag_spec_ld=
7553 hardcode_libdir_separator=
7554 hardcode_direct=no
7555 hardcode_minus_L=no
7556 hardcode_shlibpath_var=unsupported
7557 link_all_deplibs=unknown
7558 hardcode_automatic=no
7559 module_cmds=
7560 module_expsym_cmds=
7561 always_export_symbols=no
7562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7563 # include_expsyms should be a list of space-separated symbols to be *always*
7564 # included in the symbol list
7565 include_expsyms=
7566 # exclude_expsyms can be an extended regexp of symbols to exclude
7567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7569 # as well as any symbol that contains `d'.
7570 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7572 # platforms (ab)use it in PIC code, but their linkers get confused if
7573 # the symbol is explicitly referenced. Since portable code cannot
7574 # rely on this symbol name, it's probably fine to never include it in
7575 # preloaded symbol tables.
7576 extract_expsyms_cmds=
7577 # Just being paranoid about ensuring that cc_basename is set.
7578 for cc_temp in $compiler""; do
7579 case $cc_temp in
7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582 \-*) ;;
7583 *) break;;
7584 esac
7585 done
7586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7588 case $host_os in
7589 cygwin* | mingw* | pw32*)
7590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7591 # When not using gcc, we currently assume that we are using
7592 # Microsoft Visual C++.
7593 if test "$GCC" != yes; then
7594 with_gnu_ld=no
7597 interix*)
7598 # we just hope/assume this is gcc and not c89 (= MSVC++)
7599 with_gnu_ld=yes
7601 openbsd*)
7602 with_gnu_ld=no
7604 esac
7606 ld_shlibs=yes
7607 if test "$with_gnu_ld" = yes; then
7608 # If archive_cmds runs LD, not CC, wlarc should be empty
7609 wlarc='${wl}'
7611 # Set some defaults for GNU ld with shared library support. These
7612 # are reset later if shared libraries are not supported. Putting them
7613 # here allows them to be overridden if necessary.
7614 runpath_var=LD_RUN_PATH
7615 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7616 export_dynamic_flag_spec='${wl}--export-dynamic'
7617 # ancient GNU ld didn't support --whole-archive et. al.
7618 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7620 else
7621 whole_archive_flag_spec=
7623 supports_anon_versioning=no
7624 case `$LD -v 2>/dev/null` in
7625 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7628 *\ 2.11.*) ;; # other 2.11 versions
7629 *) supports_anon_versioning=yes ;;
7630 esac
7632 # See if GNU ld supports shared libraries.
7633 case $host_os in
7634 aix3* | aix4* | aix5*)
7635 # On AIX/PPC, the GNU linker is very broken
7636 if test "$host_cpu" != ia64; then
7637 ld_shlibs=no
7638 cat <<EOF 1>&2
7640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7641 *** to be unable to reliably create shared libraries on AIX.
7642 *** Therefore, libtool is disabling shared libraries support. If you
7643 *** really care for shared libraries, you may want to modify your PATH
7644 *** so that a non-GNU linker is found, and then restart.
7650 amigaos*)
7651 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)'
7652 hardcode_libdir_flag_spec='-L$libdir'
7653 hardcode_minus_L=yes
7655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7656 # that the semantics of dynamic libraries on AmigaOS, at least up
7657 # to version 4, is to share data among multiple programs linked
7658 # with the same dynamic library. Since this doesn't match the
7659 # behavior of shared libraries on other platforms, we can't use
7660 # them.
7661 ld_shlibs=no
7664 beos*)
7665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666 allow_undefined_flag=unsupported
7667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7668 # support --undefined. This deserves some investigation. FIXME
7669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670 else
7671 ld_shlibs=no
7675 cygwin* | mingw* | pw32*)
7676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7677 # as there is no search path for DLLs.
7678 hardcode_libdir_flag_spec='-L$libdir'
7679 allow_undefined_flag=unsupported
7680 always_export_symbols=no
7681 enable_shared_with_static_runtimes=yes
7682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7686 # If the export-symbols file already is a .def file (1st line
7687 # is EXPORTS), use it as is; otherwise, prepend...
7688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7689 cp $export_symbols $output_objdir/$soname.def;
7690 else
7691 echo EXPORTS > $output_objdir/$soname.def;
7692 cat $export_symbols >> $output_objdir/$soname.def;
7694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7695 else
7696 ld_shlibs=no
7700 interix[3-9]*)
7701 hardcode_direct=no
7702 hardcode_shlibpath_var=no
7703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7704 export_dynamic_flag_spec='${wl}-E'
7705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7706 # Instead, shared libraries are loaded at an image base (0x10000000 by
7707 # default) and relocated if they conflict, which is a slow very memory
7708 # consuming and fragmenting process. To avoid this, we pick a random,
7709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7712 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'
7715 gnu* | linux* | k*bsd*-gnu)
7716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7717 tmp_addflag=
7718 case $cc_basename,$host_cpu in
7719 pgcc*) # Portland Group C compiler
7720 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'
7721 tmp_addflag=' $pic_flag'
7723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7724 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'
7725 tmp_addflag=' $pic_flag -Mnomain' ;;
7726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7727 tmp_addflag=' -i_dynamic' ;;
7728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7729 tmp_addflag=' -i_dynamic -nofor_main' ;;
7730 ifc* | ifort*) # Intel Fortran compiler
7731 tmp_addflag=' -nofor_main' ;;
7732 esac
7733 case `$CC -V 2>&1 | sed 5q` in
7734 *Sun\ C*) # Sun C 5.9
7735 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'
7736 tmp_sharedflag='-G' ;;
7737 *Sun\ F*) # Sun Fortran 8.3
7738 tmp_sharedflag='-G' ;;
7740 tmp_sharedflag='-shared' ;;
7741 esac
7742 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7744 if test $supports_anon_versioning = yes; then
7745 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7747 $echo "local: *; };" >> $output_objdir/$libname.ver~
7748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7750 else
7751 ld_shlibs=no
7755 netbsd*)
7756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7758 wlarc=
7759 else
7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7765 solaris*)
7766 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7767 ld_shlibs=no
7768 cat <<EOF 1>&2
7770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7771 *** create shared libraries on Solaris systems. Therefore, libtool
7772 *** is disabling shared libraries support. We urge you to upgrade GNU
7773 *** binutils to release 2.9.1 or newer. Another option is to modify
7774 *** your PATH or compiler configuration so that the native linker is
7775 *** used, and then restart.
7778 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7781 else
7782 ld_shlibs=no
7786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7787 case `$LD -v 2>&1` in
7788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7789 ld_shlibs=no
7790 cat <<_LT_EOF 1>&2
7792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7793 *** reliably create shared libraries on SCO systems. Therefore, libtool
7794 *** is disabling shared libraries support. We urge you to upgrade GNU
7795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7796 *** your PATH or compiler configuration so that the native linker is
7797 *** used, and then restart.
7799 _LT_EOF
7802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7803 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7806 else
7807 ld_shlibs=no
7810 esac
7813 sunos4*)
7814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7815 wlarc=
7816 hardcode_direct=yes
7817 hardcode_shlibpath_var=no
7821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824 else
7825 ld_shlibs=no
7828 esac
7830 if test "$ld_shlibs" = no; then
7831 runpath_var=
7832 hardcode_libdir_flag_spec=
7833 export_dynamic_flag_spec=
7834 whole_archive_flag_spec=
7836 else
7837 # PORTME fill in a description of your system's linker (not GNU ld)
7838 case $host_os in
7839 aix3*)
7840 allow_undefined_flag=unsupported
7841 always_export_symbols=yes
7842 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'
7843 # Note: this linker hardcodes the directories in LIBPATH if there
7844 # are no directories specified by -L.
7845 hardcode_minus_L=yes
7846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7847 # Neither direct hardcoding nor static linking is supported with a
7848 # broken collect2.
7849 hardcode_direct=unsupported
7853 aix4* | aix5*)
7854 if test "$host_cpu" = ia64; then
7855 # On IA64, the linker does run time linking by default, so we don't
7856 # have to do anything special.
7857 aix_use_runtimelinking=no
7858 exp_sym_flag='-Bexport'
7859 no_entry_flag=""
7860 else
7861 # If we're using GNU nm, then we don't want the "-C" option.
7862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7864 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'
7865 else
7866 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'
7868 aix_use_runtimelinking=no
7870 # Test if we are trying to use run time linking or normal
7871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7872 # need to do runtime linking.
7873 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7874 for ld_flag in $LDFLAGS; do
7875 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7876 aix_use_runtimelinking=yes
7877 break
7879 done
7881 esac
7883 exp_sym_flag='-bexport'
7884 no_entry_flag='-bnoentry'
7887 # When large executables or shared objects are built, AIX ld can
7888 # have problems creating the table of contents. If linking a library
7889 # or program results in "error TOC overflow" add -mminimal-toc to
7890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7893 archive_cmds=''
7894 hardcode_direct=yes
7895 hardcode_libdir_separator=':'
7896 link_all_deplibs=yes
7898 if test "$GCC" = yes; then
7899 case $host_os in aix4.[012]|aix4.[012].*)
7900 # We only want to do this on AIX 4.2 and lower, the check
7901 # below for broken collect2 doesn't work under 4.3+
7902 collect2name=`${CC} -print-prog-name=collect2`
7903 if test -f "$collect2name" && \
7904 strings "$collect2name" | grep resolve_lib_name >/dev/null
7905 then
7906 # We have reworked collect2
7908 else
7909 # We have old collect2
7910 hardcode_direct=unsupported
7911 # It fails to find uninstalled libraries when the uninstalled
7912 # path is not listed in the libpath. Setting hardcode_minus_L
7913 # to unsupported forces relinking
7914 hardcode_minus_L=yes
7915 hardcode_libdir_flag_spec='-L$libdir'
7916 hardcode_libdir_separator=
7919 esac
7920 shared_flag='-shared'
7921 if test "$aix_use_runtimelinking" = yes; then
7922 shared_flag="$shared_flag "'${wl}-G'
7924 else
7925 # not using gcc
7926 if test "$host_cpu" = ia64; then
7927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7928 # chokes on -Wl,-G. The following line is correct:
7929 shared_flag='-G'
7930 else
7931 if test "$aix_use_runtimelinking" = yes; then
7932 shared_flag='${wl}-G'
7933 else
7934 shared_flag='${wl}-bM:SRE'
7939 # It seems that -bexpall does not export symbols beginning with
7940 # underscore (_), so it is better to generate a list of symbols to export.
7941 always_export_symbols=yes
7942 if test "$aix_use_runtimelinking" = yes; then
7943 # Warning - without using the other runtime loading flags (-brtl),
7944 # -berok will link without error, but may produce a broken library.
7945 allow_undefined_flag='-berok'
7946 # Determine the default libpath from the value encoded in an empty executable.
7947 cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h. */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7955 main ()
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (ac_try="$ac_link"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_link") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext &&
7979 $as_test_x conftest$ac_exeext; then
7981 lt_aix_libpath_sed='
7982 /Import File Strings/,/^$/ {
7983 /^0/ {
7984 s/^0 *\(.*\)$/\1/
7988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7989 # Check for a 64-bit object if we didn't find anything.
7990 if test -z "$aix_libpath"; then
7991 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8001 conftest$ac_exeext conftest.$ac_ext
8002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8005 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"
8006 else
8007 if test "$host_cpu" = ia64; then
8008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8009 allow_undefined_flag="-z nodefs"
8010 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"
8011 else
8012 # Determine the default libpath from the value encoded in an empty executable.
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8021 main ()
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8047 lt_aix_libpath_sed='
8048 /Import File Strings/,/^$/ {
8049 /^0/ {
8050 s/^0 *\(.*\)$/\1/
8054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8055 # Check for a 64-bit object if we didn't find anything.
8056 if test -z "$aix_libpath"; then
8057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067 conftest$ac_exeext conftest.$ac_ext
8068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8071 # Warning - without using the other run time loading flags,
8072 # -berok will link without error, but may produce a broken library.
8073 no_undefined_flag=' ${wl}-bernotok'
8074 allow_undefined_flag=' ${wl}-berok'
8075 # Exported symbols can be pulled into shared objects from archives
8076 whole_archive_flag_spec='$convenience'
8077 archive_cmds_need_lc=yes
8078 # This is similar to how AIX traditionally builds its shared libraries.
8079 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'
8084 amigaos*)
8085 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)'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_minus_L=yes
8088 # see comment about different semantics on the GNU ld section
8089 ld_shlibs=no
8092 bsdi[45]*)
8093 export_dynamic_flag_spec=-rdynamic
8096 cygwin* | mingw* | pw32*)
8097 # When not using gcc, we currently assume that we are using
8098 # Microsoft Visual C++.
8099 # hardcode_libdir_flag_spec is actually meaningless, as there is
8100 # no search path for DLLs.
8101 hardcode_libdir_flag_spec=' '
8102 allow_undefined_flag=unsupported
8103 # Tell ltmain to make .lib files, not .a files.
8104 libext=lib
8105 # Tell ltmain to make .dll files, not .so files.
8106 shrext_cmds=".dll"
8107 # FIXME: Setting linknames here is a bad hack.
8108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8109 # The linker will automatically build a .lib file if we build a DLL.
8110 old_archive_From_new_cmds='true'
8111 # FIXME: Should let the user specify the lib program.
8112 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8113 fix_srcfile_path='`cygpath -w "$srcfile"`'
8114 enable_shared_with_static_runtimes=yes
8117 darwin* | rhapsody*)
8118 case $host_os in
8119 rhapsody* | darwin1.[012])
8120 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8122 *) # Darwin 1.3 on
8123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8124 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8125 else
8126 case ${MACOSX_DEPLOYMENT_TARGET} in
8127 10.[012])
8128 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8130 10.*)
8131 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8133 esac
8136 esac
8137 archive_cmds_need_lc=no
8138 hardcode_direct=no
8139 hardcode_automatic=yes
8140 hardcode_shlibpath_var=unsupported
8141 whole_archive_flag_spec=''
8142 link_all_deplibs=yes
8143 if test "$GCC" = yes ; then
8144 output_verbose_link_cmd='echo'
8145 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8148 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8149 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}'
8150 else
8151 case $cc_basename in
8152 xlc*)
8153 output_verbose_link_cmd='echo'
8154 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8155 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8157 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}'
8158 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}'
8161 ld_shlibs=no
8163 esac
8167 dgux*)
8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_libdir_flag_spec='-L$libdir'
8170 hardcode_shlibpath_var=no
8173 freebsd1*)
8174 ld_shlibs=no
8177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8178 # support. Future versions do this automatically, but an explicit c++rt0.o
8179 # does not break anything, and helps significantly (at the cost of a little
8180 # extra space).
8181 freebsd2.2*)
8182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8183 hardcode_libdir_flag_spec='-R$libdir'
8184 hardcode_direct=yes
8185 hardcode_shlibpath_var=no
8188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8189 freebsd2*)
8190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191 hardcode_direct=yes
8192 hardcode_minus_L=yes
8193 hardcode_shlibpath_var=no
8196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8197 freebsd* | dragonfly*)
8198 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8199 hardcode_libdir_flag_spec='-R$libdir'
8200 hardcode_direct=yes
8201 hardcode_shlibpath_var=no
8204 hpux9*)
8205 if test "$GCC" = yes; then
8206 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'
8207 else
8208 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'
8210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211 hardcode_libdir_separator=:
8212 hardcode_direct=yes
8214 # hardcode_minus_L: Not really in the search PATH,
8215 # but as the default location of the library.
8216 hardcode_minus_L=yes
8217 export_dynamic_flag_spec='${wl}-E'
8220 hpux10*)
8221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 else
8224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8226 if test "$with_gnu_ld" = no; then
8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8228 hardcode_libdir_separator=:
8230 hardcode_direct=yes
8231 export_dynamic_flag_spec='${wl}-E'
8233 # hardcode_minus_L: Not really in the search PATH,
8234 # but as the default location of the library.
8235 hardcode_minus_L=yes
8239 hpux11*)
8240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8241 case $host_cpu in
8242 hppa*64*)
8243 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8245 ia64*)
8246 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8251 esac
8252 else
8253 case $host_cpu in
8254 hppa*64*)
8255 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 ia64*)
8258 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8263 esac
8265 if test "$with_gnu_ld" = no; then
8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8267 hardcode_libdir_separator=:
8269 case $host_cpu in
8270 hppa*64*|ia64*)
8271 hardcode_libdir_flag_spec_ld='+b $libdir'
8272 hardcode_direct=no
8273 hardcode_shlibpath_var=no
8276 hardcode_direct=yes
8277 export_dynamic_flag_spec='${wl}-E'
8279 # hardcode_minus_L: Not really in the search PATH,
8280 # but as the default location of the library.
8281 hardcode_minus_L=yes
8283 esac
8287 irix5* | irix6* | nonstopux*)
8288 if test "$GCC" = yes; then
8289 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'
8290 else
8291 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'
8292 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8295 hardcode_libdir_separator=:
8296 link_all_deplibs=yes
8299 netbsd*)
8300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8302 else
8303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8305 hardcode_libdir_flag_spec='-R$libdir'
8306 hardcode_direct=yes
8307 hardcode_shlibpath_var=no
8310 newsos6)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=yes
8313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8314 hardcode_libdir_separator=:
8315 hardcode_shlibpath_var=no
8318 openbsd*)
8319 if test -f /usr/libexec/ld.so; then
8320 hardcode_direct=yes
8321 hardcode_shlibpath_var=no
8322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8326 export_dynamic_flag_spec='${wl}-E'
8327 else
8328 case $host_os in
8329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8331 hardcode_libdir_flag_spec='-R$libdir'
8334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337 esac
8339 else
8340 ld_shlibs=no
8344 os2*)
8345 hardcode_libdir_flag_spec='-L$libdir'
8346 hardcode_minus_L=yes
8347 allow_undefined_flag=unsupported
8348 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'
8349 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8352 osf3*)
8353 if test "$GCC" = yes; then
8354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8355 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'
8356 else
8357 allow_undefined_flag=' -expect_unresolved \*'
8358 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'
8360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8361 hardcode_libdir_separator=:
8364 osf4* | osf5*) # as osf3* with the addition of -msym flag
8365 if test "$GCC" = yes; then
8366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8367 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'
8368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8369 else
8370 allow_undefined_flag=' -expect_unresolved \*'
8371 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'
8372 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8373 $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'
8375 # Both c and cxx compiler support -rpath directly
8376 hardcode_libdir_flag_spec='-rpath $libdir'
8378 hardcode_libdir_separator=:
8381 solaris*)
8382 no_undefined_flag=' -z text'
8383 if test "$GCC" = yes; then
8384 wlarc='${wl}'
8385 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8388 else
8389 wlarc=''
8390 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8394 hardcode_libdir_flag_spec='-R$libdir'
8395 hardcode_shlibpath_var=no
8396 case $host_os in
8397 solaris2.[0-5] | solaris2.[0-5].*) ;;
8399 # The compiler driver will combine and reorder linker options,
8400 # but understands `-z linker_flag'. GCC discards it without `$wl',
8401 # but is careful enough not to reorder.
8402 # Supported since Solaris 2.6 (maybe 2.5.1?)
8403 if test "$GCC" = yes; then
8404 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8405 else
8406 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8409 esac
8410 link_all_deplibs=yes
8413 sunos4*)
8414 if test "x$host_vendor" = xsequent; then
8415 # Use $CC to link under sequent, because it throws in some extra .o
8416 # files that make .init and .fini sections work.
8417 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8418 else
8419 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8421 hardcode_libdir_flag_spec='-L$libdir'
8422 hardcode_direct=yes
8423 hardcode_minus_L=yes
8424 hardcode_shlibpath_var=no
8427 sysv4)
8428 case $host_vendor in
8429 sni)
8430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8431 hardcode_direct=yes # is this really true???
8433 siemens)
8434 ## LD is ld it makes a PLAMLIB
8435 ## CC just makes a GrossModule.
8436 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8437 reload_cmds='$CC -r -o $output$reload_objs'
8438 hardcode_direct=no
8440 motorola)
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8444 esac
8445 runpath_var='LD_RUN_PATH'
8446 hardcode_shlibpath_var=no
8449 sysv4.3*)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_shlibpath_var=no
8452 export_dynamic_flag_spec='-Bexport'
8455 sysv4*MP*)
8456 if test -d /usr/nec; then
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_shlibpath_var=no
8459 runpath_var=LD_RUN_PATH
8460 hardcode_runpath_var=yes
8461 ld_shlibs=yes
8465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8466 no_undefined_flag='${wl}-z,text'
8467 archive_cmds_need_lc=no
8468 hardcode_shlibpath_var=no
8469 runpath_var='LD_RUN_PATH'
8471 if test "$GCC" = yes; then
8472 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8473 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 else
8475 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 sysv5* | sco3.2v5* | sco5v6*)
8481 # Note: We can NOT use -z defs as we might desire, because we do not
8482 # link with -lc, and that would cause any symbols used from libc to
8483 # always be unresolved, which means just about no library would
8484 # ever link correctly. If we're not using GNU ld we use -z text
8485 # though, which does catch some bad symbols but isn't as heavy-handed
8486 # as -z defs.
8487 no_undefined_flag='${wl}-z,text'
8488 allow_undefined_flag='${wl}-z,nodefs'
8489 archive_cmds_need_lc=no
8490 hardcode_shlibpath_var=no
8491 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8492 hardcode_libdir_separator=':'
8493 link_all_deplibs=yes
8494 export_dynamic_flag_spec='${wl}-Bexport'
8495 runpath_var='LD_RUN_PATH'
8497 if test "$GCC" = yes; then
8498 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 else
8501 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 uts4*)
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_shlibpath_var=no
8513 ld_shlibs=no
8515 esac
8518 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8519 echo "${ECHO_T}$ld_shlibs" >&6; }
8520 test "$ld_shlibs" = no && can_build_shared=no
8523 # Do we need to explicitly link libc?
8525 case "x$archive_cmds_need_lc" in
8526 x|xyes)
8527 # Assume -lc should be added
8528 archive_cmds_need_lc=yes
8530 if test "$enable_shared" = yes && test "$GCC" = yes; then
8531 case $archive_cmds in
8532 *'~'*)
8533 # FIXME: we may have to deal with multi-command sequences.
8535 '$CC '*)
8536 # Test whether the compiler implicitly links with -lc since on some
8537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8538 # to ld, don't add -lc before -lgcc.
8539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8541 $rm conftest*
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } 2>conftest.err; then
8549 soname=conftest
8550 lib=conftest
8551 libobjs=conftest.$ac_objext
8552 deplibs=
8553 wl=$lt_prog_compiler_wl
8554 pic_flag=$lt_prog_compiler_pic
8555 compiler_flags=-v
8556 linker_flags=-v
8557 verstring=
8558 output_objdir=.
8559 libname=conftest
8560 lt_save_allow_undefined_flag=$allow_undefined_flag
8561 allow_undefined_flag=
8562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8563 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }
8567 then
8568 archive_cmds_need_lc=no
8569 else
8570 archive_cmds_need_lc=yes
8572 allow_undefined_flag=$lt_save_allow_undefined_flag
8573 else
8574 cat conftest.err 1>&5
8576 $rm conftest*
8577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8578 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8580 esac
8583 esac
8585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8587 library_names_spec=
8588 libname_spec='lib$name'
8589 soname_spec=
8590 shrext_cmds=".so"
8591 postinstall_cmds=
8592 postuninstall_cmds=
8593 finish_cmds=
8594 finish_eval=
8595 shlibpath_var=
8596 shlibpath_overrides_runpath=unknown
8597 version_type=none
8598 dynamic_linker="$host_os ld.so"
8599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8601 if test "$GCC" = yes; then
8602 case $host_os in
8603 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8604 *) lt_awk_arg="/^libraries:/" ;;
8605 esac
8606 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8607 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8608 # if the path contains ";" then we assume it to be the separator
8609 # otherwise default to the standard path separator (i.e. ":") - it is
8610 # assumed that no part of a normal pathname contains ";" but that should
8611 # okay in the real world where ";" in dirpaths is itself problematic.
8612 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8613 else
8614 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8616 # Ok, now we have the path, separated by spaces, we can step through it
8617 # and add multilib dir if necessary.
8618 lt_tmp_lt_search_path_spec=
8619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8620 for lt_sys_path in $lt_search_path_spec; do
8621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8623 else
8624 test -d "$lt_sys_path" && \
8625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8627 done
8628 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8629 BEGIN {RS=" "; FS="/|\n";} {
8630 lt_foo="";
8631 lt_count=0;
8632 for (lt_i = NF; lt_i > 0; lt_i--) {
8633 if ($lt_i != "" && $lt_i != ".") {
8634 if ($lt_i == "..") {
8635 lt_count++;
8636 } else {
8637 if (lt_count == 0) {
8638 lt_foo="/" $lt_i lt_foo;
8639 } else {
8640 lt_count--;
8645 if (lt_foo != "") { lt_freq[lt_foo]++; }
8646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8648 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8649 else
8650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8652 need_lib_prefix=unknown
8653 hardcode_into_libs=no
8655 # when you set need_version to no, make sure it does not cause -set_version
8656 # flags to be left without arguments
8657 need_version=unknown
8659 case $host_os in
8660 aix3*)
8661 version_type=linux
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8663 shlibpath_var=LIBPATH
8665 # AIX 3 has no versioning support, so we append a major version to the name.
8666 soname_spec='${libname}${release}${shared_ext}$major'
8669 aix4* | aix5*)
8670 version_type=linux
8671 need_lib_prefix=no
8672 need_version=no
8673 hardcode_into_libs=yes
8674 if test "$host_cpu" = ia64; then
8675 # AIX 5 supports IA64
8676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 else
8679 # With GCC up to 2.95.x, collect2 would create an import file
8680 # for dependence libraries. The import file would start with
8681 # the line `#! .'. This would cause the generated library to
8682 # depend on `.', always an invalid library. This was fixed in
8683 # development snapshots of GCC prior to 3.0.
8684 case $host_os in
8685 aix4 | aix4.[01] | aix4.[01].*)
8686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8687 echo ' yes '
8688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8690 else
8691 can_build_shared=no
8694 esac
8695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8696 # soname into executable. Probably we can add versioning support to
8697 # collect2, so additional links can be useful in future.
8698 if test "$aix_use_runtimelinking" = yes; then
8699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8700 # instead of lib<name>.a to let people know that these are not
8701 # typical AIX shared libraries.
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703 else
8704 # We preserve .a as extension for shared libraries through AIX4.2
8705 # and later when we are not doing run time linking.
8706 library_names_spec='${libname}${release}.a $libname.a'
8707 soname_spec='${libname}${release}${shared_ext}$major'
8709 shlibpath_var=LIBPATH
8713 amigaos*)
8714 library_names_spec='$libname.ixlibrary $libname.a'
8715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8716 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'
8719 beos*)
8720 library_names_spec='${libname}${shared_ext}'
8721 dynamic_linker="$host_os ld.so"
8722 shlibpath_var=LIBRARY_PATH
8725 bsdi[45]*)
8726 version_type=linux
8727 need_version=no
8728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8734 # the default ld.so.conf also contains /usr/contrib/lib and
8735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8736 # libtool to hard-code these into programs
8739 cygwin* | mingw* | pw32*)
8740 version_type=windows
8741 shrext_cmds=".dll"
8742 need_version=no
8743 need_lib_prefix=no
8745 case $GCC,$host_os in
8746 yes,cygwin* | yes,mingw* | yes,pw32*)
8747 library_names_spec='$libname.dll.a'
8748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8749 postinstall_cmds='base_file=`basename \${file}`~
8750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8751 dldir=$destdir/`dirname \$dlpath`~
8752 test -d \$dldir || mkdir -p \$dldir~
8753 $install_prog $dir/$dlname \$dldir/$dlname~
8754 chmod a+x \$dldir/$dlname'
8755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8756 dlpath=$dir/\$dldll~
8757 $rm \$dlpath'
8758 shlibpath_overrides_runpath=yes
8760 case $host_os in
8761 cygwin*)
8762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8766 mingw*)
8767 # MinGW DLLs use traditional 'lib' prefix
8768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8771 # It is most probably a Windows format PATH printed by
8772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8773 # path with ; separators, and with drive letters. We can handle the
8774 # drive letters (cygwin fileutils understands them), so leave them,
8775 # especially as we might pass files found there to a mingw objdump,
8776 # which wouldn't understand a cygwinified path. Ahh.
8777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8778 else
8779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8782 pw32*)
8783 # pw32 DLLs use 'pw' prefix rather than 'lib'
8784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 esac
8790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8792 esac
8793 dynamic_linker='Win32 ld.exe'
8794 # FIXME: first we should search . and the directory the executable is in
8795 shlibpath_var=PATH
8798 darwin* | rhapsody*)
8799 dynamic_linker="$host_os dyld"
8800 version_type=darwin
8801 need_lib_prefix=no
8802 need_version=no
8803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8804 soname_spec='${libname}${release}${major}$shared_ext'
8805 shlibpath_overrides_runpath=yes
8806 shlibpath_var=DYLD_LIBRARY_PATH
8807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8809 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8813 dgux*)
8814 version_type=linux
8815 need_lib_prefix=no
8816 need_version=no
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 shlibpath_var=LD_LIBRARY_PATH
8822 freebsd1*)
8823 dynamic_linker=no
8826 freebsd* | dragonfly*)
8827 # DragonFly does not have aout. When/if they implement a new
8828 # versioning mechanism, adjust this.
8829 if test -x /usr/bin/objformat; then
8830 objformat=`/usr/bin/objformat`
8831 else
8832 case $host_os in
8833 freebsd[123]*) objformat=aout ;;
8834 *) objformat=elf ;;
8835 esac
8837 # Handle Gentoo/FreeBSD as it was Linux
8838 case $host_vendor in
8839 gentoo)
8840 version_type=linux ;;
8842 version_type=freebsd-$objformat ;;
8843 esac
8845 case $version_type in
8846 freebsd-elf*)
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 need_version=no
8849 need_lib_prefix=no
8851 freebsd-*)
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853 need_version=yes
8855 linux)
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 need_lib_prefix=no
8859 need_version=no
8861 esac
8862 shlibpath_var=LD_LIBRARY_PATH
8863 case $host_os in
8864 freebsd2*)
8865 shlibpath_overrides_runpath=yes
8867 freebsd3.[01]* | freebsdelf3.[01]*)
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8873 shlibpath_overrides_runpath=no
8874 hardcode_into_libs=yes
8876 *) # from 4.6 on, and DragonFly
8877 shlibpath_overrides_runpath=yes
8878 hardcode_into_libs=yes
8880 esac
8883 gnu*)
8884 version_type=linux
8885 need_lib_prefix=no
8886 need_version=no
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 hardcode_into_libs=yes
8893 hpux9* | hpux10* | hpux11*)
8894 # Give a soname corresponding to the major version so that dld.sl refuses to
8895 # link against other versions.
8896 version_type=sunos
8897 need_lib_prefix=no
8898 need_version=no
8899 case $host_cpu in
8900 ia64*)
8901 shrext_cmds='.so'
8902 hardcode_into_libs=yes
8903 dynamic_linker="$host_os dld.so"
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 if test "X$HPUX_IA64_MODE" = X32; then
8909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8910 else
8911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 hppa*64*)
8916 shrext_cmds='.sl'
8917 hardcode_into_libs=yes
8918 dynamic_linker="$host_os dld.sl"
8919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8927 shrext_cmds='.sl'
8928 dynamic_linker="$host_os dld.sl"
8929 shlibpath_var=SHLIB_PATH
8930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8934 esac
8935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8936 postinstall_cmds='chmod 555 $lib'
8939 interix[3-9]*)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=no
8948 hardcode_into_libs=yes
8951 irix5* | irix6* | nonstopux*)
8952 case $host_os in
8953 nonstopux*) version_type=nonstopux ;;
8955 if test "$lt_cv_prog_gnu_ld" = yes; then
8956 version_type=linux
8957 else
8958 version_type=irix
8959 fi ;;
8960 esac
8961 need_lib_prefix=no
8962 need_version=no
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8965 case $host_os in
8966 irix5* | nonstopux*)
8967 libsuff= shlibsuff=
8970 case $LD in # libtool.m4 will add one of these switches to LD
8971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8972 libsuff= shlibsuff= libmagic=32-bit;;
8973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8974 libsuff=32 shlibsuff=N32 libmagic=N32;;
8975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8977 *) libsuff= shlibsuff= libmagic=never-match;;
8978 esac
8980 esac
8981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8982 shlibpath_overrides_runpath=no
8983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8985 hardcode_into_libs=yes
8988 # No shared lib support for Linux oldld, aout, or coff.
8989 linux*oldld* | linux*aout* | linux*coff*)
8990 dynamic_linker=no
8993 # This must be Linux ELF.
8994 linux* | k*bsd*-gnu)
8995 version_type=linux
8996 need_lib_prefix=no
8997 need_version=no
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=no
9003 # This implies no fast_install, which is unacceptable.
9004 # Some rework will be needed to allow for fast_install
9005 # before this can be enabled.
9006 hardcode_into_libs=yes
9008 # Append ld.so.conf contents to the search path
9009 if test -f /etc/ld.so.conf; then
9010 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' ' '`
9011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9014 # We used to test for /lib/ld.so.1 and disable shared libraries on
9015 # powerpc, because MkLinux only supported shared libraries with the
9016 # GNU dynamic linker. Since this was broken with cross compilers,
9017 # most powerpc-linux boxes support dynamic linking these days and
9018 # people can always --disable-shared, the test was removed, and we
9019 # assume the GNU/Linux dynamic linker is in use.
9020 dynamic_linker='GNU/Linux ld.so'
9023 netbsd*)
9024 version_type=sunos
9025 need_lib_prefix=no
9026 need_version=no
9027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9030 dynamic_linker='NetBSD (a.out) ld.so'
9031 else
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='NetBSD ld.elf_so'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9041 newsos6)
9042 version_type=linux
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9048 nto-qnx*)
9049 version_type=linux
9050 need_lib_prefix=no
9051 need_version=no
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes
9058 openbsd*)
9059 version_type=sunos
9060 sys_lib_dlsearch_path_spec="/usr/lib"
9061 need_lib_prefix=no
9062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9063 case $host_os in
9064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9065 *) need_version=no ;;
9066 esac
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9071 case $host_os in
9072 openbsd2.[89] | openbsd2.[89].*)
9073 shlibpath_overrides_runpath=no
9076 shlibpath_overrides_runpath=yes
9078 esac
9079 else
9080 shlibpath_overrides_runpath=yes
9084 os2*)
9085 libname_spec='$name'
9086 shrext_cmds=".dll"
9087 need_lib_prefix=no
9088 library_names_spec='$libname${shared_ext} $libname.a'
9089 dynamic_linker='OS/2 ld.exe'
9090 shlibpath_var=LIBPATH
9093 osf3* | osf4* | osf5*)
9094 version_type=osf
9095 need_lib_prefix=no
9096 need_version=no
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9104 rdos*)
9105 dynamic_linker=no
9108 solaris*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=yes
9116 hardcode_into_libs=yes
9117 # ldd complains unless libraries are executable
9118 postinstall_cmds='chmod +x $lib'
9121 sunos4*)
9122 version_type=sunos
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 shlibpath_overrides_runpath=yes
9127 if test "$with_gnu_ld" = yes; then
9128 need_lib_prefix=no
9130 need_version=yes
9133 sysv4 | sysv4.3*)
9134 version_type=linux
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 case $host_vendor in
9139 sni)
9140 shlibpath_overrides_runpath=no
9141 need_lib_prefix=no
9142 export_dynamic_flag_spec='${wl}-Blargedynsym'
9143 runpath_var=LD_RUN_PATH
9145 siemens)
9146 need_lib_prefix=no
9148 motorola)
9149 need_lib_prefix=no
9150 need_version=no
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9154 esac
9157 sysv4*MP*)
9158 if test -d /usr/nec ;then
9159 version_type=linux
9160 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9161 soname_spec='$libname${shared_ext}.$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9167 version_type=freebsd-elf
9168 need_lib_prefix=no
9169 need_version=no
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 hardcode_into_libs=yes
9174 if test "$with_gnu_ld" = yes; then
9175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9176 shlibpath_overrides_runpath=no
9177 else
9178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9179 shlibpath_overrides_runpath=yes
9180 case $host_os in
9181 sco3.2v5*)
9182 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9184 esac
9186 sys_lib_dlsearch_path_spec='/usr/lib'
9189 uts4*)
9190 version_type=linux
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9197 dynamic_linker=no
9199 esac
9200 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9201 echo "${ECHO_T}$dynamic_linker" >&6; }
9202 test "$dynamic_linker" = no && can_build_shared=no
9204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9205 if test "$GCC" = yes; then
9206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9209 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9210 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9211 hardcode_action=
9212 if test -n "$hardcode_libdir_flag_spec" || \
9213 test -n "$runpath_var" || \
9214 test "X$hardcode_automatic" = "Xyes" ; then
9216 # We can hardcode non-existant directories.
9217 if test "$hardcode_direct" != no &&
9218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9219 # have to relink, otherwise we might link with an installed library
9220 # when we should be linking with a yet-to-be-installed one
9221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9222 test "$hardcode_minus_L" != no; then
9223 # Linking always hardcodes the temporary library directory.
9224 hardcode_action=relink
9225 else
9226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9227 hardcode_action=immediate
9229 else
9230 # We cannot hardcode anything, or else we can only hardcode existing
9231 # directories.
9232 hardcode_action=unsupported
9234 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9235 echo "${ECHO_T}$hardcode_action" >&6; }
9237 if test "$hardcode_action" = relink; then
9238 # Fast installation is not supported
9239 enable_fast_install=no
9240 elif test "$shlibpath_overrides_runpath" = yes ||
9241 test "$enable_shared" = no; then
9242 # Fast installation is not necessary
9243 enable_fast_install=needless
9246 striplib=
9247 old_striplib=
9248 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9249 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9250 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9253 { echo "$as_me:$LINENO: result: yes" >&5
9254 echo "${ECHO_T}yes" >&6; }
9255 else
9256 # FIXME - insert some real tests, host_os isn't really good enough
9257 case $host_os in
9258 darwin*)
9259 if test -n "$STRIP" ; then
9260 striplib="$STRIP -x"
9261 old_striplib="$STRIP -S"
9262 { echo "$as_me:$LINENO: result: yes" >&5
9263 echo "${ECHO_T}yes" >&6; }
9264 else
9265 { echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6; }
9270 { echo "$as_me:$LINENO: result: no" >&5
9271 echo "${ECHO_T}no" >&6; }
9273 esac
9276 if test "x$enable_dlopen" != xyes; then
9277 enable_dlopen=unknown
9278 enable_dlopen_self=unknown
9279 enable_dlopen_self_static=unknown
9280 else
9281 lt_cv_dlopen=no
9282 lt_cv_dlopen_libs=
9284 case $host_os in
9285 beos*)
9286 lt_cv_dlopen="load_add_on"
9287 lt_cv_dlopen_libs=
9288 lt_cv_dlopen_self=yes
9291 mingw* | pw32*)
9292 lt_cv_dlopen="LoadLibrary"
9293 lt_cv_dlopen_libs=
9296 cygwin*)
9297 lt_cv_dlopen="dlopen"
9298 lt_cv_dlopen_libs=
9301 darwin*)
9302 # if libdl is installed we need to link against it
9303 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9304 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 ac_check_lib_save_LIBS=$LIBS
9309 LIBS="-ldl $LIBS"
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char dlopen ();
9325 main ()
9327 return dlopen ();
9329 return 0;
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (ac_try="$ac_link"
9334 case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_link") 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 } && test -s conftest$ac_exeext &&
9349 $as_test_x conftest$ac_exeext; then
9350 ac_cv_lib_dl_dlopen=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_lib_dl_dlopen=no
9358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9359 conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9362 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9363 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9364 if test $ac_cv_lib_dl_dlopen = yes; then
9365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9366 else
9368 lt_cv_dlopen="dyld"
9369 lt_cv_dlopen_libs=
9370 lt_cv_dlopen_self=yes
9377 { echo "$as_me:$LINENO: checking for shl_load" >&5
9378 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9379 if test "${ac_cv_func_shl_load+set}" = set; then
9380 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382 cat >conftest.$ac_ext <<_ACEOF
9383 /* confdefs.h. */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9390 #define shl_load innocuous_shl_load
9392 /* System header to define __stub macros and hopefully few prototypes,
9393 which can conflict with char shl_load (); below.
9394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9395 <limits.h> exists even on freestanding compilers. */
9397 #ifdef __STDC__
9398 # include <limits.h>
9399 #else
9400 # include <assert.h>
9401 #endif
9403 #undef shl_load
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char shl_load ();
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined __stub_shl_load || defined __stub___shl_load
9416 choke me
9417 #endif
9420 main ()
9422 return shl_load ();
9424 return 0;
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (ac_try="$ac_link"
9429 case "(($ac_try" in
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9432 esac
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434 (eval "$ac_link") 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } && {
9441 test -z "$ac_c_werror_flag" ||
9442 test ! -s conftest.err
9443 } && test -s conftest$ac_exeext &&
9444 $as_test_x conftest$ac_exeext; then
9445 ac_cv_func_shl_load=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_func_shl_load=no
9453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9454 conftest$ac_exeext conftest.$ac_ext
9456 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9457 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9458 if test $ac_cv_func_shl_load = yes; then
9459 lt_cv_dlopen="shl_load"
9460 else
9461 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9462 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldld $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char shl_load ();
9483 main ()
9485 return shl_load ();
9487 return 0;
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext &&
9507 $as_test_x conftest$ac_exeext; then
9508 ac_cv_lib_dld_shl_load=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_cv_lib_dld_shl_load=no
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9522 if test $ac_cv_lib_dld_shl_load = yes; then
9523 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9524 else
9525 { echo "$as_me:$LINENO: checking for dlopen" >&5
9526 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9527 if test "${ac_cv_func_dlopen+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define dlopen innocuous_dlopen
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char dlopen (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9551 #undef dlopen
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char dlopen ();
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined __stub_dlopen || defined __stub___dlopen
9564 choke me
9565 #endif
9568 main ()
9570 return dlopen ();
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest$ac_exeext &&
9592 $as_test_x conftest$ac_exeext; then
9593 ac_cv_func_dlopen=yes
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_cv_func_dlopen=no
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602 conftest$ac_exeext conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9605 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9606 if test $ac_cv_func_dlopen = yes; then
9607 lt_cv_dlopen="dlopen"
9608 else
9609 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9610 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9611 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614 ac_check_lib_save_LIBS=$LIBS
9615 LIBS="-ldl $LIBS"
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char dlopen ();
9631 main ()
9633 return dlopen ();
9635 return 0;
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest$ac_exeext &&
9655 $as_test_x conftest$ac_exeext; then
9656 ac_cv_lib_dl_dlopen=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_lib_dl_dlopen=no
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9668 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9669 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9670 if test $ac_cv_lib_dl_dlopen = yes; then
9671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9672 else
9673 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9674 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lsvld $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char dlopen ();
9695 main ()
9697 return dlopen ();
9699 return 0;
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest$ac_exeext &&
9719 $as_test_x conftest$ac_exeext; then
9720 ac_cv_lib_svld_dlopen=yes
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ac_cv_lib_svld_dlopen=no
9728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9730 LIBS=$ac_check_lib_save_LIBS
9732 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9733 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9734 if test $ac_cv_lib_svld_dlopen = yes; then
9735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9736 else
9737 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9738 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9739 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 ac_check_lib_save_LIBS=$LIBS
9743 LIBS="-ldld $LIBS"
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char dld_link ();
9759 main ()
9761 return dld_link ();
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_link") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest$ac_exeext &&
9783 $as_test_x conftest$ac_exeext; then
9784 ac_cv_lib_dld_dld_link=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_dld_dld_link=no
9792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9796 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9797 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9798 if test $ac_cv_lib_dld_dld_link = yes; then
9799 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9818 esac
9820 if test "x$lt_cv_dlopen" != xno; then
9821 enable_dlopen=yes
9822 else
9823 enable_dlopen=no
9826 case $lt_cv_dlopen in
9827 dlopen)
9828 save_CPPFLAGS="$CPPFLAGS"
9829 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9831 save_LDFLAGS="$LDFLAGS"
9832 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9834 save_LIBS="$LIBS"
9835 LIBS="$lt_cv_dlopen_libs $LIBS"
9837 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9838 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9839 if test "${lt_cv_dlopen_self+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 if test "$cross_compiling" = yes; then :
9843 lt_cv_dlopen_self=cross
9844 else
9845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9846 lt_status=$lt_dlunknown
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9848 "configure"
9849 #include "confdefs.h"
9851 #if HAVE_DLFCN_H
9852 #include <dlfcn.h>
9853 #endif
9855 #include <stdio.h>
9857 #ifdef RTLD_GLOBAL
9858 # define LT_DLGLOBAL RTLD_GLOBAL
9859 #else
9860 # ifdef DL_GLOBAL
9861 # define LT_DLGLOBAL DL_GLOBAL
9862 # else
9863 # define LT_DLGLOBAL 0
9864 # endif
9865 #endif
9867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9868 find out it does not work in some platform. */
9869 #ifndef LT_DLLAZY_OR_NOW
9870 # ifdef RTLD_LAZY
9871 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9872 # else
9873 # ifdef DL_LAZY
9874 # define LT_DLLAZY_OR_NOW DL_LAZY
9875 # else
9876 # ifdef RTLD_NOW
9877 # define LT_DLLAZY_OR_NOW RTLD_NOW
9878 # else
9879 # ifdef DL_NOW
9880 # define LT_DLLAZY_OR_NOW DL_NOW
9881 # else
9882 # define LT_DLLAZY_OR_NOW 0
9883 # endif
9884 # endif
9885 # endif
9886 # endif
9887 #endif
9889 #ifdef __cplusplus
9890 extern "C" void exit (int);
9891 #endif
9893 void fnord() { int i=42;}
9894 int main ()
9896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9897 int status = $lt_dlunknown;
9899 if (self)
9901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9903 /* dlclose (self); */
9905 else
9906 puts (dlerror ());
9908 exit (status);
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9916 (./conftest; exit; ) >&5 2>/dev/null
9917 lt_status=$?
9918 case x$lt_status in
9919 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9920 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9921 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9922 esac
9923 else :
9924 # compilation failed
9925 lt_cv_dlopen_self=no
9928 rm -fr conftest*
9932 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9933 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9935 if test "x$lt_cv_dlopen_self" = xyes; then
9936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9937 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9938 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9939 if test "${lt_cv_dlopen_self_static+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 if test "$cross_compiling" = yes; then :
9943 lt_cv_dlopen_self_static=cross
9944 else
9945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9946 lt_status=$lt_dlunknown
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9948 "configure"
9949 #include "confdefs.h"
9951 #if HAVE_DLFCN_H
9952 #include <dlfcn.h>
9953 #endif
9955 #include <stdio.h>
9957 #ifdef RTLD_GLOBAL
9958 # define LT_DLGLOBAL RTLD_GLOBAL
9959 #else
9960 # ifdef DL_GLOBAL
9961 # define LT_DLGLOBAL DL_GLOBAL
9962 # else
9963 # define LT_DLGLOBAL 0
9964 # endif
9965 #endif
9967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9968 find out it does not work in some platform. */
9969 #ifndef LT_DLLAZY_OR_NOW
9970 # ifdef RTLD_LAZY
9971 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9972 # else
9973 # ifdef DL_LAZY
9974 # define LT_DLLAZY_OR_NOW DL_LAZY
9975 # else
9976 # ifdef RTLD_NOW
9977 # define LT_DLLAZY_OR_NOW RTLD_NOW
9978 # else
9979 # ifdef DL_NOW
9980 # define LT_DLLAZY_OR_NOW DL_NOW
9981 # else
9982 # define LT_DLLAZY_OR_NOW 0
9983 # endif
9984 # endif
9985 # endif
9986 # endif
9987 #endif
9989 #ifdef __cplusplus
9990 extern "C" void exit (int);
9991 #endif
9993 void fnord() { int i=42;}
9994 int main ()
9996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9997 int status = $lt_dlunknown;
9999 if (self)
10001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10002 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10003 /* dlclose (self); */
10005 else
10006 puts (dlerror ());
10008 exit (status);
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10016 (./conftest; exit; ) >&5 2>/dev/null
10017 lt_status=$?
10018 case x$lt_status in
10019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10022 esac
10023 else :
10024 # compilation failed
10025 lt_cv_dlopen_self_static=no
10028 rm -fr conftest*
10032 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10033 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10036 CPPFLAGS="$save_CPPFLAGS"
10037 LDFLAGS="$save_LDFLAGS"
10038 LIBS="$save_LIBS"
10040 esac
10042 case $lt_cv_dlopen_self in
10043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10044 *) enable_dlopen_self=unknown ;;
10045 esac
10047 case $lt_cv_dlopen_self_static in
10048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10049 *) enable_dlopen_self_static=unknown ;;
10050 esac
10054 # Report which library types will actually be built
10055 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10056 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10057 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10058 echo "${ECHO_T}$can_build_shared" >&6; }
10060 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10061 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10062 test "$can_build_shared" = "no" && enable_shared=no
10064 # On AIX, shared libraries and static libraries use the same namespace, and
10065 # are all built from PIC.
10066 case $host_os in
10067 aix3*)
10068 test "$enable_shared" = yes && enable_static=no
10069 if test -n "$RANLIB"; then
10070 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10071 postinstall_cmds='$RANLIB $lib'
10075 aix4* | aix5*)
10076 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10077 test "$enable_shared" = yes && enable_static=no
10080 esac
10081 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10082 echo "${ECHO_T}$enable_shared" >&6; }
10084 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10085 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10086 # Make sure either enable_shared or enable_static is yes.
10087 test "$enable_shared" = yes || enable_static=yes
10088 { echo "$as_me:$LINENO: result: $enable_static" >&5
10089 echo "${ECHO_T}$enable_static" >&6; }
10091 # The else clause should only fire when bootstrapping the
10092 # libtool distribution, otherwise you forgot to ship ltmain.sh
10093 # with your package, and you will get complaints that there are
10094 # no rules to generate ltmain.sh.
10095 if test -f "$ltmain"; then
10096 # See if we are running on zsh, and set the options which allow our commands through
10097 # without removal of \ escapes.
10098 if test -n "${ZSH_VERSION+set}" ; then
10099 setopt NO_GLOB_SUBST
10101 # Now quote all the things that may contain metacharacters while being
10102 # careful not to overquote the AC_SUBSTed values. We take copies of the
10103 # variables and quote the copies for generation of the libtool script.
10104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10105 SED SHELL STRIP \
10106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10108 deplibs_check_method reload_flag reload_cmds need_locks \
10109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10110 lt_cv_sys_global_symbol_to_c_name_address \
10111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10112 old_postinstall_cmds old_postuninstall_cmds \
10113 compiler \
10114 CC \
10115 LD \
10116 lt_prog_compiler_wl \
10117 lt_prog_compiler_pic \
10118 lt_prog_compiler_static \
10119 lt_prog_compiler_no_builtin_flag \
10120 export_dynamic_flag_spec \
10121 thread_safe_flag_spec \
10122 whole_archive_flag_spec \
10123 enable_shared_with_static_runtimes \
10124 old_archive_cmds \
10125 old_archive_from_new_cmds \
10126 predep_objects \
10127 postdep_objects \
10128 predeps \
10129 postdeps \
10130 compiler_lib_search_path \
10131 archive_cmds \
10132 archive_expsym_cmds \
10133 postinstall_cmds \
10134 postuninstall_cmds \
10135 old_archive_from_expsyms_cmds \
10136 allow_undefined_flag \
10137 no_undefined_flag \
10138 export_symbols_cmds \
10139 hardcode_libdir_flag_spec \
10140 hardcode_libdir_flag_spec_ld \
10141 hardcode_libdir_separator \
10142 hardcode_automatic \
10143 module_cmds \
10144 module_expsym_cmds \
10145 lt_cv_prog_compiler_c_o \
10146 fix_srcfile_path \
10147 exclude_expsyms \
10148 include_expsyms; do
10150 case $var in
10151 old_archive_cmds | \
10152 old_archive_from_new_cmds | \
10153 archive_cmds | \
10154 archive_expsym_cmds | \
10155 module_cmds | \
10156 module_expsym_cmds | \
10157 old_archive_from_expsyms_cmds | \
10158 export_symbols_cmds | \
10159 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10160 postinstall_cmds | postuninstall_cmds | \
10161 old_postinstall_cmds | old_postuninstall_cmds | \
10162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10163 # Double-quote double-evaled strings.
10164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10169 esac
10170 done
10172 case $lt_echo in
10173 *'\$0 --fallback-echo"')
10174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10176 esac
10178 cfgfile="${ofile}T"
10179 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10180 $rm -f "$cfgfile"
10181 { echo "$as_me:$LINENO: creating $ofile" >&5
10182 echo "$as_me: creating $ofile" >&6;}
10184 cat <<__EOF__ >> "$cfgfile"
10185 #! $SHELL
10187 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10188 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10189 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10191 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10192 # Free Software Foundation, Inc.
10194 # This file is part of GNU Libtool:
10195 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10197 # This program is free software; you can redistribute it and/or modify
10198 # it under the terms of the GNU General Public License as published by
10199 # the Free Software Foundation; either version 2 of the License, or
10200 # (at your option) any later version.
10202 # This program is distributed in the hope that it will be useful, but
10203 # WITHOUT ANY WARRANTY; without even the implied warranty of
10204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10205 # General Public License for more details.
10207 # You should have received a copy of the GNU General Public License
10208 # along with this program; if not, write to the Free Software
10209 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10211 # As a special exception to the GNU General Public License, if you
10212 # distribute this file as part of a program that contains a
10213 # configuration script generated by Autoconf, you may include it under
10214 # the same distribution terms that you use for the rest of that program.
10216 # A sed program that does not truncate output.
10217 SED=$lt_SED
10219 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10220 Xsed="$SED -e 1s/^X//"
10222 # The HP-UX ksh and POSIX shell print the target directory to stdout
10223 # if CDPATH is set.
10224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10226 # The names of the tagged configurations supported by this script.
10227 available_tags=
10229 # ### BEGIN LIBTOOL CONFIG
10231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10233 # Shell to use when invoking shell scripts.
10234 SHELL=$lt_SHELL
10236 # Whether or not to build shared libraries.
10237 build_libtool_libs=$enable_shared
10239 # Whether or not to build static libraries.
10240 build_old_libs=$enable_static
10242 # Whether or not to add -lc for building shared libraries.
10243 build_libtool_need_lc=$archive_cmds_need_lc
10245 # Whether or not to disallow shared libs when runtime libs are static
10246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10248 # Whether or not to optimize for fast installation.
10249 fast_install=$enable_fast_install
10251 # The host system.
10252 host_alias=$host_alias
10253 host=$host
10254 host_os=$host_os
10256 # The build system.
10257 build_alias=$build_alias
10258 build=$build
10259 build_os=$build_os
10261 # An echo program that does not interpret backslashes.
10262 echo=$lt_echo
10264 # The archiver.
10265 AR=$lt_AR
10266 AR_FLAGS=$lt_AR_FLAGS
10268 # A C compiler.
10269 LTCC=$lt_LTCC
10271 # LTCC compiler flags.
10272 LTCFLAGS=$lt_LTCFLAGS
10274 # A language-specific compiler.
10275 CC=$lt_compiler
10277 # Is the compiler the GNU C compiler?
10278 with_gcc=$GCC
10280 # An ERE matcher.
10281 EGREP=$lt_EGREP
10283 # The linker used to build libraries.
10284 LD=$lt_LD
10286 # Whether we need hard or soft links.
10287 LN_S=$lt_LN_S
10289 # A BSD-compatible nm program.
10290 NM=$lt_NM
10292 # A symbol stripping program
10293 STRIP=$lt_STRIP
10295 # Used to examine libraries when file_magic_cmd begins "file"
10296 MAGIC_CMD=$MAGIC_CMD
10298 # Used on cygwin: DLL creation program.
10299 DLLTOOL="$DLLTOOL"
10301 # Used on cygwin: object dumper.
10302 OBJDUMP="$OBJDUMP"
10304 # Used on cygwin: assembler.
10305 AS="$AS"
10307 # The name of the directory that contains temporary libtool files.
10308 objdir=$objdir
10310 # How to create reloadable object files.
10311 reload_flag=$lt_reload_flag
10312 reload_cmds=$lt_reload_cmds
10314 # How to pass a linker flag through the compiler.
10315 wl=$lt_lt_prog_compiler_wl
10317 # Object file suffix (normally "o").
10318 objext="$ac_objext"
10320 # Old archive suffix (normally "a").
10321 libext="$libext"
10323 # Shared library suffix (normally ".so").
10324 shrext_cmds='$shrext_cmds'
10326 # Executable file suffix (normally "").
10327 exeext="$exeext"
10329 # Additional compiler flags for building library objects.
10330 pic_flag=$lt_lt_prog_compiler_pic
10331 pic_mode=$pic_mode
10333 # What is the maximum length of a command?
10334 max_cmd_len=$lt_cv_sys_max_cmd_len
10336 # Does compiler simultaneously support -c and -o options?
10337 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10339 # Must we lock files when doing compilation?
10340 need_locks=$lt_need_locks
10342 # Do we need the lib prefix for modules?
10343 need_lib_prefix=$need_lib_prefix
10345 # Do we need a version for libraries?
10346 need_version=$need_version
10348 # Whether dlopen is supported.
10349 dlopen_support=$enable_dlopen
10351 # Whether dlopen of programs is supported.
10352 dlopen_self=$enable_dlopen_self
10354 # Whether dlopen of statically linked programs is supported.
10355 dlopen_self_static=$enable_dlopen_self_static
10357 # Compiler flag to prevent dynamic linking.
10358 link_static_flag=$lt_lt_prog_compiler_static
10360 # Compiler flag to turn off builtin functions.
10361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10363 # Compiler flag to allow reflexive dlopens.
10364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10366 # Compiler flag to generate shared objects directly from archives.
10367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10369 # Compiler flag to generate thread-safe objects.
10370 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10372 # Library versioning type.
10373 version_type=$version_type
10375 # Format of library name prefix.
10376 libname_spec=$lt_libname_spec
10378 # List of archive names. First name is the real one, the rest are links.
10379 # The last name is the one that the linker finds with -lNAME.
10380 library_names_spec=$lt_library_names_spec
10382 # The coded name of the library, if different from the real name.
10383 soname_spec=$lt_soname_spec
10385 # Commands used to build and install an old-style archive.
10386 RANLIB=$lt_RANLIB
10387 old_archive_cmds=$lt_old_archive_cmds
10388 old_postinstall_cmds=$lt_old_postinstall_cmds
10389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10391 # Create an old-style archive from a shared archive.
10392 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10394 # Create a temporary old-style archive to link instead of a shared archive.
10395 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10397 # Commands used to build and install a shared archive.
10398 archive_cmds=$lt_archive_cmds
10399 archive_expsym_cmds=$lt_archive_expsym_cmds
10400 postinstall_cmds=$lt_postinstall_cmds
10401 postuninstall_cmds=$lt_postuninstall_cmds
10403 # Commands used to build a loadable module (assumed same as above if empty)
10404 module_cmds=$lt_module_cmds
10405 module_expsym_cmds=$lt_module_expsym_cmds
10407 # Commands to strip libraries.
10408 old_striplib=$lt_old_striplib
10409 striplib=$lt_striplib
10411 # Dependencies to place before the objects being linked to create a
10412 # shared library.
10413 predep_objects=$lt_predep_objects
10415 # Dependencies to place after the objects being linked to create a
10416 # shared library.
10417 postdep_objects=$lt_postdep_objects
10419 # Dependencies to place before the objects being linked to create a
10420 # shared library.
10421 predeps=$lt_predeps
10423 # Dependencies to place after the objects being linked to create a
10424 # shared library.
10425 postdeps=$lt_postdeps
10427 # The library search path used internally by the compiler when linking
10428 # a shared library.
10429 compiler_lib_search_path=$lt_compiler_lib_search_path
10431 # Method to check whether dependent libraries are shared objects.
10432 deplibs_check_method=$lt_deplibs_check_method
10434 # Command to use when deplibs_check_method == file_magic.
10435 file_magic_cmd=$lt_file_magic_cmd
10437 # Flag that allows shared libraries with undefined symbols to be built.
10438 allow_undefined_flag=$lt_allow_undefined_flag
10440 # Flag that forces no undefined symbols.
10441 no_undefined_flag=$lt_no_undefined_flag
10443 # Commands used to finish a libtool library installation in a directory.
10444 finish_cmds=$lt_finish_cmds
10446 # Same as above, but a single script fragment to be evaled but not shown.
10447 finish_eval=$lt_finish_eval
10449 # Take the output of nm and produce a listing of raw symbols and C names.
10450 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10452 # Transform the output of nm in a proper C declaration
10453 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10455 # Transform the output of nm in a C name address pair
10456 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10458 # This is the shared library runtime path variable.
10459 runpath_var=$runpath_var
10461 # This is the shared library path variable.
10462 shlibpath_var=$shlibpath_var
10464 # Is shlibpath searched before the hard-coded library search path?
10465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10467 # How to hardcode a shared library path into an executable.
10468 hardcode_action=$hardcode_action
10470 # Whether we should hardcode library paths into libraries.
10471 hardcode_into_libs=$hardcode_into_libs
10473 # Flag to hardcode \$libdir into a binary during linking.
10474 # This must work even if \$libdir does not exist.
10475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10477 # If ld is used when linking, flag to hardcode \$libdir into
10478 # a binary during linking. This must work even if \$libdir does
10479 # not exist.
10480 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10482 # Whether we need a single -rpath flag with a separated argument.
10483 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10485 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10486 # resulting binary.
10487 hardcode_direct=$hardcode_direct
10489 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10490 # resulting binary.
10491 hardcode_minus_L=$hardcode_minus_L
10493 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10494 # the resulting binary.
10495 hardcode_shlibpath_var=$hardcode_shlibpath_var
10497 # Set to yes if building a shared library automatically hardcodes DIR into the library
10498 # and all subsequent libraries and executables linked against it.
10499 hardcode_automatic=$hardcode_automatic
10501 # Variables whose values should be saved in libtool wrapper scripts and
10502 # restored at relink time.
10503 variables_saved_for_relink="$variables_saved_for_relink"
10505 # Whether libtool must link a program against all its dependency libraries.
10506 link_all_deplibs=$link_all_deplibs
10508 # Compile-time system search path for libraries
10509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10511 # Run-time system search path for libraries
10512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10514 # Fix the shell variable \$srcfile for the compiler.
10515 fix_srcfile_path=$lt_fix_srcfile_path
10517 # Set to yes if exported symbols are required.
10518 always_export_symbols=$always_export_symbols
10520 # The commands to list exported symbols.
10521 export_symbols_cmds=$lt_export_symbols_cmds
10523 # The commands to extract the exported symbol list from a shared archive.
10524 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10526 # Symbols that should not be listed in the preloaded symbols.
10527 exclude_expsyms=$lt_exclude_expsyms
10529 # Symbols that must always be exported.
10530 include_expsyms=$lt_include_expsyms
10532 # ### END LIBTOOL CONFIG
10534 __EOF__
10537 case $host_os in
10538 aix3*)
10539 cat <<\EOF >> "$cfgfile"
10541 # AIX sometimes has problems with the GCC collect2 program. For some
10542 # reason, if we set the COLLECT_NAMES environment variable, the problems
10543 # vanish in a puff of smoke.
10544 if test "X${COLLECT_NAMES+set}" != Xset; then
10545 COLLECT_NAMES=
10546 export COLLECT_NAMES
10550 esac
10552 # We use sed instead of cat because bash on DJGPP gets confused if
10553 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10554 # text mode, it properly converts lines to CR/LF. This bash problem
10555 # is reportedly fixed, but why not run on old versions too?
10556 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10558 mv -f "$cfgfile" "$ofile" || \
10559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10560 chmod +x "$ofile"
10562 else
10563 # If there is no Makefile yet, we rely on a make rule to execute
10564 # `config.status --recheck' to rerun these tests and create the
10565 # libtool script then.
10566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10567 if test -f "$ltmain_in"; then
10568 test -f Makefile && make "$ltmain"
10573 ac_ext=c
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 CC="$lt_save_CC"
10582 # Check whether --with-tags was given.
10583 if test "${with_tags+set}" = set; then
10584 withval=$with_tags; tagnames="$withval"
10588 if test -f "$ltmain" && test -n "$tagnames"; then
10589 if test ! -f "${ofile}"; then
10590 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10591 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10594 if test -z "$LTCC"; then
10595 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10596 if test -z "$LTCC"; then
10597 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10598 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10599 else
10600 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10601 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10604 if test -z "$LTCFLAGS"; then
10605 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10608 # Extract list of available tagged configurations in $ofile.
10609 # Note that this assumes the entire list is on one line.
10610 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10613 for tagname in $tagnames; do
10614 IFS="$lt_save_ifs"
10615 # Check whether tagname contains only valid characters
10616 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10617 "") ;;
10618 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10619 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10620 { (exit 1); exit 1; }; }
10622 esac
10624 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10625 then
10626 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10627 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10628 { (exit 1); exit 1; }; }
10631 # Update the list of available tags.
10632 if test -n "$tagname"; then
10633 echo appending configuration tag \"$tagname\" to $ofile
10635 case $tagname in
10636 CXX)
10637 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10638 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10639 (test "X$CXX" != "Xg++"))) ; then
10640 ac_ext=cpp
10641 ac_cpp='$CXXCPP $CPPFLAGS'
10642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10649 archive_cmds_need_lc_CXX=no
10650 allow_undefined_flag_CXX=
10651 always_export_symbols_CXX=no
10652 archive_expsym_cmds_CXX=
10653 export_dynamic_flag_spec_CXX=
10654 hardcode_direct_CXX=no
10655 hardcode_libdir_flag_spec_CXX=
10656 hardcode_libdir_flag_spec_ld_CXX=
10657 hardcode_libdir_separator_CXX=
10658 hardcode_minus_L_CXX=no
10659 hardcode_shlibpath_var_CXX=unsupported
10660 hardcode_automatic_CXX=no
10661 module_cmds_CXX=
10662 module_expsym_cmds_CXX=
10663 link_all_deplibs_CXX=unknown
10664 old_archive_cmds_CXX=$old_archive_cmds
10665 no_undefined_flag_CXX=
10666 whole_archive_flag_spec_CXX=
10667 enable_shared_with_static_runtimes_CXX=no
10669 # Dependencies to place before and after the object being linked:
10670 predep_objects_CXX=
10671 postdep_objects_CXX=
10672 predeps_CXX=
10673 postdeps_CXX=
10674 compiler_lib_search_path_CXX=
10676 # Source file extension for C++ test sources.
10677 ac_ext=cpp
10679 # Object file extension for compiled C++ test sources.
10680 objext=o
10681 objext_CXX=$objext
10683 # Code to be used in simple compile tests
10684 lt_simple_compile_test_code="int some_variable = 0;"
10686 # Code to be used in simple link tests
10687 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10691 # If no C compiler was specified, use CC.
10692 LTCC=${LTCC-"$CC"}
10694 # If no C compiler flags were specified, use CFLAGS.
10695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10697 # Allow CC to be a program name with arguments.
10698 compiler=$CC
10701 # save warnings/boilerplate of simple test code
10702 ac_outfile=conftest.$ac_objext
10703 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10705 _lt_compiler_boilerplate=`cat conftest.err`
10706 $rm conftest*
10708 ac_outfile=conftest.$ac_objext
10709 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10711 _lt_linker_boilerplate=`cat conftest.err`
10712 $rm conftest*
10715 # Allow CC to be a program name with arguments.
10716 lt_save_CC=$CC
10717 lt_save_LD=$LD
10718 lt_save_GCC=$GCC
10719 GCC=$GXX
10720 lt_save_with_gnu_ld=$with_gnu_ld
10721 lt_save_path_LD=$lt_cv_path_LD
10722 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10723 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10724 else
10725 $as_unset lt_cv_prog_gnu_ld
10727 if test -n "${lt_cv_path_LDCXX+set}"; then
10728 lt_cv_path_LD=$lt_cv_path_LDCXX
10729 else
10730 $as_unset lt_cv_path_LD
10732 test -z "${LDCXX+set}" || LD=$LDCXX
10733 CC=${CXX-"c++"}
10734 compiler=$CC
10735 compiler_CXX=$CC
10736 for cc_temp in $compiler""; do
10737 case $cc_temp in
10738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10740 \-*) ;;
10741 *) break;;
10742 esac
10743 done
10744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10747 # We don't want -fno-exception wen compiling C++ code, so set the
10748 # no_builtin_flag separately
10749 if test "$GXX" = yes; then
10750 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10751 else
10752 lt_prog_compiler_no_builtin_flag_CXX=
10755 if test "$GXX" = yes; then
10756 # Set up default GNU C++ configuration
10759 # Check whether --with-gnu-ld was given.
10760 if test "${with_gnu_ld+set}" = set; then
10761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10762 else
10763 with_gnu_ld=no
10766 ac_prog=ld
10767 if test "$GCC" = yes; then
10768 # Check if gcc -print-prog-name=ld gives a path.
10769 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10770 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10771 case $host in
10772 *-*-mingw*)
10773 # gcc leaves a trailing carriage return which upsets mingw
10774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10777 esac
10778 case $ac_prog in
10779 # Accept absolute paths.
10780 [\\/]* | ?:[\\/]*)
10781 re_direlt='/[^/][^/]*/\.\./'
10782 # Canonicalize the pathname of ld
10783 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10784 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10785 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10786 done
10787 test -z "$LD" && LD="$ac_prog"
10790 # If it fails, then pretend we aren't using GCC.
10791 ac_prog=ld
10794 # If it is relative, then search for the first ld in PATH.
10795 with_gnu_ld=unknown
10797 esac
10798 elif test "$with_gnu_ld" = yes; then
10799 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10800 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10801 else
10802 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10803 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10805 if test "${lt_cv_path_LD+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 if test -z "$LD"; then
10809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10810 for ac_dir in $PATH; do
10811 IFS="$lt_save_ifs"
10812 test -z "$ac_dir" && ac_dir=.
10813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10814 lt_cv_path_LD="$ac_dir/$ac_prog"
10815 # Check to see if the program is GNU ld. I'd rather use --version,
10816 # but apparently some variants of GNU ld only accept -v.
10817 # Break only if it was the GNU/non-GNU ld that we prefer.
10818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10819 *GNU* | *'with BFD'*)
10820 test "$with_gnu_ld" != no && break
10823 test "$with_gnu_ld" != yes && break
10825 esac
10827 done
10828 IFS="$lt_save_ifs"
10829 else
10830 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10834 LD="$lt_cv_path_LD"
10835 if test -n "$LD"; then
10836 { echo "$as_me:$LINENO: result: $LD" >&5
10837 echo "${ECHO_T}$LD" >&6; }
10838 else
10839 { echo "$as_me:$LINENO: result: no" >&5
10840 echo "${ECHO_T}no" >&6; }
10842 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10843 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10844 { (exit 1); exit 1; }; }
10845 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10846 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10847 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10851 case `$LD -v 2>&1 </dev/null` in
10852 *GNU* | *'with BFD'*)
10853 lt_cv_prog_gnu_ld=yes
10856 lt_cv_prog_gnu_ld=no
10858 esac
10860 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10861 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10862 with_gnu_ld=$lt_cv_prog_gnu_ld
10866 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10867 # archiving commands below assume that GNU ld is being used.
10868 if test "$with_gnu_ld" = yes; then
10869 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10870 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'
10872 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10875 # If archive_cmds runs LD, not CC, wlarc should be empty
10876 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10877 # investigate it a little bit more. (MM)
10878 wlarc='${wl}'
10880 # ancient GNU ld didn't support --whole-archive et. al.
10881 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10882 grep 'no-whole-archive' > /dev/null; then
10883 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10884 else
10885 whole_archive_flag_spec_CXX=
10887 else
10888 with_gnu_ld=no
10889 wlarc=
10891 # A generic and very simple default shared library creation
10892 # command for GNU C++ for the case where it uses the native
10893 # linker, instead of GNU ld. If possible, this setting should
10894 # overridden to take advantage of the native linker features on
10895 # the platform it is being used on.
10896 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10899 # Commands to make compiler produce verbose output that lists
10900 # what "hidden" libraries, object files and flags are used when
10901 # linking a shared library.
10902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10904 else
10905 GXX=no
10906 with_gnu_ld=no
10907 wlarc=
10910 # PORTME: fill in a description of your system's C++ link characteristics
10911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10913 ld_shlibs_CXX=yes
10914 case $host_os in
10915 aix3*)
10916 # FIXME: insert proper C++ library support
10917 ld_shlibs_CXX=no
10919 aix4* | aix5*)
10920 if test "$host_cpu" = ia64; then
10921 # On IA64, the linker does run time linking by default, so we don't
10922 # have to do anything special.
10923 aix_use_runtimelinking=no
10924 exp_sym_flag='-Bexport'
10925 no_entry_flag=""
10926 else
10927 aix_use_runtimelinking=no
10929 # Test if we are trying to use run time linking or normal
10930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10931 # need to do runtime linking.
10932 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10933 for ld_flag in $LDFLAGS; do
10934 case $ld_flag in
10935 *-brtl*)
10936 aix_use_runtimelinking=yes
10937 break
10939 esac
10940 done
10942 esac
10944 exp_sym_flag='-bexport'
10945 no_entry_flag='-bnoentry'
10948 # When large executables or shared objects are built, AIX ld can
10949 # have problems creating the table of contents. If linking a library
10950 # or program results in "error TOC overflow" add -mminimal-toc to
10951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10954 archive_cmds_CXX=''
10955 hardcode_direct_CXX=yes
10956 hardcode_libdir_separator_CXX=':'
10957 link_all_deplibs_CXX=yes
10959 if test "$GXX" = yes; then
10960 case $host_os in aix4.[012]|aix4.[012].*)
10961 # We only want to do this on AIX 4.2 and lower, the check
10962 # below for broken collect2 doesn't work under 4.3+
10963 collect2name=`${CC} -print-prog-name=collect2`
10964 if test -f "$collect2name" && \
10965 strings "$collect2name" | grep resolve_lib_name >/dev/null
10966 then
10967 # We have reworked collect2
10969 else
10970 # We have old collect2
10971 hardcode_direct_CXX=unsupported
10972 # It fails to find uninstalled libraries when the uninstalled
10973 # path is not listed in the libpath. Setting hardcode_minus_L
10974 # to unsupported forces relinking
10975 hardcode_minus_L_CXX=yes
10976 hardcode_libdir_flag_spec_CXX='-L$libdir'
10977 hardcode_libdir_separator_CXX=
10980 esac
10981 shared_flag='-shared'
10982 if test "$aix_use_runtimelinking" = yes; then
10983 shared_flag="$shared_flag "'${wl}-G'
10985 else
10986 # not using gcc
10987 if test "$host_cpu" = ia64; then
10988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10989 # chokes on -Wl,-G. The following line is correct:
10990 shared_flag='-G'
10991 else
10992 if test "$aix_use_runtimelinking" = yes; then
10993 shared_flag='${wl}-G'
10994 else
10995 shared_flag='${wl}-bM:SRE'
11000 # It seems that -bexpall does not export symbols beginning with
11001 # underscore (_), so it is better to generate a list of symbols to export.
11002 always_export_symbols_CXX=yes
11003 if test "$aix_use_runtimelinking" = yes; then
11004 # Warning - without using the other runtime loading flags (-brtl),
11005 # -berok will link without error, but may produce a broken library.
11006 allow_undefined_flag_CXX='-berok'
11007 # Determine the default libpath from the value encoded in an empty executable.
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11016 main ()
11020 return 0;
11022 _ACEOF
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_cxx_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest$ac_exeext &&
11040 $as_test_x conftest$ac_exeext; then
11042 lt_aix_libpath_sed='
11043 /Import File Strings/,/^$/ {
11044 /^0/ {
11045 s/^0 *\(.*\)$/\1/
11049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11050 # Check for a 64-bit object if we didn't find anything.
11051 if test -z "$aix_libpath"; then
11052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11054 else
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11062 conftest$ac_exeext conftest.$ac_ext
11063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11067 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"
11068 else
11069 if test "$host_cpu" = ia64; then
11070 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11071 allow_undefined_flag_CXX="-z nodefs"
11072 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"
11073 else
11074 # Determine the default libpath from the value encoded in an empty executable.
11075 cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h. */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11083 main ()
11087 return 0;
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_cxx_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest$ac_exeext &&
11107 $as_test_x conftest$ac_exeext; then
11109 lt_aix_libpath_sed='
11110 /Import File Strings/,/^$/ {
11111 /^0/ {
11112 s/^0 *\(.*\)$/\1/
11116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11117 # Check for a 64-bit object if we didn't find anything.
11118 if test -z "$aix_libpath"; then
11119 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11121 else
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11133 # Warning - without using the other run time loading flags,
11134 # -berok will link without error, but may produce a broken library.
11135 no_undefined_flag_CXX=' ${wl}-bernotok'
11136 allow_undefined_flag_CXX=' ${wl}-berok'
11137 # Exported symbols can be pulled into shared objects from archives
11138 whole_archive_flag_spec_CXX='$convenience'
11139 archive_cmds_need_lc_CXX=yes
11140 # This is similar to how AIX traditionally builds its shared libraries.
11141 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'
11146 beos*)
11147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11148 allow_undefined_flag_CXX=unsupported
11149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11150 # support --undefined. This deserves some investigation. FIXME
11151 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11152 else
11153 ld_shlibs_CXX=no
11157 chorus*)
11158 case $cc_basename in
11160 # FIXME: insert proper C++ library support
11161 ld_shlibs_CXX=no
11163 esac
11166 cygwin* | mingw* | pw32*)
11167 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11168 # as there is no search path for DLLs.
11169 hardcode_libdir_flag_spec_CXX='-L$libdir'
11170 allow_undefined_flag_CXX=unsupported
11171 always_export_symbols_CXX=no
11172 enable_shared_with_static_runtimes_CXX=yes
11174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11175 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'
11176 # If the export-symbols file already is a .def file (1st line
11177 # is EXPORTS), use it as is; otherwise, prepend...
11178 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11179 cp $export_symbols $output_objdir/$soname.def;
11180 else
11181 echo EXPORTS > $output_objdir/$soname.def;
11182 cat $export_symbols >> $output_objdir/$soname.def;
11184 $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'
11185 else
11186 ld_shlibs_CXX=no
11189 darwin* | rhapsody*)
11190 case $host_os in
11191 rhapsody* | darwin1.[012])
11192 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11194 *) # Darwin 1.3 on
11195 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11196 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11197 else
11198 case ${MACOSX_DEPLOYMENT_TARGET} in
11199 10.[012])
11200 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202 10.*)
11203 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11205 esac
11208 esac
11209 archive_cmds_need_lc_CXX=no
11210 hardcode_direct_CXX=no
11211 hardcode_automatic_CXX=yes
11212 hardcode_shlibpath_var_CXX=unsupported
11213 whole_archive_flag_spec_CXX=''
11214 link_all_deplibs_CXX=yes
11216 if test "$GXX" = yes ; then
11217 lt_int_apple_cc_single_mod=no
11218 output_verbose_link_cmd='echo'
11219 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11220 lt_int_apple_cc_single_mod=yes
11222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11223 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11224 else
11225 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'
11227 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11230 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11231 else
11232 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234 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}'
11235 else
11236 case $cc_basename in
11237 xlc*)
11238 output_verbose_link_cmd='echo'
11239 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'
11240 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11242 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}'
11243 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}'
11246 ld_shlibs_CXX=no
11248 esac
11252 dgux*)
11253 case $cc_basename in
11254 ec++*)
11255 # FIXME: insert proper C++ library support
11256 ld_shlibs_CXX=no
11258 ghcx*)
11259 # Green Hills C++ Compiler
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11264 # FIXME: insert proper C++ library support
11265 ld_shlibs_CXX=no
11267 esac
11269 freebsd[12]*)
11270 # C++ shared libraries reported to be fairly broken before switch to ELF
11271 ld_shlibs_CXX=no
11273 freebsd-elf*)
11274 archive_cmds_need_lc_CXX=no
11276 freebsd* | dragonfly*)
11277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11278 # conventions
11279 ld_shlibs_CXX=yes
11281 gnu*)
11283 hpux9*)
11284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11285 hardcode_libdir_separator_CXX=:
11286 export_dynamic_flag_spec_CXX='${wl}-E'
11287 hardcode_direct_CXX=yes
11288 hardcode_minus_L_CXX=yes # Not in the search PATH,
11289 # but as the default
11290 # location of the library.
11292 case $cc_basename in
11293 CC*)
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11297 aCC*)
11298 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'
11299 # Commands to make compiler produce verbose output that lists
11300 # what "hidden" libraries, object files and flags are used when
11301 # linking a shared library.
11303 # There doesn't appear to be a way to prevent this compiler from
11304 # explicitly linking system object files so we need to strip them
11305 # from the output so that they don't get included in the library
11306 # dependencies.
11307 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'
11310 if test "$GXX" = yes; then
11311 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'
11312 else
11313 # FIXME: insert proper C++ library support
11314 ld_shlibs_CXX=no
11317 esac
11319 hpux10*|hpux11*)
11320 if test $with_gnu_ld = no; then
11321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11322 hardcode_libdir_separator_CXX=:
11324 case $host_cpu in
11325 hppa*64*|ia64*) ;;
11327 export_dynamic_flag_spec_CXX='${wl}-E'
11329 esac
11331 case $host_cpu in
11332 hppa*64*|ia64*)
11333 hardcode_direct_CXX=no
11334 hardcode_shlibpath_var_CXX=no
11337 hardcode_direct_CXX=yes
11338 hardcode_minus_L_CXX=yes # Not in the search PATH,
11339 # but as the default
11340 # location of the library.
11342 esac
11344 case $cc_basename in
11345 CC*)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11349 aCC*)
11350 case $host_cpu in
11351 hppa*64*)
11352 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354 ia64*)
11355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11360 esac
11361 # Commands to make compiler produce verbose output that lists
11362 # what "hidden" libraries, object files and flags are used when
11363 # linking a shared library.
11365 # There doesn't appear to be a way to prevent this compiler from
11366 # explicitly linking system object files so we need to strip them
11367 # from the output so that they don't get included in the library
11368 # dependencies.
11369 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'
11372 if test "$GXX" = yes; then
11373 if test $with_gnu_ld = no; then
11374 case $host_cpu in
11375 hppa*64*)
11376 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11378 ia64*)
11379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11382 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'
11384 esac
11386 else
11387 # FIXME: insert proper C++ library support
11388 ld_shlibs_CXX=no
11391 esac
11393 interix[3-9]*)
11394 hardcode_direct_CXX=no
11395 hardcode_shlibpath_var_CXX=no
11396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11397 export_dynamic_flag_spec_CXX='${wl}-E'
11398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11399 # Instead, shared libraries are loaded at an image base (0x10000000 by
11400 # default) and relocated if they conflict, which is a slow very memory
11401 # consuming and fragmenting process. To avoid this, we pick a random,
11402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11404 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'
11405 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'
11407 irix5* | irix6*)
11408 case $cc_basename in
11409 CC*)
11410 # SGI C++
11411 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'
11413 # Archives containing C++ object files must be created using
11414 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11415 # necessary to make sure instantiated templates are included
11416 # in the archive.
11417 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11420 if test "$GXX" = yes; then
11421 if test "$with_gnu_ld" = no; then
11422 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'
11423 else
11424 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'
11427 link_all_deplibs_CXX=yes
11429 esac
11430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11431 hardcode_libdir_separator_CXX=:
11433 linux* | k*bsd*-gnu)
11434 case $cc_basename in
11435 KCC*)
11436 # Kuck and Associates, Inc. (KAI) C++ Compiler
11438 # KCC will only create a shared library if the output file
11439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11440 # to its proper name (with version) after linking.
11441 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'
11442 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'
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11447 # There doesn't appear to be a way to prevent this compiler from
11448 # explicitly linking system object files so we need to strip them
11449 # from the output so that they don't get included in the library
11450 # dependencies.
11451 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'
11453 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11454 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456 # Archives containing C++ object files must be created using
11457 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11458 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11460 icpc*)
11461 # Intel C++
11462 with_gnu_ld=yes
11463 # version 8.0 and above of icpc choke on multiply defined symbols
11464 # if we add $predep_objects and $postdep_objects, however 7.1 and
11465 # earlier do not add the objects themselves.
11466 case `$CC -V 2>&1` in
11467 *"Version 7."*)
11468 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11469 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'
11471 *) # Version 8.0 or newer
11472 tmp_idyn=
11473 case $host_cpu in
11474 ia64*) tmp_idyn=' -i_dynamic';;
11475 esac
11476 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11477 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'
11479 esac
11480 archive_cmds_need_lc_CXX=no
11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11483 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11485 pgCC*)
11486 # Portland Group C++ compiler
11487 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11488 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'
11490 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11492 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'
11494 cxx*)
11495 # Compaq C++
11496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11497 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'
11499 runpath_var=LD_RUN_PATH
11500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11501 hardcode_libdir_separator_CXX=:
11503 # Commands to make compiler produce verbose output that lists
11504 # what "hidden" libraries, object files and flags are used when
11505 # linking a shared library.
11507 # There doesn't appear to be a way to prevent this compiler from
11508 # explicitly linking system object files so we need to strip them
11509 # from the output so that they don't get included in the library
11510 # dependencies.
11511 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'
11514 case `$CC -V 2>&1 | sed 5q` in
11515 *Sun\ C*)
11516 # Sun C++ 5.9
11517 no_undefined_flag_CXX=' -zdefs'
11518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 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'
11520 hardcode_libdir_flag_spec_CXX='-R$libdir'
11521 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'
11523 # Not sure whether something based on
11524 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11525 # would be better.
11526 output_verbose_link_cmd='echo'
11528 # Archives containing C++ object files must be created using
11529 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11530 # necessary to make sure instantiated templates are included
11531 # in the archive.
11532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11534 esac
11536 esac
11538 lynxos*)
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11542 m88k*)
11543 # FIXME: insert proper C++ library support
11544 ld_shlibs_CXX=no
11546 mvs*)
11547 case $cc_basename in
11548 cxx*)
11549 # FIXME: insert proper C++ library support
11550 ld_shlibs_CXX=no
11553 # FIXME: insert proper C++ library support
11554 ld_shlibs_CXX=no
11556 esac
11558 netbsd*)
11559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11561 wlarc=
11562 hardcode_libdir_flag_spec_CXX='-R$libdir'
11563 hardcode_direct_CXX=yes
11564 hardcode_shlibpath_var_CXX=no
11566 # Workaround some broken pre-1.5 toolchains
11567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11569 openbsd2*)
11570 # C++ shared libraries are fairly broken
11571 ld_shlibs_CXX=no
11573 openbsd*)
11574 if test -f /usr/libexec/ld.so; then
11575 hardcode_direct_CXX=yes
11576 hardcode_shlibpath_var_CXX=no
11577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11581 export_dynamic_flag_spec_CXX='${wl}-E'
11582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11584 output_verbose_link_cmd='echo'
11585 else
11586 ld_shlibs_CXX=no
11589 osf3*)
11590 case $cc_basename in
11591 KCC*)
11592 # Kuck and Associates, Inc. (KAI) C++ Compiler
11594 # KCC will only create a shared library if the output file
11595 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11596 # to its proper name (with version) after linking.
11597 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'
11599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11600 hardcode_libdir_separator_CXX=:
11602 # Archives containing C++ object files must be created using
11603 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11607 RCC*)
11608 # Rational C++ 2.4.1
11609 # FIXME: insert proper C++ library support
11610 ld_shlibs_CXX=no
11612 cxx*)
11613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11614 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'
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11617 hardcode_libdir_separator_CXX=:
11619 # Commands to make compiler produce verbose output that lists
11620 # what "hidden" libraries, object files and flags are used when
11621 # linking a shared library.
11623 # There doesn't appear to be a way to prevent this compiler from
11624 # explicitly linking system object files so we need to strip them
11625 # from the output so that they don't get included in the library
11626 # dependencies.
11627 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'
11630 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11631 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11632 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'
11634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11635 hardcode_libdir_separator_CXX=:
11637 # Commands to make compiler produce verbose output that lists
11638 # what "hidden" libraries, object files and flags are used when
11639 # linking a shared library.
11640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11642 else
11643 # FIXME: insert proper C++ library support
11644 ld_shlibs_CXX=no
11647 esac
11649 osf4* | osf5*)
11650 case $cc_basename in
11651 KCC*)
11652 # Kuck and Associates, Inc. (KAI) C++ Compiler
11654 # KCC will only create a shared library if the output file
11655 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11656 # to its proper name (with version) after linking.
11657 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'
11659 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11660 hardcode_libdir_separator_CXX=:
11662 # Archives containing C++ object files must be created using
11663 # the KAI C++ compiler.
11664 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11666 RCC*)
11667 # Rational C++ 2.4.1
11668 # FIXME: insert proper C++ library support
11669 ld_shlibs_CXX=no
11671 cxx*)
11672 allow_undefined_flag_CXX=' -expect_unresolved \*'
11673 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'
11674 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11675 echo "-hidden">> $lib.exp~
11676 $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~
11677 $rm $lib.exp'
11679 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11680 hardcode_libdir_separator_CXX=:
11682 # Commands to make compiler produce verbose output that lists
11683 # what "hidden" libraries, object files and flags are used when
11684 # linking a shared library.
11686 # There doesn't appear to be a way to prevent this compiler from
11687 # explicitly linking system object files so we need to strip them
11688 # from the output so that they don't get included in the library
11689 # dependencies.
11690 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'
11693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11695 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'
11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11698 hardcode_libdir_separator_CXX=:
11700 # Commands to make compiler produce verbose output that lists
11701 # what "hidden" libraries, object files and flags are used when
11702 # linking a shared library.
11703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11705 else
11706 # FIXME: insert proper C++ library support
11707 ld_shlibs_CXX=no
11710 esac
11712 psos*)
11713 # FIXME: insert proper C++ library support
11714 ld_shlibs_CXX=no
11716 sunos4*)
11717 case $cc_basename in
11718 CC*)
11719 # Sun C++ 4.x
11720 # FIXME: insert proper C++ library support
11721 ld_shlibs_CXX=no
11723 lcc*)
11724 # Lucid
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11729 # FIXME: insert proper C++ library support
11730 ld_shlibs_CXX=no
11732 esac
11734 solaris*)
11735 case $cc_basename in
11736 CC*)
11737 # Sun C++ 4.2, 5.x and Centerline C++
11738 archive_cmds_need_lc_CXX=yes
11739 no_undefined_flag_CXX=' -zdefs'
11740 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11741 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11742 $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'
11744 hardcode_libdir_flag_spec_CXX='-R$libdir'
11745 hardcode_shlibpath_var_CXX=no
11746 case $host_os in
11747 solaris2.[0-5] | solaris2.[0-5].*) ;;
11749 # The compiler driver will combine and reorder linker options,
11750 # but understands `-z linker_flag'.
11751 # Supported since Solaris 2.6 (maybe 2.5.1?)
11752 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11754 esac
11755 link_all_deplibs_CXX=yes
11757 output_verbose_link_cmd='echo'
11759 # Archives containing C++ object files must be created using
11760 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11761 # necessary to make sure instantiated templates are included
11762 # in the archive.
11763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11765 gcx*)
11766 # Green Hills C++ Compiler
11767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11769 # The C++ compiler must be used to create the archive.
11770 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11773 # GNU C++ compiler with Solaris linker
11774 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11775 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11776 if $CC --version | grep -v '^2\.7' > /dev/null; then
11777 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11778 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11779 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11781 # Commands to make compiler produce verbose output that lists
11782 # what "hidden" libraries, object files and flags are used when
11783 # linking a shared library.
11784 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11785 else
11786 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11787 # platform.
11788 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11789 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11790 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11792 # Commands to make compiler produce verbose output that lists
11793 # what "hidden" libraries, object files and flags are used when
11794 # linking a shared library.
11795 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11798 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11799 case $host_os in
11800 solaris2.[0-5] | solaris2.[0-5].*) ;;
11802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11804 esac
11807 esac
11809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11810 no_undefined_flag_CXX='${wl}-z,text'
11811 archive_cmds_need_lc_CXX=no
11812 hardcode_shlibpath_var_CXX=no
11813 runpath_var='LD_RUN_PATH'
11815 case $cc_basename in
11816 CC*)
11817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11821 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11822 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 esac
11826 sysv5* | sco3.2v5* | sco5v6*)
11827 # Note: We can NOT use -z defs as we might desire, because we do not
11828 # link with -lc, and that would cause any symbols used from libc to
11829 # always be unresolved, which means just about no library would
11830 # ever link correctly. If we're not using GNU ld we use -z text
11831 # though, which does catch some bad symbols but isn't as heavy-handed
11832 # as -z defs.
11833 # For security reasons, it is highly recommended that you always
11834 # use absolute paths for naming shared libraries, and exclude the
11835 # DT_RUNPATH tag from executables and libraries. But doing so
11836 # requires that you compile everything twice, which is a pain.
11837 # So that behaviour is only enabled if SCOABSPATH is set to a
11838 # non-empty value in the environment. Most likely only useful for
11839 # creating official distributions of packages.
11840 # This is a hack until libtool officially supports absolute path
11841 # names for shared libraries.
11842 no_undefined_flag_CXX='${wl}-z,text'
11843 allow_undefined_flag_CXX='${wl}-z,nodefs'
11844 archive_cmds_need_lc_CXX=no
11845 hardcode_shlibpath_var_CXX=no
11846 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11847 hardcode_libdir_separator_CXX=':'
11848 link_all_deplibs_CXX=yes
11849 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11850 runpath_var='LD_RUN_PATH'
11852 case $cc_basename in
11853 CC*)
11854 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11855 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11861 esac
11863 tandem*)
11864 case $cc_basename in
11865 NCC*)
11866 # NonStop-UX NCC 3.20
11867 # FIXME: insert proper C++ library support
11868 ld_shlibs_CXX=no
11871 # FIXME: insert proper C++ library support
11872 ld_shlibs_CXX=no
11874 esac
11876 vxworks*)
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11881 # FIXME: insert proper C++ library support
11882 ld_shlibs_CXX=no
11884 esac
11885 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11886 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11887 test "$ld_shlibs_CXX" = no && can_build_shared=no
11889 GCC_CXX="$GXX"
11890 LD_CXX="$LD"
11893 cat > conftest.$ac_ext <<EOF
11894 class Foo
11896 public:
11897 Foo (void) { a = 0; }
11898 private:
11899 int a;
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; then
11908 # Parse the compiler output and extract the necessary
11909 # objects, libraries and library flags.
11911 # Sentinel used to keep track of whether or not we are before
11912 # the conftest object file.
11913 pre_test_object_deps_done=no
11915 # The `*' in the case matches for architectures that use `case' in
11916 # $output_verbose_cmd can trigger glob expansion during the loop
11917 # eval without this substitution.
11918 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11920 for p in `eval $output_verbose_link_cmd`; do
11921 case $p in
11923 -L* | -R* | -l*)
11924 # Some compilers place space between "-{L,R}" and the path.
11925 # Remove the space.
11926 if test $p = "-L" \
11927 || test $p = "-R"; then
11928 prev=$p
11929 continue
11930 else
11931 prev=
11934 if test "$pre_test_object_deps_done" = no; then
11935 case $p in
11936 -L* | -R*)
11937 # Internal compiler library paths should come after those
11938 # provided the user. The postdeps already come after the
11939 # user supplied libs so there is no need to process them.
11940 if test -z "$compiler_lib_search_path_CXX"; then
11941 compiler_lib_search_path_CXX="${prev}${p}"
11942 else
11943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11946 # The "-l" case would never come before the object being
11947 # linked, so don't bother handling this case.
11948 esac
11949 else
11950 if test -z "$postdeps_CXX"; then
11951 postdeps_CXX="${prev}${p}"
11952 else
11953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11958 *.$objext)
11959 # This assumes that the test object file only shows up
11960 # once in the compiler output.
11961 if test "$p" = "conftest.$objext"; then
11962 pre_test_object_deps_done=yes
11963 continue
11966 if test "$pre_test_object_deps_done" = no; then
11967 if test -z "$predep_objects_CXX"; then
11968 predep_objects_CXX="$p"
11969 else
11970 predep_objects_CXX="$predep_objects_CXX $p"
11972 else
11973 if test -z "$postdep_objects_CXX"; then
11974 postdep_objects_CXX="$p"
11975 else
11976 postdep_objects_CXX="$postdep_objects_CXX $p"
11981 *) ;; # Ignore the rest.
11983 esac
11984 done
11986 # Clean up.
11987 rm -f a.out a.exe
11988 else
11989 echo "libtool.m4: error: problem compiling CXX test program"
11992 $rm -f confest.$objext
11994 # PORTME: override above test on systems where it is broken
11995 case $host_os in
11996 interix[3-9]*)
11997 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11998 # hack all around it, let's just trust "g++" to DTRT.
11999 predep_objects_CXX=
12000 postdep_objects_CXX=
12001 postdeps_CXX=
12004 linux*)
12005 case `$CC -V 2>&1 | sed 5q` in
12006 *Sun\ C*)
12007 # Sun C++ 5.9
12009 # The more standards-conforming stlport4 library is
12010 # incompatible with the Cstd library. Avoid specifying
12011 # it if it's in CXXFLAGS. Ignore libCrun as
12012 # -library=stlport4 depends on it.
12013 case " $CXX $CXXFLAGS " in
12014 *" -library=stlport4 "*)
12015 solaris_use_stlport4=yes
12017 esac
12018 if test "$solaris_use_stlport4" != yes; then
12019 postdeps_CXX='-library=Cstd -library=Crun'
12022 esac
12025 solaris*)
12026 case $cc_basename in
12027 CC*)
12028 # The more standards-conforming stlport4 library is
12029 # incompatible with the Cstd library. Avoid specifying
12030 # it if it's in CXXFLAGS. Ignore libCrun as
12031 # -library=stlport4 depends on it.
12032 case " $CXX $CXXFLAGS " in
12033 *" -library=stlport4 "*)
12034 solaris_use_stlport4=yes
12036 esac
12038 # Adding this requires a known-good setup of shared libraries for
12039 # Sun compiler versions before 5.6, else PIC objects from an old
12040 # archive will be linked into the output, leading to subtle bugs.
12041 if test "$solaris_use_stlport4" != yes; then
12042 postdeps_CXX='-library=Cstd -library=Crun'
12045 esac
12047 esac
12050 case " $postdeps_CXX " in
12051 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12052 esac
12054 lt_prog_compiler_wl_CXX=
12055 lt_prog_compiler_pic_CXX=
12056 lt_prog_compiler_static_CXX=
12058 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12059 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12061 # C++ specific cases for pic, static, wl, etc.
12062 if test "$GXX" = yes; then
12063 lt_prog_compiler_wl_CXX='-Wl,'
12064 lt_prog_compiler_static_CXX='-static'
12066 case $host_os in
12067 aix*)
12068 # All AIX code is PIC.
12069 if test "$host_cpu" = ia64; then
12070 # AIX 5 now supports IA64 processor
12071 lt_prog_compiler_static_CXX='-Bstatic'
12074 amigaos*)
12075 # FIXME: we need at least 68020 code to build shared libraries, but
12076 # adding the `-m68020' flag to GCC prevents building anything better,
12077 # like `-m68040'.
12078 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12080 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12081 # PIC is the default for these OSes.
12083 mingw* | cygwin* | os2* | pw32*)
12084 # This hack is so that the source file can tell whether it is being
12085 # built for inclusion in a dll (and should export symbols for example).
12086 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12087 # (--disable-auto-import) libraries
12088 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12090 darwin* | rhapsody*)
12091 # PIC is the default on this platform
12092 # Common symbols not allowed in MH_DYLIB files
12093 lt_prog_compiler_pic_CXX='-fno-common'
12095 *djgpp*)
12096 # DJGPP does not support shared libraries at all
12097 lt_prog_compiler_pic_CXX=
12099 interix[3-9]*)
12100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12101 # Instead, we relocate shared libraries at runtime.
12103 sysv4*MP*)
12104 if test -d /usr/nec; then
12105 lt_prog_compiler_pic_CXX=-Kconform_pic
12108 hpux*)
12109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12110 # not for PA HP-UX.
12111 case $host_cpu in
12112 hppa*64*|ia64*)
12115 lt_prog_compiler_pic_CXX='-fPIC'
12117 esac
12120 lt_prog_compiler_pic_CXX='-fPIC'
12122 esac
12123 else
12124 case $host_os in
12125 aix4* | aix5*)
12126 # All AIX code is PIC.
12127 if test "$host_cpu" = ia64; then
12128 # AIX 5 now supports IA64 processor
12129 lt_prog_compiler_static_CXX='-Bstatic'
12130 else
12131 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12134 chorus*)
12135 case $cc_basename in
12136 cxch68*)
12137 # Green Hills C++ Compiler
12138 # _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"
12140 esac
12142 darwin*)
12143 # PIC is the default on this platform
12144 # Common symbols not allowed in MH_DYLIB files
12145 case $cc_basename in
12146 xlc*)
12147 lt_prog_compiler_pic_CXX='-qnocommon'
12148 lt_prog_compiler_wl_CXX='-Wl,'
12150 esac
12152 dgux*)
12153 case $cc_basename in
12154 ec++*)
12155 lt_prog_compiler_pic_CXX='-KPIC'
12157 ghcx*)
12158 # Green Hills C++ Compiler
12159 lt_prog_compiler_pic_CXX='-pic'
12163 esac
12165 freebsd* | dragonfly*)
12166 # FreeBSD uses GNU C++
12168 hpux9* | hpux10* | hpux11*)
12169 case $cc_basename in
12170 CC*)
12171 lt_prog_compiler_wl_CXX='-Wl,'
12172 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12173 if test "$host_cpu" != ia64; then
12174 lt_prog_compiler_pic_CXX='+Z'
12177 aCC*)
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12180 case $host_cpu in
12181 hppa*64*|ia64*)
12182 # +Z the default
12185 lt_prog_compiler_pic_CXX='+Z'
12187 esac
12191 esac
12193 interix*)
12194 # This is c89, which is MS Visual C++ (no shared libs)
12195 # Anyone wants to do a port?
12197 irix5* | irix6* | nonstopux*)
12198 case $cc_basename in
12199 CC*)
12200 lt_prog_compiler_wl_CXX='-Wl,'
12201 lt_prog_compiler_static_CXX='-non_shared'
12202 # CC pic flag -KPIC is the default.
12206 esac
12208 linux* | k*bsd*-gnu)
12209 case $cc_basename in
12210 KCC*)
12211 # KAI C++ Compiler
12212 lt_prog_compiler_wl_CXX='--backend -Wl,'
12213 lt_prog_compiler_pic_CXX='-fPIC'
12215 icpc* | ecpc*)
12216 # Intel C++
12217 lt_prog_compiler_wl_CXX='-Wl,'
12218 lt_prog_compiler_pic_CXX='-KPIC'
12219 lt_prog_compiler_static_CXX='-static'
12221 pgCC*)
12222 # Portland Group C++ compiler.
12223 lt_prog_compiler_wl_CXX='-Wl,'
12224 lt_prog_compiler_pic_CXX='-fpic'
12225 lt_prog_compiler_static_CXX='-Bstatic'
12227 cxx*)
12228 # Compaq C++
12229 # Make sure the PIC flag is empty. It appears that all Alpha
12230 # Linux and Compaq Tru64 Unix objects are PIC.
12231 lt_prog_compiler_pic_CXX=
12232 lt_prog_compiler_static_CXX='-non_shared'
12235 case `$CC -V 2>&1 | sed 5q` in
12236 *Sun\ C*)
12237 # Sun C++ 5.9
12238 lt_prog_compiler_pic_CXX='-KPIC'
12239 lt_prog_compiler_static_CXX='-Bstatic'
12240 lt_prog_compiler_wl_CXX='-Qoption ld '
12242 esac
12244 esac
12246 lynxos*)
12248 m88k*)
12250 mvs*)
12251 case $cc_basename in
12252 cxx*)
12253 lt_prog_compiler_pic_CXX='-W c,exportall'
12257 esac
12259 netbsd*)
12261 osf3* | osf4* | osf5*)
12262 case $cc_basename in
12263 KCC*)
12264 lt_prog_compiler_wl_CXX='--backend -Wl,'
12266 RCC*)
12267 # Rational C++ 2.4.1
12268 lt_prog_compiler_pic_CXX='-pic'
12270 cxx*)
12271 # Digital/Compaq C++
12272 lt_prog_compiler_wl_CXX='-Wl,'
12273 # Make sure the PIC flag is empty. It appears that all Alpha
12274 # Linux and Compaq Tru64 Unix objects are PIC.
12275 lt_prog_compiler_pic_CXX=
12276 lt_prog_compiler_static_CXX='-non_shared'
12280 esac
12282 psos*)
12284 solaris*)
12285 case $cc_basename in
12286 CC*)
12287 # Sun C++ 4.2, 5.x and Centerline C++
12288 lt_prog_compiler_pic_CXX='-KPIC'
12289 lt_prog_compiler_static_CXX='-Bstatic'
12290 lt_prog_compiler_wl_CXX='-Qoption ld '
12292 gcx*)
12293 # Green Hills C++ Compiler
12294 lt_prog_compiler_pic_CXX='-PIC'
12298 esac
12300 sunos4*)
12301 case $cc_basename in
12302 CC*)
12303 # Sun C++ 4.x
12304 lt_prog_compiler_pic_CXX='-pic'
12305 lt_prog_compiler_static_CXX='-Bstatic'
12307 lcc*)
12308 # Lucid
12309 lt_prog_compiler_pic_CXX='-pic'
12313 esac
12315 tandem*)
12316 case $cc_basename in
12317 NCC*)
12318 # NonStop-UX NCC 3.20
12319 lt_prog_compiler_pic_CXX='-KPIC'
12323 esac
12325 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12326 case $cc_basename in
12327 CC*)
12328 lt_prog_compiler_wl_CXX='-Wl,'
12329 lt_prog_compiler_pic_CXX='-KPIC'
12330 lt_prog_compiler_static_CXX='-Bstatic'
12332 esac
12334 vxworks*)
12337 lt_prog_compiler_can_build_shared_CXX=no
12339 esac
12342 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12343 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12346 # Check to make sure the PIC flag actually works.
12348 if test -n "$lt_prog_compiler_pic_CXX"; then
12350 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12351 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12352 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 lt_prog_compiler_pic_works_CXX=no
12356 ac_outfile=conftest.$ac_objext
12357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12358 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12359 # Insert the option either (1) after the last *FLAGS variable, or
12360 # (2) before a word containing "conftest.", or (3) at the end.
12361 # Note that $ac_compile itself does not contain backslashes and begins
12362 # with a dollar sign (not a hyphen), so the echo should work correctly.
12363 # The option is referenced via a variable to avoid confusing sed.
12364 lt_compile=`echo "$ac_compile" | $SED \
12365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12367 -e 's:$: $lt_compiler_flag:'`
12368 (eval echo "\"\$as_me:12368: $lt_compile\"" >&5)
12369 (eval "$lt_compile" 2>conftest.err)
12370 ac_status=$?
12371 cat conftest.err >&5
12372 echo "$as_me:12372: \$? = $ac_status" >&5
12373 if (exit $ac_status) && test -s "$ac_outfile"; then
12374 # The compiler can only warn and ignore the option if not recognized
12375 # So say no if there are warnings other than the usual output.
12376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12379 lt_prog_compiler_pic_works_CXX=yes
12382 $rm conftest*
12385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12386 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12388 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12389 case $lt_prog_compiler_pic_CXX in
12390 "" | " "*) ;;
12391 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12392 esac
12393 else
12394 lt_prog_compiler_pic_CXX=
12395 lt_prog_compiler_can_build_shared_CXX=no
12399 case $host_os in
12400 # For platforms which do not support PIC, -DPIC is meaningless:
12401 *djgpp*)
12402 lt_prog_compiler_pic_CXX=
12405 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12407 esac
12410 # Check to make sure the static flag actually works.
12412 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12413 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12414 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12415 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 lt_prog_compiler_static_works_CXX=no
12419 save_LDFLAGS="$LDFLAGS"
12420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12421 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12423 # The linker can only warn and ignore the option if not recognized
12424 # So say no if there are warnings
12425 if test -s conftest.err; then
12426 # Append any errors to the config.log.
12427 cat conftest.err 1>&5
12428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12430 if diff conftest.exp conftest.er2 >/dev/null; then
12431 lt_prog_compiler_static_works_CXX=yes
12433 else
12434 lt_prog_compiler_static_works_CXX=yes
12437 $rm conftest*
12438 LDFLAGS="$save_LDFLAGS"
12441 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12442 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12444 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12446 else
12447 lt_prog_compiler_static_CXX=
12451 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12452 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12453 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456 lt_cv_prog_compiler_c_o_CXX=no
12457 $rm -r conftest 2>/dev/null
12458 mkdir conftest
12459 cd conftest
12460 mkdir out
12461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12463 lt_compiler_flag="-o out/conftest2.$ac_objext"
12464 # Insert the option either (1) after the last *FLAGS variable, or
12465 # (2) before a word containing "conftest.", or (3) at the end.
12466 # Note that $ac_compile itself does not contain backslashes and begins
12467 # with a dollar sign (not a hyphen), so the echo should work correctly.
12468 lt_compile=`echo "$ac_compile" | $SED \
12469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12471 -e 's:$: $lt_compiler_flag:'`
12472 (eval echo "\"\$as_me:12472: $lt_compile\"" >&5)
12473 (eval "$lt_compile" 2>out/conftest.err)
12474 ac_status=$?
12475 cat out/conftest.err >&5
12476 echo "$as_me:12476: \$? = $ac_status" >&5
12477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12478 then
12479 # The compiler can only warn and ignore the option if not recognized
12480 # So say no if there are warnings
12481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12484 lt_cv_prog_compiler_c_o_CXX=yes
12487 chmod u+w . 2>&5
12488 $rm conftest*
12489 # SGI C++ compiler will create directory out/ii_files/ for
12490 # template instantiation
12491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12492 $rm out/* && rmdir out
12493 cd ..
12494 rmdir conftest
12495 $rm conftest*
12498 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12499 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12502 hard_links="nottested"
12503 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12504 # do not overwrite the value of need_locks provided by the user
12505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12506 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12507 hard_links=yes
12508 $rm conftest*
12509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12510 touch conftest.a
12511 ln conftest.a conftest.b 2>&5 || hard_links=no
12512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12513 { echo "$as_me:$LINENO: result: $hard_links" >&5
12514 echo "${ECHO_T}$hard_links" >&6; }
12515 if test "$hard_links" = no; then
12516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12517 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12518 need_locks=warn
12520 else
12521 need_locks=no
12524 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12525 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12528 case $host_os in
12529 aix4* | aix5*)
12530 # If we're using GNU nm, then we don't want the "-C" option.
12531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12532 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12533 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'
12534 else
12535 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'
12538 pw32*)
12539 export_symbols_cmds_CXX="$ltdll_cmds"
12541 cygwin* | mingw*)
12542 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'
12545 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12547 esac
12549 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12550 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12551 test "$ld_shlibs_CXX" = no && can_build_shared=no
12554 # Do we need to explicitly link libc?
12556 case "x$archive_cmds_need_lc_CXX" in
12557 x|xyes)
12558 # Assume -lc should be added
12559 archive_cmds_need_lc_CXX=yes
12561 if test "$enable_shared" = yes && test "$GCC" = yes; then
12562 case $archive_cmds_CXX in
12563 *'~'*)
12564 # FIXME: we may have to deal with multi-command sequences.
12566 '$CC '*)
12567 # Test whether the compiler implicitly links with -lc since on some
12568 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12569 # to ld, don't add -lc before -lgcc.
12570 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12571 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12572 $rm conftest*
12573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } 2>conftest.err; then
12580 soname=conftest
12581 lib=conftest
12582 libobjs=conftest.$ac_objext
12583 deplibs=
12584 wl=$lt_prog_compiler_wl_CXX
12585 pic_flag=$lt_prog_compiler_pic_CXX
12586 compiler_flags=-v
12587 linker_flags=-v
12588 verstring=
12589 output_objdir=.
12590 libname=conftest
12591 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12592 allow_undefined_flag_CXX=
12593 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12594 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
12598 then
12599 archive_cmds_need_lc_CXX=no
12600 else
12601 archive_cmds_need_lc_CXX=yes
12603 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12604 else
12605 cat conftest.err 1>&5
12607 $rm conftest*
12608 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12609 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12611 esac
12614 esac
12616 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12617 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12618 library_names_spec=
12619 libname_spec='lib$name'
12620 soname_spec=
12621 shrext_cmds=".so"
12622 postinstall_cmds=
12623 postuninstall_cmds=
12624 finish_cmds=
12625 finish_eval=
12626 shlibpath_var=
12627 shlibpath_overrides_runpath=unknown
12628 version_type=none
12629 dynamic_linker="$host_os ld.so"
12630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12632 need_lib_prefix=unknown
12633 hardcode_into_libs=no
12635 # when you set need_version to no, make sure it does not cause -set_version
12636 # flags to be left without arguments
12637 need_version=unknown
12639 case $host_os in
12640 aix3*)
12641 version_type=linux
12642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12643 shlibpath_var=LIBPATH
12645 # AIX 3 has no versioning support, so we append a major version to the name.
12646 soname_spec='${libname}${release}${shared_ext}$major'
12649 aix4* | aix5*)
12650 version_type=linux
12651 need_lib_prefix=no
12652 need_version=no
12653 hardcode_into_libs=yes
12654 if test "$host_cpu" = ia64; then
12655 # AIX 5 supports IA64
12656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 else
12659 # With GCC up to 2.95.x, collect2 would create an import file
12660 # for dependence libraries. The import file would start with
12661 # the line `#! .'. This would cause the generated library to
12662 # depend on `.', always an invalid library. This was fixed in
12663 # development snapshots of GCC prior to 3.0.
12664 case $host_os in
12665 aix4 | aix4.[01] | aix4.[01].*)
12666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12667 echo ' yes '
12668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12670 else
12671 can_build_shared=no
12674 esac
12675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12676 # soname into executable. Probably we can add versioning support to
12677 # collect2, so additional links can be useful in future.
12678 if test "$aix_use_runtimelinking" = yes; then
12679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12680 # instead of lib<name>.a to let people know that these are not
12681 # typical AIX shared libraries.
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 else
12684 # We preserve .a as extension for shared libraries through AIX4.2
12685 # and later when we are not doing run time linking.
12686 library_names_spec='${libname}${release}.a $libname.a'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12689 shlibpath_var=LIBPATH
12693 amigaos*)
12694 library_names_spec='$libname.ixlibrary $libname.a'
12695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12696 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'
12699 beos*)
12700 library_names_spec='${libname}${shared_ext}'
12701 dynamic_linker="$host_os ld.so"
12702 shlibpath_var=LIBRARY_PATH
12705 bsdi[45]*)
12706 version_type=linux
12707 need_version=no
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12709 soname_spec='${libname}${release}${shared_ext}$major'
12710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12711 shlibpath_var=LD_LIBRARY_PATH
12712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12714 # the default ld.so.conf also contains /usr/contrib/lib and
12715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12716 # libtool to hard-code these into programs
12719 cygwin* | mingw* | pw32*)
12720 version_type=windows
12721 shrext_cmds=".dll"
12722 need_version=no
12723 need_lib_prefix=no
12725 case $GCC,$host_os in
12726 yes,cygwin* | yes,mingw* | yes,pw32*)
12727 library_names_spec='$libname.dll.a'
12728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12729 postinstall_cmds='base_file=`basename \${file}`~
12730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12731 dldir=$destdir/`dirname \$dlpath`~
12732 test -d \$dldir || mkdir -p \$dldir~
12733 $install_prog $dir/$dlname \$dldir/$dlname~
12734 chmod a+x \$dldir/$dlname'
12735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12736 dlpath=$dir/\$dldll~
12737 $rm \$dlpath'
12738 shlibpath_overrides_runpath=yes
12740 case $host_os in
12741 cygwin*)
12742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12746 mingw*)
12747 # MinGW DLLs use traditional 'lib' prefix
12748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12751 # It is most probably a Windows format PATH printed by
12752 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12753 # path with ; separators, and with drive letters. We can handle the
12754 # drive letters (cygwin fileutils understands them), so leave them,
12755 # especially as we might pass files found there to a mingw objdump,
12756 # which wouldn't understand a cygwinified path. Ahh.
12757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12758 else
12759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12762 pw32*)
12763 # pw32 DLLs use 'pw' prefix rather than 'lib'
12764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12766 esac
12770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12772 esac
12773 dynamic_linker='Win32 ld.exe'
12774 # FIXME: first we should search . and the directory the executable is in
12775 shlibpath_var=PATH
12778 darwin* | rhapsody*)
12779 dynamic_linker="$host_os dyld"
12780 version_type=darwin
12781 need_lib_prefix=no
12782 need_version=no
12783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12784 soname_spec='${libname}${release}${major}$shared_ext'
12785 shlibpath_overrides_runpath=yes
12786 shlibpath_var=DYLD_LIBRARY_PATH
12787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12792 dgux*)
12793 version_type=linux
12794 need_lib_prefix=no
12795 need_version=no
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12801 freebsd1*)
12802 dynamic_linker=no
12805 freebsd* | dragonfly*)
12806 # DragonFly does not have aout. When/if they implement a new
12807 # versioning mechanism, adjust this.
12808 if test -x /usr/bin/objformat; then
12809 objformat=`/usr/bin/objformat`
12810 else
12811 case $host_os in
12812 freebsd[123]*) objformat=aout ;;
12813 *) objformat=elf ;;
12814 esac
12816 # Handle Gentoo/FreeBSD as it was Linux
12817 case $host_vendor in
12818 gentoo)
12819 version_type=linux ;;
12821 version_type=freebsd-$objformat ;;
12822 esac
12824 case $version_type in
12825 freebsd-elf*)
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12827 need_version=no
12828 need_lib_prefix=no
12830 freebsd-*)
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12832 need_version=yes
12834 linux)
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 need_lib_prefix=no
12838 need_version=no
12840 esac
12841 shlibpath_var=LD_LIBRARY_PATH
12842 case $host_os in
12843 freebsd2*)
12844 shlibpath_overrides_runpath=yes
12846 freebsd3.[01]* | freebsdelf3.[01]*)
12847 shlibpath_overrides_runpath=yes
12848 hardcode_into_libs=yes
12850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12852 shlibpath_overrides_runpath=no
12853 hardcode_into_libs=yes
12855 *) # from 4.6 on, and DragonFly
12856 shlibpath_overrides_runpath=yes
12857 hardcode_into_libs=yes
12859 esac
12862 gnu*)
12863 version_type=linux
12864 need_lib_prefix=no
12865 need_version=no
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 hardcode_into_libs=yes
12872 hpux9* | hpux10* | hpux11*)
12873 # Give a soname corresponding to the major version so that dld.sl refuses to
12874 # link against other versions.
12875 version_type=sunos
12876 need_lib_prefix=no
12877 need_version=no
12878 case $host_cpu in
12879 ia64*)
12880 shrext_cmds='.so'
12881 hardcode_into_libs=yes
12882 dynamic_linker="$host_os dld.so"
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 if test "X$HPUX_IA64_MODE" = X32; then
12888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12889 else
12890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894 hppa*64*)
12895 shrext_cmds='.sl'
12896 hardcode_into_libs=yes
12897 dynamic_linker="$host_os dld.sl"
12898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12906 shrext_cmds='.sl'
12907 dynamic_linker="$host_os dld.sl"
12908 shlibpath_var=SHLIB_PATH
12909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12913 esac
12914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12915 postinstall_cmds='chmod 555 $lib'
12918 interix[3-9]*)
12919 version_type=linux
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12923 soname_spec='${libname}${release}${shared_ext}$major'
12924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=no
12927 hardcode_into_libs=yes
12930 irix5* | irix6* | nonstopux*)
12931 case $host_os in
12932 nonstopux*) version_type=nonstopux ;;
12934 if test "$lt_cv_prog_gnu_ld" = yes; then
12935 version_type=linux
12936 else
12937 version_type=irix
12938 fi ;;
12939 esac
12940 need_lib_prefix=no
12941 need_version=no
12942 soname_spec='${libname}${release}${shared_ext}$major'
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12944 case $host_os in
12945 irix5* | nonstopux*)
12946 libsuff= shlibsuff=
12949 case $LD in # libtool.m4 will add one of these switches to LD
12950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12951 libsuff= shlibsuff= libmagic=32-bit;;
12952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12953 libsuff=32 shlibsuff=N32 libmagic=N32;;
12954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12956 *) libsuff= shlibsuff= libmagic=never-match;;
12957 esac
12959 esac
12960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12961 shlibpath_overrides_runpath=no
12962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12964 hardcode_into_libs=yes
12967 # No shared lib support for Linux oldld, aout, or coff.
12968 linux*oldld* | linux*aout* | linux*coff*)
12969 dynamic_linker=no
12972 # This must be Linux ELF.
12973 linux* | k*bsd*-gnu)
12974 version_type=linux
12975 need_lib_prefix=no
12976 need_version=no
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12980 shlibpath_var=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath=no
12982 # This implies no fast_install, which is unacceptable.
12983 # Some rework will be needed to allow for fast_install
12984 # before this can be enabled.
12985 hardcode_into_libs=yes
12987 # Append ld.so.conf contents to the search path
12988 if test -f /etc/ld.so.conf; then
12989 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' ' '`
12990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12993 # We used to test for /lib/ld.so.1 and disable shared libraries on
12994 # powerpc, because MkLinux only supported shared libraries with the
12995 # GNU dynamic linker. Since this was broken with cross compilers,
12996 # most powerpc-linux boxes support dynamic linking these days and
12997 # people can always --disable-shared, the test was removed, and we
12998 # assume the GNU/Linux dynamic linker is in use.
12999 dynamic_linker='GNU/Linux ld.so'
13002 netbsd*)
13003 version_type=sunos
13004 need_lib_prefix=no
13005 need_version=no
13006 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13009 dynamic_linker='NetBSD (a.out) ld.so'
13010 else
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13012 soname_spec='${libname}${release}${shared_ext}$major'
13013 dynamic_linker='NetBSD ld.elf_so'
13015 shlibpath_var=LD_LIBRARY_PATH
13016 shlibpath_overrides_runpath=yes
13017 hardcode_into_libs=yes
13020 newsos6)
13021 version_type=linux
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 shlibpath_overrides_runpath=yes
13027 nto-qnx*)
13028 version_type=linux
13029 need_lib_prefix=no
13030 need_version=no
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13037 openbsd*)
13038 version_type=sunos
13039 sys_lib_dlsearch_path_spec="/usr/lib"
13040 need_lib_prefix=no
13041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13042 case $host_os in
13043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13044 *) need_version=no ;;
13045 esac
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13050 case $host_os in
13051 openbsd2.[89] | openbsd2.[89].*)
13052 shlibpath_overrides_runpath=no
13055 shlibpath_overrides_runpath=yes
13057 esac
13058 else
13059 shlibpath_overrides_runpath=yes
13063 os2*)
13064 libname_spec='$name'
13065 shrext_cmds=".dll"
13066 need_lib_prefix=no
13067 library_names_spec='$libname${shared_ext} $libname.a'
13068 dynamic_linker='OS/2 ld.exe'
13069 shlibpath_var=LIBPATH
13072 osf3* | osf4* | osf5*)
13073 version_type=osf
13074 need_lib_prefix=no
13075 need_version=no
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 shlibpath_var=LD_LIBRARY_PATH
13079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13083 rdos*)
13084 dynamic_linker=no
13087 solaris*)
13088 version_type=linux
13089 need_lib_prefix=no
13090 need_version=no
13091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092 soname_spec='${libname}${release}${shared_ext}$major'
13093 shlibpath_var=LD_LIBRARY_PATH
13094 shlibpath_overrides_runpath=yes
13095 hardcode_into_libs=yes
13096 # ldd complains unless libraries are executable
13097 postinstall_cmds='chmod +x $lib'
13100 sunos4*)
13101 version_type=sunos
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=yes
13106 if test "$with_gnu_ld" = yes; then
13107 need_lib_prefix=no
13109 need_version=yes
13112 sysv4 | sysv4.3*)
13113 version_type=linux
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13115 soname_spec='${libname}${release}${shared_ext}$major'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 case $host_vendor in
13118 sni)
13119 shlibpath_overrides_runpath=no
13120 need_lib_prefix=no
13121 export_dynamic_flag_spec='${wl}-Blargedynsym'
13122 runpath_var=LD_RUN_PATH
13124 siemens)
13125 need_lib_prefix=no
13127 motorola)
13128 need_lib_prefix=no
13129 need_version=no
13130 shlibpath_overrides_runpath=no
13131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13133 esac
13136 sysv4*MP*)
13137 if test -d /usr/nec ;then
13138 version_type=linux
13139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13140 soname_spec='$libname${shared_ext}.$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13146 version_type=freebsd-elf
13147 need_lib_prefix=no
13148 need_version=no
13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13150 soname_spec='${libname}${release}${shared_ext}$major'
13151 shlibpath_var=LD_LIBRARY_PATH
13152 hardcode_into_libs=yes
13153 if test "$with_gnu_ld" = yes; then
13154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13155 shlibpath_overrides_runpath=no
13156 else
13157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13158 shlibpath_overrides_runpath=yes
13159 case $host_os in
13160 sco3.2v5*)
13161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13163 esac
13165 sys_lib_dlsearch_path_spec='/usr/lib'
13168 uts4*)
13169 version_type=linux
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
13172 shlibpath_var=LD_LIBRARY_PATH
13176 dynamic_linker=no
13178 esac
13179 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13180 echo "${ECHO_T}$dynamic_linker" >&6; }
13181 test "$dynamic_linker" = no && can_build_shared=no
13183 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13184 if test "$GCC" = yes; then
13185 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13188 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13189 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13190 hardcode_action_CXX=
13191 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13192 test -n "$runpath_var_CXX" || \
13193 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13195 # We can hardcode non-existant directories.
13196 if test "$hardcode_direct_CXX" != no &&
13197 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13198 # have to relink, otherwise we might link with an installed library
13199 # when we should be linking with a yet-to-be-installed one
13200 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13201 test "$hardcode_minus_L_CXX" != no; then
13202 # Linking always hardcodes the temporary library directory.
13203 hardcode_action_CXX=relink
13204 else
13205 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13206 hardcode_action_CXX=immediate
13208 else
13209 # We cannot hardcode anything, or else we can only hardcode existing
13210 # directories.
13211 hardcode_action_CXX=unsupported
13213 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13214 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13216 if test "$hardcode_action_CXX" = relink; then
13217 # Fast installation is not supported
13218 enable_fast_install=no
13219 elif test "$shlibpath_overrides_runpath" = yes ||
13220 test "$enable_shared" = no; then
13221 # Fast installation is not necessary
13222 enable_fast_install=needless
13226 # The else clause should only fire when bootstrapping the
13227 # libtool distribution, otherwise you forgot to ship ltmain.sh
13228 # with your package, and you will get complaints that there are
13229 # no rules to generate ltmain.sh.
13230 if test -f "$ltmain"; then
13231 # See if we are running on zsh, and set the options which allow our commands through
13232 # without removal of \ escapes.
13233 if test -n "${ZSH_VERSION+set}" ; then
13234 setopt NO_GLOB_SUBST
13236 # Now quote all the things that may contain metacharacters while being
13237 # careful not to overquote the AC_SUBSTed values. We take copies of the
13238 # variables and quote the copies for generation of the libtool script.
13239 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13240 SED SHELL STRIP \
13241 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13242 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13243 deplibs_check_method reload_flag reload_cmds need_locks \
13244 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13245 lt_cv_sys_global_symbol_to_c_name_address \
13246 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13247 old_postinstall_cmds old_postuninstall_cmds \
13248 compiler_CXX \
13249 CC_CXX \
13250 LD_CXX \
13251 lt_prog_compiler_wl_CXX \
13252 lt_prog_compiler_pic_CXX \
13253 lt_prog_compiler_static_CXX \
13254 lt_prog_compiler_no_builtin_flag_CXX \
13255 export_dynamic_flag_spec_CXX \
13256 thread_safe_flag_spec_CXX \
13257 whole_archive_flag_spec_CXX \
13258 enable_shared_with_static_runtimes_CXX \
13259 old_archive_cmds_CXX \
13260 old_archive_from_new_cmds_CXX \
13261 predep_objects_CXX \
13262 postdep_objects_CXX \
13263 predeps_CXX \
13264 postdeps_CXX \
13265 compiler_lib_search_path_CXX \
13266 archive_cmds_CXX \
13267 archive_expsym_cmds_CXX \
13268 postinstall_cmds_CXX \
13269 postuninstall_cmds_CXX \
13270 old_archive_from_expsyms_cmds_CXX \
13271 allow_undefined_flag_CXX \
13272 no_undefined_flag_CXX \
13273 export_symbols_cmds_CXX \
13274 hardcode_libdir_flag_spec_CXX \
13275 hardcode_libdir_flag_spec_ld_CXX \
13276 hardcode_libdir_separator_CXX \
13277 hardcode_automatic_CXX \
13278 module_cmds_CXX \
13279 module_expsym_cmds_CXX \
13280 lt_cv_prog_compiler_c_o_CXX \
13281 fix_srcfile_path_CXX \
13282 exclude_expsyms_CXX \
13283 include_expsyms_CXX; do
13285 case $var in
13286 old_archive_cmds_CXX | \
13287 old_archive_from_new_cmds_CXX | \
13288 archive_cmds_CXX | \
13289 archive_expsym_cmds_CXX | \
13290 module_cmds_CXX | \
13291 module_expsym_cmds_CXX | \
13292 old_archive_from_expsyms_cmds_CXX | \
13293 export_symbols_cmds_CXX | \
13294 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13295 postinstall_cmds | postuninstall_cmds | \
13296 old_postinstall_cmds | old_postuninstall_cmds | \
13297 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13298 # Double-quote double-evaled strings.
13299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13304 esac
13305 done
13307 case $lt_echo in
13308 *'\$0 --fallback-echo"')
13309 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13311 esac
13313 cfgfile="$ofile"
13315 cat <<__EOF__ >> "$cfgfile"
13316 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13318 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13320 # Shell to use when invoking shell scripts.
13321 SHELL=$lt_SHELL
13323 # Whether or not to build shared libraries.
13324 build_libtool_libs=$enable_shared
13326 # Whether or not to build static libraries.
13327 build_old_libs=$enable_static
13329 # Whether or not to add -lc for building shared libraries.
13330 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13332 # Whether or not to disallow shared libs when runtime libs are static
13333 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13335 # Whether or not to optimize for fast installation.
13336 fast_install=$enable_fast_install
13338 # The host system.
13339 host_alias=$host_alias
13340 host=$host
13341 host_os=$host_os
13343 # The build system.
13344 build_alias=$build_alias
13345 build=$build
13346 build_os=$build_os
13348 # An echo program that does not interpret backslashes.
13349 echo=$lt_echo
13351 # The archiver.
13352 AR=$lt_AR
13353 AR_FLAGS=$lt_AR_FLAGS
13355 # A C compiler.
13356 LTCC=$lt_LTCC
13358 # LTCC compiler flags.
13359 LTCFLAGS=$lt_LTCFLAGS
13361 # A language-specific compiler.
13362 CC=$lt_compiler_CXX
13364 # Is the compiler the GNU C compiler?
13365 with_gcc=$GCC_CXX
13367 # An ERE matcher.
13368 EGREP=$lt_EGREP
13370 # The linker used to build libraries.
13371 LD=$lt_LD_CXX
13373 # Whether we need hard or soft links.
13374 LN_S=$lt_LN_S
13376 # A BSD-compatible nm program.
13377 NM=$lt_NM
13379 # A symbol stripping program
13380 STRIP=$lt_STRIP
13382 # Used to examine libraries when file_magic_cmd begins "file"
13383 MAGIC_CMD=$MAGIC_CMD
13385 # Used on cygwin: DLL creation program.
13386 DLLTOOL="$DLLTOOL"
13388 # Used on cygwin: object dumper.
13389 OBJDUMP="$OBJDUMP"
13391 # Used on cygwin: assembler.
13392 AS="$AS"
13394 # The name of the directory that contains temporary libtool files.
13395 objdir=$objdir
13397 # How to create reloadable object files.
13398 reload_flag=$lt_reload_flag
13399 reload_cmds=$lt_reload_cmds
13401 # How to pass a linker flag through the compiler.
13402 wl=$lt_lt_prog_compiler_wl_CXX
13404 # Object file suffix (normally "o").
13405 objext="$ac_objext"
13407 # Old archive suffix (normally "a").
13408 libext="$libext"
13410 # Shared library suffix (normally ".so").
13411 shrext_cmds='$shrext_cmds'
13413 # Executable file suffix (normally "").
13414 exeext="$exeext"
13416 # Additional compiler flags for building library objects.
13417 pic_flag=$lt_lt_prog_compiler_pic_CXX
13418 pic_mode=$pic_mode
13420 # What is the maximum length of a command?
13421 max_cmd_len=$lt_cv_sys_max_cmd_len
13423 # Does compiler simultaneously support -c and -o options?
13424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13426 # Must we lock files when doing compilation?
13427 need_locks=$lt_need_locks
13429 # Do we need the lib prefix for modules?
13430 need_lib_prefix=$need_lib_prefix
13432 # Do we need a version for libraries?
13433 need_version=$need_version
13435 # Whether dlopen is supported.
13436 dlopen_support=$enable_dlopen
13438 # Whether dlopen of programs is supported.
13439 dlopen_self=$enable_dlopen_self
13441 # Whether dlopen of statically linked programs is supported.
13442 dlopen_self_static=$enable_dlopen_self_static
13444 # Compiler flag to prevent dynamic linking.
13445 link_static_flag=$lt_lt_prog_compiler_static_CXX
13447 # Compiler flag to turn off builtin functions.
13448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13450 # Compiler flag to allow reflexive dlopens.
13451 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13453 # Compiler flag to generate shared objects directly from archives.
13454 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13456 # Compiler flag to generate thread-safe objects.
13457 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13459 # Library versioning type.
13460 version_type=$version_type
13462 # Format of library name prefix.
13463 libname_spec=$lt_libname_spec
13465 # List of archive names. First name is the real one, the rest are links.
13466 # The last name is the one that the linker finds with -lNAME.
13467 library_names_spec=$lt_library_names_spec
13469 # The coded name of the library, if different from the real name.
13470 soname_spec=$lt_soname_spec
13472 # Commands used to build and install an old-style archive.
13473 RANLIB=$lt_RANLIB
13474 old_archive_cmds=$lt_old_archive_cmds_CXX
13475 old_postinstall_cmds=$lt_old_postinstall_cmds
13476 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13478 # Create an old-style archive from a shared archive.
13479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13481 # Create a temporary old-style archive to link instead of a shared archive.
13482 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13484 # Commands used to build and install a shared archive.
13485 archive_cmds=$lt_archive_cmds_CXX
13486 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13487 postinstall_cmds=$lt_postinstall_cmds
13488 postuninstall_cmds=$lt_postuninstall_cmds
13490 # Commands used to build a loadable module (assumed same as above if empty)
13491 module_cmds=$lt_module_cmds_CXX
13492 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13494 # Commands to strip libraries.
13495 old_striplib=$lt_old_striplib
13496 striplib=$lt_striplib
13498 # Dependencies to place before the objects being linked to create a
13499 # shared library.
13500 predep_objects=$lt_predep_objects_CXX
13502 # Dependencies to place after the objects being linked to create a
13503 # shared library.
13504 postdep_objects=$lt_postdep_objects_CXX
13506 # Dependencies to place before the objects being linked to create a
13507 # shared library.
13508 predeps=$lt_predeps_CXX
13510 # Dependencies to place after the objects being linked to create a
13511 # shared library.
13512 postdeps=$lt_postdeps_CXX
13514 # The library search path used internally by the compiler when linking
13515 # a shared library.
13516 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13518 # Method to check whether dependent libraries are shared objects.
13519 deplibs_check_method=$lt_deplibs_check_method
13521 # Command to use when deplibs_check_method == file_magic.
13522 file_magic_cmd=$lt_file_magic_cmd
13524 # Flag that allows shared libraries with undefined symbols to be built.
13525 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13527 # Flag that forces no undefined symbols.
13528 no_undefined_flag=$lt_no_undefined_flag_CXX
13530 # Commands used to finish a libtool library installation in a directory.
13531 finish_cmds=$lt_finish_cmds
13533 # Same as above, but a single script fragment to be evaled but not shown.
13534 finish_eval=$lt_finish_eval
13536 # Take the output of nm and produce a listing of raw symbols and C names.
13537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13539 # Transform the output of nm in a proper C declaration
13540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13542 # Transform the output of nm in a C name address pair
13543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13545 # This is the shared library runtime path variable.
13546 runpath_var=$runpath_var
13548 # This is the shared library path variable.
13549 shlibpath_var=$shlibpath_var
13551 # Is shlibpath searched before the hard-coded library search path?
13552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13554 # How to hardcode a shared library path into an executable.
13555 hardcode_action=$hardcode_action_CXX
13557 # Whether we should hardcode library paths into libraries.
13558 hardcode_into_libs=$hardcode_into_libs
13560 # Flag to hardcode \$libdir into a binary during linking.
13561 # This must work even if \$libdir does not exist.
13562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13564 # If ld is used when linking, flag to hardcode \$libdir into
13565 # a binary during linking. This must work even if \$libdir does
13566 # not exist.
13567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13569 # Whether we need a single -rpath flag with a separated argument.
13570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13572 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13573 # resulting binary.
13574 hardcode_direct=$hardcode_direct_CXX
13576 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13577 # resulting binary.
13578 hardcode_minus_L=$hardcode_minus_L_CXX
13580 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13581 # the resulting binary.
13582 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13584 # Set to yes if building a shared library automatically hardcodes DIR into the library
13585 # and all subsequent libraries and executables linked against it.
13586 hardcode_automatic=$hardcode_automatic_CXX
13588 # Variables whose values should be saved in libtool wrapper scripts and
13589 # restored at relink time.
13590 variables_saved_for_relink="$variables_saved_for_relink"
13592 # Whether libtool must link a program against all its dependency libraries.
13593 link_all_deplibs=$link_all_deplibs_CXX
13595 # Compile-time system search path for libraries
13596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13598 # Run-time system search path for libraries
13599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13601 # Fix the shell variable \$srcfile for the compiler.
13602 fix_srcfile_path=$lt_fix_srcfile_path
13604 # Set to yes if exported symbols are required.
13605 always_export_symbols=$always_export_symbols_CXX
13607 # The commands to list exported symbols.
13608 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13610 # The commands to extract the exported symbol list from a shared archive.
13611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13613 # Symbols that should not be listed in the preloaded symbols.
13614 exclude_expsyms=$lt_exclude_expsyms_CXX
13616 # Symbols that must always be exported.
13617 include_expsyms=$lt_include_expsyms_CXX
13619 # ### END LIBTOOL TAG CONFIG: $tagname
13621 __EOF__
13624 else
13625 # If there is no Makefile yet, we rely on a make rule to execute
13626 # `config.status --recheck' to rerun these tests and create the
13627 # libtool script then.
13628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13629 if test -f "$ltmain_in"; then
13630 test -f Makefile && make "$ltmain"
13635 ac_ext=c
13636 ac_cpp='$CPP $CPPFLAGS'
13637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13641 CC=$lt_save_CC
13642 LDCXX=$LD
13643 LD=$lt_save_LD
13644 GCC=$lt_save_GCC
13645 with_gnu_ldcxx=$with_gnu_ld
13646 with_gnu_ld=$lt_save_with_gnu_ld
13647 lt_cv_path_LDCXX=$lt_cv_path_LD
13648 lt_cv_path_LD=$lt_save_path_LD
13649 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13650 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13652 else
13653 tagname=""
13657 F77)
13658 if test -n "$F77" && test "X$F77" != "Xno"; then
13660 ac_ext=f
13661 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13662 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13663 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13666 archive_cmds_need_lc_F77=no
13667 allow_undefined_flag_F77=
13668 always_export_symbols_F77=no
13669 archive_expsym_cmds_F77=
13670 export_dynamic_flag_spec_F77=
13671 hardcode_direct_F77=no
13672 hardcode_libdir_flag_spec_F77=
13673 hardcode_libdir_flag_spec_ld_F77=
13674 hardcode_libdir_separator_F77=
13675 hardcode_minus_L_F77=no
13676 hardcode_automatic_F77=no
13677 module_cmds_F77=
13678 module_expsym_cmds_F77=
13679 link_all_deplibs_F77=unknown
13680 old_archive_cmds_F77=$old_archive_cmds
13681 no_undefined_flag_F77=
13682 whole_archive_flag_spec_F77=
13683 enable_shared_with_static_runtimes_F77=no
13685 # Source file extension for f77 test sources.
13686 ac_ext=f
13688 # Object file extension for compiled f77 test sources.
13689 objext=o
13690 objext_F77=$objext
13692 # Code to be used in simple compile tests
13693 lt_simple_compile_test_code="\
13694 subroutine t
13695 return
13699 # Code to be used in simple link tests
13700 lt_simple_link_test_code="\
13701 program t
13705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13707 # If no C compiler was specified, use CC.
13708 LTCC=${LTCC-"$CC"}
13710 # If no C compiler flags were specified, use CFLAGS.
13711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13713 # Allow CC to be a program name with arguments.
13714 compiler=$CC
13717 # save warnings/boilerplate of simple test code
13718 ac_outfile=conftest.$ac_objext
13719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13721 _lt_compiler_boilerplate=`cat conftest.err`
13722 $rm conftest*
13724 ac_outfile=conftest.$ac_objext
13725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13727 _lt_linker_boilerplate=`cat conftest.err`
13728 $rm conftest*
13731 # Allow CC to be a program name with arguments.
13732 lt_save_CC="$CC"
13733 CC=${F77-"f77"}
13734 compiler=$CC
13735 compiler_F77=$CC
13736 for cc_temp in $compiler""; do
13737 case $cc_temp in
13738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13740 \-*) ;;
13741 *) break;;
13742 esac
13743 done
13744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13747 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13748 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13749 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13750 echo "${ECHO_T}$can_build_shared" >&6; }
13752 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13753 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13754 test "$can_build_shared" = "no" && enable_shared=no
13756 # On AIX, shared libraries and static libraries use the same namespace, and
13757 # are all built from PIC.
13758 case $host_os in
13759 aix3*)
13760 test "$enable_shared" = yes && enable_static=no
13761 if test -n "$RANLIB"; then
13762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13763 postinstall_cmds='$RANLIB $lib'
13766 aix4* | aix5*)
13767 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13768 test "$enable_shared" = yes && enable_static=no
13771 esac
13772 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13773 echo "${ECHO_T}$enable_shared" >&6; }
13775 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13776 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13777 # Make sure either enable_shared or enable_static is yes.
13778 test "$enable_shared" = yes || enable_static=yes
13779 { echo "$as_me:$LINENO: result: $enable_static" >&5
13780 echo "${ECHO_T}$enable_static" >&6; }
13782 GCC_F77="$G77"
13783 LD_F77="$LD"
13785 lt_prog_compiler_wl_F77=
13786 lt_prog_compiler_pic_F77=
13787 lt_prog_compiler_static_F77=
13789 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13792 if test "$GCC" = yes; then
13793 lt_prog_compiler_wl_F77='-Wl,'
13794 lt_prog_compiler_static_F77='-static'
13796 case $host_os in
13797 aix*)
13798 # All AIX code is PIC.
13799 if test "$host_cpu" = ia64; then
13800 # AIX 5 now supports IA64 processor
13801 lt_prog_compiler_static_F77='-Bstatic'
13805 amigaos*)
13806 # FIXME: we need at least 68020 code to build shared libraries, but
13807 # adding the `-m68020' flag to GCC prevents building anything better,
13808 # like `-m68040'.
13809 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13813 # PIC is the default for these OSes.
13816 mingw* | cygwin* | pw32* | os2*)
13817 # This hack is so that the source file can tell whether it is being
13818 # built for inclusion in a dll (and should export symbols for example).
13819 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13820 # (--disable-auto-import) libraries
13821 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13824 darwin* | rhapsody*)
13825 # PIC is the default on this platform
13826 # Common symbols not allowed in MH_DYLIB files
13827 lt_prog_compiler_pic_F77='-fno-common'
13830 interix[3-9]*)
13831 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13832 # Instead, we relocate shared libraries at runtime.
13835 msdosdjgpp*)
13836 # Just because we use GCC doesn't mean we suddenly get shared libraries
13837 # on systems that don't support them.
13838 lt_prog_compiler_can_build_shared_F77=no
13839 enable_shared=no
13842 sysv4*MP*)
13843 if test -d /usr/nec; then
13844 lt_prog_compiler_pic_F77=-Kconform_pic
13848 hpux*)
13849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13850 # not for PA HP-UX.
13851 case $host_cpu in
13852 hppa*64*|ia64*)
13853 # +Z the default
13856 lt_prog_compiler_pic_F77='-fPIC'
13858 esac
13862 lt_prog_compiler_pic_F77='-fPIC'
13864 esac
13865 else
13866 # PORTME Check for flag to pass linker flags through the system compiler.
13867 case $host_os in
13868 aix*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 if test "$host_cpu" = ia64; then
13871 # AIX 5 now supports IA64 processor
13872 lt_prog_compiler_static_F77='-Bstatic'
13873 else
13874 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13877 darwin*)
13878 # PIC is the default on this platform
13879 # Common symbols not allowed in MH_DYLIB files
13880 case $cc_basename in
13881 xlc*)
13882 lt_prog_compiler_pic_F77='-qnocommon'
13883 lt_prog_compiler_wl_F77='-Wl,'
13885 esac
13888 mingw* | cygwin* | pw32* | os2*)
13889 # This hack is so that the source file can tell whether it is being
13890 # built for inclusion in a dll (and should export symbols for example).
13891 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13894 hpux9* | hpux10* | hpux11*)
13895 lt_prog_compiler_wl_F77='-Wl,'
13896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13897 # not for PA HP-UX.
13898 case $host_cpu in
13899 hppa*64*|ia64*)
13900 # +Z the default
13903 lt_prog_compiler_pic_F77='+Z'
13905 esac
13906 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13907 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13910 irix5* | irix6* | nonstopux*)
13911 lt_prog_compiler_wl_F77='-Wl,'
13912 # PIC (with -KPIC) is the default.
13913 lt_prog_compiler_static_F77='-non_shared'
13916 newsos6)
13917 lt_prog_compiler_pic_F77='-KPIC'
13918 lt_prog_compiler_static_F77='-Bstatic'
13921 linux* | k*bsd*-gnu)
13922 case $cc_basename in
13923 icc* | ecc*)
13924 lt_prog_compiler_wl_F77='-Wl,'
13925 lt_prog_compiler_pic_F77='-KPIC'
13926 lt_prog_compiler_static_F77='-static'
13928 pgcc* | pgf77* | pgf90* | pgf95*)
13929 # Portland Group compilers (*not* the Pentium gcc compiler,
13930 # which looks to be a dead project)
13931 lt_prog_compiler_wl_F77='-Wl,'
13932 lt_prog_compiler_pic_F77='-fpic'
13933 lt_prog_compiler_static_F77='-Bstatic'
13935 ccc*)
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 # All Alpha code is PIC.
13938 lt_prog_compiler_static_F77='-non_shared'
13941 case `$CC -V 2>&1 | sed 5q` in
13942 *Sun\ C*)
13943 # Sun C 5.9
13944 lt_prog_compiler_pic_F77='-KPIC'
13945 lt_prog_compiler_static_F77='-Bstatic'
13946 lt_prog_compiler_wl_F77='-Wl,'
13948 *Sun\ F*)
13949 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13950 lt_prog_compiler_pic_F77='-KPIC'
13951 lt_prog_compiler_static_F77='-Bstatic'
13952 lt_prog_compiler_wl_F77=''
13954 esac
13956 esac
13959 osf3* | osf4* | osf5*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 # All OSF/1 code is PIC.
13962 lt_prog_compiler_static_F77='-non_shared'
13965 rdos*)
13966 lt_prog_compiler_static_F77='-non_shared'
13969 solaris*)
13970 lt_prog_compiler_pic_F77='-KPIC'
13971 lt_prog_compiler_static_F77='-Bstatic'
13972 case $cc_basename in
13973 f77* | f90* | f95*)
13974 lt_prog_compiler_wl_F77='-Qoption ld ';;
13976 lt_prog_compiler_wl_F77='-Wl,';;
13977 esac
13980 sunos4*)
13981 lt_prog_compiler_wl_F77='-Qoption ld '
13982 lt_prog_compiler_pic_F77='-PIC'
13983 lt_prog_compiler_static_F77='-Bstatic'
13986 sysv4 | sysv4.2uw2* | sysv4.3*)
13987 lt_prog_compiler_wl_F77='-Wl,'
13988 lt_prog_compiler_pic_F77='-KPIC'
13989 lt_prog_compiler_static_F77='-Bstatic'
13992 sysv4*MP*)
13993 if test -d /usr/nec ;then
13994 lt_prog_compiler_pic_F77='-Kconform_pic'
13995 lt_prog_compiler_static_F77='-Bstatic'
13999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14000 lt_prog_compiler_wl_F77='-Wl,'
14001 lt_prog_compiler_pic_F77='-KPIC'
14002 lt_prog_compiler_static_F77='-Bstatic'
14005 unicos*)
14006 lt_prog_compiler_wl_F77='-Wl,'
14007 lt_prog_compiler_can_build_shared_F77=no
14010 uts4*)
14011 lt_prog_compiler_pic_F77='-pic'
14012 lt_prog_compiler_static_F77='-Bstatic'
14016 lt_prog_compiler_can_build_shared_F77=no
14018 esac
14021 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14022 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14025 # Check to make sure the PIC flag actually works.
14027 if test -n "$lt_prog_compiler_pic_F77"; then
14029 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14030 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14031 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 else
14034 lt_prog_compiler_pic_works_F77=no
14035 ac_outfile=conftest.$ac_objext
14036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14037 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14038 # Insert the option either (1) after the last *FLAGS variable, or
14039 # (2) before a word containing "conftest.", or (3) at the end.
14040 # Note that $ac_compile itself does not contain backslashes and begins
14041 # with a dollar sign (not a hyphen), so the echo should work correctly.
14042 # The option is referenced via a variable to avoid confusing sed.
14043 lt_compile=`echo "$ac_compile" | $SED \
14044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14046 -e 's:$: $lt_compiler_flag:'`
14047 (eval echo "\"\$as_me:14047: $lt_compile\"" >&5)
14048 (eval "$lt_compile" 2>conftest.err)
14049 ac_status=$?
14050 cat conftest.err >&5
14051 echo "$as_me:14051: \$? = $ac_status" >&5
14052 if (exit $ac_status) && test -s "$ac_outfile"; then
14053 # The compiler can only warn and ignore the option if not recognized
14054 # So say no if there are warnings other than the usual output.
14055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14058 lt_prog_compiler_pic_works_F77=yes
14061 $rm conftest*
14064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14065 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14067 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14068 case $lt_prog_compiler_pic_F77 in
14069 "" | " "*) ;;
14070 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14071 esac
14072 else
14073 lt_prog_compiler_pic_F77=
14074 lt_prog_compiler_can_build_shared_F77=no
14078 case $host_os in
14079 # For platforms which do not support PIC, -DPIC is meaningless:
14080 *djgpp*)
14081 lt_prog_compiler_pic_F77=
14084 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14086 esac
14089 # Check to make sure the static flag actually works.
14091 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14092 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14093 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14094 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097 lt_prog_compiler_static_works_F77=no
14098 save_LDFLAGS="$LDFLAGS"
14099 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14100 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14102 # The linker can only warn and ignore the option if not recognized
14103 # So say no if there are warnings
14104 if test -s conftest.err; then
14105 # Append any errors to the config.log.
14106 cat conftest.err 1>&5
14107 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14109 if diff conftest.exp conftest.er2 >/dev/null; then
14110 lt_prog_compiler_static_works_F77=yes
14112 else
14113 lt_prog_compiler_static_works_F77=yes
14116 $rm conftest*
14117 LDFLAGS="$save_LDFLAGS"
14120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14121 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14123 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14125 else
14126 lt_prog_compiler_static_F77=
14130 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14131 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14132 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 lt_cv_prog_compiler_c_o_F77=no
14136 $rm -r conftest 2>/dev/null
14137 mkdir conftest
14138 cd conftest
14139 mkdir out
14140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14142 lt_compiler_flag="-o out/conftest2.$ac_objext"
14143 # Insert the option either (1) after the last *FLAGS variable, or
14144 # (2) before a word containing "conftest.", or (3) at the end.
14145 # Note that $ac_compile itself does not contain backslashes and begins
14146 # with a dollar sign (not a hyphen), so the echo should work correctly.
14147 lt_compile=`echo "$ac_compile" | $SED \
14148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14150 -e 's:$: $lt_compiler_flag:'`
14151 (eval echo "\"\$as_me:14151: $lt_compile\"" >&5)
14152 (eval "$lt_compile" 2>out/conftest.err)
14153 ac_status=$?
14154 cat out/conftest.err >&5
14155 echo "$as_me:14155: \$? = $ac_status" >&5
14156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14157 then
14158 # The compiler can only warn and ignore the option if not recognized
14159 # So say no if there are warnings
14160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14163 lt_cv_prog_compiler_c_o_F77=yes
14166 chmod u+w . 2>&5
14167 $rm conftest*
14168 # SGI C++ compiler will create directory out/ii_files/ for
14169 # template instantiation
14170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14171 $rm out/* && rmdir out
14172 cd ..
14173 rmdir conftest
14174 $rm conftest*
14177 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14178 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14181 hard_links="nottested"
14182 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14183 # do not overwrite the value of need_locks provided by the user
14184 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14185 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14186 hard_links=yes
14187 $rm conftest*
14188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14189 touch conftest.a
14190 ln conftest.a conftest.b 2>&5 || hard_links=no
14191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14192 { echo "$as_me:$LINENO: result: $hard_links" >&5
14193 echo "${ECHO_T}$hard_links" >&6; }
14194 if test "$hard_links" = no; then
14195 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14196 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14197 need_locks=warn
14199 else
14200 need_locks=no
14203 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14204 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14206 runpath_var=
14207 allow_undefined_flag_F77=
14208 enable_shared_with_static_runtimes_F77=no
14209 archive_cmds_F77=
14210 archive_expsym_cmds_F77=
14211 old_archive_From_new_cmds_F77=
14212 old_archive_from_expsyms_cmds_F77=
14213 export_dynamic_flag_spec_F77=
14214 whole_archive_flag_spec_F77=
14215 thread_safe_flag_spec_F77=
14216 hardcode_libdir_flag_spec_F77=
14217 hardcode_libdir_flag_spec_ld_F77=
14218 hardcode_libdir_separator_F77=
14219 hardcode_direct_F77=no
14220 hardcode_minus_L_F77=no
14221 hardcode_shlibpath_var_F77=unsupported
14222 link_all_deplibs_F77=unknown
14223 hardcode_automatic_F77=no
14224 module_cmds_F77=
14225 module_expsym_cmds_F77=
14226 always_export_symbols_F77=no
14227 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14228 # include_expsyms should be a list of space-separated symbols to be *always*
14229 # included in the symbol list
14230 include_expsyms_F77=
14231 # exclude_expsyms can be an extended regexp of symbols to exclude
14232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14234 # as well as any symbol that contains `d'.
14235 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14237 # platforms (ab)use it in PIC code, but their linkers get confused if
14238 # the symbol is explicitly referenced. Since portable code cannot
14239 # rely on this symbol name, it's probably fine to never include it in
14240 # preloaded symbol tables.
14241 extract_expsyms_cmds=
14242 # Just being paranoid about ensuring that cc_basename is set.
14243 for cc_temp in $compiler""; do
14244 case $cc_temp in
14245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14247 \-*) ;;
14248 *) break;;
14249 esac
14250 done
14251 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14253 case $host_os in
14254 cygwin* | mingw* | pw32*)
14255 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14256 # When not using gcc, we currently assume that we are using
14257 # Microsoft Visual C++.
14258 if test "$GCC" != yes; then
14259 with_gnu_ld=no
14262 interix*)
14263 # we just hope/assume this is gcc and not c89 (= MSVC++)
14264 with_gnu_ld=yes
14266 openbsd*)
14267 with_gnu_ld=no
14269 esac
14271 ld_shlibs_F77=yes
14272 if test "$with_gnu_ld" = yes; then
14273 # If archive_cmds runs LD, not CC, wlarc should be empty
14274 wlarc='${wl}'
14276 # Set some defaults for GNU ld with shared library support. These
14277 # are reset later if shared libraries are not supported. Putting them
14278 # here allows them to be overridden if necessary.
14279 runpath_var=LD_RUN_PATH
14280 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14281 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14282 # ancient GNU ld didn't support --whole-archive et. al.
14283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14284 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14285 else
14286 whole_archive_flag_spec_F77=
14288 supports_anon_versioning=no
14289 case `$LD -v 2>/dev/null` in
14290 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14293 *\ 2.11.*) ;; # other 2.11 versions
14294 *) supports_anon_versioning=yes ;;
14295 esac
14297 # See if GNU ld supports shared libraries.
14298 case $host_os in
14299 aix3* | aix4* | aix5*)
14300 # On AIX/PPC, the GNU linker is very broken
14301 if test "$host_cpu" != ia64; then
14302 ld_shlibs_F77=no
14303 cat <<EOF 1>&2
14305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14306 *** to be unable to reliably create shared libraries on AIX.
14307 *** Therefore, libtool is disabling shared libraries support. If you
14308 *** really care for shared libraries, you may want to modify your PATH
14309 *** so that a non-GNU linker is found, and then restart.
14315 amigaos*)
14316 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)'
14317 hardcode_libdir_flag_spec_F77='-L$libdir'
14318 hardcode_minus_L_F77=yes
14320 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14321 # that the semantics of dynamic libraries on AmigaOS, at least up
14322 # to version 4, is to share data among multiple programs linked
14323 # with the same dynamic library. Since this doesn't match the
14324 # behavior of shared libraries on other platforms, we can't use
14325 # them.
14326 ld_shlibs_F77=no
14329 beos*)
14330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14331 allow_undefined_flag_F77=unsupported
14332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14333 # support --undefined. This deserves some investigation. FIXME
14334 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 else
14336 ld_shlibs_F77=no
14340 cygwin* | mingw* | pw32*)
14341 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14342 # as there is no search path for DLLs.
14343 hardcode_libdir_flag_spec_F77='-L$libdir'
14344 allow_undefined_flag_F77=unsupported
14345 always_export_symbols_F77=no
14346 enable_shared_with_static_runtimes_F77=yes
14347 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14350 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14351 # If the export-symbols file already is a .def file (1st line
14352 # is EXPORTS), use it as is; otherwise, prepend...
14353 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14354 cp $export_symbols $output_objdir/$soname.def;
14355 else
14356 echo EXPORTS > $output_objdir/$soname.def;
14357 cat $export_symbols >> $output_objdir/$soname.def;
14359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14360 else
14361 ld_shlibs_F77=no
14365 interix[3-9]*)
14366 hardcode_direct_F77=no
14367 hardcode_shlibpath_var_F77=no
14368 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14369 export_dynamic_flag_spec_F77='${wl}-E'
14370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14371 # Instead, shared libraries are loaded at an image base (0x10000000 by
14372 # default) and relocated if they conflict, which is a slow very memory
14373 # consuming and fragmenting process. To avoid this, we pick a random,
14374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14376 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'
14377 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'
14380 gnu* | linux* | k*bsd*-gnu)
14381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14382 tmp_addflag=
14383 case $cc_basename,$host_cpu in
14384 pgcc*) # Portland Group C compiler
14385 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'
14386 tmp_addflag=' $pic_flag'
14388 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14389 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'
14390 tmp_addflag=' $pic_flag -Mnomain' ;;
14391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14392 tmp_addflag=' -i_dynamic' ;;
14393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14394 tmp_addflag=' -i_dynamic -nofor_main' ;;
14395 ifc* | ifort*) # Intel Fortran compiler
14396 tmp_addflag=' -nofor_main' ;;
14397 esac
14398 case `$CC -V 2>&1 | sed 5q` in
14399 *Sun\ C*) # Sun C 5.9
14400 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'
14401 tmp_sharedflag='-G' ;;
14402 *Sun\ F*) # Sun Fortran 8.3
14403 tmp_sharedflag='-G' ;;
14405 tmp_sharedflag='-shared' ;;
14406 esac
14407 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409 if test $supports_anon_versioning = yes; then
14410 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14412 $echo "local: *; };" >> $output_objdir/$libname.ver~
14413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14415 else
14416 ld_shlibs_F77=no
14420 netbsd*)
14421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14422 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14423 wlarc=
14424 else
14425 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14426 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430 solaris*)
14431 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14432 ld_shlibs_F77=no
14433 cat <<EOF 1>&2
14435 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14436 *** create shared libraries on Solaris systems. Therefore, libtool
14437 *** is disabling shared libraries support. We urge you to upgrade GNU
14438 *** binutils to release 2.9.1 or newer. Another option is to modify
14439 *** your PATH or compiler configuration so that the native linker is
14440 *** used, and then restart.
14443 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14444 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14446 else
14447 ld_shlibs_F77=no
14451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14452 case `$LD -v 2>&1` in
14453 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14454 ld_shlibs_F77=no
14455 cat <<_LT_EOF 1>&2
14457 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14458 *** reliably create shared libraries on SCO systems. Therefore, libtool
14459 *** is disabling shared libraries support. We urge you to upgrade GNU
14460 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14461 *** your PATH or compiler configuration so that the native linker is
14462 *** used, and then restart.
14464 _LT_EOF
14467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14468 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14471 else
14472 ld_shlibs_F77=no
14475 esac
14478 sunos4*)
14479 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14480 wlarc=
14481 hardcode_direct_F77=yes
14482 hardcode_shlibpath_var_F77=no
14486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14489 else
14490 ld_shlibs_F77=no
14493 esac
14495 if test "$ld_shlibs_F77" = no; then
14496 runpath_var=
14497 hardcode_libdir_flag_spec_F77=
14498 export_dynamic_flag_spec_F77=
14499 whole_archive_flag_spec_F77=
14501 else
14502 # PORTME fill in a description of your system's linker (not GNU ld)
14503 case $host_os in
14504 aix3*)
14505 allow_undefined_flag_F77=unsupported
14506 always_export_symbols_F77=yes
14507 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'
14508 # Note: this linker hardcodes the directories in LIBPATH if there
14509 # are no directories specified by -L.
14510 hardcode_minus_L_F77=yes
14511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14512 # Neither direct hardcoding nor static linking is supported with a
14513 # broken collect2.
14514 hardcode_direct_F77=unsupported
14518 aix4* | aix5*)
14519 if test "$host_cpu" = ia64; then
14520 # On IA64, the linker does run time linking by default, so we don't
14521 # have to do anything special.
14522 aix_use_runtimelinking=no
14523 exp_sym_flag='-Bexport'
14524 no_entry_flag=""
14525 else
14526 # If we're using GNU nm, then we don't want the "-C" option.
14527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14528 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14529 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'
14530 else
14531 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'
14533 aix_use_runtimelinking=no
14535 # Test if we are trying to use run time linking or normal
14536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14537 # need to do runtime linking.
14538 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14539 for ld_flag in $LDFLAGS; do
14540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14541 aix_use_runtimelinking=yes
14542 break
14544 done
14546 esac
14548 exp_sym_flag='-bexport'
14549 no_entry_flag='-bnoentry'
14552 # When large executables or shared objects are built, AIX ld can
14553 # have problems creating the table of contents. If linking a library
14554 # or program results in "error TOC overflow" add -mminimal-toc to
14555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14558 archive_cmds_F77=''
14559 hardcode_direct_F77=yes
14560 hardcode_libdir_separator_F77=':'
14561 link_all_deplibs_F77=yes
14563 if test "$GCC" = yes; then
14564 case $host_os in aix4.[012]|aix4.[012].*)
14565 # We only want to do this on AIX 4.2 and lower, the check
14566 # below for broken collect2 doesn't work under 4.3+
14567 collect2name=`${CC} -print-prog-name=collect2`
14568 if test -f "$collect2name" && \
14569 strings "$collect2name" | grep resolve_lib_name >/dev/null
14570 then
14571 # We have reworked collect2
14573 else
14574 # We have old collect2
14575 hardcode_direct_F77=unsupported
14576 # It fails to find uninstalled libraries when the uninstalled
14577 # path is not listed in the libpath. Setting hardcode_minus_L
14578 # to unsupported forces relinking
14579 hardcode_minus_L_F77=yes
14580 hardcode_libdir_flag_spec_F77='-L$libdir'
14581 hardcode_libdir_separator_F77=
14584 esac
14585 shared_flag='-shared'
14586 if test "$aix_use_runtimelinking" = yes; then
14587 shared_flag="$shared_flag "'${wl}-G'
14589 else
14590 # not using gcc
14591 if test "$host_cpu" = ia64; then
14592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14593 # chokes on -Wl,-G. The following line is correct:
14594 shared_flag='-G'
14595 else
14596 if test "$aix_use_runtimelinking" = yes; then
14597 shared_flag='${wl}-G'
14598 else
14599 shared_flag='${wl}-bM:SRE'
14604 # It seems that -bexpall does not export symbols beginning with
14605 # underscore (_), so it is better to generate a list of symbols to export.
14606 always_export_symbols_F77=yes
14607 if test "$aix_use_runtimelinking" = yes; then
14608 # Warning - without using the other runtime loading flags (-brtl),
14609 # -berok will link without error, but may produce a broken library.
14610 allow_undefined_flag_F77='-berok'
14611 # Determine the default libpath from the value encoded in an empty executable.
14612 cat >conftest.$ac_ext <<_ACEOF
14613 program main
14616 _ACEOF
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_link") 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } && {
14631 test -z "$ac_f77_werror_flag" ||
14632 test ! -s conftest.err
14633 } && test -s conftest$ac_exeext &&
14634 $as_test_x conftest$ac_exeext; then
14636 lt_aix_libpath_sed='
14637 /Import File Strings/,/^$/ {
14638 /^0/ {
14639 s/^0 *\(.*\)$/\1/
14643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14644 # Check for a 64-bit object if we didn't find anything.
14645 if test -z "$aix_libpath"; then
14646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14656 conftest$ac_exeext conftest.$ac_ext
14657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14660 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"
14661 else
14662 if test "$host_cpu" = ia64; then
14663 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14664 allow_undefined_flag_F77="-z nodefs"
14665 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"
14666 else
14667 # Determine the default libpath from the value encoded in an empty executable.
14668 cat >conftest.$ac_ext <<_ACEOF
14669 program main
14672 _ACEOF
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (ac_try="$ac_link"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_link") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_f77_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest$ac_exeext &&
14690 $as_test_x conftest$ac_exeext; then
14692 lt_aix_libpath_sed='
14693 /Import File Strings/,/^$/ {
14694 /^0/ {
14695 s/^0 *\(.*\)$/\1/
14699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14700 # Check for a 64-bit object if we didn't find anything.
14701 if test -z "$aix_libpath"; then
14702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14715 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14716 # Warning - without using the other run time loading flags,
14717 # -berok will link without error, but may produce a broken library.
14718 no_undefined_flag_F77=' ${wl}-bernotok'
14719 allow_undefined_flag_F77=' ${wl}-berok'
14720 # Exported symbols can be pulled into shared objects from archives
14721 whole_archive_flag_spec_F77='$convenience'
14722 archive_cmds_need_lc_F77=yes
14723 # This is similar to how AIX traditionally builds its shared libraries.
14724 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'
14729 amigaos*)
14730 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)'
14731 hardcode_libdir_flag_spec_F77='-L$libdir'
14732 hardcode_minus_L_F77=yes
14733 # see comment about different semantics on the GNU ld section
14734 ld_shlibs_F77=no
14737 bsdi[45]*)
14738 export_dynamic_flag_spec_F77=-rdynamic
14741 cygwin* | mingw* | pw32*)
14742 # When not using gcc, we currently assume that we are using
14743 # Microsoft Visual C++.
14744 # hardcode_libdir_flag_spec is actually meaningless, as there is
14745 # no search path for DLLs.
14746 hardcode_libdir_flag_spec_F77=' '
14747 allow_undefined_flag_F77=unsupported
14748 # Tell ltmain to make .lib files, not .a files.
14749 libext=lib
14750 # Tell ltmain to make .dll files, not .so files.
14751 shrext_cmds=".dll"
14752 # FIXME: Setting linknames here is a bad hack.
14753 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14754 # The linker will automatically build a .lib file if we build a DLL.
14755 old_archive_From_new_cmds_F77='true'
14756 # FIXME: Should let the user specify the lib program.
14757 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14758 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14759 enable_shared_with_static_runtimes_F77=yes
14762 darwin* | rhapsody*)
14763 case $host_os in
14764 rhapsody* | darwin1.[012])
14765 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14767 *) # Darwin 1.3 on
14768 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14769 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14770 else
14771 case ${MACOSX_DEPLOYMENT_TARGET} in
14772 10.[012])
14773 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14775 10.*)
14776 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14778 esac
14781 esac
14782 archive_cmds_need_lc_F77=no
14783 hardcode_direct_F77=no
14784 hardcode_automatic_F77=yes
14785 hardcode_shlibpath_var_F77=unsupported
14786 whole_archive_flag_spec_F77=''
14787 link_all_deplibs_F77=yes
14788 if test "$GCC" = yes ; then
14789 output_verbose_link_cmd='echo'
14790 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14791 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14792 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14793 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14794 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}'
14795 else
14796 case $cc_basename in
14797 xlc*)
14798 output_verbose_link_cmd='echo'
14799 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14800 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14802 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}'
14803 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}'
14806 ld_shlibs_F77=no
14808 esac
14812 dgux*)
14813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14814 hardcode_libdir_flag_spec_F77='-L$libdir'
14815 hardcode_shlibpath_var_F77=no
14818 freebsd1*)
14819 ld_shlibs_F77=no
14822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14823 # support. Future versions do this automatically, but an explicit c++rt0.o
14824 # does not break anything, and helps significantly (at the cost of a little
14825 # extra space).
14826 freebsd2.2*)
14827 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14828 hardcode_libdir_flag_spec_F77='-R$libdir'
14829 hardcode_direct_F77=yes
14830 hardcode_shlibpath_var_F77=no
14833 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14834 freebsd2*)
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_direct_F77=yes
14837 hardcode_minus_L_F77=yes
14838 hardcode_shlibpath_var_F77=no
14841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14842 freebsd* | dragonfly*)
14843 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14844 hardcode_libdir_flag_spec_F77='-R$libdir'
14845 hardcode_direct_F77=yes
14846 hardcode_shlibpath_var_F77=no
14849 hpux9*)
14850 if test "$GCC" = yes; then
14851 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'
14852 else
14853 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'
14855 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14856 hardcode_libdir_separator_F77=:
14857 hardcode_direct_F77=yes
14859 # hardcode_minus_L: Not really in the search PATH,
14860 # but as the default location of the library.
14861 hardcode_minus_L_F77=yes
14862 export_dynamic_flag_spec_F77='${wl}-E'
14865 hpux10*)
14866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14867 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14868 else
14869 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14871 if test "$with_gnu_ld" = no; then
14872 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14873 hardcode_libdir_separator_F77=:
14875 hardcode_direct_F77=yes
14876 export_dynamic_flag_spec_F77='${wl}-E'
14878 # hardcode_minus_L: Not really in the search PATH,
14879 # but as the default location of the library.
14880 hardcode_minus_L_F77=yes
14884 hpux11*)
14885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14886 case $host_cpu in
14887 hppa*64*)
14888 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 ia64*)
14891 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14894 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14896 esac
14897 else
14898 case $host_cpu in
14899 hppa*64*)
14900 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902 ia64*)
14903 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14906 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14908 esac
14910 if test "$with_gnu_ld" = no; then
14911 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14912 hardcode_libdir_separator_F77=:
14914 case $host_cpu in
14915 hppa*64*|ia64*)
14916 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14917 hardcode_direct_F77=no
14918 hardcode_shlibpath_var_F77=no
14921 hardcode_direct_F77=yes
14922 export_dynamic_flag_spec_F77='${wl}-E'
14924 # hardcode_minus_L: Not really in the search PATH,
14925 # but as the default location of the library.
14926 hardcode_minus_L_F77=yes
14928 esac
14932 irix5* | irix6* | nonstopux*)
14933 if test "$GCC" = yes; then
14934 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'
14935 else
14936 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'
14937 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14940 hardcode_libdir_separator_F77=:
14941 link_all_deplibs_F77=yes
14944 netbsd*)
14945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14946 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14947 else
14948 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14955 newsos6)
14956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 hardcode_direct_F77=yes
14958 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14959 hardcode_libdir_separator_F77=:
14960 hardcode_shlibpath_var_F77=no
14963 openbsd*)
14964 if test -f /usr/libexec/ld.so; then
14965 hardcode_direct_F77=yes
14966 hardcode_shlibpath_var_F77=no
14967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14968 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14970 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14971 export_dynamic_flag_spec_F77='${wl}-E'
14972 else
14973 case $host_os in
14974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14975 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14976 hardcode_libdir_flag_spec_F77='-R$libdir'
14979 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14982 esac
14984 else
14985 ld_shlibs_F77=no
14989 os2*)
14990 hardcode_libdir_flag_spec_F77='-L$libdir'
14991 hardcode_minus_L_F77=yes
14992 allow_undefined_flag_F77=unsupported
14993 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'
14994 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14997 osf3*)
14998 if test "$GCC" = yes; then
14999 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15000 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'
15001 else
15002 allow_undefined_flag_F77=' -expect_unresolved \*'
15003 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'
15005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15006 hardcode_libdir_separator_F77=:
15009 osf4* | osf5*) # as osf3* with the addition of -msym flag
15010 if test "$GCC" = yes; then
15011 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15012 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'
15013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014 else
15015 allow_undefined_flag_F77=' -expect_unresolved \*'
15016 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'
15017 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~
15018 $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'
15020 # Both c and cxx compiler support -rpath directly
15021 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15023 hardcode_libdir_separator_F77=:
15026 solaris*)
15027 no_undefined_flag_F77=' -z text'
15028 if test "$GCC" = yes; then
15029 wlarc='${wl}'
15030 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15032 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15033 else
15034 wlarc=''
15035 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15039 hardcode_libdir_flag_spec_F77='-R$libdir'
15040 hardcode_shlibpath_var_F77=no
15041 case $host_os in
15042 solaris2.[0-5] | solaris2.[0-5].*) ;;
15044 # The compiler driver will combine and reorder linker options,
15045 # but understands `-z linker_flag'. GCC discards it without `$wl',
15046 # but is careful enough not to reorder.
15047 # Supported since Solaris 2.6 (maybe 2.5.1?)
15048 if test "$GCC" = yes; then
15049 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15050 else
15051 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15054 esac
15055 link_all_deplibs_F77=yes
15058 sunos4*)
15059 if test "x$host_vendor" = xsequent; then
15060 # Use $CC to link under sequent, because it throws in some extra .o
15061 # files that make .init and .fini sections work.
15062 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15063 else
15064 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_libdir_flag_spec_F77='-L$libdir'
15067 hardcode_direct_F77=yes
15068 hardcode_minus_L_F77=yes
15069 hardcode_shlibpath_var_F77=no
15072 sysv4)
15073 case $host_vendor in
15074 sni)
15075 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076 hardcode_direct_F77=yes # is this really true???
15078 siemens)
15079 ## LD is ld it makes a PLAMLIB
15080 ## CC just makes a GrossModule.
15081 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15082 reload_cmds_F77='$CC -r -o $output$reload_objs'
15083 hardcode_direct_F77=no
15085 motorola)
15086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15089 esac
15090 runpath_var='LD_RUN_PATH'
15091 hardcode_shlibpath_var_F77=no
15094 sysv4.3*)
15095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15096 hardcode_shlibpath_var_F77=no
15097 export_dynamic_flag_spec_F77='-Bexport'
15100 sysv4*MP*)
15101 if test -d /usr/nec; then
15102 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103 hardcode_shlibpath_var_F77=no
15104 runpath_var=LD_RUN_PATH
15105 hardcode_runpath_var=yes
15106 ld_shlibs_F77=yes
15110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15111 no_undefined_flag_F77='${wl}-z,text'
15112 archive_cmds_need_lc_F77=no
15113 hardcode_shlibpath_var_F77=no
15114 runpath_var='LD_RUN_PATH'
15116 if test "$GCC" = yes; then
15117 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 else
15120 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15121 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 sysv5* | sco3.2v5* | sco5v6*)
15126 # Note: We can NOT use -z defs as we might desire, because we do not
15127 # link with -lc, and that would cause any symbols used from libc to
15128 # always be unresolved, which means just about no library would
15129 # ever link correctly. If we're not using GNU ld we use -z text
15130 # though, which does catch some bad symbols but isn't as heavy-handed
15131 # as -z defs.
15132 no_undefined_flag_F77='${wl}-z,text'
15133 allow_undefined_flag_F77='${wl}-z,nodefs'
15134 archive_cmds_need_lc_F77=no
15135 hardcode_shlibpath_var_F77=no
15136 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15137 hardcode_libdir_separator_F77=':'
15138 link_all_deplibs_F77=yes
15139 export_dynamic_flag_spec_F77='${wl}-Bexport'
15140 runpath_var='LD_RUN_PATH'
15142 if test "$GCC" = yes; then
15143 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15144 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145 else
15146 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15147 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151 uts4*)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_libdir_flag_spec_F77='-L$libdir'
15154 hardcode_shlibpath_var_F77=no
15158 ld_shlibs_F77=no
15160 esac
15163 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15164 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15165 test "$ld_shlibs_F77" = no && can_build_shared=no
15168 # Do we need to explicitly link libc?
15170 case "x$archive_cmds_need_lc_F77" in
15171 x|xyes)
15172 # Assume -lc should be added
15173 archive_cmds_need_lc_F77=yes
15175 if test "$enable_shared" = yes && test "$GCC" = yes; then
15176 case $archive_cmds_F77 in
15177 *'~'*)
15178 # FIXME: we may have to deal with multi-command sequences.
15180 '$CC '*)
15181 # Test whether the compiler implicitly links with -lc since on some
15182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15183 # to ld, don't add -lc before -lgcc.
15184 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15185 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15186 $rm conftest*
15187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15190 (eval $ac_compile) 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } 2>conftest.err; then
15194 soname=conftest
15195 lib=conftest
15196 libobjs=conftest.$ac_objext
15197 deplibs=
15198 wl=$lt_prog_compiler_wl_F77
15199 pic_flag=$lt_prog_compiler_pic_F77
15200 compiler_flags=-v
15201 linker_flags=-v
15202 verstring=
15203 output_objdir=.
15204 libname=conftest
15205 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15206 allow_undefined_flag_F77=
15207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15208 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15209 ac_status=$?
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }
15212 then
15213 archive_cmds_need_lc_F77=no
15214 else
15215 archive_cmds_need_lc_F77=yes
15217 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15218 else
15219 cat conftest.err 1>&5
15221 $rm conftest*
15222 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15223 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15225 esac
15228 esac
15230 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15231 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15232 library_names_spec=
15233 libname_spec='lib$name'
15234 soname_spec=
15235 shrext_cmds=".so"
15236 postinstall_cmds=
15237 postuninstall_cmds=
15238 finish_cmds=
15239 finish_eval=
15240 shlibpath_var=
15241 shlibpath_overrides_runpath=unknown
15242 version_type=none
15243 dynamic_linker="$host_os ld.so"
15244 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15246 need_lib_prefix=unknown
15247 hardcode_into_libs=no
15249 # when you set need_version to no, make sure it does not cause -set_version
15250 # flags to be left without arguments
15251 need_version=unknown
15253 case $host_os in
15254 aix3*)
15255 version_type=linux
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15257 shlibpath_var=LIBPATH
15259 # AIX 3 has no versioning support, so we append a major version to the name.
15260 soname_spec='${libname}${release}${shared_ext}$major'
15263 aix4* | aix5*)
15264 version_type=linux
15265 need_lib_prefix=no
15266 need_version=no
15267 hardcode_into_libs=yes
15268 if test "$host_cpu" = ia64; then
15269 # AIX 5 supports IA64
15270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 else
15273 # With GCC up to 2.95.x, collect2 would create an import file
15274 # for dependence libraries. The import file would start with
15275 # the line `#! .'. This would cause the generated library to
15276 # depend on `.', always an invalid library. This was fixed in
15277 # development snapshots of GCC prior to 3.0.
15278 case $host_os in
15279 aix4 | aix4.[01] | aix4.[01].*)
15280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15281 echo ' yes '
15282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15284 else
15285 can_build_shared=no
15288 esac
15289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15290 # soname into executable. Probably we can add versioning support to
15291 # collect2, so additional links can be useful in future.
15292 if test "$aix_use_runtimelinking" = yes; then
15293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15294 # instead of lib<name>.a to let people know that these are not
15295 # typical AIX shared libraries.
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 else
15298 # We preserve .a as extension for shared libraries through AIX4.2
15299 # and later when we are not doing run time linking.
15300 library_names_spec='${libname}${release}.a $libname.a'
15301 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LIBPATH
15307 amigaos*)
15308 library_names_spec='$libname.ixlibrary $libname.a'
15309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15310 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'
15313 beos*)
15314 library_names_spec='${libname}${shared_ext}'
15315 dynamic_linker="$host_os ld.so"
15316 shlibpath_var=LIBRARY_PATH
15319 bsdi[45]*)
15320 version_type=linux
15321 need_version=no
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15328 # the default ld.so.conf also contains /usr/contrib/lib and
15329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15330 # libtool to hard-code these into programs
15333 cygwin* | mingw* | pw32*)
15334 version_type=windows
15335 shrext_cmds=".dll"
15336 need_version=no
15337 need_lib_prefix=no
15339 case $GCC,$host_os in
15340 yes,cygwin* | yes,mingw* | yes,pw32*)
15341 library_names_spec='$libname.dll.a'
15342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15343 postinstall_cmds='base_file=`basename \${file}`~
15344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15345 dldir=$destdir/`dirname \$dlpath`~
15346 test -d \$dldir || mkdir -p \$dldir~
15347 $install_prog $dir/$dlname \$dldir/$dlname~
15348 chmod a+x \$dldir/$dlname'
15349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15350 dlpath=$dir/\$dldll~
15351 $rm \$dlpath'
15352 shlibpath_overrides_runpath=yes
15354 case $host_os in
15355 cygwin*)
15356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15360 mingw*)
15361 # MinGW DLLs use traditional 'lib' prefix
15362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15365 # It is most probably a Windows format PATH printed by
15366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15367 # path with ; separators, and with drive letters. We can handle the
15368 # drive letters (cygwin fileutils understands them), so leave them,
15369 # especially as we might pass files found there to a mingw objdump,
15370 # which wouldn't understand a cygwinified path. Ahh.
15371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15372 else
15373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15376 pw32*)
15377 # pw32 DLLs use 'pw' prefix rather than 'lib'
15378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15380 esac
15384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15386 esac
15387 dynamic_linker='Win32 ld.exe'
15388 # FIXME: first we should search . and the directory the executable is in
15389 shlibpath_var=PATH
15392 darwin* | rhapsody*)
15393 dynamic_linker="$host_os dyld"
15394 version_type=darwin
15395 need_lib_prefix=no
15396 need_version=no
15397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15398 soname_spec='${libname}${release}${major}$shared_ext'
15399 shlibpath_overrides_runpath=yes
15400 shlibpath_var=DYLD_LIBRARY_PATH
15401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15403 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15406 dgux*)
15407 version_type=linux
15408 need_lib_prefix=no
15409 need_version=no
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15415 freebsd1*)
15416 dynamic_linker=no
15419 freebsd* | dragonfly*)
15420 # DragonFly does not have aout. When/if they implement a new
15421 # versioning mechanism, adjust this.
15422 if test -x /usr/bin/objformat; then
15423 objformat=`/usr/bin/objformat`
15424 else
15425 case $host_os in
15426 freebsd[123]*) objformat=aout ;;
15427 *) objformat=elf ;;
15428 esac
15430 # Handle Gentoo/FreeBSD as it was Linux
15431 case $host_vendor in
15432 gentoo)
15433 version_type=linux ;;
15435 version_type=freebsd-$objformat ;;
15436 esac
15438 case $version_type in
15439 freebsd-elf*)
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15441 need_version=no
15442 need_lib_prefix=no
15444 freebsd-*)
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15446 need_version=yes
15448 linux)
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 need_lib_prefix=no
15452 need_version=no
15454 esac
15455 shlibpath_var=LD_LIBRARY_PATH
15456 case $host_os in
15457 freebsd2*)
15458 shlibpath_overrides_runpath=yes
15460 freebsd3.[01]* | freebsdelf3.[01]*)
15461 shlibpath_overrides_runpath=yes
15462 hardcode_into_libs=yes
15464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15466 shlibpath_overrides_runpath=no
15467 hardcode_into_libs=yes
15469 *) # from 4.6 on, and DragonFly
15470 shlibpath_overrides_runpath=yes
15471 hardcode_into_libs=yes
15473 esac
15476 gnu*)
15477 version_type=linux
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 hardcode_into_libs=yes
15486 hpux9* | hpux10* | hpux11*)
15487 # Give a soname corresponding to the major version so that dld.sl refuses to
15488 # link against other versions.
15489 version_type=sunos
15490 need_lib_prefix=no
15491 need_version=no
15492 case $host_cpu in
15493 ia64*)
15494 shrext_cmds='.so'
15495 hardcode_into_libs=yes
15496 dynamic_linker="$host_os dld.so"
15497 shlibpath_var=LD_LIBRARY_PATH
15498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 if test "X$HPUX_IA64_MODE" = X32; then
15502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15503 else
15504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15508 hppa*64*)
15509 shrext_cmds='.sl'
15510 hardcode_into_libs=yes
15511 dynamic_linker="$host_os dld.sl"
15512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15520 shrext_cmds='.sl'
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=SHLIB_PATH
15523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15527 esac
15528 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15529 postinstall_cmds='chmod 555 $lib'
15532 interix[3-9]*)
15533 version_type=linux
15534 need_lib_prefix=no
15535 need_version=no
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=no
15541 hardcode_into_libs=yes
15544 irix5* | irix6* | nonstopux*)
15545 case $host_os in
15546 nonstopux*) version_type=nonstopux ;;
15548 if test "$lt_cv_prog_gnu_ld" = yes; then
15549 version_type=linux
15550 else
15551 version_type=irix
15552 fi ;;
15553 esac
15554 need_lib_prefix=no
15555 need_version=no
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15558 case $host_os in
15559 irix5* | nonstopux*)
15560 libsuff= shlibsuff=
15563 case $LD in # libtool.m4 will add one of these switches to LD
15564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15565 libsuff= shlibsuff= libmagic=32-bit;;
15566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15567 libsuff=32 shlibsuff=N32 libmagic=N32;;
15568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15570 *) libsuff= shlibsuff= libmagic=never-match;;
15571 esac
15573 esac
15574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15575 shlibpath_overrides_runpath=no
15576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15578 hardcode_into_libs=yes
15581 # No shared lib support for Linux oldld, aout, or coff.
15582 linux*oldld* | linux*aout* | linux*coff*)
15583 dynamic_linker=no
15586 # This must be Linux ELF.
15587 linux* | k*bsd*-gnu)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=no
15596 # This implies no fast_install, which is unacceptable.
15597 # Some rework will be needed to allow for fast_install
15598 # before this can be enabled.
15599 hardcode_into_libs=yes
15601 # Append ld.so.conf contents to the search path
15602 if test -f /etc/ld.so.conf; then
15603 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' ' '`
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15607 # We used to test for /lib/ld.so.1 and disable shared libraries on
15608 # powerpc, because MkLinux only supported shared libraries with the
15609 # GNU dynamic linker. Since this was broken with cross compilers,
15610 # most powerpc-linux boxes support dynamic linking these days and
15611 # people can always --disable-shared, the test was removed, and we
15612 # assume the GNU/Linux dynamic linker is in use.
15613 dynamic_linker='GNU/Linux ld.so'
15616 netbsd*)
15617 version_type=sunos
15618 need_lib_prefix=no
15619 need_version=no
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15623 dynamic_linker='NetBSD (a.out) ld.so'
15624 else
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 dynamic_linker='NetBSD ld.elf_so'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 hardcode_into_libs=yes
15634 newsos6)
15635 version_type=linux
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 shlibpath_overrides_runpath=yes
15641 nto-qnx*)
15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=yes
15651 openbsd*)
15652 version_type=sunos
15653 sys_lib_dlsearch_path_spec="/usr/lib"
15654 need_lib_prefix=no
15655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15656 case $host_os in
15657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15658 *) need_version=no ;;
15659 esac
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15662 shlibpath_var=LD_LIBRARY_PATH
15663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15664 case $host_os in
15665 openbsd2.[89] | openbsd2.[89].*)
15666 shlibpath_overrides_runpath=no
15669 shlibpath_overrides_runpath=yes
15671 esac
15672 else
15673 shlibpath_overrides_runpath=yes
15677 os2*)
15678 libname_spec='$name'
15679 shrext_cmds=".dll"
15680 need_lib_prefix=no
15681 library_names_spec='$libname${shared_ext} $libname.a'
15682 dynamic_linker='OS/2 ld.exe'
15683 shlibpath_var=LIBPATH
15686 osf3* | osf4* | osf5*)
15687 version_type=osf
15688 need_lib_prefix=no
15689 need_version=no
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15697 rdos*)
15698 dynamic_linker=no
15701 solaris*)
15702 version_type=linux
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 hardcode_into_libs=yes
15710 # ldd complains unless libraries are executable
15711 postinstall_cmds='chmod +x $lib'
15714 sunos4*)
15715 version_type=sunos
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=yes
15720 if test "$with_gnu_ld" = yes; then
15721 need_lib_prefix=no
15723 need_version=yes
15726 sysv4 | sysv4.3*)
15727 version_type=linux
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 case $host_vendor in
15732 sni)
15733 shlibpath_overrides_runpath=no
15734 need_lib_prefix=no
15735 export_dynamic_flag_spec='${wl}-Blargedynsym'
15736 runpath_var=LD_RUN_PATH
15738 siemens)
15739 need_lib_prefix=no
15741 motorola)
15742 need_lib_prefix=no
15743 need_version=no
15744 shlibpath_overrides_runpath=no
15745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15747 esac
15750 sysv4*MP*)
15751 if test -d /usr/nec ;then
15752 version_type=linux
15753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15754 soname_spec='$libname${shared_ext}.$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15760 version_type=freebsd-elf
15761 need_lib_prefix=no
15762 need_version=no
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 hardcode_into_libs=yes
15767 if test "$with_gnu_ld" = yes; then
15768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15769 shlibpath_overrides_runpath=no
15770 else
15771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15772 shlibpath_overrides_runpath=yes
15773 case $host_os in
15774 sco3.2v5*)
15775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15777 esac
15779 sys_lib_dlsearch_path_spec='/usr/lib'
15782 uts4*)
15783 version_type=linux
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15790 dynamic_linker=no
15792 esac
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15804 hardcode_action_F77=
15805 if test -n "$hardcode_libdir_flag_spec_F77" || \
15806 test -n "$runpath_var_F77" || \
15807 test "X$hardcode_automatic_F77" = "Xyes" ; then
15809 # We can hardcode non-existant directories.
15810 if test "$hardcode_direct_F77" != no &&
15811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15812 # have to relink, otherwise we might link with an installed library
15813 # when we should be linking with a yet-to-be-installed one
15814 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15815 test "$hardcode_minus_L_F77" != no; then
15816 # Linking always hardcodes the temporary library directory.
15817 hardcode_action_F77=relink
15818 else
15819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15820 hardcode_action_F77=immediate
15822 else
15823 # We cannot hardcode anything, or else we can only hardcode existing
15824 # directories.
15825 hardcode_action_F77=unsupported
15827 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15828 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15830 if test "$hardcode_action_F77" = relink; then
15831 # Fast installation is not supported
15832 enable_fast_install=no
15833 elif test "$shlibpath_overrides_runpath" = yes ||
15834 test "$enable_shared" = no; then
15835 # Fast installation is not necessary
15836 enable_fast_install=needless
15840 # The else clause should only fire when bootstrapping the
15841 # libtool distribution, otherwise you forgot to ship ltmain.sh
15842 # with your package, and you will get complaints that there are
15843 # no rules to generate ltmain.sh.
15844 if test -f "$ltmain"; then
15845 # See if we are running on zsh, and set the options which allow our commands through
15846 # without removal of \ escapes.
15847 if test -n "${ZSH_VERSION+set}" ; then
15848 setopt NO_GLOB_SUBST
15850 # Now quote all the things that may contain metacharacters while being
15851 # careful not to overquote the AC_SUBSTed values. We take copies of the
15852 # variables and quote the copies for generation of the libtool script.
15853 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15854 SED SHELL STRIP \
15855 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15856 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15857 deplibs_check_method reload_flag reload_cmds need_locks \
15858 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15859 lt_cv_sys_global_symbol_to_c_name_address \
15860 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15861 old_postinstall_cmds old_postuninstall_cmds \
15862 compiler_F77 \
15863 CC_F77 \
15864 LD_F77 \
15865 lt_prog_compiler_wl_F77 \
15866 lt_prog_compiler_pic_F77 \
15867 lt_prog_compiler_static_F77 \
15868 lt_prog_compiler_no_builtin_flag_F77 \
15869 export_dynamic_flag_spec_F77 \
15870 thread_safe_flag_spec_F77 \
15871 whole_archive_flag_spec_F77 \
15872 enable_shared_with_static_runtimes_F77 \
15873 old_archive_cmds_F77 \
15874 old_archive_from_new_cmds_F77 \
15875 predep_objects_F77 \
15876 postdep_objects_F77 \
15877 predeps_F77 \
15878 postdeps_F77 \
15879 compiler_lib_search_path_F77 \
15880 archive_cmds_F77 \
15881 archive_expsym_cmds_F77 \
15882 postinstall_cmds_F77 \
15883 postuninstall_cmds_F77 \
15884 old_archive_from_expsyms_cmds_F77 \
15885 allow_undefined_flag_F77 \
15886 no_undefined_flag_F77 \
15887 export_symbols_cmds_F77 \
15888 hardcode_libdir_flag_spec_F77 \
15889 hardcode_libdir_flag_spec_ld_F77 \
15890 hardcode_libdir_separator_F77 \
15891 hardcode_automatic_F77 \
15892 module_cmds_F77 \
15893 module_expsym_cmds_F77 \
15894 lt_cv_prog_compiler_c_o_F77 \
15895 fix_srcfile_path_F77 \
15896 exclude_expsyms_F77 \
15897 include_expsyms_F77; do
15899 case $var in
15900 old_archive_cmds_F77 | \
15901 old_archive_from_new_cmds_F77 | \
15902 archive_cmds_F77 | \
15903 archive_expsym_cmds_F77 | \
15904 module_cmds_F77 | \
15905 module_expsym_cmds_F77 | \
15906 old_archive_from_expsyms_cmds_F77 | \
15907 export_symbols_cmds_F77 | \
15908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15909 postinstall_cmds | postuninstall_cmds | \
15910 old_postinstall_cmds | old_postuninstall_cmds | \
15911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15912 # Double-quote double-evaled strings.
15913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15918 esac
15919 done
15921 case $lt_echo in
15922 *'\$0 --fallback-echo"')
15923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15925 esac
15927 cfgfile="$ofile"
15929 cat <<__EOF__ >> "$cfgfile"
15930 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15932 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15934 # Shell to use when invoking shell scripts.
15935 SHELL=$lt_SHELL
15937 # Whether or not to build shared libraries.
15938 build_libtool_libs=$enable_shared
15940 # Whether or not to build static libraries.
15941 build_old_libs=$enable_static
15943 # Whether or not to add -lc for building shared libraries.
15944 build_libtool_need_lc=$archive_cmds_need_lc_F77
15946 # Whether or not to disallow shared libs when runtime libs are static
15947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15949 # Whether or not to optimize for fast installation.
15950 fast_install=$enable_fast_install
15952 # The host system.
15953 host_alias=$host_alias
15954 host=$host
15955 host_os=$host_os
15957 # The build system.
15958 build_alias=$build_alias
15959 build=$build
15960 build_os=$build_os
15962 # An echo program that does not interpret backslashes.
15963 echo=$lt_echo
15965 # The archiver.
15966 AR=$lt_AR
15967 AR_FLAGS=$lt_AR_FLAGS
15969 # A C compiler.
15970 LTCC=$lt_LTCC
15972 # LTCC compiler flags.
15973 LTCFLAGS=$lt_LTCFLAGS
15975 # A language-specific compiler.
15976 CC=$lt_compiler_F77
15978 # Is the compiler the GNU C compiler?
15979 with_gcc=$GCC_F77
15981 # An ERE matcher.
15982 EGREP=$lt_EGREP
15984 # The linker used to build libraries.
15985 LD=$lt_LD_F77
15987 # Whether we need hard or soft links.
15988 LN_S=$lt_LN_S
15990 # A BSD-compatible nm program.
15991 NM=$lt_NM
15993 # A symbol stripping program
15994 STRIP=$lt_STRIP
15996 # Used to examine libraries when file_magic_cmd begins "file"
15997 MAGIC_CMD=$MAGIC_CMD
15999 # Used on cygwin: DLL creation program.
16000 DLLTOOL="$DLLTOOL"
16002 # Used on cygwin: object dumper.
16003 OBJDUMP="$OBJDUMP"
16005 # Used on cygwin: assembler.
16006 AS="$AS"
16008 # The name of the directory that contains temporary libtool files.
16009 objdir=$objdir
16011 # How to create reloadable object files.
16012 reload_flag=$lt_reload_flag
16013 reload_cmds=$lt_reload_cmds
16015 # How to pass a linker flag through the compiler.
16016 wl=$lt_lt_prog_compiler_wl_F77
16018 # Object file suffix (normally "o").
16019 objext="$ac_objext"
16021 # Old archive suffix (normally "a").
16022 libext="$libext"
16024 # Shared library suffix (normally ".so").
16025 shrext_cmds='$shrext_cmds'
16027 # Executable file suffix (normally "").
16028 exeext="$exeext"
16030 # Additional compiler flags for building library objects.
16031 pic_flag=$lt_lt_prog_compiler_pic_F77
16032 pic_mode=$pic_mode
16034 # What is the maximum length of a command?
16035 max_cmd_len=$lt_cv_sys_max_cmd_len
16037 # Does compiler simultaneously support -c and -o options?
16038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16040 # Must we lock files when doing compilation?
16041 need_locks=$lt_need_locks
16043 # Do we need the lib prefix for modules?
16044 need_lib_prefix=$need_lib_prefix
16046 # Do we need a version for libraries?
16047 need_version=$need_version
16049 # Whether dlopen is supported.
16050 dlopen_support=$enable_dlopen
16052 # Whether dlopen of programs is supported.
16053 dlopen_self=$enable_dlopen_self
16055 # Whether dlopen of statically linked programs is supported.
16056 dlopen_self_static=$enable_dlopen_self_static
16058 # Compiler flag to prevent dynamic linking.
16059 link_static_flag=$lt_lt_prog_compiler_static_F77
16061 # Compiler flag to turn off builtin functions.
16062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16064 # Compiler flag to allow reflexive dlopens.
16065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16067 # Compiler flag to generate shared objects directly from archives.
16068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16070 # Compiler flag to generate thread-safe objects.
16071 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16073 # Library versioning type.
16074 version_type=$version_type
16076 # Format of library name prefix.
16077 libname_spec=$lt_libname_spec
16079 # List of archive names. First name is the real one, the rest are links.
16080 # The last name is the one that the linker finds with -lNAME.
16081 library_names_spec=$lt_library_names_spec
16083 # The coded name of the library, if different from the real name.
16084 soname_spec=$lt_soname_spec
16086 # Commands used to build and install an old-style archive.
16087 RANLIB=$lt_RANLIB
16088 old_archive_cmds=$lt_old_archive_cmds_F77
16089 old_postinstall_cmds=$lt_old_postinstall_cmds
16090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16092 # Create an old-style archive from a shared archive.
16093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16095 # Create a temporary old-style archive to link instead of a shared archive.
16096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16098 # Commands used to build and install a shared archive.
16099 archive_cmds=$lt_archive_cmds_F77
16100 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16101 postinstall_cmds=$lt_postinstall_cmds
16102 postuninstall_cmds=$lt_postuninstall_cmds
16104 # Commands used to build a loadable module (assumed same as above if empty)
16105 module_cmds=$lt_module_cmds_F77
16106 module_expsym_cmds=$lt_module_expsym_cmds_F77
16108 # Commands to strip libraries.
16109 old_striplib=$lt_old_striplib
16110 striplib=$lt_striplib
16112 # Dependencies to place before the objects being linked to create a
16113 # shared library.
16114 predep_objects=$lt_predep_objects_F77
16116 # Dependencies to place after the objects being linked to create a
16117 # shared library.
16118 postdep_objects=$lt_postdep_objects_F77
16120 # Dependencies to place before the objects being linked to create a
16121 # shared library.
16122 predeps=$lt_predeps_F77
16124 # Dependencies to place after the objects being linked to create a
16125 # shared library.
16126 postdeps=$lt_postdeps_F77
16128 # The library search path used internally by the compiler when linking
16129 # a shared library.
16130 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16132 # Method to check whether dependent libraries are shared objects.
16133 deplibs_check_method=$lt_deplibs_check_method
16135 # Command to use when deplibs_check_method == file_magic.
16136 file_magic_cmd=$lt_file_magic_cmd
16138 # Flag that allows shared libraries with undefined symbols to be built.
16139 allow_undefined_flag=$lt_allow_undefined_flag_F77
16141 # Flag that forces no undefined symbols.
16142 no_undefined_flag=$lt_no_undefined_flag_F77
16144 # Commands used to finish a libtool library installation in a directory.
16145 finish_cmds=$lt_finish_cmds
16147 # Same as above, but a single script fragment to be evaled but not shown.
16148 finish_eval=$lt_finish_eval
16150 # Take the output of nm and produce a listing of raw symbols and C names.
16151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16153 # Transform the output of nm in a proper C declaration
16154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16156 # Transform the output of nm in a C name address pair
16157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16159 # This is the shared library runtime path variable.
16160 runpath_var=$runpath_var
16162 # This is the shared library path variable.
16163 shlibpath_var=$shlibpath_var
16165 # Is shlibpath searched before the hard-coded library search path?
16166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16168 # How to hardcode a shared library path into an executable.
16169 hardcode_action=$hardcode_action_F77
16171 # Whether we should hardcode library paths into libraries.
16172 hardcode_into_libs=$hardcode_into_libs
16174 # Flag to hardcode \$libdir into a binary during linking.
16175 # This must work even if \$libdir does not exist.
16176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16178 # If ld is used when linking, flag to hardcode \$libdir into
16179 # a binary during linking. This must work even if \$libdir does
16180 # not exist.
16181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16183 # Whether we need a single -rpath flag with a separated argument.
16184 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16186 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16187 # resulting binary.
16188 hardcode_direct=$hardcode_direct_F77
16190 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16191 # resulting binary.
16192 hardcode_minus_L=$hardcode_minus_L_F77
16194 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16195 # the resulting binary.
16196 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16198 # Set to yes if building a shared library automatically hardcodes DIR into the library
16199 # and all subsequent libraries and executables linked against it.
16200 hardcode_automatic=$hardcode_automatic_F77
16202 # Variables whose values should be saved in libtool wrapper scripts and
16203 # restored at relink time.
16204 variables_saved_for_relink="$variables_saved_for_relink"
16206 # Whether libtool must link a program against all its dependency libraries.
16207 link_all_deplibs=$link_all_deplibs_F77
16209 # Compile-time system search path for libraries
16210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16212 # Run-time system search path for libraries
16213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16215 # Fix the shell variable \$srcfile for the compiler.
16216 fix_srcfile_path=$lt_fix_srcfile_path
16218 # Set to yes if exported symbols are required.
16219 always_export_symbols=$always_export_symbols_F77
16221 # The commands to list exported symbols.
16222 export_symbols_cmds=$lt_export_symbols_cmds_F77
16224 # The commands to extract the exported symbol list from a shared archive.
16225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16227 # Symbols that should not be listed in the preloaded symbols.
16228 exclude_expsyms=$lt_exclude_expsyms_F77
16230 # Symbols that must always be exported.
16231 include_expsyms=$lt_include_expsyms_F77
16233 # ### END LIBTOOL TAG CONFIG: $tagname
16235 __EOF__
16238 else
16239 # If there is no Makefile yet, we rely on a make rule to execute
16240 # `config.status --recheck' to rerun these tests and create the
16241 # libtool script then.
16242 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16243 if test -f "$ltmain_in"; then
16244 test -f Makefile && make "$ltmain"
16249 ac_ext=c
16250 ac_cpp='$CPP $CPPFLAGS'
16251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16255 CC="$lt_save_CC"
16257 else
16258 tagname=""
16262 GCJ)
16263 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16266 # Source file extension for Java test sources.
16267 ac_ext=java
16269 # Object file extension for compiled Java test sources.
16270 objext=o
16271 objext_GCJ=$objext
16273 # Code to be used in simple compile tests
16274 lt_simple_compile_test_code="class foo {}"
16276 # Code to be used in simple link tests
16277 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16281 # If no C compiler was specified, use CC.
16282 LTCC=${LTCC-"$CC"}
16284 # If no C compiler flags were specified, use CFLAGS.
16285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16287 # Allow CC to be a program name with arguments.
16288 compiler=$CC
16291 # save warnings/boilerplate of simple test code
16292 ac_outfile=conftest.$ac_objext
16293 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16295 _lt_compiler_boilerplate=`cat conftest.err`
16296 $rm conftest*
16298 ac_outfile=conftest.$ac_objext
16299 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16301 _lt_linker_boilerplate=`cat conftest.err`
16302 $rm conftest*
16305 # Allow CC to be a program name with arguments.
16306 lt_save_CC="$CC"
16307 CC=${GCJ-"gcj"}
16308 compiler=$CC
16309 compiler_GCJ=$CC
16310 for cc_temp in $compiler""; do
16311 case $cc_temp in
16312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16314 \-*) ;;
16315 *) break;;
16316 esac
16317 done
16318 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16321 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16322 archive_cmds_need_lc_GCJ=no
16324 old_archive_cmds_GCJ=$old_archive_cmds
16327 lt_prog_compiler_no_builtin_flag_GCJ=
16329 if test "$GCC" = yes; then
16330 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338 lt_cv_prog_compiler_rtti_exceptions=no
16339 ac_outfile=conftest.$ac_objext
16340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16341 lt_compiler_flag="-fno-rtti -fno-exceptions"
16342 # Insert the option either (1) after the last *FLAGS variable, or
16343 # (2) before a word containing "conftest.", or (3) at the end.
16344 # Note that $ac_compile itself does not contain backslashes and begins
16345 # with a dollar sign (not a hyphen), so the echo should work correctly.
16346 # The option is referenced via a variable to avoid confusing sed.
16347 lt_compile=`echo "$ac_compile" | $SED \
16348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16350 -e 's:$: $lt_compiler_flag:'`
16351 (eval echo "\"\$as_me:16351: $lt_compile\"" >&5)
16352 (eval "$lt_compile" 2>conftest.err)
16353 ac_status=$?
16354 cat conftest.err >&5
16355 echo "$as_me:16355: \$? = $ac_status" >&5
16356 if (exit $ac_status) && test -s "$ac_outfile"; then
16357 # The compiler can only warn and ignore the option if not recognized
16358 # So say no if there are warnings other than the usual output.
16359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16362 lt_cv_prog_compiler_rtti_exceptions=yes
16365 $rm conftest*
16368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16372 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16373 else
16379 lt_prog_compiler_wl_GCJ=
16380 lt_prog_compiler_pic_GCJ=
16381 lt_prog_compiler_static_GCJ=
16383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16386 if test "$GCC" = yes; then
16387 lt_prog_compiler_wl_GCJ='-Wl,'
16388 lt_prog_compiler_static_GCJ='-static'
16390 case $host_os in
16391 aix*)
16392 # All AIX code is PIC.
16393 if test "$host_cpu" = ia64; then
16394 # AIX 5 now supports IA64 processor
16395 lt_prog_compiler_static_GCJ='-Bstatic'
16399 amigaos*)
16400 # FIXME: we need at least 68020 code to build shared libraries, but
16401 # adding the `-m68020' flag to GCC prevents building anything better,
16402 # like `-m68040'.
16403 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16407 # PIC is the default for these OSes.
16410 mingw* | cygwin* | pw32* | os2*)
16411 # This hack is so that the source file can tell whether it is being
16412 # built for inclusion in a dll (and should export symbols for example).
16413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16414 # (--disable-auto-import) libraries
16415 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16418 darwin* | rhapsody*)
16419 # PIC is the default on this platform
16420 # Common symbols not allowed in MH_DYLIB files
16421 lt_prog_compiler_pic_GCJ='-fno-common'
16424 interix[3-9]*)
16425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16426 # Instead, we relocate shared libraries at runtime.
16429 msdosdjgpp*)
16430 # Just because we use GCC doesn't mean we suddenly get shared libraries
16431 # on systems that don't support them.
16432 lt_prog_compiler_can_build_shared_GCJ=no
16433 enable_shared=no
16436 sysv4*MP*)
16437 if test -d /usr/nec; then
16438 lt_prog_compiler_pic_GCJ=-Kconform_pic
16442 hpux*)
16443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16444 # not for PA HP-UX.
16445 case $host_cpu in
16446 hppa*64*|ia64*)
16447 # +Z the default
16450 lt_prog_compiler_pic_GCJ='-fPIC'
16452 esac
16456 lt_prog_compiler_pic_GCJ='-fPIC'
16458 esac
16459 else
16460 # PORTME Check for flag to pass linker flags through the system compiler.
16461 case $host_os in
16462 aix*)
16463 lt_prog_compiler_wl_GCJ='-Wl,'
16464 if test "$host_cpu" = ia64; then
16465 # AIX 5 now supports IA64 processor
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16467 else
16468 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16471 darwin*)
16472 # PIC is the default on this platform
16473 # Common symbols not allowed in MH_DYLIB files
16474 case $cc_basename in
16475 xlc*)
16476 lt_prog_compiler_pic_GCJ='-qnocommon'
16477 lt_prog_compiler_wl_GCJ='-Wl,'
16479 esac
16482 mingw* | cygwin* | pw32* | os2*)
16483 # This hack is so that the source file can tell whether it is being
16484 # built for inclusion in a dll (and should export symbols for example).
16485 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16488 hpux9* | hpux10* | hpux11*)
16489 lt_prog_compiler_wl_GCJ='-Wl,'
16490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16491 # not for PA HP-UX.
16492 case $host_cpu in
16493 hppa*64*|ia64*)
16494 # +Z the default
16497 lt_prog_compiler_pic_GCJ='+Z'
16499 esac
16500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16501 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16504 irix5* | irix6* | nonstopux*)
16505 lt_prog_compiler_wl_GCJ='-Wl,'
16506 # PIC (with -KPIC) is the default.
16507 lt_prog_compiler_static_GCJ='-non_shared'
16510 newsos6)
16511 lt_prog_compiler_pic_GCJ='-KPIC'
16512 lt_prog_compiler_static_GCJ='-Bstatic'
16515 linux* | k*bsd*-gnu)
16516 case $cc_basename in
16517 icc* | ecc*)
16518 lt_prog_compiler_wl_GCJ='-Wl,'
16519 lt_prog_compiler_pic_GCJ='-KPIC'
16520 lt_prog_compiler_static_GCJ='-static'
16522 pgcc* | pgf77* | pgf90* | pgf95*)
16523 # Portland Group compilers (*not* the Pentium gcc compiler,
16524 # which looks to be a dead project)
16525 lt_prog_compiler_wl_GCJ='-Wl,'
16526 lt_prog_compiler_pic_GCJ='-fpic'
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16529 ccc*)
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 # All Alpha code is PIC.
16532 lt_prog_compiler_static_GCJ='-non_shared'
16535 case `$CC -V 2>&1 | sed 5q` in
16536 *Sun\ C*)
16537 # Sun C 5.9
16538 lt_prog_compiler_pic_GCJ='-KPIC'
16539 lt_prog_compiler_static_GCJ='-Bstatic'
16540 lt_prog_compiler_wl_GCJ='-Wl,'
16542 *Sun\ F*)
16543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16544 lt_prog_compiler_pic_GCJ='-KPIC'
16545 lt_prog_compiler_static_GCJ='-Bstatic'
16546 lt_prog_compiler_wl_GCJ=''
16548 esac
16550 esac
16553 osf3* | osf4* | osf5*)
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 # All OSF/1 code is PIC.
16556 lt_prog_compiler_static_GCJ='-non_shared'
16559 rdos*)
16560 lt_prog_compiler_static_GCJ='-non_shared'
16563 solaris*)
16564 lt_prog_compiler_pic_GCJ='-KPIC'
16565 lt_prog_compiler_static_GCJ='-Bstatic'
16566 case $cc_basename in
16567 f77* | f90* | f95*)
16568 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16570 lt_prog_compiler_wl_GCJ='-Wl,';;
16571 esac
16574 sunos4*)
16575 lt_prog_compiler_wl_GCJ='-Qoption ld '
16576 lt_prog_compiler_pic_GCJ='-PIC'
16577 lt_prog_compiler_static_GCJ='-Bstatic'
16580 sysv4 | sysv4.2uw2* | sysv4.3*)
16581 lt_prog_compiler_wl_GCJ='-Wl,'
16582 lt_prog_compiler_pic_GCJ='-KPIC'
16583 lt_prog_compiler_static_GCJ='-Bstatic'
16586 sysv4*MP*)
16587 if test -d /usr/nec ;then
16588 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16589 lt_prog_compiler_static_GCJ='-Bstatic'
16593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16594 lt_prog_compiler_wl_GCJ='-Wl,'
16595 lt_prog_compiler_pic_GCJ='-KPIC'
16596 lt_prog_compiler_static_GCJ='-Bstatic'
16599 unicos*)
16600 lt_prog_compiler_wl_GCJ='-Wl,'
16601 lt_prog_compiler_can_build_shared_GCJ=no
16604 uts4*)
16605 lt_prog_compiler_pic_GCJ='-pic'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16610 lt_prog_compiler_can_build_shared_GCJ=no
16612 esac
16615 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16616 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16619 # Check to make sure the PIC flag actually works.
16621 if test -n "$lt_prog_compiler_pic_GCJ"; then
16623 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16624 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16625 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 lt_prog_compiler_pic_works_GCJ=no
16629 ac_outfile=conftest.$ac_objext
16630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16631 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16632 # Insert the option either (1) after the last *FLAGS variable, or
16633 # (2) before a word containing "conftest.", or (3) at the end.
16634 # Note that $ac_compile itself does not contain backslashes and begins
16635 # with a dollar sign (not a hyphen), so the echo should work correctly.
16636 # The option is referenced via a variable to avoid confusing sed.
16637 lt_compile=`echo "$ac_compile" | $SED \
16638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16640 -e 's:$: $lt_compiler_flag:'`
16641 (eval echo "\"\$as_me:16641: $lt_compile\"" >&5)
16642 (eval "$lt_compile" 2>conftest.err)
16643 ac_status=$?
16644 cat conftest.err >&5
16645 echo "$as_me:16645: \$? = $ac_status" >&5
16646 if (exit $ac_status) && test -s "$ac_outfile"; then
16647 # The compiler can only warn and ignore the option if not recognized
16648 # So say no if there are warnings other than the usual output.
16649 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16652 lt_prog_compiler_pic_works_GCJ=yes
16655 $rm conftest*
16658 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16659 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16661 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16662 case $lt_prog_compiler_pic_GCJ in
16663 "" | " "*) ;;
16664 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16665 esac
16666 else
16667 lt_prog_compiler_pic_GCJ=
16668 lt_prog_compiler_can_build_shared_GCJ=no
16672 case $host_os in
16673 # For platforms which do not support PIC, -DPIC is meaningless:
16674 *djgpp*)
16675 lt_prog_compiler_pic_GCJ=
16678 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16680 esac
16683 # Check to make sure the static flag actually works.
16685 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16686 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16687 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16688 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 else
16691 lt_prog_compiler_static_works_GCJ=no
16692 save_LDFLAGS="$LDFLAGS"
16693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16696 # The linker can only warn and ignore the option if not recognized
16697 # So say no if there are warnings
16698 if test -s conftest.err; then
16699 # Append any errors to the config.log.
16700 cat conftest.err 1>&5
16701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16703 if diff conftest.exp conftest.er2 >/dev/null; then
16704 lt_prog_compiler_static_works_GCJ=yes
16706 else
16707 lt_prog_compiler_static_works_GCJ=yes
16710 $rm conftest*
16711 LDFLAGS="$save_LDFLAGS"
16714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16715 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16717 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16719 else
16720 lt_prog_compiler_static_GCJ=
16724 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16726 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729 lt_cv_prog_compiler_c_o_GCJ=no
16730 $rm -r conftest 2>/dev/null
16731 mkdir conftest
16732 cd conftest
16733 mkdir out
16734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16736 lt_compiler_flag="-o out/conftest2.$ac_objext"
16737 # Insert the option either (1) after the last *FLAGS variable, or
16738 # (2) before a word containing "conftest.", or (3) at the end.
16739 # Note that $ac_compile itself does not contain backslashes and begins
16740 # with a dollar sign (not a hyphen), so the echo should work correctly.
16741 lt_compile=`echo "$ac_compile" | $SED \
16742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16744 -e 's:$: $lt_compiler_flag:'`
16745 (eval echo "\"\$as_me:16745: $lt_compile\"" >&5)
16746 (eval "$lt_compile" 2>out/conftest.err)
16747 ac_status=$?
16748 cat out/conftest.err >&5
16749 echo "$as_me:16749: \$? = $ac_status" >&5
16750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16751 then
16752 # The compiler can only warn and ignore the option if not recognized
16753 # So say no if there are warnings
16754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16757 lt_cv_prog_compiler_c_o_GCJ=yes
16760 chmod u+w . 2>&5
16761 $rm conftest*
16762 # SGI C++ compiler will create directory out/ii_files/ for
16763 # template instantiation
16764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16765 $rm out/* && rmdir out
16766 cd ..
16767 rmdir conftest
16768 $rm conftest*
16771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16775 hard_links="nottested"
16776 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16777 # do not overwrite the value of need_locks provided by the user
16778 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16779 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16780 hard_links=yes
16781 $rm conftest*
16782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16783 touch conftest.a
16784 ln conftest.a conftest.b 2>&5 || hard_links=no
16785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16786 { echo "$as_me:$LINENO: result: $hard_links" >&5
16787 echo "${ECHO_T}$hard_links" >&6; }
16788 if test "$hard_links" = no; then
16789 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16790 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16791 need_locks=warn
16793 else
16794 need_locks=no
16797 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16800 runpath_var=
16801 allow_undefined_flag_GCJ=
16802 enable_shared_with_static_runtimes_GCJ=no
16803 archive_cmds_GCJ=
16804 archive_expsym_cmds_GCJ=
16805 old_archive_From_new_cmds_GCJ=
16806 old_archive_from_expsyms_cmds_GCJ=
16807 export_dynamic_flag_spec_GCJ=
16808 whole_archive_flag_spec_GCJ=
16809 thread_safe_flag_spec_GCJ=
16810 hardcode_libdir_flag_spec_GCJ=
16811 hardcode_libdir_flag_spec_ld_GCJ=
16812 hardcode_libdir_separator_GCJ=
16813 hardcode_direct_GCJ=no
16814 hardcode_minus_L_GCJ=no
16815 hardcode_shlibpath_var_GCJ=unsupported
16816 link_all_deplibs_GCJ=unknown
16817 hardcode_automatic_GCJ=no
16818 module_cmds_GCJ=
16819 module_expsym_cmds_GCJ=
16820 always_export_symbols_GCJ=no
16821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16822 # include_expsyms should be a list of space-separated symbols to be *always*
16823 # included in the symbol list
16824 include_expsyms_GCJ=
16825 # exclude_expsyms can be an extended regexp of symbols to exclude
16826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16828 # as well as any symbol that contains `d'.
16829 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16831 # platforms (ab)use it in PIC code, but their linkers get confused if
16832 # the symbol is explicitly referenced. Since portable code cannot
16833 # rely on this symbol name, it's probably fine to never include it in
16834 # preloaded symbol tables.
16835 extract_expsyms_cmds=
16836 # Just being paranoid about ensuring that cc_basename is set.
16837 for cc_temp in $compiler""; do
16838 case $cc_temp in
16839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16841 \-*) ;;
16842 *) break;;
16843 esac
16844 done
16845 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16847 case $host_os in
16848 cygwin* | mingw* | pw32*)
16849 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16850 # When not using gcc, we currently assume that we are using
16851 # Microsoft Visual C++.
16852 if test "$GCC" != yes; then
16853 with_gnu_ld=no
16856 interix*)
16857 # we just hope/assume this is gcc and not c89 (= MSVC++)
16858 with_gnu_ld=yes
16860 openbsd*)
16861 with_gnu_ld=no
16863 esac
16865 ld_shlibs_GCJ=yes
16866 if test "$with_gnu_ld" = yes; then
16867 # If archive_cmds runs LD, not CC, wlarc should be empty
16868 wlarc='${wl}'
16870 # Set some defaults for GNU ld with shared library support. These
16871 # are reset later if shared libraries are not supported. Putting them
16872 # here allows them to be overridden if necessary.
16873 runpath_var=LD_RUN_PATH
16874 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16875 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16876 # ancient GNU ld didn't support --whole-archive et. al.
16877 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16878 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16879 else
16880 whole_archive_flag_spec_GCJ=
16882 supports_anon_versioning=no
16883 case `$LD -v 2>/dev/null` in
16884 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16885 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16886 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16887 *\ 2.11.*) ;; # other 2.11 versions
16888 *) supports_anon_versioning=yes ;;
16889 esac
16891 # See if GNU ld supports shared libraries.
16892 case $host_os in
16893 aix3* | aix4* | aix5*)
16894 # On AIX/PPC, the GNU linker is very broken
16895 if test "$host_cpu" != ia64; then
16896 ld_shlibs_GCJ=no
16897 cat <<EOF 1>&2
16899 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16900 *** to be unable to reliably create shared libraries on AIX.
16901 *** Therefore, libtool is disabling shared libraries support. If you
16902 *** really care for shared libraries, you may want to modify your PATH
16903 *** so that a non-GNU linker is found, and then restart.
16909 amigaos*)
16910 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)'
16911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16912 hardcode_minus_L_GCJ=yes
16914 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16915 # that the semantics of dynamic libraries on AmigaOS, at least up
16916 # to version 4, is to share data among multiple programs linked
16917 # with the same dynamic library. Since this doesn't match the
16918 # behavior of shared libraries on other platforms, we can't use
16919 # them.
16920 ld_shlibs_GCJ=no
16923 beos*)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16925 allow_undefined_flag_GCJ=unsupported
16926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16927 # support --undefined. This deserves some investigation. FIXME
16928 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16929 else
16930 ld_shlibs_GCJ=no
16934 cygwin* | mingw* | pw32*)
16935 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16936 # as there is no search path for DLLs.
16937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16938 allow_undefined_flag_GCJ=unsupported
16939 always_export_symbols_GCJ=no
16940 enable_shared_with_static_runtimes_GCJ=yes
16941 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16943 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16945 # If the export-symbols file already is a .def file (1st line
16946 # is EXPORTS), use it as is; otherwise, prepend...
16947 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16948 cp $export_symbols $output_objdir/$soname.def;
16949 else
16950 echo EXPORTS > $output_objdir/$soname.def;
16951 cat $export_symbols >> $output_objdir/$soname.def;
16953 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16954 else
16955 ld_shlibs_GCJ=no
16959 interix[3-9]*)
16960 hardcode_direct_GCJ=no
16961 hardcode_shlibpath_var_GCJ=no
16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16963 export_dynamic_flag_spec_GCJ='${wl}-E'
16964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16965 # Instead, shared libraries are loaded at an image base (0x10000000 by
16966 # default) and relocated if they conflict, which is a slow very memory
16967 # consuming and fragmenting process. To avoid this, we pick a random,
16968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16970 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'
16971 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'
16974 gnu* | linux* | k*bsd*-gnu)
16975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16976 tmp_addflag=
16977 case $cc_basename,$host_cpu in
16978 pgcc*) # Portland Group C compiler
16979 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'
16980 tmp_addflag=' $pic_flag'
16982 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16983 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'
16984 tmp_addflag=' $pic_flag -Mnomain' ;;
16985 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16986 tmp_addflag=' -i_dynamic' ;;
16987 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16988 tmp_addflag=' -i_dynamic -nofor_main' ;;
16989 ifc* | ifort*) # Intel Fortran compiler
16990 tmp_addflag=' -nofor_main' ;;
16991 esac
16992 case `$CC -V 2>&1 | sed 5q` in
16993 *Sun\ C*) # Sun C 5.9
16994 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'
16995 tmp_sharedflag='-G' ;;
16996 *Sun\ F*) # Sun Fortran 8.3
16997 tmp_sharedflag='-G' ;;
16999 tmp_sharedflag='-shared' ;;
17000 esac
17001 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17003 if test $supports_anon_versioning = yes; then
17004 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17006 $echo "local: *; };" >> $output_objdir/$libname.ver~
17007 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17009 else
17010 ld_shlibs_GCJ=no
17014 netbsd*)
17015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17016 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17017 wlarc=
17018 else
17019 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17024 solaris*)
17025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17026 ld_shlibs_GCJ=no
17027 cat <<EOF 1>&2
17029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17030 *** create shared libraries on Solaris systems. Therefore, libtool
17031 *** is disabling shared libraries support. We urge you to upgrade GNU
17032 *** binutils to release 2.9.1 or newer. Another option is to modify
17033 *** your PATH or compiler configuration so that the native linker is
17034 *** used, and then restart.
17037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17038 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17039 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17040 else
17041 ld_shlibs_GCJ=no
17045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17046 case `$LD -v 2>&1` in
17047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17048 ld_shlibs_GCJ=no
17049 cat <<_LT_EOF 1>&2
17051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17052 *** reliably create shared libraries on SCO systems. Therefore, libtool
17053 *** is disabling shared libraries support. We urge you to upgrade GNU
17054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17055 *** your PATH or compiler configuration so that the native linker is
17056 *** used, and then restart.
17058 _LT_EOF
17061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17062 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17063 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17064 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17065 else
17066 ld_shlibs_GCJ=no
17069 esac
17072 sunos4*)
17073 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17074 wlarc=
17075 hardcode_direct_GCJ=yes
17076 hardcode_shlibpath_var_GCJ=no
17080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17081 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17083 else
17084 ld_shlibs_GCJ=no
17087 esac
17089 if test "$ld_shlibs_GCJ" = no; then
17090 runpath_var=
17091 hardcode_libdir_flag_spec_GCJ=
17092 export_dynamic_flag_spec_GCJ=
17093 whole_archive_flag_spec_GCJ=
17095 else
17096 # PORTME fill in a description of your system's linker (not GNU ld)
17097 case $host_os in
17098 aix3*)
17099 allow_undefined_flag_GCJ=unsupported
17100 always_export_symbols_GCJ=yes
17101 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'
17102 # Note: this linker hardcodes the directories in LIBPATH if there
17103 # are no directories specified by -L.
17104 hardcode_minus_L_GCJ=yes
17105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17106 # Neither direct hardcoding nor static linking is supported with a
17107 # broken collect2.
17108 hardcode_direct_GCJ=unsupported
17112 aix4* | aix5*)
17113 if test "$host_cpu" = ia64; then
17114 # On IA64, the linker does run time linking by default, so we don't
17115 # have to do anything special.
17116 aix_use_runtimelinking=no
17117 exp_sym_flag='-Bexport'
17118 no_entry_flag=""
17119 else
17120 # If we're using GNU nm, then we don't want the "-C" option.
17121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17122 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17123 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'
17124 else
17125 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'
17127 aix_use_runtimelinking=no
17129 # Test if we are trying to use run time linking or normal
17130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17131 # need to do runtime linking.
17132 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17133 for ld_flag in $LDFLAGS; do
17134 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17135 aix_use_runtimelinking=yes
17136 break
17138 done
17140 esac
17142 exp_sym_flag='-bexport'
17143 no_entry_flag='-bnoentry'
17146 # When large executables or shared objects are built, AIX ld can
17147 # have problems creating the table of contents. If linking a library
17148 # or program results in "error TOC overflow" add -mminimal-toc to
17149 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17150 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17152 archive_cmds_GCJ=''
17153 hardcode_direct_GCJ=yes
17154 hardcode_libdir_separator_GCJ=':'
17155 link_all_deplibs_GCJ=yes
17157 if test "$GCC" = yes; then
17158 case $host_os in aix4.[012]|aix4.[012].*)
17159 # We only want to do this on AIX 4.2 and lower, the check
17160 # below for broken collect2 doesn't work under 4.3+
17161 collect2name=`${CC} -print-prog-name=collect2`
17162 if test -f "$collect2name" && \
17163 strings "$collect2name" | grep resolve_lib_name >/dev/null
17164 then
17165 # We have reworked collect2
17167 else
17168 # We have old collect2
17169 hardcode_direct_GCJ=unsupported
17170 # It fails to find uninstalled libraries when the uninstalled
17171 # path is not listed in the libpath. Setting hardcode_minus_L
17172 # to unsupported forces relinking
17173 hardcode_minus_L_GCJ=yes
17174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17175 hardcode_libdir_separator_GCJ=
17178 esac
17179 shared_flag='-shared'
17180 if test "$aix_use_runtimelinking" = yes; then
17181 shared_flag="$shared_flag "'${wl}-G'
17183 else
17184 # not using gcc
17185 if test "$host_cpu" = ia64; then
17186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17187 # chokes on -Wl,-G. The following line is correct:
17188 shared_flag='-G'
17189 else
17190 if test "$aix_use_runtimelinking" = yes; then
17191 shared_flag='${wl}-G'
17192 else
17193 shared_flag='${wl}-bM:SRE'
17198 # It seems that -bexpall does not export symbols beginning with
17199 # underscore (_), so it is better to generate a list of symbols to export.
17200 always_export_symbols_GCJ=yes
17201 if test "$aix_use_runtimelinking" = yes; then
17202 # Warning - without using the other runtime loading flags (-brtl),
17203 # -berok will link without error, but may produce a broken library.
17204 allow_undefined_flag_GCJ='-berok'
17205 # Determine the default libpath from the value encoded in an empty executable.
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17214 main ()
17218 return 0;
17220 _ACEOF
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest$ac_exeext &&
17238 $as_test_x conftest$ac_exeext; then
17240 lt_aix_libpath_sed='
17241 /Import File Strings/,/^$/ {
17242 /^0/ {
17243 s/^0 *\(.*\)$/\1/
17247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17248 # Check for a 64-bit object if we didn't find anything.
17249 if test -z "$aix_libpath"; then
17250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17252 else
17253 echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17263 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17264 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"
17265 else
17266 if test "$host_cpu" = ia64; then
17267 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17268 allow_undefined_flag_GCJ="-z nodefs"
17269 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"
17270 else
17271 # Determine the default libpath from the value encoded in an empty executable.
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17280 main ()
17284 return 0;
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
17306 lt_aix_libpath_sed='
17307 /Import File Strings/,/^$/ {
17308 /^0/ {
17309 s/^0 *\(.*\)$/\1/
17313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314 # Check for a 64-bit object if we didn't find anything.
17315 if test -z "$aix_libpath"; then
17316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17330 # Warning - without using the other run time loading flags,
17331 # -berok will link without error, but may produce a broken library.
17332 no_undefined_flag_GCJ=' ${wl}-bernotok'
17333 allow_undefined_flag_GCJ=' ${wl}-berok'
17334 # Exported symbols can be pulled into shared objects from archives
17335 whole_archive_flag_spec_GCJ='$convenience'
17336 archive_cmds_need_lc_GCJ=yes
17337 # This is similar to how AIX traditionally builds its shared libraries.
17338 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'
17343 amigaos*)
17344 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)'
17345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17346 hardcode_minus_L_GCJ=yes
17347 # see comment about different semantics on the GNU ld section
17348 ld_shlibs_GCJ=no
17351 bsdi[45]*)
17352 export_dynamic_flag_spec_GCJ=-rdynamic
17355 cygwin* | mingw* | pw32*)
17356 # When not using gcc, we currently assume that we are using
17357 # Microsoft Visual C++.
17358 # hardcode_libdir_flag_spec is actually meaningless, as there is
17359 # no search path for DLLs.
17360 hardcode_libdir_flag_spec_GCJ=' '
17361 allow_undefined_flag_GCJ=unsupported
17362 # Tell ltmain to make .lib files, not .a files.
17363 libext=lib
17364 # Tell ltmain to make .dll files, not .so files.
17365 shrext_cmds=".dll"
17366 # FIXME: Setting linknames here is a bad hack.
17367 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17368 # The linker will automatically build a .lib file if we build a DLL.
17369 old_archive_From_new_cmds_GCJ='true'
17370 # FIXME: Should let the user specify the lib program.
17371 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17372 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17373 enable_shared_with_static_runtimes_GCJ=yes
17376 darwin* | rhapsody*)
17377 case $host_os in
17378 rhapsody* | darwin1.[012])
17379 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17381 *) # Darwin 1.3 on
17382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17383 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17384 else
17385 case ${MACOSX_DEPLOYMENT_TARGET} in
17386 10.[012])
17387 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17389 10.*)
17390 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17392 esac
17395 esac
17396 archive_cmds_need_lc_GCJ=no
17397 hardcode_direct_GCJ=no
17398 hardcode_automatic_GCJ=yes
17399 hardcode_shlibpath_var_GCJ=unsupported
17400 whole_archive_flag_spec_GCJ=''
17401 link_all_deplibs_GCJ=yes
17402 if test "$GCC" = yes ; then
17403 output_verbose_link_cmd='echo'
17404 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17405 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17407 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17408 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}'
17409 else
17410 case $cc_basename in
17411 xlc*)
17412 output_verbose_link_cmd='echo'
17413 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17414 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17416 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}'
17417 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}'
17420 ld_shlibs_GCJ=no
17422 esac
17426 dgux*)
17427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429 hardcode_shlibpath_var_GCJ=no
17432 freebsd1*)
17433 ld_shlibs_GCJ=no
17436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17437 # support. Future versions do this automatically, but an explicit c++rt0.o
17438 # does not break anything, and helps significantly (at the cost of a little
17439 # extra space).
17440 freebsd2.2*)
17441 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17442 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443 hardcode_direct_GCJ=yes
17444 hardcode_shlibpath_var_GCJ=no
17447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17448 freebsd2*)
17449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17450 hardcode_direct_GCJ=yes
17451 hardcode_minus_L_GCJ=yes
17452 hardcode_shlibpath_var_GCJ=no
17455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17456 freebsd* | dragonfly*)
17457 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17458 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17459 hardcode_direct_GCJ=yes
17460 hardcode_shlibpath_var_GCJ=no
17463 hpux9*)
17464 if test "$GCC" = yes; then
17465 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'
17466 else
17467 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'
17469 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17470 hardcode_libdir_separator_GCJ=:
17471 hardcode_direct_GCJ=yes
17473 # hardcode_minus_L: Not really in the search PATH,
17474 # but as the default location of the library.
17475 hardcode_minus_L_GCJ=yes
17476 export_dynamic_flag_spec_GCJ='${wl}-E'
17479 hpux10*)
17480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17481 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17482 else
17483 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17485 if test "$with_gnu_ld" = no; then
17486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17487 hardcode_libdir_separator_GCJ=:
17489 hardcode_direct_GCJ=yes
17490 export_dynamic_flag_spec_GCJ='${wl}-E'
17492 # hardcode_minus_L: Not really in the search PATH,
17493 # but as the default location of the library.
17494 hardcode_minus_L_GCJ=yes
17498 hpux11*)
17499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17500 case $host_cpu in
17501 hppa*64*)
17502 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 ia64*)
17505 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17508 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17510 esac
17511 else
17512 case $host_cpu in
17513 hppa*64*)
17514 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17516 ia64*)
17517 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17520 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17522 esac
17524 if test "$with_gnu_ld" = no; then
17525 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17526 hardcode_libdir_separator_GCJ=:
17528 case $host_cpu in
17529 hppa*64*|ia64*)
17530 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17531 hardcode_direct_GCJ=no
17532 hardcode_shlibpath_var_GCJ=no
17535 hardcode_direct_GCJ=yes
17536 export_dynamic_flag_spec_GCJ='${wl}-E'
17538 # hardcode_minus_L: Not really in the search PATH,
17539 # but as the default location of the library.
17540 hardcode_minus_L_GCJ=yes
17542 esac
17546 irix5* | irix6* | nonstopux*)
17547 if test "$GCC" = yes; then
17548 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'
17549 else
17550 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'
17551 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17554 hardcode_libdir_separator_GCJ=:
17555 link_all_deplibs_GCJ=yes
17558 netbsd*)
17559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17560 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17561 else
17562 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17565 hardcode_direct_GCJ=yes
17566 hardcode_shlibpath_var_GCJ=no
17569 newsos6)
17570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571 hardcode_direct_GCJ=yes
17572 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17573 hardcode_libdir_separator_GCJ=:
17574 hardcode_shlibpath_var_GCJ=no
17577 openbsd*)
17578 if test -f /usr/libexec/ld.so; then
17579 hardcode_direct_GCJ=yes
17580 hardcode_shlibpath_var_GCJ=no
17581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17582 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17584 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17585 export_dynamic_flag_spec_GCJ='${wl}-E'
17586 else
17587 case $host_os in
17588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17594 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17596 esac
17598 else
17599 ld_shlibs_GCJ=no
17603 os2*)
17604 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17605 hardcode_minus_L_GCJ=yes
17606 allow_undefined_flag_GCJ=unsupported
17607 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'
17608 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17611 osf3*)
17612 if test "$GCC" = yes; then
17613 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17614 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'
17615 else
17616 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17617 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'
17619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17620 hardcode_libdir_separator_GCJ=:
17623 osf4* | osf5*) # as osf3* with the addition of -msym flag
17624 if test "$GCC" = yes; then
17625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17626 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'
17627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17628 else
17629 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17630 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'
17631 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~
17632 $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'
17634 # Both c and cxx compiler support -rpath directly
17635 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17637 hardcode_libdir_separator_GCJ=:
17640 solaris*)
17641 no_undefined_flag_GCJ=' -z text'
17642 if test "$GCC" = yes; then
17643 wlarc='${wl}'
17644 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17645 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17646 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17647 else
17648 wlarc=''
17649 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17650 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17654 hardcode_shlibpath_var_GCJ=no
17655 case $host_os in
17656 solaris2.[0-5] | solaris2.[0-5].*) ;;
17658 # The compiler driver will combine and reorder linker options,
17659 # but understands `-z linker_flag'. GCC discards it without `$wl',
17660 # but is careful enough not to reorder.
17661 # Supported since Solaris 2.6 (maybe 2.5.1?)
17662 if test "$GCC" = yes; then
17663 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17664 else
17665 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17668 esac
17669 link_all_deplibs_GCJ=yes
17672 sunos4*)
17673 if test "x$host_vendor" = xsequent; then
17674 # Use $CC to link under sequent, because it throws in some extra .o
17675 # files that make .init and .fini sections work.
17676 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17677 else
17678 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681 hardcode_direct_GCJ=yes
17682 hardcode_minus_L_GCJ=yes
17683 hardcode_shlibpath_var_GCJ=no
17686 sysv4)
17687 case $host_vendor in
17688 sni)
17689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17690 hardcode_direct_GCJ=yes # is this really true???
17692 siemens)
17693 ## LD is ld it makes a PLAMLIB
17694 ## CC just makes a GrossModule.
17695 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17696 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17697 hardcode_direct_GCJ=no
17699 motorola)
17700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17703 esac
17704 runpath_var='LD_RUN_PATH'
17705 hardcode_shlibpath_var_GCJ=no
17708 sysv4.3*)
17709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17710 hardcode_shlibpath_var_GCJ=no
17711 export_dynamic_flag_spec_GCJ='-Bexport'
17714 sysv4*MP*)
17715 if test -d /usr/nec; then
17716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717 hardcode_shlibpath_var_GCJ=no
17718 runpath_var=LD_RUN_PATH
17719 hardcode_runpath_var=yes
17720 ld_shlibs_GCJ=yes
17724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17725 no_undefined_flag_GCJ='${wl}-z,text'
17726 archive_cmds_need_lc_GCJ=no
17727 hardcode_shlibpath_var_GCJ=no
17728 runpath_var='LD_RUN_PATH'
17730 if test "$GCC" = yes; then
17731 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17733 else
17734 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 sysv5* | sco3.2v5* | sco5v6*)
17740 # Note: We can NOT use -z defs as we might desire, because we do not
17741 # link with -lc, and that would cause any symbols used from libc to
17742 # always be unresolved, which means just about no library would
17743 # ever link correctly. If we're not using GNU ld we use -z text
17744 # though, which does catch some bad symbols but isn't as heavy-handed
17745 # as -z defs.
17746 no_undefined_flag_GCJ='${wl}-z,text'
17747 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17748 archive_cmds_need_lc_GCJ=no
17749 hardcode_shlibpath_var_GCJ=no
17750 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17751 hardcode_libdir_separator_GCJ=':'
17752 link_all_deplibs_GCJ=yes
17753 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17754 runpath_var='LD_RUN_PATH'
17756 if test "$GCC" = yes; then
17757 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 else
17760 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17761 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17765 uts4*)
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17768 hardcode_shlibpath_var_GCJ=no
17772 ld_shlibs_GCJ=no
17774 esac
17777 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17778 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17779 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17782 # Do we need to explicitly link libc?
17784 case "x$archive_cmds_need_lc_GCJ" in
17785 x|xyes)
17786 # Assume -lc should be added
17787 archive_cmds_need_lc_GCJ=yes
17789 if test "$enable_shared" = yes && test "$GCC" = yes; then
17790 case $archive_cmds_GCJ in
17791 *'~'*)
17792 # FIXME: we may have to deal with multi-command sequences.
17794 '$CC '*)
17795 # Test whether the compiler implicitly links with -lc since on some
17796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17797 # to ld, don't add -lc before -lgcc.
17798 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17800 $rm conftest*
17801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804 (eval $ac_compile) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } 2>conftest.err; then
17808 soname=conftest
17809 lib=conftest
17810 libobjs=conftest.$ac_objext
17811 deplibs=
17812 wl=$lt_prog_compiler_wl_GCJ
17813 pic_flag=$lt_prog_compiler_pic_GCJ
17814 compiler_flags=-v
17815 linker_flags=-v
17816 verstring=
17817 output_objdir=.
17818 libname=conftest
17819 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17820 allow_undefined_flag_GCJ=
17821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17822 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }
17826 then
17827 archive_cmds_need_lc_GCJ=no
17828 else
17829 archive_cmds_need_lc_GCJ=yes
17831 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17832 else
17833 cat conftest.err 1>&5
17835 $rm conftest*
17836 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17837 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17839 esac
17842 esac
17844 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17846 library_names_spec=
17847 libname_spec='lib$name'
17848 soname_spec=
17849 shrext_cmds=".so"
17850 postinstall_cmds=
17851 postuninstall_cmds=
17852 finish_cmds=
17853 finish_eval=
17854 shlibpath_var=
17855 shlibpath_overrides_runpath=unknown
17856 version_type=none
17857 dynamic_linker="$host_os ld.so"
17858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17860 need_lib_prefix=unknown
17861 hardcode_into_libs=no
17863 # when you set need_version to no, make sure it does not cause -set_version
17864 # flags to be left without arguments
17865 need_version=unknown
17867 case $host_os in
17868 aix3*)
17869 version_type=linux
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17871 shlibpath_var=LIBPATH
17873 # AIX 3 has no versioning support, so we append a major version to the name.
17874 soname_spec='${libname}${release}${shared_ext}$major'
17877 aix4* | aix5*)
17878 version_type=linux
17879 need_lib_prefix=no
17880 need_version=no
17881 hardcode_into_libs=yes
17882 if test "$host_cpu" = ia64; then
17883 # AIX 5 supports IA64
17884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17885 shlibpath_var=LD_LIBRARY_PATH
17886 else
17887 # With GCC up to 2.95.x, collect2 would create an import file
17888 # for dependence libraries. The import file would start with
17889 # the line `#! .'. This would cause the generated library to
17890 # depend on `.', always an invalid library. This was fixed in
17891 # development snapshots of GCC prior to 3.0.
17892 case $host_os in
17893 aix4 | aix4.[01] | aix4.[01].*)
17894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17895 echo ' yes '
17896 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17898 else
17899 can_build_shared=no
17902 esac
17903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17904 # soname into executable. Probably we can add versioning support to
17905 # collect2, so additional links can be useful in future.
17906 if test "$aix_use_runtimelinking" = yes; then
17907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17908 # instead of lib<name>.a to let people know that these are not
17909 # typical AIX shared libraries.
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 else
17912 # We preserve .a as extension for shared libraries through AIX4.2
17913 # and later when we are not doing run time linking.
17914 library_names_spec='${libname}${release}.a $libname.a'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17917 shlibpath_var=LIBPATH
17921 amigaos*)
17922 library_names_spec='$libname.ixlibrary $libname.a'
17923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17924 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'
17927 beos*)
17928 library_names_spec='${libname}${shared_ext}'
17929 dynamic_linker="$host_os ld.so"
17930 shlibpath_var=LIBRARY_PATH
17933 bsdi[45]*)
17934 version_type=linux
17935 need_version=no
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17939 shlibpath_var=LD_LIBRARY_PATH
17940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17942 # the default ld.so.conf also contains /usr/contrib/lib and
17943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17944 # libtool to hard-code these into programs
17947 cygwin* | mingw* | pw32*)
17948 version_type=windows
17949 shrext_cmds=".dll"
17950 need_version=no
17951 need_lib_prefix=no
17953 case $GCC,$host_os in
17954 yes,cygwin* | yes,mingw* | yes,pw32*)
17955 library_names_spec='$libname.dll.a'
17956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17957 postinstall_cmds='base_file=`basename \${file}`~
17958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17959 dldir=$destdir/`dirname \$dlpath`~
17960 test -d \$dldir || mkdir -p \$dldir~
17961 $install_prog $dir/$dlname \$dldir/$dlname~
17962 chmod a+x \$dldir/$dlname'
17963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17964 dlpath=$dir/\$dldll~
17965 $rm \$dlpath'
17966 shlibpath_overrides_runpath=yes
17968 case $host_os in
17969 cygwin*)
17970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17972 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17974 mingw*)
17975 # MinGW DLLs use traditional 'lib' prefix
17976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17978 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17979 # It is most probably a Windows format PATH printed by
17980 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17981 # path with ; separators, and with drive letters. We can handle the
17982 # drive letters (cygwin fileutils understands them), so leave them,
17983 # especially as we might pass files found there to a mingw objdump,
17984 # which wouldn't understand a cygwinified path. Ahh.
17985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17986 else
17987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17990 pw32*)
17991 # pw32 DLLs use 'pw' prefix rather than 'lib'
17992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17994 esac
17998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18000 esac
18001 dynamic_linker='Win32 ld.exe'
18002 # FIXME: first we should search . and the directory the executable is in
18003 shlibpath_var=PATH
18006 darwin* | rhapsody*)
18007 dynamic_linker="$host_os dyld"
18008 version_type=darwin
18009 need_lib_prefix=no
18010 need_version=no
18011 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18012 soname_spec='${libname}${release}${major}$shared_ext'
18013 shlibpath_overrides_runpath=yes
18014 shlibpath_var=DYLD_LIBRARY_PATH
18015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18017 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18020 dgux*)
18021 version_type=linux
18022 need_lib_prefix=no
18023 need_version=no
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18025 soname_spec='${libname}${release}${shared_ext}$major'
18026 shlibpath_var=LD_LIBRARY_PATH
18029 freebsd1*)
18030 dynamic_linker=no
18033 freebsd* | dragonfly*)
18034 # DragonFly does not have aout. When/if they implement a new
18035 # versioning mechanism, adjust this.
18036 if test -x /usr/bin/objformat; then
18037 objformat=`/usr/bin/objformat`
18038 else
18039 case $host_os in
18040 freebsd[123]*) objformat=aout ;;
18041 *) objformat=elf ;;
18042 esac
18044 # Handle Gentoo/FreeBSD as it was Linux
18045 case $host_vendor in
18046 gentoo)
18047 version_type=linux ;;
18049 version_type=freebsd-$objformat ;;
18050 esac
18052 case $version_type in
18053 freebsd-elf*)
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18055 need_version=no
18056 need_lib_prefix=no
18058 freebsd-*)
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18060 need_version=yes
18062 linux)
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 need_lib_prefix=no
18066 need_version=no
18068 esac
18069 shlibpath_var=LD_LIBRARY_PATH
18070 case $host_os in
18071 freebsd2*)
18072 shlibpath_overrides_runpath=yes
18074 freebsd3.[01]* | freebsdelf3.[01]*)
18075 shlibpath_overrides_runpath=yes
18076 hardcode_into_libs=yes
18078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18080 shlibpath_overrides_runpath=no
18081 hardcode_into_libs=yes
18083 *) # from 4.6 on, and DragonFly
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18087 esac
18090 gnu*)
18091 version_type=linux
18092 need_lib_prefix=no
18093 need_version=no
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18095 soname_spec='${libname}${release}${shared_ext}$major'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 hardcode_into_libs=yes
18100 hpux9* | hpux10* | hpux11*)
18101 # Give a soname corresponding to the major version so that dld.sl refuses to
18102 # link against other versions.
18103 version_type=sunos
18104 need_lib_prefix=no
18105 need_version=no
18106 case $host_cpu in
18107 ia64*)
18108 shrext_cmds='.so'
18109 hardcode_into_libs=yes
18110 dynamic_linker="$host_os dld.so"
18111 shlibpath_var=LD_LIBRARY_PATH
18112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18114 soname_spec='${libname}${release}${shared_ext}$major'
18115 if test "X$HPUX_IA64_MODE" = X32; then
18116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18117 else
18118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18122 hppa*64*)
18123 shrext_cmds='.sl'
18124 hardcode_into_libs=yes
18125 dynamic_linker="$host_os dld.sl"
18126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18134 shrext_cmds='.sl'
18135 dynamic_linker="$host_os dld.sl"
18136 shlibpath_var=SHLIB_PATH
18137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139 soname_spec='${libname}${release}${shared_ext}$major'
18141 esac
18142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18143 postinstall_cmds='chmod 555 $lib'
18146 interix[3-9]*)
18147 version_type=linux
18148 need_lib_prefix=no
18149 need_version=no
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18151 soname_spec='${libname}${release}${shared_ext}$major'
18152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=no
18155 hardcode_into_libs=yes
18158 irix5* | irix6* | nonstopux*)
18159 case $host_os in
18160 nonstopux*) version_type=nonstopux ;;
18162 if test "$lt_cv_prog_gnu_ld" = yes; then
18163 version_type=linux
18164 else
18165 version_type=irix
18166 fi ;;
18167 esac
18168 need_lib_prefix=no
18169 need_version=no
18170 soname_spec='${libname}${release}${shared_ext}$major'
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18172 case $host_os in
18173 irix5* | nonstopux*)
18174 libsuff= shlibsuff=
18177 case $LD in # libtool.m4 will add one of these switches to LD
18178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18179 libsuff= shlibsuff= libmagic=32-bit;;
18180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18181 libsuff=32 shlibsuff=N32 libmagic=N32;;
18182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18184 *) libsuff= shlibsuff= libmagic=never-match;;
18185 esac
18187 esac
18188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18189 shlibpath_overrides_runpath=no
18190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18192 hardcode_into_libs=yes
18195 # No shared lib support for Linux oldld, aout, or coff.
18196 linux*oldld* | linux*aout* | linux*coff*)
18197 dynamic_linker=no
18200 # This must be Linux ELF.
18201 linux* | k*bsd*-gnu)
18202 version_type=linux
18203 need_lib_prefix=no
18204 need_version=no
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206 soname_spec='${libname}${release}${shared_ext}$major'
18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath=no
18210 # This implies no fast_install, which is unacceptable.
18211 # Some rework will be needed to allow for fast_install
18212 # before this can be enabled.
18213 hardcode_into_libs=yes
18215 # Append ld.so.conf contents to the search path
18216 if test -f /etc/ld.so.conf; then
18217 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' ' '`
18218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18221 # We used to test for /lib/ld.so.1 and disable shared libraries on
18222 # powerpc, because MkLinux only supported shared libraries with the
18223 # GNU dynamic linker. Since this was broken with cross compilers,
18224 # most powerpc-linux boxes support dynamic linking these days and
18225 # people can always --disable-shared, the test was removed, and we
18226 # assume the GNU/Linux dynamic linker is in use.
18227 dynamic_linker='GNU/Linux ld.so'
18230 netbsd*)
18231 version_type=sunos
18232 need_lib_prefix=no
18233 need_version=no
18234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18237 dynamic_linker='NetBSD (a.out) ld.so'
18238 else
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 dynamic_linker='NetBSD ld.elf_so'
18243 shlibpath_var=LD_LIBRARY_PATH
18244 shlibpath_overrides_runpath=yes
18245 hardcode_into_libs=yes
18248 newsos6)
18249 version_type=linux
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 shlibpath_overrides_runpath=yes
18255 nto-qnx*)
18256 version_type=linux
18257 need_lib_prefix=no
18258 need_version=no
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=yes
18265 openbsd*)
18266 version_type=sunos
18267 sys_lib_dlsearch_path_spec="/usr/lib"
18268 need_lib_prefix=no
18269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18270 case $host_os in
18271 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18272 *) need_version=no ;;
18273 esac
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18276 shlibpath_var=LD_LIBRARY_PATH
18277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18278 case $host_os in
18279 openbsd2.[89] | openbsd2.[89].*)
18280 shlibpath_overrides_runpath=no
18283 shlibpath_overrides_runpath=yes
18285 esac
18286 else
18287 shlibpath_overrides_runpath=yes
18291 os2*)
18292 libname_spec='$name'
18293 shrext_cmds=".dll"
18294 need_lib_prefix=no
18295 library_names_spec='$libname${shared_ext} $libname.a'
18296 dynamic_linker='OS/2 ld.exe'
18297 shlibpath_var=LIBPATH
18300 osf3* | osf4* | osf5*)
18301 version_type=osf
18302 need_lib_prefix=no
18303 need_version=no
18304 soname_spec='${libname}${release}${shared_ext}$major'
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18311 rdos*)
18312 dynamic_linker=no
18315 solaris*)
18316 version_type=linux
18317 need_lib_prefix=no
18318 need_version=no
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320 soname_spec='${libname}${release}${shared_ext}$major'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=yes
18323 hardcode_into_libs=yes
18324 # ldd complains unless libraries are executable
18325 postinstall_cmds='chmod +x $lib'
18328 sunos4*)
18329 version_type=sunos
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=yes
18334 if test "$with_gnu_ld" = yes; then
18335 need_lib_prefix=no
18337 need_version=yes
18340 sysv4 | sysv4.3*)
18341 version_type=linux
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 case $host_vendor in
18346 sni)
18347 shlibpath_overrides_runpath=no
18348 need_lib_prefix=no
18349 export_dynamic_flag_spec='${wl}-Blargedynsym'
18350 runpath_var=LD_RUN_PATH
18352 siemens)
18353 need_lib_prefix=no
18355 motorola)
18356 need_lib_prefix=no
18357 need_version=no
18358 shlibpath_overrides_runpath=no
18359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18361 esac
18364 sysv4*MP*)
18365 if test -d /usr/nec ;then
18366 version_type=linux
18367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18368 soname_spec='$libname${shared_ext}.$major'
18369 shlibpath_var=LD_LIBRARY_PATH
18373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18374 version_type=freebsd-elf
18375 need_lib_prefix=no
18376 need_version=no
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 hardcode_into_libs=yes
18381 if test "$with_gnu_ld" = yes; then
18382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18383 shlibpath_overrides_runpath=no
18384 else
18385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18386 shlibpath_overrides_runpath=yes
18387 case $host_os in
18388 sco3.2v5*)
18389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18391 esac
18393 sys_lib_dlsearch_path_spec='/usr/lib'
18396 uts4*)
18397 version_type=linux
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18399 soname_spec='${libname}${release}${shared_ext}$major'
18400 shlibpath_var=LD_LIBRARY_PATH
18404 dynamic_linker=no
18406 esac
18407 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18408 echo "${ECHO_T}$dynamic_linker" >&6; }
18409 test "$dynamic_linker" = no && can_build_shared=no
18411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18412 if test "$GCC" = yes; then
18413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18416 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18417 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18418 hardcode_action_GCJ=
18419 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18420 test -n "$runpath_var_GCJ" || \
18421 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18423 # We can hardcode non-existant directories.
18424 if test "$hardcode_direct_GCJ" != no &&
18425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18426 # have to relink, otherwise we might link with an installed library
18427 # when we should be linking with a yet-to-be-installed one
18428 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18429 test "$hardcode_minus_L_GCJ" != no; then
18430 # Linking always hardcodes the temporary library directory.
18431 hardcode_action_GCJ=relink
18432 else
18433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18434 hardcode_action_GCJ=immediate
18436 else
18437 # We cannot hardcode anything, or else we can only hardcode existing
18438 # directories.
18439 hardcode_action_GCJ=unsupported
18441 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18442 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18444 if test "$hardcode_action_GCJ" = relink; then
18445 # Fast installation is not supported
18446 enable_fast_install=no
18447 elif test "$shlibpath_overrides_runpath" = yes ||
18448 test "$enable_shared" = no; then
18449 # Fast installation is not necessary
18450 enable_fast_install=needless
18454 # The else clause should only fire when bootstrapping the
18455 # libtool distribution, otherwise you forgot to ship ltmain.sh
18456 # with your package, and you will get complaints that there are
18457 # no rules to generate ltmain.sh.
18458 if test -f "$ltmain"; then
18459 # See if we are running on zsh, and set the options which allow our commands through
18460 # without removal of \ escapes.
18461 if test -n "${ZSH_VERSION+set}" ; then
18462 setopt NO_GLOB_SUBST
18464 # Now quote all the things that may contain metacharacters while being
18465 # careful not to overquote the AC_SUBSTed values. We take copies of the
18466 # variables and quote the copies for generation of the libtool script.
18467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18468 SED SHELL STRIP \
18469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18471 deplibs_check_method reload_flag reload_cmds need_locks \
18472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18473 lt_cv_sys_global_symbol_to_c_name_address \
18474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18475 old_postinstall_cmds old_postuninstall_cmds \
18476 compiler_GCJ \
18477 CC_GCJ \
18478 LD_GCJ \
18479 lt_prog_compiler_wl_GCJ \
18480 lt_prog_compiler_pic_GCJ \
18481 lt_prog_compiler_static_GCJ \
18482 lt_prog_compiler_no_builtin_flag_GCJ \
18483 export_dynamic_flag_spec_GCJ \
18484 thread_safe_flag_spec_GCJ \
18485 whole_archive_flag_spec_GCJ \
18486 enable_shared_with_static_runtimes_GCJ \
18487 old_archive_cmds_GCJ \
18488 old_archive_from_new_cmds_GCJ \
18489 predep_objects_GCJ \
18490 postdep_objects_GCJ \
18491 predeps_GCJ \
18492 postdeps_GCJ \
18493 compiler_lib_search_path_GCJ \
18494 archive_cmds_GCJ \
18495 archive_expsym_cmds_GCJ \
18496 postinstall_cmds_GCJ \
18497 postuninstall_cmds_GCJ \
18498 old_archive_from_expsyms_cmds_GCJ \
18499 allow_undefined_flag_GCJ \
18500 no_undefined_flag_GCJ \
18501 export_symbols_cmds_GCJ \
18502 hardcode_libdir_flag_spec_GCJ \
18503 hardcode_libdir_flag_spec_ld_GCJ \
18504 hardcode_libdir_separator_GCJ \
18505 hardcode_automatic_GCJ \
18506 module_cmds_GCJ \
18507 module_expsym_cmds_GCJ \
18508 lt_cv_prog_compiler_c_o_GCJ \
18509 fix_srcfile_path_GCJ \
18510 exclude_expsyms_GCJ \
18511 include_expsyms_GCJ; do
18513 case $var in
18514 old_archive_cmds_GCJ | \
18515 old_archive_from_new_cmds_GCJ | \
18516 archive_cmds_GCJ | \
18517 archive_expsym_cmds_GCJ | \
18518 module_cmds_GCJ | \
18519 module_expsym_cmds_GCJ | \
18520 old_archive_from_expsyms_cmds_GCJ | \
18521 export_symbols_cmds_GCJ | \
18522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18523 postinstall_cmds | postuninstall_cmds | \
18524 old_postinstall_cmds | old_postuninstall_cmds | \
18525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18526 # Double-quote double-evaled strings.
18527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18532 esac
18533 done
18535 case $lt_echo in
18536 *'\$0 --fallback-echo"')
18537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18539 esac
18541 cfgfile="$ofile"
18543 cat <<__EOF__ >> "$cfgfile"
18544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18548 # Shell to use when invoking shell scripts.
18549 SHELL=$lt_SHELL
18551 # Whether or not to build shared libraries.
18552 build_libtool_libs=$enable_shared
18554 # Whether or not to build static libraries.
18555 build_old_libs=$enable_static
18557 # Whether or not to add -lc for building shared libraries.
18558 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18560 # Whether or not to disallow shared libs when runtime libs are static
18561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18563 # Whether or not to optimize for fast installation.
18564 fast_install=$enable_fast_install
18566 # The host system.
18567 host_alias=$host_alias
18568 host=$host
18569 host_os=$host_os
18571 # The build system.
18572 build_alias=$build_alias
18573 build=$build
18574 build_os=$build_os
18576 # An echo program that does not interpret backslashes.
18577 echo=$lt_echo
18579 # The archiver.
18580 AR=$lt_AR
18581 AR_FLAGS=$lt_AR_FLAGS
18583 # A C compiler.
18584 LTCC=$lt_LTCC
18586 # LTCC compiler flags.
18587 LTCFLAGS=$lt_LTCFLAGS
18589 # A language-specific compiler.
18590 CC=$lt_compiler_GCJ
18592 # Is the compiler the GNU C compiler?
18593 with_gcc=$GCC_GCJ
18595 # An ERE matcher.
18596 EGREP=$lt_EGREP
18598 # The linker used to build libraries.
18599 LD=$lt_LD_GCJ
18601 # Whether we need hard or soft links.
18602 LN_S=$lt_LN_S
18604 # A BSD-compatible nm program.
18605 NM=$lt_NM
18607 # A symbol stripping program
18608 STRIP=$lt_STRIP
18610 # Used to examine libraries when file_magic_cmd begins "file"
18611 MAGIC_CMD=$MAGIC_CMD
18613 # Used on cygwin: DLL creation program.
18614 DLLTOOL="$DLLTOOL"
18616 # Used on cygwin: object dumper.
18617 OBJDUMP="$OBJDUMP"
18619 # Used on cygwin: assembler.
18620 AS="$AS"
18622 # The name of the directory that contains temporary libtool files.
18623 objdir=$objdir
18625 # How to create reloadable object files.
18626 reload_flag=$lt_reload_flag
18627 reload_cmds=$lt_reload_cmds
18629 # How to pass a linker flag through the compiler.
18630 wl=$lt_lt_prog_compiler_wl_GCJ
18632 # Object file suffix (normally "o").
18633 objext="$ac_objext"
18635 # Old archive suffix (normally "a").
18636 libext="$libext"
18638 # Shared library suffix (normally ".so").
18639 shrext_cmds='$shrext_cmds'
18641 # Executable file suffix (normally "").
18642 exeext="$exeext"
18644 # Additional compiler flags for building library objects.
18645 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18646 pic_mode=$pic_mode
18648 # What is the maximum length of a command?
18649 max_cmd_len=$lt_cv_sys_max_cmd_len
18651 # Does compiler simultaneously support -c and -o options?
18652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18654 # Must we lock files when doing compilation?
18655 need_locks=$lt_need_locks
18657 # Do we need the lib prefix for modules?
18658 need_lib_prefix=$need_lib_prefix
18660 # Do we need a version for libraries?
18661 need_version=$need_version
18663 # Whether dlopen is supported.
18664 dlopen_support=$enable_dlopen
18666 # Whether dlopen of programs is supported.
18667 dlopen_self=$enable_dlopen_self
18669 # Whether dlopen of statically linked programs is supported.
18670 dlopen_self_static=$enable_dlopen_self_static
18672 # Compiler flag to prevent dynamic linking.
18673 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18675 # Compiler flag to turn off builtin functions.
18676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18678 # Compiler flag to allow reflexive dlopens.
18679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18681 # Compiler flag to generate shared objects directly from archives.
18682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18684 # Compiler flag to generate thread-safe objects.
18685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18687 # Library versioning type.
18688 version_type=$version_type
18690 # Format of library name prefix.
18691 libname_spec=$lt_libname_spec
18693 # List of archive names. First name is the real one, the rest are links.
18694 # The last name is the one that the linker finds with -lNAME.
18695 library_names_spec=$lt_library_names_spec
18697 # The coded name of the library, if different from the real name.
18698 soname_spec=$lt_soname_spec
18700 # Commands used to build and install an old-style archive.
18701 RANLIB=$lt_RANLIB
18702 old_archive_cmds=$lt_old_archive_cmds_GCJ
18703 old_postinstall_cmds=$lt_old_postinstall_cmds
18704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18706 # Create an old-style archive from a shared archive.
18707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18709 # Create a temporary old-style archive to link instead of a shared archive.
18710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18712 # Commands used to build and install a shared archive.
18713 archive_cmds=$lt_archive_cmds_GCJ
18714 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18715 postinstall_cmds=$lt_postinstall_cmds
18716 postuninstall_cmds=$lt_postuninstall_cmds
18718 # Commands used to build a loadable module (assumed same as above if empty)
18719 module_cmds=$lt_module_cmds_GCJ
18720 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18722 # Commands to strip libraries.
18723 old_striplib=$lt_old_striplib
18724 striplib=$lt_striplib
18726 # Dependencies to place before the objects being linked to create a
18727 # shared library.
18728 predep_objects=$lt_predep_objects_GCJ
18730 # Dependencies to place after the objects being linked to create a
18731 # shared library.
18732 postdep_objects=$lt_postdep_objects_GCJ
18734 # Dependencies to place before the objects being linked to create a
18735 # shared library.
18736 predeps=$lt_predeps_GCJ
18738 # Dependencies to place after the objects being linked to create a
18739 # shared library.
18740 postdeps=$lt_postdeps_GCJ
18742 # The library search path used internally by the compiler when linking
18743 # a shared library.
18744 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18746 # Method to check whether dependent libraries are shared objects.
18747 deplibs_check_method=$lt_deplibs_check_method
18749 # Command to use when deplibs_check_method == file_magic.
18750 file_magic_cmd=$lt_file_magic_cmd
18752 # Flag that allows shared libraries with undefined symbols to be built.
18753 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18755 # Flag that forces no undefined symbols.
18756 no_undefined_flag=$lt_no_undefined_flag_GCJ
18758 # Commands used to finish a libtool library installation in a directory.
18759 finish_cmds=$lt_finish_cmds
18761 # Same as above, but a single script fragment to be evaled but not shown.
18762 finish_eval=$lt_finish_eval
18764 # Take the output of nm and produce a listing of raw symbols and C names.
18765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18767 # Transform the output of nm in a proper C declaration
18768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18770 # Transform the output of nm in a C name address pair
18771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18773 # This is the shared library runtime path variable.
18774 runpath_var=$runpath_var
18776 # This is the shared library path variable.
18777 shlibpath_var=$shlibpath_var
18779 # Is shlibpath searched before the hard-coded library search path?
18780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18782 # How to hardcode a shared library path into an executable.
18783 hardcode_action=$hardcode_action_GCJ
18785 # Whether we should hardcode library paths into libraries.
18786 hardcode_into_libs=$hardcode_into_libs
18788 # Flag to hardcode \$libdir into a binary during linking.
18789 # This must work even if \$libdir does not exist.
18790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18792 # If ld is used when linking, flag to hardcode \$libdir into
18793 # a binary during linking. This must work even if \$libdir does
18794 # not exist.
18795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18797 # Whether we need a single -rpath flag with a separated argument.
18798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18801 # resulting binary.
18802 hardcode_direct=$hardcode_direct_GCJ
18804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18805 # resulting binary.
18806 hardcode_minus_L=$hardcode_minus_L_GCJ
18808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18809 # the resulting binary.
18810 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18812 # Set to yes if building a shared library automatically hardcodes DIR into the library
18813 # and all subsequent libraries and executables linked against it.
18814 hardcode_automatic=$hardcode_automatic_GCJ
18816 # Variables whose values should be saved in libtool wrapper scripts and
18817 # restored at relink time.
18818 variables_saved_for_relink="$variables_saved_for_relink"
18820 # Whether libtool must link a program against all its dependency libraries.
18821 link_all_deplibs=$link_all_deplibs_GCJ
18823 # Compile-time system search path for libraries
18824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18826 # Run-time system search path for libraries
18827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18829 # Fix the shell variable \$srcfile for the compiler.
18830 fix_srcfile_path=$lt_fix_srcfile_path
18832 # Set to yes if exported symbols are required.
18833 always_export_symbols=$always_export_symbols_GCJ
18835 # The commands to list exported symbols.
18836 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18838 # The commands to extract the exported symbol list from a shared archive.
18839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18841 # Symbols that should not be listed in the preloaded symbols.
18842 exclude_expsyms=$lt_exclude_expsyms_GCJ
18844 # Symbols that must always be exported.
18845 include_expsyms=$lt_include_expsyms_GCJ
18847 # ### END LIBTOOL TAG CONFIG: $tagname
18849 __EOF__
18852 else
18853 # If there is no Makefile yet, we rely on a make rule to execute
18854 # `config.status --recheck' to rerun these tests and create the
18855 # libtool script then.
18856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18857 if test -f "$ltmain_in"; then
18858 test -f Makefile && make "$ltmain"
18863 ac_ext=c
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18869 CC="$lt_save_CC"
18871 else
18872 tagname=""
18879 # Source file extension for RC test sources.
18880 ac_ext=rc
18882 # Object file extension for compiled RC test sources.
18883 objext=o
18884 objext_RC=$objext
18886 # Code to be used in simple compile tests
18887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18889 # Code to be used in simple link tests
18890 lt_simple_link_test_code="$lt_simple_compile_test_code"
18892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18894 # If no C compiler was specified, use CC.
18895 LTCC=${LTCC-"$CC"}
18897 # If no C compiler flags were specified, use CFLAGS.
18898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18900 # Allow CC to be a program name with arguments.
18901 compiler=$CC
18904 # save warnings/boilerplate of simple test code
18905 ac_outfile=conftest.$ac_objext
18906 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18907 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18908 _lt_compiler_boilerplate=`cat conftest.err`
18909 $rm conftest*
18911 ac_outfile=conftest.$ac_objext
18912 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18913 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18914 _lt_linker_boilerplate=`cat conftest.err`
18915 $rm conftest*
18918 # Allow CC to be a program name with arguments.
18919 lt_save_CC="$CC"
18920 CC=${RC-"windres"}
18921 compiler=$CC
18922 compiler_RC=$CC
18923 for cc_temp in $compiler""; do
18924 case $cc_temp in
18925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18927 \-*) ;;
18928 *) break;;
18929 esac
18930 done
18931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18933 lt_cv_prog_compiler_c_o_RC=yes
18935 # The else clause should only fire when bootstrapping the
18936 # libtool distribution, otherwise you forgot to ship ltmain.sh
18937 # with your package, and you will get complaints that there are
18938 # no rules to generate ltmain.sh.
18939 if test -f "$ltmain"; then
18940 # See if we are running on zsh, and set the options which allow our commands through
18941 # without removal of \ escapes.
18942 if test -n "${ZSH_VERSION+set}" ; then
18943 setopt NO_GLOB_SUBST
18945 # Now quote all the things that may contain metacharacters while being
18946 # careful not to overquote the AC_SUBSTed values. We take copies of the
18947 # variables and quote the copies for generation of the libtool script.
18948 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18949 SED SHELL STRIP \
18950 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18951 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18952 deplibs_check_method reload_flag reload_cmds need_locks \
18953 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18954 lt_cv_sys_global_symbol_to_c_name_address \
18955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18956 old_postinstall_cmds old_postuninstall_cmds \
18957 compiler_RC \
18958 CC_RC \
18959 LD_RC \
18960 lt_prog_compiler_wl_RC \
18961 lt_prog_compiler_pic_RC \
18962 lt_prog_compiler_static_RC \
18963 lt_prog_compiler_no_builtin_flag_RC \
18964 export_dynamic_flag_spec_RC \
18965 thread_safe_flag_spec_RC \
18966 whole_archive_flag_spec_RC \
18967 enable_shared_with_static_runtimes_RC \
18968 old_archive_cmds_RC \
18969 old_archive_from_new_cmds_RC \
18970 predep_objects_RC \
18971 postdep_objects_RC \
18972 predeps_RC \
18973 postdeps_RC \
18974 compiler_lib_search_path_RC \
18975 archive_cmds_RC \
18976 archive_expsym_cmds_RC \
18977 postinstall_cmds_RC \
18978 postuninstall_cmds_RC \
18979 old_archive_from_expsyms_cmds_RC \
18980 allow_undefined_flag_RC \
18981 no_undefined_flag_RC \
18982 export_symbols_cmds_RC \
18983 hardcode_libdir_flag_spec_RC \
18984 hardcode_libdir_flag_spec_ld_RC \
18985 hardcode_libdir_separator_RC \
18986 hardcode_automatic_RC \
18987 module_cmds_RC \
18988 module_expsym_cmds_RC \
18989 lt_cv_prog_compiler_c_o_RC \
18990 fix_srcfile_path_RC \
18991 exclude_expsyms_RC \
18992 include_expsyms_RC; do
18994 case $var in
18995 old_archive_cmds_RC | \
18996 old_archive_from_new_cmds_RC | \
18997 archive_cmds_RC | \
18998 archive_expsym_cmds_RC | \
18999 module_cmds_RC | \
19000 module_expsym_cmds_RC | \
19001 old_archive_from_expsyms_cmds_RC | \
19002 export_symbols_cmds_RC | \
19003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19004 postinstall_cmds | postuninstall_cmds | \
19005 old_postinstall_cmds | old_postuninstall_cmds | \
19006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19007 # Double-quote double-evaled strings.
19008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19013 esac
19014 done
19016 case $lt_echo in
19017 *'\$0 --fallback-echo"')
19018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19020 esac
19022 cfgfile="$ofile"
19024 cat <<__EOF__ >> "$cfgfile"
19025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19029 # Shell to use when invoking shell scripts.
19030 SHELL=$lt_SHELL
19032 # Whether or not to build shared libraries.
19033 build_libtool_libs=$enable_shared
19035 # Whether or not to build static libraries.
19036 build_old_libs=$enable_static
19038 # Whether or not to add -lc for building shared libraries.
19039 build_libtool_need_lc=$archive_cmds_need_lc_RC
19041 # Whether or not to disallow shared libs when runtime libs are static
19042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19044 # Whether or not to optimize for fast installation.
19045 fast_install=$enable_fast_install
19047 # The host system.
19048 host_alias=$host_alias
19049 host=$host
19050 host_os=$host_os
19052 # The build system.
19053 build_alias=$build_alias
19054 build=$build
19055 build_os=$build_os
19057 # An echo program that does not interpret backslashes.
19058 echo=$lt_echo
19060 # The archiver.
19061 AR=$lt_AR
19062 AR_FLAGS=$lt_AR_FLAGS
19064 # A C compiler.
19065 LTCC=$lt_LTCC
19067 # LTCC compiler flags.
19068 LTCFLAGS=$lt_LTCFLAGS
19070 # A language-specific compiler.
19071 CC=$lt_compiler_RC
19073 # Is the compiler the GNU C compiler?
19074 with_gcc=$GCC_RC
19076 # An ERE matcher.
19077 EGREP=$lt_EGREP
19079 # The linker used to build libraries.
19080 LD=$lt_LD_RC
19082 # Whether we need hard or soft links.
19083 LN_S=$lt_LN_S
19085 # A BSD-compatible nm program.
19086 NM=$lt_NM
19088 # A symbol stripping program
19089 STRIP=$lt_STRIP
19091 # Used to examine libraries when file_magic_cmd begins "file"
19092 MAGIC_CMD=$MAGIC_CMD
19094 # Used on cygwin: DLL creation program.
19095 DLLTOOL="$DLLTOOL"
19097 # Used on cygwin: object dumper.
19098 OBJDUMP="$OBJDUMP"
19100 # Used on cygwin: assembler.
19101 AS="$AS"
19103 # The name of the directory that contains temporary libtool files.
19104 objdir=$objdir
19106 # How to create reloadable object files.
19107 reload_flag=$lt_reload_flag
19108 reload_cmds=$lt_reload_cmds
19110 # How to pass a linker flag through the compiler.
19111 wl=$lt_lt_prog_compiler_wl_RC
19113 # Object file suffix (normally "o").
19114 objext="$ac_objext"
19116 # Old archive suffix (normally "a").
19117 libext="$libext"
19119 # Shared library suffix (normally ".so").
19120 shrext_cmds='$shrext_cmds'
19122 # Executable file suffix (normally "").
19123 exeext="$exeext"
19125 # Additional compiler flags for building library objects.
19126 pic_flag=$lt_lt_prog_compiler_pic_RC
19127 pic_mode=$pic_mode
19129 # What is the maximum length of a command?
19130 max_cmd_len=$lt_cv_sys_max_cmd_len
19132 # Does compiler simultaneously support -c and -o options?
19133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19135 # Must we lock files when doing compilation?
19136 need_locks=$lt_need_locks
19138 # Do we need the lib prefix for modules?
19139 need_lib_prefix=$need_lib_prefix
19141 # Do we need a version for libraries?
19142 need_version=$need_version
19144 # Whether dlopen is supported.
19145 dlopen_support=$enable_dlopen
19147 # Whether dlopen of programs is supported.
19148 dlopen_self=$enable_dlopen_self
19150 # Whether dlopen of statically linked programs is supported.
19151 dlopen_self_static=$enable_dlopen_self_static
19153 # Compiler flag to prevent dynamic linking.
19154 link_static_flag=$lt_lt_prog_compiler_static_RC
19156 # Compiler flag to turn off builtin functions.
19157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19159 # Compiler flag to allow reflexive dlopens.
19160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19162 # Compiler flag to generate shared objects directly from archives.
19163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19165 # Compiler flag to generate thread-safe objects.
19166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19168 # Library versioning type.
19169 version_type=$version_type
19171 # Format of library name prefix.
19172 libname_spec=$lt_libname_spec
19174 # List of archive names. First name is the real one, the rest are links.
19175 # The last name is the one that the linker finds with -lNAME.
19176 library_names_spec=$lt_library_names_spec
19178 # The coded name of the library, if different from the real name.
19179 soname_spec=$lt_soname_spec
19181 # Commands used to build and install an old-style archive.
19182 RANLIB=$lt_RANLIB
19183 old_archive_cmds=$lt_old_archive_cmds_RC
19184 old_postinstall_cmds=$lt_old_postinstall_cmds
19185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19187 # Create an old-style archive from a shared archive.
19188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19190 # Create a temporary old-style archive to link instead of a shared archive.
19191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19193 # Commands used to build and install a shared archive.
19194 archive_cmds=$lt_archive_cmds_RC
19195 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19196 postinstall_cmds=$lt_postinstall_cmds
19197 postuninstall_cmds=$lt_postuninstall_cmds
19199 # Commands used to build a loadable module (assumed same as above if empty)
19200 module_cmds=$lt_module_cmds_RC
19201 module_expsym_cmds=$lt_module_expsym_cmds_RC
19203 # Commands to strip libraries.
19204 old_striplib=$lt_old_striplib
19205 striplib=$lt_striplib
19207 # Dependencies to place before the objects being linked to create a
19208 # shared library.
19209 predep_objects=$lt_predep_objects_RC
19211 # Dependencies to place after the objects being linked to create a
19212 # shared library.
19213 postdep_objects=$lt_postdep_objects_RC
19215 # Dependencies to place before the objects being linked to create a
19216 # shared library.
19217 predeps=$lt_predeps_RC
19219 # Dependencies to place after the objects being linked to create a
19220 # shared library.
19221 postdeps=$lt_postdeps_RC
19223 # The library search path used internally by the compiler when linking
19224 # a shared library.
19225 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19227 # Method to check whether dependent libraries are shared objects.
19228 deplibs_check_method=$lt_deplibs_check_method
19230 # Command to use when deplibs_check_method == file_magic.
19231 file_magic_cmd=$lt_file_magic_cmd
19233 # Flag that allows shared libraries with undefined symbols to be built.
19234 allow_undefined_flag=$lt_allow_undefined_flag_RC
19236 # Flag that forces no undefined symbols.
19237 no_undefined_flag=$lt_no_undefined_flag_RC
19239 # Commands used to finish a libtool library installation in a directory.
19240 finish_cmds=$lt_finish_cmds
19242 # Same as above, but a single script fragment to be evaled but not shown.
19243 finish_eval=$lt_finish_eval
19245 # Take the output of nm and produce a listing of raw symbols and C names.
19246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19248 # Transform the output of nm in a proper C declaration
19249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19251 # Transform the output of nm in a C name address pair
19252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19254 # This is the shared library runtime path variable.
19255 runpath_var=$runpath_var
19257 # This is the shared library path variable.
19258 shlibpath_var=$shlibpath_var
19260 # Is shlibpath searched before the hard-coded library search path?
19261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19263 # How to hardcode a shared library path into an executable.
19264 hardcode_action=$hardcode_action_RC
19266 # Whether we should hardcode library paths into libraries.
19267 hardcode_into_libs=$hardcode_into_libs
19269 # Flag to hardcode \$libdir into a binary during linking.
19270 # This must work even if \$libdir does not exist.
19271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19273 # If ld is used when linking, flag to hardcode \$libdir into
19274 # a binary during linking. This must work even if \$libdir does
19275 # not exist.
19276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19278 # Whether we need a single -rpath flag with a separated argument.
19279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19282 # resulting binary.
19283 hardcode_direct=$hardcode_direct_RC
19285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19286 # resulting binary.
19287 hardcode_minus_L=$hardcode_minus_L_RC
19289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19290 # the resulting binary.
19291 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19293 # Set to yes if building a shared library automatically hardcodes DIR into the library
19294 # and all subsequent libraries and executables linked against it.
19295 hardcode_automatic=$hardcode_automatic_RC
19297 # Variables whose values should be saved in libtool wrapper scripts and
19298 # restored at relink time.
19299 variables_saved_for_relink="$variables_saved_for_relink"
19301 # Whether libtool must link a program against all its dependency libraries.
19302 link_all_deplibs=$link_all_deplibs_RC
19304 # Compile-time system search path for libraries
19305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19307 # Run-time system search path for libraries
19308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19310 # Fix the shell variable \$srcfile for the compiler.
19311 fix_srcfile_path=$lt_fix_srcfile_path
19313 # Set to yes if exported symbols are required.
19314 always_export_symbols=$always_export_symbols_RC
19316 # The commands to list exported symbols.
19317 export_symbols_cmds=$lt_export_symbols_cmds_RC
19319 # The commands to extract the exported symbol list from a shared archive.
19320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19322 # Symbols that should not be listed in the preloaded symbols.
19323 exclude_expsyms=$lt_exclude_expsyms_RC
19325 # Symbols that must always be exported.
19326 include_expsyms=$lt_include_expsyms_RC
19328 # ### END LIBTOOL TAG CONFIG: $tagname
19330 __EOF__
19333 else
19334 # If there is no Makefile yet, we rely on a make rule to execute
19335 # `config.status --recheck' to rerun these tests and create the
19336 # libtool script then.
19337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19338 if test -f "$ltmain_in"; then
19339 test -f Makefile && make "$ltmain"
19344 ac_ext=c
19345 ac_cpp='$CPP $CPPFLAGS'
19346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350 CC="$lt_save_CC"
19355 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19356 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19357 { (exit 1); exit 1; }; }
19359 esac
19361 # Append the new tag name to the list of available tags.
19362 if test -n "$tagname" ; then
19363 available_tags="$available_tags $tagname"
19366 done
19367 IFS="$lt_save_ifs"
19369 # Now substitute the updated list of available tags.
19370 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19371 mv "${ofile}T" "$ofile"
19372 chmod +x "$ofile"
19373 else
19374 rm -f "${ofile}T"
19375 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19376 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19377 { (exit 1); exit 1; }; }
19383 # This can be used to rebuild libtool when needed
19384 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19386 # Always use our own libtool.
19387 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19389 # Prevent multiple expansion
19412 cat >>confdefs.h <<\_ACEOF
19413 #define PPPD_VERSION
19414 _ACEOF
19417 cat >>confdefs.h <<\_ACEOF
19418 #define KERNELVERSION
19419 _ACEOF
19422 CFLAGS="${CFLAGS:=}"
19424 { echo "$as_me:$LINENO: checking for linux kernel herders" >&5
19425 echo $ECHO_N "checking for linux kernel herders... $ECHO_C" >&6; }
19426 if test -n "${KDIR}"; then
19427 if test -f ${KDIR}/include/linux/version.h; then
19428 header=${KDIR}/include
19429 else
19430 { echo "$as_me:$LINENO: result: not found" >&5
19431 echo "${ECHO_T}not found" >&6; }
19432 { { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5
19433 echo "$as_me: error: Could not find linux kernel headers" >&2;}
19434 { (exit 1); exit 1; }; }
19436 else
19437 kernel=`uname -r`
19438 if test -f /usr/src/linux/include/linux/version.h; then
19439 header=/usr/src/linux/include
19440 elif test -f /lib/modules/${kernel}/build/include/linux/version.h; then
19441 header=/lib/modules/${kernel}/build/include
19442 else
19443 { echo "$as_me:$LINENO: result: not found" >&5
19444 echo "${ECHO_T}not found" >&6; }
19445 { { echo "$as_me:$LINENO: error: Could not find linux kernel headers" >&5
19446 echo "$as_me: error: Could not find linux kernel headers" >&2;}
19447 { (exit 1); exit 1; }; }
19450 VERSION=$(cat ${header/include}Makefile | grep '^VERSION = ' | awk '{print $3}')
19451 PATCHLEVEL=$(cat ${header/include}Makefile | grep '^PATCHLEVEL = ' | awk '{print $3}')
19452 SUBLEVEL=$(cat ${header/include}Makefile | grep '^SUBLEVEL = ' | awk '{print $3}')
19453 EXTRAVERSION=$(cat ${header/include}Makefile | grep '^EXTRAVERSION = ' | awk '{print $3}')
19454 KERNELVERSION=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION
19455 { echo "$as_me:$LINENO: result: found ($KERNELVERSION at ${header/include})" >&5
19456 echo "${ECHO_T}found ($KERNELVERSION at ${header/include})" >&6; }
19457 cat >>confdefs.h <<_ACEOF
19458 #define KERNELVERSION "$KERNELVERSION"
19459 _ACEOF
19463 CFLAGS="${CFLAGS} -I."
19465 { echo "$as_me:$LINENO: checking for pppd" >&5
19466 echo $ECHO_N "checking for pppd... $ECHO_C" >&6; }
19467 if test -n "${PPPDIR}"; then
19468 if test -f ${PPPDIR}/pppd/patchlevel.h; then
19469 pppd=${PPPDIR}/pppd
19470 else
19471 { echo "$as_me:$LINENO: result: not found" >&5
19472 echo "${ECHO_T}not found" >&6; }
19473 { { echo "$as_me:$LINENO: error: Could not find pppd" >&5
19474 echo "$as_me: error: Could not find pppd" >&2;}
19475 { (exit 1); exit 1; }; }
19477 pppd_ver=`cat ${pppd}/patchlevel.h | awk '/VERSION/ {gsub(/"/,"",$3);print $3}'`
19478 else
19479 pppd=`which pppd 2>&1`
19480 if test $? -eq 1; then
19481 pppd=""
19482 for path in /usr/sbin /usr/local/sbin /usr/bin /usr/local/bin /sbin; do
19483 if test -x ${path}/pppd; then
19484 pppd=${path}/pppd
19485 break;
19487 done
19490 if test -z "${pppd}"; then
19491 { echo "$as_me:$LINENO: result: not found" >&5
19492 echo "${ECHO_T}not found" >&6; }
19493 { { echo "$as_me:$LINENO: error: Could not find pppd" >&5
19494 echo "$as_me: error: Could not find pppd" >&2;}
19495 { (exit 1); exit 1; }; }
19497 pppd_ver=`${pppd} --version 2>&1 | grep version | sed 's/pppd version //'`
19499 { echo "$as_me:$LINENO: result: $pppd ($pppd_ver)" >&5
19500 echo "${ECHO_T}$pppd ($pppd_ver)" >&6; }
19501 cat >>confdefs.h <<_ACEOF
19502 #define PPPD_VERSION "${pppd_ver}"
19503 _ACEOF
19506 echo '==============================================================================='
19508 echo 'Configuration chosen:'
19509 echo ' PPPD: '${pppd_ver}
19510 echo ' linux kernel : '$KERNELVERSION at ${header/include}
19512 ac_config_files="$ac_config_files Makefile src/Makefile"
19514 cat >confcache <<\_ACEOF
19515 # This file is a shell script that caches the results of configure
19516 # tests run on this system so they can be shared between configure
19517 # scripts and configure runs, see configure's option --config-cache.
19518 # It is not useful on other systems. If it contains results you don't
19519 # want to keep, you may remove or edit it.
19521 # config.status only pays attention to the cache file if you give it
19522 # the --recheck option to rerun configure.
19524 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19525 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19526 # following values.
19528 _ACEOF
19530 # The following way of writing the cache mishandles newlines in values,
19531 # but we know of no workaround that is simple, portable, and efficient.
19532 # So, we kill variables containing newlines.
19533 # Ultrix sh set writes to stderr and can't be redirected directly,
19534 # and sets the high bit in the cache file unless we assign to the vars.
19536 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19537 eval ac_val=\$$ac_var
19538 case $ac_val in #(
19539 *${as_nl}*)
19540 case $ac_var in #(
19541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19543 esac
19544 case $ac_var in #(
19545 _ | IFS | as_nl) ;; #(
19546 *) $as_unset $ac_var ;;
19547 esac ;;
19548 esac
19549 done
19551 (set) 2>&1 |
19552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19553 *${as_nl}ac_space=\ *)
19554 # `set' does not quote correctly, so add quotes (double-quote
19555 # substitution turns \\\\ into \\, and sed turns \\ into \).
19556 sed -n \
19557 "s/'/'\\\\''/g;
19558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19559 ;; #(
19561 # `set' quotes correctly as required by POSIX, so do not add quotes.
19562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19564 esac |
19565 sort
19567 sed '
19568 /^ac_cv_env_/b end
19569 t clear
19570 :clear
19571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19572 t end
19573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19574 :end' >>confcache
19575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19576 if test -w "$cache_file"; then
19577 test "x$cache_file" != "x/dev/null" &&
19578 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19579 echo "$as_me: updating cache $cache_file" >&6;}
19580 cat confcache >$cache_file
19581 else
19582 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19583 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19586 rm -f confcache
19588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19589 # Let make expand exec_prefix.
19590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19592 DEFS=-DHAVE_CONFIG_H
19594 ac_libobjs=
19595 ac_ltlibobjs=
19596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19597 # 1. Remove the extension, and $U if already installed.
19598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19599 ac_i=`echo "$ac_i" | sed "$ac_script"`
19600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19601 # will be set to the directory where LIBOBJS objects are built.
19602 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19603 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19604 done
19605 LIBOBJS=$ac_libobjs
19607 LTLIBOBJS=$ac_ltlibobjs
19610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19611 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19612 Usually this means the macro was only invoked conditionally." >&5
19613 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19614 Usually this means the macro was only invoked conditionally." >&2;}
19615 { (exit 1); exit 1; }; }
19617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19619 Usually this means the macro was only invoked conditionally." >&5
19620 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19621 Usually this means the macro was only invoked conditionally." >&2;}
19622 { (exit 1); exit 1; }; }
19624 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19625 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19626 Usually this means the macro was only invoked conditionally." >&5
19627 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19628 Usually this means the macro was only invoked conditionally." >&2;}
19629 { (exit 1); exit 1; }; }
19632 : ${CONFIG_STATUS=./config.status}
19633 ac_clean_files_save=$ac_clean_files
19634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19635 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19636 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19637 cat >$CONFIG_STATUS <<_ACEOF
19638 #! $SHELL
19639 # Generated by $as_me.
19640 # Run this file to recreate the current configuration.
19641 # Compiler output produced by configure, useful for debugging
19642 # configure, is in config.log if it exists.
19644 debug=false
19645 ac_cs_recheck=false
19646 ac_cs_silent=false
19647 SHELL=\${CONFIG_SHELL-$SHELL}
19648 _ACEOF
19650 cat >>$CONFIG_STATUS <<\_ACEOF
19651 ## --------------------- ##
19652 ## M4sh Initialization. ##
19653 ## --------------------- ##
19655 # Be more Bourne compatible
19656 DUALCASE=1; export DUALCASE # for MKS sh
19657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19658 emulate sh
19659 NULLCMD=:
19660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19661 # is contrary to our usage. Disable this feature.
19662 alias -g '${1+"$@"}'='"$@"'
19663 setopt NO_GLOB_SUBST
19664 else
19665 case `(set -o) 2>/dev/null` in
19666 *posix*) set -o posix ;;
19667 esac
19674 # PATH needs CR
19675 # Avoid depending upon Character Ranges.
19676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19679 as_cr_digits='0123456789'
19680 as_cr_alnum=$as_cr_Letters$as_cr_digits
19682 # The user is always right.
19683 if test "${PATH_SEPARATOR+set}" != set; then
19684 echo "#! /bin/sh" >conf$$.sh
19685 echo "exit 0" >>conf$$.sh
19686 chmod +x conf$$.sh
19687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19688 PATH_SEPARATOR=';'
19689 else
19690 PATH_SEPARATOR=:
19692 rm -f conf$$.sh
19695 # Support unset when possible.
19696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19697 as_unset=unset
19698 else
19699 as_unset=false
19703 # IFS
19704 # We need space, tab and new line, in precisely that order. Quoting is
19705 # there to prevent editors from complaining about space-tab.
19706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19707 # splitting by setting IFS to empty value.)
19708 as_nl='
19710 IFS=" "" $as_nl"
19712 # Find who we are. Look in the path if we contain no directory separator.
19713 case $0 in
19714 *[\\/]* ) as_myself=$0 ;;
19715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19716 for as_dir in $PATH
19718 IFS=$as_save_IFS
19719 test -z "$as_dir" && as_dir=.
19720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19721 done
19722 IFS=$as_save_IFS
19725 esac
19726 # We did not find ourselves, most probably we were run as `sh COMMAND'
19727 # in which case we are not to be found in the path.
19728 if test "x$as_myself" = x; then
19729 as_myself=$0
19731 if test ! -f "$as_myself"; then
19732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19733 { (exit 1); exit 1; }
19736 # Work around bugs in pre-3.0 UWIN ksh.
19737 for as_var in ENV MAIL MAILPATH
19738 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19739 done
19740 PS1='$ '
19741 PS2='> '
19742 PS4='+ '
19744 # NLS nuisances.
19745 for as_var in \
19746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19748 LC_TELEPHONE LC_TIME
19750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19751 eval $as_var=C; export $as_var
19752 else
19753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19755 done
19757 # Required to use basename.
19758 if expr a : '\(a\)' >/dev/null 2>&1 &&
19759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19760 as_expr=expr
19761 else
19762 as_expr=false
19765 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19766 as_basename=basename
19767 else
19768 as_basename=false
19772 # Name of the executable.
19773 as_me=`$as_basename -- "$0" ||
19774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19775 X"$0" : 'X\(//\)$' \| \
19776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19777 echo X/"$0" |
19778 sed '/^.*\/\([^/][^/]*\)\/*$/{
19779 s//\1/
19782 /^X\/\(\/\/\)$/{
19783 s//\1/
19786 /^X\/\(\/\).*/{
19787 s//\1/
19790 s/.*/./; q'`
19792 # CDPATH.
19793 $as_unset CDPATH
19797 as_lineno_1=$LINENO
19798 as_lineno_2=$LINENO
19799 test "x$as_lineno_1" != "x$as_lineno_2" &&
19800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19803 # uniformly replaced by the line number. The first 'sed' inserts a
19804 # line-number line after each line using $LINENO; the second 'sed'
19805 # does the real work. The second script uses 'N' to pair each
19806 # line-number line with the line containing $LINENO, and appends
19807 # trailing '-' during substitution so that $LINENO is not a special
19808 # case at line end.
19809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19810 # scripts with optimization help from Paolo Bonzini. Blame Lee
19811 # E. McMahon (1931-1989) for sed's syntax. :-)
19812 sed -n '
19814 /[$]LINENO/=
19815 ' <$as_myself |
19816 sed '
19817 s/[$]LINENO.*/&-/
19818 t lineno
19820 :lineno
19822 :loop
19823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19824 t loop
19825 s/-\n.*//
19826 ' >$as_me.lineno &&
19827 chmod +x "$as_me.lineno" ||
19828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19829 { (exit 1); exit 1; }; }
19831 # Don't try to exec as it changes $[0], causing all sort of problems
19832 # (the dirname of $[0] is not the place where we might find the
19833 # original and so on. Autoconf is especially sensitive to this).
19834 . "./$as_me.lineno"
19835 # Exit status is that of the last command.
19836 exit
19840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19841 as_dirname=dirname
19842 else
19843 as_dirname=false
19846 ECHO_C= ECHO_N= ECHO_T=
19847 case `echo -n x` in
19848 -n*)
19849 case `echo 'x\c'` in
19850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19851 *) ECHO_C='\c';;
19852 esac;;
19854 ECHO_N='-n';;
19855 esac
19857 if expr a : '\(a\)' >/dev/null 2>&1 &&
19858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19859 as_expr=expr
19860 else
19861 as_expr=false
19864 rm -f conf$$ conf$$.exe conf$$.file
19865 if test -d conf$$.dir; then
19866 rm -f conf$$.dir/conf$$.file
19867 else
19868 rm -f conf$$.dir
19869 mkdir conf$$.dir
19871 echo >conf$$.file
19872 if ln -s conf$$.file conf$$ 2>/dev/null; then
19873 as_ln_s='ln -s'
19874 # ... but there are two gotchas:
19875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19877 # In both cases, we have to default to `cp -p'.
19878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19879 as_ln_s='cp -p'
19880 elif ln conf$$.file conf$$ 2>/dev/null; then
19881 as_ln_s=ln
19882 else
19883 as_ln_s='cp -p'
19885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19886 rmdir conf$$.dir 2>/dev/null
19888 if mkdir -p . 2>/dev/null; then
19889 as_mkdir_p=:
19890 else
19891 test -d ./-p && rmdir ./-p
19892 as_mkdir_p=false
19895 if test -x / >/dev/null 2>&1; then
19896 as_test_x='test -x'
19897 else
19898 if ls -dL / >/dev/null 2>&1; then
19899 as_ls_L_option=L
19900 else
19901 as_ls_L_option=
19903 as_test_x='
19904 eval sh -c '\''
19905 if test -d "$1"; then
19906 test -d "$1/.";
19907 else
19908 case $1 in
19909 -*)set "./$1";;
19910 esac;
19911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19912 ???[sx]*):;;*)false;;esac;fi
19913 '\'' sh
19916 as_executable_p=$as_test_x
19918 # Sed expression to map a string onto a valid CPP name.
19919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19921 # Sed expression to map a string onto a valid variable name.
19922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19925 exec 6>&1
19927 # Save the log message, to keep $[0] and so on meaningful, and to
19928 # report actual input values of CONFIG_FILES etc. instead of their
19929 # values after options handling.
19930 ac_log="
19931 This file was extended by $as_me, which was
19932 generated by GNU Autoconf 2.61. Invocation command line was
19934 CONFIG_FILES = $CONFIG_FILES
19935 CONFIG_HEADERS = $CONFIG_HEADERS
19936 CONFIG_LINKS = $CONFIG_LINKS
19937 CONFIG_COMMANDS = $CONFIG_COMMANDS
19938 $ $0 $@
19940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19943 _ACEOF
19945 cat >>$CONFIG_STATUS <<_ACEOF
19946 # Files that config.status was made for.
19947 config_files="$ac_config_files"
19948 config_headers="$ac_config_headers"
19949 config_commands="$ac_config_commands"
19951 _ACEOF
19953 cat >>$CONFIG_STATUS <<\_ACEOF
19954 ac_cs_usage="\
19955 \`$as_me' instantiates files from templates according to the
19956 current configuration.
19958 Usage: $0 [OPTIONS] [FILE]...
19960 -h, --help print this help, then exit
19961 -V, --version print version number and configuration settings, then exit
19962 -q, --quiet do not print progress messages
19963 -d, --debug don't remove temporary files
19964 --recheck update $as_me by reconfiguring in the same conditions
19965 --file=FILE[:TEMPLATE]
19966 instantiate the configuration file FILE
19967 --header=FILE[:TEMPLATE]
19968 instantiate the configuration header FILE
19970 Configuration files:
19971 $config_files
19973 Configuration headers:
19974 $config_headers
19976 Configuration commands:
19977 $config_commands
19979 Report bugs to <bug-autoconf@gnu.org>."
19981 _ACEOF
19982 cat >>$CONFIG_STATUS <<_ACEOF
19983 ac_cs_version="\\
19984 config.status
19985 configured by $0, generated by GNU Autoconf 2.61,
19986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19988 Copyright (C) 2006 Free Software Foundation, Inc.
19989 This config.status script is free software; the Free Software Foundation
19990 gives unlimited permission to copy, distribute and modify it."
19992 ac_pwd='$ac_pwd'
19993 srcdir='$srcdir'
19994 INSTALL='$INSTALL'
19995 _ACEOF
19997 cat >>$CONFIG_STATUS <<\_ACEOF
19998 # If no file are specified by the user, then we need to provide default
19999 # value. By we need to know if files were specified by the user.
20000 ac_need_defaults=:
20001 while test $# != 0
20003 case $1 in
20004 --*=*)
20005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20007 ac_shift=:
20010 ac_option=$1
20011 ac_optarg=$2
20012 ac_shift=shift
20014 esac
20016 case $ac_option in
20017 # Handling of the options.
20018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20019 ac_cs_recheck=: ;;
20020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20021 echo "$ac_cs_version"; exit ;;
20022 --debug | --debu | --deb | --de | --d | -d )
20023 debug=: ;;
20024 --file | --fil | --fi | --f )
20025 $ac_shift
20026 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20027 ac_need_defaults=false;;
20028 --header | --heade | --head | --hea )
20029 $ac_shift
20030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20031 ac_need_defaults=false;;
20032 --he | --h)
20033 # Conflict between --help and --header
20034 { echo "$as_me: error: ambiguous option: $1
20035 Try \`$0 --help' for more information." >&2
20036 { (exit 1); exit 1; }; };;
20037 --help | --hel | -h )
20038 echo "$ac_cs_usage"; exit ;;
20039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20041 ac_cs_silent=: ;;
20043 # This is an error.
20044 -*) { echo "$as_me: error: unrecognized option: $1
20045 Try \`$0 --help' for more information." >&2
20046 { (exit 1); exit 1; }; } ;;
20048 *) ac_config_targets="$ac_config_targets $1"
20049 ac_need_defaults=false ;;
20051 esac
20052 shift
20053 done
20055 ac_configure_extra_args=
20057 if $ac_cs_silent; then
20058 exec 6>/dev/null
20059 ac_configure_extra_args="$ac_configure_extra_args --silent"
20062 _ACEOF
20063 cat >>$CONFIG_STATUS <<_ACEOF
20064 if \$ac_cs_recheck; then
20065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20066 CONFIG_SHELL=$SHELL
20067 export CONFIG_SHELL
20068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20071 _ACEOF
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 exec 5>>config.log
20075 echo
20076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20077 ## Running $as_me. ##
20078 _ASBOX
20079 echo "$ac_log"
20080 } >&5
20082 _ACEOF
20083 cat >>$CONFIG_STATUS <<_ACEOF
20085 # INIT-COMMANDS
20087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20089 _ACEOF
20091 cat >>$CONFIG_STATUS <<\_ACEOF
20093 # Handling of arguments.
20094 for ac_config_target in $ac_config_targets
20096 case $ac_config_target in
20097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20100 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20104 { (exit 1); exit 1; }; };;
20105 esac
20106 done
20109 # If the user did not use the arguments to specify the items to instantiate,
20110 # then the envvar interface is used. Set only those that are not.
20111 # We use the long form for the default assignment because of an extremely
20112 # bizarre bug on SunOS 4.1.3.
20113 if $ac_need_defaults; then
20114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20119 # Have a temporary directory for convenience. Make it in the build tree
20120 # simply because there is no reason against having it here, and in addition,
20121 # creating and moving files from /tmp can sometimes cause problems.
20122 # Hook for its removal unless debugging.
20123 # Note that there is a small window in which the directory will not be cleaned:
20124 # after its creation but before its name has been assigned to `$tmp'.
20125 $debug ||
20127 tmp=
20128 trap 'exit_status=$?
20129 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20131 trap '{ (exit 1); exit 1; }' 1 2 13 15
20133 # Create a (secure) tmp directory for tmp files.
20136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20137 test -n "$tmp" && test -d "$tmp"
20138 } ||
20140 tmp=./conf$$-$RANDOM
20141 (umask 077 && mkdir "$tmp")
20142 } ||
20144 echo "$me: cannot create a temporary directory in ." >&2
20145 { (exit 1); exit 1; }
20149 # Set up the sed scripts for CONFIG_FILES section.
20152 # No need to generate the scripts if there are no CONFIG_FILES.
20153 # This happens for instance when ./config.status config.h
20154 if test -n "$CONFIG_FILES"; then
20156 _ACEOF
20160 ac_delim='%!_!# '
20161 for ac_last_try in false false false false false :; do
20162 cat >conf$$subs.sed <<_ACEOF
20163 SHELL!$SHELL$ac_delim
20164 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20165 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20166 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20167 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20168 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20169 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20170 exec_prefix!$exec_prefix$ac_delim
20171 prefix!$prefix$ac_delim
20172 program_transform_name!$program_transform_name$ac_delim
20173 bindir!$bindir$ac_delim
20174 sbindir!$sbindir$ac_delim
20175 libexecdir!$libexecdir$ac_delim
20176 datarootdir!$datarootdir$ac_delim
20177 datadir!$datadir$ac_delim
20178 sysconfdir!$sysconfdir$ac_delim
20179 sharedstatedir!$sharedstatedir$ac_delim
20180 localstatedir!$localstatedir$ac_delim
20181 includedir!$includedir$ac_delim
20182 oldincludedir!$oldincludedir$ac_delim
20183 docdir!$docdir$ac_delim
20184 infodir!$infodir$ac_delim
20185 htmldir!$htmldir$ac_delim
20186 dvidir!$dvidir$ac_delim
20187 pdfdir!$pdfdir$ac_delim
20188 psdir!$psdir$ac_delim
20189 libdir!$libdir$ac_delim
20190 localedir!$localedir$ac_delim
20191 mandir!$mandir$ac_delim
20192 DEFS!$DEFS$ac_delim
20193 ECHO_C!$ECHO_C$ac_delim
20194 ECHO_N!$ECHO_N$ac_delim
20195 ECHO_T!$ECHO_T$ac_delim
20196 LIBS!$LIBS$ac_delim
20197 build_alias!$build_alias$ac_delim
20198 host_alias!$host_alias$ac_delim
20199 target_alias!$target_alias$ac_delim
20200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20202 INSTALL_DATA!$INSTALL_DATA$ac_delim
20203 CYGPATH_W!$CYGPATH_W$ac_delim
20204 PACKAGE!$PACKAGE$ac_delim
20205 VERSION!$VERSION$ac_delim
20206 ACLOCAL!$ACLOCAL$ac_delim
20207 AUTOCONF!$AUTOCONF$ac_delim
20208 AUTOMAKE!$AUTOMAKE$ac_delim
20209 AUTOHEADER!$AUTOHEADER$ac_delim
20210 MAKEINFO!$MAKEINFO$ac_delim
20211 install_sh!$install_sh$ac_delim
20212 STRIP!$STRIP$ac_delim
20213 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20214 mkdir_p!$mkdir_p$ac_delim
20215 AWK!$AWK$ac_delim
20216 SET_MAKE!$SET_MAKE$ac_delim
20217 am__leading_dot!$am__leading_dot$ac_delim
20218 AMTAR!$AMTAR$ac_delim
20219 am__tar!$am__tar$ac_delim
20220 am__untar!$am__untar$ac_delim
20221 CC!$CC$ac_delim
20222 CFLAGS!$CFLAGS$ac_delim
20223 LDFLAGS!$LDFLAGS$ac_delim
20224 CPPFLAGS!$CPPFLAGS$ac_delim
20225 ac_ct_CC!$ac_ct_CC$ac_delim
20226 EXEEXT!$EXEEXT$ac_delim
20227 OBJEXT!$OBJEXT$ac_delim
20228 DEPDIR!$DEPDIR$ac_delim
20229 am__include!$am__include$ac_delim
20230 am__quote!$am__quote$ac_delim
20231 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20232 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20233 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20234 CCDEPMODE!$CCDEPMODE$ac_delim
20235 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20236 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20237 build!$build$ac_delim
20238 build_cpu!$build_cpu$ac_delim
20239 build_vendor!$build_vendor$ac_delim
20240 build_os!$build_os$ac_delim
20241 host!$host$ac_delim
20242 host_cpu!$host_cpu$ac_delim
20243 host_vendor!$host_vendor$ac_delim
20244 host_os!$host_os$ac_delim
20245 SED!$SED$ac_delim
20246 GREP!$GREP$ac_delim
20247 EGREP!$EGREP$ac_delim
20248 LN_S!$LN_S$ac_delim
20249 ECHO!$ECHO$ac_delim
20250 AR!$AR$ac_delim
20251 RANLIB!$RANLIB$ac_delim
20252 CPP!$CPP$ac_delim
20253 CXX!$CXX$ac_delim
20254 CXXFLAGS!$CXXFLAGS$ac_delim
20255 ac_ct_CXX!$ac_ct_CXX$ac_delim
20256 CXXDEPMODE!$CXXDEPMODE$ac_delim
20257 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20258 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20259 CXXCPP!$CXXCPP$ac_delim
20260 _ACEOF
20262 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20263 break
20264 elif $ac_last_try; then
20265 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20266 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20267 { (exit 1); exit 1; }; }
20268 else
20269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20271 done
20273 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20274 if test -n "$ac_eof"; then
20275 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20276 ac_eof=`expr $ac_eof + 1`
20279 cat >>$CONFIG_STATUS <<_ACEOF
20280 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20282 _ACEOF
20283 sed '
20284 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20285 s/^/s,@/; s/!/@,|#_!!_#|/
20288 s/'"$ac_delim"'$/,g/; t
20289 s/$/\\/; p
20290 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20291 ' >>$CONFIG_STATUS <conf$$subs.sed
20292 rm -f conf$$subs.sed
20293 cat >>$CONFIG_STATUS <<_ACEOF
20294 CEOF$ac_eof
20295 _ACEOF
20298 ac_delim='%!_!# '
20299 for ac_last_try in false false false false false :; do
20300 cat >conf$$subs.sed <<_ACEOF
20301 F77!$F77$ac_delim
20302 FFLAGS!$FFLAGS$ac_delim
20303 ac_ct_F77!$ac_ct_F77$ac_delim
20304 LIBTOOL!$LIBTOOL$ac_delim
20305 LIBOBJS!$LIBOBJS$ac_delim
20306 LTLIBOBJS!$LTLIBOBJS$ac_delim
20307 _ACEOF
20309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
20310 break
20311 elif $ac_last_try; then
20312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20314 { (exit 1); exit 1; }; }
20315 else
20316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20318 done
20320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20321 if test -n "$ac_eof"; then
20322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20323 ac_eof=`expr $ac_eof + 1`
20326 cat >>$CONFIG_STATUS <<_ACEOF
20327 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20329 _ACEOF
20330 sed '
20331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20332 s/^/s,@/; s/!/@,|#_!!_#|/
20335 s/'"$ac_delim"'$/,g/; t
20336 s/$/\\/; p
20337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20338 ' >>$CONFIG_STATUS <conf$$subs.sed
20339 rm -f conf$$subs.sed
20340 cat >>$CONFIG_STATUS <<_ACEOF
20341 :end
20342 s/|#_!!_#|//g
20343 CEOF$ac_eof
20344 _ACEOF
20347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20349 # trailing colons and then remove the whole line if VPATH becomes empty
20350 # (actually we leave an empty line to preserve line numbers).
20351 if test "x$srcdir" = x.; then
20352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20353 s/:*\$(srcdir):*/:/
20354 s/:*\${srcdir}:*/:/
20355 s/:*@srcdir@:*/:/
20356 s/^\([^=]*=[ ]*\):*/\1/
20357 s/:*$//
20358 s/^[^=]*=[ ]*$//
20362 cat >>$CONFIG_STATUS <<\_ACEOF
20363 fi # test -n "$CONFIG_FILES"
20366 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20368 case $ac_tag in
20369 :[FHLC]) ac_mode=$ac_tag; continue;;
20370 esac
20371 case $ac_mode$ac_tag in
20372 :[FHL]*:*);;
20373 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20374 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20375 { (exit 1); exit 1; }; };;
20376 :[FH]-) ac_tag=-:-;;
20377 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20378 esac
20379 ac_save_IFS=$IFS
20380 IFS=:
20381 set x $ac_tag
20382 IFS=$ac_save_IFS
20383 shift
20384 ac_file=$1
20385 shift
20387 case $ac_mode in
20388 :L) ac_source=$1;;
20389 :[FH])
20390 ac_file_inputs=
20391 for ac_f
20393 case $ac_f in
20394 -) ac_f="$tmp/stdin";;
20395 *) # Look for the file first in the build tree, then in the source tree
20396 # (if the path is not absolute). The absolute path cannot be DOS-style,
20397 # because $ac_f cannot contain `:'.
20398 test -f "$ac_f" ||
20399 case $ac_f in
20400 [\\/$]*) false;;
20401 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20402 esac ||
20403 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20404 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20405 { (exit 1); exit 1; }; };;
20406 esac
20407 ac_file_inputs="$ac_file_inputs $ac_f"
20408 done
20410 # Let's still pretend it is `configure' which instantiates (i.e., don't
20411 # use $as_me), people would be surprised to read:
20412 # /* config.h. Generated by config.status. */
20413 configure_input="Generated from "`IFS=:
20414 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20415 if test x"$ac_file" != x-; then
20416 configure_input="$ac_file. $configure_input"
20417 { echo "$as_me:$LINENO: creating $ac_file" >&5
20418 echo "$as_me: creating $ac_file" >&6;}
20421 case $ac_tag in
20422 *:-:* | *:-) cat >"$tmp/stdin";;
20423 esac
20425 esac
20427 ac_dir=`$as_dirname -- "$ac_file" ||
20428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20429 X"$ac_file" : 'X\(//\)[^/]' \| \
20430 X"$ac_file" : 'X\(//\)$' \| \
20431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20432 echo X"$ac_file" |
20433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20434 s//\1/
20437 /^X\(\/\/\)[^/].*/{
20438 s//\1/
20441 /^X\(\/\/\)$/{
20442 s//\1/
20445 /^X\(\/\).*/{
20446 s//\1/
20449 s/.*/./; q'`
20450 { as_dir="$ac_dir"
20451 case $as_dir in #(
20452 -*) as_dir=./$as_dir;;
20453 esac
20454 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20455 as_dirs=
20456 while :; do
20457 case $as_dir in #(
20458 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20459 *) as_qdir=$as_dir;;
20460 esac
20461 as_dirs="'$as_qdir' $as_dirs"
20462 as_dir=`$as_dirname -- "$as_dir" ||
20463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20464 X"$as_dir" : 'X\(//\)[^/]' \| \
20465 X"$as_dir" : 'X\(//\)$' \| \
20466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20467 echo X"$as_dir" |
20468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20469 s//\1/
20472 /^X\(\/\/\)[^/].*/{
20473 s//\1/
20476 /^X\(\/\/\)$/{
20477 s//\1/
20480 /^X\(\/\).*/{
20481 s//\1/
20484 s/.*/./; q'`
20485 test -d "$as_dir" && break
20486 done
20487 test -z "$as_dirs" || eval "mkdir $as_dirs"
20488 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20489 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20490 { (exit 1); exit 1; }; }; }
20491 ac_builddir=.
20493 case "$ac_dir" in
20494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20497 # A ".." for each directory in $ac_dir_suffix.
20498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20499 case $ac_top_builddir_sub in
20500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20502 esac ;;
20503 esac
20504 ac_abs_top_builddir=$ac_pwd
20505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20506 # for backward compatibility:
20507 ac_top_builddir=$ac_top_build_prefix
20509 case $srcdir in
20510 .) # We are building in place.
20511 ac_srcdir=.
20512 ac_top_srcdir=$ac_top_builddir_sub
20513 ac_abs_top_srcdir=$ac_pwd ;;
20514 [\\/]* | ?:[\\/]* ) # Absolute name.
20515 ac_srcdir=$srcdir$ac_dir_suffix;
20516 ac_top_srcdir=$srcdir
20517 ac_abs_top_srcdir=$srcdir ;;
20518 *) # Relative name.
20519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20520 ac_top_srcdir=$ac_top_build_prefix$srcdir
20521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20522 esac
20523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20526 case $ac_mode in
20529 # CONFIG_FILE
20532 case $INSTALL in
20533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20534 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20535 esac
20536 _ACEOF
20538 cat >>$CONFIG_STATUS <<\_ACEOF
20539 # If the template does not know about datarootdir, expand it.
20540 # FIXME: This hack should be removed a few years after 2.60.
20541 ac_datarootdir_hack=; ac_datarootdir_seen=
20543 case `sed -n '/datarootdir/ {
20547 /@datadir@/p
20548 /@docdir@/p
20549 /@infodir@/p
20550 /@localedir@/p
20551 /@mandir@/p
20552 ' $ac_file_inputs` in
20553 *datarootdir*) ac_datarootdir_seen=yes;;
20554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20557 _ACEOF
20558 cat >>$CONFIG_STATUS <<_ACEOF
20559 ac_datarootdir_hack='
20560 s&@datadir@&$datadir&g
20561 s&@docdir@&$docdir&g
20562 s&@infodir@&$infodir&g
20563 s&@localedir@&$localedir&g
20564 s&@mandir@&$mandir&g
20565 s&\\\${datarootdir}&$datarootdir&g' ;;
20566 esac
20567 _ACEOF
20569 # Neutralize VPATH when `$srcdir' = `.'.
20570 # Shell code in configure.ac might set extrasub.
20571 # FIXME: do we really want to maintain this feature?
20572 cat >>$CONFIG_STATUS <<_ACEOF
20573 sed "$ac_vpsub
20574 $extrasub
20575 _ACEOF
20576 cat >>$CONFIG_STATUS <<\_ACEOF
20578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20579 s&@configure_input@&$configure_input&;t t
20580 s&@top_builddir@&$ac_top_builddir_sub&;t t
20581 s&@srcdir@&$ac_srcdir&;t t
20582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20583 s&@top_srcdir@&$ac_top_srcdir&;t t
20584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20585 s&@builddir@&$ac_builddir&;t t
20586 s&@abs_builddir@&$ac_abs_builddir&;t t
20587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20588 s&@INSTALL@&$ac_INSTALL&;t t
20589 $ac_datarootdir_hack
20590 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20592 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20593 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20595 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20596 which seems to be undefined. Please make sure it is defined." >&5
20597 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20598 which seems to be undefined. Please make sure it is defined." >&2;}
20600 rm -f "$tmp/stdin"
20601 case $ac_file in
20602 -) cat "$tmp/out"; rm -f "$tmp/out";;
20603 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20604 esac
20608 # CONFIG_HEADER
20610 _ACEOF
20612 # Transform confdefs.h into a sed script `conftest.defines', that
20613 # substitutes the proper values into config.h.in to produce config.h.
20614 rm -f conftest.defines conftest.tail
20615 # First, append a space to every undef/define line, to ease matching.
20616 echo 's/$/ /' >conftest.defines
20617 # Then, protect against being on the right side of a sed subst, or in
20618 # an unquoted here document, in config.status. If some macros were
20619 # called several times there might be several #defines for the same
20620 # symbol, which is useless. But do not sort them, since the last
20621 # AC_DEFINE must be honored.
20622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20623 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20624 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20625 # PARAMS is the parameter list in the macro definition--in most cases, it's
20626 # just an empty string.
20627 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20628 ac_dB='\\)[ (].*,\\1define\\2'
20629 ac_dC=' '
20630 ac_dD=' ,'
20632 uniq confdefs.h |
20633 sed -n '
20634 t rset
20635 :rset
20636 s/^[ ]*#[ ]*define[ ][ ]*//
20637 t ok
20640 s/[\\&,]/\\&/g
20641 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20642 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20643 ' >>conftest.defines
20645 # Remove the space that was appended to ease matching.
20646 # Then replace #undef with comments. This is necessary, for
20647 # example, in the case of _POSIX_SOURCE, which is predefined and required
20648 # on some systems where configure will not decide to define it.
20649 # (The regexp can be short, since the line contains either #define or #undef.)
20650 echo 's/ $//
20651 s,^[ #]*u.*,/* & */,' >>conftest.defines
20653 # Break up conftest.defines:
20654 ac_max_sed_lines=50
20656 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20657 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20658 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20659 # et cetera.
20660 ac_in='$ac_file_inputs'
20661 ac_out='"$tmp/out1"'
20662 ac_nxt='"$tmp/out2"'
20664 while :
20666 # Write a here document:
20667 cat >>$CONFIG_STATUS <<_ACEOF
20668 # First, check the format of the line:
20669 cat >"\$tmp/defines.sed" <<\\CEOF
20670 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20671 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20673 :def
20674 _ACEOF
20675 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20676 echo 'CEOF
20677 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20678 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20679 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20680 grep . conftest.tail >/dev/null || break
20681 rm -f conftest.defines
20682 mv conftest.tail conftest.defines
20683 done
20684 rm -f conftest.defines conftest.tail
20686 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20687 cat >>$CONFIG_STATUS <<\_ACEOF
20688 if test x"$ac_file" != x-; then
20689 echo "/* $configure_input */" >"$tmp/config.h"
20690 cat "$ac_result" >>"$tmp/config.h"
20691 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20692 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20693 echo "$as_me: $ac_file is unchanged" >&6;}
20694 else
20695 rm -f $ac_file
20696 mv "$tmp/config.h" $ac_file
20698 else
20699 echo "/* $configure_input */"
20700 cat "$ac_result"
20702 rm -f "$tmp/out12"
20703 # Compute $ac_file's index in $config_headers.
20704 _am_stamp_count=1
20705 for _am_header in $config_headers :; do
20706 case $_am_header in
20707 $ac_file | $ac_file:* )
20708 break ;;
20710 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20711 esac
20712 done
20713 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20714 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20715 X$ac_file : 'X\(//\)[^/]' \| \
20716 X$ac_file : 'X\(//\)$' \| \
20717 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20718 echo X$ac_file |
20719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20720 s//\1/
20723 /^X\(\/\/\)[^/].*/{
20724 s//\1/
20727 /^X\(\/\/\)$/{
20728 s//\1/
20731 /^X\(\/\).*/{
20732 s//\1/
20735 s/.*/./; q'`/stamp-h$_am_stamp_count
20738 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20739 echo "$as_me: executing $ac_file commands" >&6;}
20741 esac
20744 case $ac_file$ac_mode in
20745 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20746 # Strip MF so we end up with the name of the file.
20747 mf=`echo "$mf" | sed -e 's/:.*$//'`
20748 # Check whether this is an Automake generated Makefile or not.
20749 # We used to match only the files named `Makefile.in', but
20750 # some people rename them; so instead we look at the file content.
20751 # Grep'ing the first line is not enough: some people post-process
20752 # each Makefile.in and add a new line on top of each file to say so.
20753 # So let's grep whole file.
20754 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20755 dirpart=`$as_dirname -- "$mf" ||
20756 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20757 X"$mf" : 'X\(//\)[^/]' \| \
20758 X"$mf" : 'X\(//\)$' \| \
20759 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20760 echo X"$mf" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20762 s//\1/
20765 /^X\(\/\/\)[^/].*/{
20766 s//\1/
20769 /^X\(\/\/\)$/{
20770 s//\1/
20773 /^X\(\/\).*/{
20774 s//\1/
20777 s/.*/./; q'`
20778 else
20779 continue
20781 # Extract the definition of DEPDIR, am__include, and am__quote
20782 # from the Makefile without running `make'.
20783 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20784 test -z "$DEPDIR" && continue
20785 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20786 test -z "am__include" && continue
20787 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20788 # When using ansi2knr, U may be empty or an underscore; expand it
20789 U=`sed -n 's/^U = //p' < "$mf"`
20790 # Find all dependency output files, they are included files with
20791 # $(DEPDIR) in their names. We invoke sed twice because it is the
20792 # simplest approach to changing $(DEPDIR) to its actual value in the
20793 # expansion.
20794 for file in `sed -n "
20795 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20796 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20797 # Make sure the directory exists.
20798 test -f "$dirpart/$file" && continue
20799 fdir=`$as_dirname -- "$file" ||
20800 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20801 X"$file" : 'X\(//\)[^/]' \| \
20802 X"$file" : 'X\(//\)$' \| \
20803 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20804 echo X"$file" |
20805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20806 s//\1/
20809 /^X\(\/\/\)[^/].*/{
20810 s//\1/
20813 /^X\(\/\/\)$/{
20814 s//\1/
20817 /^X\(\/\).*/{
20818 s//\1/
20821 s/.*/./; q'`
20822 { as_dir=$dirpart/$fdir
20823 case $as_dir in #(
20824 -*) as_dir=./$as_dir;;
20825 esac
20826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20827 as_dirs=
20828 while :; do
20829 case $as_dir in #(
20830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20831 *) as_qdir=$as_dir;;
20832 esac
20833 as_dirs="'$as_qdir' $as_dirs"
20834 as_dir=`$as_dirname -- "$as_dir" ||
20835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836 X"$as_dir" : 'X\(//\)[^/]' \| \
20837 X"$as_dir" : 'X\(//\)$' \| \
20838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20839 echo X"$as_dir" |
20840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20841 s//\1/
20844 /^X\(\/\/\)[^/].*/{
20845 s//\1/
20848 /^X\(\/\/\)$/{
20849 s//\1/
20852 /^X\(\/\).*/{
20853 s//\1/
20856 s/.*/./; q'`
20857 test -d "$as_dir" && break
20858 done
20859 test -z "$as_dirs" || eval "mkdir $as_dirs"
20860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20861 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20862 { (exit 1); exit 1; }; }; }
20863 # echo "creating $dirpart/$file"
20864 echo '# dummy' > "$dirpart/$file"
20865 done
20866 done
20869 esac
20870 done # for ac_tag
20873 { (exit 0); exit 0; }
20874 _ACEOF
20875 chmod +x $CONFIG_STATUS
20876 ac_clean_files=$ac_clean_files_save
20879 # configure is writing to config.log, and then calls config.status.
20880 # config.status does its own redirection, appending to config.log.
20881 # Unfortunately, on DOS this fails, as config.log is still kept open
20882 # by configure, so config.status won't be able to write to it; its
20883 # output is simply discarded. So we exec the FD to /dev/null,
20884 # effectively closing config.log, so it can be properly (re)opened and
20885 # appended to by config.status. When coming back to configure, we
20886 # need to make the FD available again.
20887 if test "$no_create" != yes; then
20888 ac_cs_success=:
20889 ac_config_status_args=
20890 test "$silent" = yes &&
20891 ac_config_status_args="$ac_config_status_args --quiet"
20892 exec 5>/dev/null
20893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20894 exec 5>>config.log
20895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20896 # would make configure fail if this is the last instruction.
20897 $ac_cs_success || { (exit 1); exit 1; }