Fix crash when SDLPango_Draw is called with an empty string
[sdlpango.git] / configure
blob1925994f0406f41ec5a5b8783e1cfb34e553439f
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="README"
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 MAINTAINER_MODE_TRUE
808 MAINTAINER_MODE_FALSE
809 MAINT
810 MAJOR_VERSION
811 MINOR_VERSION
812 MICRO_VERSION
813 INTERFACE_AGE
814 BINARY_AGE
815 VERSION
816 LT_RELEASE
817 LT_CURRENT
818 LT_REVISION
819 LT_AGE
820 build
821 build_cpu
822 build_vendor
823 build_os
824 host
825 host_cpu
826 host_vendor
827 host_os
828 target
829 target_cpu
830 target_vendor
831 target_os
832 INSTALL_PROGRAM
833 INSTALL_SCRIPT
834 INSTALL_DATA
835 CYGPATH_W
836 PACKAGE
837 ACLOCAL
838 AUTOCONF
839 AUTOMAKE
840 AUTOHEADER
841 MAKEINFO
842 AMTAR
843 install_sh
844 STRIP
845 INSTALL_STRIP_PROGRAM
846 mkdir_p
848 SET_MAKE
849 am__leading_dot
851 CFLAGS
852 LDFLAGS
853 CPPFLAGS
854 ac_ct_CC
855 EXEEXT
856 OBJEXT
857 DEPDIR
858 am__include
859 am__quote
860 AMDEP_TRUE
861 AMDEP_FALSE
862 AMDEPBACKSLASH
863 CCDEPMODE
864 am__fastdepCC_TRUE
865 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
872 RANLIB
873 DLLTOOL
875 OBJDUMP
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
885 FFLAGS
886 ac_ct_F77
887 LIBTOOL
888 PKG_CONFIG
889 PANGO_CFLAGS
890 PANGO_LIBS
891 PANGOFT2_CFLAGS
892 PANGOFT2_LIBS
893 SDL_CONFIG
894 SDL_CFLAGS
895 SDL_LIBS
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899 ac_precious_vars='build_alias
900 host_alias
901 target_alias
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
909 CXXFLAGS
911 CXXCPP
913 FFLAGS
914 PKG_CONFIG
915 PANGO_CFLAGS
916 PANGO_LIBS
917 PANGOFT2_CFLAGS
918 PANGOFT2_LIBS'
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
967 ac_prev=
968 ac_dashdash=
969 for ac_option
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
974 ac_prev=
975 continue
978 case $ac_option in
979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *) ac_optarg=yes ;;
981 esac
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
987 ac_dashdash=yes ;;
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=no ;;
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1040 -enable-* | --enable-*)
1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047 eval enable_$ac_feature=\$ac_optarg ;;
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1237 -with-* | --with-*)
1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid package name: $ac_package" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244 eval with_$ac_package=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=no ;;
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) { echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295 esac
1296 done
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1304 # Be sure to have absolute directory names.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316 { (exit 1); exit 1; }; }
1317 done
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340 test "$silent" = yes && exec 6>/dev/null
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 { echo "$as_me: error: Working directory cannot be determined" >&2
1347 { (exit 1); exit 1; }; }
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 { echo "$as_me: error: pwd does not report name of working directory" >&2
1350 { (exit 1); exit 1; }; }
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$0" ||
1358 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$0" : 'X\(//\)[^/]' \| \
1360 X"$0" : 'X\(//\)$' \| \
1361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 echo X"$0" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1371 /^X\(\/\/\)$/{
1372 s//\1/
1375 /^X\(\/\).*/{
1376 s//\1/
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1384 else
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390 { (exit 1); exit 1; }; }
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395 { (exit 1); exit 1; }; }
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures this package to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1476 cat <<\_ACEOF
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 --target=TARGET configure for building compilers for TARGET [HOST]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1492 cat <<\_ACEOF
1494 Optional Features:
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-maintainer-mode enable make rules and dependencies not useful
1498 (and sometimes confusing) to the casual installer
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --disable-libtool-lock avoid locking (might break parallel builds)
1506 --disable-sdltest Do not try to compile and run a test SDL program
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-tags[=TAGS] include additional configurations [automatic]
1515 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1516 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CPP C preprocessor
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1529 CXXCPP C++ preprocessor
1530 F77 Fortran 77 compiler command
1531 FFLAGS Fortran 77 compiler flags
1532 PKG_CONFIG path to pkg-config utility
1533 PANGO_CFLAGS
1534 C compiler flags for PANGO, overriding pkg-config
1535 PANGO_LIBS linker flags for PANGO, overriding pkg-config
1536 PANGOFT2_CFLAGS
1537 C compiler flags for PANGOFT2, overriding pkg-config
1538 PANGOFT2_LIBS
1539 linker flags for PANGOFT2, overriding pkg-config
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1544 _ACEOF
1545 ac_status=$?
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" || continue
1552 ac_builddir=.
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1594 else
1595 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 fi || ac_status=$?
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1598 done
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603 cat <<\_ACEOF
1604 configure
1605 generated by GNU Autoconf 2.61
1607 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1608 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1614 cat >config.log <<_ACEOF
1615 This file contains any messages produced by compilers while
1616 running configure, to aid debugging if configure makes a mistake.
1618 It was created by $as_me, which was
1619 generated by GNU Autoconf 2.61. Invocation command line was
1621 $ $0 $@
1623 _ACEOF
1624 exec 5>>config.log
1626 cat <<_ASUNAME
1627 ## --------- ##
1628 ## Platform. ##
1629 ## --------- ##
1631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 _ASUNAME
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 echo "PATH: $as_dir"
1656 done
1657 IFS=$as_save_IFS
1659 } >&5
1661 cat >&5 <<_ACEOF
1664 ## ----------- ##
1665 ## Core tests. ##
1666 ## ----------- ##
1668 _ACEOF
1671 # Keep a trace of the command line.
1672 # Strip out --no-create and --no-recursion so they do not pile up.
1673 # Strip out --silent because we don't want to record it for future runs.
1674 # Also quote any args containing shell meta-characters.
1675 # Make two passes to allow for proper duplicate-argument suppression.
1676 ac_configure_args=
1677 ac_configure_args0=
1678 ac_configure_args1=
1679 ac_must_keep_next=false
1680 for ac_pass in 1 2
1682 for ac_arg
1684 case $ac_arg in
1685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1687 | -silent | --silent | --silen | --sile | --sil)
1688 continue ;;
1689 *\'*)
1690 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 esac
1692 case $ac_pass in
1693 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1696 if test $ac_must_keep_next = true; then
1697 ac_must_keep_next=false # Got value, back to normal.
1698 else
1699 case $ac_arg in
1700 *=* | --config-cache | -C | -disable-* | --disable-* \
1701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1703 | -with-* | --with-* | -without-* | --without-* | --x)
1704 case "$ac_configure_args0 " in
1705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 esac
1708 -* ) ac_must_keep_next=true ;;
1709 esac
1711 ac_configure_args="$ac_configure_args '$ac_arg'"
1713 esac
1714 done
1715 done
1716 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1717 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719 # When interrupted or exit'd, cleanup temporary files, and complete
1720 # config.log. We remove comments because anyway the quotes in there
1721 # would cause problems or look ugly.
1722 # WARNING: Use '\'' to represent an apostrophe within the trap.
1723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1724 trap 'exit_status=$?
1725 # Save into config.log some information that might help in debugging.
1727 echo
1729 cat <<\_ASBOX
1730 ## ---------------- ##
1731 ## Cache variables. ##
1732 ## ---------------- ##
1733 _ASBOX
1734 echo
1735 # The following way of writing the cache mishandles newlines in values,
1737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in #(
1740 *${as_nl}*)
1741 case $ac_var in #(
1742 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1743 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744 esac
1745 case $ac_var in #(
1746 _ | IFS | as_nl) ;; #(
1747 *) $as_unset $ac_var ;;
1748 esac ;;
1749 esac
1750 done
1751 (set) 2>&1 |
1752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753 *${as_nl}ac_space=\ *)
1754 sed -n \
1755 "s/'\''/'\''\\\\'\'''\''/g;
1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 ;; #(
1759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1761 esac |
1762 sort
1764 echo
1766 cat <<\_ASBOX
1767 ## ----------------- ##
1768 ## Output variables. ##
1769 ## ----------------- ##
1770 _ASBOX
1771 echo
1772 for ac_var in $ac_subst_vars
1774 eval ac_val=\$$ac_var
1775 case $ac_val in
1776 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 esac
1778 echo "$ac_var='\''$ac_val'\''"
1779 done | sort
1780 echo
1782 if test -n "$ac_subst_files"; then
1783 cat <<\_ASBOX
1784 ## ------------------- ##
1785 ## File substitutions. ##
1786 ## ------------------- ##
1787 _ASBOX
1788 echo
1789 for ac_var in $ac_subst_files
1791 eval ac_val=\$$ac_var
1792 case $ac_val in
1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 esac
1795 echo "$ac_var='\''$ac_val'\''"
1796 done | sort
1797 echo
1800 if test -s confdefs.h; then
1801 cat <<\_ASBOX
1802 ## ----------- ##
1803 ## confdefs.h. ##
1804 ## ----------- ##
1805 _ASBOX
1806 echo
1807 cat confdefs.h
1808 echo
1810 test "$ac_signal" != 0 &&
1811 echo "$as_me: caught signal $ac_signal"
1812 echo "$as_me: exit $exit_status"
1813 } >&5
1814 rm -f core *.core core.conftest.* &&
1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816 exit $exit_status
1818 for ac_signal in 1 2 13 15; do
1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820 done
1821 ac_signal=0
1823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1824 rm -f -r conftest* confdefs.h
1826 # Predefined preprocessor variables.
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_NAME "$PACKAGE_NAME"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1840 _ACEOF
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_STRING "$PACKAGE_STRING"
1845 _ACEOF
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850 _ACEOF
1853 # Let the site file select an alternate cache file if it wants to.
1854 # Prefer explicitly selected file to automatically selected ones.
1855 if test -n "$CONFIG_SITE"; then
1856 set x "$CONFIG_SITE"
1857 elif test "x$prefix" != xNONE; then
1858 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859 else
1860 set x "$ac_default_prefix/share/config.site" \
1861 "$ac_default_prefix/etc/config.site"
1863 shift
1864 for ac_site_file
1866 if test -r "$ac_site_file"; then
1867 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 echo "$as_me: loading site script $ac_site_file" >&6;}
1869 sed 's/^/| /' "$ac_site_file" >&5
1870 . "$ac_site_file"
1872 done
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special
1876 # files actually), so we avoid doing that.
1877 if test -f "$cache_file"; then
1878 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 echo "$as_me: loading cache $cache_file" >&6;}
1880 case $cache_file in
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1883 esac
1885 else
1886 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 echo "$as_me: creating cache $cache_file" >&6;}
1888 >$cache_file
1891 # Check that the precious variables saved in the cache have kept the same
1892 # value.
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1900 set,)
1901 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,set)
1905 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1908 ,);;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1914 echo "$as_me: former value: $ac_old_val" >&2;}
1915 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1916 echo "$as_me: current value: $ac_new_val" >&2;}
1917 ac_cache_corrupted=:
1918 fi;;
1919 esac
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1922 case $ac_new_val in
1923 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1925 esac
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929 esac
1931 done
1932 if $ac_cache_corrupted; then
1933 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1934 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1935 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1936 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1937 { (exit 1); exit 1; }; }
1956 ac_ext=c
1957 ac_cpp='$CPP $CPPFLAGS'
1958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1964 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1965 # Check whether --enable-maintainer-mode was given.
1966 if test "${enable_maintainer_mode+set}" = set; then
1967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1968 else
1969 USE_MAINTAINER_MODE=no
1972 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1973 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1976 if test $USE_MAINTAINER_MODE = yes; then
1977 MAINTAINER_MODE_TRUE=
1978 MAINTAINER_MODE_FALSE='#'
1979 else
1980 MAINTAINER_MODE_TRUE='#'
1981 MAINTAINER_MODE_FALSE=
1984 MAINT=$MAINTAINER_MODE_TRUE
1988 # Set various version strings - taken gratefully from the GTk sources
1990 # Making releases:
1991 # MICRO_VERSION += 1;
1992 # INTERFACE_AGE += 1;
1993 # BINARY_AGE += 1;
1994 # if any functions have been added, set INTERFACE_AGE to 0.
1995 # if backwards compatibility has been broken,
1996 # set BINARY_AGE and INTERFACE_AGE to 0.
1998 MAJOR_VERSION=0
1999 MINOR_VERSION=1
2000 MICRO_VERSION=2
2001 INTERFACE_AGE=0
2002 BINARY_AGE=1
2003 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2012 # libtool versioning
2014 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
2015 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
2016 LT_REVISION=$INTERFACE_AGE
2017 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
2024 # Detect the canonical host and target build environment
2026 ac_aux_dir=
2027 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2028 if test -f "$ac_dir/install-sh"; then
2029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install-sh -c"
2031 break
2032 elif test -f "$ac_dir/install.sh"; then
2033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 break
2036 elif test -f "$ac_dir/shtool"; then
2037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 break
2041 done
2042 if test -z "$ac_aux_dir"; then
2043 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2044 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2045 { (exit 1); exit 1; }; }
2048 # These three variables are undocumented and unsupported,
2049 # and are intended to be withdrawn in a future Autoconf release.
2050 # They can cause serious problems if a builder's source tree is in a directory
2051 # whose full name contains unusual characters.
2052 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2053 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2054 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2057 # Make sure we can run config.sub.
2058 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2059 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2060 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2061 { (exit 1); exit 1; }; }
2063 { echo "$as_me:$LINENO: checking build system type" >&5
2064 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_build+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 ac_build_alias=$build_alias
2069 test "x$ac_build_alias" = x &&
2070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2071 test "x$ac_build_alias" = x &&
2072 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2073 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2074 { (exit 1); exit 1; }; }
2075 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2082 echo "${ECHO_T}$ac_cv_build" >&6; }
2083 case $ac_cv_build in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2086 echo "$as_me: error: invalid value of canonical build" >&2;}
2087 { (exit 1); exit 1; }; };;
2088 esac
2089 build=$ac_cv_build
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_build
2092 shift
2093 build_cpu=$1
2094 build_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 build_os=$*
2099 IFS=$ac_save_IFS
2100 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2103 { echo "$as_me:$LINENO: checking host system type" >&5
2104 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_host+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test "x$host_alias" = x; then
2109 ac_cv_host=$ac_cv_build
2110 else
2111 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119 echo "${ECHO_T}$ac_cv_host" >&6; }
2120 case $ac_cv_host in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2123 echo "$as_me: error: invalid value of canonical host" >&2;}
2124 { (exit 1); exit 1; }; };;
2125 esac
2126 host=$ac_cv_host
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_host
2129 shift
2130 host_cpu=$1
2131 host_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 host_os=$*
2136 IFS=$ac_save_IFS
2137 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2140 { echo "$as_me:$LINENO: checking target system type" >&5
2141 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_target+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test "x$target_alias" = x; then
2146 ac_cv_target=$ac_cv_host
2147 else
2148 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2156 echo "${ECHO_T}$ac_cv_target" >&6; }
2157 case $ac_cv_target in
2158 *-*-*) ;;
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2160 echo "$as_me: error: invalid value of canonical target" >&2;}
2161 { (exit 1); exit 1; }; };;
2162 esac
2163 target=$ac_cv_target
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_target
2166 shift
2167 target_cpu=$1
2168 target_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 target_os=$*
2173 IFS=$ac_save_IFS
2174 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2177 # The aliases save the names the user supplied, while $host etc.
2178 # will get canonicalized.
2179 test -n "$target_alias" &&
2180 test "$program_prefix$program_suffix$program_transform_name" = \
2181 NONENONEs,x,x, &&
2182 program_prefix=${target_alias}-
2184 # Setup for automake
2186 am__api_version="1.8"
2187 # Find a good install program. We prefer a C program (faster),
2188 # so one script is as good as another. But avoid the broken or
2189 # incompatible versions:
2190 # SysV /etc/install, /usr/sbin/install
2191 # SunOS /usr/etc/install
2192 # IRIX /sbin/install
2193 # AIX /bin/install
2194 # AmigaOS /C/install, which installs bootblocks on floppy discs
2195 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2196 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2197 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2198 # OS/2's system install, which has a completely different semantic
2199 # ./install, which can be erroneously created by make from ./install.sh.
2200 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2201 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2202 if test -z "$INSTALL"; then
2203 if test "${ac_cv_path_install+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 # Account for people who put trailing slashes in PATH elements.
2212 case $as_dir/ in
2213 ./ | .// | /cC/* | \
2214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2216 /usr/ucb/* ) ;;
2218 # OSF1 and SCO ODT 3.0 have their own names for install.
2219 # Don't use installbsd from OSF since it installs stuff as root
2220 # by default.
2221 for ac_prog in ginstall scoinst install; do
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2224 if test $ac_prog = install &&
2225 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2226 # AIX install. It has an incompatible calling convention.
2228 elif test $ac_prog = install &&
2229 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230 # program-specific install script used by HP pwplus--don't use.
2232 else
2233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2234 break 3
2237 done
2238 done
2240 esac
2241 done
2242 IFS=$as_save_IFS
2246 if test "${ac_cv_path_install+set}" = set; then
2247 INSTALL=$ac_cv_path_install
2248 else
2249 # As a last resort, use the slow shell script. Don't cache a
2250 # value for INSTALL within a source directory, because that will
2251 # break other packages using the cache if that directory is
2252 # removed, or if the value is a relative name.
2253 INSTALL=$ac_install_sh
2256 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2257 echo "${ECHO_T}$INSTALL" >&6; }
2259 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260 # It thinks the first close brace ends the variable substitution.
2261 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2268 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2269 # Just in case
2270 sleep 1
2271 echo timestamp > conftest.file
2272 # Do `set' in a subshell so we don't clobber the current shell's
2273 # arguments. Must try -L first in case configure is actually a
2274 # symlink; some systems play weird games with the mod time of symlinks
2275 # (eg FreeBSD returns the mod time of the symlink's containing
2276 # directory).
2277 if (
2278 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2279 if test "$*" = "X"; then
2280 # -L didn't work.
2281 set X `ls -t $srcdir/configure conftest.file`
2283 rm -f conftest.file
2284 if test "$*" != "X $srcdir/configure conftest.file" \
2285 && test "$*" != "X conftest.file $srcdir/configure"; then
2287 # If neither matched, then we have a broken ls. This can happen
2288 # if, for instance, CONFIG_SHELL is bash and it inherits a
2289 # broken ls alias from the environment. This has actually
2290 # happened. Such a system could not be considered "sane".
2291 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2292 alias in your environment" >&5
2293 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2294 alias in your environment" >&2;}
2295 { (exit 1); exit 1; }; }
2298 test "$2" = conftest.file
2300 then
2301 # Ok.
2303 else
2304 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305 Check your system clock" >&5
2306 echo "$as_me: error: newly created file is older than distributed files!
2307 Check your system clock" >&2;}
2308 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $. echo might interpret backslashes.
2318 # By default was `s,x,x', remove it if useless.
2319 cat <<\_ACEOF >conftest.sed
2320 s/[\\$]/&&/g;s/;s,x,x,$//
2321 _ACEOF
2322 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2323 rm -f conftest.sed
2325 # expand $ac_aux_dir to an absolute path
2326 am_aux_dir=`cd $ac_aux_dir && pwd`
2328 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2329 # Use eval to expand $SHELL
2330 if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2332 else
2333 am_missing_run=
2334 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2335 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2338 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2339 # Keeping the `.' argument allows $(mkdir_p) to be used without
2340 # argument. Indeed, we sometimes output rules like
2341 # $(mkdir_p) $(somedir)
2342 # where $(somedir) is conditionally defined.
2343 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2344 # expensive solution, as it forces Make to start a sub-shell.)
2345 mkdir_p='mkdir -p -- .'
2346 else
2347 # On NextStep and OpenStep, the `mkdir' command does not
2348 # recognize any option. It will interpret all options as
2349 # directories to create, and then abort because `.' already
2350 # exists.
2351 for d in ./-p ./--version;
2353 test -d $d && rmdir $d
2354 done
2355 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2356 if test -f "$ac_aux_dir/mkinstalldirs"; then
2357 mkdir_p='$(mkinstalldirs)'
2358 else
2359 mkdir_p='$(install_sh) -d'
2363 for ac_prog in gawk mawk nawk awk
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_AWK+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$AWK"; then
2373 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_AWK="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2386 done
2387 done
2388 IFS=$as_save_IFS
2392 AWK=$ac_cv_prog_AWK
2393 if test -n "$AWK"; then
2394 { echo "$as_me:$LINENO: result: $AWK" >&5
2395 echo "${ECHO_T}$AWK" >&6; }
2396 else
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2402 test -n "$AWK" && break
2403 done
2405 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2406 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2407 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2408 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 cat >conftest.make <<\_ACEOF
2412 SHELL = /bin/sh
2413 all:
2414 @echo '@@@%%%=$(MAKE)=@@@%%%'
2415 _ACEOF
2416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2418 *@@@%%%=?*=@@@%%%*)
2419 eval ac_cv_prog_make_${ac_make}_set=yes;;
2421 eval ac_cv_prog_make_${ac_make}_set=no;;
2422 esac
2423 rm -f conftest.make
2425 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428 SET_MAKE=
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2432 SET_MAKE="MAKE=${MAKE-make}"
2435 rm -rf .tst 2>/dev/null
2436 mkdir .tst 2>/dev/null
2437 if test -d .tst; then
2438 am__leading_dot=.
2439 else
2440 am__leading_dot=_
2442 rmdir .tst 2>/dev/null
2444 # test to see if srcdir already configured
2445 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2446 test -f $srcdir/config.status; then
2447 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2448 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2449 { (exit 1); exit 1; }; }
2452 # test whether we have cygpath
2453 if test -z "$CYGPATH_W"; then
2454 if (cygpath --version) >/dev/null 2>/dev/null; then
2455 CYGPATH_W='cygpath -w'
2456 else
2457 CYGPATH_W=echo
2462 # Define the identity of the package.
2463 PACKAGE=SDL_Pango
2464 VERSION=$VERSION
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE "$PACKAGE"
2469 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define VERSION "$VERSION"
2474 _ACEOF
2476 # Some tools Automake needs.
2478 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2481 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2484 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2487 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2490 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2493 AMTAR=${AMTAR-"${am_missing_run}tar"}
2495 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2497 # Installed binaries are usually stripped using `strip' when the user
2498 # run `make install-strip'. However `strip' might not be the right
2499 # tool to use in cross-compilation environments, therefore Automake
2500 # will honor the `STRIP' environment variable to overrule this program.
2501 if test "$cross_compiling" != no; then
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}strip; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_STRIP+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$STRIP"; then
2511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2524 done
2525 done
2526 IFS=$as_save_IFS
2530 STRIP=$ac_cv_prog_STRIP
2531 if test -n "$STRIP"; then
2532 { echo "$as_me:$LINENO: result: $STRIP" >&5
2533 echo "${ECHO_T}$STRIP" >&6; }
2534 else
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2541 if test -z "$ac_cv_prog_STRIP"; then
2542 ac_ct_STRIP=$STRIP
2543 # Extract the first word of "strip", so it can be a program name with args.
2544 set dummy strip; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550 if test -n "$ac_ct_STRIP"; then
2551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_ac_ct_STRIP="strip"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2564 done
2565 done
2566 IFS=$as_save_IFS
2570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2571 if test -n "$ac_ct_STRIP"; then
2572 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2573 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2574 else
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2579 if test "x$ac_ct_STRIP" = x; then
2580 STRIP=":"
2581 else
2582 case $cross_compiling:$ac_tool_warned in
2583 yes:)
2584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2585 whose name does not start with the host triplet. If you think this
2586 configuration is useful to you, please write to autoconf@gnu.org." >&5
2587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2588 whose name does not start with the host triplet. If you think this
2589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2590 ac_tool_warned=yes ;;
2591 esac
2592 STRIP=$ac_ct_STRIP
2594 else
2595 STRIP="$ac_cv_prog_STRIP"
2599 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2601 # We need awk for the "check" target. The system "awk" is bad on
2602 # some platforms.
2607 # Check for tools
2611 # Check whether --enable-shared was given.
2612 if test "${enable_shared+set}" = set; then
2613 enableval=$enable_shared; p=${PACKAGE-default}
2614 case $enableval in
2615 yes) enable_shared=yes ;;
2616 no) enable_shared=no ;;
2618 enable_shared=no
2619 # Look at the argument we got. We use all the common list separators.
2620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2621 for pkg in $enableval; do
2622 IFS="$lt_save_ifs"
2623 if test "X$pkg" = "X$p"; then
2624 enable_shared=yes
2626 done
2627 IFS="$lt_save_ifs"
2629 esac
2630 else
2631 enable_shared=yes
2635 # Check whether --enable-static was given.
2636 if test "${enable_static+set}" = set; then
2637 enableval=$enable_static; p=${PACKAGE-default}
2638 case $enableval in
2639 yes) enable_static=yes ;;
2640 no) enable_static=no ;;
2642 enable_static=no
2643 # Look at the argument we got. We use all the common list separators.
2644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2645 for pkg in $enableval; do
2646 IFS="$lt_save_ifs"
2647 if test "X$pkg" = "X$p"; then
2648 enable_static=yes
2650 done
2651 IFS="$lt_save_ifs"
2653 esac
2654 else
2655 enable_static=yes
2659 # Check whether --enable-fast-install was given.
2660 if test "${enable_fast_install+set}" = set; then
2661 enableval=$enable_fast_install; p=${PACKAGE-default}
2662 case $enableval in
2663 yes) enable_fast_install=yes ;;
2664 no) enable_fast_install=no ;;
2666 enable_fast_install=no
2667 # Look at the argument we got. We use all the common list separators.
2668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2669 for pkg in $enableval; do
2670 IFS="$lt_save_ifs"
2671 if test "X$pkg" = "X$p"; then
2672 enable_fast_install=yes
2674 done
2675 IFS="$lt_save_ifs"
2677 esac
2678 else
2679 enable_fast_install=yes
2683 DEPDIR="${am__leading_dot}deps"
2685 ac_config_commands="$ac_config_commands depfiles"
2688 am_make=${MAKE-make}
2689 cat > confinc << 'END'
2690 am__doit:
2691 @echo done
2692 .PHONY: am__doit
2694 # If we don't find an include directive, just comment out the code.
2695 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2696 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2697 am__include="#"
2698 am__quote=
2699 _am_result=none
2700 # First try GNU make style include.
2701 echo "include confinc" > confmf
2702 # We grep out `Entering directory' and `Leaving directory'
2703 # messages which can occur if `w' ends up in MAKEFLAGS.
2704 # In particular we don't look at `^make:' because GNU make might
2705 # be invoked under some other name (usually "gmake"), in which
2706 # case it prints its new name instead of `make'.
2707 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2708 am__include=include
2709 am__quote=
2710 _am_result=GNU
2712 # Now try BSD make style include.
2713 if test "$am__include" = "#"; then
2714 echo '.include "confinc"' > confmf
2715 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2716 am__include=.include
2717 am__quote="\""
2718 _am_result=BSD
2723 { echo "$as_me:$LINENO: result: $_am_result" >&5
2724 echo "${ECHO_T}$_am_result" >&6; }
2725 rm -f confinc confmf
2727 # Check whether --enable-dependency-tracking was given.
2728 if test "${enable_dependency_tracking+set}" = set; then
2729 enableval=$enable_dependency_tracking;
2732 if test "x$enable_dependency_tracking" != xno; then
2733 am_depcomp="$ac_aux_dir/depcomp"
2734 AMDEPBACKSLASH='\'
2738 if test "x$enable_dependency_tracking" != xno; then
2739 AMDEP_TRUE=
2740 AMDEP_FALSE='#'
2741 else
2742 AMDEP_TRUE='#'
2743 AMDEP_FALSE=
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2775 done
2776 done
2777 IFS=$as_save_IFS
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2785 else
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2792 if test -z "$ac_cv_prog_CC"; then
2793 ac_ct_CC=$CC
2794 # Extract the first word of "gcc", so it can be a program name with args.
2795 set dummy gcc; ac_word=$2
2796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="gcc"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2815 done
2816 done
2817 IFS=$as_save_IFS
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824 echo "${ECHO_T}$ac_ct_CC" >&6; }
2825 else
2826 { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2830 if test "x$ac_ct_CC" = x; then
2831 CC=""
2832 else
2833 case $cross_compiling:$ac_tool_warned in
2834 yes:)
2835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2836 whose name does not start with the host triplet. If you think this
2837 configuration is useful to you, please write to autoconf@gnu.org." >&5
2838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet. If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}cc; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { echo "$as_me:$LINENO: result: $CC" >&5
2881 echo "${ECHO_T}$CC" >&6; }
2882 else
2883 { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2890 if test -z "$CC"; then
2891 # Extract the first word of "cc", so it can be a program name with args.
2892 set dummy cc; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 ac_prog_rejected=no
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2911 continue
2913 ac_cv_prog_CC="cc"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2921 if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2924 shift
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2929 shift
2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { echo "$as_me:$LINENO: result: $CC" >&5
2938 echo "${ECHO_T}$CC" >&6; }
2939 else
2940 { echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6; }
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 for ac_prog in cl.exe
2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979 { echo "$as_me:$LINENO: result: $CC" >&5
2980 echo "${ECHO_T}$CC" >&6; }
2981 else
2982 { echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6; }
2987 test -n "$CC" && break
2988 done
2990 if test -z "$CC"; then
2991 ac_ct_CC=$CC
2992 for ac_prog in cl.exe
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="$ac_prog"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3024 echo "${ECHO_T}$ac_ct_CC" >&6; }
3025 else
3026 { echo "$as_me:$LINENO: result: no" >&5
3027 echo "${ECHO_T}no" >&6; }
3031 test -n "$ac_ct_CC" && break
3032 done
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3040 whose name does not start with the host triplet. If you think this
3041 configuration is useful to you, please write to autoconf@gnu.org." >&5
3042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3043 whose name does not start with the host triplet. If you think this
3044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3060 # Provide some information about the compiler.
3061 echo "$as_me:$LINENO: checking for C compiler version" >&5
3062 ac_compiler=`set X $ac_compile; echo $2`
3063 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }
3073 { (ac_try="$ac_compiler -v >&5"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compiler -v >&5") 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083 { (ac_try="$ac_compiler -V >&5"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compiler -V >&5") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3102 main ()
3106 return 0;
3108 _ACEOF
3109 ac_clean_files_save=$ac_clean_files
3110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3111 # Try to create an executable without -o first, disregard a.out.
3112 # It will help us diagnose broken compilers, and finding out an intuition
3113 # of exeext.
3114 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3118 # List of possible output files, starting from the most likely.
3119 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3120 # only as a last resort. b.out is created by i960 compilers.
3121 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3123 # The IRIX 6 linker writes into existing files which may not be
3124 # executable, retaining their permissions. Remove them first so a
3125 # subsequent execution test works.
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133 done
3134 rm -f $ac_rmfiles
3136 if { (ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_link_default") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; then
3146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3149 # so that the user can short-circuit this test for compilers unknown to
3150 # Autoconf.
3151 for ac_file in $ac_files ''
3153 test -f "$ac_file" || continue
3154 case $ac_file in
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3157 [ab].out )
3158 # We found the default executable, but exeext='' is most
3159 # certainly right.
3160 break;;
3161 *.* )
3162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3163 then :; else
3164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 # We set ac_cv_exeext here because the later test for it is not
3167 # safe: cross compilers may not add the suffix if given an `-o'
3168 # argument, so we may need to know it at that point already.
3169 # Even if this section looks crufty: it has the advantage of
3170 # actually working.
3171 break;;
3173 break;;
3174 esac
3175 done
3176 test "$ac_cv_exeext" = no && ac_cv_exeext=
3178 else
3179 ac_file=''
3182 { echo "$as_me:$LINENO: result: $ac_file" >&5
3183 echo "${ECHO_T}$ac_file" >&6; }
3184 if test -z "$ac_file"; then
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: C compiler cannot create executables
3191 See \`config.log' for more details." >&2;}
3192 { (exit 77); exit 77; }; }
3195 ac_exeext=$ac_cv_exeext
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3202 # If not cross compiling, check that we can run a simple program.
3203 if test "$cross_compiling" != yes; then
3204 if { ac_try='./$ac_file'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 cross_compiling=no
3215 else
3216 if test "$cross_compiling" = maybe; then
3217 cross_compiling=yes
3218 else
3219 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3220 If you meant to cross compile, use \`--host'.
3221 See \`config.log' for more details." >&5
3222 echo "$as_me: error: cannot run C compiled programs.
3223 If you meant to cross compile, use \`--host'.
3224 See \`config.log' for more details." >&2;}
3225 { (exit 1); exit 1; }; }
3229 { echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6; }
3232 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3233 ac_clean_files=$ac_clean_files_save
3234 # Check that the compiler produces executables we can run. If not, either
3235 # the compiler is broken, or we cross compile.
3236 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3237 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3238 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3239 echo "${ECHO_T}$cross_compiling" >&6; }
3241 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3242 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3243 if { (ac_try="$ac_link"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_link") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3255 # work properly (i.e., refer to `conftest.exe'), while it won't with
3256 # `rm'.
3257 for ac_file in conftest.exe conftest conftest.*; do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3262 break;;
3263 * ) break;;
3264 esac
3265 done
3266 else
3267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3268 See \`config.log' for more details." >&5
3269 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3270 See \`config.log' for more details." >&2;}
3271 { (exit 1); exit 1; }; }
3274 rm -f conftest$ac_cv_exeext
3275 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3276 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3278 rm -f conftest.$ac_ext
3279 EXEEXT=$ac_cv_exeext
3280 ac_exeext=$EXEEXT
3281 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3282 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3283 if test "${ac_cv_objext+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3294 main ()
3298 return 0;
3300 _ACEOF
3301 rm -f conftest.o conftest.obj
3302 if { (ac_try="$ac_compile"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_compile") 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; then
3312 for ac_file in conftest.o conftest.obj conftest.*; do
3313 test -f "$ac_file" || continue;
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3317 break;;
3318 esac
3319 done
3320 else
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3325 See \`config.log' for more details." >&5
3326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3327 See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3334 echo "${ECHO_T}$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3350 main ()
3352 #ifndef __GNUC__
3353 choke me
3354 #endif
3357 return 0;
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_compiler_gnu=yes
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 ac_compiler_gnu=no
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3389 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3390 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3391 GCC=`test $ac_compiler_gnu = yes && echo yes`
3392 ac_test_CFLAGS=${CFLAGS+set}
3393 ac_save_CFLAGS=$CFLAGS
3394 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3396 if test "${ac_cv_prog_cc_g+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3435 ac_cv_prog_cc_g=yes
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 CFLAGS=""
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3449 main ()
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest.$ac_objext; then
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 CFLAGS="-g"
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3488 main ()
3492 return 0;
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_prog_cc_g=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_c_werror_flag=$ac_save_c_werror_flag
3529 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3530 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3531 if test "$ac_test_CFLAGS" = set; then
3532 CFLAGS=$ac_save_CFLAGS
3533 elif test $ac_cv_prog_cc_g = yes; then
3534 if test "$GCC" = yes; then
3535 CFLAGS="-g -O2"
3536 else
3537 CFLAGS="-g"
3539 else
3540 if test "$GCC" = yes; then
3541 CFLAGS="-O2"
3542 else
3543 CFLAGS=
3546 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3547 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_cc_c89+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 ac_cv_prog_cc_c89=no
3552 ac_save_CC=$CC
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <stdarg.h>
3560 #include <stdio.h>
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3567 char **p;
3568 int i;
3570 return p[i];
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3574 char *s;
3575 va_list v;
3576 va_start (v,p);
3577 s = g (p, va_arg (v,int));
3578 va_end (v);
3579 return s;
3582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3583 function prototypes and stuff, but not '\xHH' hex character constants.
3584 These don't provoke an error unfortunately, instead are silently treated
3585 as 'x'. The following induces an error, until -std is added to get
3586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3587 array size at least. It's necessary to write '\x00'==0 to get something
3588 that's true only with -std. */
3589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3592 inside strings and character constants. */
3593 #define FOO(x) 'x'
3594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3596 int test (int i, double x);
3597 struct s1 {int (*f) (int a);};
3598 struct s2 {int (*f) (double a);};
3599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3600 int argc;
3601 char **argv;
3603 main ()
3605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3607 return 0;
3609 _ACEOF
3610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3613 CC="$ac_save_CC $ac_arg"
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_prog_cc_c89=$ac_arg
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3639 rm -f core conftest.err conftest.$ac_objext
3640 test "x$ac_cv_prog_cc_c89" != "xno" && break
3641 done
3642 rm -f conftest.$ac_ext
3643 CC=$ac_save_CC
3646 # AC_CACHE_VAL
3647 case "x$ac_cv_prog_cc_c89" in
3649 { echo "$as_me:$LINENO: result: none needed" >&5
3650 echo "${ECHO_T}none needed" >&6; } ;;
3651 xno)
3652 { echo "$as_me:$LINENO: result: unsupported" >&5
3653 echo "${ECHO_T}unsupported" >&6; } ;;
3655 CC="$CC $ac_cv_prog_cc_c89"
3656 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3657 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3658 esac
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 depcc="$CC" am_compiler_list=
3669 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3670 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3671 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3675 # We make a subdir and do the tests there. Otherwise we can end up
3676 # making bogus files that we don't know about and never remove. For
3677 # instance it was reported that on HP-UX the gcc test will end up
3678 # making a dummy file named `D' -- because `-MD' means `put the output
3679 # in D'.
3680 mkdir conftest.dir
3681 # Copy depcomp to subdir because otherwise we won't find it if we're
3682 # using a relative directory.
3683 cp "$am_depcomp" conftest.dir
3684 cd conftest.dir
3685 # We will build objects and dependencies in a subdirectory because
3686 # it helps to detect inapplicable dependency modes. For instance
3687 # both Tru64's cc and ICC support -MD to output dependencies as a
3688 # side effect of compilation, but ICC will put the dependencies in
3689 # the current directory while Tru64 will put them in the object
3690 # directory.
3691 mkdir sub
3693 am_cv_CC_dependencies_compiler_type=none
3694 if test "$am_compiler_list" = ""; then
3695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3697 for depmode in $am_compiler_list; do
3698 # Setup a source with many dependencies, because some compilers
3699 # like to wrap large dependency lists on column 80 (with \), and
3700 # we should not choose a depcomp mode which is confused by this.
3702 # We need to recreate these files for each test, as the compiler may
3703 # overwrite some of them when testing with obscure command lines.
3704 # This happens at least with the AIX C compiler.
3705 : > sub/conftest.c
3706 for i in 1 2 3 4 5 6; do
3707 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3708 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3709 # Solaris 8's {/usr,}/bin/sh.
3710 touch sub/conftst$i.h
3711 done
3712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3714 case $depmode in
3715 nosideeffect)
3716 # after this tag, mechanisms are not by side-effect, so they'll
3717 # only be used when explicitly requested
3718 if test "x$enable_dependency_tracking" = xyes; then
3719 continue
3720 else
3721 break
3724 none) break ;;
3725 esac
3726 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3727 # mode. It turns out that the SunPro C++ compiler does not properly
3728 # handle `-M -o', and we need to detect this.
3729 if depmode=$depmode \
3730 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3732 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3733 >/dev/null 2>conftest.err &&
3734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3735 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3737 # icc doesn't choke on unknown options, it will just issue warnings
3738 # or remarks (even with -Werror). So we grep stderr for any message
3739 # that says an option was ignored or not supported.
3740 # When given -MP, icc 7.0 and 7.1 complain thusly:
3741 # icc: Command line warning: ignoring option '-M'; no argument required
3742 # The diagnosis changed in icc 8.0:
3743 # icc: Command line remark: option '-MP' not supported
3744 if (grep 'ignoring option' conftest.err ||
3745 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3746 am_cv_CC_dependencies_compiler_type=$depmode
3747 break
3750 done
3752 cd ..
3753 rm -rf conftest.dir
3754 else
3755 am_cv_CC_dependencies_compiler_type=none
3759 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3760 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3766 test "x$enable_dependency_tracking" != xno \
3767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3768 am__fastdepCC_TRUE=
3769 am__fastdepCC_FALSE='#'
3770 else
3771 am__fastdepCC_TRUE='#'
3772 am__fastdepCC_FALSE=
3776 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3777 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3778 if test "${lt_cv_path_SED+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 # Loop through the user's path and test for sed and gsed.
3782 # Then use that list of sed's as ones to test for truncation.
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for lt_ac_prog in sed gsed; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3791 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3793 done
3794 done
3795 done
3796 IFS=$as_save_IFS
3797 lt_ac_max=0
3798 lt_ac_count=0
3799 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3800 # along with /bin/sed that truncates output.
3801 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3802 test ! -f $lt_ac_sed && continue
3803 cat /dev/null > conftest.in
3804 lt_ac_count=0
3805 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3806 # Check for GNU sed and select it if it is found.
3807 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3808 lt_cv_path_SED=$lt_ac_sed
3809 break
3811 while true; do
3812 cat conftest.in conftest.in >conftest.tmp
3813 mv conftest.tmp conftest.in
3814 cp conftest.in conftest.nl
3815 echo >>conftest.nl
3816 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3817 cmp -s conftest.out conftest.nl || break
3818 # 10000 chars as input seems more than enough
3819 test $lt_ac_count -gt 10 && break
3820 lt_ac_count=`expr $lt_ac_count + 1`
3821 if test $lt_ac_count -gt $lt_ac_max; then
3822 lt_ac_max=$lt_ac_count
3823 lt_cv_path_SED=$lt_ac_sed
3825 done
3826 done
3830 SED=$lt_cv_path_SED
3832 { echo "$as_me:$LINENO: result: $SED" >&5
3833 echo "${ECHO_T}$SED" >&6; }
3835 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3836 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3837 if test "${ac_cv_path_GREP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 # Extract the first word of "grep ggrep" to use in msg output
3841 if test -z "$GREP"; then
3842 set dummy grep ggrep; ac_prog_name=$2
3843 if test "${ac_cv_path_GREP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 ac_path_GREP_found=false
3847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857 # Check for GNU ac_path_GREP and select it if it is found.
3858 # Check for GNU $ac_path_GREP
3859 case `"$ac_path_GREP" --version 2>&1` in
3860 *GNU*)
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3863 ac_count=0
3864 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3865 while :
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
3870 echo 'GREP' >> "conftest.nl"
3871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 ac_count=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
3879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 esac
3886 $ac_path_GREP_found && break 3
3887 done
3888 done
3890 done
3891 IFS=$as_save_IFS
3896 GREP="$ac_cv_path_GREP"
3897 if test -z "$GREP"; then
3898 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3899 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3900 { (exit 1); exit 1; }; }
3903 else
3904 ac_cv_path_GREP=$GREP
3909 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3910 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3911 GREP="$ac_cv_path_GREP"
3914 { echo "$as_me:$LINENO: checking for egrep" >&5
3915 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3916 if test "${ac_cv_path_EGREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3920 then ac_cv_path_EGREP="$GREP -E"
3921 else
3922 # Extract the first word of "egrep" to use in msg output
3923 if test -z "$EGREP"; then
3924 set dummy egrep; ac_prog_name=$2
3925 if test "${ac_cv_path_EGREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 ac_path_EGREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in egrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3939 # Check for GNU ac_path_EGREP and select it if it is found.
3940 # Check for GNU $ac_path_EGREP
3941 case `"$ac_path_EGREP" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3945 ac_count=0
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3947 while :
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 echo 'EGREP' >> "conftest.nl"
3953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_EGREP="$ac_path_EGREP"
3959 ac_path_EGREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3968 $ac_path_EGREP_found && break 3
3969 done
3970 done
3972 done
3973 IFS=$as_save_IFS
3978 EGREP="$ac_cv_path_EGREP"
3979 if test -z "$EGREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3985 else
3986 ac_cv_path_EGREP=$EGREP
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3994 EGREP="$ac_cv_path_EGREP"
3998 # Check whether --with-gnu-ld was given.
3999 if test "${with_gnu_ld+set}" = set; then
4000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4001 else
4002 with_gnu_ld=no
4005 ac_prog=ld
4006 if test "$GCC" = yes; then
4007 # Check if gcc -print-prog-name=ld gives a path.
4008 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4009 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4010 case $host in
4011 *-*-mingw*)
4012 # gcc leaves a trailing carriage return which upsets mingw
4013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4016 esac
4017 case $ac_prog in
4018 # Accept absolute paths.
4019 [\\/]* | ?:[\\/]*)
4020 re_direlt='/[^/][^/]*/\.\./'
4021 # Canonicalize the pathname of ld
4022 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4023 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4024 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4025 done
4026 test -z "$LD" && LD="$ac_prog"
4029 # If it fails, then pretend we aren't using GCC.
4030 ac_prog=ld
4033 # If it is relative, then search for the first ld in PATH.
4034 with_gnu_ld=unknown
4036 esac
4037 elif test "$with_gnu_ld" = yes; then
4038 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4039 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4040 else
4041 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4042 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4044 if test "${lt_cv_path_LD+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 if test -z "$LD"; then
4048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4049 for ac_dir in $PATH; do
4050 IFS="$lt_save_ifs"
4051 test -z "$ac_dir" && ac_dir=.
4052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4053 lt_cv_path_LD="$ac_dir/$ac_prog"
4054 # Check to see if the program is GNU ld. I'd rather use --version,
4055 # but apparently some variants of GNU ld only accept -v.
4056 # Break only if it was the GNU/non-GNU ld that we prefer.
4057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4058 *GNU* | *'with BFD'*)
4059 test "$with_gnu_ld" != no && break
4062 test "$with_gnu_ld" != yes && break
4064 esac
4066 done
4067 IFS="$lt_save_ifs"
4068 else
4069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4073 LD="$lt_cv_path_LD"
4074 if test -n "$LD"; then
4075 { echo "$as_me:$LINENO: result: $LD" >&5
4076 echo "${ECHO_T}$LD" >&6; }
4077 else
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4081 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4082 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4083 { (exit 1); exit 1; }; }
4084 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4085 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4086 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4090 case `$LD -v 2>&1 </dev/null` in
4091 *GNU* | *'with BFD'*)
4092 lt_cv_prog_gnu_ld=yes
4095 lt_cv_prog_gnu_ld=no
4097 esac
4099 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4100 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4101 with_gnu_ld=$lt_cv_prog_gnu_ld
4104 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4105 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4106 if test "${lt_cv_ld_reload_flag+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 lt_cv_ld_reload_flag='-r'
4111 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4112 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4113 reload_flag=$lt_cv_ld_reload_flag
4114 case $reload_flag in
4115 "" | " "*) ;;
4116 *) reload_flag=" $reload_flag" ;;
4117 esac
4118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4119 case $host_os in
4120 darwin*)
4121 if test "$GCC" = yes; then
4122 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4123 else
4124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4127 esac
4129 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4130 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4131 if test "${lt_cv_path_NM+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 if test -n "$NM"; then
4135 # Let the user override the test.
4136 lt_cv_path_NM="$NM"
4137 else
4138 lt_nm_to_check="${ac_tool_prefix}nm"
4139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4140 lt_nm_to_check="$lt_nm_to_check nm"
4142 for lt_tmp_nm in $lt_nm_to_check; do
4143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4145 IFS="$lt_save_ifs"
4146 test -z "$ac_dir" && ac_dir=.
4147 tmp_nm="$ac_dir/$lt_tmp_nm"
4148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4149 # Check to see if the nm accepts a BSD-compat flag.
4150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4151 # nm: unknown option "B" ignored
4152 # Tru64's nm complains that /dev/null is an invalid object file
4153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4154 */dev/null* | *'Invalid file or object type'*)
4155 lt_cv_path_NM="$tmp_nm -B"
4156 break
4159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4160 */dev/null*)
4161 lt_cv_path_NM="$tmp_nm -p"
4162 break
4165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4166 continue # so that we can try to find one that supports BSD flags
4168 esac
4170 esac
4172 done
4173 IFS="$lt_save_ifs"
4174 done
4175 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4178 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4179 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4180 NM="$lt_cv_path_NM"
4182 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4183 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4184 LN_S=$as_ln_s
4185 if test "$LN_S" = "ln -s"; then
4186 { echo "$as_me:$LINENO: result: yes" >&5
4187 echo "${ECHO_T}yes" >&6; }
4188 else
4189 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4190 echo "${ECHO_T}no, using $LN_S" >&6; }
4193 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4194 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4195 if test "${lt_cv_deplibs_check_method+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 lt_cv_file_magic_cmd='$MAGIC_CMD'
4199 lt_cv_file_magic_test_file=
4200 lt_cv_deplibs_check_method='unknown'
4201 # Need to set the preceding variable on all platforms that support
4202 # interlibrary dependencies.
4203 # 'none' -- dependencies not supported.
4204 # `unknown' -- same as none, but documents that we really don't know.
4205 # 'pass_all' -- all dependencies passed with no checks.
4206 # 'test_compile' -- check by making test program.
4207 # 'file_magic [[regex]]' -- check by looking for files in library path
4208 # which responds to the $file_magic_cmd with a given extended regex.
4209 # If you have `file' or equivalent on your system and you're not sure
4210 # whether `pass_all' will *always* work, you probably want this one.
4212 case $host_os in
4213 aix4* | aix5*)
4214 lt_cv_deplibs_check_method=pass_all
4217 beos*)
4218 lt_cv_deplibs_check_method=pass_all
4221 bsdi[45]*)
4222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4223 lt_cv_file_magic_cmd='/usr/bin/file -L'
4224 lt_cv_file_magic_test_file=/shlib/libc.so
4227 cygwin*)
4228 # func_win32_libid is a shell function defined in ltmain.sh
4229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4230 lt_cv_file_magic_cmd='func_win32_libid'
4233 mingw* | pw32*)
4234 # Base MSYS/MinGW do not provide the 'file' command needed by
4235 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4236 # unless we find 'file', for example because we are cross-compiling.
4237 if ( file / ) >/dev/null 2>&1; then
4238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4239 lt_cv_file_magic_cmd='func_win32_libid'
4240 else
4241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4242 lt_cv_file_magic_cmd='$OBJDUMP -f'
4246 darwin* | rhapsody*)
4247 lt_cv_deplibs_check_method=pass_all
4250 freebsd* | dragonfly*)
4251 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4252 case $host_cpu in
4253 i*86 )
4254 # Not sure whether the presence of OpenBSD here was a mistake.
4255 # Let's accept both of them until this is cleared up.
4256 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4257 lt_cv_file_magic_cmd=/usr/bin/file
4258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4260 esac
4261 else
4262 lt_cv_deplibs_check_method=pass_all
4266 gnu*)
4267 lt_cv_deplibs_check_method=pass_all
4270 hpux10.20* | hpux11*)
4271 lt_cv_file_magic_cmd=/usr/bin/file
4272 case $host_cpu in
4273 ia64*)
4274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4275 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4277 hppa*64*)
4278 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]'
4279 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4283 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4285 esac
4288 interix[3-9]*)
4289 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4293 irix5* | irix6* | nonstopux*)
4294 case $LD in
4295 *-32|*"-32 ") libmagic=32-bit;;
4296 *-n32|*"-n32 ") libmagic=N32;;
4297 *-64|*"-64 ") libmagic=64-bit;;
4298 *) libmagic=never-match;;
4299 esac
4300 lt_cv_deplibs_check_method=pass_all
4303 # This must be Linux ELF.
4304 linux* | k*bsd*-gnu)
4305 lt_cv_deplibs_check_method=pass_all
4308 netbsd* | netbsdelf*-gnu)
4309 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4311 else
4312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4316 newos6*)
4317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4322 nto-qnx*)
4323 lt_cv_deplibs_check_method=unknown
4326 openbsd*)
4327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4329 else
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4334 osf3* | osf4* | osf5*)
4335 lt_cv_deplibs_check_method=pass_all
4338 rdos*)
4339 lt_cv_deplibs_check_method=pass_all
4342 solaris*)
4343 lt_cv_deplibs_check_method=pass_all
4346 sysv4 | sysv4.3*)
4347 case $host_vendor in
4348 motorola)
4349 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]'
4350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4352 ncr)
4353 lt_cv_deplibs_check_method=pass_all
4355 sequent)
4356 lt_cv_file_magic_cmd='/bin/file'
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4359 sni)
4360 lt_cv_file_magic_cmd='/bin/file'
4361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4362 lt_cv_file_magic_test_file=/lib/libc.so
4364 siemens)
4365 lt_cv_deplibs_check_method=pass_all
4368 lt_cv_deplibs_check_method=pass_all
4370 esac
4373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4374 lt_cv_deplibs_check_method=pass_all
4376 esac
4379 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4380 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4381 file_magic_cmd=$lt_cv_file_magic_cmd
4382 deplibs_check_method=$lt_cv_deplibs_check_method
4383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4388 # If no C compiler was specified, use CC.
4389 LTCC=${LTCC-"$CC"}
4391 # If no C compiler flags were specified, use CFLAGS.
4392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4394 # Allow CC to be a program name with arguments.
4395 compiler=$CC
4398 # Check whether --enable-libtool-lock was given.
4399 if test "${enable_libtool_lock+set}" = set; then
4400 enableval=$enable_libtool_lock;
4403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4405 # Some flags need to be propagated to the compiler or linker for good
4406 # libtool support.
4407 case $host in
4408 ia64-*-hpux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case `/usr/bin/file conftest.$ac_objext` in
4417 *ELF-32*)
4418 HPUX_IA64_MODE="32"
4420 *ELF-64*)
4421 HPUX_IA64_MODE="64"
4423 esac
4425 rm -rf conftest*
4427 *-*-irix6*)
4428 # Find out which ABI we are using.
4429 echo '#line 4429 "configure"' > conftest.$ac_ext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; then
4435 if test "$lt_cv_prog_gnu_ld" = yes; then
4436 case `/usr/bin/file conftest.$ac_objext` in
4437 *32-bit*)
4438 LD="${LD-ld} -melf32bsmip"
4440 *N32*)
4441 LD="${LD-ld} -melf32bmipn32"
4443 *64-bit*)
4444 LD="${LD-ld} -melf64bmip"
4446 esac
4447 else
4448 case `/usr/bin/file conftest.$ac_objext` in
4449 *32-bit*)
4450 LD="${LD-ld} -32"
4452 *N32*)
4453 LD="${LD-ld} -n32"
4455 *64-bit*)
4456 LD="${LD-ld} -64"
4458 esac
4461 rm -rf conftest*
4464 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4465 s390*-*linux*|sparc*-*linux*)
4466 # Find out which ABI we are using.
4467 echo 'int i;' > conftest.$ac_ext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
4473 case `/usr/bin/file conftest.o` in
4474 *32-bit*)
4475 case $host in
4476 x86_64-*kfreebsd*-gnu)
4477 LD="${LD-ld} -m elf_i386_fbsd"
4479 x86_64-*linux*)
4480 LD="${LD-ld} -m elf_i386"
4482 ppc64-*linux*|powerpc64-*linux*)
4483 LD="${LD-ld} -m elf32ppclinux"
4485 s390x-*linux*)
4486 LD="${LD-ld} -m elf_s390"
4488 sparc64-*linux*)
4489 LD="${LD-ld} -m elf32_sparc"
4491 esac
4493 *64-bit*)
4494 case $host in
4495 x86_64-*kfreebsd*-gnu)
4496 LD="${LD-ld} -m elf_x86_64_fbsd"
4498 x86_64-*linux*)
4499 LD="${LD-ld} -m elf_x86_64"
4501 ppc*-*linux*|powerpc*-*linux*)
4502 LD="${LD-ld} -m elf64ppc"
4504 s390*-*linux*)
4505 LD="${LD-ld} -m elf64_s390"
4507 sparc*-*linux*)
4508 LD="${LD-ld} -m elf64_sparc"
4510 esac
4512 esac
4514 rm -rf conftest*
4517 *-*-sco3.2v5*)
4518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4519 SAVE_CFLAGS="$CFLAGS"
4520 CFLAGS="$CFLAGS -belf"
4521 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4522 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4523 if test "${lt_cv_cc_needs_belf+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4540 main ()
4544 return 0;
4546 _ACEOF
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4549 case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>conftest.er1
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest$ac_exeext &&
4564 $as_test_x conftest$ac_exeext; then
4565 lt_cv_cc_needs_belf=yes
4566 else
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 lt_cv_cc_needs_belf=no
4573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4574 conftest$ac_exeext conftest.$ac_ext
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4583 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4586 CFLAGS="$SAVE_CFLAGS"
4589 sparc*-*solaris*)
4590 # Find out which ABI we are using.
4591 echo 'int i;' > conftest.$ac_ext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.o` in
4598 *64-bit*)
4599 case $lt_cv_prog_gnu_ld in
4600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4601 *) LD="${LD-ld} -64" ;;
4602 esac
4604 esac
4606 rm -rf conftest*
4609 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 if test -n "$DLLTOOL"; then
4619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4638 DLLTOOL=$ac_cv_prog_DLLTOOL
4639 if test -n "$DLLTOOL"; then
4640 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4641 echo "${ECHO_T}$DLLTOOL" >&6; }
4642 else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4649 if test -z "$ac_cv_prog_DLLTOOL"; then
4650 ac_ct_DLLTOOL=$DLLTOOL
4651 # Extract the first word of "dlltool", so it can be a program name with args.
4652 set dummy dlltool; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 if test -n "$ac_ct_DLLTOOL"; then
4659 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4679 if test -n "$ac_ct_DLLTOOL"; then
4680 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4681 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4682 else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4687 if test "x$ac_ct_DLLTOOL" = x; then
4688 DLLTOOL="false"
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4693 whose name does not start with the host triplet. If you think this
4694 configuration is useful to you, please write to autoconf@gnu.org." >&5
4695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4696 whose name does not start with the host triplet. If you think this
4697 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 DLLTOOL=$ac_ct_DLLTOOL
4702 else
4703 DLLTOOL="$ac_cv_prog_DLLTOOL"
4706 if test -n "$ac_tool_prefix"; then
4707 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4708 set dummy ${ac_tool_prefix}as; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_prog_AS+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 if test -n "$AS"; then
4715 ac_cv_prog_AS="$AS" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_AS="${ac_tool_prefix}as"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4728 done
4729 done
4730 IFS=$as_save_IFS
4734 AS=$ac_cv_prog_AS
4735 if test -n "$AS"; then
4736 { echo "$as_me:$LINENO: result: $AS" >&5
4737 echo "${ECHO_T}$AS" >&6; }
4738 else
4739 { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4745 if test -z "$ac_cv_prog_AS"; then
4746 ac_ct_AS=$AS
4747 # Extract the first word of "as", so it can be a program name with args.
4748 set dummy as; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 if test -n "$ac_ct_AS"; then
4755 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_ac_ct_AS="as"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4775 if test -n "$ac_ct_AS"; then
4776 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4777 echo "${ECHO_T}$ac_ct_AS" >&6; }
4778 else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4783 if test "x$ac_ct_AS" = x; then
4784 AS="false"
4785 else
4786 case $cross_compiling:$ac_tool_warned in
4787 yes:)
4788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4789 whose name does not start with the host triplet. If you think this
4790 configuration is useful to you, please write to autoconf@gnu.org." >&5
4791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4792 whose name does not start with the host triplet. If you think this
4793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4794 ac_tool_warned=yes ;;
4795 esac
4796 AS=$ac_ct_AS
4798 else
4799 AS="$ac_cv_prog_AS"
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4807 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 if test -n "$OBJDUMP"; then
4811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 OBJDUMP=$ac_cv_prog_OBJDUMP
4831 if test -n "$OBJDUMP"; then
4832 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4833 echo "${ECHO_T}$OBJDUMP" >&6; }
4834 else
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4841 if test -z "$ac_cv_prog_OBJDUMP"; then
4842 ac_ct_OBJDUMP=$OBJDUMP
4843 # Extract the first word of "objdump", so it can be a program name with args.
4844 set dummy objdump; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 if test -n "$ac_ct_OBJDUMP"; then
4851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4871 if test -n "$ac_ct_OBJDUMP"; then
4872 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4873 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4879 if test "x$ac_ct_OBJDUMP" = x; then
4880 OBJDUMP="false"
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4885 whose name does not start with the host triplet. If you think this
4886 configuration is useful to you, please write to autoconf@gnu.org." >&5
4887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4888 whose name does not start with the host triplet. If you think this
4889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4890 ac_tool_warned=yes ;;
4891 esac
4892 OBJDUMP=$ac_ct_OBJDUMP
4894 else
4895 OBJDUMP="$ac_cv_prog_OBJDUMP"
4900 esac
4902 need_locks="$enable_libtool_lock"
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4914 CPP=
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h. */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943 Syntax error
4944 _ACEOF
4945 if { (ac_try="$ac_cpp conftest.$ac_ext"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } >/dev/null && {
4958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 }; then
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 # Broken: fails on valid input.
4967 continue
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if { (ac_try="$ac_cpp conftest.$ac_ext"
4983 case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986 esac
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null && {
4995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 }; then
4998 # Broken: success on invalid input.
4999 continue
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5009 rm -f conftest.err conftest.$ac_ext
5011 done
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then
5015 break
5018 done
5019 ac_cv_prog_CPP=$CPP
5022 CPP=$ac_cv_prog_CPP
5023 else
5024 ac_cv_prog_CPP=$CPP
5026 { echo "$as_me:$LINENO: result: $CPP" >&5
5027 echo "${ECHO_T}$CPP" >&6; }
5028 ac_preproc_ok=false
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048 Syntax error
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null && {
5063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5064 test ! -s conftest.err
5065 }; then
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
5072 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null && {
5100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 }; then
5103 # Broken: success on invalid input.
5104 continue
5105 else
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5110 ac_preproc_ok=:
5111 break
5114 rm -f conftest.err conftest.$ac_ext
5116 done
5117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118 rm -f conftest.err conftest.$ac_ext
5119 if $ac_preproc_ok; then
5121 else
5122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5123 See \`config.log' for more details." >&5
5124 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5125 See \`config.log' for more details." >&2;}
5126 { (exit 1); exit 1; }; }
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5138 if test "${ac_cv_header_stdc+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <stdlib.h>
5148 #include <stdarg.h>
5149 #include <string.h>
5150 #include <float.h>
5153 main ()
5157 return 0;
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest.$ac_objext; then
5177 ac_cv_header_stdc=yes
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_header_stdc=no
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 if test $ac_cv_header_stdc = yes; then
5188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5189 cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h. */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <string.h>
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "memchr" >/dev/null 2>&1; then
5201 else
5202 ac_cv_header_stdc=no
5204 rm -f conftest*
5208 if test $ac_cv_header_stdc = yes; then
5209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <stdlib.h>
5218 _ACEOF
5219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220 $EGREP "free" >/dev/null 2>&1; then
5222 else
5223 ac_cv_header_stdc=no
5225 rm -f conftest*
5229 if test $ac_cv_header_stdc = yes; then
5230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5231 if test "$cross_compiling" = yes; then
5233 else
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ctype.h>
5241 #include <stdlib.h>
5242 #if ((' ' & 0x0FF) == 0x020)
5243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5245 #else
5246 # define ISLOWER(c) \
5247 (('a' <= (c) && (c) <= 'i') \
5248 || ('j' <= (c) && (c) <= 'r') \
5249 || ('s' <= (c) && (c) <= 'z'))
5250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #endif
5253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5255 main ()
5257 int i;
5258 for (i = 0; i < 256; i++)
5259 if (XOR (islower (i), ISLOWER (i))
5260 || toupper (i) != TOUPPER (i))
5261 return 2;
5262 return 0;
5264 _ACEOF
5265 rm -f conftest$ac_exeext
5266 if { (ac_try="$ac_link"
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_link") 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276 { (case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_try") 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5286 else
5287 echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5291 ( exit $ac_status )
5292 ac_cv_header_stdc=no
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5301 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5302 if test $ac_cv_header_stdc = yes; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define STDC_HEADERS 1
5306 _ACEOF
5310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5321 inttypes.h stdint.h unistd.h
5323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5337 #include <$ac_header>
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 eval "$as_ac_Header=yes"
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 eval "$as_ac_Header=no"
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 ac_res=`eval echo '${'$as_ac_Header'}'`
5367 { echo "$as_me:$LINENO: result: $ac_res" >&5
5368 echo "${ECHO_T}$ac_res" >&6; }
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 _ACEOF
5376 done
5380 for ac_header in dlfcn.h
5382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 ac_res=`eval echo '${'$as_ac_Header'}'`
5390 { echo "$as_me:$LINENO: result: $ac_res" >&5
5391 echo "${ECHO_T}$ac_res" >&6; }
5392 else
5393 # Is the header compilable?
5394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5403 #include <$ac_header>
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5407 case "(($ac_try" in
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5413 ac_status=$?
5414 grep -v '^ *+' conftest.er1 >conftest.err
5415 rm -f conftest.er1
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_header_compiler=yes
5423 else
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_header_compiler=no
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5432 echo "${ECHO_T}$ac_header_compiler" >&6; }
5434 # Is the header present?
5435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <$ac_header>
5444 _ACEOF
5445 if { (ac_try="$ac_cpp conftest.$ac_ext"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null && {
5458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 }; then
5461 ac_header_preproc=yes
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_header_preproc=no
5469 rm -f conftest.err conftest.$ac_ext
5470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5471 echo "${ECHO_T}$ac_header_preproc" >&6; }
5473 # So? What about this header?
5474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5475 yes:no: )
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5480 ac_header_preproc=yes
5482 no:yes:* )
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497 esac
5498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 eval "$as_ac_Header=\$ac_header_preproc"
5505 ac_res=`eval echo '${'$as_ac_Header'}'`
5506 { echo "$as_me:$LINENO: result: $ac_res" >&5
5507 echo "${ECHO_T}$ac_res" >&6; }
5510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5511 cat >>confdefs.h <<_ACEOF
5512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5513 _ACEOF
5517 done
5519 ac_ext=cpp
5520 ac_cpp='$CXXCPP $CPPFLAGS'
5521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5524 if test -z "$CXX"; then
5525 if test -n "$CCC"; then
5526 CXX=$CCC
5527 else
5528 if test -n "$ac_tool_prefix"; then
5529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535 if test "${ac_cv_prog_CXX+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -n "$CXX"; then
5539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 CXX=$ac_cv_prog_CXX
5559 if test -n "$CXX"; then
5560 { echo "$as_me:$LINENO: result: $CXX" >&5
5561 echo "${ECHO_T}$CXX" >&6; }
5562 else
5563 { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5568 test -n "$CXX" && break
5569 done
5571 if test -z "$CXX"; then
5572 ac_ct_CXX=$CXX
5573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -n "$ac_ct_CXX"; then
5583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_CXX="$ac_prog"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5602 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5603 if test -n "$ac_ct_CXX"; then
5604 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5605 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5606 else
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5612 test -n "$ac_ct_CXX" && break
5613 done
5615 if test "x$ac_ct_CXX" = x; then
5616 CXX="g++"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5621 whose name does not start with the host triplet. If you think this
5622 configuration is useful to you, please write to autoconf@gnu.org." >&5
5623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5624 whose name does not start with the host triplet. If you think this
5625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628 CXX=$ac_ct_CXX
5634 # Provide some information about the compiler.
5635 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5636 ac_compiler=`set X $ac_compile; echo $2`
5637 { (ac_try="$ac_compiler --version >&5"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compiler --version >&5") 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }
5647 { (ac_try="$ac_compiler -v >&5"
5648 case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compiler -v >&5") 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }
5657 { (ac_try="$ac_compiler -V >&5"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compiler -V >&5") 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }
5668 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5669 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5670 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5681 main ()
5683 #ifndef __GNUC__
5684 choke me
5685 #endif
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_compiler_gnu=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_compiler_gnu=no
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5720 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5721 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5722 GXX=`test $ac_compiler_gnu = yes && echo yes`
5723 ac_test_CXXFLAGS=${CXXFLAGS+set}
5724 ac_save_CXXFLAGS=$CXXFLAGS
5725 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5726 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5727 if test "${ac_cv_prog_cxx_g+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5731 ac_cxx_werror_flag=yes
5732 ac_cv_prog_cxx_g=no
5733 CXXFLAGS="-g"
5734 cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h. */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5742 main ()
5746 return 0;
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 ac_cv_prog_cxx_g=yes
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 CXXFLAGS=""
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5780 main ()
5784 return 0;
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_cxx_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5805 else
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5810 CXXFLAGS="-g"
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5819 main ()
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_cxx_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_prog_cxx_g=yes
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5860 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5861 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5862 if test "$ac_test_CXXFLAGS" = set; then
5863 CXXFLAGS=$ac_save_CXXFLAGS
5864 elif test $ac_cv_prog_cxx_g = yes; then
5865 if test "$GXX" = yes; then
5866 CXXFLAGS="-g -O2"
5867 else
5868 CXXFLAGS="-g"
5870 else
5871 if test "$GXX" = yes; then
5872 CXXFLAGS="-O2"
5873 else
5874 CXXFLAGS=
5877 ac_ext=cpp
5878 ac_cpp='$CXXCPP $CPPFLAGS'
5879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 depcc="$CXX" am_compiler_list=
5885 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5886 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5887 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5891 # We make a subdir and do the tests there. Otherwise we can end up
5892 # making bogus files that we don't know about and never remove. For
5893 # instance it was reported that on HP-UX the gcc test will end up
5894 # making a dummy file named `D' -- because `-MD' means `put the output
5895 # in D'.
5896 mkdir conftest.dir
5897 # Copy depcomp to subdir because otherwise we won't find it if we're
5898 # using a relative directory.
5899 cp "$am_depcomp" conftest.dir
5900 cd conftest.dir
5901 # We will build objects and dependencies in a subdirectory because
5902 # it helps to detect inapplicable dependency modes. For instance
5903 # both Tru64's cc and ICC support -MD to output dependencies as a
5904 # side effect of compilation, but ICC will put the dependencies in
5905 # the current directory while Tru64 will put them in the object
5906 # directory.
5907 mkdir sub
5909 am_cv_CXX_dependencies_compiler_type=none
5910 if test "$am_compiler_list" = ""; then
5911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5913 for depmode in $am_compiler_list; do
5914 # Setup a source with many dependencies, because some compilers
5915 # like to wrap large dependency lists on column 80 (with \), and
5916 # we should not choose a depcomp mode which is confused by this.
5918 # We need to recreate these files for each test, as the compiler may
5919 # overwrite some of them when testing with obscure command lines.
5920 # This happens at least with the AIX C compiler.
5921 : > sub/conftest.c
5922 for i in 1 2 3 4 5 6; do
5923 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5924 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5925 # Solaris 8's {/usr,}/bin/sh.
5926 touch sub/conftst$i.h
5927 done
5928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5930 case $depmode in
5931 nosideeffect)
5932 # after this tag, mechanisms are not by side-effect, so they'll
5933 # only be used when explicitly requested
5934 if test "x$enable_dependency_tracking" = xyes; then
5935 continue
5936 else
5937 break
5940 none) break ;;
5941 esac
5942 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5943 # mode. It turns out that the SunPro C++ compiler does not properly
5944 # handle `-M -o', and we need to detect this.
5945 if depmode=$depmode \
5946 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5947 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5948 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5949 >/dev/null 2>conftest.err &&
5950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5951 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5953 # icc doesn't choke on unknown options, it will just issue warnings
5954 # or remarks (even with -Werror). So we grep stderr for any message
5955 # that says an option was ignored or not supported.
5956 # When given -MP, icc 7.0 and 7.1 complain thusly:
5957 # icc: Command line warning: ignoring option '-M'; no argument required
5958 # The diagnosis changed in icc 8.0:
5959 # icc: Command line remark: option '-MP' not supported
5960 if (grep 'ignoring option' conftest.err ||
5961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5962 am_cv_CXX_dependencies_compiler_type=$depmode
5963 break
5966 done
5968 cd ..
5969 rm -rf conftest.dir
5970 else
5971 am_cv_CXX_dependencies_compiler_type=none
5975 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5976 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5977 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5982 test "x$enable_dependency_tracking" != xno \
5983 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5984 am__fastdepCXX_TRUE=
5985 am__fastdepCXX_FALSE='#'
5986 else
5987 am__fastdepCXX_TRUE='#'
5988 am__fastdepCXX_FALSE=
5994 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5996 (test "X$CXX" != "Xg++"))) ; then
5997 ac_ext=cpp
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6002 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6003 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6004 if test -z "$CXXCPP"; then
6005 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 # Double quotes because CXXCPP needs to be expanded
6009 for CXXCPP in "$CXX -E" "/lib/cpp"
6011 ac_preproc_ok=false
6012 for ac_cxx_preproc_warn_flag in '' yes
6014 # Use a header file that comes with gcc, so configuring glibc
6015 # with a fresh cross-compiler works.
6016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 # <limits.h> exists even on freestanding compilers.
6018 # On the NeXT, cc -E runs the code through the compiler's parser,
6019 # not just through cpp. "Syntax error" is here to catch this case.
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #ifdef __STDC__
6027 # include <limits.h>
6028 #else
6029 # include <assert.h>
6030 #endif
6031 Syntax error
6032 _ACEOF
6033 if { (ac_try="$ac_cpp conftest.$ac_ext"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } >/dev/null && {
6046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6047 test ! -s conftest.err
6048 }; then
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 # Broken: fails on valid input.
6055 continue
6058 rm -f conftest.err conftest.$ac_ext
6060 # OK, works on sane cases. Now check whether nonexistent headers
6061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } >/dev/null && {
6083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6084 test ! -s conftest.err
6085 }; then
6086 # Broken: success on invalid input.
6087 continue
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 # Passes both tests.
6093 ac_preproc_ok=:
6094 break
6097 rm -f conftest.err conftest.$ac_ext
6099 done
6100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101 rm -f conftest.err conftest.$ac_ext
6102 if $ac_preproc_ok; then
6103 break
6106 done
6107 ac_cv_prog_CXXCPP=$CXXCPP
6110 CXXCPP=$ac_cv_prog_CXXCPP
6111 else
6112 ac_cv_prog_CXXCPP=$CXXCPP
6114 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6115 echo "${ECHO_T}$CXXCPP" >&6; }
6116 ac_preproc_ok=false
6117 for ac_cxx_preproc_warn_flag in '' yes
6119 # Use a header file that comes with gcc, so configuring glibc
6120 # with a fresh cross-compiler works.
6121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6122 # <limits.h> exists even on freestanding compilers.
6123 # On the NeXT, cc -E runs the code through the compiler's parser,
6124 # not just through cpp. "Syntax error" is here to catch this case.
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 #ifdef __STDC__
6132 # include <limits.h>
6133 #else
6134 # include <assert.h>
6135 #endif
6136 Syntax error
6137 _ACEOF
6138 if { (ac_try="$ac_cpp conftest.$ac_ext"
6139 case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } >/dev/null && {
6151 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6152 test ! -s conftest.err
6153 }; then
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 # Broken: fails on valid input.
6160 continue
6163 rm -f conftest.err conftest.$ac_ext
6165 # OK, works on sane cases. Now check whether nonexistent headers
6166 # can be detected and how.
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <ac_nonexistent.h>
6174 _ACEOF
6175 if { (ac_try="$ac_cpp conftest.$ac_ext"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null && {
6188 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6189 test ! -s conftest.err
6190 }; then
6191 # Broken: success on invalid input.
6192 continue
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 # Passes both tests.
6198 ac_preproc_ok=:
6199 break
6202 rm -f conftest.err conftest.$ac_ext
6204 done
6205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6206 rm -f conftest.err conftest.$ac_ext
6207 if $ac_preproc_ok; then
6209 else
6210 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6211 See \`config.log' for more details." >&5
6212 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6213 See \`config.log' for more details." >&2;}
6214 { (exit 1); exit 1; }; }
6217 ac_ext=cpp
6218 ac_cpp='$CXXCPP $CPPFLAGS'
6219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6226 ac_ext=f
6227 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6228 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6230 if test -n "$ac_tool_prefix"; then
6231 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
6233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_F77+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 if test -n "$F77"; then
6241 ac_cv_prog_F77="$F77" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6254 done
6255 done
6256 IFS=$as_save_IFS
6260 F77=$ac_cv_prog_F77
6261 if test -n "$F77"; then
6262 { echo "$as_me:$LINENO: result: $F77" >&5
6263 echo "${ECHO_T}$F77" >&6; }
6264 else
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 test -n "$F77" && break
6271 done
6273 if test -z "$F77"; then
6274 ac_ct_F77=$F77
6275 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
6277 # Extract the first word of "$ac_prog", so it can be a program name with args.
6278 set dummy $ac_prog; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 if test -n "$ac_ct_F77"; then
6285 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_F77="$ac_prog"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6298 done
6299 done
6300 IFS=$as_save_IFS
6304 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6305 if test -n "$ac_ct_F77"; then
6306 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6307 echo "${ECHO_T}$ac_ct_F77" >&6; }
6308 else
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6314 test -n "$ac_ct_F77" && break
6315 done
6317 if test "x$ac_ct_F77" = x; then
6318 F77=""
6319 else
6320 case $cross_compiling:$ac_tool_warned in
6321 yes:)
6322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6323 whose name does not start with the host triplet. If you think this
6324 configuration is useful to you, please write to autoconf@gnu.org." >&5
6325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6326 whose name does not start with the host triplet. If you think this
6327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 F77=$ac_ct_F77
6335 # Provide some information about the compiler.
6336 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6337 ac_compiler=`set X $ac_compile; echo $2`
6338 { (ac_try="$ac_compiler --version >&5"
6339 case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342 esac
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler --version >&5") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348 { (ac_try="$ac_compiler -v >&5"
6349 case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -v >&5") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
6358 { (ac_try="$ac_compiler -V >&5"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compiler -V >&5") 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }
6368 rm -f a.out
6370 # If we don't use `.F' as extension, the preprocessor is not run on the
6371 # input file. (Note that this only needs to work for GNU compilers.)
6372 ac_save_ext=$ac_ext
6373 ac_ext=F
6374 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6375 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6376 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 cat >conftest.$ac_ext <<_ACEOF
6380 program main
6381 #ifndef __GNUC__
6382 choke me
6383 #endif
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_f77_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 ac_compiler_gnu=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_compiler_gnu=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6416 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6417 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6418 ac_ext=$ac_save_ext
6419 ac_test_FFLAGS=${FFLAGS+set}
6420 ac_save_FFLAGS=$FFLAGS
6421 FFLAGS=
6422 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6423 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_f77_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 FFLAGS=-g
6428 cat >conftest.$ac_ext <<_ACEOF
6429 program main
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_f77_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 ac_cv_prog_f77_g=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_cv_prog_f77_g=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6462 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6463 if test "$ac_test_FFLAGS" = set; then
6464 FFLAGS=$ac_save_FFLAGS
6465 elif test $ac_cv_prog_f77_g = yes; then
6466 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6467 FFLAGS="-g -O2"
6468 else
6469 FFLAGS="-g"
6471 else
6472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6473 FFLAGS="-O2"
6474 else
6475 FFLAGS=
6479 G77=`test $ac_compiler_gnu = yes && echo yes`
6480 ac_ext=c
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6488 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6490 # find the maximum length of command line arguments
6491 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6492 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6493 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6497 teststring="ABCD"
6499 case $build_os in
6500 msdosdjgpp*)
6501 # On DJGPP, this test can blow up pretty badly due to problems in libc
6502 # (any single argument exceeding 2000 bytes causes a buffer overrun
6503 # during glob expansion). Even if it were fixed, the result of this
6504 # check would be larger than it should be.
6505 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6508 gnu*)
6509 # Under GNU Hurd, this test is not required because there is
6510 # no limit to the length of command line arguments.
6511 # Libtool will interpret -1 as no limit whatsoever
6512 lt_cv_sys_max_cmd_len=-1;
6515 cygwin* | mingw*)
6516 # On Win9x/ME, this test blows up -- it succeeds, but takes
6517 # about 5 minutes as the teststring grows exponentially.
6518 # Worse, since 9x/ME are not pre-emptively multitasking,
6519 # you end up with a "frozen" computer, even though with patience
6520 # the test eventually succeeds (with a max line length of 256k).
6521 # Instead, let's just punt: use the minimum linelength reported by
6522 # all of the supported platforms: 8192 (on NT/2K/XP).
6523 lt_cv_sys_max_cmd_len=8192;
6526 amigaos*)
6527 # On AmigaOS with pdksh, this test takes hours, literally.
6528 # So we just punt and use a minimum line length of 8192.
6529 lt_cv_sys_max_cmd_len=8192;
6532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6533 # This has been around since 386BSD, at least. Likely further.
6534 if test -x /sbin/sysctl; then
6535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6536 elif test -x /usr/sbin/sysctl; then
6537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6538 else
6539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6541 # And add a safety zone
6542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6546 interix*)
6547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6548 lt_cv_sys_max_cmd_len=196608
6551 osf*)
6552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6554 # nice to cause kernel panics so lets avoid the loop below.
6555 # First set a reasonable default.
6556 lt_cv_sys_max_cmd_len=16384
6558 if test -x /sbin/sysconfig; then
6559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6560 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6561 esac
6564 sco3.2v5*)
6565 lt_cv_sys_max_cmd_len=102400
6567 sysv5* | sco5v6* | sysv4.2uw2*)
6568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6569 if test -n "$kargmax"; then
6570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6571 else
6572 lt_cv_sys_max_cmd_len=32768
6576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6577 if test -n "$lt_cv_sys_max_cmd_len"; then
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6580 else
6581 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6582 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6583 = "XX$teststring") >/dev/null 2>&1 &&
6584 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6585 lt_cv_sys_max_cmd_len=$new_result &&
6586 test $i != 17 # 1/2 MB should be enough
6588 i=`expr $i + 1`
6589 teststring=$teststring$teststring
6590 done
6591 teststring=
6592 # Add a significant safety factor because C++ compilers can tack on massive
6593 # amounts of additional arguments before passing them to the linker.
6594 # It appears as though 1/2 is a usable value.
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6598 esac
6602 if test -n $lt_cv_sys_max_cmd_len ; then
6603 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6605 else
6606 { echo "$as_me:$LINENO: result: none" >&5
6607 echo "${ECHO_T}none" >&6; }
6614 # Check for command to grab the raw symbol name followed by C symbol from nm.
6615 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6616 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6621 # These are sane defaults that work on at least a few old systems.
6622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6624 # Character class describing NM global symbol codes.
6625 symcode='[BCDEGRST]'
6627 # Regexp to match symbols that can be accessed directly from C.
6628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6630 # Transform an extracted symbol line into a proper C declaration
6631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6633 # Transform an extracted symbol line into symbol name and symbol address
6634 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'"
6636 # Define system-specific variables.
6637 case $host_os in
6638 aix*)
6639 symcode='[BCDT]'
6641 cygwin* | mingw* | pw32*)
6642 symcode='[ABCDGISTW]'
6644 hpux*) # Its linker distinguishes data from code symbols
6645 if test "$host_cpu" = ia64; then
6646 symcode='[ABCDEGRST]'
6648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6649 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'"
6651 linux* | k*bsd*-gnu)
6652 if test "$host_cpu" = ia64; then
6653 symcode='[ABCDGIRSTW]'
6654 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6655 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'"
6658 irix* | nonstopux*)
6659 symcode='[BCDEGRST]'
6661 osf*)
6662 symcode='[BCDEGQRST]'
6664 solaris*)
6665 symcode='[BDRT]'
6667 sco3.2v5*)
6668 symcode='[DT]'
6670 sysv4.2uw2*)
6671 symcode='[DT]'
6673 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6674 symcode='[ABDT]'
6676 sysv4)
6677 symcode='[DFNSTU]'
6679 esac
6681 # Handle CRLF in mingw tool chain
6682 opt_cr=
6683 case $build_os in
6684 mingw*)
6685 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6687 esac
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6693 esac
6695 # Try without a prefix undercore, then with it.
6696 for ac_symprfx in "" "_"; do
6698 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6699 symxfrm="\\1 $ac_symprfx\\2 \\2"
6701 # Write the raw and C identifiers.
6702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6704 # Check to see that the pipe works correctly.
6705 pipe_works=no
6707 rm -f conftest*
6708 cat > conftest.$ac_ext <<EOF
6709 #ifdef __cplusplus
6710 extern "C" {
6711 #endif
6712 char nm_test_var;
6713 void nm_test_func(){}
6714 #ifdef __cplusplus
6716 #endif
6717 int main(){nm_test_var='a';nm_test_func();return(0);}
6720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 (eval $ac_compile) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; then
6725 # Now try to grab the symbols.
6726 nlist=conftest.nm
6727 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6728 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && test -s "$nlist"; then
6732 # Try sorting and uniquifying the output.
6733 if sort "$nlist" | uniq > "$nlist"T; then
6734 mv -f "$nlist"T "$nlist"
6735 else
6736 rm -f "$nlist"T
6739 # Make sure that we snagged all the symbols we need.
6740 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6741 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6742 cat <<EOF > conftest.$ac_ext
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6748 # Now generate the symbol file.
6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6751 cat <<EOF >> conftest.$ac_ext
6752 #if defined (__STDC__) && __STDC__
6753 # define lt_ptr_t void *
6754 #else
6755 # define lt_ptr_t char *
6756 # define const
6757 #endif
6759 /* The mapping between symbol names and symbols. */
6760 const struct {
6761 const char *name;
6762 lt_ptr_t address;
6764 lt_preloaded_symbols[] =
6767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6768 cat <<\EOF >> conftest.$ac_ext
6769 {0, (lt_ptr_t) 0}
6772 #ifdef __cplusplus
6774 #endif
6776 # Now try linking the two files.
6777 mv conftest.$ac_objext conftstm.$ac_objext
6778 lt_save_LIBS="$LIBS"
6779 lt_save_CFLAGS="$CFLAGS"
6780 LIBS="conftstm.$ac_objext"
6781 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6783 (eval $ac_link) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6787 pipe_works=yes
6789 LIBS="$lt_save_LIBS"
6790 CFLAGS="$lt_save_CFLAGS"
6791 else
6792 echo "cannot find nm_test_func in $nlist" >&5
6794 else
6795 echo "cannot find nm_test_var in $nlist" >&5
6797 else
6798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6800 else
6801 echo "$progname: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 rm -f conftest* conftst*
6806 # Do not use the global_symbol_pipe unless it works.
6807 if test "$pipe_works" = yes; then
6808 break
6809 else
6810 lt_cv_sys_global_symbol_pipe=
6812 done
6816 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6817 lt_cv_sys_global_symbol_to_cdecl=
6819 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6820 { echo "$as_me:$LINENO: result: failed" >&5
6821 echo "${ECHO_T}failed" >&6; }
6822 else
6823 { echo "$as_me:$LINENO: result: ok" >&5
6824 echo "${ECHO_T}ok" >&6; }
6827 { echo "$as_me:$LINENO: checking for objdir" >&5
6828 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6829 if test "${lt_cv_objdir+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 rm -f .libs 2>/dev/null
6833 mkdir .libs 2>/dev/null
6834 if test -d .libs; then
6835 lt_cv_objdir=.libs
6836 else
6837 # MS-DOS does not allow filenames that begin with a dot.
6838 lt_cv_objdir=_libs
6840 rmdir .libs 2>/dev/null
6842 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6843 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6844 objdir=$lt_cv_objdir
6850 case $host_os in
6851 aix3*)
6852 # AIX sometimes has problems with the GCC collect2 program. For some
6853 # reason, if we set the COLLECT_NAMES environment variable, the problems
6854 # vanish in a puff of smoke.
6855 if test "X${COLLECT_NAMES+set}" != Xset; then
6856 COLLECT_NAMES=
6857 export COLLECT_NAMES
6860 esac
6862 # Sed substitution that helps us do robust quoting. It backslashifies
6863 # metacharacters that are still active within double-quoted strings.
6864 Xsed='sed -e 1s/^X//'
6865 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6867 # Same as above, but do not quote variable references.
6868 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6870 # Sed substitution to delay expansion of an escaped shell variable in a
6871 # double_quote_subst'ed string.
6872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6874 # Sed substitution to avoid accidental globbing in evaled expressions
6875 no_glob_subst='s/\*/\\\*/g'
6877 # Constants:
6878 rm="rm -f"
6880 # Global variables:
6881 default_ofile=libtool
6882 can_build_shared=yes
6884 # All known linkers require a `.a' archive for static linking (except MSVC,
6885 # which needs '.lib').
6886 libext=a
6887 ltmain="$ac_aux_dir/ltmain.sh"
6888 ofile="$default_ofile"
6889 with_gnu_ld="$lt_cv_prog_gnu_ld"
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}ar; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_AR+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 if test -n "$AR"; then
6900 ac_cv_prog_AR="$AR" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_AR="${ac_tool_prefix}ar"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 AR=$ac_cv_prog_AR
6920 if test -n "$AR"; then
6921 { echo "$as_me:$LINENO: result: $AR" >&5
6922 echo "${ECHO_T}$AR" >&6; }
6923 else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6930 if test -z "$ac_cv_prog_AR"; then
6931 ac_ct_AR=$AR
6932 # Extract the first word of "ar", so it can be a program name with args.
6933 set dummy ar; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 if test -n "$ac_ct_AR"; then
6940 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_ac_ct_AR="ar"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6959 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6960 if test -n "$ac_ct_AR"; then
6961 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6962 echo "${ECHO_T}$ac_ct_AR" >&6; }
6963 else
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6968 if test "x$ac_ct_AR" = x; then
6969 AR="false"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet. If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&5
6976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet. If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981 AR=$ac_ct_AR
6983 else
6984 AR="$ac_cv_prog_AR"
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7011 IFS=$as_save_IFS
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018 echo "${ECHO_T}$RANLIB" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_RANLIB="ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7059 else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 if test "x$ac_ct_RANLIB" = x; then
7065 RANLIB=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet. If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 RANLIB=$ac_ct_RANLIB
7079 else
7080 RANLIB="$ac_cv_prog_RANLIB"
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}strip; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_prog_STRIP+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 if test -n "$STRIP"; then
7092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7105 done
7106 done
7107 IFS=$as_save_IFS
7111 STRIP=$ac_cv_prog_STRIP
7112 if test -n "$STRIP"; then
7113 { echo "$as_me:$LINENO: result: $STRIP" >&5
7114 echo "${ECHO_T}$STRIP" >&6; }
7115 else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7122 if test -z "$ac_cv_prog_STRIP"; then
7123 ac_ct_STRIP=$STRIP
7124 # Extract the first word of "strip", so it can be a program name with args.
7125 set dummy strip; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 if test -n "$ac_ct_STRIP"; then
7132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_ac_ct_STRIP="strip"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7145 done
7146 done
7147 IFS=$as_save_IFS
7151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7152 if test -n "$ac_ct_STRIP"; then
7153 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7154 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7155 else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7160 if test "x$ac_ct_STRIP" = x; then
7161 STRIP=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7166 whose name does not start with the host triplet. If you think this
7167 configuration is useful to you, please write to autoconf@gnu.org." >&5
7168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7169 whose name does not start with the host triplet. If you think this
7170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173 STRIP=$ac_ct_STRIP
7175 else
7176 STRIP="$ac_cv_prog_STRIP"
7180 old_CC="$CC"
7181 old_CFLAGS="$CFLAGS"
7183 # Set sane defaults for various variables
7184 test -z "$AR" && AR=ar
7185 test -z "$AR_FLAGS" && AR_FLAGS=cru
7186 test -z "$AS" && AS=as
7187 test -z "$CC" && CC=cc
7188 test -z "$LTCC" && LTCC=$CC
7189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7190 test -z "$DLLTOOL" && DLLTOOL=dlltool
7191 test -z "$LD" && LD=ld
7192 test -z "$LN_S" && LN_S="ln -s"
7193 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7194 test -z "$NM" && NM=nm
7195 test -z "$SED" && SED=sed
7196 test -z "$OBJDUMP" && OBJDUMP=objdump
7197 test -z "$RANLIB" && RANLIB=:
7198 test -z "$STRIP" && STRIP=:
7199 test -z "$ac_objext" && ac_objext=o
7201 # Determine commands to create old-style static archives.
7202 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7203 old_postinstall_cmds='chmod 644 $oldlib'
7204 old_postuninstall_cmds=
7206 if test -n "$RANLIB"; then
7207 case $host_os in
7208 openbsd*)
7209 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7214 esac
7215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7218 for cc_temp in $compiler""; do
7219 case $cc_temp in
7220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7222 \-*) ;;
7223 *) break;;
7224 esac
7225 done
7226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7229 # Only perform the check for file, if the check method requires it
7230 case $deplibs_check_method in
7231 file_magic*)
7232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7233 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7234 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 case $MAGIC_CMD in
7239 [\\/*] | ?:[\\/]*)
7240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243 lt_save_MAGIC_CMD="$MAGIC_CMD"
7244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7246 for ac_dir in $ac_dummy; do
7247 IFS="$lt_save_ifs"
7248 test -z "$ac_dir" && ac_dir=.
7249 if test -f $ac_dir/${ac_tool_prefix}file; then
7250 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7251 if test -n "$file_magic_test_file"; then
7252 case $deplibs_check_method in
7253 "file_magic "*)
7254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7257 $EGREP "$file_magic_regex" > /dev/null; then
7259 else
7260 cat <<EOF 1>&2
7262 *** Warning: the command libtool uses to detect shared libraries,
7263 *** $file_magic_cmd, produces output that libtool cannot recognize.
7264 *** The result is that libtool may fail to recognize shared libraries
7265 *** as such. This will affect the creation of libtool libraries that
7266 *** depend on shared libraries, but programs linked with such libtool
7267 *** libraries will work regardless of this problem. Nevertheless, you
7268 *** may want to report the problem to your system manager and/or to
7269 *** bug-libtool@gnu.org
7272 fi ;;
7273 esac
7275 break
7277 done
7278 IFS="$lt_save_ifs"
7279 MAGIC_CMD="$lt_save_MAGIC_CMD"
7281 esac
7284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7285 if test -n "$MAGIC_CMD"; then
7286 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7287 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7288 else
7289 { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7293 if test -z "$lt_cv_path_MAGIC_CMD"; then
7294 if test -n "$ac_tool_prefix"; then
7295 { echo "$as_me:$LINENO: checking for file" >&5
7296 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7297 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 case $MAGIC_CMD in
7301 [\\/*] | ?:[\\/]*)
7302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7305 lt_save_MAGIC_CMD="$MAGIC_CMD"
7306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7308 for ac_dir in $ac_dummy; do
7309 IFS="$lt_save_ifs"
7310 test -z "$ac_dir" && ac_dir=.
7311 if test -f $ac_dir/file; then
7312 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7313 if test -n "$file_magic_test_file"; then
7314 case $deplibs_check_method in
7315 "file_magic "*)
7316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7319 $EGREP "$file_magic_regex" > /dev/null; then
7321 else
7322 cat <<EOF 1>&2
7324 *** Warning: the command libtool uses to detect shared libraries,
7325 *** $file_magic_cmd, produces output that libtool cannot recognize.
7326 *** The result is that libtool may fail to recognize shared libraries
7327 *** as such. This will affect the creation of libtool libraries that
7328 *** depend on shared libraries, but programs linked with such libtool
7329 *** libraries will work regardless of this problem. Nevertheless, you
7330 *** may want to report the problem to your system manager and/or to
7331 *** bug-libtool@gnu.org
7334 fi ;;
7335 esac
7337 break
7339 done
7340 IFS="$lt_save_ifs"
7341 MAGIC_CMD="$lt_save_MAGIC_CMD"
7343 esac
7346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7347 if test -n "$MAGIC_CMD"; then
7348 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7349 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7350 else
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7355 else
7356 MAGIC_CMD=:
7362 esac
7364 enable_dlopen=no
7365 enable_win32_dll=yes
7367 # Check whether --enable-libtool-lock was given.
7368 if test "${enable_libtool_lock+set}" = set; then
7369 enableval=$enable_libtool_lock;
7372 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7375 # Check whether --with-pic was given.
7376 if test "${with_pic+set}" = set; then
7377 withval=$with_pic; pic_mode="$withval"
7378 else
7379 pic_mode=default
7382 test -z "$pic_mode" && pic_mode=default
7384 # Use C for the default configuration in the libtool script
7385 tagname=
7386 lt_save_CC="$CC"
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394 # Source file extension for C test sources.
7395 ac_ext=c
7397 # Object file extension for compiled C test sources.
7398 objext=o
7399 objext=$objext
7401 # Code to be used in simple compile tests
7402 lt_simple_compile_test_code="int some_variable = 0;"
7404 # Code to be used in simple link tests
7405 lt_simple_link_test_code='int main(){return(0);}'
7408 # If no C compiler was specified, use CC.
7409 LTCC=${LTCC-"$CC"}
7411 # If no C compiler flags were specified, use CFLAGS.
7412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7414 # Allow CC to be a program name with arguments.
7415 compiler=$CC
7418 # save warnings/boilerplate of simple test code
7419 ac_outfile=conftest.$ac_objext
7420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7422 _lt_compiler_boilerplate=`cat conftest.err`
7423 $rm conftest*
7425 ac_outfile=conftest.$ac_objext
7426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7428 _lt_linker_boilerplate=`cat conftest.err`
7429 $rm conftest*
7433 lt_prog_compiler_no_builtin_flag=
7435 if test "$GCC" = yes; then
7436 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7439 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7440 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7441 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 lt_cv_prog_compiler_rtti_exceptions=no
7445 ac_outfile=conftest.$ac_objext
7446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7447 lt_compiler_flag="-fno-rtti -fno-exceptions"
7448 # Insert the option either (1) after the last *FLAGS variable, or
7449 # (2) before a word containing "conftest.", or (3) at the end.
7450 # Note that $ac_compile itself does not contain backslashes and begins
7451 # with a dollar sign (not a hyphen), so the echo should work correctly.
7452 # The option is referenced via a variable to avoid confusing sed.
7453 lt_compile=`echo "$ac_compile" | $SED \
7454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7456 -e 's:$: $lt_compiler_flag:'`
7457 (eval echo "\"\$as_me:7457: $lt_compile\"" >&5)
7458 (eval "$lt_compile" 2>conftest.err)
7459 ac_status=$?
7460 cat conftest.err >&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 if (exit $ac_status) && test -s "$ac_outfile"; then
7463 # The compiler can only warn and ignore the option if not recognized
7464 # So say no if there are warnings other than the usual output.
7465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7468 lt_cv_prog_compiler_rtti_exceptions=yes
7471 $rm conftest*
7474 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7475 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7477 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7478 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7479 else
7485 lt_prog_compiler_wl=
7486 lt_prog_compiler_pic=
7487 lt_prog_compiler_static=
7489 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7490 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7492 if test "$GCC" = yes; then
7493 lt_prog_compiler_wl='-Wl,'
7494 lt_prog_compiler_static='-static'
7496 case $host_os in
7497 aix*)
7498 # All AIX code is PIC.
7499 if test "$host_cpu" = ia64; then
7500 # AIX 5 now supports IA64 processor
7501 lt_prog_compiler_static='-Bstatic'
7505 amigaos*)
7506 # FIXME: we need at least 68020 code to build shared libraries, but
7507 # adding the `-m68020' flag to GCC prevents building anything better,
7508 # like `-m68040'.
7509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7512 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7513 # PIC is the default for these OSes.
7516 mingw* | cygwin* | pw32* | os2*)
7517 # This hack is so that the source file can tell whether it is being
7518 # built for inclusion in a dll (and should export symbols for example).
7519 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7520 # (--disable-auto-import) libraries
7521 lt_prog_compiler_pic='-DDLL_EXPORT'
7524 darwin* | rhapsody*)
7525 # PIC is the default on this platform
7526 # Common symbols not allowed in MH_DYLIB files
7527 lt_prog_compiler_pic='-fno-common'
7530 interix[3-9]*)
7531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7532 # Instead, we relocate shared libraries at runtime.
7535 msdosdjgpp*)
7536 # Just because we use GCC doesn't mean we suddenly get shared libraries
7537 # on systems that don't support them.
7538 lt_prog_compiler_can_build_shared=no
7539 enable_shared=no
7542 sysv4*MP*)
7543 if test -d /usr/nec; then
7544 lt_prog_compiler_pic=-Kconform_pic
7548 hpux*)
7549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7550 # not for PA HP-UX.
7551 case $host_cpu in
7552 hppa*64*|ia64*)
7553 # +Z the default
7556 lt_prog_compiler_pic='-fPIC'
7558 esac
7562 lt_prog_compiler_pic='-fPIC'
7564 esac
7565 else
7566 # PORTME Check for flag to pass linker flags through the system compiler.
7567 case $host_os in
7568 aix*)
7569 lt_prog_compiler_wl='-Wl,'
7570 if test "$host_cpu" = ia64; then
7571 # AIX 5 now supports IA64 processor
7572 lt_prog_compiler_static='-Bstatic'
7573 else
7574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7577 darwin*)
7578 # PIC is the default on this platform
7579 # Common symbols not allowed in MH_DYLIB files
7580 case $cc_basename in
7581 xlc*)
7582 lt_prog_compiler_pic='-qnocommon'
7583 lt_prog_compiler_wl='-Wl,'
7585 esac
7588 mingw* | cygwin* | pw32* | os2*)
7589 # This hack is so that the source file can tell whether it is being
7590 # built for inclusion in a dll (and should export symbols for example).
7591 lt_prog_compiler_pic='-DDLL_EXPORT'
7594 hpux9* | hpux10* | hpux11*)
7595 lt_prog_compiler_wl='-Wl,'
7596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7597 # not for PA HP-UX.
7598 case $host_cpu in
7599 hppa*64*|ia64*)
7600 # +Z the default
7603 lt_prog_compiler_pic='+Z'
7605 esac
7606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7607 lt_prog_compiler_static='${wl}-a ${wl}archive'
7610 irix5* | irix6* | nonstopux*)
7611 lt_prog_compiler_wl='-Wl,'
7612 # PIC (with -KPIC) is the default.
7613 lt_prog_compiler_static='-non_shared'
7616 newsos6)
7617 lt_prog_compiler_pic='-KPIC'
7618 lt_prog_compiler_static='-Bstatic'
7621 linux* | k*bsd*-gnu)
7622 case $cc_basename in
7623 icc* | ecc*)
7624 lt_prog_compiler_wl='-Wl,'
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-static'
7628 pgcc* | pgf77* | pgf90* | pgf95*)
7629 # Portland Group compilers (*not* the Pentium gcc compiler,
7630 # which looks to be a dead project)
7631 lt_prog_compiler_wl='-Wl,'
7632 lt_prog_compiler_pic='-fpic'
7633 lt_prog_compiler_static='-Bstatic'
7635 ccc*)
7636 lt_prog_compiler_wl='-Wl,'
7637 # All Alpha code is PIC.
7638 lt_prog_compiler_static='-non_shared'
7641 case `$CC -V 2>&1 | sed 5q` in
7642 *Sun\ C*)
7643 # Sun C 5.9
7644 lt_prog_compiler_pic='-KPIC'
7645 lt_prog_compiler_static='-Bstatic'
7646 lt_prog_compiler_wl='-Wl,'
7648 *Sun\ F*)
7649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7650 lt_prog_compiler_pic='-KPIC'
7651 lt_prog_compiler_static='-Bstatic'
7652 lt_prog_compiler_wl=''
7654 esac
7656 esac
7659 osf3* | osf4* | osf5*)
7660 lt_prog_compiler_wl='-Wl,'
7661 # All OSF/1 code is PIC.
7662 lt_prog_compiler_static='-non_shared'
7665 rdos*)
7666 lt_prog_compiler_static='-non_shared'
7669 solaris*)
7670 lt_prog_compiler_pic='-KPIC'
7671 lt_prog_compiler_static='-Bstatic'
7672 case $cc_basename in
7673 f77* | f90* | f95*)
7674 lt_prog_compiler_wl='-Qoption ld ';;
7676 lt_prog_compiler_wl='-Wl,';;
7677 esac
7680 sunos4*)
7681 lt_prog_compiler_wl='-Qoption ld '
7682 lt_prog_compiler_pic='-PIC'
7683 lt_prog_compiler_static='-Bstatic'
7686 sysv4 | sysv4.2uw2* | sysv4.3*)
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_pic='-KPIC'
7689 lt_prog_compiler_static='-Bstatic'
7692 sysv4*MP*)
7693 if test -d /usr/nec ;then
7694 lt_prog_compiler_pic='-Kconform_pic'
7695 lt_prog_compiler_static='-Bstatic'
7699 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7700 lt_prog_compiler_wl='-Wl,'
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-Bstatic'
7705 unicos*)
7706 lt_prog_compiler_wl='-Wl,'
7707 lt_prog_compiler_can_build_shared=no
7710 uts4*)
7711 lt_prog_compiler_pic='-pic'
7712 lt_prog_compiler_static='-Bstatic'
7716 lt_prog_compiler_can_build_shared=no
7718 esac
7721 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7722 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7725 # Check to make sure the PIC flag actually works.
7727 if test -n "$lt_prog_compiler_pic"; then
7729 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7731 if test "${lt_prog_compiler_pic_works+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734 lt_prog_compiler_pic_works=no
7735 ac_outfile=conftest.$ac_objext
7736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7738 # Insert the option either (1) after the last *FLAGS variable, or
7739 # (2) before a word containing "conftest.", or (3) at the end.
7740 # Note that $ac_compile itself does not contain backslashes and begins
7741 # with a dollar sign (not a hyphen), so the echo should work correctly.
7742 # The option is referenced via a variable to avoid confusing sed.
7743 lt_compile=`echo "$ac_compile" | $SED \
7744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7746 -e 's:$: $lt_compiler_flag:'`
7747 (eval echo "\"\$as_me:7747: $lt_compile\"" >&5)
7748 (eval "$lt_compile" 2>conftest.err)
7749 ac_status=$?
7750 cat conftest.err >&5
7751 echo "$as_me:7751: \$? = $ac_status" >&5
7752 if (exit $ac_status) && test -s "$ac_outfile"; then
7753 # The compiler can only warn and ignore the option if not recognized
7754 # So say no if there are warnings other than the usual output.
7755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7758 lt_prog_compiler_pic_works=yes
7761 $rm conftest*
7764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7765 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7767 if test x"$lt_prog_compiler_pic_works" = xyes; then
7768 case $lt_prog_compiler_pic in
7769 "" | " "*) ;;
7770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7771 esac
7772 else
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_can_build_shared=no
7778 case $host_os in
7779 # For platforms which do not support PIC, -DPIC is meaningless:
7780 *djgpp*)
7781 lt_prog_compiler_pic=
7784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7786 esac
7789 # Check to make sure the static flag actually works.
7791 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7792 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7793 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7794 if test "${lt_prog_compiler_static_works+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 lt_prog_compiler_static_works=no
7798 save_LDFLAGS="$LDFLAGS"
7799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7802 # The linker can only warn and ignore the option if not recognized
7803 # So say no if there are warnings
7804 if test -s conftest.err; then
7805 # Append any errors to the config.log.
7806 cat conftest.err 1>&5
7807 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7809 if diff conftest.exp conftest.er2 >/dev/null; then
7810 lt_prog_compiler_static_works=yes
7812 else
7813 lt_prog_compiler_static_works=yes
7816 $rm conftest*
7817 LDFLAGS="$save_LDFLAGS"
7820 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7821 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7823 if test x"$lt_prog_compiler_static_works" = xyes; then
7825 else
7826 lt_prog_compiler_static=
7830 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 lt_cv_prog_compiler_c_o=no
7836 $rm -r conftest 2>/dev/null
7837 mkdir conftest
7838 cd conftest
7839 mkdir out
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842 lt_compiler_flag="-o out/conftest2.$ac_objext"
7843 # Insert the option either (1) after the last *FLAGS variable, or
7844 # (2) before a word containing "conftest.", or (3) at the end.
7845 # Note that $ac_compile itself does not contain backslashes and begins
7846 # with a dollar sign (not a hyphen), so the echo should work correctly.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>out/conftest.err)
7853 ac_status=$?
7854 cat out/conftest.err >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7857 then
7858 # The compiler can only warn and ignore the option if not recognized
7859 # So say no if there are warnings
7860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7863 lt_cv_prog_compiler_c_o=yes
7866 chmod u+w . 2>&5
7867 $rm conftest*
7868 # SGI C++ compiler will create directory out/ii_files/ for
7869 # template instantiation
7870 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7871 $rm out/* && rmdir out
7872 cd ..
7873 rmdir conftest
7874 $rm conftest*
7877 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7881 hard_links="nottested"
7882 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7883 # do not overwrite the value of need_locks provided by the user
7884 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7886 hard_links=yes
7887 $rm conftest*
7888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7889 touch conftest.a
7890 ln conftest.a conftest.b 2>&5 || hard_links=no
7891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7892 { echo "$as_me:$LINENO: result: $hard_links" >&5
7893 echo "${ECHO_T}$hard_links" >&6; }
7894 if test "$hard_links" = no; then
7895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7897 need_locks=warn
7899 else
7900 need_locks=no
7903 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7906 runpath_var=
7907 allow_undefined_flag=
7908 enable_shared_with_static_runtimes=no
7909 archive_cmds=
7910 archive_expsym_cmds=
7911 old_archive_From_new_cmds=
7912 old_archive_from_expsyms_cmds=
7913 export_dynamic_flag_spec=
7914 whole_archive_flag_spec=
7915 thread_safe_flag_spec=
7916 hardcode_libdir_flag_spec=
7917 hardcode_libdir_flag_spec_ld=
7918 hardcode_libdir_separator=
7919 hardcode_direct=no
7920 hardcode_minus_L=no
7921 hardcode_shlibpath_var=unsupported
7922 link_all_deplibs=unknown
7923 hardcode_automatic=no
7924 module_cmds=
7925 module_expsym_cmds=
7926 always_export_symbols=no
7927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7928 # include_expsyms should be a list of space-separated symbols to be *always*
7929 # included in the symbol list
7930 include_expsyms=
7931 # exclude_expsyms can be an extended regexp of symbols to exclude
7932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7934 # as well as any symbol that contains `d'.
7935 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7937 # platforms (ab)use it in PIC code, but their linkers get confused if
7938 # the symbol is explicitly referenced. Since portable code cannot
7939 # rely on this symbol name, it's probably fine to never include it in
7940 # preloaded symbol tables.
7941 extract_expsyms_cmds=
7942 # Just being paranoid about ensuring that cc_basename is set.
7943 for cc_temp in $compiler""; do
7944 case $cc_temp in
7945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7947 \-*) ;;
7948 *) break;;
7949 esac
7950 done
7951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7953 case $host_os in
7954 cygwin* | mingw* | pw32*)
7955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7956 # When not using gcc, we currently assume that we are using
7957 # Microsoft Visual C++.
7958 if test "$GCC" != yes; then
7959 with_gnu_ld=no
7962 interix*)
7963 # we just hope/assume this is gcc and not c89 (= MSVC++)
7964 with_gnu_ld=yes
7966 openbsd*)
7967 with_gnu_ld=no
7969 esac
7971 ld_shlibs=yes
7972 if test "$with_gnu_ld" = yes; then
7973 # If archive_cmds runs LD, not CC, wlarc should be empty
7974 wlarc='${wl}'
7976 # Set some defaults for GNU ld with shared library support. These
7977 # are reset later if shared libraries are not supported. Putting them
7978 # here allows them to be overridden if necessary.
7979 runpath_var=LD_RUN_PATH
7980 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7981 export_dynamic_flag_spec='${wl}--export-dynamic'
7982 # ancient GNU ld didn't support --whole-archive et. al.
7983 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7984 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7985 else
7986 whole_archive_flag_spec=
7988 supports_anon_versioning=no
7989 case `$LD -v 2>/dev/null` in
7990 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7991 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7992 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7993 *\ 2.11.*) ;; # other 2.11 versions
7994 *) supports_anon_versioning=yes ;;
7995 esac
7997 # See if GNU ld supports shared libraries.
7998 case $host_os in
7999 aix3* | aix4* | aix5*)
8000 # On AIX/PPC, the GNU linker is very broken
8001 if test "$host_cpu" != ia64; then
8002 ld_shlibs=no
8003 cat <<EOF 1>&2
8005 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8006 *** to be unable to reliably create shared libraries on AIX.
8007 *** Therefore, libtool is disabling shared libraries support. If you
8008 *** really care for shared libraries, you may want to modify your PATH
8009 *** so that a non-GNU linker is found, and then restart.
8015 amigaos*)
8016 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)'
8017 hardcode_libdir_flag_spec='-L$libdir'
8018 hardcode_minus_L=yes
8020 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8021 # that the semantics of dynamic libraries on AmigaOS, at least up
8022 # to version 4, is to share data among multiple programs linked
8023 # with the same dynamic library. Since this doesn't match the
8024 # behavior of shared libraries on other platforms, we can't use
8025 # them.
8026 ld_shlibs=no
8029 beos*)
8030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8031 allow_undefined_flag=unsupported
8032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8033 # support --undefined. This deserves some investigation. FIXME
8034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035 else
8036 ld_shlibs=no
8040 cygwin* | mingw* | pw32*)
8041 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8042 # as there is no search path for DLLs.
8043 hardcode_libdir_flag_spec='-L$libdir'
8044 allow_undefined_flag=unsupported
8045 always_export_symbols=no
8046 enable_shared_with_static_runtimes=yes
8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8051 # If the export-symbols file already is a .def file (1st line
8052 # is EXPORTS), use it as is; otherwise, prepend...
8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8054 cp $export_symbols $output_objdir/$soname.def;
8055 else
8056 echo EXPORTS > $output_objdir/$soname.def;
8057 cat $export_symbols >> $output_objdir/$soname.def;
8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8060 else
8061 ld_shlibs=no
8065 interix[3-9]*)
8066 hardcode_direct=no
8067 hardcode_shlibpath_var=no
8068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8069 export_dynamic_flag_spec='${wl}-E'
8070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8071 # Instead, shared libraries are loaded at an image base (0x10000000 by
8072 # default) and relocated if they conflict, which is a slow very memory
8073 # consuming and fragmenting process. To avoid this, we pick a random,
8074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8077 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'
8080 gnu* | linux* | k*bsd*-gnu)
8081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8082 tmp_addflag=
8083 case $cc_basename,$host_cpu in
8084 pgcc*) # Portland Group C compiler
8085 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'
8086 tmp_addflag=' $pic_flag'
8088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8089 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'
8090 tmp_addflag=' $pic_flag -Mnomain' ;;
8091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8092 tmp_addflag=' -i_dynamic' ;;
8093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8094 tmp_addflag=' -i_dynamic -nofor_main' ;;
8095 ifc* | ifort*) # Intel Fortran compiler
8096 tmp_addflag=' -nofor_main' ;;
8097 esac
8098 case `$CC -V 2>&1 | sed 5q` in
8099 *Sun\ C*) # Sun C 5.9
8100 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'
8101 tmp_sharedflag='-G' ;;
8102 *Sun\ F*) # Sun Fortran 8.3
8103 tmp_sharedflag='-G' ;;
8105 tmp_sharedflag='-shared' ;;
8106 esac
8107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8109 if test $supports_anon_versioning = yes; then
8110 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8112 $echo "local: *; };" >> $output_objdir/$libname.ver~
8113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8115 link_all_deplibs=no
8116 else
8117 ld_shlibs=no
8121 netbsd* | netbsdelf*-gnu)
8122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8124 wlarc=
8125 else
8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131 solaris*)
8132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8133 ld_shlibs=no
8134 cat <<EOF 1>&2
8136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8137 *** create shared libraries on Solaris systems. Therefore, libtool
8138 *** is disabling shared libraries support. We urge you to upgrade GNU
8139 *** binutils to release 2.9.1 or newer. Another option is to modify
8140 *** your PATH or compiler configuration so that the native linker is
8141 *** used, and then restart.
8144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147 else
8148 ld_shlibs=no
8152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8153 case `$LD -v 2>&1` in
8154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8155 ld_shlibs=no
8156 cat <<_LT_EOF 1>&2
8158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8159 *** reliably create shared libraries on SCO systems. Therefore, libtool
8160 *** is disabling shared libraries support. We urge you to upgrade GNU
8161 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8162 *** your PATH or compiler configuration so that the native linker is
8163 *** used, and then restart.
8165 _LT_EOF
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8172 else
8173 ld_shlibs=no
8176 esac
8179 sunos4*)
8180 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8181 wlarc=
8182 hardcode_direct=yes
8183 hardcode_shlibpath_var=no
8187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8190 else
8191 ld_shlibs=no
8194 esac
8196 if test "$ld_shlibs" = no; then
8197 runpath_var=
8198 hardcode_libdir_flag_spec=
8199 export_dynamic_flag_spec=
8200 whole_archive_flag_spec=
8202 else
8203 # PORTME fill in a description of your system's linker (not GNU ld)
8204 case $host_os in
8205 aix3*)
8206 allow_undefined_flag=unsupported
8207 always_export_symbols=yes
8208 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'
8209 # Note: this linker hardcodes the directories in LIBPATH if there
8210 # are no directories specified by -L.
8211 hardcode_minus_L=yes
8212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8213 # Neither direct hardcoding nor static linking is supported with a
8214 # broken collect2.
8215 hardcode_direct=unsupported
8219 aix4* | aix5*)
8220 if test "$host_cpu" = ia64; then
8221 # On IA64, the linker does run time linking by default, so we don't
8222 # have to do anything special.
8223 aix_use_runtimelinking=no
8224 exp_sym_flag='-Bexport'
8225 no_entry_flag=""
8226 else
8227 # If we're using GNU nm, then we don't want the "-C" option.
8228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8230 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'
8231 else
8232 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'
8234 aix_use_runtimelinking=no
8236 # Test if we are trying to use run time linking or normal
8237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8238 # need to do runtime linking.
8239 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8240 for ld_flag in $LDFLAGS; do
8241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8242 aix_use_runtimelinking=yes
8243 break
8245 done
8247 esac
8249 exp_sym_flag='-bexport'
8250 no_entry_flag='-bnoentry'
8253 # When large executables or shared objects are built, AIX ld can
8254 # have problems creating the table of contents. If linking a library
8255 # or program results in "error TOC overflow" add -mminimal-toc to
8256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8259 archive_cmds=''
8260 hardcode_direct=yes
8261 hardcode_libdir_separator=':'
8262 link_all_deplibs=yes
8264 if test "$GCC" = yes; then
8265 case $host_os in aix4.[012]|aix4.[012].*)
8266 # We only want to do this on AIX 4.2 and lower, the check
8267 # below for broken collect2 doesn't work under 4.3+
8268 collect2name=`${CC} -print-prog-name=collect2`
8269 if test -f "$collect2name" && \
8270 strings "$collect2name" | grep resolve_lib_name >/dev/null
8271 then
8272 # We have reworked collect2
8274 else
8275 # We have old collect2
8276 hardcode_direct=unsupported
8277 # It fails to find uninstalled libraries when the uninstalled
8278 # path is not listed in the libpath. Setting hardcode_minus_L
8279 # to unsupported forces relinking
8280 hardcode_minus_L=yes
8281 hardcode_libdir_flag_spec='-L$libdir'
8282 hardcode_libdir_separator=
8285 esac
8286 shared_flag='-shared'
8287 if test "$aix_use_runtimelinking" = yes; then
8288 shared_flag="$shared_flag "'${wl}-G'
8290 else
8291 # not using gcc
8292 if test "$host_cpu" = ia64; then
8293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8294 # chokes on -Wl,-G. The following line is correct:
8295 shared_flag='-G'
8296 else
8297 if test "$aix_use_runtimelinking" = yes; then
8298 shared_flag='${wl}-G'
8299 else
8300 shared_flag='${wl}-bM:SRE'
8305 # It seems that -bexpall does not export symbols beginning with
8306 # underscore (_), so it is better to generate a list of symbols to export.
8307 always_export_symbols=yes
8308 if test "$aix_use_runtimelinking" = yes; then
8309 # Warning - without using the other runtime loading flags (-brtl),
8310 # -berok will link without error, but may produce a broken library.
8311 allow_undefined_flag='-berok'
8312 # Determine the default libpath from the value encoded in an empty executable.
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8321 main ()
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_link") 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest$ac_exeext &&
8345 $as_test_x conftest$ac_exeext; then
8347 lt_aix_libpath_sed='
8348 /Import File Strings/,/^$/ {
8349 /^0/ {
8350 s/^0 *\(.*\)$/\1/
8354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8355 # Check for a 64-bit object if we didn't find anything.
8356 if test -z "$aix_libpath"; then
8357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8371 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"
8372 else
8373 if test "$host_cpu" = ia64; then
8374 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8375 allow_undefined_flag="-z nodefs"
8376 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"
8377 else
8378 # Determine the default libpath from the value encoded in an empty executable.
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8387 main ()
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (ac_try="$ac_link"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_link") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest$ac_exeext &&
8411 $as_test_x conftest$ac_exeext; then
8413 lt_aix_libpath_sed='
8414 /Import File Strings/,/^$/ {
8415 /^0/ {
8416 s/^0 *\(.*\)$/\1/
8420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421 # Check for a 64-bit object if we didn't find anything.
8422 if test -z "$aix_libpath"; then
8423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433 conftest$ac_exeext conftest.$ac_ext
8434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8437 # Warning - without using the other run time loading flags,
8438 # -berok will link without error, but may produce a broken library.
8439 no_undefined_flag=' ${wl}-bernotok'
8440 allow_undefined_flag=' ${wl}-berok'
8441 # Exported symbols can be pulled into shared objects from archives
8442 whole_archive_flag_spec='$convenience'
8443 archive_cmds_need_lc=yes
8444 # This is similar to how AIX traditionally builds its shared libraries.
8445 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'
8450 amigaos*)
8451 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)'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_minus_L=yes
8454 # see comment about different semantics on the GNU ld section
8455 ld_shlibs=no
8458 bsdi[45]*)
8459 export_dynamic_flag_spec=-rdynamic
8462 cygwin* | mingw* | pw32*)
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 # hardcode_libdir_flag_spec is actually meaningless, as there is
8466 # no search path for DLLs.
8467 hardcode_libdir_flag_spec=' '
8468 allow_undefined_flag=unsupported
8469 # Tell ltmain to make .lib files, not .a files.
8470 libext=lib
8471 # Tell ltmain to make .dll files, not .so files.
8472 shrext_cmds=".dll"
8473 # FIXME: Setting linknames here is a bad hack.
8474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8475 # The linker will automatically build a .lib file if we build a DLL.
8476 old_archive_From_new_cmds='true'
8477 # FIXME: Should let the user specify the lib program.
8478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8479 fix_srcfile_path='`cygpath -w "$srcfile"`'
8480 enable_shared_with_static_runtimes=yes
8483 darwin* | rhapsody*)
8484 case $host_os in
8485 rhapsody* | darwin1.[012])
8486 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8488 *) # Darwin 1.3 on
8489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8490 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8491 else
8492 case ${MACOSX_DEPLOYMENT_TARGET} in
8493 10.[012])
8494 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8496 10.*)
8497 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8499 esac
8502 esac
8503 archive_cmds_need_lc=no
8504 hardcode_direct=no
8505 hardcode_automatic=yes
8506 hardcode_shlibpath_var=unsupported
8507 whole_archive_flag_spec=''
8508 link_all_deplibs=yes
8509 if test "$GCC" = yes ; then
8510 output_verbose_link_cmd='echo'
8511 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8512 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8514 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}'
8515 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}'
8516 else
8517 case $cc_basename in
8518 xlc*)
8519 output_verbose_link_cmd='echo'
8520 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8521 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8523 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}'
8524 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}'
8527 ld_shlibs=no
8529 esac
8533 dgux*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_shlibpath_var=no
8539 freebsd1*)
8540 ld_shlibs=no
8543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8544 # support. Future versions do this automatically, but an explicit c++rt0.o
8545 # does not break anything, and helps significantly (at the cost of a little
8546 # extra space).
8547 freebsd2.2*)
8548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8549 hardcode_libdir_flag_spec='-R$libdir'
8550 hardcode_direct=yes
8551 hardcode_shlibpath_var=no
8554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8555 freebsd2*)
8556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8557 hardcode_direct=yes
8558 hardcode_minus_L=yes
8559 hardcode_shlibpath_var=no
8562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8563 freebsd* | dragonfly*)
8564 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8565 hardcode_libdir_flag_spec='-R$libdir'
8566 hardcode_direct=yes
8567 hardcode_shlibpath_var=no
8570 hpux9*)
8571 if test "$GCC" = yes; then
8572 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'
8573 else
8574 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'
8576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577 hardcode_libdir_separator=:
8578 hardcode_direct=yes
8580 # hardcode_minus_L: Not really in the search PATH,
8581 # but as the default location of the library.
8582 hardcode_minus_L=yes
8583 export_dynamic_flag_spec='${wl}-E'
8586 hpux10*)
8587 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8588 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8589 else
8590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8592 if test "$with_gnu_ld" = no; then
8593 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8594 hardcode_libdir_separator=:
8596 hardcode_direct=yes
8597 export_dynamic_flag_spec='${wl}-E'
8599 # hardcode_minus_L: Not really in the search PATH,
8600 # but as the default location of the library.
8601 hardcode_minus_L=yes
8605 hpux11*)
8606 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8607 case $host_cpu in
8608 hppa*64*)
8609 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611 ia64*)
8612 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8617 esac
8618 else
8619 case $host_cpu in
8620 hppa*64*)
8621 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8623 ia64*)
8624 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8629 esac
8631 if test "$with_gnu_ld" = no; then
8632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8633 hardcode_libdir_separator=:
8635 case $host_cpu in
8636 hppa*64*|ia64*)
8637 hardcode_libdir_flag_spec_ld='+b $libdir'
8638 hardcode_direct=no
8639 hardcode_shlibpath_var=no
8642 hardcode_direct=yes
8643 export_dynamic_flag_spec='${wl}-E'
8645 # hardcode_minus_L: Not really in the search PATH,
8646 # but as the default location of the library.
8647 hardcode_minus_L=yes
8649 esac
8653 irix5* | irix6* | nonstopux*)
8654 if test "$GCC" = yes; then
8655 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'
8656 else
8657 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'
8658 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8661 hardcode_libdir_separator=:
8662 link_all_deplibs=yes
8665 netbsd* | netbsdelf*-gnu)
8666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8668 else
8669 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8676 newsos6)
8677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 hardcode_direct=yes
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 hardcode_libdir_separator=:
8681 hardcode_shlibpath_var=no
8684 openbsd*)
8685 if test -f /usr/libexec/ld.so; then
8686 hardcode_direct=yes
8687 hardcode_shlibpath_var=no
8688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8690 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8692 export_dynamic_flag_spec='${wl}-E'
8693 else
8694 case $host_os in
8695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8697 hardcode_libdir_flag_spec='-R$libdir'
8700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8703 esac
8705 else
8706 ld_shlibs=no
8710 os2*)
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 hardcode_minus_L=yes
8713 allow_undefined_flag=unsupported
8714 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'
8715 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8718 osf3*)
8719 if test "$GCC" = yes; then
8720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8721 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'
8722 else
8723 allow_undefined_flag=' -expect_unresolved \*'
8724 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'
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 hardcode_libdir_separator=:
8730 osf4* | osf5*) # as osf3* with the addition of -msym flag
8731 if test "$GCC" = yes; then
8732 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8733 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'
8734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8735 else
8736 allow_undefined_flag=' -expect_unresolved \*'
8737 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'
8738 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8739 $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'
8741 # Both c and cxx compiler support -rpath directly
8742 hardcode_libdir_flag_spec='-rpath $libdir'
8744 hardcode_libdir_separator=:
8747 solaris*)
8748 no_undefined_flag=' -z text'
8749 if test "$GCC" = yes; then
8750 wlarc='${wl}'
8751 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8753 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8754 else
8755 wlarc=''
8756 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8760 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_shlibpath_var=no
8762 case $host_os in
8763 solaris2.[0-5] | solaris2.[0-5].*) ;;
8765 # The compiler driver will combine and reorder linker options,
8766 # but understands `-z linker_flag'. GCC discards it without `$wl',
8767 # but is careful enough not to reorder.
8768 # Supported since Solaris 2.6 (maybe 2.5.1?)
8769 if test "$GCC" = yes; then
8770 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8771 else
8772 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8775 esac
8776 link_all_deplibs=yes
8779 sunos4*)
8780 if test "x$host_vendor" = xsequent; then
8781 # Use $CC to link under sequent, because it throws in some extra .o
8782 # files that make .init and .fini sections work.
8783 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8784 else
8785 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_libdir_flag_spec='-L$libdir'
8788 hardcode_direct=yes
8789 hardcode_minus_L=yes
8790 hardcode_shlibpath_var=no
8793 sysv4)
8794 case $host_vendor in
8795 sni)
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_direct=yes # is this really true???
8799 siemens)
8800 ## LD is ld it makes a PLAMLIB
8801 ## CC just makes a GrossModule.
8802 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8803 reload_cmds='$CC -r -o $output$reload_objs'
8804 hardcode_direct=no
8806 motorola)
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8810 esac
8811 runpath_var='LD_RUN_PATH'
8812 hardcode_shlibpath_var=no
8815 sysv4.3*)
8816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_shlibpath_var=no
8818 export_dynamic_flag_spec='-Bexport'
8821 sysv4*MP*)
8822 if test -d /usr/nec; then
8823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 hardcode_shlibpath_var=no
8825 runpath_var=LD_RUN_PATH
8826 hardcode_runpath_var=yes
8827 ld_shlibs=yes
8831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8832 no_undefined_flag='${wl}-z,text'
8833 archive_cmds_need_lc=no
8834 hardcode_shlibpath_var=no
8835 runpath_var='LD_RUN_PATH'
8837 if test "$GCC" = yes; then
8838 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 else
8841 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 sysv5* | sco3.2v5* | sco5v6*)
8847 # Note: We can NOT use -z defs as we might desire, because we do not
8848 # link with -lc, and that would cause any symbols used from libc to
8849 # always be unresolved, which means just about no library would
8850 # ever link correctly. If we're not using GNU ld we use -z text
8851 # though, which does catch some bad symbols but isn't as heavy-handed
8852 # as -z defs.
8853 no_undefined_flag='${wl}-z,text'
8854 allow_undefined_flag='${wl}-z,nodefs'
8855 archive_cmds_need_lc=no
8856 hardcode_shlibpath_var=no
8857 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8858 hardcode_libdir_separator=':'
8859 link_all_deplibs=yes
8860 export_dynamic_flag_spec='${wl}-Bexport'
8861 runpath_var='LD_RUN_PATH'
8863 if test "$GCC" = yes; then
8864 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 else
8867 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 uts4*)
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_libdir_flag_spec='-L$libdir'
8875 hardcode_shlibpath_var=no
8879 ld_shlibs=no
8881 esac
8884 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8885 echo "${ECHO_T}$ld_shlibs" >&6; }
8886 test "$ld_shlibs" = no && can_build_shared=no
8889 # Do we need to explicitly link libc?
8891 case "x$archive_cmds_need_lc" in
8892 x|xyes)
8893 # Assume -lc should be added
8894 archive_cmds_need_lc=yes
8896 if test "$enable_shared" = yes && test "$GCC" = yes; then
8897 case $archive_cmds in
8898 *'~'*)
8899 # FIXME: we may have to deal with multi-command sequences.
8901 '$CC '*)
8902 # Test whether the compiler implicitly links with -lc since on some
8903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8904 # to ld, don't add -lc before -lgcc.
8905 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8906 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8907 $rm conftest*
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } 2>conftest.err; then
8915 soname=conftest
8916 lib=conftest
8917 libobjs=conftest.$ac_objext
8918 deplibs=
8919 wl=$lt_prog_compiler_wl
8920 pic_flag=$lt_prog_compiler_pic
8921 compiler_flags=-v
8922 linker_flags=-v
8923 verstring=
8924 output_objdir=.
8925 libname=conftest
8926 lt_save_allow_undefined_flag=$allow_undefined_flag
8927 allow_undefined_flag=
8928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8929 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }
8933 then
8934 archive_cmds_need_lc=no
8935 else
8936 archive_cmds_need_lc=yes
8938 allow_undefined_flag=$lt_save_allow_undefined_flag
8939 else
8940 cat conftest.err 1>&5
8942 $rm conftest*
8943 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8944 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8946 esac
8949 esac
8951 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8953 library_names_spec=
8954 libname_spec='lib$name'
8955 soname_spec=
8956 shrext_cmds=".so"
8957 postinstall_cmds=
8958 postuninstall_cmds=
8959 finish_cmds=
8960 finish_eval=
8961 shlibpath_var=
8962 shlibpath_overrides_runpath=unknown
8963 version_type=none
8964 dynamic_linker="$host_os ld.so"
8965 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8967 if test "$GCC" = yes; then
8968 case $host_os in
8969 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8970 *) lt_awk_arg="/^libraries:/" ;;
8971 esac
8972 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8973 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8974 # if the path contains ";" then we assume it to be the separator
8975 # otherwise default to the standard path separator (i.e. ":") - it is
8976 # assumed that no part of a normal pathname contains ";" but that should
8977 # okay in the real world where ";" in dirpaths is itself problematic.
8978 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8979 else
8980 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8982 # Ok, now we have the path, separated by spaces, we can step through it
8983 # and add multilib dir if necessary.
8984 lt_tmp_lt_search_path_spec=
8985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8986 for lt_sys_path in $lt_search_path_spec; do
8987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8989 else
8990 test -d "$lt_sys_path" && \
8991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8993 done
8994 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8995 BEGIN {RS=" "; FS="/|\n";} {
8996 lt_foo="";
8997 lt_count=0;
8998 for (lt_i = NF; lt_i > 0; lt_i--) {
8999 if ($lt_i != "" && $lt_i != ".") {
9000 if ($lt_i == "..") {
9001 lt_count++;
9002 } else {
9003 if (lt_count == 0) {
9004 lt_foo="/" $lt_i lt_foo;
9005 } else {
9006 lt_count--;
9011 if (lt_foo != "") { lt_freq[lt_foo]++; }
9012 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9014 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9015 else
9016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9018 need_lib_prefix=unknown
9019 hardcode_into_libs=no
9021 # when you set need_version to no, make sure it does not cause -set_version
9022 # flags to be left without arguments
9023 need_version=unknown
9025 case $host_os in
9026 aix3*)
9027 version_type=linux
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9029 shlibpath_var=LIBPATH
9031 # AIX 3 has no versioning support, so we append a major version to the name.
9032 soname_spec='${libname}${release}${shared_ext}$major'
9035 aix4* | aix5*)
9036 version_type=linux
9037 need_lib_prefix=no
9038 need_version=no
9039 hardcode_into_libs=yes
9040 if test "$host_cpu" = ia64; then
9041 # AIX 5 supports IA64
9042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 else
9045 # With GCC up to 2.95.x, collect2 would create an import file
9046 # for dependence libraries. The import file would start with
9047 # the line `#! .'. This would cause the generated library to
9048 # depend on `.', always an invalid library. This was fixed in
9049 # development snapshots of GCC prior to 3.0.
9050 case $host_os in
9051 aix4 | aix4.[01] | aix4.[01].*)
9052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9053 echo ' yes '
9054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9056 else
9057 can_build_shared=no
9060 esac
9061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9062 # soname into executable. Probably we can add versioning support to
9063 # collect2, so additional links can be useful in future.
9064 if test "$aix_use_runtimelinking" = yes; then
9065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9066 # instead of lib<name>.a to let people know that these are not
9067 # typical AIX shared libraries.
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 else
9070 # We preserve .a as extension for shared libraries through AIX4.2
9071 # and later when we are not doing run time linking.
9072 library_names_spec='${libname}${release}.a $libname.a'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LIBPATH
9079 amigaos*)
9080 library_names_spec='$libname.ixlibrary $libname.a'
9081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9082 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'
9085 beos*)
9086 library_names_spec='${libname}${shared_ext}'
9087 dynamic_linker="$host_os ld.so"
9088 shlibpath_var=LIBRARY_PATH
9091 bsdi[45]*)
9092 version_type=linux
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9100 # the default ld.so.conf also contains /usr/contrib/lib and
9101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9102 # libtool to hard-code these into programs
9105 cygwin* | mingw* | pw32*)
9106 version_type=windows
9107 shrext_cmds=".dll"
9108 need_version=no
9109 need_lib_prefix=no
9111 case $GCC,$host_os in
9112 yes,cygwin* | yes,mingw* | yes,pw32*)
9113 library_names_spec='$libname.dll.a'
9114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9115 postinstall_cmds='base_file=`basename \${file}`~
9116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9117 dldir=$destdir/`dirname \$dlpath`~
9118 test -d \$dldir || mkdir -p \$dldir~
9119 $install_prog $dir/$dlname \$dldir/$dlname~
9120 chmod a+x \$dldir/$dlname'
9121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9122 dlpath=$dir/\$dldll~
9123 $rm \$dlpath'
9124 shlibpath_overrides_runpath=yes
9126 case $host_os in
9127 cygwin*)
9128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9132 mingw*)
9133 # MinGW DLLs use traditional 'lib' prefix
9134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9137 # It is most probably a Windows format PATH printed by
9138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9139 # path with ; separators, and with drive letters. We can handle the
9140 # drive letters (cygwin fileutils understands them), so leave them,
9141 # especially as we might pass files found there to a mingw objdump,
9142 # which wouldn't understand a cygwinified path. Ahh.
9143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144 else
9145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9148 pw32*)
9149 # pw32 DLLs use 'pw' prefix rather than 'lib'
9150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9152 esac
9156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9158 esac
9159 dynamic_linker='Win32 ld.exe'
9160 # FIXME: first we should search . and the directory the executable is in
9161 shlibpath_var=PATH
9164 darwin* | rhapsody*)
9165 dynamic_linker="$host_os dyld"
9166 version_type=darwin
9167 need_lib_prefix=no
9168 need_version=no
9169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9170 soname_spec='${libname}${release}${major}$shared_ext'
9171 shlibpath_overrides_runpath=yes
9172 shlibpath_var=DYLD_LIBRARY_PATH
9173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9179 dgux*)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9188 freebsd1*)
9189 dynamic_linker=no
9192 freebsd* | dragonfly*)
9193 # DragonFly does not have aout. When/if they implement a new
9194 # versioning mechanism, adjust this.
9195 if test -x /usr/bin/objformat; then
9196 objformat=`/usr/bin/objformat`
9197 else
9198 case $host_os in
9199 freebsd[123]*) objformat=aout ;;
9200 *) objformat=elf ;;
9201 esac
9203 version_type=freebsd-$objformat
9204 case $version_type in
9205 freebsd-elf*)
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9207 need_version=no
9208 need_lib_prefix=no
9210 freebsd-*)
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9212 need_version=yes
9214 esac
9215 shlibpath_var=LD_LIBRARY_PATH
9216 case $host_os in
9217 freebsd2*)
9218 shlibpath_overrides_runpath=yes
9220 freebsd3.[01]* | freebsdelf3.[01]*)
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9229 *) # from 4.6 on, and DragonFly
9230 shlibpath_overrides_runpath=yes
9231 hardcode_into_libs=yes
9233 esac
9236 gnu*)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 hardcode_into_libs=yes
9246 hpux9* | hpux10* | hpux11*)
9247 # Give a soname corresponding to the major version so that dld.sl refuses to
9248 # link against other versions.
9249 version_type=sunos
9250 need_lib_prefix=no
9251 need_version=no
9252 case $host_cpu in
9253 ia64*)
9254 shrext_cmds='.so'
9255 hardcode_into_libs=yes
9256 dynamic_linker="$host_os dld.so"
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 if test "X$HPUX_IA64_MODE" = X32; then
9262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9263 else
9264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9268 hppa*64*)
9269 shrext_cmds='.sl'
9270 hardcode_into_libs=yes
9271 dynamic_linker="$host_os dld.sl"
9272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 shrext_cmds='.sl'
9281 dynamic_linker="$host_os dld.sl"
9282 shlibpath_var=SHLIB_PATH
9283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9287 esac
9288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9289 postinstall_cmds='chmod 555 $lib'
9292 interix[3-9]*)
9293 version_type=linux
9294 need_lib_prefix=no
9295 need_version=no
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=no
9301 hardcode_into_libs=yes
9304 irix5* | irix6* | nonstopux*)
9305 case $host_os in
9306 nonstopux*) version_type=nonstopux ;;
9308 if test "$lt_cv_prog_gnu_ld" = yes; then
9309 version_type=linux
9310 else
9311 version_type=irix
9312 fi ;;
9313 esac
9314 need_lib_prefix=no
9315 need_version=no
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9318 case $host_os in
9319 irix5* | nonstopux*)
9320 libsuff= shlibsuff=
9323 case $LD in # libtool.m4 will add one of these switches to LD
9324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9325 libsuff= shlibsuff= libmagic=32-bit;;
9326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9327 libsuff=32 shlibsuff=N32 libmagic=N32;;
9328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9330 *) libsuff= shlibsuff= libmagic=never-match;;
9331 esac
9333 esac
9334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9335 shlibpath_overrides_runpath=no
9336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9338 hardcode_into_libs=yes
9341 # No shared lib support for Linux oldld, aout, or coff.
9342 linux*oldld* | linux*aout* | linux*coff*)
9343 dynamic_linker=no
9346 # This must be Linux ELF.
9347 linux* | k*bsd*-gnu)
9348 version_type=linux
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=no
9356 # This implies no fast_install, which is unacceptable.
9357 # Some rework will be needed to allow for fast_install
9358 # before this can be enabled.
9359 hardcode_into_libs=yes
9361 # Append ld.so.conf contents to the search path
9362 if test -f /etc/ld.so.conf; then
9363 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' ' '`
9364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9367 # We used to test for /lib/ld.so.1 and disable shared libraries on
9368 # powerpc, because MkLinux only supported shared libraries with the
9369 # GNU dynamic linker. Since this was broken with cross compilers,
9370 # most powerpc-linux boxes support dynamic linking these days and
9371 # people can always --disable-shared, the test was removed, and we
9372 # assume the GNU/Linux dynamic linker is in use.
9373 dynamic_linker='GNU/Linux ld.so'
9376 netbsdelf*-gnu)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=no
9384 hardcode_into_libs=yes
9385 dynamic_linker='NetBSD ld.elf_so'
9388 netbsd*)
9389 version_type=sunos
9390 need_lib_prefix=no
9391 need_version=no
9392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9395 dynamic_linker='NetBSD (a.out) ld.so'
9396 else
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 dynamic_linker='NetBSD ld.elf_so'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=yes
9403 hardcode_into_libs=yes
9406 newsos6)
9407 version_type=linux
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9413 nto-qnx*)
9414 version_type=linux
9415 need_lib_prefix=no
9416 need_version=no
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=yes
9423 openbsd*)
9424 version_type=sunos
9425 sys_lib_dlsearch_path_spec="/usr/lib"
9426 need_lib_prefix=no
9427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9428 case $host_os in
9429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9430 *) need_version=no ;;
9431 esac
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9436 case $host_os in
9437 openbsd2.[89] | openbsd2.[89].*)
9438 shlibpath_overrides_runpath=no
9441 shlibpath_overrides_runpath=yes
9443 esac
9444 else
9445 shlibpath_overrides_runpath=yes
9449 os2*)
9450 libname_spec='$name'
9451 shrext_cmds=".dll"
9452 need_lib_prefix=no
9453 library_names_spec='$libname${shared_ext} $libname.a'
9454 dynamic_linker='OS/2 ld.exe'
9455 shlibpath_var=LIBPATH
9458 osf3* | osf4* | osf5*)
9459 version_type=osf
9460 need_lib_prefix=no
9461 need_version=no
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9469 rdos*)
9470 dynamic_linker=no
9473 solaris*)
9474 version_type=linux
9475 need_lib_prefix=no
9476 need_version=no
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 shlibpath_overrides_runpath=yes
9481 hardcode_into_libs=yes
9482 # ldd complains unless libraries are executable
9483 postinstall_cmds='chmod +x $lib'
9486 sunos4*)
9487 version_type=sunos
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9492 if test "$with_gnu_ld" = yes; then
9493 need_lib_prefix=no
9495 need_version=yes
9498 sysv4 | sysv4.3*)
9499 version_type=linux
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 case $host_vendor in
9504 sni)
9505 shlibpath_overrides_runpath=no
9506 need_lib_prefix=no
9507 export_dynamic_flag_spec='${wl}-Blargedynsym'
9508 runpath_var=LD_RUN_PATH
9510 siemens)
9511 need_lib_prefix=no
9513 motorola)
9514 need_lib_prefix=no
9515 need_version=no
9516 shlibpath_overrides_runpath=no
9517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9519 esac
9522 sysv4*MP*)
9523 if test -d /usr/nec ;then
9524 version_type=linux
9525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526 soname_spec='$libname${shared_ext}.$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9532 version_type=freebsd-elf
9533 need_lib_prefix=no
9534 need_version=no
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 hardcode_into_libs=yes
9539 if test "$with_gnu_ld" = yes; then
9540 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9541 shlibpath_overrides_runpath=no
9542 else
9543 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9544 shlibpath_overrides_runpath=yes
9545 case $host_os in
9546 sco3.2v5*)
9547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9549 esac
9551 sys_lib_dlsearch_path_spec='/usr/lib'
9554 uts4*)
9555 version_type=linux
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 shlibpath_var=LD_LIBRARY_PATH
9562 dynamic_linker=no
9564 esac
9565 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9566 echo "${ECHO_T}$dynamic_linker" >&6; }
9567 test "$dynamic_linker" = no && can_build_shared=no
9569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9570 if test "$GCC" = yes; then
9571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9574 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9575 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9576 hardcode_action=
9577 if test -n "$hardcode_libdir_flag_spec" || \
9578 test -n "$runpath_var" || \
9579 test "X$hardcode_automatic" = "Xyes" ; then
9581 # We can hardcode non-existant directories.
9582 if test "$hardcode_direct" != no &&
9583 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9584 # have to relink, otherwise we might link with an installed library
9585 # when we should be linking with a yet-to-be-installed one
9586 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9587 test "$hardcode_minus_L" != no; then
9588 # Linking always hardcodes the temporary library directory.
9589 hardcode_action=relink
9590 else
9591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9592 hardcode_action=immediate
9594 else
9595 # We cannot hardcode anything, or else we can only hardcode existing
9596 # directories.
9597 hardcode_action=unsupported
9599 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9600 echo "${ECHO_T}$hardcode_action" >&6; }
9602 if test "$hardcode_action" = relink; then
9603 # Fast installation is not supported
9604 enable_fast_install=no
9605 elif test "$shlibpath_overrides_runpath" = yes ||
9606 test "$enable_shared" = no; then
9607 # Fast installation is not necessary
9608 enable_fast_install=needless
9611 striplib=
9612 old_striplib=
9613 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9614 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9615 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9616 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9617 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9618 { echo "$as_me:$LINENO: result: yes" >&5
9619 echo "${ECHO_T}yes" >&6; }
9620 else
9621 # FIXME - insert some real tests, host_os isn't really good enough
9622 case $host_os in
9623 darwin*)
9624 if test -n "$STRIP" ; then
9625 striplib="$STRIP -x"
9626 old_striplib="$STRIP -S"
9627 { echo "$as_me:$LINENO: result: yes" >&5
9628 echo "${ECHO_T}yes" >&6; }
9629 else
9630 { echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6; }
9635 { echo "$as_me:$LINENO: result: no" >&5
9636 echo "${ECHO_T}no" >&6; }
9638 esac
9641 if test "x$enable_dlopen" != xyes; then
9642 enable_dlopen=unknown
9643 enable_dlopen_self=unknown
9644 enable_dlopen_self_static=unknown
9645 else
9646 lt_cv_dlopen=no
9647 lt_cv_dlopen_libs=
9649 case $host_os in
9650 beos*)
9651 lt_cv_dlopen="load_add_on"
9652 lt_cv_dlopen_libs=
9653 lt_cv_dlopen_self=yes
9656 mingw* | pw32*)
9657 lt_cv_dlopen="LoadLibrary"
9658 lt_cv_dlopen_libs=
9661 cygwin*)
9662 lt_cv_dlopen="dlopen"
9663 lt_cv_dlopen_libs=
9666 darwin*)
9667 # if libdl is installed we need to link against it
9668 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-ldl $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char dlopen ();
9690 main ()
9692 return dlopen ();
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (ac_try="$ac_link"
9699 case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_link") 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest$ac_exeext &&
9714 $as_test_x conftest$ac_exeext; then
9715 ac_cv_lib_dl_dlopen=yes
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 ac_cv_lib_dl_dlopen=no
9723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9724 conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9731 else
9733 lt_cv_dlopen="dyld"
9734 lt_cv_dlopen_libs=
9735 lt_cv_dlopen_self=yes
9742 { echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9755 #define shl_load innocuous_shl_load
9757 /* System header to define __stub macros and hopefully few prototypes,
9758 which can conflict with char shl_load (); below.
9759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760 <limits.h> exists even on freestanding compilers. */
9762 #ifdef __STDC__
9763 # include <limits.h>
9764 #else
9765 # include <assert.h>
9766 #endif
9768 #undef shl_load
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char shl_load ();
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined __stub_shl_load || defined __stub___shl_load
9781 choke me
9782 #endif
9785 main ()
9787 return shl_load ();
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9794 case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest$ac_exeext &&
9809 $as_test_x conftest$ac_exeext; then
9810 ac_cv_func_shl_load=yes
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_func_shl_load=no
9818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9819 conftest$ac_exeext conftest.$ac_ext
9821 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9822 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9823 if test $ac_cv_func_shl_load = yes; then
9824 lt_cv_dlopen="shl_load"
9825 else
9826 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9827 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9828 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831 ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-ldld $LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char shl_load ();
9848 main ()
9850 return shl_load ();
9852 return 0;
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest$ac_exeext &&
9872 $as_test_x conftest$ac_exeext; then
9873 ac_cv_lib_dld_shl_load=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_cv_lib_dld_shl_load=no
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9885 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9887 if test $ac_cv_lib_dld_shl_load = yes; then
9888 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9889 else
9890 { echo "$as_me:$LINENO: checking for dlopen" >&5
9891 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9892 if test "${ac_cv_func_dlopen+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9903 #define dlopen innocuous_dlopen
9905 /* System header to define __stub macros and hopefully few prototypes,
9906 which can conflict with char dlopen (); below.
9907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908 <limits.h> exists even on freestanding compilers. */
9910 #ifdef __STDC__
9911 # include <limits.h>
9912 #else
9913 # include <assert.h>
9914 #endif
9916 #undef dlopen
9918 /* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 char dlopen ();
9925 /* The GNU C library defines this for functions which it implements
9926 to always fail with ENOSYS. Some functions are actually named
9927 something starting with __ and the normal name is an alias. */
9928 #if defined __stub_dlopen || defined __stub___dlopen
9929 choke me
9930 #endif
9933 main ()
9935 return dlopen ();
9937 return 0;
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext &&
9957 $as_test_x conftest$ac_exeext; then
9958 ac_cv_func_dlopen=yes
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_func_dlopen=no
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967 conftest$ac_exeext conftest.$ac_ext
9969 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9970 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9971 if test $ac_cv_func_dlopen = yes; then
9972 lt_cv_dlopen="dlopen"
9973 else
9974 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9975 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 ac_check_lib_save_LIBS=$LIBS
9980 LIBS="-ldl $LIBS"
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9988 /* Override any GCC internal prototype to avoid an error.
9989 Use char because int might match the return type of a GCC
9990 builtin and then its argument prototype would still apply. */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char dlopen ();
9996 main ()
9998 return dlopen ();
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext &&
10020 $as_test_x conftest$ac_exeext; then
10021 ac_cv_lib_dl_dlopen=yes
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_dl_dlopen=no
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10034 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10035 if test $ac_cv_lib_dl_dlopen = yes; then
10036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10037 else
10038 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10039 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10040 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lsvld $LIBS"
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 /* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
10055 #ifdef __cplusplus
10056 extern "C"
10057 #endif
10058 char dlopen ();
10060 main ()
10062 return dlopen ();
10064 return 0;
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext &&
10084 $as_test_x conftest$ac_exeext; then
10085 ac_cv_lib_svld_dlopen=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_svld_dlopen=no
10093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10098 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10099 if test $ac_cv_lib_svld_dlopen = yes; then
10100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10101 else
10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107 ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-ldld $LIBS"
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char dld_link ();
10124 main ()
10126 return dld_link ();
10128 return 0;
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest$ac_exeext &&
10148 $as_test_x conftest$ac_exeext; then
10149 ac_cv_lib_dld_dld_link=yes
10150 else
10151 echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 ac_cv_lib_dld_dld_link=no
10157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10161 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10163 if test $ac_cv_lib_dld_dld_link = yes; then
10164 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10183 esac
10185 if test "x$lt_cv_dlopen" != xno; then
10186 enable_dlopen=yes
10187 else
10188 enable_dlopen=no
10191 case $lt_cv_dlopen in
10192 dlopen)
10193 save_CPPFLAGS="$CPPFLAGS"
10194 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10196 save_LDFLAGS="$LDFLAGS"
10197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10199 save_LIBS="$LIBS"
10200 LIBS="$lt_cv_dlopen_libs $LIBS"
10202 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10203 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10204 if test "${lt_cv_dlopen_self+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 if test "$cross_compiling" = yes; then :
10208 lt_cv_dlopen_self=cross
10209 else
10210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10211 lt_status=$lt_dlunknown
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10213 "configure"
10214 #include "confdefs.h"
10216 #if HAVE_DLFCN_H
10217 #include <dlfcn.h>
10218 #endif
10220 #include <stdio.h>
10222 #ifdef RTLD_GLOBAL
10223 # define LT_DLGLOBAL RTLD_GLOBAL
10224 #else
10225 # ifdef DL_GLOBAL
10226 # define LT_DLGLOBAL DL_GLOBAL
10227 # else
10228 # define LT_DLGLOBAL 0
10229 # endif
10230 #endif
10232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10233 find out it does not work in some platform. */
10234 #ifndef LT_DLLAZY_OR_NOW
10235 # ifdef RTLD_LAZY
10236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10237 # else
10238 # ifdef DL_LAZY
10239 # define LT_DLLAZY_OR_NOW DL_LAZY
10240 # else
10241 # ifdef RTLD_NOW
10242 # define LT_DLLAZY_OR_NOW RTLD_NOW
10243 # else
10244 # ifdef DL_NOW
10245 # define LT_DLLAZY_OR_NOW DL_NOW
10246 # else
10247 # define LT_DLLAZY_OR_NOW 0
10248 # endif
10249 # endif
10250 # endif
10251 # endif
10252 #endif
10254 #ifdef __cplusplus
10255 extern "C" void exit (int);
10256 #endif
10258 void fnord() { int i=42;}
10259 int main ()
10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262 int status = $lt_dlunknown;
10264 if (self)
10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268 /* dlclose (self); */
10270 else
10271 puts (dlerror ());
10273 exit (status);
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10281 (./conftest; exit; ) >&5 2>/dev/null
10282 lt_status=$?
10283 case x$lt_status in
10284 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10285 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10286 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10287 esac
10288 else :
10289 # compilation failed
10290 lt_cv_dlopen_self=no
10293 rm -fr conftest*
10297 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10298 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10300 if test "x$lt_cv_dlopen_self" = xyes; then
10301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10302 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10303 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10304 if test "${lt_cv_dlopen_self_static+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self_static=cross
10309 else
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10313 "configure"
10314 #include "confdefs.h"
10316 #if HAVE_DLFCN_H
10317 #include <dlfcn.h>
10318 #endif
10320 #include <stdio.h>
10322 #ifdef RTLD_GLOBAL
10323 # define LT_DLGLOBAL RTLD_GLOBAL
10324 #else
10325 # ifdef DL_GLOBAL
10326 # define LT_DLGLOBAL DL_GLOBAL
10327 # else
10328 # define LT_DLGLOBAL 0
10329 # endif
10330 #endif
10332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334 #ifndef LT_DLLAZY_OR_NOW
10335 # ifdef RTLD_LAZY
10336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10337 # else
10338 # ifdef DL_LAZY
10339 # define LT_DLLAZY_OR_NOW DL_LAZY
10340 # else
10341 # ifdef RTLD_NOW
10342 # define LT_DLLAZY_OR_NOW RTLD_NOW
10343 # else
10344 # ifdef DL_NOW
10345 # define LT_DLLAZY_OR_NOW DL_NOW
10346 # else
10347 # define LT_DLLAZY_OR_NOW 0
10348 # endif
10349 # endif
10350 # endif
10351 # endif
10352 #endif
10354 #ifdef __cplusplus
10355 extern "C" void exit (int);
10356 #endif
10358 void fnord() { int i=42;}
10359 int main ()
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10364 if (self)
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10370 else
10371 puts (dlerror ());
10373 exit (status);
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10382 lt_status=$?
10383 case x$lt_status in
10384 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10385 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10386 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10387 esac
10388 else :
10389 # compilation failed
10390 lt_cv_dlopen_self_static=no
10393 rm -fr conftest*
10397 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10401 CPPFLAGS="$save_CPPFLAGS"
10402 LDFLAGS="$save_LDFLAGS"
10403 LIBS="$save_LIBS"
10405 esac
10407 case $lt_cv_dlopen_self in
10408 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409 *) enable_dlopen_self=unknown ;;
10410 esac
10412 case $lt_cv_dlopen_self_static in
10413 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10414 *) enable_dlopen_self_static=unknown ;;
10415 esac
10419 # Report which library types will actually be built
10420 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10422 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10423 echo "${ECHO_T}$can_build_shared" >&6; }
10425 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10427 test "$can_build_shared" = "no" && enable_shared=no
10429 # On AIX, shared libraries and static libraries use the same namespace, and
10430 # are all built from PIC.
10431 case $host_os in
10432 aix3*)
10433 test "$enable_shared" = yes && enable_static=no
10434 if test -n "$RANLIB"; then
10435 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10436 postinstall_cmds='$RANLIB $lib'
10440 aix4* | aix5*)
10441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442 test "$enable_shared" = yes && enable_static=no
10445 esac
10446 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10447 echo "${ECHO_T}$enable_shared" >&6; }
10449 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10451 # Make sure either enable_shared or enable_static is yes.
10452 test "$enable_shared" = yes || enable_static=yes
10453 { echo "$as_me:$LINENO: result: $enable_static" >&5
10454 echo "${ECHO_T}$enable_static" >&6; }
10456 # The else clause should only fire when bootstrapping the
10457 # libtool distribution, otherwise you forgot to ship ltmain.sh
10458 # with your package, and you will get complaints that there are
10459 # no rules to generate ltmain.sh.
10460 if test -f "$ltmain"; then
10461 # See if we are running on zsh, and set the options which allow our commands through
10462 # without removal of \ escapes.
10463 if test -n "${ZSH_VERSION+set}" ; then
10464 setopt NO_GLOB_SUBST
10466 # Now quote all the things that may contain metacharacters while being
10467 # careful not to overquote the AC_SUBSTed values. We take copies of the
10468 # variables and quote the copies for generation of the libtool script.
10469 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10470 SED SHELL STRIP \
10471 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10472 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10473 deplibs_check_method reload_flag reload_cmds need_locks \
10474 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10475 lt_cv_sys_global_symbol_to_c_name_address \
10476 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10477 old_postinstall_cmds old_postuninstall_cmds \
10478 compiler \
10479 CC \
10480 LD \
10481 lt_prog_compiler_wl \
10482 lt_prog_compiler_pic \
10483 lt_prog_compiler_static \
10484 lt_prog_compiler_no_builtin_flag \
10485 export_dynamic_flag_spec \
10486 thread_safe_flag_spec \
10487 whole_archive_flag_spec \
10488 enable_shared_with_static_runtimes \
10489 old_archive_cmds \
10490 old_archive_from_new_cmds \
10491 predep_objects \
10492 postdep_objects \
10493 predeps \
10494 postdeps \
10495 compiler_lib_search_path \
10496 archive_cmds \
10497 archive_expsym_cmds \
10498 postinstall_cmds \
10499 postuninstall_cmds \
10500 old_archive_from_expsyms_cmds \
10501 allow_undefined_flag \
10502 no_undefined_flag \
10503 export_symbols_cmds \
10504 hardcode_libdir_flag_spec \
10505 hardcode_libdir_flag_spec_ld \
10506 hardcode_libdir_separator \
10507 hardcode_automatic \
10508 module_cmds \
10509 module_expsym_cmds \
10510 lt_cv_prog_compiler_c_o \
10511 fix_srcfile_path \
10512 exclude_expsyms \
10513 include_expsyms; do
10515 case $var in
10516 old_archive_cmds | \
10517 old_archive_from_new_cmds | \
10518 archive_cmds | \
10519 archive_expsym_cmds | \
10520 module_cmds | \
10521 module_expsym_cmds | \
10522 old_archive_from_expsyms_cmds | \
10523 export_symbols_cmds | \
10524 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10525 postinstall_cmds | postuninstall_cmds | \
10526 old_postinstall_cmds | old_postuninstall_cmds | \
10527 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10528 # Double-quote double-evaled strings.
10529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10534 esac
10535 done
10537 case $lt_echo in
10538 *'\$0 --fallback-echo"')
10539 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10541 esac
10543 cfgfile="${ofile}T"
10544 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10545 $rm -f "$cfgfile"
10546 { echo "$as_me:$LINENO: creating $ofile" >&5
10547 echo "$as_me: creating $ofile" >&6;}
10549 cat <<__EOF__ >> "$cfgfile"
10550 #! $SHELL
10552 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10553 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10554 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10556 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10557 # Free Software Foundation, Inc.
10559 # This file is part of GNU Libtool:
10560 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10562 # This program is free software; you can redistribute it and/or modify
10563 # it under the terms of the GNU General Public License as published by
10564 # the Free Software Foundation; either version 2 of the License, or
10565 # (at your option) any later version.
10567 # This program is distributed in the hope that it will be useful, but
10568 # WITHOUT ANY WARRANTY; without even the implied warranty of
10569 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10570 # General Public License for more details.
10572 # You should have received a copy of the GNU General Public License
10573 # along with this program; if not, write to the Free Software
10574 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10576 # As a special exception to the GNU General Public License, if you
10577 # distribute this file as part of a program that contains a
10578 # configuration script generated by Autoconf, you may include it under
10579 # the same distribution terms that you use for the rest of that program.
10581 # A sed program that does not truncate output.
10582 SED=$lt_SED
10584 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10585 Xsed="$SED -e 1s/^X//"
10587 # The HP-UX ksh and POSIX shell print the target directory to stdout
10588 # if CDPATH is set.
10589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10591 # The names of the tagged configurations supported by this script.
10592 available_tags=
10594 # ### BEGIN LIBTOOL CONFIG
10596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10598 # Shell to use when invoking shell scripts.
10599 SHELL=$lt_SHELL
10601 # Whether or not to build shared libraries.
10602 build_libtool_libs=$enable_shared
10604 # Whether or not to build static libraries.
10605 build_old_libs=$enable_static
10607 # Whether or not to add -lc for building shared libraries.
10608 build_libtool_need_lc=$archive_cmds_need_lc
10610 # Whether or not to disallow shared libs when runtime libs are static
10611 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10613 # Whether or not to optimize for fast installation.
10614 fast_install=$enable_fast_install
10616 # The host system.
10617 host_alias=$host_alias
10618 host=$host
10619 host_os=$host_os
10621 # The build system.
10622 build_alias=$build_alias
10623 build=$build
10624 build_os=$build_os
10626 # An echo program that does not interpret backslashes.
10627 echo=$lt_echo
10629 # The archiver.
10630 AR=$lt_AR
10631 AR_FLAGS=$lt_AR_FLAGS
10633 # A C compiler.
10634 LTCC=$lt_LTCC
10636 # LTCC compiler flags.
10637 LTCFLAGS=$lt_LTCFLAGS
10639 # A language-specific compiler.
10640 CC=$lt_compiler
10642 # Is the compiler the GNU C compiler?
10643 with_gcc=$GCC
10645 # An ERE matcher.
10646 EGREP=$lt_EGREP
10648 # The linker used to build libraries.
10649 LD=$lt_LD
10651 # Whether we need hard or soft links.
10652 LN_S=$lt_LN_S
10654 # A BSD-compatible nm program.
10655 NM=$lt_NM
10657 # A symbol stripping program
10658 STRIP=$lt_STRIP
10660 # Used to examine libraries when file_magic_cmd begins "file"
10661 MAGIC_CMD=$MAGIC_CMD
10663 # Used on cygwin: DLL creation program.
10664 DLLTOOL="$DLLTOOL"
10666 # Used on cygwin: object dumper.
10667 OBJDUMP="$OBJDUMP"
10669 # Used on cygwin: assembler.
10670 AS="$AS"
10672 # The name of the directory that contains temporary libtool files.
10673 objdir=$objdir
10675 # How to create reloadable object files.
10676 reload_flag=$lt_reload_flag
10677 reload_cmds=$lt_reload_cmds
10679 # How to pass a linker flag through the compiler.
10680 wl=$lt_lt_prog_compiler_wl
10682 # Object file suffix (normally "o").
10683 objext="$ac_objext"
10685 # Old archive suffix (normally "a").
10686 libext="$libext"
10688 # Shared library suffix (normally ".so").
10689 shrext_cmds='$shrext_cmds'
10691 # Executable file suffix (normally "").
10692 exeext="$exeext"
10694 # Additional compiler flags for building library objects.
10695 pic_flag=$lt_lt_prog_compiler_pic
10696 pic_mode=$pic_mode
10698 # What is the maximum length of a command?
10699 max_cmd_len=$lt_cv_sys_max_cmd_len
10701 # Does compiler simultaneously support -c and -o options?
10702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10704 # Must we lock files when doing compilation?
10705 need_locks=$lt_need_locks
10707 # Do we need the lib prefix for modules?
10708 need_lib_prefix=$need_lib_prefix
10710 # Do we need a version for libraries?
10711 need_version=$need_version
10713 # Whether dlopen is supported.
10714 dlopen_support=$enable_dlopen
10716 # Whether dlopen of programs is supported.
10717 dlopen_self=$enable_dlopen_self
10719 # Whether dlopen of statically linked programs is supported.
10720 dlopen_self_static=$enable_dlopen_self_static
10722 # Compiler flag to prevent dynamic linking.
10723 link_static_flag=$lt_lt_prog_compiler_static
10725 # Compiler flag to turn off builtin functions.
10726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10728 # Compiler flag to allow reflexive dlopens.
10729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10731 # Compiler flag to generate shared objects directly from archives.
10732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10734 # Compiler flag to generate thread-safe objects.
10735 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10737 # Library versioning type.
10738 version_type=$version_type
10740 # Format of library name prefix.
10741 libname_spec=$lt_libname_spec
10743 # List of archive names. First name is the real one, the rest are links.
10744 # The last name is the one that the linker finds with -lNAME.
10745 library_names_spec=$lt_library_names_spec
10747 # The coded name of the library, if different from the real name.
10748 soname_spec=$lt_soname_spec
10750 # Commands used to build and install an old-style archive.
10751 RANLIB=$lt_RANLIB
10752 old_archive_cmds=$lt_old_archive_cmds
10753 old_postinstall_cmds=$lt_old_postinstall_cmds
10754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10756 # Create an old-style archive from a shared archive.
10757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10759 # Create a temporary old-style archive to link instead of a shared archive.
10760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10762 # Commands used to build and install a shared archive.
10763 archive_cmds=$lt_archive_cmds
10764 archive_expsym_cmds=$lt_archive_expsym_cmds
10765 postinstall_cmds=$lt_postinstall_cmds
10766 postuninstall_cmds=$lt_postuninstall_cmds
10768 # Commands used to build a loadable module (assumed same as above if empty)
10769 module_cmds=$lt_module_cmds
10770 module_expsym_cmds=$lt_module_expsym_cmds
10772 # Commands to strip libraries.
10773 old_striplib=$lt_old_striplib
10774 striplib=$lt_striplib
10776 # Dependencies to place before the objects being linked to create a
10777 # shared library.
10778 predep_objects=$lt_predep_objects
10780 # Dependencies to place after the objects being linked to create a
10781 # shared library.
10782 postdep_objects=$lt_postdep_objects
10784 # Dependencies to place before the objects being linked to create a
10785 # shared library.
10786 predeps=$lt_predeps
10788 # Dependencies to place after the objects being linked to create a
10789 # shared library.
10790 postdeps=$lt_postdeps
10792 # The library search path used internally by the compiler when linking
10793 # a shared library.
10794 compiler_lib_search_path=$lt_compiler_lib_search_path
10796 # Method to check whether dependent libraries are shared objects.
10797 deplibs_check_method=$lt_deplibs_check_method
10799 # Command to use when deplibs_check_method == file_magic.
10800 file_magic_cmd=$lt_file_magic_cmd
10802 # Flag that allows shared libraries with undefined symbols to be built.
10803 allow_undefined_flag=$lt_allow_undefined_flag
10805 # Flag that forces no undefined symbols.
10806 no_undefined_flag=$lt_no_undefined_flag
10808 # Commands used to finish a libtool library installation in a directory.
10809 finish_cmds=$lt_finish_cmds
10811 # Same as above, but a single script fragment to be evaled but not shown.
10812 finish_eval=$lt_finish_eval
10814 # Take the output of nm and produce a listing of raw symbols and C names.
10815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10817 # Transform the output of nm in a proper C declaration
10818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10820 # Transform the output of nm in a C name address pair
10821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10823 # This is the shared library runtime path variable.
10824 runpath_var=$runpath_var
10826 # This is the shared library path variable.
10827 shlibpath_var=$shlibpath_var
10829 # Is shlibpath searched before the hard-coded library search path?
10830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10832 # How to hardcode a shared library path into an executable.
10833 hardcode_action=$hardcode_action
10835 # Whether we should hardcode library paths into libraries.
10836 hardcode_into_libs=$hardcode_into_libs
10838 # Flag to hardcode \$libdir into a binary during linking.
10839 # This must work even if \$libdir does not exist.
10840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10842 # If ld is used when linking, flag to hardcode \$libdir into
10843 # a binary during linking. This must work even if \$libdir does
10844 # not exist.
10845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10847 # Whether we need a single -rpath flag with a separated argument.
10848 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_direct=$hardcode_direct
10854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10855 # resulting binary.
10856 hardcode_minus_L=$hardcode_minus_L
10858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10859 # the resulting binary.
10860 hardcode_shlibpath_var=$hardcode_shlibpath_var
10862 # Set to yes if building a shared library automatically hardcodes DIR into the library
10863 # and all subsequent libraries and executables linked against it.
10864 hardcode_automatic=$hardcode_automatic
10866 # Variables whose values should be saved in libtool wrapper scripts and
10867 # restored at relink time.
10868 variables_saved_for_relink="$variables_saved_for_relink"
10870 # Whether libtool must link a program against all its dependency libraries.
10871 link_all_deplibs=$link_all_deplibs
10873 # Compile-time system search path for libraries
10874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10876 # Run-time system search path for libraries
10877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10879 # Fix the shell variable \$srcfile for the compiler.
10880 fix_srcfile_path=$lt_fix_srcfile_path
10882 # Set to yes if exported symbols are required.
10883 always_export_symbols=$always_export_symbols
10885 # The commands to list exported symbols.
10886 export_symbols_cmds=$lt_export_symbols_cmds
10888 # The commands to extract the exported symbol list from a shared archive.
10889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10891 # Symbols that should not be listed in the preloaded symbols.
10892 exclude_expsyms=$lt_exclude_expsyms
10894 # Symbols that must always be exported.
10895 include_expsyms=$lt_include_expsyms
10897 # ### END LIBTOOL CONFIG
10899 __EOF__
10902 case $host_os in
10903 aix3*)
10904 cat <<\EOF >> "$cfgfile"
10906 # AIX sometimes has problems with the GCC collect2 program. For some
10907 # reason, if we set the COLLECT_NAMES environment variable, the problems
10908 # vanish in a puff of smoke.
10909 if test "X${COLLECT_NAMES+set}" != Xset; then
10910 COLLECT_NAMES=
10911 export COLLECT_NAMES
10915 esac
10917 # We use sed instead of cat because bash on DJGPP gets confused if
10918 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10919 # text mode, it properly converts lines to CR/LF. This bash problem
10920 # is reportedly fixed, but why not run on old versions too?
10921 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10923 mv -f "$cfgfile" "$ofile" || \
10924 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10925 chmod +x "$ofile"
10927 else
10928 # If there is no Makefile yet, we rely on a make rule to execute
10929 # `config.status --recheck' to rerun these tests and create the
10930 # libtool script then.
10931 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10932 if test -f "$ltmain_in"; then
10933 test -f Makefile && make "$ltmain"
10938 ac_ext=c
10939 ac_cpp='$CPP $CPPFLAGS'
10940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10944 CC="$lt_save_CC"
10947 # Check whether --with-tags was given.
10948 if test "${with_tags+set}" = set; then
10949 withval=$with_tags; tagnames="$withval"
10953 if test -f "$ltmain" && test -n "$tagnames"; then
10954 if test ! -f "${ofile}"; then
10955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10959 if test -z "$LTCC"; then
10960 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10961 if test -z "$LTCC"; then
10962 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10963 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10964 else
10965 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10966 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10969 if test -z "$LTCFLAGS"; then
10970 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10973 # Extract list of available tagged configurations in $ofile.
10974 # Note that this assumes the entire list is on one line.
10975 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10978 for tagname in $tagnames; do
10979 IFS="$lt_save_ifs"
10980 # Check whether tagname contains only valid characters
10981 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10982 "") ;;
10983 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10984 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10985 { (exit 1); exit 1; }; }
10987 esac
10989 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10990 then
10991 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10992 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10993 { (exit 1); exit 1; }; }
10996 # Update the list of available tags.
10997 if test -n "$tagname"; then
10998 echo appending configuration tag \"$tagname\" to $ofile
11000 case $tagname in
11001 CXX)
11002 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11003 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11004 (test "X$CXX" != "Xg++"))) ; then
11005 ac_ext=cpp
11006 ac_cpp='$CXXCPP $CPPFLAGS'
11007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11014 archive_cmds_need_lc_CXX=no
11015 allow_undefined_flag_CXX=
11016 always_export_symbols_CXX=no
11017 archive_expsym_cmds_CXX=
11018 export_dynamic_flag_spec_CXX=
11019 hardcode_direct_CXX=no
11020 hardcode_libdir_flag_spec_CXX=
11021 hardcode_libdir_flag_spec_ld_CXX=
11022 hardcode_libdir_separator_CXX=
11023 hardcode_minus_L_CXX=no
11024 hardcode_shlibpath_var_CXX=unsupported
11025 hardcode_automatic_CXX=no
11026 module_cmds_CXX=
11027 module_expsym_cmds_CXX=
11028 link_all_deplibs_CXX=unknown
11029 old_archive_cmds_CXX=$old_archive_cmds
11030 no_undefined_flag_CXX=
11031 whole_archive_flag_spec_CXX=
11032 enable_shared_with_static_runtimes_CXX=no
11034 # Dependencies to place before and after the object being linked:
11035 predep_objects_CXX=
11036 postdep_objects_CXX=
11037 predeps_CXX=
11038 postdeps_CXX=
11039 compiler_lib_search_path_CXX=
11041 # Source file extension for C++ test sources.
11042 ac_ext=cpp
11044 # Object file extension for compiled C++ test sources.
11045 objext=o
11046 objext_CXX=$objext
11048 # Code to be used in simple compile tests
11049 lt_simple_compile_test_code="int some_variable = 0;"
11051 # Code to be used in simple link tests
11052 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11056 # If no C compiler was specified, use CC.
11057 LTCC=${LTCC-"$CC"}
11059 # If no C compiler flags were specified, use CFLAGS.
11060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11062 # Allow CC to be a program name with arguments.
11063 compiler=$CC
11066 # save warnings/boilerplate of simple test code
11067 ac_outfile=conftest.$ac_objext
11068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11070 _lt_compiler_boilerplate=`cat conftest.err`
11071 $rm conftest*
11073 ac_outfile=conftest.$ac_objext
11074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11076 _lt_linker_boilerplate=`cat conftest.err`
11077 $rm conftest*
11080 # Allow CC to be a program name with arguments.
11081 lt_save_CC=$CC
11082 lt_save_LD=$LD
11083 lt_save_GCC=$GCC
11084 GCC=$GXX
11085 lt_save_with_gnu_ld=$with_gnu_ld
11086 lt_save_path_LD=$lt_cv_path_LD
11087 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11088 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11089 else
11090 $as_unset lt_cv_prog_gnu_ld
11092 if test -n "${lt_cv_path_LDCXX+set}"; then
11093 lt_cv_path_LD=$lt_cv_path_LDCXX
11094 else
11095 $as_unset lt_cv_path_LD
11097 test -z "${LDCXX+set}" || LD=$LDCXX
11098 CC=${CXX-"c++"}
11099 compiler=$CC
11100 compiler_CXX=$CC
11101 for cc_temp in $compiler""; do
11102 case $cc_temp in
11103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11105 \-*) ;;
11106 *) break;;
11107 esac
11108 done
11109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11112 # We don't want -fno-exception wen compiling C++ code, so set the
11113 # no_builtin_flag separately
11114 if test "$GXX" = yes; then
11115 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11116 else
11117 lt_prog_compiler_no_builtin_flag_CXX=
11120 if test "$GXX" = yes; then
11121 # Set up default GNU C++ configuration
11124 # Check whether --with-gnu-ld was given.
11125 if test "${with_gnu_ld+set}" = set; then
11126 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11127 else
11128 with_gnu_ld=no
11131 ac_prog=ld
11132 if test "$GCC" = yes; then
11133 # Check if gcc -print-prog-name=ld gives a path.
11134 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11136 case $host in
11137 *-*-mingw*)
11138 # gcc leaves a trailing carriage return which upsets mingw
11139 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11141 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11142 esac
11143 case $ac_prog in
11144 # Accept absolute paths.
11145 [\\/]* | ?:[\\/]*)
11146 re_direlt='/[^/][^/]*/\.\./'
11147 # Canonicalize the pathname of ld
11148 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11150 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11151 done
11152 test -z "$LD" && LD="$ac_prog"
11155 # If it fails, then pretend we aren't using GCC.
11156 ac_prog=ld
11159 # If it is relative, then search for the first ld in PATH.
11160 with_gnu_ld=unknown
11162 esac
11163 elif test "$with_gnu_ld" = yes; then
11164 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11166 else
11167 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11170 if test "${lt_cv_path_LD+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 if test -z "$LD"; then
11174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11175 for ac_dir in $PATH; do
11176 IFS="$lt_save_ifs"
11177 test -z "$ac_dir" && ac_dir=.
11178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11179 lt_cv_path_LD="$ac_dir/$ac_prog"
11180 # Check to see if the program is GNU ld. I'd rather use --version,
11181 # but apparently some variants of GNU ld only accept -v.
11182 # Break only if it was the GNU/non-GNU ld that we prefer.
11183 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11184 *GNU* | *'with BFD'*)
11185 test "$with_gnu_ld" != no && break
11188 test "$with_gnu_ld" != yes && break
11190 esac
11192 done
11193 IFS="$lt_save_ifs"
11194 else
11195 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11199 LD="$lt_cv_path_LD"
11200 if test -n "$LD"; then
11201 { echo "$as_me:$LINENO: result: $LD" >&5
11202 echo "${ECHO_T}$LD" >&6; }
11203 else
11204 { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11209 { (exit 1); exit 1; }; }
11210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11216 case `$LD -v 2>&1 </dev/null` in
11217 *GNU* | *'with BFD'*)
11218 lt_cv_prog_gnu_ld=yes
11221 lt_cv_prog_gnu_ld=no
11223 esac
11225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11227 with_gnu_ld=$lt_cv_prog_gnu_ld
11231 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11232 # archiving commands below assume that GNU ld is being used.
11233 if test "$with_gnu_ld" = yes; then
11234 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11235 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'
11237 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11240 # If archive_cmds runs LD, not CC, wlarc should be empty
11241 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11242 # investigate it a little bit more. (MM)
11243 wlarc='${wl}'
11245 # ancient GNU ld didn't support --whole-archive et. al.
11246 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11247 grep 'no-whole-archive' > /dev/null; then
11248 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11249 else
11250 whole_archive_flag_spec_CXX=
11252 else
11253 with_gnu_ld=no
11254 wlarc=
11256 # A generic and very simple default shared library creation
11257 # command for GNU C++ for the case where it uses the native
11258 # linker, instead of GNU ld. If possible, this setting should
11259 # overridden to take advantage of the native linker features on
11260 # the platform it is being used on.
11261 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11264 # Commands to make compiler produce verbose output that lists
11265 # what "hidden" libraries, object files and flags are used when
11266 # linking a shared library.
11267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11269 else
11270 GXX=no
11271 with_gnu_ld=no
11272 wlarc=
11275 # PORTME: fill in a description of your system's C++ link characteristics
11276 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11277 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11278 ld_shlibs_CXX=yes
11279 case $host_os in
11280 aix3*)
11281 # FIXME: insert proper C++ library support
11282 ld_shlibs_CXX=no
11284 aix4* | aix5*)
11285 if test "$host_cpu" = ia64; then
11286 # On IA64, the linker does run time linking by default, so we don't
11287 # have to do anything special.
11288 aix_use_runtimelinking=no
11289 exp_sym_flag='-Bexport'
11290 no_entry_flag=""
11291 else
11292 aix_use_runtimelinking=no
11294 # Test if we are trying to use run time linking or normal
11295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11296 # need to do runtime linking.
11297 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11298 for ld_flag in $LDFLAGS; do
11299 case $ld_flag in
11300 *-brtl*)
11301 aix_use_runtimelinking=yes
11302 break
11304 esac
11305 done
11307 esac
11309 exp_sym_flag='-bexport'
11310 no_entry_flag='-bnoentry'
11313 # When large executables or shared objects are built, AIX ld can
11314 # have problems creating the table of contents. If linking a library
11315 # or program results in "error TOC overflow" add -mminimal-toc to
11316 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11317 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11319 archive_cmds_CXX=''
11320 hardcode_direct_CXX=yes
11321 hardcode_libdir_separator_CXX=':'
11322 link_all_deplibs_CXX=yes
11324 if test "$GXX" = yes; then
11325 case $host_os in aix4.[012]|aix4.[012].*)
11326 # We only want to do this on AIX 4.2 and lower, the check
11327 # below for broken collect2 doesn't work under 4.3+
11328 collect2name=`${CC} -print-prog-name=collect2`
11329 if test -f "$collect2name" && \
11330 strings "$collect2name" | grep resolve_lib_name >/dev/null
11331 then
11332 # We have reworked collect2
11334 else
11335 # We have old collect2
11336 hardcode_direct_CXX=unsupported
11337 # It fails to find uninstalled libraries when the uninstalled
11338 # path is not listed in the libpath. Setting hardcode_minus_L
11339 # to unsupported forces relinking
11340 hardcode_minus_L_CXX=yes
11341 hardcode_libdir_flag_spec_CXX='-L$libdir'
11342 hardcode_libdir_separator_CXX=
11345 esac
11346 shared_flag='-shared'
11347 if test "$aix_use_runtimelinking" = yes; then
11348 shared_flag="$shared_flag "'${wl}-G'
11350 else
11351 # not using gcc
11352 if test "$host_cpu" = ia64; then
11353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11354 # chokes on -Wl,-G. The following line is correct:
11355 shared_flag='-G'
11356 else
11357 if test "$aix_use_runtimelinking" = yes; then
11358 shared_flag='${wl}-G'
11359 else
11360 shared_flag='${wl}-bM:SRE'
11365 # It seems that -bexpall does not export symbols beginning with
11366 # underscore (_), so it is better to generate a list of symbols to export.
11367 always_export_symbols_CXX=yes
11368 if test "$aix_use_runtimelinking" = yes; then
11369 # Warning - without using the other runtime loading flags (-brtl),
11370 # -berok will link without error, but may produce a broken library.
11371 allow_undefined_flag_CXX='-berok'
11372 # Determine the default libpath from the value encoded in an empty executable.
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11381 main ()
11385 return 0;
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (ac_try="$ac_link"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_link") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_cxx_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest$ac_exeext &&
11405 $as_test_x conftest$ac_exeext; then
11407 lt_aix_libpath_sed='
11408 /Import File Strings/,/^$/ {
11409 /^0/ {
11410 s/^0 *\(.*\)$/\1/
11414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11415 # Check for a 64-bit object if we didn't find anything.
11416 if test -z "$aix_libpath"; then
11417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11430 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11432 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"
11433 else
11434 if test "$host_cpu" = ia64; then
11435 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11436 allow_undefined_flag_CXX="-z nodefs"
11437 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"
11438 else
11439 # Determine the default libpath from the value encoded in an empty executable.
11440 cat >conftest.$ac_ext <<_ACEOF
11441 /* confdefs.h. */
11442 _ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11448 main ()
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (ac_try="$ac_link"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_link") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } && {
11469 test -z "$ac_cxx_werror_flag" ||
11470 test ! -s conftest.err
11471 } && test -s conftest$ac_exeext &&
11472 $as_test_x conftest$ac_exeext; then
11474 lt_aix_libpath_sed='
11475 /Import File Strings/,/^$/ {
11476 /^0/ {
11477 s/^0 *\(.*\)$/\1/
11481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11482 # Check for a 64-bit object if we didn't find anything.
11483 if test -z "$aix_libpath"; then
11484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11486 else
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494 conftest$ac_exeext conftest.$ac_ext
11495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11497 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11498 # Warning - without using the other run time loading flags,
11499 # -berok will link without error, but may produce a broken library.
11500 no_undefined_flag_CXX=' ${wl}-bernotok'
11501 allow_undefined_flag_CXX=' ${wl}-berok'
11502 # Exported symbols can be pulled into shared objects from archives
11503 whole_archive_flag_spec_CXX='$convenience'
11504 archive_cmds_need_lc_CXX=yes
11505 # This is similar to how AIX traditionally builds its shared libraries.
11506 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'
11511 beos*)
11512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11513 allow_undefined_flag_CXX=unsupported
11514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11515 # support --undefined. This deserves some investigation. FIXME
11516 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11517 else
11518 ld_shlibs_CXX=no
11522 chorus*)
11523 case $cc_basename in
11525 # FIXME: insert proper C++ library support
11526 ld_shlibs_CXX=no
11528 esac
11531 cygwin* | mingw* | pw32*)
11532 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11533 # as there is no search path for DLLs.
11534 hardcode_libdir_flag_spec_CXX='-L$libdir'
11535 allow_undefined_flag_CXX=unsupported
11536 always_export_symbols_CXX=no
11537 enable_shared_with_static_runtimes_CXX=yes
11539 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11540 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'
11541 # If the export-symbols file already is a .def file (1st line
11542 # is EXPORTS), use it as is; otherwise, prepend...
11543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11544 cp $export_symbols $output_objdir/$soname.def;
11545 else
11546 echo EXPORTS > $output_objdir/$soname.def;
11547 cat $export_symbols >> $output_objdir/$soname.def;
11549 $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'
11550 else
11551 ld_shlibs_CXX=no
11554 darwin* | rhapsody*)
11555 case $host_os in
11556 rhapsody* | darwin1.[012])
11557 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11559 *) # Darwin 1.3 on
11560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11561 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11562 else
11563 case ${MACOSX_DEPLOYMENT_TARGET} in
11564 10.[012])
11565 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11567 10.*)
11568 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11570 esac
11573 esac
11574 archive_cmds_need_lc_CXX=no
11575 hardcode_direct_CXX=no
11576 hardcode_automatic_CXX=yes
11577 hardcode_shlibpath_var_CXX=unsupported
11578 whole_archive_flag_spec_CXX=''
11579 link_all_deplibs_CXX=yes
11581 if test "$GXX" = yes ; then
11582 lt_int_apple_cc_single_mod=no
11583 output_verbose_link_cmd='echo'
11584 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11585 lt_int_apple_cc_single_mod=yes
11587 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11588 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11589 else
11590 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'
11592 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11594 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11595 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}'
11596 else
11597 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}'
11599 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}'
11600 else
11601 case $cc_basename in
11602 xlc*)
11603 output_verbose_link_cmd='echo'
11604 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'
11605 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11607 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}'
11608 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}'
11611 ld_shlibs_CXX=no
11613 esac
11617 dgux*)
11618 case $cc_basename in
11619 ec++*)
11620 # FIXME: insert proper C++ library support
11621 ld_shlibs_CXX=no
11623 ghcx*)
11624 # Green Hills C++ Compiler
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11629 # FIXME: insert proper C++ library support
11630 ld_shlibs_CXX=no
11632 esac
11634 freebsd[12]*)
11635 # C++ shared libraries reported to be fairly broken before switch to ELF
11636 ld_shlibs_CXX=no
11638 freebsd-elf*)
11639 archive_cmds_need_lc_CXX=no
11641 freebsd* | dragonfly*)
11642 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11643 # conventions
11644 ld_shlibs_CXX=yes
11646 gnu*)
11648 hpux9*)
11649 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11650 hardcode_libdir_separator_CXX=:
11651 export_dynamic_flag_spec_CXX='${wl}-E'
11652 hardcode_direct_CXX=yes
11653 hardcode_minus_L_CXX=yes # Not in the search PATH,
11654 # but as the default
11655 # location of the library.
11657 case $cc_basename in
11658 CC*)
11659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11662 aCC*)
11663 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'
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11671 # dependencies.
11672 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'
11675 if test "$GXX" = yes; then
11676 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'
11677 else
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11682 esac
11684 hpux10*|hpux11*)
11685 if test $with_gnu_ld = no; then
11686 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11687 hardcode_libdir_separator_CXX=:
11689 case $host_cpu in
11690 hppa*64*|ia64*) ;;
11692 export_dynamic_flag_spec_CXX='${wl}-E'
11694 esac
11696 case $host_cpu in
11697 hppa*64*|ia64*)
11698 hardcode_direct_CXX=no
11699 hardcode_shlibpath_var_CXX=no
11702 hardcode_direct_CXX=yes
11703 hardcode_minus_L_CXX=yes # Not in the search PATH,
11704 # but as the default
11705 # location of the library.
11707 esac
11709 case $cc_basename in
11710 CC*)
11711 # FIXME: insert proper C++ library support
11712 ld_shlibs_CXX=no
11714 aCC*)
11715 case $host_cpu in
11716 hppa*64*)
11717 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719 ia64*)
11720 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725 esac
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11733 # dependencies.
11734 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'
11737 if test "$GXX" = yes; then
11738 if test $with_gnu_ld = no; then
11739 case $host_cpu in
11740 hppa*64*)
11741 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743 ia64*)
11744 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11747 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'
11749 esac
11751 else
11752 # FIXME: insert proper C++ library support
11753 ld_shlibs_CXX=no
11756 esac
11758 interix[3-9]*)
11759 hardcode_direct_CXX=no
11760 hardcode_shlibpath_var_CXX=no
11761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11762 export_dynamic_flag_spec_CXX='${wl}-E'
11763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11764 # Instead, shared libraries are loaded at an image base (0x10000000 by
11765 # default) and relocated if they conflict, which is a slow very memory
11766 # consuming and fragmenting process. To avoid this, we pick a random,
11767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11769 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'
11770 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'
11772 irix5* | irix6*)
11773 case $cc_basename in
11774 CC*)
11775 # SGI C++
11776 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'
11778 # Archives containing C++ object files must be created using
11779 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11780 # necessary to make sure instantiated templates are included
11781 # in the archive.
11782 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11785 if test "$GXX" = yes; then
11786 if test "$with_gnu_ld" = no; then
11787 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'
11788 else
11789 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'
11792 link_all_deplibs_CXX=yes
11794 esac
11795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11796 hardcode_libdir_separator_CXX=:
11798 linux* | k*bsd*-gnu)
11799 case $cc_basename in
11800 KCC*)
11801 # Kuck and Associates, Inc. (KAI) C++ Compiler
11803 # KCC will only create a shared library if the output file
11804 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11805 # to its proper name (with version) after linking.
11806 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'
11807 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'
11808 # Commands to make compiler produce verbose output that lists
11809 # what "hidden" libraries, object files and flags are used when
11810 # linking a shared library.
11812 # There doesn't appear to be a way to prevent this compiler from
11813 # explicitly linking system object files so we need to strip them
11814 # from the output so that they don't get included in the library
11815 # dependencies.
11816 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'
11818 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11821 # Archives containing C++ object files must be created using
11822 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11825 icpc*)
11826 # Intel C++
11827 with_gnu_ld=yes
11828 # version 8.0 and above of icpc choke on multiply defined symbols
11829 # if we add $predep_objects and $postdep_objects, however 7.1 and
11830 # earlier do not add the objects themselves.
11831 case `$CC -V 2>&1` in
11832 *"Version 7."*)
11833 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834 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'
11836 *) # Version 8.0 or newer
11837 tmp_idyn=
11838 case $host_cpu in
11839 ia64*) tmp_idyn=' -i_dynamic';;
11840 esac
11841 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11842 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'
11844 esac
11845 archive_cmds_need_lc_CXX=no
11846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11847 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11848 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11850 pgCC*)
11851 # Portland Group C++ compiler
11852 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11853 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'
11855 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11857 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'
11859 cxx*)
11860 # Compaq C++
11861 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11862 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'
11864 runpath_var=LD_RUN_PATH
11865 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11866 hardcode_libdir_separator_CXX=:
11868 # Commands to make compiler produce verbose output that lists
11869 # what "hidden" libraries, object files and flags are used when
11870 # linking a shared library.
11872 # There doesn't appear to be a way to prevent this compiler from
11873 # explicitly linking system object files so we need to strip them
11874 # from the output so that they don't get included in the library
11875 # dependencies.
11876 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'
11879 case `$CC -V 2>&1 | sed 5q` in
11880 *Sun\ C*)
11881 # Sun C++ 5.9
11882 no_undefined_flag_CXX=' -zdefs'
11883 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11884 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'
11885 hardcode_libdir_flag_spec_CXX='-R$libdir'
11886 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'
11888 # Not sure whether something based on
11889 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11890 # would be better.
11891 output_verbose_link_cmd='echo'
11893 # Archives containing C++ object files must be created using
11894 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11895 # necessary to make sure instantiated templates are included
11896 # in the archive.
11897 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11899 esac
11901 esac
11903 lynxos*)
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11907 m88k*)
11908 # FIXME: insert proper C++ library support
11909 ld_shlibs_CXX=no
11911 mvs*)
11912 case $cc_basename in
11913 cxx*)
11914 # FIXME: insert proper C++ library support
11915 ld_shlibs_CXX=no
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11921 esac
11923 netbsd* | netbsdelf*-gnu)
11924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11925 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11926 wlarc=
11927 hardcode_libdir_flag_spec_CXX='-R$libdir'
11928 hardcode_direct_CXX=yes
11929 hardcode_shlibpath_var_CXX=no
11931 # Workaround some broken pre-1.5 toolchains
11932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11934 openbsd2*)
11935 # C++ shared libraries are fairly broken
11936 ld_shlibs_CXX=no
11938 openbsd*)
11939 if test -f /usr/libexec/ld.so; then
11940 hardcode_direct_CXX=yes
11941 hardcode_shlibpath_var_CXX=no
11942 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11945 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11946 export_dynamic_flag_spec_CXX='${wl}-E'
11947 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11949 output_verbose_link_cmd='echo'
11950 else
11951 ld_shlibs_CXX=no
11954 osf3*)
11955 case $cc_basename in
11956 KCC*)
11957 # Kuck and Associates, Inc. (KAI) C++ Compiler
11959 # KCC will only create a shared library if the output file
11960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11961 # to its proper name (with version) after linking.
11962 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'
11964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11965 hardcode_libdir_separator_CXX=:
11967 # Archives containing C++ object files must be created using
11968 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11969 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11972 RCC*)
11973 # Rational C++ 2.4.1
11974 # FIXME: insert proper C++ library support
11975 ld_shlibs_CXX=no
11977 cxx*)
11978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11979 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'
11981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11982 hardcode_libdir_separator_CXX=:
11984 # Commands to make compiler produce verbose output that lists
11985 # what "hidden" libraries, object files and flags are used when
11986 # linking a shared library.
11988 # There doesn't appear to be a way to prevent this compiler from
11989 # explicitly linking system object files so we need to strip them
11990 # from the output so that they don't get included in the library
11991 # dependencies.
11992 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'
11995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11996 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11997 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'
11999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12000 hardcode_libdir_separator_CXX=:
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12007 else
12008 # FIXME: insert proper C++ library support
12009 ld_shlibs_CXX=no
12012 esac
12014 osf4* | osf5*)
12015 case $cc_basename in
12016 KCC*)
12017 # Kuck and Associates, Inc. (KAI) C++ Compiler
12019 # KCC will only create a shared library if the output file
12020 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12021 # to its proper name (with version) after linking.
12022 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'
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025 hardcode_libdir_separator_CXX=:
12027 # Archives containing C++ object files must be created using
12028 # the KAI C++ compiler.
12029 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12031 RCC*)
12032 # Rational C++ 2.4.1
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12036 cxx*)
12037 allow_undefined_flag_CXX=' -expect_unresolved \*'
12038 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'
12039 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12040 echo "-hidden">> $lib.exp~
12041 $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~
12042 $rm $lib.exp'
12044 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12045 hardcode_libdir_separator_CXX=:
12047 # Commands to make compiler produce verbose output that lists
12048 # what "hidden" libraries, object files and flags are used when
12049 # linking a shared library.
12051 # There doesn't appear to be a way to prevent this compiler from
12052 # explicitly linking system object files so we need to strip them
12053 # from the output so that they don't get included in the library
12054 # dependencies.
12055 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'
12058 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12059 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12060 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'
12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12063 hardcode_libdir_separator_CXX=:
12065 # Commands to make compiler produce verbose output that lists
12066 # what "hidden" libraries, object files and flags are used when
12067 # linking a shared library.
12068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12070 else
12071 # FIXME: insert proper C++ library support
12072 ld_shlibs_CXX=no
12075 esac
12077 psos*)
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12081 sunos4*)
12082 case $cc_basename in
12083 CC*)
12084 # Sun C++ 4.x
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12088 lcc*)
12089 # Lucid
12090 # FIXME: insert proper C++ library support
12091 ld_shlibs_CXX=no
12094 # FIXME: insert proper C++ library support
12095 ld_shlibs_CXX=no
12097 esac
12099 solaris*)
12100 case $cc_basename in
12101 CC*)
12102 # Sun C++ 4.2, 5.x and Centerline C++
12103 archive_cmds_need_lc_CXX=yes
12104 no_undefined_flag_CXX=' -zdefs'
12105 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12107 $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'
12109 hardcode_libdir_flag_spec_CXX='-R$libdir'
12110 hardcode_shlibpath_var_CXX=no
12111 case $host_os in
12112 solaris2.[0-5] | solaris2.[0-5].*) ;;
12114 # The compiler driver will combine and reorder linker options,
12115 # but understands `-z linker_flag'.
12116 # Supported since Solaris 2.6 (maybe 2.5.1?)
12117 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12119 esac
12120 link_all_deplibs_CXX=yes
12122 output_verbose_link_cmd='echo'
12124 # Archives containing C++ object files must be created using
12125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12126 # necessary to make sure instantiated templates are included
12127 # in the archive.
12128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12130 gcx*)
12131 # Green Hills C++ Compiler
12132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12134 # The C++ compiler must be used to create the archive.
12135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12138 # GNU C++ compiler with Solaris linker
12139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12141 if $CC --version | grep -v '^2\.7' > /dev/null; then
12142 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12143 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12144 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12146 # Commands to make compiler produce verbose output that lists
12147 # what "hidden" libraries, object files and flags are used when
12148 # linking a shared library.
12149 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12150 else
12151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12152 # platform.
12153 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12155 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12160 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12164 case $host_os in
12165 solaris2.[0-5] | solaris2.[0-5].*) ;;
12167 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12169 esac
12172 esac
12174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12175 no_undefined_flag_CXX='${wl}-z,text'
12176 archive_cmds_need_lc_CXX=no
12177 hardcode_shlibpath_var_CXX=no
12178 runpath_var='LD_RUN_PATH'
12180 case $cc_basename in
12181 CC*)
12182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189 esac
12191 sysv5* | sco3.2v5* | sco5v6*)
12192 # Note: We can NOT use -z defs as we might desire, because we do not
12193 # link with -lc, and that would cause any symbols used from libc to
12194 # always be unresolved, which means just about no library would
12195 # ever link correctly. If we're not using GNU ld we use -z text
12196 # though, which does catch some bad symbols but isn't as heavy-handed
12197 # as -z defs.
12198 # For security reasons, it is highly recommended that you always
12199 # use absolute paths for naming shared libraries, and exclude the
12200 # DT_RUNPATH tag from executables and libraries. But doing so
12201 # requires that you compile everything twice, which is a pain.
12202 # So that behaviour is only enabled if SCOABSPATH is set to a
12203 # non-empty value in the environment. Most likely only useful for
12204 # creating official distributions of packages.
12205 # This is a hack until libtool officially supports absolute path
12206 # names for shared libraries.
12207 no_undefined_flag_CXX='${wl}-z,text'
12208 allow_undefined_flag_CXX='${wl}-z,nodefs'
12209 archive_cmds_need_lc_CXX=no
12210 hardcode_shlibpath_var_CXX=no
12211 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12212 hardcode_libdir_separator_CXX=':'
12213 link_all_deplibs_CXX=yes
12214 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12215 runpath_var='LD_RUN_PATH'
12217 case $cc_basename in
12218 CC*)
12219 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12220 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12223 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12224 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12226 esac
12228 tandem*)
12229 case $cc_basename in
12230 NCC*)
12231 # NonStop-UX NCC 3.20
12232 # FIXME: insert proper C++ library support
12233 ld_shlibs_CXX=no
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12239 esac
12241 vxworks*)
12242 # FIXME: insert proper C++ library support
12243 ld_shlibs_CXX=no
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12249 esac
12250 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12251 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12252 test "$ld_shlibs_CXX" = no && can_build_shared=no
12254 GCC_CXX="$GXX"
12255 LD_CXX="$LD"
12258 cat > conftest.$ac_ext <<EOF
12259 class Foo
12261 public:
12262 Foo (void) { a = 0; }
12263 private:
12264 int a;
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; then
12273 # Parse the compiler output and extract the necessary
12274 # objects, libraries and library flags.
12276 # Sentinel used to keep track of whether or not we are before
12277 # the conftest object file.
12278 pre_test_object_deps_done=no
12280 # The `*' in the case matches for architectures that use `case' in
12281 # $output_verbose_cmd can trigger glob expansion during the loop
12282 # eval without this substitution.
12283 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12285 for p in `eval $output_verbose_link_cmd`; do
12286 case $p in
12288 -L* | -R* | -l*)
12289 # Some compilers place space between "-{L,R}" and the path.
12290 # Remove the space.
12291 if test $p = "-L" \
12292 || test $p = "-R"; then
12293 prev=$p
12294 continue
12295 else
12296 prev=
12299 if test "$pre_test_object_deps_done" = no; then
12300 case $p in
12301 -L* | -R*)
12302 # Internal compiler library paths should come after those
12303 # provided the user. The postdeps already come after the
12304 # user supplied libs so there is no need to process them.
12305 if test -z "$compiler_lib_search_path_CXX"; then
12306 compiler_lib_search_path_CXX="${prev}${p}"
12307 else
12308 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12311 # The "-l" case would never come before the object being
12312 # linked, so don't bother handling this case.
12313 esac
12314 else
12315 if test -z "$postdeps_CXX"; then
12316 postdeps_CXX="${prev}${p}"
12317 else
12318 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12323 *.$objext)
12324 # This assumes that the test object file only shows up
12325 # once in the compiler output.
12326 if test "$p" = "conftest.$objext"; then
12327 pre_test_object_deps_done=yes
12328 continue
12331 if test "$pre_test_object_deps_done" = no; then
12332 if test -z "$predep_objects_CXX"; then
12333 predep_objects_CXX="$p"
12334 else
12335 predep_objects_CXX="$predep_objects_CXX $p"
12337 else
12338 if test -z "$postdep_objects_CXX"; then
12339 postdep_objects_CXX="$p"
12340 else
12341 postdep_objects_CXX="$postdep_objects_CXX $p"
12346 *) ;; # Ignore the rest.
12348 esac
12349 done
12351 # Clean up.
12352 rm -f a.out a.exe
12353 else
12354 echo "libtool.m4: error: problem compiling CXX test program"
12357 $rm -f confest.$objext
12359 # PORTME: override above test on systems where it is broken
12360 case $host_os in
12361 interix[3-9]*)
12362 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12363 # hack all around it, let's just trust "g++" to DTRT.
12364 predep_objects_CXX=
12365 postdep_objects_CXX=
12366 postdeps_CXX=
12369 linux*)
12370 case `$CC -V 2>&1 | sed 5q` in
12371 *Sun\ C*)
12372 # Sun C++ 5.9
12374 # The more standards-conforming stlport4 library is
12375 # incompatible with the Cstd library. Avoid specifying
12376 # it if it's in CXXFLAGS. Ignore libCrun as
12377 # -library=stlport4 depends on it.
12378 case " $CXX $CXXFLAGS " in
12379 *" -library=stlport4 "*)
12380 solaris_use_stlport4=yes
12382 esac
12383 if test "$solaris_use_stlport4" != yes; then
12384 postdeps_CXX='-library=Cstd -library=Crun'
12387 esac
12390 solaris*)
12391 case $cc_basename in
12392 CC*)
12393 # The more standards-conforming stlport4 library is
12394 # incompatible with the Cstd library. Avoid specifying
12395 # it if it's in CXXFLAGS. Ignore libCrun as
12396 # -library=stlport4 depends on it.
12397 case " $CXX $CXXFLAGS " in
12398 *" -library=stlport4 "*)
12399 solaris_use_stlport4=yes
12401 esac
12403 # Adding this requires a known-good setup of shared libraries for
12404 # Sun compiler versions before 5.6, else PIC objects from an old
12405 # archive will be linked into the output, leading to subtle bugs.
12406 if test "$solaris_use_stlport4" != yes; then
12407 postdeps_CXX='-library=Cstd -library=Crun'
12410 esac
12412 esac
12415 case " $postdeps_CXX " in
12416 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12417 esac
12419 lt_prog_compiler_wl_CXX=
12420 lt_prog_compiler_pic_CXX=
12421 lt_prog_compiler_static_CXX=
12423 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12424 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12426 # C++ specific cases for pic, static, wl, etc.
12427 if test "$GXX" = yes; then
12428 lt_prog_compiler_wl_CXX='-Wl,'
12429 lt_prog_compiler_static_CXX='-static'
12431 case $host_os in
12432 aix*)
12433 # All AIX code is PIC.
12434 if test "$host_cpu" = ia64; then
12435 # AIX 5 now supports IA64 processor
12436 lt_prog_compiler_static_CXX='-Bstatic'
12439 amigaos*)
12440 # FIXME: we need at least 68020 code to build shared libraries, but
12441 # adding the `-m68020' flag to GCC prevents building anything better,
12442 # like `-m68040'.
12443 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12445 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12446 # PIC is the default for these OSes.
12448 mingw* | cygwin* | os2* | pw32*)
12449 # This hack is so that the source file can tell whether it is being
12450 # built for inclusion in a dll (and should export symbols for example).
12451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12452 # (--disable-auto-import) libraries
12453 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12455 darwin* | rhapsody*)
12456 # PIC is the default on this platform
12457 # Common symbols not allowed in MH_DYLIB files
12458 lt_prog_compiler_pic_CXX='-fno-common'
12460 *djgpp*)
12461 # DJGPP does not support shared libraries at all
12462 lt_prog_compiler_pic_CXX=
12464 interix[3-9]*)
12465 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12466 # Instead, we relocate shared libraries at runtime.
12468 sysv4*MP*)
12469 if test -d /usr/nec; then
12470 lt_prog_compiler_pic_CXX=-Kconform_pic
12473 hpux*)
12474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12475 # not for PA HP-UX.
12476 case $host_cpu in
12477 hppa*64*|ia64*)
12480 lt_prog_compiler_pic_CXX='-fPIC'
12482 esac
12485 lt_prog_compiler_pic_CXX='-fPIC'
12487 esac
12488 else
12489 case $host_os in
12490 aix4* | aix5*)
12491 # All AIX code is PIC.
12492 if test "$host_cpu" = ia64; then
12493 # AIX 5 now supports IA64 processor
12494 lt_prog_compiler_static_CXX='-Bstatic'
12495 else
12496 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12499 chorus*)
12500 case $cc_basename in
12501 cxch68*)
12502 # Green Hills C++ Compiler
12503 # _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"
12505 esac
12507 darwin*)
12508 # PIC is the default on this platform
12509 # Common symbols not allowed in MH_DYLIB files
12510 case $cc_basename in
12511 xlc*)
12512 lt_prog_compiler_pic_CXX='-qnocommon'
12513 lt_prog_compiler_wl_CXX='-Wl,'
12515 esac
12517 dgux*)
12518 case $cc_basename in
12519 ec++*)
12520 lt_prog_compiler_pic_CXX='-KPIC'
12522 ghcx*)
12523 # Green Hills C++ Compiler
12524 lt_prog_compiler_pic_CXX='-pic'
12528 esac
12530 freebsd* | dragonfly*)
12531 # FreeBSD uses GNU C++
12533 hpux9* | hpux10* | hpux11*)
12534 case $cc_basename in
12535 CC*)
12536 lt_prog_compiler_wl_CXX='-Wl,'
12537 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12538 if test "$host_cpu" != ia64; then
12539 lt_prog_compiler_pic_CXX='+Z'
12542 aCC*)
12543 lt_prog_compiler_wl_CXX='-Wl,'
12544 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12545 case $host_cpu in
12546 hppa*64*|ia64*)
12547 # +Z the default
12550 lt_prog_compiler_pic_CXX='+Z'
12552 esac
12556 esac
12558 interix*)
12559 # This is c89, which is MS Visual C++ (no shared libs)
12560 # Anyone wants to do a port?
12562 irix5* | irix6* | nonstopux*)
12563 case $cc_basename in
12564 CC*)
12565 lt_prog_compiler_wl_CXX='-Wl,'
12566 lt_prog_compiler_static_CXX='-non_shared'
12567 # CC pic flag -KPIC is the default.
12571 esac
12573 linux* | k*bsd*-gnu)
12574 case $cc_basename in
12575 KCC*)
12576 # KAI C++ Compiler
12577 lt_prog_compiler_wl_CXX='--backend -Wl,'
12578 lt_prog_compiler_pic_CXX='-fPIC'
12580 icpc* | ecpc*)
12581 # Intel C++
12582 lt_prog_compiler_wl_CXX='-Wl,'
12583 lt_prog_compiler_pic_CXX='-KPIC'
12584 lt_prog_compiler_static_CXX='-static'
12586 pgCC*)
12587 # Portland Group C++ compiler.
12588 lt_prog_compiler_wl_CXX='-Wl,'
12589 lt_prog_compiler_pic_CXX='-fpic'
12590 lt_prog_compiler_static_CXX='-Bstatic'
12592 cxx*)
12593 # Compaq C++
12594 # Make sure the PIC flag is empty. It appears that all Alpha
12595 # Linux and Compaq Tru64 Unix objects are PIC.
12596 lt_prog_compiler_pic_CXX=
12597 lt_prog_compiler_static_CXX='-non_shared'
12600 case `$CC -V 2>&1 | sed 5q` in
12601 *Sun\ C*)
12602 # Sun C++ 5.9
12603 lt_prog_compiler_pic_CXX='-KPIC'
12604 lt_prog_compiler_static_CXX='-Bstatic'
12605 lt_prog_compiler_wl_CXX='-Qoption ld '
12607 esac
12609 esac
12611 lynxos*)
12613 m88k*)
12615 mvs*)
12616 case $cc_basename in
12617 cxx*)
12618 lt_prog_compiler_pic_CXX='-W c,exportall'
12622 esac
12624 netbsd* | netbsdelf*-gnu)
12626 osf3* | osf4* | osf5*)
12627 case $cc_basename in
12628 KCC*)
12629 lt_prog_compiler_wl_CXX='--backend -Wl,'
12631 RCC*)
12632 # Rational C++ 2.4.1
12633 lt_prog_compiler_pic_CXX='-pic'
12635 cxx*)
12636 # Digital/Compaq C++
12637 lt_prog_compiler_wl_CXX='-Wl,'
12638 # Make sure the PIC flag is empty. It appears that all Alpha
12639 # Linux and Compaq Tru64 Unix objects are PIC.
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_static_CXX='-non_shared'
12645 esac
12647 psos*)
12649 solaris*)
12650 case $cc_basename in
12651 CC*)
12652 # Sun C++ 4.2, 5.x and Centerline C++
12653 lt_prog_compiler_pic_CXX='-KPIC'
12654 lt_prog_compiler_static_CXX='-Bstatic'
12655 lt_prog_compiler_wl_CXX='-Qoption ld '
12657 gcx*)
12658 # Green Hills C++ Compiler
12659 lt_prog_compiler_pic_CXX='-PIC'
12663 esac
12665 sunos4*)
12666 case $cc_basename in
12667 CC*)
12668 # Sun C++ 4.x
12669 lt_prog_compiler_pic_CXX='-pic'
12670 lt_prog_compiler_static_CXX='-Bstatic'
12672 lcc*)
12673 # Lucid
12674 lt_prog_compiler_pic_CXX='-pic'
12678 esac
12680 tandem*)
12681 case $cc_basename in
12682 NCC*)
12683 # NonStop-UX NCC 3.20
12684 lt_prog_compiler_pic_CXX='-KPIC'
12688 esac
12690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12691 case $cc_basename in
12692 CC*)
12693 lt_prog_compiler_wl_CXX='-Wl,'
12694 lt_prog_compiler_pic_CXX='-KPIC'
12695 lt_prog_compiler_static_CXX='-Bstatic'
12697 esac
12699 vxworks*)
12702 lt_prog_compiler_can_build_shared_CXX=no
12704 esac
12707 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12708 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12711 # Check to make sure the PIC flag actually works.
12713 if test -n "$lt_prog_compiler_pic_CXX"; then
12715 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12716 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12717 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720 lt_prog_compiler_pic_works_CXX=no
12721 ac_outfile=conftest.$ac_objext
12722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12723 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12724 # Insert the option either (1) after the last *FLAGS variable, or
12725 # (2) before a word containing "conftest.", or (3) at the end.
12726 # Note that $ac_compile itself does not contain backslashes and begins
12727 # with a dollar sign (not a hyphen), so the echo should work correctly.
12728 # The option is referenced via a variable to avoid confusing sed.
12729 lt_compile=`echo "$ac_compile" | $SED \
12730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12732 -e 's:$: $lt_compiler_flag:'`
12733 (eval echo "\"\$as_me:12733: $lt_compile\"" >&5)
12734 (eval "$lt_compile" 2>conftest.err)
12735 ac_status=$?
12736 cat conftest.err >&5
12737 echo "$as_me:12737: \$? = $ac_status" >&5
12738 if (exit $ac_status) && test -s "$ac_outfile"; then
12739 # The compiler can only warn and ignore the option if not recognized
12740 # So say no if there are warnings other than the usual output.
12741 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12744 lt_prog_compiler_pic_works_CXX=yes
12747 $rm conftest*
12750 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12751 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12753 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12754 case $lt_prog_compiler_pic_CXX in
12755 "" | " "*) ;;
12756 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12757 esac
12758 else
12759 lt_prog_compiler_pic_CXX=
12760 lt_prog_compiler_can_build_shared_CXX=no
12764 case $host_os in
12765 # For platforms which do not support PIC, -DPIC is meaningless:
12766 *djgpp*)
12767 lt_prog_compiler_pic_CXX=
12770 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12772 esac
12775 # Check to make sure the static flag actually works.
12777 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12778 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12780 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 lt_prog_compiler_static_works_CXX=no
12784 save_LDFLAGS="$LDFLAGS"
12785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12788 # The linker can only warn and ignore the option if not recognized
12789 # So say no if there are warnings
12790 if test -s conftest.err; then
12791 # Append any errors to the config.log.
12792 cat conftest.err 1>&5
12793 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12795 if diff conftest.exp conftest.er2 >/dev/null; then
12796 lt_prog_compiler_static_works_CXX=yes
12798 else
12799 lt_prog_compiler_static_works_CXX=yes
12802 $rm conftest*
12803 LDFLAGS="$save_LDFLAGS"
12806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12807 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12809 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12811 else
12812 lt_prog_compiler_static_CXX=
12816 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12818 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 lt_cv_prog_compiler_c_o_CXX=no
12822 $rm -r conftest 2>/dev/null
12823 mkdir conftest
12824 cd conftest
12825 mkdir out
12826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12828 lt_compiler_flag="-o out/conftest2.$ac_objext"
12829 # Insert the option either (1) after the last *FLAGS variable, or
12830 # (2) before a word containing "conftest.", or (3) at the end.
12831 # Note that $ac_compile itself does not contain backslashes and begins
12832 # with a dollar sign (not a hyphen), so the echo should work correctly.
12833 lt_compile=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838 (eval "$lt_compile" 2>out/conftest.err)
12839 ac_status=$?
12840 cat out/conftest.err >&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12843 then
12844 # The compiler can only warn and ignore the option if not recognized
12845 # So say no if there are warnings
12846 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12849 lt_cv_prog_compiler_c_o_CXX=yes
12852 chmod u+w . 2>&5
12853 $rm conftest*
12854 # SGI C++ compiler will create directory out/ii_files/ for
12855 # template instantiation
12856 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12857 $rm out/* && rmdir out
12858 cd ..
12859 rmdir conftest
12860 $rm conftest*
12863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12867 hard_links="nottested"
12868 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12869 # do not overwrite the value of need_locks provided by the user
12870 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12872 hard_links=yes
12873 $rm conftest*
12874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12875 touch conftest.a
12876 ln conftest.a conftest.b 2>&5 || hard_links=no
12877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12878 { echo "$as_me:$LINENO: result: $hard_links" >&5
12879 echo "${ECHO_T}$hard_links" >&6; }
12880 if test "$hard_links" = no; then
12881 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12883 need_locks=warn
12885 else
12886 need_locks=no
12889 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12892 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12893 case $host_os in
12894 aix4* | aix5*)
12895 # If we're using GNU nm, then we don't want the "-C" option.
12896 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12897 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12898 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'
12899 else
12900 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'
12903 pw32*)
12904 export_symbols_cmds_CXX="$ltdll_cmds"
12906 cygwin* | mingw*)
12907 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'
12909 linux* | k*bsd*-gnu)
12910 link_all_deplibs_CXX=no
12913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12915 esac
12917 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12918 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12919 test "$ld_shlibs_CXX" = no && can_build_shared=no
12922 # Do we need to explicitly link libc?
12924 case "x$archive_cmds_need_lc_CXX" in
12925 x|xyes)
12926 # Assume -lc should be added
12927 archive_cmds_need_lc_CXX=yes
12929 if test "$enable_shared" = yes && test "$GCC" = yes; then
12930 case $archive_cmds_CXX in
12931 *'~'*)
12932 # FIXME: we may have to deal with multi-command sequences.
12934 '$CC '*)
12935 # Test whether the compiler implicitly links with -lc since on some
12936 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12937 # to ld, don't add -lc before -lgcc.
12938 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12939 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12940 $rm conftest*
12941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } 2>conftest.err; then
12948 soname=conftest
12949 lib=conftest
12950 libobjs=conftest.$ac_objext
12951 deplibs=
12952 wl=$lt_prog_compiler_wl_CXX
12953 pic_flag=$lt_prog_compiler_pic_CXX
12954 compiler_flags=-v
12955 linker_flags=-v
12956 verstring=
12957 output_objdir=.
12958 libname=conftest
12959 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12960 allow_undefined_flag_CXX=
12961 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12962 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }
12966 then
12967 archive_cmds_need_lc_CXX=no
12968 else
12969 archive_cmds_need_lc_CXX=yes
12971 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12972 else
12973 cat conftest.err 1>&5
12975 $rm conftest*
12976 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12977 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12979 esac
12982 esac
12984 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12985 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12986 library_names_spec=
12987 libname_spec='lib$name'
12988 soname_spec=
12989 shrext_cmds=".so"
12990 postinstall_cmds=
12991 postuninstall_cmds=
12992 finish_cmds=
12993 finish_eval=
12994 shlibpath_var=
12995 shlibpath_overrides_runpath=unknown
12996 version_type=none
12997 dynamic_linker="$host_os ld.so"
12998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13000 need_lib_prefix=unknown
13001 hardcode_into_libs=no
13003 # when you set need_version to no, make sure it does not cause -set_version
13004 # flags to be left without arguments
13005 need_version=unknown
13007 case $host_os in
13008 aix3*)
13009 version_type=linux
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13011 shlibpath_var=LIBPATH
13013 # AIX 3 has no versioning support, so we append a major version to the name.
13014 soname_spec='${libname}${release}${shared_ext}$major'
13017 aix4* | aix5*)
13018 version_type=linux
13019 need_lib_prefix=no
13020 need_version=no
13021 hardcode_into_libs=yes
13022 if test "$host_cpu" = ia64; then
13023 # AIX 5 supports IA64
13024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 else
13027 # With GCC up to 2.95.x, collect2 would create an import file
13028 # for dependence libraries. The import file would start with
13029 # the line `#! .'. This would cause the generated library to
13030 # depend on `.', always an invalid library. This was fixed in
13031 # development snapshots of GCC prior to 3.0.
13032 case $host_os in
13033 aix4 | aix4.[01] | aix4.[01].*)
13034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13035 echo ' yes '
13036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13038 else
13039 can_build_shared=no
13042 esac
13043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13044 # soname into executable. Probably we can add versioning support to
13045 # collect2, so additional links can be useful in future.
13046 if test "$aix_use_runtimelinking" = yes; then
13047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13048 # instead of lib<name>.a to let people know that these are not
13049 # typical AIX shared libraries.
13050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13051 else
13052 # We preserve .a as extension for shared libraries through AIX4.2
13053 # and later when we are not doing run time linking.
13054 library_names_spec='${libname}${release}.a $libname.a'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13057 shlibpath_var=LIBPATH
13061 amigaos*)
13062 library_names_spec='$libname.ixlibrary $libname.a'
13063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13064 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'
13067 beos*)
13068 library_names_spec='${libname}${shared_ext}'
13069 dynamic_linker="$host_os ld.so"
13070 shlibpath_var=LIBRARY_PATH
13073 bsdi[45]*)
13074 version_type=linux
13075 need_version=no
13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13077 soname_spec='${libname}${release}${shared_ext}$major'
13078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13082 # the default ld.so.conf also contains /usr/contrib/lib and
13083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13084 # libtool to hard-code these into programs
13087 cygwin* | mingw* | pw32*)
13088 version_type=windows
13089 shrext_cmds=".dll"
13090 need_version=no
13091 need_lib_prefix=no
13093 case $GCC,$host_os in
13094 yes,cygwin* | yes,mingw* | yes,pw32*)
13095 library_names_spec='$libname.dll.a'
13096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13097 postinstall_cmds='base_file=`basename \${file}`~
13098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13099 dldir=$destdir/`dirname \$dlpath`~
13100 test -d \$dldir || mkdir -p \$dldir~
13101 $install_prog $dir/$dlname \$dldir/$dlname~
13102 chmod a+x \$dldir/$dlname'
13103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13104 dlpath=$dir/\$dldll~
13105 $rm \$dlpath'
13106 shlibpath_overrides_runpath=yes
13108 case $host_os in
13109 cygwin*)
13110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13114 mingw*)
13115 # MinGW DLLs use traditional 'lib' prefix
13116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13119 # It is most probably a Windows format PATH printed by
13120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13121 # path with ; separators, and with drive letters. We can handle the
13122 # drive letters (cygwin fileutils understands them), so leave them,
13123 # especially as we might pass files found there to a mingw objdump,
13124 # which wouldn't understand a cygwinified path. Ahh.
13125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13126 else
13127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13130 pw32*)
13131 # pw32 DLLs use 'pw' prefix rather than 'lib'
13132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134 esac
13138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13140 esac
13141 dynamic_linker='Win32 ld.exe'
13142 # FIXME: first we should search . and the directory the executable is in
13143 shlibpath_var=PATH
13146 darwin* | rhapsody*)
13147 dynamic_linker="$host_os dyld"
13148 version_type=darwin
13149 need_lib_prefix=no
13150 need_version=no
13151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13152 soname_spec='${libname}${release}${major}$shared_ext'
13153 shlibpath_overrides_runpath=yes
13154 shlibpath_var=DYLD_LIBRARY_PATH
13155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13160 dgux*)
13161 version_type=linux
13162 need_lib_prefix=no
13163 need_version=no
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13165 soname_spec='${libname}${release}${shared_ext}$major'
13166 shlibpath_var=LD_LIBRARY_PATH
13169 freebsd1*)
13170 dynamic_linker=no
13173 freebsd* | dragonfly*)
13174 # DragonFly does not have aout. When/if they implement a new
13175 # versioning mechanism, adjust this.
13176 if test -x /usr/bin/objformat; then
13177 objformat=`/usr/bin/objformat`
13178 else
13179 case $host_os in
13180 freebsd[123]*) objformat=aout ;;
13181 *) objformat=elf ;;
13182 esac
13184 version_type=freebsd-$objformat
13185 case $version_type in
13186 freebsd-elf*)
13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13188 need_version=no
13189 need_lib_prefix=no
13191 freebsd-*)
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13193 need_version=yes
13195 esac
13196 shlibpath_var=LD_LIBRARY_PATH
13197 case $host_os in
13198 freebsd2*)
13199 shlibpath_overrides_runpath=yes
13201 freebsd3.[01]* | freebsdelf3.[01]*)
13202 shlibpath_overrides_runpath=yes
13203 hardcode_into_libs=yes
13205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13207 shlibpath_overrides_runpath=no
13208 hardcode_into_libs=yes
13210 *) # from 4.6 on, and DragonFly
13211 shlibpath_overrides_runpath=yes
13212 hardcode_into_libs=yes
13214 esac
13217 gnu*)
13218 version_type=linux
13219 need_lib_prefix=no
13220 need_version=no
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 hardcode_into_libs=yes
13227 hpux9* | hpux10* | hpux11*)
13228 # Give a soname corresponding to the major version so that dld.sl refuses to
13229 # link against other versions.
13230 version_type=sunos
13231 need_lib_prefix=no
13232 need_version=no
13233 case $host_cpu in
13234 ia64*)
13235 shrext_cmds='.so'
13236 hardcode_into_libs=yes
13237 dynamic_linker="$host_os dld.so"
13238 shlibpath_var=LD_LIBRARY_PATH
13239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 if test "X$HPUX_IA64_MODE" = X32; then
13243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13244 else
13245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13249 hppa*64*)
13250 shrext_cmds='.sl'
13251 hardcode_into_libs=yes
13252 dynamic_linker="$host_os dld.sl"
13253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13261 shrext_cmds='.sl'
13262 dynamic_linker="$host_os dld.sl"
13263 shlibpath_var=SHLIB_PATH
13264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266 soname_spec='${libname}${release}${shared_ext}$major'
13268 esac
13269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13270 postinstall_cmds='chmod 555 $lib'
13273 interix[3-9]*)
13274 version_type=linux
13275 need_lib_prefix=no
13276 need_version=no
13277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13278 soname_spec='${libname}${release}${shared_ext}$major'
13279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13280 shlibpath_var=LD_LIBRARY_PATH
13281 shlibpath_overrides_runpath=no
13282 hardcode_into_libs=yes
13285 irix5* | irix6* | nonstopux*)
13286 case $host_os in
13287 nonstopux*) version_type=nonstopux ;;
13289 if test "$lt_cv_prog_gnu_ld" = yes; then
13290 version_type=linux
13291 else
13292 version_type=irix
13293 fi ;;
13294 esac
13295 need_lib_prefix=no
13296 need_version=no
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13299 case $host_os in
13300 irix5* | nonstopux*)
13301 libsuff= shlibsuff=
13304 case $LD in # libtool.m4 will add one of these switches to LD
13305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13306 libsuff= shlibsuff= libmagic=32-bit;;
13307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13308 libsuff=32 shlibsuff=N32 libmagic=N32;;
13309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13311 *) libsuff= shlibsuff= libmagic=never-match;;
13312 esac
13314 esac
13315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13316 shlibpath_overrides_runpath=no
13317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13319 hardcode_into_libs=yes
13322 # No shared lib support for Linux oldld, aout, or coff.
13323 linux*oldld* | linux*aout* | linux*coff*)
13324 dynamic_linker=no
13327 # This must be Linux ELF.
13328 linux* | k*bsd*-gnu)
13329 version_type=linux
13330 need_lib_prefix=no
13331 need_version=no
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13335 shlibpath_var=LD_LIBRARY_PATH
13336 shlibpath_overrides_runpath=no
13337 # This implies no fast_install, which is unacceptable.
13338 # Some rework will be needed to allow for fast_install
13339 # before this can be enabled.
13340 hardcode_into_libs=yes
13342 # Append ld.so.conf contents to the search path
13343 if test -f /etc/ld.so.conf; then
13344 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' ' '`
13345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13348 # We used to test for /lib/ld.so.1 and disable shared libraries on
13349 # powerpc, because MkLinux only supported shared libraries with the
13350 # GNU dynamic linker. Since this was broken with cross compilers,
13351 # most powerpc-linux boxes support dynamic linking these days and
13352 # people can always --disable-shared, the test was removed, and we
13353 # assume the GNU/Linux dynamic linker is in use.
13354 dynamic_linker='GNU/Linux ld.so'
13357 netbsdelf*-gnu)
13358 version_type=linux
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=no
13365 hardcode_into_libs=yes
13366 dynamic_linker='NetBSD ld.elf_so'
13369 netbsd*)
13370 version_type=sunos
13371 need_lib_prefix=no
13372 need_version=no
13373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13376 dynamic_linker='NetBSD (a.out) ld.so'
13377 else
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 dynamic_linker='NetBSD ld.elf_so'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=yes
13384 hardcode_into_libs=yes
13387 newsos6)
13388 version_type=linux
13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=yes
13394 nto-qnx*)
13395 version_type=linux
13396 need_lib_prefix=no
13397 need_version=no
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13399 soname_spec='${libname}${release}${shared_ext}$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13404 openbsd*)
13405 version_type=sunos
13406 sys_lib_dlsearch_path_spec="/usr/lib"
13407 need_lib_prefix=no
13408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13409 case $host_os in
13410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13411 *) need_version=no ;;
13412 esac
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13417 case $host_os in
13418 openbsd2.[89] | openbsd2.[89].*)
13419 shlibpath_overrides_runpath=no
13422 shlibpath_overrides_runpath=yes
13424 esac
13425 else
13426 shlibpath_overrides_runpath=yes
13430 os2*)
13431 libname_spec='$name'
13432 shrext_cmds=".dll"
13433 need_lib_prefix=no
13434 library_names_spec='$libname${shared_ext} $libname.a'
13435 dynamic_linker='OS/2 ld.exe'
13436 shlibpath_var=LIBPATH
13439 osf3* | osf4* | osf5*)
13440 version_type=osf
13441 need_lib_prefix=no
13442 need_version=no
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13450 rdos*)
13451 dynamic_linker=no
13454 solaris*)
13455 version_type=linux
13456 need_lib_prefix=no
13457 need_version=no
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=yes
13462 hardcode_into_libs=yes
13463 # ldd complains unless libraries are executable
13464 postinstall_cmds='chmod +x $lib'
13467 sunos4*)
13468 version_type=sunos
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 shlibpath_overrides_runpath=yes
13473 if test "$with_gnu_ld" = yes; then
13474 need_lib_prefix=no
13476 need_version=yes
13479 sysv4 | sysv4.3*)
13480 version_type=linux
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 shlibpath_var=LD_LIBRARY_PATH
13484 case $host_vendor in
13485 sni)
13486 shlibpath_overrides_runpath=no
13487 need_lib_prefix=no
13488 export_dynamic_flag_spec='${wl}-Blargedynsym'
13489 runpath_var=LD_RUN_PATH
13491 siemens)
13492 need_lib_prefix=no
13494 motorola)
13495 need_lib_prefix=no
13496 need_version=no
13497 shlibpath_overrides_runpath=no
13498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13500 esac
13503 sysv4*MP*)
13504 if test -d /usr/nec ;then
13505 version_type=linux
13506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13507 soname_spec='$libname${shared_ext}.$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13513 version_type=freebsd-elf
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 hardcode_into_libs=yes
13520 if test "$with_gnu_ld" = yes; then
13521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13522 shlibpath_overrides_runpath=no
13523 else
13524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13525 shlibpath_overrides_runpath=yes
13526 case $host_os in
13527 sco3.2v5*)
13528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13530 esac
13532 sys_lib_dlsearch_path_spec='/usr/lib'
13535 uts4*)
13536 version_type=linux
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 shlibpath_var=LD_LIBRARY_PATH
13543 dynamic_linker=no
13545 esac
13546 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13547 echo "${ECHO_T}$dynamic_linker" >&6; }
13548 test "$dynamic_linker" = no && can_build_shared=no
13550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13551 if test "$GCC" = yes; then
13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13555 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13556 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13557 hardcode_action_CXX=
13558 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13559 test -n "$runpath_var_CXX" || \
13560 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13562 # We can hardcode non-existant directories.
13563 if test "$hardcode_direct_CXX" != no &&
13564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13565 # have to relink, otherwise we might link with an installed library
13566 # when we should be linking with a yet-to-be-installed one
13567 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13568 test "$hardcode_minus_L_CXX" != no; then
13569 # Linking always hardcodes the temporary library directory.
13570 hardcode_action_CXX=relink
13571 else
13572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13573 hardcode_action_CXX=immediate
13575 else
13576 # We cannot hardcode anything, or else we can only hardcode existing
13577 # directories.
13578 hardcode_action_CXX=unsupported
13580 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13581 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13583 if test "$hardcode_action_CXX" = relink; then
13584 # Fast installation is not supported
13585 enable_fast_install=no
13586 elif test "$shlibpath_overrides_runpath" = yes ||
13587 test "$enable_shared" = no; then
13588 # Fast installation is not necessary
13589 enable_fast_install=needless
13593 # The else clause should only fire when bootstrapping the
13594 # libtool distribution, otherwise you forgot to ship ltmain.sh
13595 # with your package, and you will get complaints that there are
13596 # no rules to generate ltmain.sh.
13597 if test -f "$ltmain"; then
13598 # See if we are running on zsh, and set the options which allow our commands through
13599 # without removal of \ escapes.
13600 if test -n "${ZSH_VERSION+set}" ; then
13601 setopt NO_GLOB_SUBST
13603 # Now quote all the things that may contain metacharacters while being
13604 # careful not to overquote the AC_SUBSTed values. We take copies of the
13605 # variables and quote the copies for generation of the libtool script.
13606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13607 SED SHELL STRIP \
13608 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13609 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13610 deplibs_check_method reload_flag reload_cmds need_locks \
13611 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13612 lt_cv_sys_global_symbol_to_c_name_address \
13613 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13614 old_postinstall_cmds old_postuninstall_cmds \
13615 compiler_CXX \
13616 CC_CXX \
13617 LD_CXX \
13618 lt_prog_compiler_wl_CXX \
13619 lt_prog_compiler_pic_CXX \
13620 lt_prog_compiler_static_CXX \
13621 lt_prog_compiler_no_builtin_flag_CXX \
13622 export_dynamic_flag_spec_CXX \
13623 thread_safe_flag_spec_CXX \
13624 whole_archive_flag_spec_CXX \
13625 enable_shared_with_static_runtimes_CXX \
13626 old_archive_cmds_CXX \
13627 old_archive_from_new_cmds_CXX \
13628 predep_objects_CXX \
13629 postdep_objects_CXX \
13630 predeps_CXX \
13631 postdeps_CXX \
13632 compiler_lib_search_path_CXX \
13633 archive_cmds_CXX \
13634 archive_expsym_cmds_CXX \
13635 postinstall_cmds_CXX \
13636 postuninstall_cmds_CXX \
13637 old_archive_from_expsyms_cmds_CXX \
13638 allow_undefined_flag_CXX \
13639 no_undefined_flag_CXX \
13640 export_symbols_cmds_CXX \
13641 hardcode_libdir_flag_spec_CXX \
13642 hardcode_libdir_flag_spec_ld_CXX \
13643 hardcode_libdir_separator_CXX \
13644 hardcode_automatic_CXX \
13645 module_cmds_CXX \
13646 module_expsym_cmds_CXX \
13647 lt_cv_prog_compiler_c_o_CXX \
13648 fix_srcfile_path_CXX \
13649 exclude_expsyms_CXX \
13650 include_expsyms_CXX; do
13652 case $var in
13653 old_archive_cmds_CXX | \
13654 old_archive_from_new_cmds_CXX | \
13655 archive_cmds_CXX | \
13656 archive_expsym_cmds_CXX | \
13657 module_cmds_CXX | \
13658 module_expsym_cmds_CXX | \
13659 old_archive_from_expsyms_cmds_CXX | \
13660 export_symbols_cmds_CXX | \
13661 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13662 postinstall_cmds | postuninstall_cmds | \
13663 old_postinstall_cmds | old_postuninstall_cmds | \
13664 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13665 # Double-quote double-evaled strings.
13666 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13671 esac
13672 done
13674 case $lt_echo in
13675 *'\$0 --fallback-echo"')
13676 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13678 esac
13680 cfgfile="$ofile"
13682 cat <<__EOF__ >> "$cfgfile"
13683 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13687 # Shell to use when invoking shell scripts.
13688 SHELL=$lt_SHELL
13690 # Whether or not to build shared libraries.
13691 build_libtool_libs=$enable_shared
13693 # Whether or not to build static libraries.
13694 build_old_libs=$enable_static
13696 # Whether or not to add -lc for building shared libraries.
13697 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13699 # Whether or not to disallow shared libs when runtime libs are static
13700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13702 # Whether or not to optimize for fast installation.
13703 fast_install=$enable_fast_install
13705 # The host system.
13706 host_alias=$host_alias
13707 host=$host
13708 host_os=$host_os
13710 # The build system.
13711 build_alias=$build_alias
13712 build=$build
13713 build_os=$build_os
13715 # An echo program that does not interpret backslashes.
13716 echo=$lt_echo
13718 # The archiver.
13719 AR=$lt_AR
13720 AR_FLAGS=$lt_AR_FLAGS
13722 # A C compiler.
13723 LTCC=$lt_LTCC
13725 # LTCC compiler flags.
13726 LTCFLAGS=$lt_LTCFLAGS
13728 # A language-specific compiler.
13729 CC=$lt_compiler_CXX
13731 # Is the compiler the GNU C compiler?
13732 with_gcc=$GCC_CXX
13734 # An ERE matcher.
13735 EGREP=$lt_EGREP
13737 # The linker used to build libraries.
13738 LD=$lt_LD_CXX
13740 # Whether we need hard or soft links.
13741 LN_S=$lt_LN_S
13743 # A BSD-compatible nm program.
13744 NM=$lt_NM
13746 # A symbol stripping program
13747 STRIP=$lt_STRIP
13749 # Used to examine libraries when file_magic_cmd begins "file"
13750 MAGIC_CMD=$MAGIC_CMD
13752 # Used on cygwin: DLL creation program.
13753 DLLTOOL="$DLLTOOL"
13755 # Used on cygwin: object dumper.
13756 OBJDUMP="$OBJDUMP"
13758 # Used on cygwin: assembler.
13759 AS="$AS"
13761 # The name of the directory that contains temporary libtool files.
13762 objdir=$objdir
13764 # How to create reloadable object files.
13765 reload_flag=$lt_reload_flag
13766 reload_cmds=$lt_reload_cmds
13768 # How to pass a linker flag through the compiler.
13769 wl=$lt_lt_prog_compiler_wl_CXX
13771 # Object file suffix (normally "o").
13772 objext="$ac_objext"
13774 # Old archive suffix (normally "a").
13775 libext="$libext"
13777 # Shared library suffix (normally ".so").
13778 shrext_cmds='$shrext_cmds'
13780 # Executable file suffix (normally "").
13781 exeext="$exeext"
13783 # Additional compiler flags for building library objects.
13784 pic_flag=$lt_lt_prog_compiler_pic_CXX
13785 pic_mode=$pic_mode
13787 # What is the maximum length of a command?
13788 max_cmd_len=$lt_cv_sys_max_cmd_len
13790 # Does compiler simultaneously support -c and -o options?
13791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13793 # Must we lock files when doing compilation?
13794 need_locks=$lt_need_locks
13796 # Do we need the lib prefix for modules?
13797 need_lib_prefix=$need_lib_prefix
13799 # Do we need a version for libraries?
13800 need_version=$need_version
13802 # Whether dlopen is supported.
13803 dlopen_support=$enable_dlopen
13805 # Whether dlopen of programs is supported.
13806 dlopen_self=$enable_dlopen_self
13808 # Whether dlopen of statically linked programs is supported.
13809 dlopen_self_static=$enable_dlopen_self_static
13811 # Compiler flag to prevent dynamic linking.
13812 link_static_flag=$lt_lt_prog_compiler_static_CXX
13814 # Compiler flag to turn off builtin functions.
13815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13817 # Compiler flag to allow reflexive dlopens.
13818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13820 # Compiler flag to generate shared objects directly from archives.
13821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13823 # Compiler flag to generate thread-safe objects.
13824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13826 # Library versioning type.
13827 version_type=$version_type
13829 # Format of library name prefix.
13830 libname_spec=$lt_libname_spec
13832 # List of archive names. First name is the real one, the rest are links.
13833 # The last name is the one that the linker finds with -lNAME.
13834 library_names_spec=$lt_library_names_spec
13836 # The coded name of the library, if different from the real name.
13837 soname_spec=$lt_soname_spec
13839 # Commands used to build and install an old-style archive.
13840 RANLIB=$lt_RANLIB
13841 old_archive_cmds=$lt_old_archive_cmds_CXX
13842 old_postinstall_cmds=$lt_old_postinstall_cmds
13843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13845 # Create an old-style archive from a shared archive.
13846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13848 # Create a temporary old-style archive to link instead of a shared archive.
13849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13851 # Commands used to build and install a shared archive.
13852 archive_cmds=$lt_archive_cmds_CXX
13853 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13854 postinstall_cmds=$lt_postinstall_cmds
13855 postuninstall_cmds=$lt_postuninstall_cmds
13857 # Commands used to build a loadable module (assumed same as above if empty)
13858 module_cmds=$lt_module_cmds_CXX
13859 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13861 # Commands to strip libraries.
13862 old_striplib=$lt_old_striplib
13863 striplib=$lt_striplib
13865 # Dependencies to place before the objects being linked to create a
13866 # shared library.
13867 predep_objects=$lt_predep_objects_CXX
13869 # Dependencies to place after the objects being linked to create a
13870 # shared library.
13871 postdep_objects=$lt_postdep_objects_CXX
13873 # Dependencies to place before the objects being linked to create a
13874 # shared library.
13875 predeps=$lt_predeps_CXX
13877 # Dependencies to place after the objects being linked to create a
13878 # shared library.
13879 postdeps=$lt_postdeps_CXX
13881 # The library search path used internally by the compiler when linking
13882 # a shared library.
13883 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13885 # Method to check whether dependent libraries are shared objects.
13886 deplibs_check_method=$lt_deplibs_check_method
13888 # Command to use when deplibs_check_method == file_magic.
13889 file_magic_cmd=$lt_file_magic_cmd
13891 # Flag that allows shared libraries with undefined symbols to be built.
13892 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13894 # Flag that forces no undefined symbols.
13895 no_undefined_flag=$lt_no_undefined_flag_CXX
13897 # Commands used to finish a libtool library installation in a directory.
13898 finish_cmds=$lt_finish_cmds
13900 # Same as above, but a single script fragment to be evaled but not shown.
13901 finish_eval=$lt_finish_eval
13903 # Take the output of nm and produce a listing of raw symbols and C names.
13904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13906 # Transform the output of nm in a proper C declaration
13907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13909 # Transform the output of nm in a C name address pair
13910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13912 # This is the shared library runtime path variable.
13913 runpath_var=$runpath_var
13915 # This is the shared library path variable.
13916 shlibpath_var=$shlibpath_var
13918 # Is shlibpath searched before the hard-coded library search path?
13919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13921 # How to hardcode a shared library path into an executable.
13922 hardcode_action=$hardcode_action_CXX
13924 # Whether we should hardcode library paths into libraries.
13925 hardcode_into_libs=$hardcode_into_libs
13927 # Flag to hardcode \$libdir into a binary during linking.
13928 # This must work even if \$libdir does not exist.
13929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13931 # If ld is used when linking, flag to hardcode \$libdir into
13932 # a binary during linking. This must work even if \$libdir does
13933 # not exist.
13934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13936 # Whether we need a single -rpath flag with a separated argument.
13937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13940 # resulting binary.
13941 hardcode_direct=$hardcode_direct_CXX
13943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13944 # resulting binary.
13945 hardcode_minus_L=$hardcode_minus_L_CXX
13947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13948 # the resulting binary.
13949 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13951 # Set to yes if building a shared library automatically hardcodes DIR into the library
13952 # and all subsequent libraries and executables linked against it.
13953 hardcode_automatic=$hardcode_automatic_CXX
13955 # Variables whose values should be saved in libtool wrapper scripts and
13956 # restored at relink time.
13957 variables_saved_for_relink="$variables_saved_for_relink"
13959 # Whether libtool must link a program against all its dependency libraries.
13960 link_all_deplibs=$link_all_deplibs_CXX
13962 # Compile-time system search path for libraries
13963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13965 # Run-time system search path for libraries
13966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13968 # Fix the shell variable \$srcfile for the compiler.
13969 fix_srcfile_path=$lt_fix_srcfile_path
13971 # Set to yes if exported symbols are required.
13972 always_export_symbols=$always_export_symbols_CXX
13974 # The commands to list exported symbols.
13975 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13977 # The commands to extract the exported symbol list from a shared archive.
13978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13980 # Symbols that should not be listed in the preloaded symbols.
13981 exclude_expsyms=$lt_exclude_expsyms_CXX
13983 # Symbols that must always be exported.
13984 include_expsyms=$lt_include_expsyms_CXX
13986 # ### END LIBTOOL TAG CONFIG: $tagname
13988 __EOF__
13991 else
13992 # If there is no Makefile yet, we rely on a make rule to execute
13993 # `config.status --recheck' to rerun these tests and create the
13994 # libtool script then.
13995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13996 if test -f "$ltmain_in"; then
13997 test -f Makefile && make "$ltmain"
14002 ac_ext=c
14003 ac_cpp='$CPP $CPPFLAGS'
14004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14008 CC=$lt_save_CC
14009 LDCXX=$LD
14010 LD=$lt_save_LD
14011 GCC=$lt_save_GCC
14012 with_gnu_ldcxx=$with_gnu_ld
14013 with_gnu_ld=$lt_save_with_gnu_ld
14014 lt_cv_path_LDCXX=$lt_cv_path_LD
14015 lt_cv_path_LD=$lt_save_path_LD
14016 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14017 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14019 else
14020 tagname=""
14024 F77)
14025 if test -n "$F77" && test "X$F77" != "Xno"; then
14027 ac_ext=f
14028 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14029 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14030 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14033 archive_cmds_need_lc_F77=no
14034 allow_undefined_flag_F77=
14035 always_export_symbols_F77=no
14036 archive_expsym_cmds_F77=
14037 export_dynamic_flag_spec_F77=
14038 hardcode_direct_F77=no
14039 hardcode_libdir_flag_spec_F77=
14040 hardcode_libdir_flag_spec_ld_F77=
14041 hardcode_libdir_separator_F77=
14042 hardcode_minus_L_F77=no
14043 hardcode_automatic_F77=no
14044 module_cmds_F77=
14045 module_expsym_cmds_F77=
14046 link_all_deplibs_F77=unknown
14047 old_archive_cmds_F77=$old_archive_cmds
14048 no_undefined_flag_F77=
14049 whole_archive_flag_spec_F77=
14050 enable_shared_with_static_runtimes_F77=no
14052 # Source file extension for f77 test sources.
14053 ac_ext=f
14055 # Object file extension for compiled f77 test sources.
14056 objext=o
14057 objext_F77=$objext
14059 # Code to be used in simple compile tests
14060 lt_simple_compile_test_code="\
14061 subroutine t
14062 return
14066 # Code to be used in simple link tests
14067 lt_simple_link_test_code="\
14068 program t
14072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14074 # If no C compiler was specified, use CC.
14075 LTCC=${LTCC-"$CC"}
14077 # If no C compiler flags were specified, use CFLAGS.
14078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14080 # Allow CC to be a program name with arguments.
14081 compiler=$CC
14084 # save warnings/boilerplate of simple test code
14085 ac_outfile=conftest.$ac_objext
14086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088 _lt_compiler_boilerplate=`cat conftest.err`
14089 $rm conftest*
14091 ac_outfile=conftest.$ac_objext
14092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14094 _lt_linker_boilerplate=`cat conftest.err`
14095 $rm conftest*
14098 # Allow CC to be a program name with arguments.
14099 lt_save_CC="$CC"
14100 CC=${F77-"f77"}
14101 compiler=$CC
14102 compiler_F77=$CC
14103 for cc_temp in $compiler""; do
14104 case $cc_temp in
14105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14107 \-*) ;;
14108 *) break;;
14109 esac
14110 done
14111 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14114 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14115 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14116 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14117 echo "${ECHO_T}$can_build_shared" >&6; }
14119 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14120 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14121 test "$can_build_shared" = "no" && enable_shared=no
14123 # On AIX, shared libraries and static libraries use the same namespace, and
14124 # are all built from PIC.
14125 case $host_os in
14126 aix3*)
14127 test "$enable_shared" = yes && enable_static=no
14128 if test -n "$RANLIB"; then
14129 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14130 postinstall_cmds='$RANLIB $lib'
14133 aix4* | aix5*)
14134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14135 test "$enable_shared" = yes && enable_static=no
14138 esac
14139 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14140 echo "${ECHO_T}$enable_shared" >&6; }
14142 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14143 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14144 # Make sure either enable_shared or enable_static is yes.
14145 test "$enable_shared" = yes || enable_static=yes
14146 { echo "$as_me:$LINENO: result: $enable_static" >&5
14147 echo "${ECHO_T}$enable_static" >&6; }
14149 GCC_F77="$G77"
14150 LD_F77="$LD"
14152 lt_prog_compiler_wl_F77=
14153 lt_prog_compiler_pic_F77=
14154 lt_prog_compiler_static_F77=
14156 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14159 if test "$GCC" = yes; then
14160 lt_prog_compiler_wl_F77='-Wl,'
14161 lt_prog_compiler_static_F77='-static'
14163 case $host_os in
14164 aix*)
14165 # All AIX code is PIC.
14166 if test "$host_cpu" = ia64; then
14167 # AIX 5 now supports IA64 processor
14168 lt_prog_compiler_static_F77='-Bstatic'
14172 amigaos*)
14173 # FIXME: we need at least 68020 code to build shared libraries, but
14174 # adding the `-m68020' flag to GCC prevents building anything better,
14175 # like `-m68040'.
14176 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14179 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14180 # PIC is the default for these OSes.
14183 mingw* | cygwin* | pw32* | os2*)
14184 # This hack is so that the source file can tell whether it is being
14185 # built for inclusion in a dll (and should export symbols for example).
14186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14187 # (--disable-auto-import) libraries
14188 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14191 darwin* | rhapsody*)
14192 # PIC is the default on this platform
14193 # Common symbols not allowed in MH_DYLIB files
14194 lt_prog_compiler_pic_F77='-fno-common'
14197 interix[3-9]*)
14198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14199 # Instead, we relocate shared libraries at runtime.
14202 msdosdjgpp*)
14203 # Just because we use GCC doesn't mean we suddenly get shared libraries
14204 # on systems that don't support them.
14205 lt_prog_compiler_can_build_shared_F77=no
14206 enable_shared=no
14209 sysv4*MP*)
14210 if test -d /usr/nec; then
14211 lt_prog_compiler_pic_F77=-Kconform_pic
14215 hpux*)
14216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14217 # not for PA HP-UX.
14218 case $host_cpu in
14219 hppa*64*|ia64*)
14220 # +Z the default
14223 lt_prog_compiler_pic_F77='-fPIC'
14225 esac
14229 lt_prog_compiler_pic_F77='-fPIC'
14231 esac
14232 else
14233 # PORTME Check for flag to pass linker flags through the system compiler.
14234 case $host_os in
14235 aix*)
14236 lt_prog_compiler_wl_F77='-Wl,'
14237 if test "$host_cpu" = ia64; then
14238 # AIX 5 now supports IA64 processor
14239 lt_prog_compiler_static_F77='-Bstatic'
14240 else
14241 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14244 darwin*)
14245 # PIC is the default on this platform
14246 # Common symbols not allowed in MH_DYLIB files
14247 case $cc_basename in
14248 xlc*)
14249 lt_prog_compiler_pic_F77='-qnocommon'
14250 lt_prog_compiler_wl_F77='-Wl,'
14252 esac
14255 mingw* | cygwin* | pw32* | os2*)
14256 # This hack is so that the source file can tell whether it is being
14257 # built for inclusion in a dll (and should export symbols for example).
14258 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14261 hpux9* | hpux10* | hpux11*)
14262 lt_prog_compiler_wl_F77='-Wl,'
14263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14264 # not for PA HP-UX.
14265 case $host_cpu in
14266 hppa*64*|ia64*)
14267 # +Z the default
14270 lt_prog_compiler_pic_F77='+Z'
14272 esac
14273 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14274 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14277 irix5* | irix6* | nonstopux*)
14278 lt_prog_compiler_wl_F77='-Wl,'
14279 # PIC (with -KPIC) is the default.
14280 lt_prog_compiler_static_F77='-non_shared'
14283 newsos6)
14284 lt_prog_compiler_pic_F77='-KPIC'
14285 lt_prog_compiler_static_F77='-Bstatic'
14288 linux* | k*bsd*-gnu)
14289 case $cc_basename in
14290 icc* | ecc*)
14291 lt_prog_compiler_wl_F77='-Wl,'
14292 lt_prog_compiler_pic_F77='-KPIC'
14293 lt_prog_compiler_static_F77='-static'
14295 pgcc* | pgf77* | pgf90* | pgf95*)
14296 # Portland Group compilers (*not* the Pentium gcc compiler,
14297 # which looks to be a dead project)
14298 lt_prog_compiler_wl_F77='-Wl,'
14299 lt_prog_compiler_pic_F77='-fpic'
14300 lt_prog_compiler_static_F77='-Bstatic'
14302 ccc*)
14303 lt_prog_compiler_wl_F77='-Wl,'
14304 # All Alpha code is PIC.
14305 lt_prog_compiler_static_F77='-non_shared'
14308 case `$CC -V 2>&1 | sed 5q` in
14309 *Sun\ C*)
14310 # Sun C 5.9
14311 lt_prog_compiler_pic_F77='-KPIC'
14312 lt_prog_compiler_static_F77='-Bstatic'
14313 lt_prog_compiler_wl_F77='-Wl,'
14315 *Sun\ F*)
14316 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14317 lt_prog_compiler_pic_F77='-KPIC'
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 lt_prog_compiler_wl_F77=''
14321 esac
14323 esac
14326 osf3* | osf4* | osf5*)
14327 lt_prog_compiler_wl_F77='-Wl,'
14328 # All OSF/1 code is PIC.
14329 lt_prog_compiler_static_F77='-non_shared'
14332 rdos*)
14333 lt_prog_compiler_static_F77='-non_shared'
14336 solaris*)
14337 lt_prog_compiler_pic_F77='-KPIC'
14338 lt_prog_compiler_static_F77='-Bstatic'
14339 case $cc_basename in
14340 f77* | f90* | f95*)
14341 lt_prog_compiler_wl_F77='-Qoption ld ';;
14343 lt_prog_compiler_wl_F77='-Wl,';;
14344 esac
14347 sunos4*)
14348 lt_prog_compiler_wl_F77='-Qoption ld '
14349 lt_prog_compiler_pic_F77='-PIC'
14350 lt_prog_compiler_static_F77='-Bstatic'
14353 sysv4 | sysv4.2uw2* | sysv4.3*)
14354 lt_prog_compiler_wl_F77='-Wl,'
14355 lt_prog_compiler_pic_F77='-KPIC'
14356 lt_prog_compiler_static_F77='-Bstatic'
14359 sysv4*MP*)
14360 if test -d /usr/nec ;then
14361 lt_prog_compiler_pic_F77='-Kconform_pic'
14362 lt_prog_compiler_static_F77='-Bstatic'
14366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14367 lt_prog_compiler_wl_F77='-Wl,'
14368 lt_prog_compiler_pic_F77='-KPIC'
14369 lt_prog_compiler_static_F77='-Bstatic'
14372 unicos*)
14373 lt_prog_compiler_wl_F77='-Wl,'
14374 lt_prog_compiler_can_build_shared_F77=no
14377 uts4*)
14378 lt_prog_compiler_pic_F77='-pic'
14379 lt_prog_compiler_static_F77='-Bstatic'
14383 lt_prog_compiler_can_build_shared_F77=no
14385 esac
14388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14389 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14392 # Check to make sure the PIC flag actually works.
14394 if test -n "$lt_prog_compiler_pic_F77"; then
14396 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14397 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14398 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 lt_prog_compiler_pic_works_F77=no
14402 ac_outfile=conftest.$ac_objext
14403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 # The option is referenced via a variable to avoid confusing sed.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>conftest.err)
14416 ac_status=$?
14417 cat conftest.err >&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s "$ac_outfile"; then
14420 # The compiler can only warn and ignore the option if not recognized
14421 # So say no if there are warnings other than the usual output.
14422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14425 lt_prog_compiler_pic_works_F77=yes
14428 $rm conftest*
14431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14432 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14434 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14435 case $lt_prog_compiler_pic_F77 in
14436 "" | " "*) ;;
14437 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14438 esac
14439 else
14440 lt_prog_compiler_pic_F77=
14441 lt_prog_compiler_can_build_shared_F77=no
14445 case $host_os in
14446 # For platforms which do not support PIC, -DPIC is meaningless:
14447 *djgpp*)
14448 lt_prog_compiler_pic_F77=
14451 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14453 esac
14456 # Check to make sure the static flag actually works.
14458 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14459 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14460 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14461 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 lt_prog_compiler_static_works_F77=no
14465 save_LDFLAGS="$LDFLAGS"
14466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14469 # The linker can only warn and ignore the option if not recognized
14470 # So say no if there are warnings
14471 if test -s conftest.err; then
14472 # Append any errors to the config.log.
14473 cat conftest.err 1>&5
14474 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476 if diff conftest.exp conftest.er2 >/dev/null; then
14477 lt_prog_compiler_static_works_F77=yes
14479 else
14480 lt_prog_compiler_static_works_F77=yes
14483 $rm conftest*
14484 LDFLAGS="$save_LDFLAGS"
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14490 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14492 else
14493 lt_prog_compiler_static_F77=
14497 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14498 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14499 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 lt_cv_prog_compiler_c_o_F77=no
14503 $rm -r conftest 2>/dev/null
14504 mkdir conftest
14505 cd conftest
14506 mkdir out
14507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14509 lt_compiler_flag="-o out/conftest2.$ac_objext"
14510 # Insert the option either (1) after the last *FLAGS variable, or
14511 # (2) before a word containing "conftest.", or (3) at the end.
14512 # Note that $ac_compile itself does not contain backslashes and begins
14513 # with a dollar sign (not a hyphen), so the echo should work correctly.
14514 lt_compile=`echo "$ac_compile" | $SED \
14515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517 -e 's:$: $lt_compiler_flag:'`
14518 (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
14519 (eval "$lt_compile" 2>out/conftest.err)
14520 ac_status=$?
14521 cat out/conftest.err >&5
14522 echo "$as_me:14522: \$? = $ac_status" >&5
14523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14524 then
14525 # The compiler can only warn and ignore the option if not recognized
14526 # So say no if there are warnings
14527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14530 lt_cv_prog_compiler_c_o_F77=yes
14533 chmod u+w . 2>&5
14534 $rm conftest*
14535 # SGI C++ compiler will create directory out/ii_files/ for
14536 # template instantiation
14537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14538 $rm out/* && rmdir out
14539 cd ..
14540 rmdir conftest
14541 $rm conftest*
14544 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14545 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14548 hard_links="nottested"
14549 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14550 # do not overwrite the value of need_locks provided by the user
14551 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14552 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14553 hard_links=yes
14554 $rm conftest*
14555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556 touch conftest.a
14557 ln conftest.a conftest.b 2>&5 || hard_links=no
14558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559 { echo "$as_me:$LINENO: result: $hard_links" >&5
14560 echo "${ECHO_T}$hard_links" >&6; }
14561 if test "$hard_links" = no; then
14562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14563 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14564 need_locks=warn
14566 else
14567 need_locks=no
14570 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14571 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14573 runpath_var=
14574 allow_undefined_flag_F77=
14575 enable_shared_with_static_runtimes_F77=no
14576 archive_cmds_F77=
14577 archive_expsym_cmds_F77=
14578 old_archive_From_new_cmds_F77=
14579 old_archive_from_expsyms_cmds_F77=
14580 export_dynamic_flag_spec_F77=
14581 whole_archive_flag_spec_F77=
14582 thread_safe_flag_spec_F77=
14583 hardcode_libdir_flag_spec_F77=
14584 hardcode_libdir_flag_spec_ld_F77=
14585 hardcode_libdir_separator_F77=
14586 hardcode_direct_F77=no
14587 hardcode_minus_L_F77=no
14588 hardcode_shlibpath_var_F77=unsupported
14589 link_all_deplibs_F77=unknown
14590 hardcode_automatic_F77=no
14591 module_cmds_F77=
14592 module_expsym_cmds_F77=
14593 always_export_symbols_F77=no
14594 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595 # include_expsyms should be a list of space-separated symbols to be *always*
14596 # included in the symbol list
14597 include_expsyms_F77=
14598 # exclude_expsyms can be an extended regexp of symbols to exclude
14599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14601 # as well as any symbol that contains `d'.
14602 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14604 # platforms (ab)use it in PIC code, but their linkers get confused if
14605 # the symbol is explicitly referenced. Since portable code cannot
14606 # rely on this symbol name, it's probably fine to never include it in
14607 # preloaded symbol tables.
14608 extract_expsyms_cmds=
14609 # Just being paranoid about ensuring that cc_basename is set.
14610 for cc_temp in $compiler""; do
14611 case $cc_temp in
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614 \-*) ;;
14615 *) break;;
14616 esac
14617 done
14618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14620 case $host_os in
14621 cygwin* | mingw* | pw32*)
14622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623 # When not using gcc, we currently assume that we are using
14624 # Microsoft Visual C++.
14625 if test "$GCC" != yes; then
14626 with_gnu_ld=no
14629 interix*)
14630 # we just hope/assume this is gcc and not c89 (= MSVC++)
14631 with_gnu_ld=yes
14633 openbsd*)
14634 with_gnu_ld=no
14636 esac
14638 ld_shlibs_F77=yes
14639 if test "$with_gnu_ld" = yes; then
14640 # If archive_cmds runs LD, not CC, wlarc should be empty
14641 wlarc='${wl}'
14643 # Set some defaults for GNU ld with shared library support. These
14644 # are reset later if shared libraries are not supported. Putting them
14645 # here allows them to be overridden if necessary.
14646 runpath_var=LD_RUN_PATH
14647 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14648 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14649 # ancient GNU ld didn't support --whole-archive et. al.
14650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14652 else
14653 whole_archive_flag_spec_F77=
14655 supports_anon_versioning=no
14656 case `$LD -v 2>/dev/null` in
14657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660 *\ 2.11.*) ;; # other 2.11 versions
14661 *) supports_anon_versioning=yes ;;
14662 esac
14664 # See if GNU ld supports shared libraries.
14665 case $host_os in
14666 aix3* | aix4* | aix5*)
14667 # On AIX/PPC, the GNU linker is very broken
14668 if test "$host_cpu" != ia64; then
14669 ld_shlibs_F77=no
14670 cat <<EOF 1>&2
14672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673 *** to be unable to reliably create shared libraries on AIX.
14674 *** Therefore, libtool is disabling shared libraries support. If you
14675 *** really care for shared libraries, you may want to modify your PATH
14676 *** so that a non-GNU linker is found, and then restart.
14682 amigaos*)
14683 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)'
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_minus_L_F77=yes
14687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688 # that the semantics of dynamic libraries on AmigaOS, at least up
14689 # to version 4, is to share data among multiple programs linked
14690 # with the same dynamic library. Since this doesn't match the
14691 # behavior of shared libraries on other platforms, we can't use
14692 # them.
14693 ld_shlibs_F77=no
14696 beos*)
14697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698 allow_undefined_flag_F77=unsupported
14699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700 # support --undefined. This deserves some investigation. FIXME
14701 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702 else
14703 ld_shlibs_F77=no
14707 cygwin* | mingw* | pw32*)
14708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14709 # as there is no search path for DLLs.
14710 hardcode_libdir_flag_spec_F77='-L$libdir'
14711 allow_undefined_flag_F77=unsupported
14712 always_export_symbols_F77=no
14713 enable_shared_with_static_runtimes_F77=yes
14714 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14717 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 # If the export-symbols file already is a .def file (1st line
14719 # is EXPORTS), use it as is; otherwise, prepend...
14720 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721 cp $export_symbols $output_objdir/$soname.def;
14722 else
14723 echo EXPORTS > $output_objdir/$soname.def;
14724 cat $export_symbols >> $output_objdir/$soname.def;
14726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14727 else
14728 ld_shlibs_F77=no
14732 interix[3-9]*)
14733 hardcode_direct_F77=no
14734 hardcode_shlibpath_var_F77=no
14735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec_F77='${wl}-E'
14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738 # Instead, shared libraries are loaded at an image base (0x10000000 by
14739 # default) and relocated if they conflict, which is a slow very memory
14740 # consuming and fragmenting process. To avoid this, we pick a random,
14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14743 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'
14744 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'
14747 gnu* | linux* | k*bsd*-gnu)
14748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14749 tmp_addflag=
14750 case $cc_basename,$host_cpu in
14751 pgcc*) # Portland Group C compiler
14752 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'
14753 tmp_addflag=' $pic_flag'
14755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14756 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'
14757 tmp_addflag=' $pic_flag -Mnomain' ;;
14758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14759 tmp_addflag=' -i_dynamic' ;;
14760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14761 tmp_addflag=' -i_dynamic -nofor_main' ;;
14762 ifc* | ifort*) # Intel Fortran compiler
14763 tmp_addflag=' -nofor_main' ;;
14764 esac
14765 case `$CC -V 2>&1 | sed 5q` in
14766 *Sun\ C*) # Sun C 5.9
14767 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'
14768 tmp_sharedflag='-G' ;;
14769 *Sun\ F*) # Sun Fortran 8.3
14770 tmp_sharedflag='-G' ;;
14772 tmp_sharedflag='-shared' ;;
14773 esac
14774 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776 if test $supports_anon_versioning = yes; then
14777 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14779 $echo "local: *; };" >> $output_objdir/$libname.ver~
14780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14782 link_all_deplibs_F77=no
14783 else
14784 ld_shlibs_F77=no
14788 netbsd* | netbsdelf*-gnu)
14789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14790 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14791 wlarc=
14792 else
14793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14798 solaris*)
14799 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14800 ld_shlibs_F77=no
14801 cat <<EOF 1>&2
14803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14804 *** create shared libraries on Solaris systems. Therefore, libtool
14805 *** is disabling shared libraries support. We urge you to upgrade GNU
14806 *** binutils to release 2.9.1 or newer. Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14811 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14814 else
14815 ld_shlibs_F77=no
14819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14820 case `$LD -v 2>&1` in
14821 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14822 ld_shlibs_F77=no
14823 cat <<_LT_EOF 1>&2
14825 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14826 *** reliably create shared libraries on SCO systems. Therefore, libtool
14827 *** is disabling shared libraries support. We urge you to upgrade GNU
14828 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14829 *** your PATH or compiler configuration so that the native linker is
14830 *** used, and then restart.
14832 _LT_EOF
14835 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14839 else
14840 ld_shlibs_F77=no
14843 esac
14846 sunos4*)
14847 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14848 wlarc=
14849 hardcode_direct_F77=yes
14850 hardcode_shlibpath_var_F77=no
14854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14857 else
14858 ld_shlibs_F77=no
14861 esac
14863 if test "$ld_shlibs_F77" = no; then
14864 runpath_var=
14865 hardcode_libdir_flag_spec_F77=
14866 export_dynamic_flag_spec_F77=
14867 whole_archive_flag_spec_F77=
14869 else
14870 # PORTME fill in a description of your system's linker (not GNU ld)
14871 case $host_os in
14872 aix3*)
14873 allow_undefined_flag_F77=unsupported
14874 always_export_symbols_F77=yes
14875 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'
14876 # Note: this linker hardcodes the directories in LIBPATH if there
14877 # are no directories specified by -L.
14878 hardcode_minus_L_F77=yes
14879 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14880 # Neither direct hardcoding nor static linking is supported with a
14881 # broken collect2.
14882 hardcode_direct_F77=unsupported
14886 aix4* | aix5*)
14887 if test "$host_cpu" = ia64; then
14888 # On IA64, the linker does run time linking by default, so we don't
14889 # have to do anything special.
14890 aix_use_runtimelinking=no
14891 exp_sym_flag='-Bexport'
14892 no_entry_flag=""
14893 else
14894 # If we're using GNU nm, then we don't want the "-C" option.
14895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14897 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'
14898 else
14899 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'
14901 aix_use_runtimelinking=no
14903 # Test if we are trying to use run time linking or normal
14904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14905 # need to do runtime linking.
14906 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14907 for ld_flag in $LDFLAGS; do
14908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14909 aix_use_runtimelinking=yes
14910 break
14912 done
14914 esac
14916 exp_sym_flag='-bexport'
14917 no_entry_flag='-bnoentry'
14920 # When large executables or shared objects are built, AIX ld can
14921 # have problems creating the table of contents. If linking a library
14922 # or program results in "error TOC overflow" add -mminimal-toc to
14923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14926 archive_cmds_F77=''
14927 hardcode_direct_F77=yes
14928 hardcode_libdir_separator_F77=':'
14929 link_all_deplibs_F77=yes
14931 if test "$GCC" = yes; then
14932 case $host_os in aix4.[012]|aix4.[012].*)
14933 # We only want to do this on AIX 4.2 and lower, the check
14934 # below for broken collect2 doesn't work under 4.3+
14935 collect2name=`${CC} -print-prog-name=collect2`
14936 if test -f "$collect2name" && \
14937 strings "$collect2name" | grep resolve_lib_name >/dev/null
14938 then
14939 # We have reworked collect2
14941 else
14942 # We have old collect2
14943 hardcode_direct_F77=unsupported
14944 # It fails to find uninstalled libraries when the uninstalled
14945 # path is not listed in the libpath. Setting hardcode_minus_L
14946 # to unsupported forces relinking
14947 hardcode_minus_L_F77=yes
14948 hardcode_libdir_flag_spec_F77='-L$libdir'
14949 hardcode_libdir_separator_F77=
14952 esac
14953 shared_flag='-shared'
14954 if test "$aix_use_runtimelinking" = yes; then
14955 shared_flag="$shared_flag "'${wl}-G'
14957 else
14958 # not using gcc
14959 if test "$host_cpu" = ia64; then
14960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14961 # chokes on -Wl,-G. The following line is correct:
14962 shared_flag='-G'
14963 else
14964 if test "$aix_use_runtimelinking" = yes; then
14965 shared_flag='${wl}-G'
14966 else
14967 shared_flag='${wl}-bM:SRE'
14972 # It seems that -bexpall does not export symbols beginning with
14973 # underscore (_), so it is better to generate a list of symbols to export.
14974 always_export_symbols_F77=yes
14975 if test "$aix_use_runtimelinking" = yes; then
14976 # Warning - without using the other runtime loading flags (-brtl),
14977 # -berok will link without error, but may produce a broken library.
14978 allow_undefined_flag_F77='-berok'
14979 # Determine the default libpath from the value encoded in an empty executable.
14980 cat >conftest.$ac_ext <<_ACEOF
14981 program main
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } && {
14999 test -z "$ac_f77_werror_flag" ||
15000 test ! -s conftest.err
15001 } && test -s conftest$ac_exeext &&
15002 $as_test_x conftest$ac_exeext; then
15004 lt_aix_libpath_sed='
15005 /Import File Strings/,/^$/ {
15006 /^0/ {
15007 s/^0 *\(.*\)$/\1/
15011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15012 # Check for a 64-bit object if we didn't find anything.
15013 if test -z "$aix_libpath"; then
15014 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024 conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028 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"
15029 else
15030 if test "$host_cpu" = ia64; then
15031 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15032 allow_undefined_flag_F77="-z nodefs"
15033 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"
15034 else
15035 # Determine the default libpath from the value encoded in an empty executable.
15036 cat >conftest.$ac_ext <<_ACEOF
15037 program main
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_link") 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_f77_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest$ac_exeext &&
15058 $as_test_x conftest$ac_exeext; then
15060 lt_aix_libpath_sed='
15061 /Import File Strings/,/^$/ {
15062 /^0/ {
15063 s/^0 *\(.*\)$/\1/
15067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15068 # Check for a 64-bit object if we didn't find anything.
15069 if test -z "$aix_libpath"; then
15070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15072 else
15073 echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15083 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15084 # Warning - without using the other run time loading flags,
15085 # -berok will link without error, but may produce a broken library.
15086 no_undefined_flag_F77=' ${wl}-bernotok'
15087 allow_undefined_flag_F77=' ${wl}-berok'
15088 # Exported symbols can be pulled into shared objects from archives
15089 whole_archive_flag_spec_F77='$convenience'
15090 archive_cmds_need_lc_F77=yes
15091 # This is similar to how AIX traditionally builds its shared libraries.
15092 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'
15097 amigaos*)
15098 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)'
15099 hardcode_libdir_flag_spec_F77='-L$libdir'
15100 hardcode_minus_L_F77=yes
15101 # see comment about different semantics on the GNU ld section
15102 ld_shlibs_F77=no
15105 bsdi[45]*)
15106 export_dynamic_flag_spec_F77=-rdynamic
15109 cygwin* | mingw* | pw32*)
15110 # When not using gcc, we currently assume that we are using
15111 # Microsoft Visual C++.
15112 # hardcode_libdir_flag_spec is actually meaningless, as there is
15113 # no search path for DLLs.
15114 hardcode_libdir_flag_spec_F77=' '
15115 allow_undefined_flag_F77=unsupported
15116 # Tell ltmain to make .lib files, not .a files.
15117 libext=lib
15118 # Tell ltmain to make .dll files, not .so files.
15119 shrext_cmds=".dll"
15120 # FIXME: Setting linknames here is a bad hack.
15121 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15122 # The linker will automatically build a .lib file if we build a DLL.
15123 old_archive_From_new_cmds_F77='true'
15124 # FIXME: Should let the user specify the lib program.
15125 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15126 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15127 enable_shared_with_static_runtimes_F77=yes
15130 darwin* | rhapsody*)
15131 case $host_os in
15132 rhapsody* | darwin1.[012])
15133 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15135 *) # Darwin 1.3 on
15136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15137 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15138 else
15139 case ${MACOSX_DEPLOYMENT_TARGET} in
15140 10.[012])
15141 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15143 10.*)
15144 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15146 esac
15149 esac
15150 archive_cmds_need_lc_F77=no
15151 hardcode_direct_F77=no
15152 hardcode_automatic_F77=yes
15153 hardcode_shlibpath_var_F77=unsupported
15154 whole_archive_flag_spec_F77=''
15155 link_all_deplibs_F77=yes
15156 if test "$GCC" = yes ; then
15157 output_verbose_link_cmd='echo'
15158 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15159 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15161 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}'
15162 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}'
15163 else
15164 case $cc_basename in
15165 xlc*)
15166 output_verbose_link_cmd='echo'
15167 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15168 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15170 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}'
15171 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}'
15174 ld_shlibs_F77=no
15176 esac
15180 dgux*)
15181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15182 hardcode_libdir_flag_spec_F77='-L$libdir'
15183 hardcode_shlibpath_var_F77=no
15186 freebsd1*)
15187 ld_shlibs_F77=no
15190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15191 # support. Future versions do this automatically, but an explicit c++rt0.o
15192 # does not break anything, and helps significantly (at the cost of a little
15193 # extra space).
15194 freebsd2.2*)
15195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15196 hardcode_libdir_flag_spec_F77='-R$libdir'
15197 hardcode_direct_F77=yes
15198 hardcode_shlibpath_var_F77=no
15201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15202 freebsd2*)
15203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15204 hardcode_direct_F77=yes
15205 hardcode_minus_L_F77=yes
15206 hardcode_shlibpath_var_F77=no
15209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15210 freebsd* | dragonfly*)
15211 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15212 hardcode_libdir_flag_spec_F77='-R$libdir'
15213 hardcode_direct_F77=yes
15214 hardcode_shlibpath_var_F77=no
15217 hpux9*)
15218 if test "$GCC" = yes; then
15219 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'
15220 else
15221 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'
15223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224 hardcode_libdir_separator_F77=:
15225 hardcode_direct_F77=yes
15227 # hardcode_minus_L: Not really in the search PATH,
15228 # but as the default location of the library.
15229 hardcode_minus_L_F77=yes
15230 export_dynamic_flag_spec_F77='${wl}-E'
15233 hpux10*)
15234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15235 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15236 else
15237 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15239 if test "$with_gnu_ld" = no; then
15240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15241 hardcode_libdir_separator_F77=:
15243 hardcode_direct_F77=yes
15244 export_dynamic_flag_spec_F77='${wl}-E'
15246 # hardcode_minus_L: Not really in the search PATH,
15247 # but as the default location of the library.
15248 hardcode_minus_L_F77=yes
15252 hpux11*)
15253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15254 case $host_cpu in
15255 hppa*64*)
15256 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258 ia64*)
15259 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15262 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15264 esac
15265 else
15266 case $host_cpu in
15267 hppa*64*)
15268 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15270 ia64*)
15271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15276 esac
15278 if test "$with_gnu_ld" = no; then
15279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator_F77=:
15282 case $host_cpu in
15283 hppa*64*|ia64*)
15284 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15285 hardcode_direct_F77=no
15286 hardcode_shlibpath_var_F77=no
15289 hardcode_direct_F77=yes
15290 export_dynamic_flag_spec_F77='${wl}-E'
15292 # hardcode_minus_L: Not really in the search PATH,
15293 # but as the default location of the library.
15294 hardcode_minus_L_F77=yes
15296 esac
15300 irix5* | irix6* | nonstopux*)
15301 if test "$GCC" = yes; then
15302 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'
15303 else
15304 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'
15305 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15307 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308 hardcode_libdir_separator_F77=:
15309 link_all_deplibs_F77=yes
15312 netbsd* | netbsdelf*-gnu)
15313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15315 else
15316 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15318 hardcode_libdir_flag_spec_F77='-R$libdir'
15319 hardcode_direct_F77=yes
15320 hardcode_shlibpath_var_F77=no
15323 newsos6)
15324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_direct_F77=yes
15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15327 hardcode_libdir_separator_F77=:
15328 hardcode_shlibpath_var_F77=no
15331 openbsd*)
15332 if test -f /usr/libexec/ld.so; then
15333 hardcode_direct_F77=yes
15334 hardcode_shlibpath_var_F77=no
15335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15336 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15337 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15338 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15339 export_dynamic_flag_spec_F77='${wl}-E'
15340 else
15341 case $host_os in
15342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15343 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_libdir_flag_spec_F77='-R$libdir'
15347 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15348 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15350 esac
15352 else
15353 ld_shlibs_F77=no
15357 os2*)
15358 hardcode_libdir_flag_spec_F77='-L$libdir'
15359 hardcode_minus_L_F77=yes
15360 allow_undefined_flag_F77=unsupported
15361 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'
15362 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15365 osf3*)
15366 if test "$GCC" = yes; then
15367 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15368 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'
15369 else
15370 allow_undefined_flag_F77=' -expect_unresolved \*'
15371 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'
15373 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15374 hardcode_libdir_separator_F77=:
15377 osf4* | osf5*) # as osf3* with the addition of -msym flag
15378 if test "$GCC" = yes; then
15379 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15380 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'
15381 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15382 else
15383 allow_undefined_flag_F77=' -expect_unresolved \*'
15384 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'
15385 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~
15386 $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'
15388 # Both c and cxx compiler support -rpath directly
15389 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15391 hardcode_libdir_separator_F77=:
15394 solaris*)
15395 no_undefined_flag_F77=' -z text'
15396 if test "$GCC" = yes; then
15397 wlarc='${wl}'
15398 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15400 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15401 else
15402 wlarc=''
15403 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15405 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15407 hardcode_libdir_flag_spec_F77='-R$libdir'
15408 hardcode_shlibpath_var_F77=no
15409 case $host_os in
15410 solaris2.[0-5] | solaris2.[0-5].*) ;;
15412 # The compiler driver will combine and reorder linker options,
15413 # but understands `-z linker_flag'. GCC discards it without `$wl',
15414 # but is careful enough not to reorder.
15415 # Supported since Solaris 2.6 (maybe 2.5.1?)
15416 if test "$GCC" = yes; then
15417 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15418 else
15419 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15422 esac
15423 link_all_deplibs_F77=yes
15426 sunos4*)
15427 if test "x$host_vendor" = xsequent; then
15428 # Use $CC to link under sequent, because it throws in some extra .o
15429 # files that make .init and .fini sections work.
15430 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15431 else
15432 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_libdir_flag_spec_F77='-L$libdir'
15435 hardcode_direct_F77=yes
15436 hardcode_minus_L_F77=yes
15437 hardcode_shlibpath_var_F77=no
15440 sysv4)
15441 case $host_vendor in
15442 sni)
15443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444 hardcode_direct_F77=yes # is this really true???
15446 siemens)
15447 ## LD is ld it makes a PLAMLIB
15448 ## CC just makes a GrossModule.
15449 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15450 reload_cmds_F77='$CC -r -o $output$reload_objs'
15451 hardcode_direct_F77=no
15453 motorola)
15454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15457 esac
15458 runpath_var='LD_RUN_PATH'
15459 hardcode_shlibpath_var_F77=no
15462 sysv4.3*)
15463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_shlibpath_var_F77=no
15465 export_dynamic_flag_spec_F77='-Bexport'
15468 sysv4*MP*)
15469 if test -d /usr/nec; then
15470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471 hardcode_shlibpath_var_F77=no
15472 runpath_var=LD_RUN_PATH
15473 hardcode_runpath_var=yes
15474 ld_shlibs_F77=yes
15478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15479 no_undefined_flag_F77='${wl}-z,text'
15480 archive_cmds_need_lc_F77=no
15481 hardcode_shlibpath_var_F77=no
15482 runpath_var='LD_RUN_PATH'
15484 if test "$GCC" = yes; then
15485 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15486 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15487 else
15488 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15493 sysv5* | sco3.2v5* | sco5v6*)
15494 # Note: We can NOT use -z defs as we might desire, because we do not
15495 # link with -lc, and that would cause any symbols used from libc to
15496 # always be unresolved, which means just about no library would
15497 # ever link correctly. If we're not using GNU ld we use -z text
15498 # though, which does catch some bad symbols but isn't as heavy-handed
15499 # as -z defs.
15500 no_undefined_flag_F77='${wl}-z,text'
15501 allow_undefined_flag_F77='${wl}-z,nodefs'
15502 archive_cmds_need_lc_F77=no
15503 hardcode_shlibpath_var_F77=no
15504 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15505 hardcode_libdir_separator_F77=':'
15506 link_all_deplibs_F77=yes
15507 export_dynamic_flag_spec_F77='${wl}-Bexport'
15508 runpath_var='LD_RUN_PATH'
15510 if test "$GCC" = yes; then
15511 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15513 else
15514 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15519 uts4*)
15520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_libdir_flag_spec_F77='-L$libdir'
15522 hardcode_shlibpath_var_F77=no
15526 ld_shlibs_F77=no
15528 esac
15531 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15532 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15533 test "$ld_shlibs_F77" = no && can_build_shared=no
15536 # Do we need to explicitly link libc?
15538 case "x$archive_cmds_need_lc_F77" in
15539 x|xyes)
15540 # Assume -lc should be added
15541 archive_cmds_need_lc_F77=yes
15543 if test "$enable_shared" = yes && test "$GCC" = yes; then
15544 case $archive_cmds_F77 in
15545 *'~'*)
15546 # FIXME: we may have to deal with multi-command sequences.
15548 '$CC '*)
15549 # Test whether the compiler implicitly links with -lc since on some
15550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15551 # to ld, don't add -lc before -lgcc.
15552 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15554 $rm conftest*
15555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558 (eval $ac_compile) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } 2>conftest.err; then
15562 soname=conftest
15563 lib=conftest
15564 libobjs=conftest.$ac_objext
15565 deplibs=
15566 wl=$lt_prog_compiler_wl_F77
15567 pic_flag=$lt_prog_compiler_pic_F77
15568 compiler_flags=-v
15569 linker_flags=-v
15570 verstring=
15571 output_objdir=.
15572 libname=conftest
15573 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15574 allow_undefined_flag_F77=
15575 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15576 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }
15580 then
15581 archive_cmds_need_lc_F77=no
15582 else
15583 archive_cmds_need_lc_F77=yes
15585 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15586 else
15587 cat conftest.err 1>&5
15589 $rm conftest*
15590 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15591 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15593 esac
15596 esac
15598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15600 library_names_spec=
15601 libname_spec='lib$name'
15602 soname_spec=
15603 shrext_cmds=".so"
15604 postinstall_cmds=
15605 postuninstall_cmds=
15606 finish_cmds=
15607 finish_eval=
15608 shlibpath_var=
15609 shlibpath_overrides_runpath=unknown
15610 version_type=none
15611 dynamic_linker="$host_os ld.so"
15612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15614 need_lib_prefix=unknown
15615 hardcode_into_libs=no
15617 # when you set need_version to no, make sure it does not cause -set_version
15618 # flags to be left without arguments
15619 need_version=unknown
15621 case $host_os in
15622 aix3*)
15623 version_type=linux
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15625 shlibpath_var=LIBPATH
15627 # AIX 3 has no versioning support, so we append a major version to the name.
15628 soname_spec='${libname}${release}${shared_ext}$major'
15631 aix4* | aix5*)
15632 version_type=linux
15633 need_lib_prefix=no
15634 need_version=no
15635 hardcode_into_libs=yes
15636 if test "$host_cpu" = ia64; then
15637 # AIX 5 supports IA64
15638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 else
15641 # With GCC up to 2.95.x, collect2 would create an import file
15642 # for dependence libraries. The import file would start with
15643 # the line `#! .'. This would cause the generated library to
15644 # depend on `.', always an invalid library. This was fixed in
15645 # development snapshots of GCC prior to 3.0.
15646 case $host_os in
15647 aix4 | aix4.[01] | aix4.[01].*)
15648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15649 echo ' yes '
15650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15652 else
15653 can_build_shared=no
15656 esac
15657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15658 # soname into executable. Probably we can add versioning support to
15659 # collect2, so additional links can be useful in future.
15660 if test "$aix_use_runtimelinking" = yes; then
15661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15662 # instead of lib<name>.a to let people know that these are not
15663 # typical AIX shared libraries.
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 else
15666 # We preserve .a as extension for shared libraries through AIX4.2
15667 # and later when we are not doing run time linking.
15668 library_names_spec='${libname}${release}.a $libname.a'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15671 shlibpath_var=LIBPATH
15675 amigaos*)
15676 library_names_spec='$libname.ixlibrary $libname.a'
15677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15678 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'
15681 beos*)
15682 library_names_spec='${libname}${shared_ext}'
15683 dynamic_linker="$host_os ld.so"
15684 shlibpath_var=LIBRARY_PATH
15687 bsdi[45]*)
15688 version_type=linux
15689 need_version=no
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15696 # the default ld.so.conf also contains /usr/contrib/lib and
15697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15698 # libtool to hard-code these into programs
15701 cygwin* | mingw* | pw32*)
15702 version_type=windows
15703 shrext_cmds=".dll"
15704 need_version=no
15705 need_lib_prefix=no
15707 case $GCC,$host_os in
15708 yes,cygwin* | yes,mingw* | yes,pw32*)
15709 library_names_spec='$libname.dll.a'
15710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15711 postinstall_cmds='base_file=`basename \${file}`~
15712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15713 dldir=$destdir/`dirname \$dlpath`~
15714 test -d \$dldir || mkdir -p \$dldir~
15715 $install_prog $dir/$dlname \$dldir/$dlname~
15716 chmod a+x \$dldir/$dlname'
15717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15718 dlpath=$dir/\$dldll~
15719 $rm \$dlpath'
15720 shlibpath_overrides_runpath=yes
15722 case $host_os in
15723 cygwin*)
15724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15728 mingw*)
15729 # MinGW DLLs use traditional 'lib' prefix
15730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15733 # It is most probably a Windows format PATH printed by
15734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15735 # path with ; separators, and with drive letters. We can handle the
15736 # drive letters (cygwin fileutils understands them), so leave them,
15737 # especially as we might pass files found there to a mingw objdump,
15738 # which wouldn't understand a cygwinified path. Ahh.
15739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15740 else
15741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15744 pw32*)
15745 # pw32 DLLs use 'pw' prefix rather than 'lib'
15746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15748 esac
15752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15754 esac
15755 dynamic_linker='Win32 ld.exe'
15756 # FIXME: first we should search . and the directory the executable is in
15757 shlibpath_var=PATH
15760 darwin* | rhapsody*)
15761 dynamic_linker="$host_os dyld"
15762 version_type=darwin
15763 need_lib_prefix=no
15764 need_version=no
15765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15766 soname_spec='${libname}${release}${major}$shared_ext'
15767 shlibpath_overrides_runpath=yes
15768 shlibpath_var=DYLD_LIBRARY_PATH
15769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15774 dgux*)
15775 version_type=linux
15776 need_lib_prefix=no
15777 need_version=no
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15783 freebsd1*)
15784 dynamic_linker=no
15787 freebsd* | dragonfly*)
15788 # DragonFly does not have aout. When/if they implement a new
15789 # versioning mechanism, adjust this.
15790 if test -x /usr/bin/objformat; then
15791 objformat=`/usr/bin/objformat`
15792 else
15793 case $host_os in
15794 freebsd[123]*) objformat=aout ;;
15795 *) objformat=elf ;;
15796 esac
15798 version_type=freebsd-$objformat
15799 case $version_type in
15800 freebsd-elf*)
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15802 need_version=no
15803 need_lib_prefix=no
15805 freebsd-*)
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15807 need_version=yes
15809 esac
15810 shlibpath_var=LD_LIBRARY_PATH
15811 case $host_os in
15812 freebsd2*)
15813 shlibpath_overrides_runpath=yes
15815 freebsd3.[01]* | freebsdelf3.[01]*)
15816 shlibpath_overrides_runpath=yes
15817 hardcode_into_libs=yes
15819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15821 shlibpath_overrides_runpath=no
15822 hardcode_into_libs=yes
15824 *) # from 4.6 on, and DragonFly
15825 shlibpath_overrides_runpath=yes
15826 hardcode_into_libs=yes
15828 esac
15831 gnu*)
15832 version_type=linux
15833 need_lib_prefix=no
15834 need_version=no
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 hardcode_into_libs=yes
15841 hpux9* | hpux10* | hpux11*)
15842 # Give a soname corresponding to the major version so that dld.sl refuses to
15843 # link against other versions.
15844 version_type=sunos
15845 need_lib_prefix=no
15846 need_version=no
15847 case $host_cpu in
15848 ia64*)
15849 shrext_cmds='.so'
15850 hardcode_into_libs=yes
15851 dynamic_linker="$host_os dld.so"
15852 shlibpath_var=LD_LIBRARY_PATH
15853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 if test "X$HPUX_IA64_MODE" = X32; then
15857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15858 else
15859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15863 hppa*64*)
15864 shrext_cmds='.sl'
15865 hardcode_into_libs=yes
15866 dynamic_linker="$host_os dld.sl"
15867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15875 shrext_cmds='.sl'
15876 dynamic_linker="$host_os dld.sl"
15877 shlibpath_var=SHLIB_PATH
15878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15882 esac
15883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15884 postinstall_cmds='chmod 555 $lib'
15887 interix[3-9]*)
15888 version_type=linux
15889 need_lib_prefix=no
15890 need_version=no
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=no
15896 hardcode_into_libs=yes
15899 irix5* | irix6* | nonstopux*)
15900 case $host_os in
15901 nonstopux*) version_type=nonstopux ;;
15903 if test "$lt_cv_prog_gnu_ld" = yes; then
15904 version_type=linux
15905 else
15906 version_type=irix
15907 fi ;;
15908 esac
15909 need_lib_prefix=no
15910 need_version=no
15911 soname_spec='${libname}${release}${shared_ext}$major'
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15913 case $host_os in
15914 irix5* | nonstopux*)
15915 libsuff= shlibsuff=
15918 case $LD in # libtool.m4 will add one of these switches to LD
15919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15920 libsuff= shlibsuff= libmagic=32-bit;;
15921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15922 libsuff=32 shlibsuff=N32 libmagic=N32;;
15923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15925 *) libsuff= shlibsuff= libmagic=never-match;;
15926 esac
15928 esac
15929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15930 shlibpath_overrides_runpath=no
15931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15933 hardcode_into_libs=yes
15936 # No shared lib support for Linux oldld, aout, or coff.
15937 linux*oldld* | linux*aout* | linux*coff*)
15938 dynamic_linker=no
15941 # This must be Linux ELF.
15942 linux* | k*bsd*-gnu)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=no
15951 # This implies no fast_install, which is unacceptable.
15952 # Some rework will be needed to allow for fast_install
15953 # before this can be enabled.
15954 hardcode_into_libs=yes
15956 # Append ld.so.conf contents to the search path
15957 if test -f /etc/ld.so.conf; then
15958 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' ' '`
15959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15962 # We used to test for /lib/ld.so.1 and disable shared libraries on
15963 # powerpc, because MkLinux only supported shared libraries with the
15964 # GNU dynamic linker. Since this was broken with cross compilers,
15965 # most powerpc-linux boxes support dynamic linking these days and
15966 # people can always --disable-shared, the test was removed, and we
15967 # assume the GNU/Linux dynamic linker is in use.
15968 dynamic_linker='GNU/Linux ld.so'
15971 netbsdelf*-gnu)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=no
15979 hardcode_into_libs=yes
15980 dynamic_linker='NetBSD ld.elf_so'
15983 netbsd*)
15984 version_type=sunos
15985 need_lib_prefix=no
15986 need_version=no
15987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15990 dynamic_linker='NetBSD (a.out) ld.so'
15991 else
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 dynamic_linker='NetBSD ld.elf_so'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
15998 hardcode_into_libs=yes
16001 newsos6)
16002 version_type=linux
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=yes
16008 nto-qnx*)
16009 version_type=linux
16010 need_lib_prefix=no
16011 need_version=no
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 shlibpath_var=LD_LIBRARY_PATH
16015 shlibpath_overrides_runpath=yes
16018 openbsd*)
16019 version_type=sunos
16020 sys_lib_dlsearch_path_spec="/usr/lib"
16021 need_lib_prefix=no
16022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16023 case $host_os in
16024 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16025 *) need_version=no ;;
16026 esac
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16031 case $host_os in
16032 openbsd2.[89] | openbsd2.[89].*)
16033 shlibpath_overrides_runpath=no
16036 shlibpath_overrides_runpath=yes
16038 esac
16039 else
16040 shlibpath_overrides_runpath=yes
16044 os2*)
16045 libname_spec='$name'
16046 shrext_cmds=".dll"
16047 need_lib_prefix=no
16048 library_names_spec='$libname${shared_ext} $libname.a'
16049 dynamic_linker='OS/2 ld.exe'
16050 shlibpath_var=LIBPATH
16053 osf3* | osf4* | osf5*)
16054 version_type=osf
16055 need_lib_prefix=no
16056 need_version=no
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16061 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16064 rdos*)
16065 dynamic_linker=no
16068 solaris*)
16069 version_type=linux
16070 need_lib_prefix=no
16071 need_version=no
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 shlibpath_overrides_runpath=yes
16076 hardcode_into_libs=yes
16077 # ldd complains unless libraries are executable
16078 postinstall_cmds='chmod +x $lib'
16081 sunos4*)
16082 version_type=sunos
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 shlibpath_overrides_runpath=yes
16087 if test "$with_gnu_ld" = yes; then
16088 need_lib_prefix=no
16090 need_version=yes
16093 sysv4 | sysv4.3*)
16094 version_type=linux
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 case $host_vendor in
16099 sni)
16100 shlibpath_overrides_runpath=no
16101 need_lib_prefix=no
16102 export_dynamic_flag_spec='${wl}-Blargedynsym'
16103 runpath_var=LD_RUN_PATH
16105 siemens)
16106 need_lib_prefix=no
16108 motorola)
16109 need_lib_prefix=no
16110 need_version=no
16111 shlibpath_overrides_runpath=no
16112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16114 esac
16117 sysv4*MP*)
16118 if test -d /usr/nec ;then
16119 version_type=linux
16120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16121 soname_spec='$libname${shared_ext}.$major'
16122 shlibpath_var=LD_LIBRARY_PATH
16126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16127 version_type=freebsd-elf
16128 need_lib_prefix=no
16129 need_version=no
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 hardcode_into_libs=yes
16134 if test "$with_gnu_ld" = yes; then
16135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16136 shlibpath_overrides_runpath=no
16137 else
16138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16139 shlibpath_overrides_runpath=yes
16140 case $host_os in
16141 sco3.2v5*)
16142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16144 esac
16146 sys_lib_dlsearch_path_spec='/usr/lib'
16149 uts4*)
16150 version_type=linux
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16157 dynamic_linker=no
16159 esac
16160 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16161 echo "${ECHO_T}$dynamic_linker" >&6; }
16162 test "$dynamic_linker" = no && can_build_shared=no
16164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16165 if test "$GCC" = yes; then
16166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16169 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16171 hardcode_action_F77=
16172 if test -n "$hardcode_libdir_flag_spec_F77" || \
16173 test -n "$runpath_var_F77" || \
16174 test "X$hardcode_automatic_F77" = "Xyes" ; then
16176 # We can hardcode non-existant directories.
16177 if test "$hardcode_direct_F77" != no &&
16178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16179 # have to relink, otherwise we might link with an installed library
16180 # when we should be linking with a yet-to-be-installed one
16181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16182 test "$hardcode_minus_L_F77" != no; then
16183 # Linking always hardcodes the temporary library directory.
16184 hardcode_action_F77=relink
16185 else
16186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16187 hardcode_action_F77=immediate
16189 else
16190 # We cannot hardcode anything, or else we can only hardcode existing
16191 # directories.
16192 hardcode_action_F77=unsupported
16194 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16195 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16197 if test "$hardcode_action_F77" = relink; then
16198 # Fast installation is not supported
16199 enable_fast_install=no
16200 elif test "$shlibpath_overrides_runpath" = yes ||
16201 test "$enable_shared" = no; then
16202 # Fast installation is not necessary
16203 enable_fast_install=needless
16207 # The else clause should only fire when bootstrapping the
16208 # libtool distribution, otherwise you forgot to ship ltmain.sh
16209 # with your package, and you will get complaints that there are
16210 # no rules to generate ltmain.sh.
16211 if test -f "$ltmain"; then
16212 # See if we are running on zsh, and set the options which allow our commands through
16213 # without removal of \ escapes.
16214 if test -n "${ZSH_VERSION+set}" ; then
16215 setopt NO_GLOB_SUBST
16217 # Now quote all the things that may contain metacharacters while being
16218 # careful not to overquote the AC_SUBSTed values. We take copies of the
16219 # variables and quote the copies for generation of the libtool script.
16220 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16221 SED SHELL STRIP \
16222 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16223 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16224 deplibs_check_method reload_flag reload_cmds need_locks \
16225 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16226 lt_cv_sys_global_symbol_to_c_name_address \
16227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16228 old_postinstall_cmds old_postuninstall_cmds \
16229 compiler_F77 \
16230 CC_F77 \
16231 LD_F77 \
16232 lt_prog_compiler_wl_F77 \
16233 lt_prog_compiler_pic_F77 \
16234 lt_prog_compiler_static_F77 \
16235 lt_prog_compiler_no_builtin_flag_F77 \
16236 export_dynamic_flag_spec_F77 \
16237 thread_safe_flag_spec_F77 \
16238 whole_archive_flag_spec_F77 \
16239 enable_shared_with_static_runtimes_F77 \
16240 old_archive_cmds_F77 \
16241 old_archive_from_new_cmds_F77 \
16242 predep_objects_F77 \
16243 postdep_objects_F77 \
16244 predeps_F77 \
16245 postdeps_F77 \
16246 compiler_lib_search_path_F77 \
16247 archive_cmds_F77 \
16248 archive_expsym_cmds_F77 \
16249 postinstall_cmds_F77 \
16250 postuninstall_cmds_F77 \
16251 old_archive_from_expsyms_cmds_F77 \
16252 allow_undefined_flag_F77 \
16253 no_undefined_flag_F77 \
16254 export_symbols_cmds_F77 \
16255 hardcode_libdir_flag_spec_F77 \
16256 hardcode_libdir_flag_spec_ld_F77 \
16257 hardcode_libdir_separator_F77 \
16258 hardcode_automatic_F77 \
16259 module_cmds_F77 \
16260 module_expsym_cmds_F77 \
16261 lt_cv_prog_compiler_c_o_F77 \
16262 fix_srcfile_path_F77 \
16263 exclude_expsyms_F77 \
16264 include_expsyms_F77; do
16266 case $var in
16267 old_archive_cmds_F77 | \
16268 old_archive_from_new_cmds_F77 | \
16269 archive_cmds_F77 | \
16270 archive_expsym_cmds_F77 | \
16271 module_cmds_F77 | \
16272 module_expsym_cmds_F77 | \
16273 old_archive_from_expsyms_cmds_F77 | \
16274 export_symbols_cmds_F77 | \
16275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16276 postinstall_cmds | postuninstall_cmds | \
16277 old_postinstall_cmds | old_postuninstall_cmds | \
16278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16279 # Double-quote double-evaled strings.
16280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16285 esac
16286 done
16288 case $lt_echo in
16289 *'\$0 --fallback-echo"')
16290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16292 esac
16294 cfgfile="$ofile"
16296 cat <<__EOF__ >> "$cfgfile"
16297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16301 # Shell to use when invoking shell scripts.
16302 SHELL=$lt_SHELL
16304 # Whether or not to build shared libraries.
16305 build_libtool_libs=$enable_shared
16307 # Whether or not to build static libraries.
16308 build_old_libs=$enable_static
16310 # Whether or not to add -lc for building shared libraries.
16311 build_libtool_need_lc=$archive_cmds_need_lc_F77
16313 # Whether or not to disallow shared libs when runtime libs are static
16314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16316 # Whether or not to optimize for fast installation.
16317 fast_install=$enable_fast_install
16319 # The host system.
16320 host_alias=$host_alias
16321 host=$host
16322 host_os=$host_os
16324 # The build system.
16325 build_alias=$build_alias
16326 build=$build
16327 build_os=$build_os
16329 # An echo program that does not interpret backslashes.
16330 echo=$lt_echo
16332 # The archiver.
16333 AR=$lt_AR
16334 AR_FLAGS=$lt_AR_FLAGS
16336 # A C compiler.
16337 LTCC=$lt_LTCC
16339 # LTCC compiler flags.
16340 LTCFLAGS=$lt_LTCFLAGS
16342 # A language-specific compiler.
16343 CC=$lt_compiler_F77
16345 # Is the compiler the GNU C compiler?
16346 with_gcc=$GCC_F77
16348 # An ERE matcher.
16349 EGREP=$lt_EGREP
16351 # The linker used to build libraries.
16352 LD=$lt_LD_F77
16354 # Whether we need hard or soft links.
16355 LN_S=$lt_LN_S
16357 # A BSD-compatible nm program.
16358 NM=$lt_NM
16360 # A symbol stripping program
16361 STRIP=$lt_STRIP
16363 # Used to examine libraries when file_magic_cmd begins "file"
16364 MAGIC_CMD=$MAGIC_CMD
16366 # Used on cygwin: DLL creation program.
16367 DLLTOOL="$DLLTOOL"
16369 # Used on cygwin: object dumper.
16370 OBJDUMP="$OBJDUMP"
16372 # Used on cygwin: assembler.
16373 AS="$AS"
16375 # The name of the directory that contains temporary libtool files.
16376 objdir=$objdir
16378 # How to create reloadable object files.
16379 reload_flag=$lt_reload_flag
16380 reload_cmds=$lt_reload_cmds
16382 # How to pass a linker flag through the compiler.
16383 wl=$lt_lt_prog_compiler_wl_F77
16385 # Object file suffix (normally "o").
16386 objext="$ac_objext"
16388 # Old archive suffix (normally "a").
16389 libext="$libext"
16391 # Shared library suffix (normally ".so").
16392 shrext_cmds='$shrext_cmds'
16394 # Executable file suffix (normally "").
16395 exeext="$exeext"
16397 # Additional compiler flags for building library objects.
16398 pic_flag=$lt_lt_prog_compiler_pic_F77
16399 pic_mode=$pic_mode
16401 # What is the maximum length of a command?
16402 max_cmd_len=$lt_cv_sys_max_cmd_len
16404 # Does compiler simultaneously support -c and -o options?
16405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16407 # Must we lock files when doing compilation?
16408 need_locks=$lt_need_locks
16410 # Do we need the lib prefix for modules?
16411 need_lib_prefix=$need_lib_prefix
16413 # Do we need a version for libraries?
16414 need_version=$need_version
16416 # Whether dlopen is supported.
16417 dlopen_support=$enable_dlopen
16419 # Whether dlopen of programs is supported.
16420 dlopen_self=$enable_dlopen_self
16422 # Whether dlopen of statically linked programs is supported.
16423 dlopen_self_static=$enable_dlopen_self_static
16425 # Compiler flag to prevent dynamic linking.
16426 link_static_flag=$lt_lt_prog_compiler_static_F77
16428 # Compiler flag to turn off builtin functions.
16429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16431 # Compiler flag to allow reflexive dlopens.
16432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16434 # Compiler flag to generate shared objects directly from archives.
16435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16437 # Compiler flag to generate thread-safe objects.
16438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16440 # Library versioning type.
16441 version_type=$version_type
16443 # Format of library name prefix.
16444 libname_spec=$lt_libname_spec
16446 # List of archive names. First name is the real one, the rest are links.
16447 # The last name is the one that the linker finds with -lNAME.
16448 library_names_spec=$lt_library_names_spec
16450 # The coded name of the library, if different from the real name.
16451 soname_spec=$lt_soname_spec
16453 # Commands used to build and install an old-style archive.
16454 RANLIB=$lt_RANLIB
16455 old_archive_cmds=$lt_old_archive_cmds_F77
16456 old_postinstall_cmds=$lt_old_postinstall_cmds
16457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16459 # Create an old-style archive from a shared archive.
16460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16462 # Create a temporary old-style archive to link instead of a shared archive.
16463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16465 # Commands used to build and install a shared archive.
16466 archive_cmds=$lt_archive_cmds_F77
16467 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16468 postinstall_cmds=$lt_postinstall_cmds
16469 postuninstall_cmds=$lt_postuninstall_cmds
16471 # Commands used to build a loadable module (assumed same as above if empty)
16472 module_cmds=$lt_module_cmds_F77
16473 module_expsym_cmds=$lt_module_expsym_cmds_F77
16475 # Commands to strip libraries.
16476 old_striplib=$lt_old_striplib
16477 striplib=$lt_striplib
16479 # Dependencies to place before the objects being linked to create a
16480 # shared library.
16481 predep_objects=$lt_predep_objects_F77
16483 # Dependencies to place after the objects being linked to create a
16484 # shared library.
16485 postdep_objects=$lt_postdep_objects_F77
16487 # Dependencies to place before the objects being linked to create a
16488 # shared library.
16489 predeps=$lt_predeps_F77
16491 # Dependencies to place after the objects being linked to create a
16492 # shared library.
16493 postdeps=$lt_postdeps_F77
16495 # The library search path used internally by the compiler when linking
16496 # a shared library.
16497 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16499 # Method to check whether dependent libraries are shared objects.
16500 deplibs_check_method=$lt_deplibs_check_method
16502 # Command to use when deplibs_check_method == file_magic.
16503 file_magic_cmd=$lt_file_magic_cmd
16505 # Flag that allows shared libraries with undefined symbols to be built.
16506 allow_undefined_flag=$lt_allow_undefined_flag_F77
16508 # Flag that forces no undefined symbols.
16509 no_undefined_flag=$lt_no_undefined_flag_F77
16511 # Commands used to finish a libtool library installation in a directory.
16512 finish_cmds=$lt_finish_cmds
16514 # Same as above, but a single script fragment to be evaled but not shown.
16515 finish_eval=$lt_finish_eval
16517 # Take the output of nm and produce a listing of raw symbols and C names.
16518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16520 # Transform the output of nm in a proper C declaration
16521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16523 # Transform the output of nm in a C name address pair
16524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16526 # This is the shared library runtime path variable.
16527 runpath_var=$runpath_var
16529 # This is the shared library path variable.
16530 shlibpath_var=$shlibpath_var
16532 # Is shlibpath searched before the hard-coded library search path?
16533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16535 # How to hardcode a shared library path into an executable.
16536 hardcode_action=$hardcode_action_F77
16538 # Whether we should hardcode library paths into libraries.
16539 hardcode_into_libs=$hardcode_into_libs
16541 # Flag to hardcode \$libdir into a binary during linking.
16542 # This must work even if \$libdir does not exist.
16543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16545 # If ld is used when linking, flag to hardcode \$libdir into
16546 # a binary during linking. This must work even if \$libdir does
16547 # not exist.
16548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16550 # Whether we need a single -rpath flag with a separated argument.
16551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16554 # resulting binary.
16555 hardcode_direct=$hardcode_direct_F77
16557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16558 # resulting binary.
16559 hardcode_minus_L=$hardcode_minus_L_F77
16561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16562 # the resulting binary.
16563 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16565 # Set to yes if building a shared library automatically hardcodes DIR into the library
16566 # and all subsequent libraries and executables linked against it.
16567 hardcode_automatic=$hardcode_automatic_F77
16569 # Variables whose values should be saved in libtool wrapper scripts and
16570 # restored at relink time.
16571 variables_saved_for_relink="$variables_saved_for_relink"
16573 # Whether libtool must link a program against all its dependency libraries.
16574 link_all_deplibs=$link_all_deplibs_F77
16576 # Compile-time system search path for libraries
16577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16579 # Run-time system search path for libraries
16580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16582 # Fix the shell variable \$srcfile for the compiler.
16583 fix_srcfile_path=$lt_fix_srcfile_path
16585 # Set to yes if exported symbols are required.
16586 always_export_symbols=$always_export_symbols_F77
16588 # The commands to list exported symbols.
16589 export_symbols_cmds=$lt_export_symbols_cmds_F77
16591 # The commands to extract the exported symbol list from a shared archive.
16592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16594 # Symbols that should not be listed in the preloaded symbols.
16595 exclude_expsyms=$lt_exclude_expsyms_F77
16597 # Symbols that must always be exported.
16598 include_expsyms=$lt_include_expsyms_F77
16600 # ### END LIBTOOL TAG CONFIG: $tagname
16602 __EOF__
16605 else
16606 # If there is no Makefile yet, we rely on a make rule to execute
16607 # `config.status --recheck' to rerun these tests and create the
16608 # libtool script then.
16609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16610 if test -f "$ltmain_in"; then
16611 test -f Makefile && make "$ltmain"
16616 ac_ext=c
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16622 CC="$lt_save_CC"
16624 else
16625 tagname=""
16629 GCJ)
16630 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16633 # Source file extension for Java test sources.
16634 ac_ext=java
16636 # Object file extension for compiled Java test sources.
16637 objext=o
16638 objext_GCJ=$objext
16640 # Code to be used in simple compile tests
16641 lt_simple_compile_test_code="class foo {}"
16643 # Code to be used in simple link tests
16644 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16648 # If no C compiler was specified, use CC.
16649 LTCC=${LTCC-"$CC"}
16651 # If no C compiler flags were specified, use CFLAGS.
16652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16654 # Allow CC to be a program name with arguments.
16655 compiler=$CC
16658 # save warnings/boilerplate of simple test code
16659 ac_outfile=conftest.$ac_objext
16660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16662 _lt_compiler_boilerplate=`cat conftest.err`
16663 $rm conftest*
16665 ac_outfile=conftest.$ac_objext
16666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16668 _lt_linker_boilerplate=`cat conftest.err`
16669 $rm conftest*
16672 # Allow CC to be a program name with arguments.
16673 lt_save_CC="$CC"
16674 CC=${GCJ-"gcj"}
16675 compiler=$CC
16676 compiler_GCJ=$CC
16677 for cc_temp in $compiler""; do
16678 case $cc_temp in
16679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16681 \-*) ;;
16682 *) break;;
16683 esac
16684 done
16685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16688 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16689 archive_cmds_need_lc_GCJ=no
16691 old_archive_cmds_GCJ=$old_archive_cmds
16694 lt_prog_compiler_no_builtin_flag_GCJ=
16696 if test "$GCC" = yes; then
16697 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16700 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16701 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16702 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705 lt_cv_prog_compiler_rtti_exceptions=no
16706 ac_outfile=conftest.$ac_objext
16707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16708 lt_compiler_flag="-fno-rtti -fno-exceptions"
16709 # Insert the option either (1) after the last *FLAGS variable, or
16710 # (2) before a word containing "conftest.", or (3) at the end.
16711 # Note that $ac_compile itself does not contain backslashes and begins
16712 # with a dollar sign (not a hyphen), so the echo should work correctly.
16713 # The option is referenced via a variable to avoid confusing sed.
16714 lt_compile=`echo "$ac_compile" | $SED \
16715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717 -e 's:$: $lt_compiler_flag:'`
16718 (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
16719 (eval "$lt_compile" 2>conftest.err)
16720 ac_status=$?
16721 cat conftest.err >&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 if (exit $ac_status) && test -s "$ac_outfile"; then
16724 # The compiler can only warn and ignore the option if not recognized
16725 # So say no if there are warnings other than the usual output.
16726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16729 lt_cv_prog_compiler_rtti_exceptions=yes
16732 $rm conftest*
16735 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16736 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16739 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16740 else
16746 lt_prog_compiler_wl_GCJ=
16747 lt_prog_compiler_pic_GCJ=
16748 lt_prog_compiler_static_GCJ=
16750 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16753 if test "$GCC" = yes; then
16754 lt_prog_compiler_wl_GCJ='-Wl,'
16755 lt_prog_compiler_static_GCJ='-static'
16757 case $host_os in
16758 aix*)
16759 # All AIX code is PIC.
16760 if test "$host_cpu" = ia64; then
16761 # AIX 5 now supports IA64 processor
16762 lt_prog_compiler_static_GCJ='-Bstatic'
16766 amigaos*)
16767 # FIXME: we need at least 68020 code to build shared libraries, but
16768 # adding the `-m68020' flag to GCC prevents building anything better,
16769 # like `-m68040'.
16770 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774 # PIC is the default for these OSes.
16777 mingw* | cygwin* | pw32* | os2*)
16778 # This hack is so that the source file can tell whether it is being
16779 # built for inclusion in a dll (and should export symbols for example).
16780 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16781 # (--disable-auto-import) libraries
16782 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16785 darwin* | rhapsody*)
16786 # PIC is the default on this platform
16787 # Common symbols not allowed in MH_DYLIB files
16788 lt_prog_compiler_pic_GCJ='-fno-common'
16791 interix[3-9]*)
16792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16793 # Instead, we relocate shared libraries at runtime.
16796 msdosdjgpp*)
16797 # Just because we use GCC doesn't mean we suddenly get shared libraries
16798 # on systems that don't support them.
16799 lt_prog_compiler_can_build_shared_GCJ=no
16800 enable_shared=no
16803 sysv4*MP*)
16804 if test -d /usr/nec; then
16805 lt_prog_compiler_pic_GCJ=-Kconform_pic
16809 hpux*)
16810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811 # not for PA HP-UX.
16812 case $host_cpu in
16813 hppa*64*|ia64*)
16814 # +Z the default
16817 lt_prog_compiler_pic_GCJ='-fPIC'
16819 esac
16823 lt_prog_compiler_pic_GCJ='-fPIC'
16825 esac
16826 else
16827 # PORTME Check for flag to pass linker flags through the system compiler.
16828 case $host_os in
16829 aix*)
16830 lt_prog_compiler_wl_GCJ='-Wl,'
16831 if test "$host_cpu" = ia64; then
16832 # AIX 5 now supports IA64 processor
16833 lt_prog_compiler_static_GCJ='-Bstatic'
16834 else
16835 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16838 darwin*)
16839 # PIC is the default on this platform
16840 # Common symbols not allowed in MH_DYLIB files
16841 case $cc_basename in
16842 xlc*)
16843 lt_prog_compiler_pic_GCJ='-qnocommon'
16844 lt_prog_compiler_wl_GCJ='-Wl,'
16846 esac
16849 mingw* | cygwin* | pw32* | os2*)
16850 # This hack is so that the source file can tell whether it is being
16851 # built for inclusion in a dll (and should export symbols for example).
16852 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16855 hpux9* | hpux10* | hpux11*)
16856 lt_prog_compiler_wl_GCJ='-Wl,'
16857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16858 # not for PA HP-UX.
16859 case $host_cpu in
16860 hppa*64*|ia64*)
16861 # +Z the default
16864 lt_prog_compiler_pic_GCJ='+Z'
16866 esac
16867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16868 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16871 irix5* | irix6* | nonstopux*)
16872 lt_prog_compiler_wl_GCJ='-Wl,'
16873 # PIC (with -KPIC) is the default.
16874 lt_prog_compiler_static_GCJ='-non_shared'
16877 newsos6)
16878 lt_prog_compiler_pic_GCJ='-KPIC'
16879 lt_prog_compiler_static_GCJ='-Bstatic'
16882 linux* | k*bsd*-gnu)
16883 case $cc_basename in
16884 icc* | ecc*)
16885 lt_prog_compiler_wl_GCJ='-Wl,'
16886 lt_prog_compiler_pic_GCJ='-KPIC'
16887 lt_prog_compiler_static_GCJ='-static'
16889 pgcc* | pgf77* | pgf90* | pgf95*)
16890 # Portland Group compilers (*not* the Pentium gcc compiler,
16891 # which looks to be a dead project)
16892 lt_prog_compiler_wl_GCJ='-Wl,'
16893 lt_prog_compiler_pic_GCJ='-fpic'
16894 lt_prog_compiler_static_GCJ='-Bstatic'
16896 ccc*)
16897 lt_prog_compiler_wl_GCJ='-Wl,'
16898 # All Alpha code is PIC.
16899 lt_prog_compiler_static_GCJ='-non_shared'
16902 case `$CC -V 2>&1 | sed 5q` in
16903 *Sun\ C*)
16904 # Sun C 5.9
16905 lt_prog_compiler_pic_GCJ='-KPIC'
16906 lt_prog_compiler_static_GCJ='-Bstatic'
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16909 *Sun\ F*)
16910 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16911 lt_prog_compiler_pic_GCJ='-KPIC'
16912 lt_prog_compiler_static_GCJ='-Bstatic'
16913 lt_prog_compiler_wl_GCJ=''
16915 esac
16917 esac
16920 osf3* | osf4* | osf5*)
16921 lt_prog_compiler_wl_GCJ='-Wl,'
16922 # All OSF/1 code is PIC.
16923 lt_prog_compiler_static_GCJ='-non_shared'
16926 rdos*)
16927 lt_prog_compiler_static_GCJ='-non_shared'
16930 solaris*)
16931 lt_prog_compiler_pic_GCJ='-KPIC'
16932 lt_prog_compiler_static_GCJ='-Bstatic'
16933 case $cc_basename in
16934 f77* | f90* | f95*)
16935 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16937 lt_prog_compiler_wl_GCJ='-Wl,';;
16938 esac
16941 sunos4*)
16942 lt_prog_compiler_wl_GCJ='-Qoption ld '
16943 lt_prog_compiler_pic_GCJ='-PIC'
16944 lt_prog_compiler_static_GCJ='-Bstatic'
16947 sysv4 | sysv4.2uw2* | sysv4.3*)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 lt_prog_compiler_pic_GCJ='-KPIC'
16950 lt_prog_compiler_static_GCJ='-Bstatic'
16953 sysv4*MP*)
16954 if test -d /usr/nec ;then
16955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16961 lt_prog_compiler_wl_GCJ='-Wl,'
16962 lt_prog_compiler_pic_GCJ='-KPIC'
16963 lt_prog_compiler_static_GCJ='-Bstatic'
16966 unicos*)
16967 lt_prog_compiler_wl_GCJ='-Wl,'
16968 lt_prog_compiler_can_build_shared_GCJ=no
16971 uts4*)
16972 lt_prog_compiler_pic_GCJ='-pic'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16977 lt_prog_compiler_can_build_shared_GCJ=no
16979 esac
16982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16983 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16986 # Check to make sure the PIC flag actually works.
16988 if test -n "$lt_prog_compiler_pic_GCJ"; then
16990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16992 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995 lt_prog_compiler_pic_works_GCJ=no
16996 ac_outfile=conftest.$ac_objext
16997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16998 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16999 # Insert the option either (1) after the last *FLAGS variable, or
17000 # (2) before a word containing "conftest.", or (3) at the end.
17001 # Note that $ac_compile itself does not contain backslashes and begins
17002 # with a dollar sign (not a hyphen), so the echo should work correctly.
17003 # The option is referenced via a variable to avoid confusing sed.
17004 lt_compile=`echo "$ac_compile" | $SED \
17005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17007 -e 's:$: $lt_compiler_flag:'`
17008 (eval echo "\"\$as_me:17008: $lt_compile\"" >&5)
17009 (eval "$lt_compile" 2>conftest.err)
17010 ac_status=$?
17011 cat conftest.err >&5
17012 echo "$as_me:17012: \$? = $ac_status" >&5
17013 if (exit $ac_status) && test -s "$ac_outfile"; then
17014 # The compiler can only warn and ignore the option if not recognized
17015 # So say no if there are warnings other than the usual output.
17016 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17019 lt_prog_compiler_pic_works_GCJ=yes
17022 $rm conftest*
17025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17026 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17028 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17029 case $lt_prog_compiler_pic_GCJ in
17030 "" | " "*) ;;
17031 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17032 esac
17033 else
17034 lt_prog_compiler_pic_GCJ=
17035 lt_prog_compiler_can_build_shared_GCJ=no
17039 case $host_os in
17040 # For platforms which do not support PIC, -DPIC is meaningless:
17041 *djgpp*)
17042 lt_prog_compiler_pic_GCJ=
17045 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17047 esac
17050 # Check to make sure the static flag actually works.
17052 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17053 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17055 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058 lt_prog_compiler_static_works_GCJ=no
17059 save_LDFLAGS="$LDFLAGS"
17060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17063 # The linker can only warn and ignore the option if not recognized
17064 # So say no if there are warnings
17065 if test -s conftest.err; then
17066 # Append any errors to the config.log.
17067 cat conftest.err 1>&5
17068 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17070 if diff conftest.exp conftest.er2 >/dev/null; then
17071 lt_prog_compiler_static_works_GCJ=yes
17073 else
17074 lt_prog_compiler_static_works_GCJ=yes
17077 $rm conftest*
17078 LDFLAGS="$save_LDFLAGS"
17081 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17082 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17084 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17086 else
17087 lt_prog_compiler_static_GCJ=
17091 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17092 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17093 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096 lt_cv_prog_compiler_c_o_GCJ=no
17097 $rm -r conftest 2>/dev/null
17098 mkdir conftest
17099 cd conftest
17100 mkdir out
17101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17103 lt_compiler_flag="-o out/conftest2.$ac_objext"
17104 # Insert the option either (1) after the last *FLAGS variable, or
17105 # (2) before a word containing "conftest.", or (3) at the end.
17106 # Note that $ac_compile itself does not contain backslashes and begins
17107 # with a dollar sign (not a hyphen), so the echo should work correctly.
17108 lt_compile=`echo "$ac_compile" | $SED \
17109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17111 -e 's:$: $lt_compiler_flag:'`
17112 (eval echo "\"\$as_me:17112: $lt_compile\"" >&5)
17113 (eval "$lt_compile" 2>out/conftest.err)
17114 ac_status=$?
17115 cat out/conftest.err >&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17118 then
17119 # The compiler can only warn and ignore the option if not recognized
17120 # So say no if there are warnings
17121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17124 lt_cv_prog_compiler_c_o_GCJ=yes
17127 chmod u+w . 2>&5
17128 $rm conftest*
17129 # SGI C++ compiler will create directory out/ii_files/ for
17130 # template instantiation
17131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17132 $rm out/* && rmdir out
17133 cd ..
17134 rmdir conftest
17135 $rm conftest*
17138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17142 hard_links="nottested"
17143 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17144 # do not overwrite the value of need_locks provided by the user
17145 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17147 hard_links=yes
17148 $rm conftest*
17149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17150 touch conftest.a
17151 ln conftest.a conftest.b 2>&5 || hard_links=no
17152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153 { echo "$as_me:$LINENO: result: $hard_links" >&5
17154 echo "${ECHO_T}$hard_links" >&6; }
17155 if test "$hard_links" = no; then
17156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17158 need_locks=warn
17160 else
17161 need_locks=no
17164 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17167 runpath_var=
17168 allow_undefined_flag_GCJ=
17169 enable_shared_with_static_runtimes_GCJ=no
17170 archive_cmds_GCJ=
17171 archive_expsym_cmds_GCJ=
17172 old_archive_From_new_cmds_GCJ=
17173 old_archive_from_expsyms_cmds_GCJ=
17174 export_dynamic_flag_spec_GCJ=
17175 whole_archive_flag_spec_GCJ=
17176 thread_safe_flag_spec_GCJ=
17177 hardcode_libdir_flag_spec_GCJ=
17178 hardcode_libdir_flag_spec_ld_GCJ=
17179 hardcode_libdir_separator_GCJ=
17180 hardcode_direct_GCJ=no
17181 hardcode_minus_L_GCJ=no
17182 hardcode_shlibpath_var_GCJ=unsupported
17183 link_all_deplibs_GCJ=unknown
17184 hardcode_automatic_GCJ=no
17185 module_cmds_GCJ=
17186 module_expsym_cmds_GCJ=
17187 always_export_symbols_GCJ=no
17188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17189 # include_expsyms should be a list of space-separated symbols to be *always*
17190 # included in the symbol list
17191 include_expsyms_GCJ=
17192 # exclude_expsyms can be an extended regexp of symbols to exclude
17193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17195 # as well as any symbol that contains `d'.
17196 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17198 # platforms (ab)use it in PIC code, but their linkers get confused if
17199 # the symbol is explicitly referenced. Since portable code cannot
17200 # rely on this symbol name, it's probably fine to never include it in
17201 # preloaded symbol tables.
17202 extract_expsyms_cmds=
17203 # Just being paranoid about ensuring that cc_basename is set.
17204 for cc_temp in $compiler""; do
17205 case $cc_temp in
17206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17208 \-*) ;;
17209 *) break;;
17210 esac
17211 done
17212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17214 case $host_os in
17215 cygwin* | mingw* | pw32*)
17216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17217 # When not using gcc, we currently assume that we are using
17218 # Microsoft Visual C++.
17219 if test "$GCC" != yes; then
17220 with_gnu_ld=no
17223 interix*)
17224 # we just hope/assume this is gcc and not c89 (= MSVC++)
17225 with_gnu_ld=yes
17227 openbsd*)
17228 with_gnu_ld=no
17230 esac
17232 ld_shlibs_GCJ=yes
17233 if test "$with_gnu_ld" = yes; then
17234 # If archive_cmds runs LD, not CC, wlarc should be empty
17235 wlarc='${wl}'
17237 # Set some defaults for GNU ld with shared library support. These
17238 # are reset later if shared libraries are not supported. Putting them
17239 # here allows them to be overridden if necessary.
17240 runpath_var=LD_RUN_PATH
17241 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17242 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17243 # ancient GNU ld didn't support --whole-archive et. al.
17244 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17245 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17246 else
17247 whole_archive_flag_spec_GCJ=
17249 supports_anon_versioning=no
17250 case `$LD -v 2>/dev/null` in
17251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17254 *\ 2.11.*) ;; # other 2.11 versions
17255 *) supports_anon_versioning=yes ;;
17256 esac
17258 # See if GNU ld supports shared libraries.
17259 case $host_os in
17260 aix3* | aix4* | aix5*)
17261 # On AIX/PPC, the GNU linker is very broken
17262 if test "$host_cpu" != ia64; then
17263 ld_shlibs_GCJ=no
17264 cat <<EOF 1>&2
17266 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17267 *** to be unable to reliably create shared libraries on AIX.
17268 *** Therefore, libtool is disabling shared libraries support. If you
17269 *** really care for shared libraries, you may want to modify your PATH
17270 *** so that a non-GNU linker is found, and then restart.
17276 amigaos*)
17277 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)'
17278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279 hardcode_minus_L_GCJ=yes
17281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17282 # that the semantics of dynamic libraries on AmigaOS, at least up
17283 # to version 4, is to share data among multiple programs linked
17284 # with the same dynamic library. Since this doesn't match the
17285 # behavior of shared libraries on other platforms, we can't use
17286 # them.
17287 ld_shlibs_GCJ=no
17290 beos*)
17291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17292 allow_undefined_flag_GCJ=unsupported
17293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17294 # support --undefined. This deserves some investigation. FIXME
17295 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17296 else
17297 ld_shlibs_GCJ=no
17301 cygwin* | mingw* | pw32*)
17302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17303 # as there is no search path for DLLs.
17304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305 allow_undefined_flag_GCJ=unsupported
17306 always_export_symbols_GCJ=no
17307 enable_shared_with_static_runtimes_GCJ=yes
17308 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17311 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17312 # If the export-symbols file already is a .def file (1st line
17313 # is EXPORTS), use it as is; otherwise, prepend...
17314 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17315 cp $export_symbols $output_objdir/$soname.def;
17316 else
17317 echo EXPORTS > $output_objdir/$soname.def;
17318 cat $export_symbols >> $output_objdir/$soname.def;
17320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17321 else
17322 ld_shlibs_GCJ=no
17326 interix[3-9]*)
17327 hardcode_direct_GCJ=no
17328 hardcode_shlibpath_var_GCJ=no
17329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17330 export_dynamic_flag_spec_GCJ='${wl}-E'
17331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17332 # Instead, shared libraries are loaded at an image base (0x10000000 by
17333 # default) and relocated if they conflict, which is a slow very memory
17334 # consuming and fragmenting process. To avoid this, we pick a random,
17335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17337 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'
17338 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'
17341 gnu* | linux* | k*bsd*-gnu)
17342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17343 tmp_addflag=
17344 case $cc_basename,$host_cpu in
17345 pgcc*) # Portland Group C compiler
17346 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'
17347 tmp_addflag=' $pic_flag'
17349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17350 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'
17351 tmp_addflag=' $pic_flag -Mnomain' ;;
17352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17353 tmp_addflag=' -i_dynamic' ;;
17354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17355 tmp_addflag=' -i_dynamic -nofor_main' ;;
17356 ifc* | ifort*) # Intel Fortran compiler
17357 tmp_addflag=' -nofor_main' ;;
17358 esac
17359 case `$CC -V 2>&1 | sed 5q` in
17360 *Sun\ C*) # Sun C 5.9
17361 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'
17362 tmp_sharedflag='-G' ;;
17363 *Sun\ F*) # Sun Fortran 8.3
17364 tmp_sharedflag='-G' ;;
17366 tmp_sharedflag='-shared' ;;
17367 esac
17368 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17370 if test $supports_anon_versioning = yes; then
17371 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17372 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17373 $echo "local: *; };" >> $output_objdir/$libname.ver~
17374 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17376 link_all_deplibs_GCJ=no
17377 else
17378 ld_shlibs_GCJ=no
17382 netbsd* | netbsdelf*-gnu)
17383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17384 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17385 wlarc=
17386 else
17387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17388 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392 solaris*)
17393 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17394 ld_shlibs_GCJ=no
17395 cat <<EOF 1>&2
17397 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17398 *** create shared libraries on Solaris systems. Therefore, libtool
17399 *** is disabling shared libraries support. We urge you to upgrade GNU
17400 *** binutils to release 2.9.1 or newer. Another option is to modify
17401 *** your PATH or compiler configuration so that the native linker is
17402 *** used, and then restart.
17405 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17406 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17407 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17408 else
17409 ld_shlibs_GCJ=no
17413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17414 case `$LD -v 2>&1` in
17415 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17416 ld_shlibs_GCJ=no
17417 cat <<_LT_EOF 1>&2
17419 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17420 *** reliably create shared libraries on SCO systems. Therefore, libtool
17421 *** is disabling shared libraries support. We urge you to upgrade GNU
17422 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17423 *** your PATH or compiler configuration so that the native linker is
17424 *** used, and then restart.
17426 _LT_EOF
17429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17430 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17431 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17432 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17433 else
17434 ld_shlibs_GCJ=no
17437 esac
17440 sunos4*)
17441 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17442 wlarc=
17443 hardcode_direct_GCJ=yes
17444 hardcode_shlibpath_var_GCJ=no
17448 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17449 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17451 else
17452 ld_shlibs_GCJ=no
17455 esac
17457 if test "$ld_shlibs_GCJ" = no; then
17458 runpath_var=
17459 hardcode_libdir_flag_spec_GCJ=
17460 export_dynamic_flag_spec_GCJ=
17461 whole_archive_flag_spec_GCJ=
17463 else
17464 # PORTME fill in a description of your system's linker (not GNU ld)
17465 case $host_os in
17466 aix3*)
17467 allow_undefined_flag_GCJ=unsupported
17468 always_export_symbols_GCJ=yes
17469 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'
17470 # Note: this linker hardcodes the directories in LIBPATH if there
17471 # are no directories specified by -L.
17472 hardcode_minus_L_GCJ=yes
17473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17474 # Neither direct hardcoding nor static linking is supported with a
17475 # broken collect2.
17476 hardcode_direct_GCJ=unsupported
17480 aix4* | aix5*)
17481 if test "$host_cpu" = ia64; then
17482 # On IA64, the linker does run time linking by default, so we don't
17483 # have to do anything special.
17484 aix_use_runtimelinking=no
17485 exp_sym_flag='-Bexport'
17486 no_entry_flag=""
17487 else
17488 # If we're using GNU nm, then we don't want the "-C" option.
17489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17490 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17491 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'
17492 else
17493 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'
17495 aix_use_runtimelinking=no
17497 # Test if we are trying to use run time linking or normal
17498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17499 # need to do runtime linking.
17500 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17501 for ld_flag in $LDFLAGS; do
17502 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17503 aix_use_runtimelinking=yes
17504 break
17506 done
17508 esac
17510 exp_sym_flag='-bexport'
17511 no_entry_flag='-bnoentry'
17514 # When large executables or shared objects are built, AIX ld can
17515 # have problems creating the table of contents. If linking a library
17516 # or program results in "error TOC overflow" add -mminimal-toc to
17517 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17518 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17520 archive_cmds_GCJ=''
17521 hardcode_direct_GCJ=yes
17522 hardcode_libdir_separator_GCJ=':'
17523 link_all_deplibs_GCJ=yes
17525 if test "$GCC" = yes; then
17526 case $host_os in aix4.[012]|aix4.[012].*)
17527 # We only want to do this on AIX 4.2 and lower, the check
17528 # below for broken collect2 doesn't work under 4.3+
17529 collect2name=`${CC} -print-prog-name=collect2`
17530 if test -f "$collect2name" && \
17531 strings "$collect2name" | grep resolve_lib_name >/dev/null
17532 then
17533 # We have reworked collect2
17535 else
17536 # We have old collect2
17537 hardcode_direct_GCJ=unsupported
17538 # It fails to find uninstalled libraries when the uninstalled
17539 # path is not listed in the libpath. Setting hardcode_minus_L
17540 # to unsupported forces relinking
17541 hardcode_minus_L_GCJ=yes
17542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543 hardcode_libdir_separator_GCJ=
17546 esac
17547 shared_flag='-shared'
17548 if test "$aix_use_runtimelinking" = yes; then
17549 shared_flag="$shared_flag "'${wl}-G'
17551 else
17552 # not using gcc
17553 if test "$host_cpu" = ia64; then
17554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17555 # chokes on -Wl,-G. The following line is correct:
17556 shared_flag='-G'
17557 else
17558 if test "$aix_use_runtimelinking" = yes; then
17559 shared_flag='${wl}-G'
17560 else
17561 shared_flag='${wl}-bM:SRE'
17566 # It seems that -bexpall does not export symbols beginning with
17567 # underscore (_), so it is better to generate a list of symbols to export.
17568 always_export_symbols_GCJ=yes
17569 if test "$aix_use_runtimelinking" = yes; then
17570 # Warning - without using the other runtime loading flags (-brtl),
17571 # -berok will link without error, but may produce a broken library.
17572 allow_undefined_flag_GCJ='-berok'
17573 # Determine the default libpath from the value encoded in an empty executable.
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17582 main ()
17586 return 0;
17588 _ACEOF
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17597 ac_status=$?
17598 grep -v '^ *+' conftest.er1 >conftest.err
17599 rm -f conftest.er1
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } && {
17603 test -z "$ac_c_werror_flag" ||
17604 test ! -s conftest.err
17605 } && test -s conftest$ac_exeext &&
17606 $as_test_x conftest$ac_exeext; then
17608 lt_aix_libpath_sed='
17609 /Import File Strings/,/^$/ {
17610 /^0/ {
17611 s/^0 *\(.*\)$/\1/
17615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17616 # Check for a 64-bit object if we didn't find anything.
17617 if test -z "$aix_libpath"; then
17618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17620 else
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17628 conftest$ac_exeext conftest.$ac_ext
17629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17631 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17632 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"
17633 else
17634 if test "$host_cpu" = ia64; then
17635 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17636 allow_undefined_flag_GCJ="-z nodefs"
17637 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"
17638 else
17639 # Determine the default libpath from the value encoded in an empty executable.
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17648 main ()
17652 return 0;
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest$ac_exeext &&
17672 $as_test_x conftest$ac_exeext; then
17674 lt_aix_libpath_sed='
17675 /Import File Strings/,/^$/ {
17676 /^0/ {
17677 s/^0 *\(.*\)$/\1/
17681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17682 # Check for a 64-bit object if we didn't find anything.
17683 if test -z "$aix_libpath"; then
17684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17686 else
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17694 conftest$ac_exeext conftest.$ac_ext
17695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17697 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17698 # Warning - without using the other run time loading flags,
17699 # -berok will link without error, but may produce a broken library.
17700 no_undefined_flag_GCJ=' ${wl}-bernotok'
17701 allow_undefined_flag_GCJ=' ${wl}-berok'
17702 # Exported symbols can be pulled into shared objects from archives
17703 whole_archive_flag_spec_GCJ='$convenience'
17704 archive_cmds_need_lc_GCJ=yes
17705 # This is similar to how AIX traditionally builds its shared libraries.
17706 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'
17711 amigaos*)
17712 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)'
17713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714 hardcode_minus_L_GCJ=yes
17715 # see comment about different semantics on the GNU ld section
17716 ld_shlibs_GCJ=no
17719 bsdi[45]*)
17720 export_dynamic_flag_spec_GCJ=-rdynamic
17723 cygwin* | mingw* | pw32*)
17724 # When not using gcc, we currently assume that we are using
17725 # Microsoft Visual C++.
17726 # hardcode_libdir_flag_spec is actually meaningless, as there is
17727 # no search path for DLLs.
17728 hardcode_libdir_flag_spec_GCJ=' '
17729 allow_undefined_flag_GCJ=unsupported
17730 # Tell ltmain to make .lib files, not .a files.
17731 libext=lib
17732 # Tell ltmain to make .dll files, not .so files.
17733 shrext_cmds=".dll"
17734 # FIXME: Setting linknames here is a bad hack.
17735 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17736 # The linker will automatically build a .lib file if we build a DLL.
17737 old_archive_From_new_cmds_GCJ='true'
17738 # FIXME: Should let the user specify the lib program.
17739 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17740 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17741 enable_shared_with_static_runtimes_GCJ=yes
17744 darwin* | rhapsody*)
17745 case $host_os in
17746 rhapsody* | darwin1.[012])
17747 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17749 *) # Darwin 1.3 on
17750 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17751 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17752 else
17753 case ${MACOSX_DEPLOYMENT_TARGET} in
17754 10.[012])
17755 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17757 10.*)
17758 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17760 esac
17763 esac
17764 archive_cmds_need_lc_GCJ=no
17765 hardcode_direct_GCJ=no
17766 hardcode_automatic_GCJ=yes
17767 hardcode_shlibpath_var_GCJ=unsupported
17768 whole_archive_flag_spec_GCJ=''
17769 link_all_deplibs_GCJ=yes
17770 if test "$GCC" = yes ; then
17771 output_verbose_link_cmd='echo'
17772 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17773 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17775 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}'
17776 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}'
17777 else
17778 case $cc_basename in
17779 xlc*)
17780 output_verbose_link_cmd='echo'
17781 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17782 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17783 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17784 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}'
17785 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}'
17788 ld_shlibs_GCJ=no
17790 esac
17794 dgux*)
17795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797 hardcode_shlibpath_var_GCJ=no
17800 freebsd1*)
17801 ld_shlibs_GCJ=no
17804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17805 # support. Future versions do this automatically, but an explicit c++rt0.o
17806 # does not break anything, and helps significantly (at the cost of a little
17807 # extra space).
17808 freebsd2.2*)
17809 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17810 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17811 hardcode_direct_GCJ=yes
17812 hardcode_shlibpath_var_GCJ=no
17815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17816 freebsd2*)
17817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17818 hardcode_direct_GCJ=yes
17819 hardcode_minus_L_GCJ=yes
17820 hardcode_shlibpath_var_GCJ=no
17823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17824 freebsd* | dragonfly*)
17825 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827 hardcode_direct_GCJ=yes
17828 hardcode_shlibpath_var_GCJ=no
17831 hpux9*)
17832 if test "$GCC" = yes; then
17833 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'
17834 else
17835 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'
17837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17838 hardcode_libdir_separator_GCJ=:
17839 hardcode_direct_GCJ=yes
17841 # hardcode_minus_L: Not really in the search PATH,
17842 # but as the default location of the library.
17843 hardcode_minus_L_GCJ=yes
17844 export_dynamic_flag_spec_GCJ='${wl}-E'
17847 hpux10*)
17848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17849 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17850 else
17851 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17853 if test "$with_gnu_ld" = no; then
17854 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17855 hardcode_libdir_separator_GCJ=:
17857 hardcode_direct_GCJ=yes
17858 export_dynamic_flag_spec_GCJ='${wl}-E'
17860 # hardcode_minus_L: Not really in the search PATH,
17861 # but as the default location of the library.
17862 hardcode_minus_L_GCJ=yes
17866 hpux11*)
17867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17868 case $host_cpu in
17869 hppa*64*)
17870 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 ia64*)
17873 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17876 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17878 esac
17879 else
17880 case $host_cpu in
17881 hppa*64*)
17882 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17884 ia64*)
17885 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17890 esac
17892 if test "$with_gnu_ld" = no; then
17893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17894 hardcode_libdir_separator_GCJ=:
17896 case $host_cpu in
17897 hppa*64*|ia64*)
17898 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17899 hardcode_direct_GCJ=no
17900 hardcode_shlibpath_var_GCJ=no
17903 hardcode_direct_GCJ=yes
17904 export_dynamic_flag_spec_GCJ='${wl}-E'
17906 # hardcode_minus_L: Not really in the search PATH,
17907 # but as the default location of the library.
17908 hardcode_minus_L_GCJ=yes
17910 esac
17914 irix5* | irix6* | nonstopux*)
17915 if test "$GCC" = yes; then
17916 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'
17917 else
17918 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'
17919 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17922 hardcode_libdir_separator_GCJ=:
17923 link_all_deplibs_GCJ=yes
17926 netbsd* | netbsdelf*-gnu)
17927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17928 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17929 else
17930 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17932 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933 hardcode_direct_GCJ=yes
17934 hardcode_shlibpath_var_GCJ=no
17937 newsos6)
17938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct_GCJ=yes
17940 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941 hardcode_libdir_separator_GCJ=:
17942 hardcode_shlibpath_var_GCJ=no
17945 openbsd*)
17946 if test -f /usr/libexec/ld.so; then
17947 hardcode_direct_GCJ=yes
17948 hardcode_shlibpath_var_GCJ=no
17949 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17950 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17951 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17952 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17953 export_dynamic_flag_spec_GCJ='${wl}-E'
17954 else
17955 case $host_os in
17956 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17961 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17964 esac
17966 else
17967 ld_shlibs_GCJ=no
17971 os2*)
17972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973 hardcode_minus_L_GCJ=yes
17974 allow_undefined_flag_GCJ=unsupported
17975 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'
17976 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17979 osf3*)
17980 if test "$GCC" = yes; then
17981 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17982 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'
17983 else
17984 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17985 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'
17987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17988 hardcode_libdir_separator_GCJ=:
17991 osf4* | osf5*) # as osf3* with the addition of -msym flag
17992 if test "$GCC" = yes; then
17993 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994 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'
17995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17996 else
17997 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17998 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'
17999 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~
18000 $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'
18002 # Both c and cxx compiler support -rpath directly
18003 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18005 hardcode_libdir_separator_GCJ=:
18008 solaris*)
18009 no_undefined_flag_GCJ=' -z text'
18010 if test "$GCC" = yes; then
18011 wlarc='${wl}'
18012 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18014 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18015 else
18016 wlarc=''
18017 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18022 hardcode_shlibpath_var_GCJ=no
18023 case $host_os in
18024 solaris2.[0-5] | solaris2.[0-5].*) ;;
18026 # The compiler driver will combine and reorder linker options,
18027 # but understands `-z linker_flag'. GCC discards it without `$wl',
18028 # but is careful enough not to reorder.
18029 # Supported since Solaris 2.6 (maybe 2.5.1?)
18030 if test "$GCC" = yes; then
18031 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18032 else
18033 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18036 esac
18037 link_all_deplibs_GCJ=yes
18040 sunos4*)
18041 if test "x$host_vendor" = xsequent; then
18042 # Use $CC to link under sequent, because it throws in some extra .o
18043 # files that make .init and .fini sections work.
18044 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18045 else
18046 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049 hardcode_direct_GCJ=yes
18050 hardcode_minus_L_GCJ=yes
18051 hardcode_shlibpath_var_GCJ=no
18054 sysv4)
18055 case $host_vendor in
18056 sni)
18057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_direct_GCJ=yes # is this really true???
18060 siemens)
18061 ## LD is ld it makes a PLAMLIB
18062 ## CC just makes a GrossModule.
18063 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18064 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18065 hardcode_direct_GCJ=no
18067 motorola)
18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18071 esac
18072 runpath_var='LD_RUN_PATH'
18073 hardcode_shlibpath_var_GCJ=no
18076 sysv4.3*)
18077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078 hardcode_shlibpath_var_GCJ=no
18079 export_dynamic_flag_spec_GCJ='-Bexport'
18082 sysv4*MP*)
18083 if test -d /usr/nec; then
18084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085 hardcode_shlibpath_var_GCJ=no
18086 runpath_var=LD_RUN_PATH
18087 hardcode_runpath_var=yes
18088 ld_shlibs_GCJ=yes
18092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18093 no_undefined_flag_GCJ='${wl}-z,text'
18094 archive_cmds_need_lc_GCJ=no
18095 hardcode_shlibpath_var_GCJ=no
18096 runpath_var='LD_RUN_PATH'
18098 if test "$GCC" = yes; then
18099 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18101 else
18102 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 sysv5* | sco3.2v5* | sco5v6*)
18108 # Note: We can NOT use -z defs as we might desire, because we do not
18109 # link with -lc, and that would cause any symbols used from libc to
18110 # always be unresolved, which means just about no library would
18111 # ever link correctly. If we're not using GNU ld we use -z text
18112 # though, which does catch some bad symbols but isn't as heavy-handed
18113 # as -z defs.
18114 no_undefined_flag_GCJ='${wl}-z,text'
18115 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18116 archive_cmds_need_lc_GCJ=no
18117 hardcode_shlibpath_var_GCJ=no
18118 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18119 hardcode_libdir_separator_GCJ=':'
18120 link_all_deplibs_GCJ=yes
18121 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18122 runpath_var='LD_RUN_PATH'
18124 if test "$GCC" = yes; then
18125 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 else
18128 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133 uts4*)
18134 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18136 hardcode_shlibpath_var_GCJ=no
18140 ld_shlibs_GCJ=no
18142 esac
18145 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18146 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18147 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18150 # Do we need to explicitly link libc?
18152 case "x$archive_cmds_need_lc_GCJ" in
18153 x|xyes)
18154 # Assume -lc should be added
18155 archive_cmds_need_lc_GCJ=yes
18157 if test "$enable_shared" = yes && test "$GCC" = yes; then
18158 case $archive_cmds_GCJ in
18159 *'~'*)
18160 # FIXME: we may have to deal with multi-command sequences.
18162 '$CC '*)
18163 # Test whether the compiler implicitly links with -lc since on some
18164 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18165 # to ld, don't add -lc before -lgcc.
18166 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18167 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18168 $rm conftest*
18169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } 2>conftest.err; then
18176 soname=conftest
18177 lib=conftest
18178 libobjs=conftest.$ac_objext
18179 deplibs=
18180 wl=$lt_prog_compiler_wl_GCJ
18181 pic_flag=$lt_prog_compiler_pic_GCJ
18182 compiler_flags=-v
18183 linker_flags=-v
18184 verstring=
18185 output_objdir=.
18186 libname=conftest
18187 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18188 allow_undefined_flag_GCJ=
18189 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18190 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }
18194 then
18195 archive_cmds_need_lc_GCJ=no
18196 else
18197 archive_cmds_need_lc_GCJ=yes
18199 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18200 else
18201 cat conftest.err 1>&5
18203 $rm conftest*
18204 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18205 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18207 esac
18210 esac
18212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18214 library_names_spec=
18215 libname_spec='lib$name'
18216 soname_spec=
18217 shrext_cmds=".so"
18218 postinstall_cmds=
18219 postuninstall_cmds=
18220 finish_cmds=
18221 finish_eval=
18222 shlibpath_var=
18223 shlibpath_overrides_runpath=unknown
18224 version_type=none
18225 dynamic_linker="$host_os ld.so"
18226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18228 need_lib_prefix=unknown
18229 hardcode_into_libs=no
18231 # when you set need_version to no, make sure it does not cause -set_version
18232 # flags to be left without arguments
18233 need_version=unknown
18235 case $host_os in
18236 aix3*)
18237 version_type=linux
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18239 shlibpath_var=LIBPATH
18241 # AIX 3 has no versioning support, so we append a major version to the name.
18242 soname_spec='${libname}${release}${shared_ext}$major'
18245 aix4* | aix5*)
18246 version_type=linux
18247 need_lib_prefix=no
18248 need_version=no
18249 hardcode_into_libs=yes
18250 if test "$host_cpu" = ia64; then
18251 # AIX 5 supports IA64
18252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 else
18255 # With GCC up to 2.95.x, collect2 would create an import file
18256 # for dependence libraries. The import file would start with
18257 # the line `#! .'. This would cause the generated library to
18258 # depend on `.', always an invalid library. This was fixed in
18259 # development snapshots of GCC prior to 3.0.
18260 case $host_os in
18261 aix4 | aix4.[01] | aix4.[01].*)
18262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18263 echo ' yes '
18264 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18266 else
18267 can_build_shared=no
18270 esac
18271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18272 # soname into executable. Probably we can add versioning support to
18273 # collect2, so additional links can be useful in future.
18274 if test "$aix_use_runtimelinking" = yes; then
18275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18276 # instead of lib<name>.a to let people know that these are not
18277 # typical AIX shared libraries.
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279 else
18280 # We preserve .a as extension for shared libraries through AIX4.2
18281 # and later when we are not doing run time linking.
18282 library_names_spec='${libname}${release}.a $libname.a'
18283 soname_spec='${libname}${release}${shared_ext}$major'
18285 shlibpath_var=LIBPATH
18289 amigaos*)
18290 library_names_spec='$libname.ixlibrary $libname.a'
18291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18292 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'
18295 beos*)
18296 library_names_spec='${libname}${shared_ext}'
18297 dynamic_linker="$host_os ld.so"
18298 shlibpath_var=LIBRARY_PATH
18301 bsdi[45]*)
18302 version_type=linux
18303 need_version=no
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18307 shlibpath_var=LD_LIBRARY_PATH
18308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18310 # the default ld.so.conf also contains /usr/contrib/lib and
18311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18312 # libtool to hard-code these into programs
18315 cygwin* | mingw* | pw32*)
18316 version_type=windows
18317 shrext_cmds=".dll"
18318 need_version=no
18319 need_lib_prefix=no
18321 case $GCC,$host_os in
18322 yes,cygwin* | yes,mingw* | yes,pw32*)
18323 library_names_spec='$libname.dll.a'
18324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18325 postinstall_cmds='base_file=`basename \${file}`~
18326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18327 dldir=$destdir/`dirname \$dlpath`~
18328 test -d \$dldir || mkdir -p \$dldir~
18329 $install_prog $dir/$dlname \$dldir/$dlname~
18330 chmod a+x \$dldir/$dlname'
18331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18332 dlpath=$dir/\$dldll~
18333 $rm \$dlpath'
18334 shlibpath_overrides_runpath=yes
18336 case $host_os in
18337 cygwin*)
18338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18339 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18340 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18342 mingw*)
18343 # MinGW DLLs use traditional 'lib' prefix
18344 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18345 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18346 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18347 # It is most probably a Windows format PATH printed by
18348 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18349 # path with ; separators, and with drive letters. We can handle the
18350 # drive letters (cygwin fileutils understands them), so leave them,
18351 # especially as we might pass files found there to a mingw objdump,
18352 # which wouldn't understand a cygwinified path. Ahh.
18353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18354 else
18355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18358 pw32*)
18359 # pw32 DLLs use 'pw' prefix rather than 'lib'
18360 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18362 esac
18366 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18368 esac
18369 dynamic_linker='Win32 ld.exe'
18370 # FIXME: first we should search . and the directory the executable is in
18371 shlibpath_var=PATH
18374 darwin* | rhapsody*)
18375 dynamic_linker="$host_os dyld"
18376 version_type=darwin
18377 need_lib_prefix=no
18378 need_version=no
18379 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18380 soname_spec='${libname}${release}${major}$shared_ext'
18381 shlibpath_overrides_runpath=yes
18382 shlibpath_var=DYLD_LIBRARY_PATH
18383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18385 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18388 dgux*)
18389 version_type=linux
18390 need_lib_prefix=no
18391 need_version=no
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18397 freebsd1*)
18398 dynamic_linker=no
18401 freebsd* | dragonfly*)
18402 # DragonFly does not have aout. When/if they implement a new
18403 # versioning mechanism, adjust this.
18404 if test -x /usr/bin/objformat; then
18405 objformat=`/usr/bin/objformat`
18406 else
18407 case $host_os in
18408 freebsd[123]*) objformat=aout ;;
18409 *) objformat=elf ;;
18410 esac
18412 version_type=freebsd-$objformat
18413 case $version_type in
18414 freebsd-elf*)
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18416 need_version=no
18417 need_lib_prefix=no
18419 freebsd-*)
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18421 need_version=yes
18423 esac
18424 shlibpath_var=LD_LIBRARY_PATH
18425 case $host_os in
18426 freebsd2*)
18427 shlibpath_overrides_runpath=yes
18429 freebsd3.[01]* | freebsdelf3.[01]*)
18430 shlibpath_overrides_runpath=yes
18431 hardcode_into_libs=yes
18433 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18434 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18435 shlibpath_overrides_runpath=no
18436 hardcode_into_libs=yes
18438 *) # from 4.6 on, and DragonFly
18439 shlibpath_overrides_runpath=yes
18440 hardcode_into_libs=yes
18442 esac
18445 gnu*)
18446 version_type=linux
18447 need_lib_prefix=no
18448 need_version=no
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 hardcode_into_libs=yes
18455 hpux9* | hpux10* | hpux11*)
18456 # Give a soname corresponding to the major version so that dld.sl refuses to
18457 # link against other versions.
18458 version_type=sunos
18459 need_lib_prefix=no
18460 need_version=no
18461 case $host_cpu in
18462 ia64*)
18463 shrext_cmds='.so'
18464 hardcode_into_libs=yes
18465 dynamic_linker="$host_os dld.so"
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 if test "X$HPUX_IA64_MODE" = X32; then
18471 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18472 else
18473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18477 hppa*64*)
18478 shrext_cmds='.sl'
18479 hardcode_into_libs=yes
18480 dynamic_linker="$host_os dld.sl"
18481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18489 shrext_cmds='.sl'
18490 dynamic_linker="$host_os dld.sl"
18491 shlibpath_var=SHLIB_PATH
18492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 soname_spec='${libname}${release}${shared_ext}$major'
18496 esac
18497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18498 postinstall_cmds='chmod 555 $lib'
18501 interix[3-9]*)
18502 version_type=linux
18503 need_lib_prefix=no
18504 need_version=no
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18506 soname_spec='${libname}${release}${shared_ext}$major'
18507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=no
18510 hardcode_into_libs=yes
18513 irix5* | irix6* | nonstopux*)
18514 case $host_os in
18515 nonstopux*) version_type=nonstopux ;;
18517 if test "$lt_cv_prog_gnu_ld" = yes; then
18518 version_type=linux
18519 else
18520 version_type=irix
18521 fi ;;
18522 esac
18523 need_lib_prefix=no
18524 need_version=no
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18527 case $host_os in
18528 irix5* | nonstopux*)
18529 libsuff= shlibsuff=
18532 case $LD in # libtool.m4 will add one of these switches to LD
18533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18534 libsuff= shlibsuff= libmagic=32-bit;;
18535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18536 libsuff=32 shlibsuff=N32 libmagic=N32;;
18537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18539 *) libsuff= shlibsuff= libmagic=never-match;;
18540 esac
18542 esac
18543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18544 shlibpath_overrides_runpath=no
18545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18547 hardcode_into_libs=yes
18550 # No shared lib support for Linux oldld, aout, or coff.
18551 linux*oldld* | linux*aout* | linux*coff*)
18552 dynamic_linker=no
18555 # This must be Linux ELF.
18556 linux* | k*bsd*-gnu)
18557 version_type=linux
18558 need_lib_prefix=no
18559 need_version=no
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561 soname_spec='${libname}${release}${shared_ext}$major'
18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 shlibpath_overrides_runpath=no
18565 # This implies no fast_install, which is unacceptable.
18566 # Some rework will be needed to allow for fast_install
18567 # before this can be enabled.
18568 hardcode_into_libs=yes
18570 # Append ld.so.conf contents to the search path
18571 if test -f /etc/ld.so.conf; then
18572 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' ' '`
18573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18576 # We used to test for /lib/ld.so.1 and disable shared libraries on
18577 # powerpc, because MkLinux only supported shared libraries with the
18578 # GNU dynamic linker. Since this was broken with cross compilers,
18579 # most powerpc-linux boxes support dynamic linking these days and
18580 # people can always --disable-shared, the test was removed, and we
18581 # assume the GNU/Linux dynamic linker is in use.
18582 dynamic_linker='GNU/Linux ld.so'
18585 netbsdelf*-gnu)
18586 version_type=linux
18587 need_lib_prefix=no
18588 need_version=no
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=no
18593 hardcode_into_libs=yes
18594 dynamic_linker='NetBSD ld.elf_so'
18597 netbsd*)
18598 version_type=sunos
18599 need_lib_prefix=no
18600 need_version=no
18601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18604 dynamic_linker='NetBSD (a.out) ld.so'
18605 else
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 dynamic_linker='NetBSD ld.elf_so'
18610 shlibpath_var=LD_LIBRARY_PATH
18611 shlibpath_overrides_runpath=yes
18612 hardcode_into_libs=yes
18615 newsos6)
18616 version_type=linux
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 shlibpath_overrides_runpath=yes
18622 nto-qnx*)
18623 version_type=linux
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 shlibpath_overrides_runpath=yes
18632 openbsd*)
18633 version_type=sunos
18634 sys_lib_dlsearch_path_spec="/usr/lib"
18635 need_lib_prefix=no
18636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18637 case $host_os in
18638 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18639 *) need_version=no ;;
18640 esac
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18643 shlibpath_var=LD_LIBRARY_PATH
18644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18645 case $host_os in
18646 openbsd2.[89] | openbsd2.[89].*)
18647 shlibpath_overrides_runpath=no
18650 shlibpath_overrides_runpath=yes
18652 esac
18653 else
18654 shlibpath_overrides_runpath=yes
18658 os2*)
18659 libname_spec='$name'
18660 shrext_cmds=".dll"
18661 need_lib_prefix=no
18662 library_names_spec='$libname${shared_ext} $libname.a'
18663 dynamic_linker='OS/2 ld.exe'
18664 shlibpath_var=LIBPATH
18667 osf3* | osf4* | osf5*)
18668 version_type=osf
18669 need_lib_prefix=no
18670 need_version=no
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18678 rdos*)
18679 dynamic_linker=no
18682 solaris*)
18683 version_type=linux
18684 need_lib_prefix=no
18685 need_version=no
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=yes
18690 hardcode_into_libs=yes
18691 # ldd complains unless libraries are executable
18692 postinstall_cmds='chmod +x $lib'
18695 sunos4*)
18696 version_type=sunos
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18701 if test "$with_gnu_ld" = yes; then
18702 need_lib_prefix=no
18704 need_version=yes
18707 sysv4 | sysv4.3*)
18708 version_type=linux
18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18710 soname_spec='${libname}${release}${shared_ext}$major'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 case $host_vendor in
18713 sni)
18714 shlibpath_overrides_runpath=no
18715 need_lib_prefix=no
18716 export_dynamic_flag_spec='${wl}-Blargedynsym'
18717 runpath_var=LD_RUN_PATH
18719 siemens)
18720 need_lib_prefix=no
18722 motorola)
18723 need_lib_prefix=no
18724 need_version=no
18725 shlibpath_overrides_runpath=no
18726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18728 esac
18731 sysv4*MP*)
18732 if test -d /usr/nec ;then
18733 version_type=linux
18734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18735 soname_spec='$libname${shared_ext}.$major'
18736 shlibpath_var=LD_LIBRARY_PATH
18740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18741 version_type=freebsd-elf
18742 need_lib_prefix=no
18743 need_version=no
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 hardcode_into_libs=yes
18748 if test "$with_gnu_ld" = yes; then
18749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18750 shlibpath_overrides_runpath=no
18751 else
18752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18753 shlibpath_overrides_runpath=yes
18754 case $host_os in
18755 sco3.2v5*)
18756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18758 esac
18760 sys_lib_dlsearch_path_spec='/usr/lib'
18763 uts4*)
18764 version_type=linux
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18771 dynamic_linker=no
18773 esac
18774 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18775 echo "${ECHO_T}$dynamic_linker" >&6; }
18776 test "$dynamic_linker" = no && can_build_shared=no
18778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18779 if test "$GCC" = yes; then
18780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18783 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18784 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18785 hardcode_action_GCJ=
18786 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18787 test -n "$runpath_var_GCJ" || \
18788 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18790 # We can hardcode non-existant directories.
18791 if test "$hardcode_direct_GCJ" != no &&
18792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18793 # have to relink, otherwise we might link with an installed library
18794 # when we should be linking with a yet-to-be-installed one
18795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18796 test "$hardcode_minus_L_GCJ" != no; then
18797 # Linking always hardcodes the temporary library directory.
18798 hardcode_action_GCJ=relink
18799 else
18800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18801 hardcode_action_GCJ=immediate
18803 else
18804 # We cannot hardcode anything, or else we can only hardcode existing
18805 # directories.
18806 hardcode_action_GCJ=unsupported
18808 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18809 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18811 if test "$hardcode_action_GCJ" = relink; then
18812 # Fast installation is not supported
18813 enable_fast_install=no
18814 elif test "$shlibpath_overrides_runpath" = yes ||
18815 test "$enable_shared" = no; then
18816 # Fast installation is not necessary
18817 enable_fast_install=needless
18821 # The else clause should only fire when bootstrapping the
18822 # libtool distribution, otherwise you forgot to ship ltmain.sh
18823 # with your package, and you will get complaints that there are
18824 # no rules to generate ltmain.sh.
18825 if test -f "$ltmain"; then
18826 # See if we are running on zsh, and set the options which allow our commands through
18827 # without removal of \ escapes.
18828 if test -n "${ZSH_VERSION+set}" ; then
18829 setopt NO_GLOB_SUBST
18831 # Now quote all the things that may contain metacharacters while being
18832 # careful not to overquote the AC_SUBSTed values. We take copies of the
18833 # variables and quote the copies for generation of the libtool script.
18834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18835 SED SHELL STRIP \
18836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18838 deplibs_check_method reload_flag reload_cmds need_locks \
18839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18840 lt_cv_sys_global_symbol_to_c_name_address \
18841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18842 old_postinstall_cmds old_postuninstall_cmds \
18843 compiler_GCJ \
18844 CC_GCJ \
18845 LD_GCJ \
18846 lt_prog_compiler_wl_GCJ \
18847 lt_prog_compiler_pic_GCJ \
18848 lt_prog_compiler_static_GCJ \
18849 lt_prog_compiler_no_builtin_flag_GCJ \
18850 export_dynamic_flag_spec_GCJ \
18851 thread_safe_flag_spec_GCJ \
18852 whole_archive_flag_spec_GCJ \
18853 enable_shared_with_static_runtimes_GCJ \
18854 old_archive_cmds_GCJ \
18855 old_archive_from_new_cmds_GCJ \
18856 predep_objects_GCJ \
18857 postdep_objects_GCJ \
18858 predeps_GCJ \
18859 postdeps_GCJ \
18860 compiler_lib_search_path_GCJ \
18861 archive_cmds_GCJ \
18862 archive_expsym_cmds_GCJ \
18863 postinstall_cmds_GCJ \
18864 postuninstall_cmds_GCJ \
18865 old_archive_from_expsyms_cmds_GCJ \
18866 allow_undefined_flag_GCJ \
18867 no_undefined_flag_GCJ \
18868 export_symbols_cmds_GCJ \
18869 hardcode_libdir_flag_spec_GCJ \
18870 hardcode_libdir_flag_spec_ld_GCJ \
18871 hardcode_libdir_separator_GCJ \
18872 hardcode_automatic_GCJ \
18873 module_cmds_GCJ \
18874 module_expsym_cmds_GCJ \
18875 lt_cv_prog_compiler_c_o_GCJ \
18876 fix_srcfile_path_GCJ \
18877 exclude_expsyms_GCJ \
18878 include_expsyms_GCJ; do
18880 case $var in
18881 old_archive_cmds_GCJ | \
18882 old_archive_from_new_cmds_GCJ | \
18883 archive_cmds_GCJ | \
18884 archive_expsym_cmds_GCJ | \
18885 module_cmds_GCJ | \
18886 module_expsym_cmds_GCJ | \
18887 old_archive_from_expsyms_cmds_GCJ | \
18888 export_symbols_cmds_GCJ | \
18889 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18890 postinstall_cmds | postuninstall_cmds | \
18891 old_postinstall_cmds | old_postuninstall_cmds | \
18892 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18893 # Double-quote double-evaled strings.
18894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18899 esac
18900 done
18902 case $lt_echo in
18903 *'\$0 --fallback-echo"')
18904 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18906 esac
18908 cfgfile="$ofile"
18910 cat <<__EOF__ >> "$cfgfile"
18911 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18915 # Shell to use when invoking shell scripts.
18916 SHELL=$lt_SHELL
18918 # Whether or not to build shared libraries.
18919 build_libtool_libs=$enable_shared
18921 # Whether or not to build static libraries.
18922 build_old_libs=$enable_static
18924 # Whether or not to add -lc for building shared libraries.
18925 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18927 # Whether or not to disallow shared libs when runtime libs are static
18928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18930 # Whether or not to optimize for fast installation.
18931 fast_install=$enable_fast_install
18933 # The host system.
18934 host_alias=$host_alias
18935 host=$host
18936 host_os=$host_os
18938 # The build system.
18939 build_alias=$build_alias
18940 build=$build
18941 build_os=$build_os
18943 # An echo program that does not interpret backslashes.
18944 echo=$lt_echo
18946 # The archiver.
18947 AR=$lt_AR
18948 AR_FLAGS=$lt_AR_FLAGS
18950 # A C compiler.
18951 LTCC=$lt_LTCC
18953 # LTCC compiler flags.
18954 LTCFLAGS=$lt_LTCFLAGS
18956 # A language-specific compiler.
18957 CC=$lt_compiler_GCJ
18959 # Is the compiler the GNU C compiler?
18960 with_gcc=$GCC_GCJ
18962 # An ERE matcher.
18963 EGREP=$lt_EGREP
18965 # The linker used to build libraries.
18966 LD=$lt_LD_GCJ
18968 # Whether we need hard or soft links.
18969 LN_S=$lt_LN_S
18971 # A BSD-compatible nm program.
18972 NM=$lt_NM
18974 # A symbol stripping program
18975 STRIP=$lt_STRIP
18977 # Used to examine libraries when file_magic_cmd begins "file"
18978 MAGIC_CMD=$MAGIC_CMD
18980 # Used on cygwin: DLL creation program.
18981 DLLTOOL="$DLLTOOL"
18983 # Used on cygwin: object dumper.
18984 OBJDUMP="$OBJDUMP"
18986 # Used on cygwin: assembler.
18987 AS="$AS"
18989 # The name of the directory that contains temporary libtool files.
18990 objdir=$objdir
18992 # How to create reloadable object files.
18993 reload_flag=$lt_reload_flag
18994 reload_cmds=$lt_reload_cmds
18996 # How to pass a linker flag through the compiler.
18997 wl=$lt_lt_prog_compiler_wl_GCJ
18999 # Object file suffix (normally "o").
19000 objext="$ac_objext"
19002 # Old archive suffix (normally "a").
19003 libext="$libext"
19005 # Shared library suffix (normally ".so").
19006 shrext_cmds='$shrext_cmds'
19008 # Executable file suffix (normally "").
19009 exeext="$exeext"
19011 # Additional compiler flags for building library objects.
19012 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19013 pic_mode=$pic_mode
19015 # What is the maximum length of a command?
19016 max_cmd_len=$lt_cv_sys_max_cmd_len
19018 # Does compiler simultaneously support -c and -o options?
19019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19021 # Must we lock files when doing compilation?
19022 need_locks=$lt_need_locks
19024 # Do we need the lib prefix for modules?
19025 need_lib_prefix=$need_lib_prefix
19027 # Do we need a version for libraries?
19028 need_version=$need_version
19030 # Whether dlopen is supported.
19031 dlopen_support=$enable_dlopen
19033 # Whether dlopen of programs is supported.
19034 dlopen_self=$enable_dlopen_self
19036 # Whether dlopen of statically linked programs is supported.
19037 dlopen_self_static=$enable_dlopen_self_static
19039 # Compiler flag to prevent dynamic linking.
19040 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19042 # Compiler flag to turn off builtin functions.
19043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19045 # Compiler flag to allow reflexive dlopens.
19046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19048 # Compiler flag to generate shared objects directly from archives.
19049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19051 # Compiler flag to generate thread-safe objects.
19052 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19054 # Library versioning type.
19055 version_type=$version_type
19057 # Format of library name prefix.
19058 libname_spec=$lt_libname_spec
19060 # List of archive names. First name is the real one, the rest are links.
19061 # The last name is the one that the linker finds with -lNAME.
19062 library_names_spec=$lt_library_names_spec
19064 # The coded name of the library, if different from the real name.
19065 soname_spec=$lt_soname_spec
19067 # Commands used to build and install an old-style archive.
19068 RANLIB=$lt_RANLIB
19069 old_archive_cmds=$lt_old_archive_cmds_GCJ
19070 old_postinstall_cmds=$lt_old_postinstall_cmds
19071 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19073 # Create an old-style archive from a shared archive.
19074 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19076 # Create a temporary old-style archive to link instead of a shared archive.
19077 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19079 # Commands used to build and install a shared archive.
19080 archive_cmds=$lt_archive_cmds_GCJ
19081 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19082 postinstall_cmds=$lt_postinstall_cmds
19083 postuninstall_cmds=$lt_postuninstall_cmds
19085 # Commands used to build a loadable module (assumed same as above if empty)
19086 module_cmds=$lt_module_cmds_GCJ
19087 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19089 # Commands to strip libraries.
19090 old_striplib=$lt_old_striplib
19091 striplib=$lt_striplib
19093 # Dependencies to place before the objects being linked to create a
19094 # shared library.
19095 predep_objects=$lt_predep_objects_GCJ
19097 # Dependencies to place after the objects being linked to create a
19098 # shared library.
19099 postdep_objects=$lt_postdep_objects_GCJ
19101 # Dependencies to place before the objects being linked to create a
19102 # shared library.
19103 predeps=$lt_predeps_GCJ
19105 # Dependencies to place after the objects being linked to create a
19106 # shared library.
19107 postdeps=$lt_postdeps_GCJ
19109 # The library search path used internally by the compiler when linking
19110 # a shared library.
19111 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19113 # Method to check whether dependent libraries are shared objects.
19114 deplibs_check_method=$lt_deplibs_check_method
19116 # Command to use when deplibs_check_method == file_magic.
19117 file_magic_cmd=$lt_file_magic_cmd
19119 # Flag that allows shared libraries with undefined symbols to be built.
19120 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19122 # Flag that forces no undefined symbols.
19123 no_undefined_flag=$lt_no_undefined_flag_GCJ
19125 # Commands used to finish a libtool library installation in a directory.
19126 finish_cmds=$lt_finish_cmds
19128 # Same as above, but a single script fragment to be evaled but not shown.
19129 finish_eval=$lt_finish_eval
19131 # Take the output of nm and produce a listing of raw symbols and C names.
19132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19134 # Transform the output of nm in a proper C declaration
19135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19137 # Transform the output of nm in a C name address pair
19138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19140 # This is the shared library runtime path variable.
19141 runpath_var=$runpath_var
19143 # This is the shared library path variable.
19144 shlibpath_var=$shlibpath_var
19146 # Is shlibpath searched before the hard-coded library search path?
19147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19149 # How to hardcode a shared library path into an executable.
19150 hardcode_action=$hardcode_action_GCJ
19152 # Whether we should hardcode library paths into libraries.
19153 hardcode_into_libs=$hardcode_into_libs
19155 # Flag to hardcode \$libdir into a binary during linking.
19156 # This must work even if \$libdir does not exist.
19157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19159 # If ld is used when linking, flag to hardcode \$libdir into
19160 # a binary during linking. This must work even if \$libdir does
19161 # not exist.
19162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19164 # Whether we need a single -rpath flag with a separated argument.
19165 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19167 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19168 # resulting binary.
19169 hardcode_direct=$hardcode_direct_GCJ
19171 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19172 # resulting binary.
19173 hardcode_minus_L=$hardcode_minus_L_GCJ
19175 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19176 # the resulting binary.
19177 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19179 # Set to yes if building a shared library automatically hardcodes DIR into the library
19180 # and all subsequent libraries and executables linked against it.
19181 hardcode_automatic=$hardcode_automatic_GCJ
19183 # Variables whose values should be saved in libtool wrapper scripts and
19184 # restored at relink time.
19185 variables_saved_for_relink="$variables_saved_for_relink"
19187 # Whether libtool must link a program against all its dependency libraries.
19188 link_all_deplibs=$link_all_deplibs_GCJ
19190 # Compile-time system search path for libraries
19191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19193 # Run-time system search path for libraries
19194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19196 # Fix the shell variable \$srcfile for the compiler.
19197 fix_srcfile_path=$lt_fix_srcfile_path
19199 # Set to yes if exported symbols are required.
19200 always_export_symbols=$always_export_symbols_GCJ
19202 # The commands to list exported symbols.
19203 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19205 # The commands to extract the exported symbol list from a shared archive.
19206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19208 # Symbols that should not be listed in the preloaded symbols.
19209 exclude_expsyms=$lt_exclude_expsyms_GCJ
19211 # Symbols that must always be exported.
19212 include_expsyms=$lt_include_expsyms_GCJ
19214 # ### END LIBTOOL TAG CONFIG: $tagname
19216 __EOF__
19219 else
19220 # If there is no Makefile yet, we rely on a make rule to execute
19221 # `config.status --recheck' to rerun these tests and create the
19222 # libtool script then.
19223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19224 if test -f "$ltmain_in"; then
19225 test -f Makefile && make "$ltmain"
19230 ac_ext=c
19231 ac_cpp='$CPP $CPPFLAGS'
19232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19236 CC="$lt_save_CC"
19238 else
19239 tagname=""
19246 # Source file extension for RC test sources.
19247 ac_ext=rc
19249 # Object file extension for compiled RC test sources.
19250 objext=o
19251 objext_RC=$objext
19253 # Code to be used in simple compile tests
19254 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19256 # Code to be used in simple link tests
19257 lt_simple_link_test_code="$lt_simple_compile_test_code"
19259 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19261 # If no C compiler was specified, use CC.
19262 LTCC=${LTCC-"$CC"}
19264 # If no C compiler flags were specified, use CFLAGS.
19265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19267 # Allow CC to be a program name with arguments.
19268 compiler=$CC
19271 # save warnings/boilerplate of simple test code
19272 ac_outfile=conftest.$ac_objext
19273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19275 _lt_compiler_boilerplate=`cat conftest.err`
19276 $rm conftest*
19278 ac_outfile=conftest.$ac_objext
19279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19281 _lt_linker_boilerplate=`cat conftest.err`
19282 $rm conftest*
19285 # Allow CC to be a program name with arguments.
19286 lt_save_CC="$CC"
19287 CC=${RC-"windres"}
19288 compiler=$CC
19289 compiler_RC=$CC
19290 for cc_temp in $compiler""; do
19291 case $cc_temp in
19292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19294 \-*) ;;
19295 *) break;;
19296 esac
19297 done
19298 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19300 lt_cv_prog_compiler_c_o_RC=yes
19302 # The else clause should only fire when bootstrapping the
19303 # libtool distribution, otherwise you forgot to ship ltmain.sh
19304 # with your package, and you will get complaints that there are
19305 # no rules to generate ltmain.sh.
19306 if test -f "$ltmain"; then
19307 # See if we are running on zsh, and set the options which allow our commands through
19308 # without removal of \ escapes.
19309 if test -n "${ZSH_VERSION+set}" ; then
19310 setopt NO_GLOB_SUBST
19312 # Now quote all the things that may contain metacharacters while being
19313 # careful not to overquote the AC_SUBSTed values. We take copies of the
19314 # variables and quote the copies for generation of the libtool script.
19315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19316 SED SHELL STRIP \
19317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19319 deplibs_check_method reload_flag reload_cmds need_locks \
19320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19321 lt_cv_sys_global_symbol_to_c_name_address \
19322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19323 old_postinstall_cmds old_postuninstall_cmds \
19324 compiler_RC \
19325 CC_RC \
19326 LD_RC \
19327 lt_prog_compiler_wl_RC \
19328 lt_prog_compiler_pic_RC \
19329 lt_prog_compiler_static_RC \
19330 lt_prog_compiler_no_builtin_flag_RC \
19331 export_dynamic_flag_spec_RC \
19332 thread_safe_flag_spec_RC \
19333 whole_archive_flag_spec_RC \
19334 enable_shared_with_static_runtimes_RC \
19335 old_archive_cmds_RC \
19336 old_archive_from_new_cmds_RC \
19337 predep_objects_RC \
19338 postdep_objects_RC \
19339 predeps_RC \
19340 postdeps_RC \
19341 compiler_lib_search_path_RC \
19342 archive_cmds_RC \
19343 archive_expsym_cmds_RC \
19344 postinstall_cmds_RC \
19345 postuninstall_cmds_RC \
19346 old_archive_from_expsyms_cmds_RC \
19347 allow_undefined_flag_RC \
19348 no_undefined_flag_RC \
19349 export_symbols_cmds_RC \
19350 hardcode_libdir_flag_spec_RC \
19351 hardcode_libdir_flag_spec_ld_RC \
19352 hardcode_libdir_separator_RC \
19353 hardcode_automatic_RC \
19354 module_cmds_RC \
19355 module_expsym_cmds_RC \
19356 lt_cv_prog_compiler_c_o_RC \
19357 fix_srcfile_path_RC \
19358 exclude_expsyms_RC \
19359 include_expsyms_RC; do
19361 case $var in
19362 old_archive_cmds_RC | \
19363 old_archive_from_new_cmds_RC | \
19364 archive_cmds_RC | \
19365 archive_expsym_cmds_RC | \
19366 module_cmds_RC | \
19367 module_expsym_cmds_RC | \
19368 old_archive_from_expsyms_cmds_RC | \
19369 export_symbols_cmds_RC | \
19370 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19371 postinstall_cmds | postuninstall_cmds | \
19372 old_postinstall_cmds | old_postuninstall_cmds | \
19373 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19374 # Double-quote double-evaled strings.
19375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19378 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19380 esac
19381 done
19383 case $lt_echo in
19384 *'\$0 --fallback-echo"')
19385 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19387 esac
19389 cfgfile="$ofile"
19391 cat <<__EOF__ >> "$cfgfile"
19392 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19394 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19396 # Shell to use when invoking shell scripts.
19397 SHELL=$lt_SHELL
19399 # Whether or not to build shared libraries.
19400 build_libtool_libs=$enable_shared
19402 # Whether or not to build static libraries.
19403 build_old_libs=$enable_static
19405 # Whether or not to add -lc for building shared libraries.
19406 build_libtool_need_lc=$archive_cmds_need_lc_RC
19408 # Whether or not to disallow shared libs when runtime libs are static
19409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19411 # Whether or not to optimize for fast installation.
19412 fast_install=$enable_fast_install
19414 # The host system.
19415 host_alias=$host_alias
19416 host=$host
19417 host_os=$host_os
19419 # The build system.
19420 build_alias=$build_alias
19421 build=$build
19422 build_os=$build_os
19424 # An echo program that does not interpret backslashes.
19425 echo=$lt_echo
19427 # The archiver.
19428 AR=$lt_AR
19429 AR_FLAGS=$lt_AR_FLAGS
19431 # A C compiler.
19432 LTCC=$lt_LTCC
19434 # LTCC compiler flags.
19435 LTCFLAGS=$lt_LTCFLAGS
19437 # A language-specific compiler.
19438 CC=$lt_compiler_RC
19440 # Is the compiler the GNU C compiler?
19441 with_gcc=$GCC_RC
19443 # An ERE matcher.
19444 EGREP=$lt_EGREP
19446 # The linker used to build libraries.
19447 LD=$lt_LD_RC
19449 # Whether we need hard or soft links.
19450 LN_S=$lt_LN_S
19452 # A BSD-compatible nm program.
19453 NM=$lt_NM
19455 # A symbol stripping program
19456 STRIP=$lt_STRIP
19458 # Used to examine libraries when file_magic_cmd begins "file"
19459 MAGIC_CMD=$MAGIC_CMD
19461 # Used on cygwin: DLL creation program.
19462 DLLTOOL="$DLLTOOL"
19464 # Used on cygwin: object dumper.
19465 OBJDUMP="$OBJDUMP"
19467 # Used on cygwin: assembler.
19468 AS="$AS"
19470 # The name of the directory that contains temporary libtool files.
19471 objdir=$objdir
19473 # How to create reloadable object files.
19474 reload_flag=$lt_reload_flag
19475 reload_cmds=$lt_reload_cmds
19477 # How to pass a linker flag through the compiler.
19478 wl=$lt_lt_prog_compiler_wl_RC
19480 # Object file suffix (normally "o").
19481 objext="$ac_objext"
19483 # Old archive suffix (normally "a").
19484 libext="$libext"
19486 # Shared library suffix (normally ".so").
19487 shrext_cmds='$shrext_cmds'
19489 # Executable file suffix (normally "").
19490 exeext="$exeext"
19492 # Additional compiler flags for building library objects.
19493 pic_flag=$lt_lt_prog_compiler_pic_RC
19494 pic_mode=$pic_mode
19496 # What is the maximum length of a command?
19497 max_cmd_len=$lt_cv_sys_max_cmd_len
19499 # Does compiler simultaneously support -c and -o options?
19500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19502 # Must we lock files when doing compilation?
19503 need_locks=$lt_need_locks
19505 # Do we need the lib prefix for modules?
19506 need_lib_prefix=$need_lib_prefix
19508 # Do we need a version for libraries?
19509 need_version=$need_version
19511 # Whether dlopen is supported.
19512 dlopen_support=$enable_dlopen
19514 # Whether dlopen of programs is supported.
19515 dlopen_self=$enable_dlopen_self
19517 # Whether dlopen of statically linked programs is supported.
19518 dlopen_self_static=$enable_dlopen_self_static
19520 # Compiler flag to prevent dynamic linking.
19521 link_static_flag=$lt_lt_prog_compiler_static_RC
19523 # Compiler flag to turn off builtin functions.
19524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19526 # Compiler flag to allow reflexive dlopens.
19527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19529 # Compiler flag to generate shared objects directly from archives.
19530 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19532 # Compiler flag to generate thread-safe objects.
19533 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19535 # Library versioning type.
19536 version_type=$version_type
19538 # Format of library name prefix.
19539 libname_spec=$lt_libname_spec
19541 # List of archive names. First name is the real one, the rest are links.
19542 # The last name is the one that the linker finds with -lNAME.
19543 library_names_spec=$lt_library_names_spec
19545 # The coded name of the library, if different from the real name.
19546 soname_spec=$lt_soname_spec
19548 # Commands used to build and install an old-style archive.
19549 RANLIB=$lt_RANLIB
19550 old_archive_cmds=$lt_old_archive_cmds_RC
19551 old_postinstall_cmds=$lt_old_postinstall_cmds
19552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19554 # Create an old-style archive from a shared archive.
19555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19557 # Create a temporary old-style archive to link instead of a shared archive.
19558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19560 # Commands used to build and install a shared archive.
19561 archive_cmds=$lt_archive_cmds_RC
19562 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19563 postinstall_cmds=$lt_postinstall_cmds
19564 postuninstall_cmds=$lt_postuninstall_cmds
19566 # Commands used to build a loadable module (assumed same as above if empty)
19567 module_cmds=$lt_module_cmds_RC
19568 module_expsym_cmds=$lt_module_expsym_cmds_RC
19570 # Commands to strip libraries.
19571 old_striplib=$lt_old_striplib
19572 striplib=$lt_striplib
19574 # Dependencies to place before the objects being linked to create a
19575 # shared library.
19576 predep_objects=$lt_predep_objects_RC
19578 # Dependencies to place after the objects being linked to create a
19579 # shared library.
19580 postdep_objects=$lt_postdep_objects_RC
19582 # Dependencies to place before the objects being linked to create a
19583 # shared library.
19584 predeps=$lt_predeps_RC
19586 # Dependencies to place after the objects being linked to create a
19587 # shared library.
19588 postdeps=$lt_postdeps_RC
19590 # The library search path used internally by the compiler when linking
19591 # a shared library.
19592 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19594 # Method to check whether dependent libraries are shared objects.
19595 deplibs_check_method=$lt_deplibs_check_method
19597 # Command to use when deplibs_check_method == file_magic.
19598 file_magic_cmd=$lt_file_magic_cmd
19600 # Flag that allows shared libraries with undefined symbols to be built.
19601 allow_undefined_flag=$lt_allow_undefined_flag_RC
19603 # Flag that forces no undefined symbols.
19604 no_undefined_flag=$lt_no_undefined_flag_RC
19606 # Commands used to finish a libtool library installation in a directory.
19607 finish_cmds=$lt_finish_cmds
19609 # Same as above, but a single script fragment to be evaled but not shown.
19610 finish_eval=$lt_finish_eval
19612 # Take the output of nm and produce a listing of raw symbols and C names.
19613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19615 # Transform the output of nm in a proper C declaration
19616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19618 # Transform the output of nm in a C name address pair
19619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19621 # This is the shared library runtime path variable.
19622 runpath_var=$runpath_var
19624 # This is the shared library path variable.
19625 shlibpath_var=$shlibpath_var
19627 # Is shlibpath searched before the hard-coded library search path?
19628 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19630 # How to hardcode a shared library path into an executable.
19631 hardcode_action=$hardcode_action_RC
19633 # Whether we should hardcode library paths into libraries.
19634 hardcode_into_libs=$hardcode_into_libs
19636 # Flag to hardcode \$libdir into a binary during linking.
19637 # This must work even if \$libdir does not exist.
19638 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19640 # If ld is used when linking, flag to hardcode \$libdir into
19641 # a binary during linking. This must work even if \$libdir does
19642 # not exist.
19643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19645 # Whether we need a single -rpath flag with a separated argument.
19646 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19648 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19649 # resulting binary.
19650 hardcode_direct=$hardcode_direct_RC
19652 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19653 # resulting binary.
19654 hardcode_minus_L=$hardcode_minus_L_RC
19656 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19657 # the resulting binary.
19658 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19660 # Set to yes if building a shared library automatically hardcodes DIR into the library
19661 # and all subsequent libraries and executables linked against it.
19662 hardcode_automatic=$hardcode_automatic_RC
19664 # Variables whose values should be saved in libtool wrapper scripts and
19665 # restored at relink time.
19666 variables_saved_for_relink="$variables_saved_for_relink"
19668 # Whether libtool must link a program against all its dependency libraries.
19669 link_all_deplibs=$link_all_deplibs_RC
19671 # Compile-time system search path for libraries
19672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19674 # Run-time system search path for libraries
19675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19677 # Fix the shell variable \$srcfile for the compiler.
19678 fix_srcfile_path=$lt_fix_srcfile_path
19680 # Set to yes if exported symbols are required.
19681 always_export_symbols=$always_export_symbols_RC
19683 # The commands to list exported symbols.
19684 export_symbols_cmds=$lt_export_symbols_cmds_RC
19686 # The commands to extract the exported symbol list from a shared archive.
19687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19689 # Symbols that should not be listed in the preloaded symbols.
19690 exclude_expsyms=$lt_exclude_expsyms_RC
19692 # Symbols that must always be exported.
19693 include_expsyms=$lt_include_expsyms_RC
19695 # ### END LIBTOOL TAG CONFIG: $tagname
19697 __EOF__
19700 else
19701 # If there is no Makefile yet, we rely on a make rule to execute
19702 # `config.status --recheck' to rerun these tests and create the
19703 # libtool script then.
19704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19705 if test -f "$ltmain_in"; then
19706 test -f Makefile && make "$ltmain"
19711 ac_ext=c
19712 ac_cpp='$CPP $CPPFLAGS'
19713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717 CC="$lt_save_CC"
19722 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19723 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19724 { (exit 1); exit 1; }; }
19726 esac
19728 # Append the new tag name to the list of available tags.
19729 if test -n "$tagname" ; then
19730 available_tags="$available_tags $tagname"
19733 done
19734 IFS="$lt_save_ifs"
19736 # Now substitute the updated list of available tags.
19737 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19738 mv "${ofile}T" "$ofile"
19739 chmod +x "$ofile"
19740 else
19741 rm -f "${ofile}T"
19742 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19743 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19744 { (exit 1); exit 1; }; }
19750 # This can be used to rebuild libtool when needed
19751 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19753 # Always use our own libtool.
19754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19756 # Prevent multiple expansion
19777 ac_ext=c
19778 ac_cpp='$CPP $CPPFLAGS'
19779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19782 if test -n "$ac_tool_prefix"; then
19783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19787 if test "${ac_cv_prog_CC+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 if test -n "$CC"; then
19791 ac_cv_prog_CC="$CC" # Let the user override the test.
19792 else
19793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19794 for as_dir in $PATH
19796 IFS=$as_save_IFS
19797 test -z "$as_dir" && as_dir=.
19798 for ac_exec_ext in '' $ac_executable_extensions; do
19799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19802 break 2
19804 done
19805 done
19806 IFS=$as_save_IFS
19810 CC=$ac_cv_prog_CC
19811 if test -n "$CC"; then
19812 { echo "$as_me:$LINENO: result: $CC" >&5
19813 echo "${ECHO_T}$CC" >&6; }
19814 else
19815 { echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6; }
19821 if test -z "$ac_cv_prog_CC"; then
19822 ac_ct_CC=$CC
19823 # Extract the first word of "gcc", so it can be a program name with args.
19824 set dummy gcc; ac_word=$2
19825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830 if test -n "$ac_ct_CC"; then
19831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19832 else
19833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19834 for as_dir in $PATH
19836 IFS=$as_save_IFS
19837 test -z "$as_dir" && as_dir=.
19838 for ac_exec_ext in '' $ac_executable_extensions; do
19839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19840 ac_cv_prog_ac_ct_CC="gcc"
19841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19842 break 2
19844 done
19845 done
19846 IFS=$as_save_IFS
19850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19851 if test -n "$ac_ct_CC"; then
19852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19853 echo "${ECHO_T}$ac_ct_CC" >&6; }
19854 else
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19859 if test "x$ac_ct_CC" = x; then
19860 CC=""
19861 else
19862 case $cross_compiling:$ac_tool_warned in
19863 yes:)
19864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19865 whose name does not start with the host triplet. If you think this
19866 configuration is useful to you, please write to autoconf@gnu.org." >&5
19867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19868 whose name does not start with the host triplet. If you think this
19869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19870 ac_tool_warned=yes ;;
19871 esac
19872 CC=$ac_ct_CC
19874 else
19875 CC="$ac_cv_prog_CC"
19878 if test -z "$CC"; then
19879 if test -n "$ac_tool_prefix"; then
19880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19881 set dummy ${ac_tool_prefix}cc; ac_word=$2
19882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19884 if test "${ac_cv_prog_CC+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 if test -n "$CC"; then
19888 ac_cv_prog_CC="$CC" # Let the user override the test.
19889 else
19890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19891 for as_dir in $PATH
19893 IFS=$as_save_IFS
19894 test -z "$as_dir" && as_dir=.
19895 for ac_exec_ext in '' $ac_executable_extensions; do
19896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19897 ac_cv_prog_CC="${ac_tool_prefix}cc"
19898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19899 break 2
19901 done
19902 done
19903 IFS=$as_save_IFS
19907 CC=$ac_cv_prog_CC
19908 if test -n "$CC"; then
19909 { echo "$as_me:$LINENO: result: $CC" >&5
19910 echo "${ECHO_T}$CC" >&6; }
19911 else
19912 { echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6; }
19919 if test -z "$CC"; then
19920 # Extract the first word of "cc", so it can be a program name with args.
19921 set dummy cc; ac_word=$2
19922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19924 if test "${ac_cv_prog_CC+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 if test -n "$CC"; then
19928 ac_cv_prog_CC="$CC" # Let the user override the test.
19929 else
19930 ac_prog_rejected=no
19931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19932 for as_dir in $PATH
19934 IFS=$as_save_IFS
19935 test -z "$as_dir" && as_dir=.
19936 for ac_exec_ext in '' $ac_executable_extensions; do
19937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19939 ac_prog_rejected=yes
19940 continue
19942 ac_cv_prog_CC="cc"
19943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19944 break 2
19946 done
19947 done
19948 IFS=$as_save_IFS
19950 if test $ac_prog_rejected = yes; then
19951 # We found a bogon in the path, so make sure we never use it.
19952 set dummy $ac_cv_prog_CC
19953 shift
19954 if test $# != 0; then
19955 # We chose a different compiler from the bogus one.
19956 # However, it has the same basename, so the bogon will be chosen
19957 # first if we set CC to just the basename; use the full file name.
19958 shift
19959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19964 CC=$ac_cv_prog_CC
19965 if test -n "$CC"; then
19966 { echo "$as_me:$LINENO: result: $CC" >&5
19967 echo "${ECHO_T}$CC" >&6; }
19968 else
19969 { echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6; }
19975 if test -z "$CC"; then
19976 if test -n "$ac_tool_prefix"; then
19977 for ac_prog in cl.exe
19979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19983 if test "${ac_cv_prog_CC+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 if test -n "$CC"; then
19987 ac_cv_prog_CC="$CC" # Let the user override the test.
19988 else
19989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990 for as_dir in $PATH
19992 IFS=$as_save_IFS
19993 test -z "$as_dir" && as_dir=.
19994 for ac_exec_ext in '' $ac_executable_extensions; do
19995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998 break 2
20000 done
20001 done
20002 IFS=$as_save_IFS
20006 CC=$ac_cv_prog_CC
20007 if test -n "$CC"; then
20008 { echo "$as_me:$LINENO: result: $CC" >&5
20009 echo "${ECHO_T}$CC" >&6; }
20010 else
20011 { echo "$as_me:$LINENO: result: no" >&5
20012 echo "${ECHO_T}no" >&6; }
20016 test -n "$CC" && break
20017 done
20019 if test -z "$CC"; then
20020 ac_ct_CC=$CC
20021 for ac_prog in cl.exe
20023 # Extract the first word of "$ac_prog", so it can be a program name with args.
20024 set dummy $ac_prog; ac_word=$2
20025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 if test -n "$ac_ct_CC"; then
20031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20032 else
20033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20034 for as_dir in $PATH
20036 IFS=$as_save_IFS
20037 test -z "$as_dir" && as_dir=.
20038 for ac_exec_ext in '' $ac_executable_extensions; do
20039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20040 ac_cv_prog_ac_ct_CC="$ac_prog"
20041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20042 break 2
20044 done
20045 done
20046 IFS=$as_save_IFS
20050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20051 if test -n "$ac_ct_CC"; then
20052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20053 echo "${ECHO_T}$ac_ct_CC" >&6; }
20054 else
20055 { echo "$as_me:$LINENO: result: no" >&5
20056 echo "${ECHO_T}no" >&6; }
20060 test -n "$ac_ct_CC" && break
20061 done
20063 if test "x$ac_ct_CC" = x; then
20064 CC=""
20065 else
20066 case $cross_compiling:$ac_tool_warned in
20067 yes:)
20068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20069 whose name does not start with the host triplet. If you think this
20070 configuration is useful to you, please write to autoconf@gnu.org." >&5
20071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20072 whose name does not start with the host triplet. If you think this
20073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20074 ac_tool_warned=yes ;;
20075 esac
20076 CC=$ac_ct_CC
20083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20084 See \`config.log' for more details." >&5
20085 echo "$as_me: error: no acceptable C compiler found in \$PATH
20086 See \`config.log' for more details." >&2;}
20087 { (exit 1); exit 1; }; }
20089 # Provide some information about the compiler.
20090 echo "$as_me:$LINENO: checking for C compiler version" >&5
20091 ac_compiler=`set X $ac_compile; echo $2`
20092 { (ac_try="$ac_compiler --version >&5"
20093 case "(($ac_try" in
20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095 *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_compiler --version >&5") 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }
20102 { (ac_try="$ac_compiler -v >&5"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compiler -v >&5") 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }
20112 { (ac_try="$ac_compiler -V >&5"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compiler -V >&5") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }
20123 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20124 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20125 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128 cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h. */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20136 main ()
20138 #ifndef __GNUC__
20139 choke me
20140 #endif
20143 return 0;
20145 _ACEOF
20146 rm -f conftest.$ac_objext
20147 if { (ac_try="$ac_compile"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 ac_compiler_gnu=yes
20164 else
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_compiler_gnu=no
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20175 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20177 GCC=`test $ac_compiler_gnu = yes && echo yes`
20178 ac_test_CFLAGS=${CFLAGS+set}
20179 ac_save_CFLAGS=$CFLAGS
20180 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20181 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20182 if test "${ac_cv_prog_cc_g+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185 ac_save_c_werror_flag=$ac_c_werror_flag
20186 ac_c_werror_flag=yes
20187 ac_cv_prog_cc_g=no
20188 CFLAGS="-g"
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20197 main ()
20201 return 0;
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20212 ac_status=$?
20213 grep -v '^ *+' conftest.er1 >conftest.err
20214 rm -f conftest.er1
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest.$ac_objext; then
20221 ac_cv_prog_cc_g=yes
20222 else
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 CFLAGS=""
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20235 main ()
20239 return 0;
20241 _ACEOF
20242 rm -f conftest.$ac_objext
20243 if { (ac_try="$ac_compile"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest.$ac_objext; then
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_c_werror_flag=$ac_save_c_werror_flag
20265 CFLAGS="-g"
20266 cat >conftest.$ac_ext <<_ACEOF
20267 /* confdefs.h. */
20268 _ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20274 main ()
20278 return 0;
20280 _ACEOF
20281 rm -f conftest.$ac_objext
20282 if { (ac_try="$ac_compile"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_compile") 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest.$ac_objext; then
20298 ac_cv_prog_cc_g=yes
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 ac_c_werror_flag=$ac_save_c_werror_flag
20315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20316 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20317 if test "$ac_test_CFLAGS" = set; then
20318 CFLAGS=$ac_save_CFLAGS
20319 elif test $ac_cv_prog_cc_g = yes; then
20320 if test "$GCC" = yes; then
20321 CFLAGS="-g -O2"
20322 else
20323 CFLAGS="-g"
20325 else
20326 if test "$GCC" = yes; then
20327 CFLAGS="-O2"
20328 else
20329 CFLAGS=
20332 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20333 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20334 if test "${ac_cv_prog_cc_c89+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 ac_cv_prog_cc_c89=no
20338 ac_save_CC=$CC
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <stdarg.h>
20346 #include <stdio.h>
20347 #include <sys/types.h>
20348 #include <sys/stat.h>
20349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20350 struct buf { int x; };
20351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20352 static char *e (p, i)
20353 char **p;
20354 int i;
20356 return p[i];
20358 static char *f (char * (*g) (char **, int), char **p, ...)
20360 char *s;
20361 va_list v;
20362 va_start (v,p);
20363 s = g (p, va_arg (v,int));
20364 va_end (v);
20365 return s;
20368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20369 function prototypes and stuff, but not '\xHH' hex character constants.
20370 These don't provoke an error unfortunately, instead are silently treated
20371 as 'x'. The following induces an error, until -std is added to get
20372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20373 array size at least. It's necessary to write '\x00'==0 to get something
20374 that's true only with -std. */
20375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20378 inside strings and character constants. */
20379 #define FOO(x) 'x'
20380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20382 int test (int i, double x);
20383 struct s1 {int (*f) (int a);};
20384 struct s2 {int (*f) (double a);};
20385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20386 int argc;
20387 char **argv;
20389 main ()
20391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20393 return 0;
20395 _ACEOF
20396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20399 CC="$ac_save_CC $ac_arg"
20400 rm -f conftest.$ac_objext
20401 if { (ac_try="$ac_compile"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_compile") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest.$ac_objext; then
20417 ac_cv_prog_cc_c89=$ac_arg
20418 else
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20425 rm -f core conftest.err conftest.$ac_objext
20426 test "x$ac_cv_prog_cc_c89" != "xno" && break
20427 done
20428 rm -f conftest.$ac_ext
20429 CC=$ac_save_CC
20432 # AC_CACHE_VAL
20433 case "x$ac_cv_prog_cc_c89" in
20435 { echo "$as_me:$LINENO: result: none needed" >&5
20436 echo "${ECHO_T}none needed" >&6; } ;;
20437 xno)
20438 { echo "$as_me:$LINENO: result: unsupported" >&5
20439 echo "${ECHO_T}unsupported" >&6; } ;;
20441 CC="$CC $ac_cv_prog_cc_c89"
20442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20443 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20444 esac
20447 ac_ext=c
20448 ac_cpp='$CPP $CPPFLAGS'
20449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453 depcc="$CC" am_compiler_list=
20455 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20456 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20457 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20461 # We make a subdir and do the tests there. Otherwise we can end up
20462 # making bogus files that we don't know about and never remove. For
20463 # instance it was reported that on HP-UX the gcc test will end up
20464 # making a dummy file named `D' -- because `-MD' means `put the output
20465 # in D'.
20466 mkdir conftest.dir
20467 # Copy depcomp to subdir because otherwise we won't find it if we're
20468 # using a relative directory.
20469 cp "$am_depcomp" conftest.dir
20470 cd conftest.dir
20471 # We will build objects and dependencies in a subdirectory because
20472 # it helps to detect inapplicable dependency modes. For instance
20473 # both Tru64's cc and ICC support -MD to output dependencies as a
20474 # side effect of compilation, but ICC will put the dependencies in
20475 # the current directory while Tru64 will put them in the object
20476 # directory.
20477 mkdir sub
20479 am_cv_CC_dependencies_compiler_type=none
20480 if test "$am_compiler_list" = ""; then
20481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20483 for depmode in $am_compiler_list; do
20484 # Setup a source with many dependencies, because some compilers
20485 # like to wrap large dependency lists on column 80 (with \), and
20486 # we should not choose a depcomp mode which is confused by this.
20488 # We need to recreate these files for each test, as the compiler may
20489 # overwrite some of them when testing with obscure command lines.
20490 # This happens at least with the AIX C compiler.
20491 : > sub/conftest.c
20492 for i in 1 2 3 4 5 6; do
20493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20494 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20495 # Solaris 8's {/usr,}/bin/sh.
20496 touch sub/conftst$i.h
20497 done
20498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20500 case $depmode in
20501 nosideeffect)
20502 # after this tag, mechanisms are not by side-effect, so they'll
20503 # only be used when explicitly requested
20504 if test "x$enable_dependency_tracking" = xyes; then
20505 continue
20506 else
20507 break
20510 none) break ;;
20511 esac
20512 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20513 # mode. It turns out that the SunPro C++ compiler does not properly
20514 # handle `-M -o', and we need to detect this.
20515 if depmode=$depmode \
20516 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20518 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20519 >/dev/null 2>conftest.err &&
20520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20521 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20523 # icc doesn't choke on unknown options, it will just issue warnings
20524 # or remarks (even with -Werror). So we grep stderr for any message
20525 # that says an option was ignored or not supported.
20526 # When given -MP, icc 7.0 and 7.1 complain thusly:
20527 # icc: Command line warning: ignoring option '-M'; no argument required
20528 # The diagnosis changed in icc 8.0:
20529 # icc: Command line remark: option '-MP' not supported
20530 if (grep 'ignoring option' conftest.err ||
20531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20532 am_cv_CC_dependencies_compiler_type=$depmode
20533 break
20536 done
20538 cd ..
20539 rm -rf conftest.dir
20540 else
20541 am_cv_CC_dependencies_compiler_type=none
20545 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20546 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20552 test "x$enable_dependency_tracking" != xno \
20553 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20554 am__fastdepCC_TRUE=
20555 am__fastdepCC_FALSE='#'
20556 else
20557 am__fastdepCC_TRUE='#'
20558 am__fastdepCC_FALSE=
20562 # Find a good install program. We prefer a C program (faster),
20563 # so one script is as good as another. But avoid the broken or
20564 # incompatible versions:
20565 # SysV /etc/install, /usr/sbin/install
20566 # SunOS /usr/etc/install
20567 # IRIX /sbin/install
20568 # AIX /bin/install
20569 # AmigaOS /C/install, which installs bootblocks on floppy discs
20570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20573 # OS/2's system install, which has a completely different semantic
20574 # ./install, which can be erroneously created by make from ./install.sh.
20575 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20576 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20577 if test -z "$INSTALL"; then
20578 if test "${ac_cv_path_install+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20582 for as_dir in $PATH
20584 IFS=$as_save_IFS
20585 test -z "$as_dir" && as_dir=.
20586 # Account for people who put trailing slashes in PATH elements.
20587 case $as_dir/ in
20588 ./ | .// | /cC/* | \
20589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20590 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20591 /usr/ucb/* ) ;;
20593 # OSF1 and SCO ODT 3.0 have their own names for install.
20594 # Don't use installbsd from OSF since it installs stuff as root
20595 # by default.
20596 for ac_prog in ginstall scoinst install; do
20597 for ac_exec_ext in '' $ac_executable_extensions; do
20598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20599 if test $ac_prog = install &&
20600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20601 # AIX install. It has an incompatible calling convention.
20603 elif test $ac_prog = install &&
20604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20605 # program-specific install script used by HP pwplus--don't use.
20607 else
20608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20609 break 3
20612 done
20613 done
20615 esac
20616 done
20617 IFS=$as_save_IFS
20621 if test "${ac_cv_path_install+set}" = set; then
20622 INSTALL=$ac_cv_path_install
20623 else
20624 # As a last resort, use the slow shell script. Don't cache a
20625 # value for INSTALL within a source directory, because that will
20626 # break other packages using the cache if that directory is
20627 # removed, or if the value is a relative name.
20628 INSTALL=$ac_install_sh
20631 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20632 echo "${ECHO_T}$INSTALL" >&6; }
20634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20635 # It thinks the first close brace ends the variable substitution.
20636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20643 # The alpha architecture needs special flags for binary portability
20644 case "$target" in
20645 alpha*-*-linux*)
20646 CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
20648 *-*-beos*)
20649 ac_default_prefix=/boot/develop/tools/gnupro
20651 *-*-cygwin* | *-*-mingw32*)
20652 if test "$build" != "$target"; then # cross-compiling
20653 ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
20656 esac
20658 # Check for Pango
20662 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20663 if test -n "$ac_tool_prefix"; then
20664 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20665 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671 case $PKG_CONFIG in
20672 [\\/]* | ?:[\\/]*)
20673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20677 for as_dir in $PATH
20679 IFS=$as_save_IFS
20680 test -z "$as_dir" && as_dir=.
20681 for ac_exec_ext in '' $ac_executable_extensions; do
20682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20685 break 2
20687 done
20688 done
20689 IFS=$as_save_IFS
20692 esac
20694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20695 if test -n "$PKG_CONFIG"; then
20696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20698 else
20699 { echo "$as_me:$LINENO: result: no" >&5
20700 echo "${ECHO_T}no" >&6; }
20705 if test -z "$ac_cv_path_PKG_CONFIG"; then
20706 ac_pt_PKG_CONFIG=$PKG_CONFIG
20707 # Extract the first word of "pkg-config", so it can be a program name with args.
20708 set dummy pkg-config; ac_word=$2
20709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20711 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714 case $ac_pt_PKG_CONFIG in
20715 [\\/]* | ?:[\\/]*)
20716 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20720 for as_dir in $PATH
20722 IFS=$as_save_IFS
20723 test -z "$as_dir" && as_dir=.
20724 for ac_exec_ext in '' $ac_executable_extensions; do
20725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20726 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20728 break 2
20730 done
20731 done
20732 IFS=$as_save_IFS
20735 esac
20737 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20738 if test -n "$ac_pt_PKG_CONFIG"; then
20739 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20740 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20741 else
20742 { echo "$as_me:$LINENO: result: no" >&5
20743 echo "${ECHO_T}no" >&6; }
20746 if test "x$ac_pt_PKG_CONFIG" = x; then
20747 PKG_CONFIG=""
20748 else
20749 case $cross_compiling:$ac_tool_warned in
20750 yes:)
20751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20752 whose name does not start with the host triplet. If you think this
20753 configuration is useful to you, please write to autoconf@gnu.org." >&5
20754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20755 whose name does not start with the host triplet. If you think this
20756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20757 ac_tool_warned=yes ;;
20758 esac
20759 PKG_CONFIG=$ac_pt_PKG_CONFIG
20761 else
20762 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20766 if test -n "$PKG_CONFIG"; then
20767 _pkg_min_version=0.9.0
20768 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20769 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20770 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20771 { echo "$as_me:$LINENO: result: yes" >&5
20772 echo "${ECHO_T}yes" >&6; }
20773 else
20774 { echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6; }
20776 PKG_CONFIG=""
20781 pkg_failed=no
20782 { echo "$as_me:$LINENO: checking for PANGO" >&5
20783 echo $ECHO_N "checking for PANGO... $ECHO_C" >&6; }
20785 if test -n "$PKG_CONFIG"; then
20786 if test -n "$PANGO_CFLAGS"; then
20787 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
20788 else
20789 if test -n "$PKG_CONFIG" && \
20790 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango >= 1.2.0\"") >&5
20791 ($PKG_CONFIG --exists --print-errors "pango >= 1.2.0") 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; then
20795 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.2.0" 2>/dev/null`
20796 else
20797 pkg_failed=yes
20800 else
20801 pkg_failed=untried
20803 if test -n "$PKG_CONFIG"; then
20804 if test -n "$PANGO_LIBS"; then
20805 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
20806 else
20807 if test -n "$PKG_CONFIG" && \
20808 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango >= 1.2.0\"") >&5
20809 ($PKG_CONFIG --exists --print-errors "pango >= 1.2.0") 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; then
20813 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.2.0" 2>/dev/null`
20814 else
20815 pkg_failed=yes
20818 else
20819 pkg_failed=untried
20824 if test $pkg_failed = yes; then
20826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20827 _pkg_short_errors_supported=yes
20828 else
20829 _pkg_short_errors_supported=no
20831 if test $_pkg_short_errors_supported = yes; then
20832 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pango >= 1.2.0"`
20833 else
20834 PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango >= 1.2.0"`
20836 # Put the nasty error message in config.log where it belongs
20837 echo "$PANGO_PKG_ERRORS" >&5
20839 { echo "$as_me:$LINENO: result: no" >&5
20840 echo "${ECHO_T}no" >&6; }
20841 { { echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
20842 echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
20843 { (exit 1); exit 1; }; }
20844 elif test $pkg_failed = untried; then
20845 { { echo "$as_me:$LINENO: error: *** pango >= 1.2.0 not found!" >&5
20846 echo "$as_me: error: *** pango >= 1.2.0 not found!" >&2;}
20847 { (exit 1); exit 1; }; }
20848 else
20849 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
20850 PANGO_LIBS=$pkg_cv_PANGO_LIBS
20851 { echo "$as_me:$LINENO: result: yes" >&5
20852 echo "${ECHO_T}yes" >&6; }
20855 CFLAGS="$CFLAGS $PANGO_CFLAGS"
20856 LIBS="$LIBS $PANGO_LIBS"
20859 pkg_failed=no
20860 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
20861 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
20863 if test -n "$PKG_CONFIG"; then
20864 if test -n "$PANGOFT2_CFLAGS"; then
20865 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
20866 else
20867 if test -n "$PKG_CONFIG" && \
20868 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.2.0\"") >&5
20869 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.2.0") 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; then
20873 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.2.0" 2>/dev/null`
20874 else
20875 pkg_failed=yes
20878 else
20879 pkg_failed=untried
20881 if test -n "$PKG_CONFIG"; then
20882 if test -n "$PANGOFT2_LIBS"; then
20883 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
20884 else
20885 if test -n "$PKG_CONFIG" && \
20886 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.2.0\"") >&5
20887 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.2.0") 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; then
20891 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.2.0" 2>/dev/null`
20892 else
20893 pkg_failed=yes
20896 else
20897 pkg_failed=untried
20902 if test $pkg_failed = yes; then
20904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20905 _pkg_short_errors_supported=yes
20906 else
20907 _pkg_short_errors_supported=no
20909 if test $_pkg_short_errors_supported = yes; then
20910 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
20911 else
20912 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.2.0"`
20914 # Put the nasty error message in config.log where it belongs
20915 echo "$PANGOFT2_PKG_ERRORS" >&5
20917 { echo "$as_me:$LINENO: result: no" >&5
20918 echo "${ECHO_T}no" >&6; }
20919 { { echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
20920 echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
20921 { (exit 1); exit 1; }; }
20922 elif test $pkg_failed = untried; then
20923 { { echo "$as_me:$LINENO: error: *** pangoft2 >= 1.2.0 not found!" >&5
20924 echo "$as_me: error: *** pangoft2 >= 1.2.0 not found!" >&2;}
20925 { (exit 1); exit 1; }; }
20926 else
20927 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
20928 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
20929 { echo "$as_me:$LINENO: result: yes" >&5
20930 echo "${ECHO_T}yes" >&6; }
20933 CFLAGS="$CFLAGS $PANGOFT2_CFLAGS"
20934 LIBS="$LIBS $PANGOFT2_LIBS"
20936 # Check for SDL
20938 SDL_VERSION=1.2.4
20940 # Check whether --with-sdl-prefix was given.
20941 if test "${with_sdl_prefix+set}" = set; then
20942 withval=$with_sdl_prefix; sdl_prefix="$withval"
20943 else
20944 sdl_prefix=""
20948 # Check whether --with-sdl-exec-prefix was given.
20949 if test "${with_sdl_exec_prefix+set}" = set; then
20950 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
20951 else
20952 sdl_exec_prefix=""
20955 # Check whether --enable-sdltest was given.
20956 if test "${enable_sdltest+set}" = set; then
20957 enableval=$enable_sdltest;
20958 else
20959 enable_sdltest=yes
20963 if test x$sdl_exec_prefix != x ; then
20964 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
20965 if test x${SDL_CONFIG+set} != xset ; then
20966 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
20969 if test x$sdl_prefix != x ; then
20970 sdl_args="$sdl_args --prefix=$sdl_prefix"
20971 if test x${SDL_CONFIG+set} != xset ; then
20972 SDL_CONFIG=$sdl_prefix/bin/sdl-config
20976 if test "x$prefix" != xNONE; then
20977 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
20979 # Extract the first word of "sdl-config", so it can be a program name with args.
20980 set dummy sdl-config; ac_word=$2
20981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20983 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986 case $SDL_CONFIG in
20987 [\\/]* | ?:[\\/]*)
20988 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
20991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20992 for as_dir in $PATH
20994 IFS=$as_save_IFS
20995 test -z "$as_dir" && as_dir=.
20996 for ac_exec_ext in '' $ac_executable_extensions; do
20997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20998 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21000 break 2
21002 done
21003 done
21004 IFS=$as_save_IFS
21006 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
21008 esac
21010 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
21011 if test -n "$SDL_CONFIG"; then
21012 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
21013 echo "${ECHO_T}$SDL_CONFIG" >&6; }
21014 else
21015 { echo "$as_me:$LINENO: result: no" >&5
21016 echo "${ECHO_T}no" >&6; }
21020 min_sdl_version=$SDL_VERSION
21021 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
21022 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
21023 no_sdl=""
21024 if test "$SDL_CONFIG" = "no" ; then
21025 no_sdl=yes
21026 else
21027 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
21028 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
21030 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
21031 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21032 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
21033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21034 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
21035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21036 if test "x$enable_sdltest" = "xyes" ; then
21037 ac_save_CFLAGS="$CFLAGS"
21038 ac_save_CXXFLAGS="$CXXFLAGS"
21039 ac_save_LIBS="$LIBS"
21040 CFLAGS="$CFLAGS $SDL_CFLAGS"
21041 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
21042 LIBS="$LIBS $SDL_LIBS"
21043 rm -f conf.sdltest
21044 if test "$cross_compiling" = yes; then
21045 echo $ac_n "cross compiling; assumed OK... $ac_c"
21046 else
21047 cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h. */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21054 #include <stdio.h>
21055 #include <stdlib.h>
21056 #include <string.h>
21057 #include "SDL.h"
21059 char*
21060 my_strdup (char *str)
21062 char *new_str;
21064 if (str)
21066 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21067 strcpy (new_str, str);
21069 else
21070 new_str = NULL;
21072 return new_str;
21075 int main (int argc, char *argv[])
21077 int major, minor, micro;
21078 char *tmp_version;
21080 /* This hangs on some systems (?)
21081 system ("touch conf.sdltest");
21083 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
21085 /* HP/UX 9 (%@#!) writes to sscanf strings */
21086 tmp_version = my_strdup("$min_sdl_version");
21087 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21088 printf("%s, bad version string\n", "$min_sdl_version");
21089 exit(1);
21092 if (($sdl_major_version > major) ||
21093 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
21094 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
21096 return 0;
21098 else
21100 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
21101 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
21102 printf("*** best to upgrade to the required version.\n");
21103 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
21104 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
21105 printf("*** config.cache before re-running configure\n");
21106 return 1;
21111 _ACEOF
21112 rm -f conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_link") 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123 { (case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_try") 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21133 else
21134 echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ( exit $ac_status )
21139 no_sdl=yes
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 CFLAGS="$ac_save_CFLAGS"
21146 CXXFLAGS="$ac_save_CXXFLAGS"
21147 LIBS="$ac_save_LIBS"
21150 if test "x$no_sdl" = x ; then
21151 { echo "$as_me:$LINENO: result: yes" >&5
21152 echo "${ECHO_T}yes" >&6; }
21154 else
21155 { echo "$as_me:$LINENO: result: no" >&5
21156 echo "${ECHO_T}no" >&6; }
21157 if test "$SDL_CONFIG" = "no" ; then
21158 echo "*** The sdl-config script installed by SDL could not be found"
21159 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
21160 echo "*** your path, or set the SDL_CONFIG environment variable to the"
21161 echo "*** full path to sdl-config."
21162 else
21163 if test -f conf.sdltest ; then
21165 else
21166 echo "*** Could not run SDL test program, checking why..."
21167 CFLAGS="$CFLAGS $SDL_CFLAGS"
21168 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
21169 LIBS="$LIBS $SDL_LIBS"
21170 cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h. */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 #include <stdio.h>
21178 #include "SDL.h"
21180 int main(int argc, char *argv[])
21181 { return 0; }
21182 #undef main
21183 #define main K_and_R_C_main
21186 main ()
21188 return 0;
21190 return 0;
21192 _ACEOF
21193 rm -f conftest.$ac_objext conftest$ac_exeext
21194 if { (ac_try="$ac_link"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_link") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } && {
21207 test -z "$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 } && test -s conftest$ac_exeext &&
21210 $as_test_x conftest$ac_exeext; then
21211 echo "*** The test program compiled, but did not run. This usually means"
21212 echo "*** that the run-time linker is not finding SDL or finding the wrong"
21213 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
21214 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21215 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21216 echo "*** is required on your system"
21217 echo "***"
21218 echo "*** If you have an old version installed, it is best to remove it, although"
21219 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 echo "*** The test program failed to compile or link. See the file config.log for the"
21225 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
21226 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
21227 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
21230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21231 conftest$ac_exeext conftest.$ac_ext
21232 CFLAGS="$ac_save_CFLAGS"
21233 CXXFLAGS="$ac_save_CXXFLAGS"
21234 LIBS="$ac_save_LIBS"
21237 SDL_CFLAGS=""
21238 SDL_LIBS=""
21239 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
21240 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
21241 { (exit 1); exit 1; }; }
21246 rm -f conf.sdltest
21248 CFLAGS="$CFLAGS $SDL_CFLAGS"
21249 LIBS="$LIBS $SDL_LIBS"
21251 ac_config_files="$ac_config_files Makefile src/Makefile SDL_Pango.pc docs/Makefile docs/Doxyfile VisualC2003/Makefile Wix/Makefile Wix/merge_module.xml Wix/dev.xml Wix/testbench.xml"
21254 # Finally create all the generated files
21255 cat >confcache <<\_ACEOF
21256 # This file is a shell script that caches the results of configure
21257 # tests run on this system so they can be shared between configure
21258 # scripts and configure runs, see configure's option --config-cache.
21259 # It is not useful on other systems. If it contains results you don't
21260 # want to keep, you may remove or edit it.
21262 # config.status only pays attention to the cache file if you give it
21263 # the --recheck option to rerun configure.
21265 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21267 # following values.
21269 _ACEOF
21271 # The following way of writing the cache mishandles newlines in values,
21272 # but we know of no workaround that is simple, portable, and efficient.
21273 # So, we kill variables containing newlines.
21274 # Ultrix sh set writes to stderr and can't be redirected directly,
21275 # and sets the high bit in the cache file unless we assign to the vars.
21277 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21278 eval ac_val=\$$ac_var
21279 case $ac_val in #(
21280 *${as_nl}*)
21281 case $ac_var in #(
21282 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21283 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21284 esac
21285 case $ac_var in #(
21286 _ | IFS | as_nl) ;; #(
21287 *) $as_unset $ac_var ;;
21288 esac ;;
21289 esac
21290 done
21292 (set) 2>&1 |
21293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21294 *${as_nl}ac_space=\ *)
21295 # `set' does not quote correctly, so add quotes (double-quote
21296 # substitution turns \\\\ into \\, and sed turns \\ into \).
21297 sed -n \
21298 "s/'/'\\\\''/g;
21299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21300 ;; #(
21302 # `set' quotes correctly as required by POSIX, so do not add quotes.
21303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21305 esac |
21306 sort
21308 sed '
21309 /^ac_cv_env_/b end
21310 t clear
21311 :clear
21312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21313 t end
21314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21315 :end' >>confcache
21316 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21317 if test -w "$cache_file"; then
21318 test "x$cache_file" != "x/dev/null" &&
21319 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21320 echo "$as_me: updating cache $cache_file" >&6;}
21321 cat confcache >$cache_file
21322 else
21323 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21324 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21327 rm -f confcache
21329 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21330 # Let make expand exec_prefix.
21331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21333 # Transform confdefs.h into DEFS.
21334 # Protect against shell expansion while executing Makefile rules.
21335 # Protect against Makefile macro expansion.
21337 # If the first sed substitution is executed (which looks for macros that
21338 # take arguments), then branch to the quote section. Otherwise,
21339 # look for a macro that doesn't take arguments.
21340 ac_script='
21341 t clear
21342 :clear
21343 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21344 t quote
21345 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21346 t quote
21347 b any
21348 :quote
21349 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21350 s/\[/\\&/g
21351 s/\]/\\&/g
21352 s/\$/$$/g
21354 :any
21357 s/^\n//
21358 s/\n/ /g
21362 DEFS=`sed -n "$ac_script" confdefs.h`
21365 ac_libobjs=
21366 ac_ltlibobjs=
21367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21368 # 1. Remove the extension, and $U if already installed.
21369 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21370 ac_i=`echo "$ac_i" | sed "$ac_script"`
21371 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21372 # will be set to the directory where LIBOBJS objects are built.
21373 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21374 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21375 done
21376 LIBOBJS=$ac_libobjs
21378 LTLIBOBJS=$ac_ltlibobjs
21381 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21382 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21383 Usually this means the macro was only invoked conditionally." >&5
21384 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21385 Usually this means the macro was only invoked conditionally." >&2;}
21386 { (exit 1); exit 1; }; }
21388 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21389 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21390 Usually this means the macro was only invoked conditionally." >&5
21391 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21392 Usually this means the macro was only invoked conditionally." >&2;}
21393 { (exit 1); exit 1; }; }
21395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21397 Usually this means the macro was only invoked conditionally." >&5
21398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21399 Usually this means the macro was only invoked conditionally." >&2;}
21400 { (exit 1); exit 1; }; }
21402 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21403 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21404 Usually this means the macro was only invoked conditionally." >&5
21405 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21406 Usually this means the macro was only invoked conditionally." >&2;}
21407 { (exit 1); exit 1; }; }
21409 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21410 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&5
21412 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&2;}
21414 { (exit 1); exit 1; }; }
21417 : ${CONFIG_STATUS=./config.status}
21418 ac_clean_files_save=$ac_clean_files
21419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21420 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21422 cat >$CONFIG_STATUS <<_ACEOF
21423 #! $SHELL
21424 # Generated by $as_me.
21425 # Run this file to recreate the current configuration.
21426 # Compiler output produced by configure, useful for debugging
21427 # configure, is in config.log if it exists.
21429 debug=false
21430 ac_cs_recheck=false
21431 ac_cs_silent=false
21432 SHELL=\${CONFIG_SHELL-$SHELL}
21433 _ACEOF
21435 cat >>$CONFIG_STATUS <<\_ACEOF
21436 ## --------------------- ##
21437 ## M4sh Initialization. ##
21438 ## --------------------- ##
21440 # Be more Bourne compatible
21441 DUALCASE=1; export DUALCASE # for MKS sh
21442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21443 emulate sh
21444 NULLCMD=:
21445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21446 # is contrary to our usage. Disable this feature.
21447 alias -g '${1+"$@"}'='"$@"'
21448 setopt NO_GLOB_SUBST
21449 else
21450 case `(set -o) 2>/dev/null` in
21451 *posix*) set -o posix ;;
21452 esac
21459 # PATH needs CR
21460 # Avoid depending upon Character Ranges.
21461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21464 as_cr_digits='0123456789'
21465 as_cr_alnum=$as_cr_Letters$as_cr_digits
21467 # The user is always right.
21468 if test "${PATH_SEPARATOR+set}" != set; then
21469 echo "#! /bin/sh" >conf$$.sh
21470 echo "exit 0" >>conf$$.sh
21471 chmod +x conf$$.sh
21472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21473 PATH_SEPARATOR=';'
21474 else
21475 PATH_SEPARATOR=:
21477 rm -f conf$$.sh
21480 # Support unset when possible.
21481 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21482 as_unset=unset
21483 else
21484 as_unset=false
21488 # IFS
21489 # We need space, tab and new line, in precisely that order. Quoting is
21490 # there to prevent editors from complaining about space-tab.
21491 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21492 # splitting by setting IFS to empty value.)
21493 as_nl='
21495 IFS=" "" $as_nl"
21497 # Find who we are. Look in the path if we contain no directory separator.
21498 case $0 in
21499 *[\\/]* ) as_myself=$0 ;;
21500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21501 for as_dir in $PATH
21503 IFS=$as_save_IFS
21504 test -z "$as_dir" && as_dir=.
21505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21506 done
21507 IFS=$as_save_IFS
21510 esac
21511 # We did not find ourselves, most probably we were run as `sh COMMAND'
21512 # in which case we are not to be found in the path.
21513 if test "x$as_myself" = x; then
21514 as_myself=$0
21516 if test ! -f "$as_myself"; then
21517 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21518 { (exit 1); exit 1; }
21521 # Work around bugs in pre-3.0 UWIN ksh.
21522 for as_var in ENV MAIL MAILPATH
21523 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21524 done
21525 PS1='$ '
21526 PS2='> '
21527 PS4='+ '
21529 # NLS nuisances.
21530 for as_var in \
21531 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21532 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21533 LC_TELEPHONE LC_TIME
21535 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21536 eval $as_var=C; export $as_var
21537 else
21538 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21540 done
21542 # Required to use basename.
21543 if expr a : '\(a\)' >/dev/null 2>&1 &&
21544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21545 as_expr=expr
21546 else
21547 as_expr=false
21550 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21551 as_basename=basename
21552 else
21553 as_basename=false
21557 # Name of the executable.
21558 as_me=`$as_basename -- "$0" ||
21559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21560 X"$0" : 'X\(//\)$' \| \
21561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21562 echo X/"$0" |
21563 sed '/^.*\/\([^/][^/]*\)\/*$/{
21564 s//\1/
21567 /^X\/\(\/\/\)$/{
21568 s//\1/
21571 /^X\/\(\/\).*/{
21572 s//\1/
21575 s/.*/./; q'`
21577 # CDPATH.
21578 $as_unset CDPATH
21582 as_lineno_1=$LINENO
21583 as_lineno_2=$LINENO
21584 test "x$as_lineno_1" != "x$as_lineno_2" &&
21585 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21587 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21588 # uniformly replaced by the line number. The first 'sed' inserts a
21589 # line-number line after each line using $LINENO; the second 'sed'
21590 # does the real work. The second script uses 'N' to pair each
21591 # line-number line with the line containing $LINENO, and appends
21592 # trailing '-' during substitution so that $LINENO is not a special
21593 # case at line end.
21594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21595 # scripts with optimization help from Paolo Bonzini. Blame Lee
21596 # E. McMahon (1931-1989) for sed's syntax. :-)
21597 sed -n '
21599 /[$]LINENO/=
21600 ' <$as_myself |
21601 sed '
21602 s/[$]LINENO.*/&-/
21603 t lineno
21605 :lineno
21607 :loop
21608 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21609 t loop
21610 s/-\n.*//
21611 ' >$as_me.lineno &&
21612 chmod +x "$as_me.lineno" ||
21613 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21614 { (exit 1); exit 1; }; }
21616 # Don't try to exec as it changes $[0], causing all sort of problems
21617 # (the dirname of $[0] is not the place where we might find the
21618 # original and so on. Autoconf is especially sensitive to this).
21619 . "./$as_me.lineno"
21620 # Exit status is that of the last command.
21621 exit
21625 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21626 as_dirname=dirname
21627 else
21628 as_dirname=false
21631 ECHO_C= ECHO_N= ECHO_T=
21632 case `echo -n x` in
21633 -n*)
21634 case `echo 'x\c'` in
21635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21636 *) ECHO_C='\c';;
21637 esac;;
21639 ECHO_N='-n';;
21640 esac
21642 if expr a : '\(a\)' >/dev/null 2>&1 &&
21643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21644 as_expr=expr
21645 else
21646 as_expr=false
21649 rm -f conf$$ conf$$.exe conf$$.file
21650 if test -d conf$$.dir; then
21651 rm -f conf$$.dir/conf$$.file
21652 else
21653 rm -f conf$$.dir
21654 mkdir conf$$.dir
21656 echo >conf$$.file
21657 if ln -s conf$$.file conf$$ 2>/dev/null; then
21658 as_ln_s='ln -s'
21659 # ... but there are two gotchas:
21660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21662 # In both cases, we have to default to `cp -p'.
21663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21664 as_ln_s='cp -p'
21665 elif ln conf$$.file conf$$ 2>/dev/null; then
21666 as_ln_s=ln
21667 else
21668 as_ln_s='cp -p'
21670 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21671 rmdir conf$$.dir 2>/dev/null
21673 if mkdir -p . 2>/dev/null; then
21674 as_mkdir_p=:
21675 else
21676 test -d ./-p && rmdir ./-p
21677 as_mkdir_p=false
21680 if test -x / >/dev/null 2>&1; then
21681 as_test_x='test -x'
21682 else
21683 if ls -dL / >/dev/null 2>&1; then
21684 as_ls_L_option=L
21685 else
21686 as_ls_L_option=
21688 as_test_x='
21689 eval sh -c '\''
21690 if test -d "$1"; then
21691 test -d "$1/.";
21692 else
21693 case $1 in
21694 -*)set "./$1";;
21695 esac;
21696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21697 ???[sx]*):;;*)false;;esac;fi
21698 '\'' sh
21701 as_executable_p=$as_test_x
21703 # Sed expression to map a string onto a valid CPP name.
21704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21706 # Sed expression to map a string onto a valid variable name.
21707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21710 exec 6>&1
21712 # Save the log message, to keep $[0] and so on meaningful, and to
21713 # report actual input values of CONFIG_FILES etc. instead of their
21714 # values after options handling.
21715 ac_log="
21716 This file was extended by $as_me, which was
21717 generated by GNU Autoconf 2.61. Invocation command line was
21719 CONFIG_FILES = $CONFIG_FILES
21720 CONFIG_HEADERS = $CONFIG_HEADERS
21721 CONFIG_LINKS = $CONFIG_LINKS
21722 CONFIG_COMMANDS = $CONFIG_COMMANDS
21723 $ $0 $@
21725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21728 _ACEOF
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 # Files that config.status was made for.
21732 config_files="$ac_config_files"
21733 config_commands="$ac_config_commands"
21735 _ACEOF
21737 cat >>$CONFIG_STATUS <<\_ACEOF
21738 ac_cs_usage="\
21739 \`$as_me' instantiates files from templates according to the
21740 current configuration.
21742 Usage: $0 [OPTIONS] [FILE]...
21744 -h, --help print this help, then exit
21745 -V, --version print version number and configuration settings, then exit
21746 -q, --quiet do not print progress messages
21747 -d, --debug don't remove temporary files
21748 --recheck update $as_me by reconfiguring in the same conditions
21749 --file=FILE[:TEMPLATE]
21750 instantiate the configuration file FILE
21752 Configuration files:
21753 $config_files
21755 Configuration commands:
21756 $config_commands
21758 Report bugs to <bug-autoconf@gnu.org>."
21760 _ACEOF
21761 cat >>$CONFIG_STATUS <<_ACEOF
21762 ac_cs_version="\\
21763 config.status
21764 configured by $0, generated by GNU Autoconf 2.61,
21765 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21767 Copyright (C) 2006 Free Software Foundation, Inc.
21768 This config.status script is free software; the Free Software Foundation
21769 gives unlimited permission to copy, distribute and modify it."
21771 ac_pwd='$ac_pwd'
21772 srcdir='$srcdir'
21773 INSTALL='$INSTALL'
21774 _ACEOF
21776 cat >>$CONFIG_STATUS <<\_ACEOF
21777 # If no file are specified by the user, then we need to provide default
21778 # value. By we need to know if files were specified by the user.
21779 ac_need_defaults=:
21780 while test $# != 0
21782 case $1 in
21783 --*=*)
21784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21785 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21786 ac_shift=:
21789 ac_option=$1
21790 ac_optarg=$2
21791 ac_shift=shift
21793 esac
21795 case $ac_option in
21796 # Handling of the options.
21797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21798 ac_cs_recheck=: ;;
21799 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21800 echo "$ac_cs_version"; exit ;;
21801 --debug | --debu | --deb | --de | --d | -d )
21802 debug=: ;;
21803 --file | --fil | --fi | --f )
21804 $ac_shift
21805 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21806 ac_need_defaults=false;;
21807 --he | --h | --help | --hel | -h )
21808 echo "$ac_cs_usage"; exit ;;
21809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21811 ac_cs_silent=: ;;
21813 # This is an error.
21814 -*) { echo "$as_me: error: unrecognized option: $1
21815 Try \`$0 --help' for more information." >&2
21816 { (exit 1); exit 1; }; } ;;
21818 *) ac_config_targets="$ac_config_targets $1"
21819 ac_need_defaults=false ;;
21821 esac
21822 shift
21823 done
21825 ac_configure_extra_args=
21827 if $ac_cs_silent; then
21828 exec 6>/dev/null
21829 ac_configure_extra_args="$ac_configure_extra_args --silent"
21832 _ACEOF
21833 cat >>$CONFIG_STATUS <<_ACEOF
21834 if \$ac_cs_recheck; then
21835 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21836 CONFIG_SHELL=$SHELL
21837 export CONFIG_SHELL
21838 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21841 _ACEOF
21842 cat >>$CONFIG_STATUS <<\_ACEOF
21843 exec 5>>config.log
21845 echo
21846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21847 ## Running $as_me. ##
21848 _ASBOX
21849 echo "$ac_log"
21850 } >&5
21852 _ACEOF
21853 cat >>$CONFIG_STATUS <<_ACEOF
21855 # INIT-COMMANDS
21857 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21859 _ACEOF
21861 cat >>$CONFIG_STATUS <<\_ACEOF
21863 # Handling of arguments.
21864 for ac_config_target in $ac_config_targets
21866 case $ac_config_target in
21867 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21868 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21869 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21870 "SDL_Pango.pc") CONFIG_FILES="$CONFIG_FILES SDL_Pango.pc" ;;
21871 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21872 "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;;
21873 "VisualC2003/Makefile") CONFIG_FILES="$CONFIG_FILES VisualC2003/Makefile" ;;
21874 "Wix/Makefile") CONFIG_FILES="$CONFIG_FILES Wix/Makefile" ;;
21875 "Wix/merge_module.xml") CONFIG_FILES="$CONFIG_FILES Wix/merge_module.xml" ;;
21876 "Wix/dev.xml") CONFIG_FILES="$CONFIG_FILES Wix/dev.xml" ;;
21877 "Wix/testbench.xml") CONFIG_FILES="$CONFIG_FILES Wix/testbench.xml" ;;
21879 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21880 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21881 { (exit 1); exit 1; }; };;
21882 esac
21883 done
21886 # If the user did not use the arguments to specify the items to instantiate,
21887 # then the envvar interface is used. Set only those that are not.
21888 # We use the long form for the default assignment because of an extremely
21889 # bizarre bug on SunOS 4.1.3.
21890 if $ac_need_defaults; then
21891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21895 # Have a temporary directory for convenience. Make it in the build tree
21896 # simply because there is no reason against having it here, and in addition,
21897 # creating and moving files from /tmp can sometimes cause problems.
21898 # Hook for its removal unless debugging.
21899 # Note that there is a small window in which the directory will not be cleaned:
21900 # after its creation but before its name has been assigned to `$tmp'.
21901 $debug ||
21903 tmp=
21904 trap 'exit_status=$?
21905 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21907 trap '{ (exit 1); exit 1; }' 1 2 13 15
21909 # Create a (secure) tmp directory for tmp files.
21912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21913 test -n "$tmp" && test -d "$tmp"
21914 } ||
21916 tmp=./conf$$-$RANDOM
21917 (umask 077 && mkdir "$tmp")
21918 } ||
21920 echo "$me: cannot create a temporary directory in ." >&2
21921 { (exit 1); exit 1; }
21925 # Set up the sed scripts for CONFIG_FILES section.
21928 # No need to generate the scripts if there are no CONFIG_FILES.
21929 # This happens for instance when ./config.status config.h
21930 if test -n "$CONFIG_FILES"; then
21932 _ACEOF
21936 ac_delim='%!_!# '
21937 for ac_last_try in false false false false false :; do
21938 cat >conf$$subs.sed <<_ACEOF
21939 SHELL!$SHELL$ac_delim
21940 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21941 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21942 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21943 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21944 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21945 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21946 exec_prefix!$exec_prefix$ac_delim
21947 prefix!$prefix$ac_delim
21948 program_transform_name!$program_transform_name$ac_delim
21949 bindir!$bindir$ac_delim
21950 sbindir!$sbindir$ac_delim
21951 libexecdir!$libexecdir$ac_delim
21952 datarootdir!$datarootdir$ac_delim
21953 datadir!$datadir$ac_delim
21954 sysconfdir!$sysconfdir$ac_delim
21955 sharedstatedir!$sharedstatedir$ac_delim
21956 localstatedir!$localstatedir$ac_delim
21957 includedir!$includedir$ac_delim
21958 oldincludedir!$oldincludedir$ac_delim
21959 docdir!$docdir$ac_delim
21960 infodir!$infodir$ac_delim
21961 htmldir!$htmldir$ac_delim
21962 dvidir!$dvidir$ac_delim
21963 pdfdir!$pdfdir$ac_delim
21964 psdir!$psdir$ac_delim
21965 libdir!$libdir$ac_delim
21966 localedir!$localedir$ac_delim
21967 mandir!$mandir$ac_delim
21968 DEFS!$DEFS$ac_delim
21969 ECHO_C!$ECHO_C$ac_delim
21970 ECHO_N!$ECHO_N$ac_delim
21971 ECHO_T!$ECHO_T$ac_delim
21972 LIBS!$LIBS$ac_delim
21973 build_alias!$build_alias$ac_delim
21974 host_alias!$host_alias$ac_delim
21975 target_alias!$target_alias$ac_delim
21976 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21977 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21978 MAINT!$MAINT$ac_delim
21979 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
21980 MINOR_VERSION!$MINOR_VERSION$ac_delim
21981 MICRO_VERSION!$MICRO_VERSION$ac_delim
21982 INTERFACE_AGE!$INTERFACE_AGE$ac_delim
21983 BINARY_AGE!$BINARY_AGE$ac_delim
21984 VERSION!$VERSION$ac_delim
21985 LT_RELEASE!$LT_RELEASE$ac_delim
21986 LT_CURRENT!$LT_CURRENT$ac_delim
21987 LT_REVISION!$LT_REVISION$ac_delim
21988 LT_AGE!$LT_AGE$ac_delim
21989 build!$build$ac_delim
21990 build_cpu!$build_cpu$ac_delim
21991 build_vendor!$build_vendor$ac_delim
21992 build_os!$build_os$ac_delim
21993 host!$host$ac_delim
21994 host_cpu!$host_cpu$ac_delim
21995 host_vendor!$host_vendor$ac_delim
21996 host_os!$host_os$ac_delim
21997 target!$target$ac_delim
21998 target_cpu!$target_cpu$ac_delim
21999 target_vendor!$target_vendor$ac_delim
22000 target_os!$target_os$ac_delim
22001 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22002 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22003 INSTALL_DATA!$INSTALL_DATA$ac_delim
22004 CYGPATH_W!$CYGPATH_W$ac_delim
22005 PACKAGE!$PACKAGE$ac_delim
22006 ACLOCAL!$ACLOCAL$ac_delim
22007 AUTOCONF!$AUTOCONF$ac_delim
22008 AUTOMAKE!$AUTOMAKE$ac_delim
22009 AUTOHEADER!$AUTOHEADER$ac_delim
22010 MAKEINFO!$MAKEINFO$ac_delim
22011 AMTAR!$AMTAR$ac_delim
22012 install_sh!$install_sh$ac_delim
22013 STRIP!$STRIP$ac_delim
22014 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22015 mkdir_p!$mkdir_p$ac_delim
22016 AWK!$AWK$ac_delim
22017 SET_MAKE!$SET_MAKE$ac_delim
22018 am__leading_dot!$am__leading_dot$ac_delim
22019 CC!$CC$ac_delim
22020 CFLAGS!$CFLAGS$ac_delim
22021 LDFLAGS!$LDFLAGS$ac_delim
22022 CPPFLAGS!$CPPFLAGS$ac_delim
22023 ac_ct_CC!$ac_ct_CC$ac_delim
22024 EXEEXT!$EXEEXT$ac_delim
22025 OBJEXT!$OBJEXT$ac_delim
22026 DEPDIR!$DEPDIR$ac_delim
22027 am__include!$am__include$ac_delim
22028 am__quote!$am__quote$ac_delim
22029 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22030 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22031 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22032 CCDEPMODE!$CCDEPMODE$ac_delim
22033 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22034 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22035 SED!$SED$ac_delim
22036 _ACEOF
22038 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22039 break
22040 elif $ac_last_try; then
22041 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22043 { (exit 1); exit 1; }; }
22044 else
22045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22047 done
22049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22050 if test -n "$ac_eof"; then
22051 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22052 ac_eof=`expr $ac_eof + 1`
22055 cat >>$CONFIG_STATUS <<_ACEOF
22056 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22058 _ACEOF
22059 sed '
22060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22061 s/^/s,@/; s/!/@,|#_!!_#|/
22064 s/'"$ac_delim"'$/,g/; t
22065 s/$/\\/; p
22066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22067 ' >>$CONFIG_STATUS <conf$$subs.sed
22068 rm -f conf$$subs.sed
22069 cat >>$CONFIG_STATUS <<_ACEOF
22070 CEOF$ac_eof
22071 _ACEOF
22074 ac_delim='%!_!# '
22075 for ac_last_try in false false false false false :; do
22076 cat >conf$$subs.sed <<_ACEOF
22077 GREP!$GREP$ac_delim
22078 EGREP!$EGREP$ac_delim
22079 LN_S!$LN_S$ac_delim
22080 ECHO!$ECHO$ac_delim
22081 AR!$AR$ac_delim
22082 RANLIB!$RANLIB$ac_delim
22083 DLLTOOL!$DLLTOOL$ac_delim
22084 AS!$AS$ac_delim
22085 OBJDUMP!$OBJDUMP$ac_delim
22086 CPP!$CPP$ac_delim
22087 CXX!$CXX$ac_delim
22088 CXXFLAGS!$CXXFLAGS$ac_delim
22089 ac_ct_CXX!$ac_ct_CXX$ac_delim
22090 CXXDEPMODE!$CXXDEPMODE$ac_delim
22091 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22092 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22093 CXXCPP!$CXXCPP$ac_delim
22094 F77!$F77$ac_delim
22095 FFLAGS!$FFLAGS$ac_delim
22096 ac_ct_F77!$ac_ct_F77$ac_delim
22097 LIBTOOL!$LIBTOOL$ac_delim
22098 PKG_CONFIG!$PKG_CONFIG$ac_delim
22099 PANGO_CFLAGS!$PANGO_CFLAGS$ac_delim
22100 PANGO_LIBS!$PANGO_LIBS$ac_delim
22101 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
22102 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
22103 SDL_CONFIG!$SDL_CONFIG$ac_delim
22104 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
22105 SDL_LIBS!$SDL_LIBS$ac_delim
22106 LIBOBJS!$LIBOBJS$ac_delim
22107 LTLIBOBJS!$LTLIBOBJS$ac_delim
22108 _ACEOF
22110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
22111 break
22112 elif $ac_last_try; then
22113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22115 { (exit 1); exit 1; }; }
22116 else
22117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22119 done
22121 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22122 if test -n "$ac_eof"; then
22123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22124 ac_eof=`expr $ac_eof + 1`
22127 cat >>$CONFIG_STATUS <<_ACEOF
22128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22130 _ACEOF
22131 sed '
22132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22133 s/^/s,@/; s/!/@,|#_!!_#|/
22136 s/'"$ac_delim"'$/,g/; t
22137 s/$/\\/; p
22138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22139 ' >>$CONFIG_STATUS <conf$$subs.sed
22140 rm -f conf$$subs.sed
22141 cat >>$CONFIG_STATUS <<_ACEOF
22142 :end
22143 s/|#_!!_#|//g
22144 CEOF$ac_eof
22145 _ACEOF
22148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22150 # trailing colons and then remove the whole line if VPATH becomes empty
22151 # (actually we leave an empty line to preserve line numbers).
22152 if test "x$srcdir" = x.; then
22153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22154 s/:*\$(srcdir):*/:/
22155 s/:*\${srcdir}:*/:/
22156 s/:*@srcdir@:*/:/
22157 s/^\([^=]*=[ ]*\):*/\1/
22158 s/:*$//
22159 s/^[^=]*=[ ]*$//
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 fi # test -n "$CONFIG_FILES"
22167 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22169 case $ac_tag in
22170 :[FHLC]) ac_mode=$ac_tag; continue;;
22171 esac
22172 case $ac_mode$ac_tag in
22173 :[FHL]*:*);;
22174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22176 { (exit 1); exit 1; }; };;
22177 :[FH]-) ac_tag=-:-;;
22178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22179 esac
22180 ac_save_IFS=$IFS
22181 IFS=:
22182 set x $ac_tag
22183 IFS=$ac_save_IFS
22184 shift
22185 ac_file=$1
22186 shift
22188 case $ac_mode in
22189 :L) ac_source=$1;;
22190 :[FH])
22191 ac_file_inputs=
22192 for ac_f
22194 case $ac_f in
22195 -) ac_f="$tmp/stdin";;
22196 *) # Look for the file first in the build tree, then in the source tree
22197 # (if the path is not absolute). The absolute path cannot be DOS-style,
22198 # because $ac_f cannot contain `:'.
22199 test -f "$ac_f" ||
22200 case $ac_f in
22201 [\\/$]*) false;;
22202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22203 esac ||
22204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22206 { (exit 1); exit 1; }; };;
22207 esac
22208 ac_file_inputs="$ac_file_inputs $ac_f"
22209 done
22211 # Let's still pretend it is `configure' which instantiates (i.e., don't
22212 # use $as_me), people would be surprised to read:
22213 # /* config.h. Generated by config.status. */
22214 configure_input="Generated from "`IFS=:
22215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22216 if test x"$ac_file" != x-; then
22217 configure_input="$ac_file. $configure_input"
22218 { echo "$as_me:$LINENO: creating $ac_file" >&5
22219 echo "$as_me: creating $ac_file" >&6;}
22222 case $ac_tag in
22223 *:-:* | *:-) cat >"$tmp/stdin";;
22224 esac
22226 esac
22228 ac_dir=`$as_dirname -- "$ac_file" ||
22229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230 X"$ac_file" : 'X\(//\)[^/]' \| \
22231 X"$ac_file" : 'X\(//\)$' \| \
22232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22233 echo X"$ac_file" |
22234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22235 s//\1/
22238 /^X\(\/\/\)[^/].*/{
22239 s//\1/
22242 /^X\(\/\/\)$/{
22243 s//\1/
22246 /^X\(\/\).*/{
22247 s//\1/
22250 s/.*/./; q'`
22251 { as_dir="$ac_dir"
22252 case $as_dir in #(
22253 -*) as_dir=./$as_dir;;
22254 esac
22255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22256 as_dirs=
22257 while :; do
22258 case $as_dir in #(
22259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22260 *) as_qdir=$as_dir;;
22261 esac
22262 as_dirs="'$as_qdir' $as_dirs"
22263 as_dir=`$as_dirname -- "$as_dir" ||
22264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22265 X"$as_dir" : 'X\(//\)[^/]' \| \
22266 X"$as_dir" : 'X\(//\)$' \| \
22267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22268 echo X"$as_dir" |
22269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22270 s//\1/
22273 /^X\(\/\/\)[^/].*/{
22274 s//\1/
22277 /^X\(\/\/\)$/{
22278 s//\1/
22281 /^X\(\/\).*/{
22282 s//\1/
22285 s/.*/./; q'`
22286 test -d "$as_dir" && break
22287 done
22288 test -z "$as_dirs" || eval "mkdir $as_dirs"
22289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22291 { (exit 1); exit 1; }; }; }
22292 ac_builddir=.
22294 case "$ac_dir" in
22295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22298 # A ".." for each directory in $ac_dir_suffix.
22299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22300 case $ac_top_builddir_sub in
22301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22303 esac ;;
22304 esac
22305 ac_abs_top_builddir=$ac_pwd
22306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22307 # for backward compatibility:
22308 ac_top_builddir=$ac_top_build_prefix
22310 case $srcdir in
22311 .) # We are building in place.
22312 ac_srcdir=.
22313 ac_top_srcdir=$ac_top_builddir_sub
22314 ac_abs_top_srcdir=$ac_pwd ;;
22315 [\\/]* | ?:[\\/]* ) # Absolute name.
22316 ac_srcdir=$srcdir$ac_dir_suffix;
22317 ac_top_srcdir=$srcdir
22318 ac_abs_top_srcdir=$srcdir ;;
22319 *) # Relative name.
22320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22321 ac_top_srcdir=$ac_top_build_prefix$srcdir
22322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22323 esac
22324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22327 case $ac_mode in
22330 # CONFIG_FILE
22333 case $INSTALL in
22334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22336 esac
22337 _ACEOF
22339 cat >>$CONFIG_STATUS <<\_ACEOF
22340 # If the template does not know about datarootdir, expand it.
22341 # FIXME: This hack should be removed a few years after 2.60.
22342 ac_datarootdir_hack=; ac_datarootdir_seen=
22344 case `sed -n '/datarootdir/ {
22348 /@datadir@/p
22349 /@docdir@/p
22350 /@infodir@/p
22351 /@localedir@/p
22352 /@mandir@/p
22353 ' $ac_file_inputs` in
22354 *datarootdir*) ac_datarootdir_seen=yes;;
22355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22358 _ACEOF
22359 cat >>$CONFIG_STATUS <<_ACEOF
22360 ac_datarootdir_hack='
22361 s&@datadir@&$datadir&g
22362 s&@docdir@&$docdir&g
22363 s&@infodir@&$infodir&g
22364 s&@localedir@&$localedir&g
22365 s&@mandir@&$mandir&g
22366 s&\\\${datarootdir}&$datarootdir&g' ;;
22367 esac
22368 _ACEOF
22370 # Neutralize VPATH when `$srcdir' = `.'.
22371 # Shell code in configure.ac might set extrasub.
22372 # FIXME: do we really want to maintain this feature?
22373 cat >>$CONFIG_STATUS <<_ACEOF
22374 sed "$ac_vpsub
22375 $extrasub
22376 _ACEOF
22377 cat >>$CONFIG_STATUS <<\_ACEOF
22379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22380 s&@configure_input@&$configure_input&;t t
22381 s&@top_builddir@&$ac_top_builddir_sub&;t t
22382 s&@srcdir@&$ac_srcdir&;t t
22383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22384 s&@top_srcdir@&$ac_top_srcdir&;t t
22385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22386 s&@builddir@&$ac_builddir&;t t
22387 s&@abs_builddir@&$ac_abs_builddir&;t t
22388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22389 s&@INSTALL@&$ac_INSTALL&;t t
22390 $ac_datarootdir_hack
22391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22396 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22397 which seems to be undefined. Please make sure it is defined." >&5
22398 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22399 which seems to be undefined. Please make sure it is defined." >&2;}
22401 rm -f "$tmp/stdin"
22402 case $ac_file in
22403 -) cat "$tmp/out"; rm -f "$tmp/out";;
22404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22405 esac
22409 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22410 echo "$as_me: executing $ac_file commands" >&6;}
22412 esac
22415 case $ac_file$ac_mode in
22416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22417 # Strip MF so we end up with the name of the file.
22418 mf=`echo "$mf" | sed -e 's/:.*$//'`
22419 # Check whether this is an Automake generated Makefile or not.
22420 # We used to match only the files named `Makefile.in', but
22421 # some people rename them; so instead we look at the file content.
22422 # Grep'ing the first line is not enough: some people post-process
22423 # each Makefile.in and add a new line on top of each file to say so.
22424 # So let's grep whole file.
22425 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22426 dirpart=`$as_dirname -- "$mf" ||
22427 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22428 X"$mf" : 'X\(//\)[^/]' \| \
22429 X"$mf" : 'X\(//\)$' \| \
22430 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22431 echo X"$mf" |
22432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22433 s//\1/
22436 /^X\(\/\/\)[^/].*/{
22437 s//\1/
22440 /^X\(\/\/\)$/{
22441 s//\1/
22444 /^X\(\/\).*/{
22445 s//\1/
22448 s/.*/./; q'`
22449 else
22450 continue
22452 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22453 # Extract the definition of DEP_FILES from the Makefile without
22454 # running `make'.
22455 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22456 test -z "$DEPDIR" && continue
22457 # When using ansi2knr, U may be empty or an underscore; expand it
22458 U=`sed -n 's/^U = //p' < "$mf"`
22459 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22460 # We invoke sed twice because it is the simplest approach to
22461 # changing $(DEPDIR) to its actual value in the expansion.
22462 for file in `sed -n '
22463 /^DEP_FILES = .*\\\\$/ {
22464 s/^DEP_FILES = //
22465 :loop
22466 s/\\\\$//
22469 /\\\\$/ b loop
22472 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22474 # Make sure the directory exists.
22475 test -f "$dirpart/$file" && continue
22476 fdir=`$as_dirname -- "$file" ||
22477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22478 X"$file" : 'X\(//\)[^/]' \| \
22479 X"$file" : 'X\(//\)$' \| \
22480 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22481 echo X"$file" |
22482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22483 s//\1/
22486 /^X\(\/\/\)[^/].*/{
22487 s//\1/
22490 /^X\(\/\/\)$/{
22491 s//\1/
22494 /^X\(\/\).*/{
22495 s//\1/
22498 s/.*/./; q'`
22499 { as_dir=$dirpart/$fdir
22500 case $as_dir in #(
22501 -*) as_dir=./$as_dir;;
22502 esac
22503 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22504 as_dirs=
22505 while :; do
22506 case $as_dir in #(
22507 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22508 *) as_qdir=$as_dir;;
22509 esac
22510 as_dirs="'$as_qdir' $as_dirs"
22511 as_dir=`$as_dirname -- "$as_dir" ||
22512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22513 X"$as_dir" : 'X\(//\)[^/]' \| \
22514 X"$as_dir" : 'X\(//\)$' \| \
22515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22516 echo X"$as_dir" |
22517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22518 s//\1/
22521 /^X\(\/\/\)[^/].*/{
22522 s//\1/
22525 /^X\(\/\/\)$/{
22526 s//\1/
22529 /^X\(\/\).*/{
22530 s//\1/
22533 s/.*/./; q'`
22534 test -d "$as_dir" && break
22535 done
22536 test -z "$as_dirs" || eval "mkdir $as_dirs"
22537 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22538 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22539 { (exit 1); exit 1; }; }; }
22540 # echo "creating $dirpart/$file"
22541 echo '# dummy' > "$dirpart/$file"
22542 done
22543 done
22546 esac
22547 done # for ac_tag
22550 { (exit 0); exit 0; }
22551 _ACEOF
22552 chmod +x $CONFIG_STATUS
22553 ac_clean_files=$ac_clean_files_save
22556 # configure is writing to config.log, and then calls config.status.
22557 # config.status does its own redirection, appending to config.log.
22558 # Unfortunately, on DOS this fails, as config.log is still kept open
22559 # by configure, so config.status won't be able to write to it; its
22560 # output is simply discarded. So we exec the FD to /dev/null,
22561 # effectively closing config.log, so it can be properly (re)opened and
22562 # appended to by config.status. When coming back to configure, we
22563 # need to make the FD available again.
22564 if test "$no_create" != yes; then
22565 ac_cs_success=:
22566 ac_config_status_args=
22567 test "$silent" = yes &&
22568 ac_config_status_args="$ac_config_status_args --quiet"
22569 exec 5>/dev/null
22570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22571 exec 5>>config.log
22572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22573 # would make configure fail if this is the last instruction.
22574 $ac_cs_success || { (exit 1); exit 1; }