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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
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!
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
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
658 SHELL
="$CONFIG_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"
667 # maybe with a smaller string...
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
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+"$@"}
683 # Oops. We lost completely, so just stick with 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.
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
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`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="README"
734 # Factoring default headers for most tests.
735 ac_includes_default
="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
808 MAINTAINER_MODE_FALSE
845 INSTALL_STRIP_PROGRAM
899 ac_precious_vars
='build_alias
921 # Initialize some variables set by options.
923 ac_init_version
=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name
=s
,x
,x
,
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'
963 libdir
='${exec_prefix}/lib'
964 localedir
='${datarootdir}/locale'
965 mandir
='${datarootdir}/man'
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\
$ac_option
979 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
991 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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)
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)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
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.
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)
1076 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
1089 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1090 infodir
=$ac_optarg ;;
1092 -libdir |
--libdir |
--libdi |
--libd)
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)
1118 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1119 mandir
=$ac_optarg ;;
1121 -nfp |
--nfp |
--nf)
1122 # Obsolete; use --without-fp.
1125 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1126 |
--no-cr |
--no-c |
-n)
1129 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1130 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
1180 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1181 pdfdir
=$ac_optarg ;;
1183 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1185 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1189 |
-silent |
--silent |
--silen |
--sile |
--sil)
1192 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1194 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1196 sbindir
=$ac_optarg ;;
1198 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1199 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1200 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1202 ac_prev
=sharedstatedir
;;
1203 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1204 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1205 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1207 sharedstatedir
=$ac_optarg ;;
1209 -site |
--site |
--sit)
1211 -site=* |
--site=* |
--sit=*)
1214 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1234 -version |
--version |
--versio |
--versi |
--vers |
-V)
1235 ac_init_version
=: ;;
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
;;
1256 # Obsolete; use --with-x.
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; }; }
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}
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
1312 [\\/$
]* | ?
:[\\/]* ) continue;;
1313 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316 { (exit 1); exit 1; }; }
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.
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
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 ||
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395 { (exit 1); exit 1; }; }
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1405 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
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
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
]
1490 if test -n "$ac_init_help"; then
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
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
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
>
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
1534 C compiler flags
for PANGO
, overriding pkg-config
1535 PANGO_LIBS linker flags
for PANGO
, overriding pkg-config
1537 C compiler flags
for PANGOFT2
, overriding pkg-config
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.
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
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/ ;;
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
1571 .) # We are building in place.
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 ;;
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 ;;
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
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
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.
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
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
`
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 echo "PATH: $as_dir"
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.
1679 ac_must_keep_next=false
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)
1690 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1708 -* ) ac_must_keep_next=true ;;
1711 ac_configure_args="$ac_configure_args '$ac_arg'"
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.
1730 ## ---------------- ##
1731 ## Cache variables. ##
1732 ## ---------------- ##
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
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;} ;;
1746 _ | IFS | as_nl) ;; #(
1747 *) $as_unset $ac_var ;;
1752 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1753 *${as_nl}ac_space=\ *)
1755 "s/'\''/'\''\\\\'\'''\''/g;
1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767 ## ----------------- ##
1768 ## Output variables. ##
1769 ## ----------------- ##
1772 for ac_var in $ac_subst_vars
1774 eval ac_val=\$$ac_var
1776 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778 echo "$ac_var='\''$ac_val'\''"
1782 if test -n "$ac_subst_files"; then
1784 ## ------------------- ##
1785 ## File substitutions. ##
1786 ## ------------------- ##
1789 for ac_var in $ac_subst_files
1791 eval ac_val=\$$ac_var
1793 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 echo "$ac_var='\''$ac_val'\''"
1800 if test -s confdefs.h; then
1810 test "$ac_signal" != 0 &&
1811 echo "$as_me: caught signal $ac_signal"
1812 echo "$as_me: exit $exit_status"
1814 rm -f core *.core core.conftest.* &&
1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818 for ac_signal in 1 2 13 15; do
1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_STRING "$PACKAGE_STRING"
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1860 set x "$ac_default_prefix/share/config.site" \
1861 "$ac_default_prefix/etc/config.site"
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
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;}
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1886 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 echo "$as_me: creating cache $cache_file" >&6;}
1891 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1923 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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='#'
1980 MAINTAINER_MODE_TRUE='#'
1981 MAINTAINER_MODE_FALSE=
1984 MAINT=$MAINTAINER_MODE_TRUE
1988 # Set various version strings - taken gratefully from the GTk sources
1991 # MICRO_VERSION += 1;
1992 # INTERFACE_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.
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
2027 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2028 if test -f "$ac_dir/install-sh"; then
2030 ac_install_sh="$ac_aux_dir/install-sh -c"
2032 elif test -f "$ac_dir/install.sh"; then
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2036 elif test -f "$ac_dir/shtool"; then
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
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; }; };;
2090 ac_save_IFS=$IFS; IFS='-'
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
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
2108 if test "x$host_alias" = x; then
2109 ac_cv_host=$ac_cv_build
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; }
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; }; };;
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
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
2145 if test "x$target_alias" = x; then
2146 ac_cv_target=$ac_cv_host
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
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; }; };;
2163 target=$ac_cv_target
2164 ac_save_IFS=$IFS; IFS='-'
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
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" = \
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
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
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 # Account for people who put trailing slashes in PATH elements.
2213 ./ | .// | /cC/* | \
2214 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2215 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
2233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2246 if test "${ac_cv_path_install+set}" = set; then
2247 INSTALL=$ac_cv_path_install
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; }
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
2278 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2279 if test "$*" = "X"; then
2281 set X
`ls -t $srcdir/configure 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
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
,$
//
2322 program_transform_name
=`echo $program_transform_name | sed -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 "
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 -- .'
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
2351 for d
in .
/-p .
/--version;
2353 test -d $d && rmdir $d
2355 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2356 if test -f "$ac_aux_dir/mkinstalldirs"; then
2357 mkdir_p
='$(mkinstalldirs)'
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
2372 if test -n "$AWK"; then
2373 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2393 if test -n "$AWK"; then
2394 { echo "$as_me:$LINENO: result: $AWK" >&5
2395 echo "${ECHO_T}$AWK" >&6; }
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2402 test -n "$AWK" && break
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
2411 cat >conftest.
make <<\_ACEOF
2414 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2416 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2417 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2419 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2421 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
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; }
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
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'
2462 # Define the identity of the package.
2467 cat >>confdefs.h
<<_ACEOF
2468 #define PACKAGE "$PACKAGE"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define VERSION "$VERSION"
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
2510 if test -n "$STRIP"; then
2511 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2541 if test -z "$ac_cv_prog_STRIP"; then
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
2550 if test -n "$ac_ct_STRIP"; then
2551 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2579 if test "x$ac_ct_STRIP" = x
; then
2582 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2611 # Check whether --enable-shared was given.
2612 if test "${enable_shared+set}" = set; then
2613 enableval
=$enable_shared; p
=${PACKAGE-default}
2615 yes) enable_shared
=yes ;;
2616 no
) 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
2623 if test "X$pkg" = "X$p"; then
2635 # Check whether --enable-static was given.
2636 if test "${enable_static+set}" = set; then
2637 enableval
=$enable_static; p
=${PACKAGE-default}
2639 yes) enable_static
=yes ;;
2640 no
) 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
2647 if test "X$pkg" = "X$p"; then
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}
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
2671 if test "X$pkg" = "X$p"; then
2672 enable_fast_install
=yes
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'
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; }
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
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
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"
2738 if test "x$enable_dependency_tracking" != xno; then
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
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC
="$CC" # Let the user override the test.
2764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2782 if test -n "$CC"; then
2783 { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2792 if test -z "$ac_cv_prog_CC"; then
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
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
2826 { echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6; }
2830 if test "x$ac_ct_CC" = x
; then
2833 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2879 if test -n "$CC"; then
2880 { echo "$as_me:$LINENO: result: $CC" >&5
2881 echo "${ECHO_T}$CC" >&6; }
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
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC
="$CC" # Let the user override the test.
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2930 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2936 if test -n "$CC"; then
2937 { echo "$as_me:$LINENO: result: $CC" >&5
2938 echo "${ECHO_T}$CC" >&6; }
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
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC
="$CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
2978 if test -n "$CC"; then
2979 { echo "$as_me:$LINENO: result: $CC" >&5
2980 echo "${ECHO_T}$CC" >&6; }
2982 { echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6; }
2987 test -n "$CC" && break
2990 if test -z "$CC"; then
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
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
3026 { echo "$as_me:$LINENO: result: no" >&5
3027 echo "${ECHO_T}no" >&6; }
3031 test -n "$ac_ct_CC" && break
3034 if test "x$ac_ct_CC" = x
; then
3037 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
3065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compiler --version >&5") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }
3073 { (ac_try="$ac_compiler -v >&5"
3075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3076 *) ac_try_echo
=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compiler -v >&5") 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083 { (ac_try
="$ac_compiler -V >&5"
3085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compiler -V >&5") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3094 cat >conftest.$ac_ext <<_ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
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
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.
3127 for ac_file in $ac_files
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3136 if { (ac_try="$ac_link_default"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_link_default") 2>&5
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
3151 for ac_file
in $ac_files ''
3153 test -f "$ac_file" ||
continue
3155 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3158 # We found the default executable, but exeext='' is most
3162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
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
3176 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
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;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 if test "$cross_compiling" = maybe; then
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"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_link") 2>&5
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
3257 for ac_file
in conftest.exe conftest conftest.
*; do
3258 test -f "$ac_file" ||
continue
3260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3261 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
3286 cat >conftest.
$ac_ext <<_ACEOF
3289 cat confdefs.h
>>conftest.
$ac_ext
3290 cat >>conftest.
$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3301 rm -f conftest.o conftest.obj
3302 if { (ac_try
="$ac_compile"
3304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_compile") 2>&5
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;
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
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
3379 echo "$as_me: failed program was
:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
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
3399 ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
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
3437 echo "$as_me: failed program was
:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3540 if test "$GCC" = yes; then
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
3551 ac_cv_prog_cc_c89=no
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.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)
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3577 s = g (p, va_arg (v,int));
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. */
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);
3605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3642 rm -f conftest.$ac_ext
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; } ;;
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; } ;;
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
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
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
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
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.
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
3712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
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
3769 am__fastdepCC_FALSE='#'
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
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
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"
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
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
3812 cat conftest.in conftest.in >conftest.tmp
3813 mv conftest.tmp conftest.in
3814 cp conftest.in 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
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
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
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
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
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3864 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
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
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886 $ac_path_GREP_found && break 3
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
/xpg
4/bin
" >&5
3899 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3900 { (exit 1); exit 1; }; }
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
3919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3920 then ac_cv_path_EGREP="$GREP -E"
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
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
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
3943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
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
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 $ac_path_EGREP_found && break 3
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
/xpg
4/bin
" >&5
3981 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
3982 { (exit 1); exit 1; }; }
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
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; }
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` ;;
4018 # Accept absolute paths.
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%/%"`
4026 test -z "$LD" && LD="$ac_prog"
4029 # If it fails, then pretend we aren't using GCC.
4033 # If it is relative, then search for the first ld in PATH.
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; }
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
4047 if test -z "$LD"; then
4048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4049 for ac_dir in $PATH; do
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
4069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4074 if test -n "$LD"; then
4075 { echo "$as_me:$LINENO: result
: $LD" >&5
4076 echo "${ECHO_T}$LD" >&6; }
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
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
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
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
4116 *) reload_flag=" $reload_flag" ;;
4118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4121 if test "$GCC" = yes; then
4122 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4124 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
4134 if test -n "$NM"; then
4135 # Let the user override the test.
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
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"
4159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4161 lt_cv_path_NM="$tmp_nm -p"
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
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; }
4182 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
4183 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
4185 if test "$LN_S" = "ln -s"; then
4186 { echo "$as_me:$LINENO: result
: yes" >&5
4187 echo "${ECHO_T}yes" >&6; }
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
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.
4214 lt_cv_deplibs_check_method=pass_all
4218 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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
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.*`
4262 lt_cv_deplibs_check_method=pass_all
4267 lt_cv_deplibs_check_method=pass_all
4270 hpux10.20* | hpux11*)
4271 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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*)
4295 *-32|*"-32 ") libmagic=32-bit;;
4296 *-n32|*"-n32 ") libmagic=N32;;
4297 *-64|*"-64 ") libmagic=64-bit;;
4298 *) libmagic=never-match;;
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)$'
4312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
4323 lt_cv_deplibs_check_method=unknown
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)$'
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
4339 lt_cv_deplibs_check_method=pass_all
4343 lt_cv_deplibs_check_method=pass_all
4347 case $host_vendor in
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*`
4353 lt_cv_deplibs_check_method=pass_all
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 )'
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
4365 lt_cv_deplibs_check_method=pass_all
4368 lt_cv_deplibs_check_method=pass_all
4373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4374 lt_cv_deplibs_check_method=pass_all
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.
4391 # If no C compiler flags were specified, use CFLAGS.
4392 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4394 # Allow CC to be a program name with arguments.
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
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
4414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case `/usr/bin/file conftest.$ac_objext` in
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
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
4438 LD="${LD-ld} -melf32bsmip"
4441 LD="${LD-ld} -melf32bmipn32"
4444 LD="${LD-ld} -melf64bmip"
4448 case `/usr/bin/file conftest.$ac_objext` in
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
4471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4472 (exit $ac_status); }; then
4473 case `/usr/bin/file conftest.o` in
4476 x86_64-*kfreebsd*-gnu)
4477 LD="${LD-ld} -m elf_i386_fbsd
"
4480 LD="${LD-ld} -m elf_i386
"
4482 ppc64-*linux*|powerpc64-*linux*)
4483 LD="${LD-ld} -m elf32ppclinux
"
4486 LD="${LD-ld} -m elf_s390
"
4489 LD="${LD-ld} -m elf32_sparc
"
4495 x86_64-*kfreebsd*-gnu)
4496 LD="${LD-ld} -m elf_x86_64_fbsd
"
4499 LD="${LD-ld} -m elf_x86_64
"
4501 ppc*-*linux*|powerpc*-*linux*)
4502 LD="${LD-ld} -m elf64ppc
"
4505 LD="${LD-ld} -m elf64_s390
"
4508 LD="${LD-ld} -m elf64_sparc
"
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
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
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>conftest.er1
4556 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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"
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
4595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.o` in
4599 case $lt_cv_prog_gnu_ld in
4600 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
4601 *) LD="${LD-ld} -64" ;;
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
4618 if test -n "$DLLTOOL"; then
4619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
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
4658 if test -n "$ac_ct_DLLTOOL"; then
4659 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4683 { echo "$as_me:$LINENO: result
: no
" >&5
4684 echo "${ECHO_T}no
" >&6; }
4687 if test "x
$ac_ct_DLLTOOL" = x; then
4690 case $cross_compiling:$ac_tool_warned in
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 ;;
4700 DLLTOOL=$ac_ct_DLLTOOL
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
4714 if test -n "$AS"; then
4715 ac_cv_prog_AS="$AS" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4735 if test -n "$AS"; then
4736 { echo "$as_me:$LINENO: result
: $AS" >&5
4737 echo "${ECHO_T}$AS" >&6; }
4739 { echo "$as_me:$LINENO: result
: no
" >&5
4740 echo "${ECHO_T}no
" >&6; }
4745 if test -z "$ac_cv_prog_AS"; then
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
4754 if test -n "$ac_ct_AS"; then
4755 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4779 { echo "$as_me:$LINENO: result
: no
" >&5
4780 echo "${ECHO_T}no
" >&6; }
4783 if test "x
$ac_ct_AS" = x; then
4786 case $cross_compiling:$ac_tool_warned in
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 ;;
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
4810 if test -n "$OBJDUMP"; then
4811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
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
4850 if test -n "$ac_ct_OBJDUMP"; then
4851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4875 { echo "$as_me:$LINENO: result
: no
" >&5
4876 echo "${ECHO_T}no
" >&6; }
4879 if test "x
$ac_ct_OBJDUMP" = x; then
4882 case $cross_compiling:$ac_tool_warned in
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 ;;
4892 OBJDUMP=$ac_ct_OBJDUMP
4895 OBJDUMP="$ac_cv_prog_OBJDUMP"
4902 need_locks="$enable_libtool_lock"
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
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then
4918 echo $ECHO_N "(cached
) $ECHO_C" >&6
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
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
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4939 # include <limits.h>
4941 # include <assert.h>
4945 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
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
4963 echo "$as_me: failed program was
:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 # Broken: fails on valid input.
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
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 #include <ac_nonexistent.h>
4982 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
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
4998 # Broken: success on invalid input.
5001 echo "$as_me: failed program was
:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5009 rm -f conftest.err conftest.$ac_ext
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
5026 { echo "$as_me:$LINENO: result
: $CPP" >&5
5027 echo "${ECHO_T}$CPP" >&6; }
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
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 # include <limits.h>
5046 # include <assert.h>
5050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5058 grep -v '^ *+' conftest.er1 >conftest.err
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
5068 echo "$as_me: failed program was
:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5071 # Broken: fails on valid input.
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
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5087 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
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
5103 # Broken: success on invalid input.
5106 echo "$as_me: failed program was
:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Passes both tests.
5114 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
5141 cat >conftest.$ac_ext <<_ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5169 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "memchr" >/dev/null 2>&1; then
5202 ac_cv_header_stdc=no
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
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5220 $EGREP "free" >/dev/null 2>&1; then
5223 ac_cv_header_stdc=no
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
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5242 #if ((' ' & 0x0FF) == 0x020)
5243 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
5244 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
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))
5253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5258 for (i = 0; i < 256; i++)
5259 if (XOR (islower (i), ISLOWER (i))
5260 || toupper (i) != TOUPPER (i))
5265 rm -f conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>&5
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;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_try") 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
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
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
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
5329 cat >conftest.$ac_ext <<_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>
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^
*+' conftest.er1 >conftest.err
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"
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
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; }
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
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>
5405 rm -f conftest.$ac_objext
5406 if { (ac_try="$ac_compile"
5408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5414 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <$ac_header>
5445 if { (ac_try="$ac_cpp conftest.$ac_ext"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5453 grep -v '^
*+' conftest.er1 >conftest.err
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
5461 ac_header_preproc=yes
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
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
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;}
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
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
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
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
5538 if test -n "$CXX"; then
5539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5559 if test -n "$CXX"; then
5560 { echo "$as_me:$LINENO: result: $CXX" >&5
5561 echo "${ECHO_T}$CXX" >&6; }
5563 { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5568 test -n "$CXX" && break
5571 if test -z "$CXX"; then
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
5582 if test -n "$ac_ct_CXX"; then
5583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5612 test -n "$ac_ct_CXX" && break
5615 if test "x$ac_ct_CXX" = x; then
5618 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compiler --version >&5") 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }
5647 { (ac_try="$ac_compiler -v >&5"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_compiler -v >&5") 2>&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }
5657 { (ac_try="$ac_compiler -V >&5"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compiler -V >&5") 2>&5
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
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5700 grep -v '^
*+' conftest.er1 >conftest.err
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
5710 echo "$as_me: failed program was:" >&5
5711 sed 's
/^
/|
/' conftest.$ac_ext >&5
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
5730 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5731 ac_cxx_werror_flag=yes
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^
*+' conftest.er1 >conftest.err
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
5768 echo "$as_me: failed program was:" >&5
5769 sed 's
/^
/|
/' conftest.$ac_ext >&5
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^
*+' conftest.er1 >conftest.err
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
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
5871 if test "$GXX" = yes; then
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
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
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
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
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.
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
5928 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
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
='#'
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
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
6008 # Double quotes because CXXCPP needs to be expanded
6009 for CXXCPP
in "$CXX -E" "/lib/cpp"
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
6023 cat confdefs.h
>>conftest.
$ac_ext
6024 cat >>conftest.
$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6027 # include <limits.h>
6029 # include <assert.h>
6033 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
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
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 # Broken: fails on valid input.
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
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6070 if { (ac_try="$ac_cpp conftest.$ac_ext"
6072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6073 *) ac_try_echo
=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
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
6086 # Broken: success on invalid input.
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.
$ac_ext >&5
6092 # Passes both tests.
6097 rm -f conftest.err conftest.
$ac_ext
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
6107 ac_cv_prog_CXXCPP
=$CXXCPP
6110 CXXCPP
=$ac_cv_prog_CXXCPP
6112 ac_cv_prog_CXXCPP
=$CXXCPP
6114 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6115 echo "${ECHO_T}$CXXCPP" >&6; }
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
6128 cat confdefs.h
>>conftest.
$ac_ext
6129 cat >>conftest.
$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 # include <limits.h>
6134 # include <assert.h>
6138 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
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
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 # Broken: fails on valid input.
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
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <ac_nonexistent.h>
6175 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6178 *) ac_try_echo
=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
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
6191 # Broken: success on invalid input.
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.
$ac_ext >&5
6197 # Passes both tests.
6202 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
6240 if test -n "$F77"; then
6241 ac_cv_prog_F77
="$F77" # Let the user override the test.
6243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
6261 if test -n "$F77"; then
6262 { echo "$as_me:$LINENO: result: $F77" >&5
6263 echo "${ECHO_T}$F77" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 test -n "$F77" && break
6273 if test -z "$F77"; then
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
6284 if test -n "$ac_ct_F77"; then
6285 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6314 test -n "$ac_ct_F77" && break
6317 if test "x$ac_ct_F77" = x
; then
6320 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
6340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler --version >&5") 2>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348 { (ac_try="$ac_compiler -v >&5"
6350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6351 *) ac_try_echo
=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -v >&5") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
6358 { (ac_try
="$ac_compiler -V >&5"
6360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compiler -V >&5") 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }
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.)
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
6379 cat >conftest.$ac_ext <<_ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^
*+' conftest.er1 >conftest.err
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
6406 echo "$as_me: failed program was:" >&5
6407 sed 's
/^
/|
/' conftest.$ac_ext >&5
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; }
6419 ac_test_FFLAGS=${FFLAGS+set}
6420 ac_save_FFLAGS=$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
6428 cat >conftest.$ac_ext <<_ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6442 grep -v '^
*+' conftest.er1 >conftest.err
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
6452 echo "$as_me: failed program was:" >&5
6453 sed 's
/^
/|
/' conftest.$ac_ext >&5
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
6472 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6479 G77=`test $ac_compiler_gnu = yes && echo yes`
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
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
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;
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;
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`
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`
6547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6548 lt_cv_sys_max_cmd_len
=196608
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 ;;
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/.*[ ]//'`
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`
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
6589 teststring
=$teststring$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`
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; }
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
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.
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'"
6659 symcode
='[BCDEGRST]'
6662 symcode
='[BCDEGQRST]'
6673 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6681 # Handle CRLF in mingw tool chain
6685 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]' ;;
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.
6708 cat > conftest.
$ac_ext <<EOF
6713 void nm_test_func(){}
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
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; then
6725 # Now try to grab the symbols.
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
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"
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
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 *
6755 # define lt_ptr_t char *
6759 /* The mapping between symbol names and symbols. */
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
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
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6789 LIBS
="$lt_save_LIBS"
6790 CFLAGS
="$lt_save_CFLAGS"
6792 echo "cannot find nm_test_func in $nlist" >&5
6795 echo "cannot find nm_test_var in $nlist" >&5
6798 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
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
6810 lt_cv_sys_global_symbol_pipe
=
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; }
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
6832 rm -f .libs
2>/dev
/null
6833 mkdir .libs
2>/dev
/null
6834 if test -d .libs
; then
6837 # MS-DOS does not allow filenames that begin with a dot.
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
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
6857 export COLLECT_NAMES
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'
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').
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
6899 if test -n "$AR"; then
6900 ac_cv_prog_AR
="$AR" # Let the user override the test.
6902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
6920 if test -n "$AR"; then
6921 { echo "$as_me:$LINENO: result: $AR" >&5
6922 echo "${ECHO_T}$AR" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6930 if test -z "$ac_cv_prog_AR"; then
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
6939 if test -n "$ac_ct_AR"; then
6940 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6968 if test "x$ac_ct_AR" = x
; then
6971 case $cross_compiling:$ac_tool_warned in
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 ;;
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
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 if test "x$ac_ct_RANLIB" = x
; then
7067 case $cross_compiling:$ac_tool_warned in
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 ;;
7077 RANLIB
=$ac_ct_RANLIB
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
7091 if test -n "$STRIP"; then
7092 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7122 if test -z "$ac_cv_prog_STRIP"; then
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
7131 if test -n "$ac_ct_STRIP"; then
7132 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7160 if test "x$ac_ct_STRIP" = x
; then
7163 case $cross_compiling:$ac_tool_warned in
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 ;;
7176 STRIP
="$ac_cv_prog_STRIP"
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
7209 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7212 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7215 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7218 for cc_temp
in $compiler""; do
7220 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7221 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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
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
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
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
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
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
7279 MAGIC_CMD
="$lt_save_MAGIC_CMD"
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; }
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
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
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
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
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
7341 MAGIC_CMD
="$lt_save_MAGIC_CMD"
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; }
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
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"
7382 test -z "$pic_mode" && pic_mode
=default
7384 # Use C for the default configuration in the libtool script
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.
7397 # Object file extension for compiled C test sources.
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.
7411 # If no C compiler flags were specified, use CFLAGS.
7412 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7414 # Allow CC to be a program name with arguments.
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`
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`
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
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
)
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
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"
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'
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'
7506 # FIXME: we need at least 68020 code to build shared libraries, but
7507 # adding the `-m68020' flag to GCC prevents building anything better,
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'
7531 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7532 # Instead, we relocate shared libraries at runtime.
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
7543 if test -d /usr
/nec
; then
7544 lt_prog_compiler_pic
=-Kconform_pic
7549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7556 lt_prog_compiler_pic
='-fPIC'
7562 lt_prog_compiler_pic
='-fPIC'
7566 # PORTME Check for flag to pass linker flags through the system compiler.
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'
7574 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7578 # PIC is the default on this platform
7579 # Common symbols not allowed in MH_DYLIB files
7580 case $cc_basename in
7582 lt_prog_compiler_pic
='-qnocommon'
7583 lt_prog_compiler_wl
='-Wl,'
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
7603 lt_prog_compiler_pic
='+Z'
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'
7617 lt_prog_compiler_pic
='-KPIC'
7618 lt_prog_compiler_static
='-Bstatic'
7621 linux
* | k
*bsd
*-gnu)
7622 case $cc_basename in
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'
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
7644 lt_prog_compiler_pic
='-KPIC'
7645 lt_prog_compiler_static
='-Bstatic'
7646 lt_prog_compiler_wl
='-Wl,'
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
=''
7659 osf3
* | osf4
* | osf5
*)
7660 lt_prog_compiler_wl
='-Wl,'
7661 # All OSF/1 code is PIC.
7662 lt_prog_compiler_static
='-non_shared'
7666 lt_prog_compiler_static
='-non_shared'
7670 lt_prog_compiler_pic
='-KPIC'
7671 lt_prog_compiler_static
='-Bstatic'
7672 case $cc_basename in
7674 lt_prog_compiler_wl
='-Qoption ld ';;
7676 lt_prog_compiler_wl
='-Wl,';;
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'
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'
7706 lt_prog_compiler_wl
='-Wl,'
7707 lt_prog_compiler_can_build_shared
=no
7711 lt_prog_compiler_pic
='-pic'
7712 lt_prog_compiler_static
='-Bstatic'
7716 lt_prog_compiler_can_build_shared
=no
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
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
)
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
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
7770 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7773 lt_prog_compiler_pic
=
7774 lt_prog_compiler_can_build_shared
=no
7779 # For platforms which do not support PIC, -DPIC is meaningless:
7781 lt_prog_compiler_pic
=
7784 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
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
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
7813 lt_prog_compiler_static_works
=yes
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
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
7835 lt_cv_prog_compiler_c_o
=no
7836 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
7888 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
7907 allow_undefined_flag
=
7908 enable_shared_with_static_runtimes
=no
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
=
7921 hardcode_shlibpath_var
=unsupported
7922 link_all_deplibs
=unknown
7923 hardcode_automatic
=no
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
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
7945 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7946 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7951 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
7963 # we just hope/assume this is gcc and not c89 (= MSVC++)
7972 if test "$with_gnu_ld" = yes; then
7973 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
7997 # See if GNU ld supports shared libraries.
7999 aix3
* | aix4
* | aix5
*)
8000 # On AIX/PPC, the GNU linker is very broken
8001 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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'
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'
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'
8132 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
8152 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8153 case `$LD -v 2>&1` in
8154 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
8180 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
8196 if test "$ld_shlibs" = no
; then
8198 hardcode_libdir_flag_spec
=
8199 export_dynamic_flag_spec
=
8200 whole_archive_flag_spec
=
8203 # PORTME fill in a description of your system's linker (not GNU ld)
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
8215 hardcode_direct
=unsupported
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'
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'
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
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.
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
8272 # We have reworked collect2
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
=
8286 shared_flag
='-shared'
8287 if test "$aix_use_runtimelinking" = yes; then
8288 shared_flag
="$shared_flag "'${wl}-G'
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:
8297 if test "$aix_use_runtimelinking" = yes; then
8298 shared_flag
='${wl}-G'
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
8316 cat confdefs.h
>>conftest.
$ac_ext
8317 cat >>conftest.
$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8328 rm -f conftest.
$ac_objext conftest
$ac_exeext
8329 if { (ac_try
="$ac_link"
8331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_link") 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
8378 # Determine the default libpath from the value encoded in an empty executable.
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (ac_try="$ac_link"
8397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8398 *) ac_try_echo
=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_link") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
8471 # Tell ltmain to make .dll files, not .so files.
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
*)
8485 rhapsody
* | darwin1.
[012])
8486 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8490 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8492 case ${MACOSX_DEPLOYMENT_TARGET} in
8494 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8497 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8503 archive_cmds_need_lc
=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}'
8517 case $cc_basename in
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}'
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
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
8548 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8549 hardcode_libdir_flag_spec
='-R$libdir'
8551 hardcode_shlibpath_var
=no
8554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8556 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
8567 hardcode_shlibpath_var
=no
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'
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
=:
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'
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'
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
=:
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
8606 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8609 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
8621 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
8631 if test "$with_gnu_ld" = no
; then
8632 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8633 hardcode_libdir_separator
=:
8637 hardcode_libdir_flag_spec_ld
='+b $libdir'
8639 hardcode_shlibpath_var
=no
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
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'
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
8669 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8671 hardcode_libdir_flag_spec
='-R$libdir'
8673 hardcode_shlibpath_var
=no
8677 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8679 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8680 hardcode_libdir_separator
=:
8681 hardcode_shlibpath_var
=no
8685 if test -f /usr
/libexec
/ld.so
; then
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'
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'
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'
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'
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'
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
=:
8748 no_undefined_flag
=' -z text'
8749 if test "$GCC" = yes; then
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'
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
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'
8772 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8776 link_all_deplibs
=yes
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'
8785 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_libdir_flag_spec
='-L$libdir'
8789 hardcode_minus_L
=yes
8790 hardcode_shlibpath_var
=no
8794 case $host_vendor in
8796 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_direct
=yes # is this really true???
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'
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
8811 runpath_var
='LD_RUN_PATH'
8812 hardcode_shlibpath_var
=no
8816 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817 hardcode_shlibpath_var
=no
8818 export_dynamic_flag_spec
='-Bexport'
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
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'
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
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'
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'
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
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
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
8899 # FIXME: we may have to deal with multi-command sequences.
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; }
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
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } 2>conftest.err
; then
8917 libobjs
=conftest.
$ac_objext
8919 wl
=$lt_prog_compiler_wl
8920 pic_flag
=$lt_prog_compiler_pic
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
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }
8934 archive_cmds_need_lc
=no
8936 archive_cmds_need_lc
=yes
8938 allow_undefined_flag
=$lt_save_allow_undefined_flag
8940 cat conftest.err
1>&5
8943 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8944 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8951 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8952 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8954 libname_spec
='lib$name'
8962 shlibpath_overrides_runpath
=unknown
8964 dynamic_linker
="$host_os ld.so"
8965 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8967 if test "$GCC" = yes; then
8969 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8970 *) lt_awk_arg
="/^libraries:/" ;;
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'`
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"
8990 test -d "$lt_sys_path" && \
8991 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8994 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8995 BEGIN {RS=" "; FS="/|\n";} {
8998 for (lt_i = NF; lt_i > 0; lt_i--) {
8999 if ($lt_i != "" && $lt_i != ".") {
9000 if ($lt_i == "..") {
9003 if (lt_count == 0) {
9004 lt_foo="/" $lt_i lt_foo;
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`
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
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'
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
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.
9051 aix4 | aix4.
[01] | aix4.
[01].
*)
9052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9054 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
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}'
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
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'
9086 library_names_spec
='${libname}${shared_ext}'
9087 dynamic_linker
="$host_os ld.so"
9088 shlibpath_var
=LIBRARY_PATH
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
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~
9124 shlibpath_overrides_runpath
=yes
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"
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'`
9145 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
9156 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9159 dynamic_linker
='Win32 ld.exe'
9160 # FIXME: first we should search . and the directory the executable is in
9164 darwin
* | rhapsody
*)
9165 dynamic_linker
="$host_os dyld"
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'
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
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`
9199 freebsd
[123]*) objformat
=aout
;;
9203 version_type
=freebsd-
$objformat
9204 case $version_type in
9206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9211 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9215 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
9264 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9266 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
9288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9289 postinstall_cmds
='chmod 555 $lib'
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
*)
9306 nonstopux
*) version_type
=nonstopux
;;
9308 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
9319 irix5
* | nonstopux
*)
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
;;
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
*)
9346 # This must be Linux ELF.
9347 linux
* | k
*bsd
*-gnu)
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'
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'
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'
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
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
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
9425 sys_lib_dlsearch_path_spec
="/usr/lib"
9427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9429 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9430 *) need_version
=no
;;
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
9437 openbsd2.
[89] | openbsd2.
[89].
*)
9438 shlibpath_overrides_runpath
=no
9441 shlibpath_overrides_runpath
=yes
9445 shlibpath_overrides_runpath
=yes
9450 libname_spec
='$name'
9453 library_names_spec
='$libname${shared_ext} $libname.a'
9454 dynamic_linker
='OS/2 ld.exe'
9455 shlibpath_var
=LIBPATH
9458 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
9505 shlibpath_overrides_runpath
=no
9507 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9508 runpath_var
=LD_RUN_PATH
9516 shlibpath_overrides_runpath
=no
9517 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9523 if test -d /usr
/nec
;then
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
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
9543 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9544 shlibpath_overrides_runpath
=yes
9547 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9551 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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; }
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
9591 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9592 hardcode_action
=immediate
9595 # We cannot hardcode anything, or else we can only hardcode existing
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
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; }
9621 # FIXME - insert some real tests, host_os isn't really good enough
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; }
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; }
9641 if test "x$enable_dlopen" != xyes
; then
9642 enable_dlopen
=unknown
9643 enable_dlopen_self
=unknown
9644 enable_dlopen_self_static
=unknown
9651 lt_cv_dlopen
="load_add_on"
9653 lt_cv_dlopen_self
=yes
9657 lt_cv_dlopen
="LoadLibrary"
9662 lt_cv_dlopen
="dlopen"
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
9673 ac_check_lib_save_LIBS
=$LIBS
9675 cat >conftest.
$ac_ext <<_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. */
9697 rm -f conftest.
$ac_objext conftest
$ac_exeext
9698 if { (ac_try
="$ac_link"
9700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_link") 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
9747 cat >conftest.$ac_ext <<_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. */
9763 # include <limits.h>
9765 # include <assert.h>
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. */
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
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (ac_try="$ac_link"
9795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9796 *) ac_try_echo
=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_link") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
9831 ac_check_lib_save_LIBS
=$LIBS
9833 cat >conftest.
$ac_ext <<_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. */
9855 rm -f conftest.
$ac_objext conftest
$ac_exeext
9856 if { (ac_try
="$ac_link"
9858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_link") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
9895 cat >conftest.$ac_ext <<_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. */
9911 # include <limits.h>
9913 # include <assert.h>
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. */
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
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9944 *) ac_try_echo
=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
9979 ac_check_lib_save_LIBS
=$LIBS
9981 cat >conftest.
$ac_ext <<_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. */
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;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lsvld $LIBS"
10045 cat >conftest.$ac_ext <<_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. */
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;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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
10107 ac_check_lib_save_LIBS
=$LIBS
10109 cat >conftest.
$ac_ext <<_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. */
10126 return dld_link ();
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;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
10185 if test "x$lt_cv_dlopen" != xno; then
10191 case $lt_cv_dlopen in
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\"
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
10207 if test "$cross_compiling" = yes; then :
10208 lt_cv_dlopen_self=cross
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"
10223 # define LT_DLGLOBAL RTLD_GLOBAL
10226 # define LT_DLGLOBAL DL_GLOBAL
10228 # define LT_DLGLOBAL 0
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
10236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10239 # define LT_DLLAZY_OR_NOW DL_LAZY
10242 # define LT_DLLAZY_OR_NOW RTLD_NOW
10245 # define LT_DLLAZY_OR_NOW DL_NOW
10247 # define LT_DLLAZY_OR_NOW 0
10255 extern "C" void exit (int);
10258 void fnord() { int i=42;}
10261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262 int status = $lt_dlunknown;
10266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10267 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268 /* dlclose (self); */
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
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
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 ;;
10289 # compilation failed
10290 lt_cv_dlopen_self=no
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
10307 if test "$cross_compiling" = yes; then :
10308 lt_cv_dlopen_self_static=cross
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"
10323 # define LT_DLGLOBAL RTLD_GLOBAL
10326 # define LT_DLGLOBAL DL_GLOBAL
10328 # define LT_DLGLOBAL 0
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
10336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10339 # define LT_DLLAZY_OR_NOW DL_LAZY
10342 # define LT_DLLAZY_OR_NOW RTLD_NOW
10345 # define LT_DLLAZY_OR_NOW DL_NOW
10347 # define LT_DLLAZY_OR_NOW 0
10355 extern "C" void exit (int);
10358 void fnord() { int i=42;}
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
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
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 ;;
10389 # compilation failed
10390 lt_cv_dlopen_self_static=no
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"
10407 case $lt_cv_dlopen_self in
10408 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409 *) enable_dlopen_self=unknown ;;
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 ;;
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.
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'
10441 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442 test "$enable_shared" = yes && enable_static=no
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 \
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 \
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 \
10490 old_archive_from_new_cmds \
10495 compiler_lib_search_path \
10497 archive_expsym_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 \
10509 module_expsym_cmds \
10510 lt_cv_prog_compiler_c_o \
10513 include_expsyms; do
10516 old_archive_cmds | \
10517 old_archive_from_new_cmds | \
10519 archive_expsym_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\"\
`\\\""
10538 *'\$0 --fallback-echo"')
10539 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10543 cfgfile="${ofile}T"
10544 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10546 { echo "$as_me:$LINENO: creating $ofile" >&5
10547 echo "$as_me: creating $ofile" >&6;}
10549 cat <<__EOF__ >> "$cfgfile"
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.
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.
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.
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
10617 host_alias=$host_alias
10621 # The build system.
10622 build_alias=$build_alias
10626 # An echo program that does not interpret backslashes.
10631 AR_FLAGS=$lt_AR_FLAGS
10636 # LTCC compiler flags.
10637 LTCFLAGS=$lt_LTCFLAGS
10639 # A language-specific compiler.
10642 # Is the compiler the GNU C compiler?
10648 # The linker used to build libraries.
10651 # Whether we need hard or soft links.
10654 # A BSD-compatible nm program.
10657 # A symbol stripping program
10660 # Used to examine libraries when file_magic_cmd begins "file"
10661 MAGIC_CMD=$MAGIC_CMD
10663 # Used on cygwin: DLL creation program.
10666 # Used on cygwin: object dumper.
10669 # Used on cygwin: assembler.
10672 # The name of the directory that contains temporary libtool files.
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").
10688 # Shared library suffix (normally ".so").
10689 shrext_cmds='$shrext_cmds'
10691 # Executable file suffix (normally "").
10694 # Additional compiler flags for building library objects.
10695 pic_flag=$lt_lt_prog_compiler_pic
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.
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
10778 predep_objects=$lt_predep_objects
10780 # Dependencies to place after the objects being linked to create a
10782 postdep_objects=$lt_postdep_objects
10784 # Dependencies to place before the objects being linked to create a
10786 predeps=$lt_predeps
10788 # Dependencies to place after the objects being linked to create a
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
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
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
10911 export COLLECT_NAMES
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")
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"
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
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;}
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
10980 # Check whether tagname contains only valid characters
10981 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
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; }; }
10989 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
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
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
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
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=
11039 compiler_lib_search_path_CXX=
11041 # Source file extension for C++ test sources.
11044 # Object file extension for compiled C++ test sources.
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.
11059 # If no C compiler flags were specified, use CFLAGS.
11060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11062 # Allow CC to be a program name with arguments.
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
`
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
`
11080 # Allow CC to be a program name with arguments.
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
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
11095 $as_unset lt_cv_path_LD
11097 test -z "${LDCXX+set}" || LD=$LDCXX
11101 for cc_temp in $compiler""; do
11103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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'
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
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; }
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` ;;
11144 # Accept absolute paths.
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%/%"`
11152 test -z "$LD" && LD="$ac_prog"
11155 # If it fails, then pretend we aren't using GCC.
11159 # If it is relative, then search for the first ld in PATH.
11160 with_gnu_ld=unknown
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; }
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
11173 if test -z "$LD"; then
11174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11175 for ac_dir in $PATH; do
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
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; }
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
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
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)
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'
11250 whole_archive_flag_spec_CXX=
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"'
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; }
11281 # FIXME: insert proper C++ library support
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'
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
11301 aix_use_runtimelinking=yes
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
11332 # We have reworked collect2
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=
11346 shared_flag='-shared'
11347 if test "$aix_use_runtimelinking" = yes; then
11348 shared_flag="$shared_flag "'${wl}-G'
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:
11357 if test "$aix_use_runtimelinking" = yes; then
11358 shared_flag='${wl}-G'
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
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
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;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_link") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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"
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"
11439 # Determine the default libpath from the value encoded in an empty executable.
11440 cat >conftest.
$ac_ext <<_ACEOF
11443 cat confdefs.h
>>conftest.
$ac_ext
11444 cat >>conftest.
$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
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;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_link") 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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'
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'
11523 case $cc_basename in
11525 # FIXME: insert proper C++ library support
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;
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'
11554 darwin* | rhapsody*)
11556 rhapsody* | darwin1.[012])
11557 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11561 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11563 case ${MACOSX_DEPLOYMENT_TARGET} in
11565 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11568 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
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'
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}'
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}'
11601 case $cc_basename in
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}'
11618 case $cc_basename in
11620 # FIXME: insert proper C++ library support
11624 # Green Hills C++ Compiler
11625 # FIXME: insert proper C++ library support
11629 # FIXME: insert proper C++ library support
11635 # C++ shared libraries reported to be fairly broken before switch to 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
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
11659 # FIXME: insert proper C++ library support
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
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'
11678 # FIXME: insert proper C++ library support
11685 if test $with_gnu_ld = no; then
11686 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11687 hardcode_libdir_separator_CXX=:
11692 export_dynamic_flag_spec_CXX='${wl}-E'
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.
11709 case $cc_basename in
11711 # FIXME: insert proper C++ library support
11717 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
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
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
11741 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
11752 # FIXME: insert proper C++ library support
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'
11773 case $cc_basename in
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
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'
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
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
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
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'
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
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
11839 ia64
*) tmp_idyn
=' -i_dynamic';;
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'
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'
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'
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
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
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
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
11897 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11904 # FIXME: insert proper C++ library support
11908 # FIXME: insert proper C++ library support
11912 case $cc_basename in
11914 # FIXME: insert proper C++ library support
11918 # FIXME: insert proper C++ library support
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'
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::"'
11935 # C++ shared libraries are fairly broken
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'
11955 case $cc_basename in
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'
11973 # Rational C++ 2.4.1
11974 # FIXME: insert proper C++ library support
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
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"'
12008 # FIXME: insert proper C++ library support
12015 case $cc_basename in
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'
12032 # Rational C++ 2.4.1
12033 # FIXME: insert proper C++ library support
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~
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
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"'
12071 # FIXME: insert proper C++ library support
12078 # FIXME: insert proper C++ library support
12082 case $cc_basename in
12085 # FIXME: insert proper C++ library support
12090 # FIXME: insert proper C++ library support
12094 # FIXME: insert proper C++ library support
12100 case $cc_basename in
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
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'
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
12128 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
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\""
12151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
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'
12165 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12167 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
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
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'
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
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
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'
12229 case $cc_basename in
12231 # NonStop-UX NCC 3.20
12232 # FIXME: insert proper C++ library support
12236 # FIXME: insert proper C++ library support
12242 # FIXME: insert proper C++ library support
12246 # FIXME: insert proper C++ library support
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
12258 cat > conftest.
$ac_ext <<EOF
12262 Foo (void) { a = 0; }
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
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
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
12299 if test "$pre_test_object_deps_done" = no
; then
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}"
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.
12315 if test -z "$postdeps_CXX"; then
12316 postdeps_CXX
="${prev}${p}"
12318 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
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
12331 if test "$pre_test_object_deps_done" = no
; then
12332 if test -z "$predep_objects_CXX"; then
12333 predep_objects_CXX
="$p"
12335 predep_objects_CXX
="$predep_objects_CXX $p"
12338 if test -z "$postdep_objects_CXX"; then
12339 postdep_objects_CXX
="$p"
12341 postdep_objects_CXX
="$postdep_objects_CXX $p"
12346 *) ;; # Ignore the rest.
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
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
=
12370 case `$CC -V 2>&1 | sed 5q` in
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
12383 if test "$solaris_use_stlport4" != yes; then
12384 postdeps_CXX
='-library=Cstd -library=Crun'
12391 case $cc_basename in
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
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'
12415 case " $postdeps_CXX " in
12416 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
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'
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'
12440 # FIXME: we need at least 68020 code to build shared libraries, but
12441 # adding the `-m68020' flag to GCC prevents building anything better,
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'
12461 # DJGPP does not support shared libraries at all
12462 lt_prog_compiler_pic_CXX
=
12465 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12466 # Instead, we relocate shared libraries at runtime.
12469 if test -d /usr
/nec
; then
12470 lt_prog_compiler_pic_CXX
=-Kconform_pic
12474 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12475 # not for PA HP-UX.
12480 lt_prog_compiler_pic_CXX
='-fPIC'
12485 lt_prog_compiler_pic_CXX
='-fPIC'
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'
12496 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12500 case $cc_basename in
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"
12508 # PIC is the default on this platform
12509 # Common symbols not allowed in MH_DYLIB files
12510 case $cc_basename in
12512 lt_prog_compiler_pic_CXX
='-qnocommon'
12513 lt_prog_compiler_wl_CXX
='-Wl,'
12518 case $cc_basename in
12520 lt_prog_compiler_pic_CXX
='-KPIC'
12523 # Green Hills C++ Compiler
12524 lt_prog_compiler_pic_CXX
='-pic'
12530 freebsd
* | dragonfly
*)
12531 # FreeBSD uses GNU C++
12533 hpux9
* | hpux10
* | hpux11
*)
12534 case $cc_basename in
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'
12543 lt_prog_compiler_wl_CXX
='-Wl,'
12544 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12550 lt_prog_compiler_pic_CXX
='+Z'
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
12565 lt_prog_compiler_wl_CXX
='-Wl,'
12566 lt_prog_compiler_static_CXX
='-non_shared'
12567 # CC pic flag -KPIC is the default.
12573 linux
* | k
*bsd
*-gnu)
12574 case $cc_basename in
12577 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12578 lt_prog_compiler_pic_CXX
='-fPIC'
12582 lt_prog_compiler_wl_CXX
='-Wl,'
12583 lt_prog_compiler_pic_CXX
='-KPIC'
12584 lt_prog_compiler_static_CXX
='-static'
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'
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
12603 lt_prog_compiler_pic_CXX
='-KPIC'
12604 lt_prog_compiler_static_CXX
='-Bstatic'
12605 lt_prog_compiler_wl_CXX
='-Qoption ld '
12616 case $cc_basename in
12618 lt_prog_compiler_pic_CXX
='-W c,exportall'
12624 netbsd
* | netbsdelf
*-gnu)
12626 osf3
* | osf4
* | osf5
*)
12627 case $cc_basename in
12629 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12632 # Rational C++ 2.4.1
12633 lt_prog_compiler_pic_CXX
='-pic'
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'
12650 case $cc_basename in
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 '
12658 # Green Hills C++ Compiler
12659 lt_prog_compiler_pic_CXX
='-PIC'
12666 case $cc_basename in
12669 lt_prog_compiler_pic_CXX
='-pic'
12670 lt_prog_compiler_static_CXX
='-Bstatic'
12674 lt_prog_compiler_pic_CXX
='-pic'
12681 case $cc_basename in
12683 # NonStop-UX NCC 3.20
12684 lt_prog_compiler_pic_CXX
='-KPIC'
12690 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12691 case $cc_basename in
12693 lt_prog_compiler_wl_CXX
='-Wl,'
12694 lt_prog_compiler_pic_CXX
='-KPIC'
12695 lt_prog_compiler_static_CXX
='-Bstatic'
12702 lt_prog_compiler_can_build_shared_CXX
=no
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
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
)
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
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
12756 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12759 lt_prog_compiler_pic_CXX
=
12760 lt_prog_compiler_can_build_shared_CXX
=no
12765 # For platforms which do not support PIC, -DPIC is meaningless:
12767 lt_prog_compiler_pic_CXX
=
12770 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
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
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
12799 lt_prog_compiler_static_works_CXX
=yes
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
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
12821 lt_cv_prog_compiler_c_o_CXX
=no
12822 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
12874 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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'
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'
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'
12904 export_symbols_cmds_CXX
="$ltdll_cmds"
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'
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
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
12932 # FIXME: we may have to deal with multi-command sequences.
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; }
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
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } 2>conftest.err
; then
12950 libobjs
=conftest.
$ac_objext
12952 wl
=$lt_prog_compiler_wl_CXX
12953 pic_flag
=$lt_prog_compiler_pic_CXX
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
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }
12967 archive_cmds_need_lc_CXX
=no
12969 archive_cmds_need_lc_CXX
=yes
12971 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12973 cat conftest.err
1>&5
12976 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12977 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
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'
12991 postuninstall_cmds
=
12995 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
13033 aix4 | aix4.
[01] | aix4.
[01].
*)
13034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13036 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13039 can_build_shared
=no
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}'
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
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'
13068 library_names_spec
='${libname}${shared_ext}'
13069 dynamic_linker
="$host_os ld.so"
13070 shlibpath_var
=LIBRARY_PATH
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
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~
13106 shlibpath_overrides_runpath
=yes
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"
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'`
13127 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
13138 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13141 dynamic_linker
='Win32 ld.exe'
13142 # FIXME: first we should search . and the directory the executable is in
13146 darwin
* | rhapsody
*)
13147 dynamic_linker
="$host_os dyld"
13148 version_type
=darwin
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'
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
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`
13180 freebsd
[123]*) objformat
=aout
;;
13181 *) objformat
=elf
;;
13184 version_type
=freebsd-
$objformat
13185 case $version_type in
13187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13192 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13196 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
13245 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13247 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
13269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13270 postinstall_cmds
='chmod 555 $lib'
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
*)
13287 nonstopux
*) version_type
=nonstopux
;;
13289 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
13327 # This must be Linux ELF.
13328 linux
* | k
*bsd
*-gnu)
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'
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'
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'
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
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
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
13406 sys_lib_dlsearch_path_spec
="/usr/lib"
13408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13410 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13411 *) need_version
=no
;;
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
13418 openbsd2.
[89] | openbsd2.
[89].
*)
13419 shlibpath_overrides_runpath
=no
13422 shlibpath_overrides_runpath
=yes
13426 shlibpath_overrides_runpath
=yes
13431 libname_spec
='$name'
13434 library_names_spec
='$libname${shared_ext} $libname.a'
13435 dynamic_linker
='OS/2 ld.exe'
13436 shlibpath_var
=LIBPATH
13439 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
13486 shlibpath_overrides_runpath
=no
13488 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13489 runpath_var
=LD_RUN_PATH
13497 shlibpath_overrides_runpath
=no
13498 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13504 if test -d /usr
/nec
;then
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
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
13524 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13525 shlibpath_overrides_runpath
=yes
13528 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13532 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
13572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13573 hardcode_action_CXX
=immediate
13576 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
13632 compiler_lib_search_path_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 \
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
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\"\`\\\""
13675 *'\$0 --fallback-echo"')
13676 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
13706 host_alias=$host_alias
13710 # The build system.
13711 build_alias=$build_alias
13715 # An echo program that does not interpret backslashes.
13720 AR_FLAGS=$lt_AR_FLAGS
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?
13737 # The linker used to build libraries.
13740 # Whether we need hard or soft links.
13743 # A BSD-compatible nm program.
13746 # A symbol stripping program
13749 # Used to examine libraries when file_magic_cmd begins "file"
13750 MAGIC_CMD=$MAGIC_CMD
13752 # Used on cygwin: DLL creation program.
13755 # Used on cygwin: object dumper.
13758 # Used on cygwin: assembler.
13761 # The name of the directory that contains temporary libtool files.
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").
13777 # Shared library suffix (normally ".so").
13778 shrext_cmds='$shrext_cmds'
13780 # Executable file suffix (normally "").
13783 # Additional compiler flags for building library objects.
13784 pic_flag=$lt_lt_prog_compiler_pic_CXX
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.
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
13867 predep_objects=$lt_predep_objects_CXX
13869 # Dependencies to place after the objects being linked to create a
13871 postdep_objects=$lt_postdep_objects_CXX
13873 # Dependencies to place before the objects being linked to create a
13875 predeps=$lt_predeps_CXX
13877 # Dependencies to place after the objects being linked to create a
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
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
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"
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
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
14025 if test -n "$F77" && test "X$F77" != "Xno"; then
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
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.
14055 # Object file extension for compiled f77 test sources.
14059 # Code to be used in simple compile tests
14060 lt_simple_compile_test_code
="\
14066 # Code to be used in simple link tests
14067 lt_simple_link_test_code
="\
14072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14074 # If no C compiler was specified, use 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.
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`
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`
14098 # Allow CC to be a program name with arguments.
14103 for cc_temp
in $compiler""; do
14105 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14106 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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.
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'
14134 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14135 test "$enable_shared" = yes && enable_static
=no
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; }
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'
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'
14173 # FIXME: we need at least 68020 code to build shared libraries, but
14174 # adding the `-m68020' flag to GCC prevents building anything better,
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'
14198 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14199 # Instead, we relocate shared libraries at runtime.
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
14210 if test -d /usr
/nec
; then
14211 lt_prog_compiler_pic_F77
=-Kconform_pic
14216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14217 # not for PA HP-UX.
14223 lt_prog_compiler_pic_F77
='-fPIC'
14229 lt_prog_compiler_pic_F77
='-fPIC'
14233 # PORTME Check for flag to pass linker flags through the system compiler.
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'
14241 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14245 # PIC is the default on this platform
14246 # Common symbols not allowed in MH_DYLIB files
14247 case $cc_basename in
14249 lt_prog_compiler_pic_F77
='-qnocommon'
14250 lt_prog_compiler_wl_F77
='-Wl,'
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.
14270 lt_prog_compiler_pic_F77
='+Z'
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'
14284 lt_prog_compiler_pic_F77
='-KPIC'
14285 lt_prog_compiler_static_F77
='-Bstatic'
14288 linux
* | k
*bsd
*-gnu)
14289 case $cc_basename in
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'
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
14311 lt_prog_compiler_pic_F77
='-KPIC'
14312 lt_prog_compiler_static_F77
='-Bstatic'
14313 lt_prog_compiler_wl_F77
='-Wl,'
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
=''
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'
14333 lt_prog_compiler_static_F77
='-non_shared'
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,';;
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'
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'
14373 lt_prog_compiler_wl_F77
='-Wl,'
14374 lt_prog_compiler_can_build_shared_F77
=no
14378 lt_prog_compiler_pic_F77
='-pic'
14379 lt_prog_compiler_static_F77
='-Bstatic'
14383 lt_prog_compiler_can_build_shared_F77
=no
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
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
)
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
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
14437 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14440 lt_prog_compiler_pic_F77
=
14441 lt_prog_compiler_can_build_shared_F77
=no
14446 # For platforms which do not support PIC, -DPIC is meaningless:
14448 lt_prog_compiler_pic_F77
=
14451 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
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
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
14480 lt_prog_compiler_static_works_F77
=yes
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
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
14502 lt_cv_prog_compiler_c_o_F77
=no
14503 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
14555 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
14574 allow_undefined_flag_F77
=
14575 enable_shared_with_static_runtimes_F77
=no
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
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
14612 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14613 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14618 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
14630 # we just hope/assume this is gcc and not c89 (= MSVC++)
14639 if test "$with_gnu_ld" = yes; then
14640 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
14664 # See if GNU ld supports shared libraries.
14666 aix3
* | aix4
* | aix5
*)
14667 # On AIX/PPC, the GNU linker is very broken
14668 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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
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'
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'
14799 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
14819 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14820 case `$LD -v 2>&1` in
14821 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
14847 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
14863 if test "$ld_shlibs_F77" = no
; then
14865 hardcode_libdir_flag_spec_F77
=
14866 export_dynamic_flag_spec_F77
=
14867 whole_archive_flag_spec_F77
=
14870 # PORTME fill in a description of your system's linker (not GNU ld)
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
14882 hardcode_direct_F77
=unsupported
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'
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'
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
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
14939 # We have reworked collect2
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
=
14953 shared_flag
='-shared'
14954 if test "$aix_use_runtimelinking" = yes; then
14955 shared_flag
="$shared_flag "'${wl}-G'
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:
14964 if test "$aix_use_runtimelinking" = yes; then
14965 shared_flag
='${wl}-G'
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
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;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
15035 # Determine the default libpath from the value encoded in an empty executable.
15036 cat >conftest.$ac_ext <<_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;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_link") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
15118 # Tell ltmain to make .dll files, not .so files.
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
*)
15132 rhapsody
* | darwin1.
[012])
15133 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15137 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15139 case ${MACOSX_DEPLOYMENT_TARGET} in
15141 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15144 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
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}'
15164 case $cc_basename in
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}'
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
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
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.
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
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'
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'
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'
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
15253 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15256 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
15268 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
15278 if test "$with_gnu_ld" = no
; then
15279 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15280 hardcode_libdir_separator_F77
=:
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
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'
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
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
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
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'
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'
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'
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'
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'
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
=:
15395 no_undefined_flag_F77
=' -z text'
15396 if test "$GCC" = yes; then
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'
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
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'
15419 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15423 link_all_deplibs_F77
=yes
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'
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
15441 case $host_vendor in
15443 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444 hardcode_direct_F77
=yes # is this really true???
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
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
15458 runpath_var
='LD_RUN_PATH'
15459 hardcode_shlibpath_var_F77
=no
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'
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
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'
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
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'
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'
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
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
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
15546 # FIXME: we may have to deal with multi-command sequences.
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; }
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
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } 2>conftest.err
; then
15564 libobjs
=conftest.
$ac_objext
15566 wl
=$lt_prog_compiler_wl_F77
15567 pic_flag
=$lt_prog_compiler_pic_F77
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
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }
15581 archive_cmds_need_lc_F77
=no
15583 archive_cmds_need_lc_F77
=yes
15585 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15587 cat conftest.err
1>&5
15590 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15591 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
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'
15605 postuninstall_cmds
=
15609 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
15647 aix4 | aix4.
[01] | aix4.
[01].
*)
15648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15650 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15653 can_build_shared
=no
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}'
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
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'
15682 library_names_spec
='${libname}${shared_ext}'
15683 dynamic_linker
="$host_os ld.so"
15684 shlibpath_var
=LIBRARY_PATH
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
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~
15720 shlibpath_overrides_runpath
=yes
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"
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'`
15741 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
15752 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15755 dynamic_linker
='Win32 ld.exe'
15756 # FIXME: first we should search . and the directory the executable is in
15760 darwin
* | rhapsody
*)
15761 dynamic_linker
="$host_os dyld"
15762 version_type
=darwin
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'
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
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`
15794 freebsd
[123]*) objformat
=aout
;;
15795 *) objformat
=elf
;;
15798 version_type
=freebsd-
$objformat
15799 case $version_type in
15801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15806 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15810 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
15859 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15861 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
15883 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15884 postinstall_cmds
='chmod 555 $lib'
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
*)
15901 nonstopux
*) version_type
=nonstopux
;;
15903 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
15941 # This must be Linux ELF.
15942 linux
* | k
*bsd
*-gnu)
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'
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'
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'
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
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
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
16020 sys_lib_dlsearch_path_spec
="/usr/lib"
16022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16024 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16025 *) need_version
=no
;;
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
16032 openbsd2.
[89] | openbsd2.
[89].
*)
16033 shlibpath_overrides_runpath
=no
16036 shlibpath_overrides_runpath
=yes
16040 shlibpath_overrides_runpath
=yes
16045 libname_spec
='$name'
16048 library_names_spec
='$libname${shared_ext} $libname.a'
16049 dynamic_linker
='OS/2 ld.exe'
16050 shlibpath_var
=LIBPATH
16053 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
16100 shlibpath_overrides_runpath
=no
16102 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16103 runpath_var
=LD_RUN_PATH
16111 shlibpath_overrides_runpath
=no
16112 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16118 if test -d /usr
/nec
;then
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
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
16138 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16139 shlibpath_overrides_runpath
=yes
16142 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16146 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
16186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16187 hardcode_action_F77
=immediate
16190 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
16246 compiler_lib_search_path_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 \
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
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\"\`\\\""
16289 *'\$0 --fallback-echo"')
16290 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
16320 host_alias=$host_alias
16324 # The build system.
16325 build_alias=$build_alias
16329 # An echo program that does not interpret backslashes.
16334 AR_FLAGS=$lt_AR_FLAGS
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?
16351 # The linker used to build libraries.
16354 # Whether we need hard or soft links.
16357 # A BSD-compatible nm program.
16360 # A symbol stripping program
16363 # Used to examine libraries when file_magic_cmd begins "file"
16364 MAGIC_CMD=$MAGIC_CMD
16366 # Used on cygwin: DLL creation program.
16369 # Used on cygwin: object dumper.
16372 # Used on cygwin: assembler.
16375 # The name of the directory that contains temporary libtool files.
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").
16391 # Shared library suffix (normally ".so").
16392 shrext_cmds='$shrext_cmds'
16394 # Executable file suffix (normally "").
16397 # Additional compiler flags for building library objects.
16398 pic_flag=$lt_lt_prog_compiler_pic_F77
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.
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
16481 predep_objects=$lt_predep_objects_F77
16483 # Dependencies to place after the objects being linked to create a
16485 postdep_objects=$lt_postdep_objects_F77
16487 # Dependencies to place before the objects being linked to create a
16489 predeps=$lt_predeps_F77
16491 # Dependencies to place after the objects being linked to create a
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
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
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"
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
16630 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16633 # Source file extension for Java test sources.
16636 # Object file extension for compiled Java test sources.
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.
16651 # If no C compiler flags were specified, use CFLAGS.
16652 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16654 # Allow CC to be a program name with arguments.
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`
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`
16672 # Allow CC to be a program name with arguments.
16677 for cc_temp
in $compiler""; do
16679 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16680 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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
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
)
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
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"
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'
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'
16767 # FIXME: we need at least 68020 code to build shared libraries, but
16768 # adding the `-m68020' flag to GCC prevents building anything better,
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'
16792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16793 # Instead, we relocate shared libraries at runtime.
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
16804 if test -d /usr
/nec
; then
16805 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811 # not for PA HP-UX.
16817 lt_prog_compiler_pic_GCJ
='-fPIC'
16823 lt_prog_compiler_pic_GCJ
='-fPIC'
16827 # PORTME Check for flag to pass linker flags through the system compiler.
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'
16835 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16839 # PIC is the default on this platform
16840 # Common symbols not allowed in MH_DYLIB files
16841 case $cc_basename in
16843 lt_prog_compiler_pic_GCJ
='-qnocommon'
16844 lt_prog_compiler_wl_GCJ
='-Wl,'
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.
16864 lt_prog_compiler_pic_GCJ
='+Z'
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'
16878 lt_prog_compiler_pic_GCJ
='-KPIC'
16879 lt_prog_compiler_static_GCJ
='-Bstatic'
16882 linux
* | k
*bsd
*-gnu)
16883 case $cc_basename in
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'
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
16905 lt_prog_compiler_pic_GCJ
='-KPIC'
16906 lt_prog_compiler_static_GCJ
='-Bstatic'
16907 lt_prog_compiler_wl_GCJ
='-Wl,'
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
=''
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'
16927 lt_prog_compiler_static_GCJ
='-non_shared'
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,';;
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'
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'
16967 lt_prog_compiler_wl_GCJ
='-Wl,'
16968 lt_prog_compiler_can_build_shared_GCJ
=no
16972 lt_prog_compiler_pic_GCJ
='-pic'
16973 lt_prog_compiler_static_GCJ
='-Bstatic'
16977 lt_prog_compiler_can_build_shared_GCJ
=no
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
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
)
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
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
17031 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17034 lt_prog_compiler_pic_GCJ
=
17035 lt_prog_compiler_can_build_shared_GCJ
=no
17040 # For platforms which do not support PIC, -DPIC is meaningless:
17042 lt_prog_compiler_pic_GCJ
=
17045 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
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
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
17074 lt_prog_compiler_static_works_GCJ
=yes
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
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
17096 lt_cv_prog_compiler_c_o_GCJ
=no
17097 $rm -r conftest
2>/dev
/null
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
)
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
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
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
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; }
17149 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
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;}
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; }
17168 allow_undefined_flag_GCJ
=
17169 enable_shared_with_static_runtimes_GCJ
=no
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
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
17206 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17207 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17212 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
17224 # we just hope/assume this is gcc and not c89 (= MSVC++)
17233 if test "$with_gnu_ld" = yes; then
17234 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
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 ;;
17258 # See if GNU ld supports shared libraries.
17260 aix3
* | aix4
* | aix5
*)
17261 # On AIX/PPC, the GNU linker is very broken
17262 if test "$host_cpu" != ia64
; then
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.
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
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'
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;
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'
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
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' ;;
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' ;;
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
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'
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'
17393 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
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'
17413 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17414 case `$LD -v 2>&1` in
17415 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
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.
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'
17441 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
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'
17457 if test "$ld_shlibs_GCJ" = no
; then
17459 hardcode_libdir_flag_spec_GCJ
=
17460 export_dynamic_flag_spec_GCJ
=
17461 whole_archive_flag_spec_GCJ
=
17464 # PORTME fill in a description of your system's linker (not GNU ld)
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
17476 hardcode_direct_GCJ
=unsupported
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'
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'
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
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
17533 # We have reworked collect2
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
=
17547 shared_flag
='-shared'
17548 if test "$aix_use_runtimelinking" = yes; then
17549 shared_flag
="$shared_flag "'${wl}-G'
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:
17558 if test "$aix_use_runtimelinking" = yes; then
17559 shared_flag
='${wl}-G'
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
17577 cat confdefs.h
>>conftest.
$ac_ext
17578 cat >>conftest.
$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
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;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
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/,/^$/ {
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"`
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"
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"
17639 # Determine the default libpath from the value encoded in an empty executable.
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
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;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1
>conftest.err
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/,/^$/ {
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"`
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'
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
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.
17732 # Tell ltmain to make .dll files, not .so files.
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
*)
17746 rhapsody
* | darwin1.
[012])
17747 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17750 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17751 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17753 case ${MACOSX_DEPLOYMENT_TARGET} in
17755 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17758 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
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}'
17778 case $cc_basename in
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}'
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
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
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.
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
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'
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'
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'
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
17867 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17870 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
17882 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
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'
17892 if test "$with_gnu_ld" = no
; then
17893 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17894 hardcode_libdir_separator_GCJ
=:
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
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'
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
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
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
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'
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'
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'
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'
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'
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
=:
18009 no_undefined_flag_GCJ
=' -z text'
18010 if test "$GCC" = yes; then
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'
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
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'
18033 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18037 link_all_deplibs_GCJ
=yes
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'
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
18055 case $host_vendor in
18057 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_direct_GCJ
=yes # is this really true???
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
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
18072 runpath_var
='LD_RUN_PATH'
18073 hardcode_shlibpath_var_GCJ
=no
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'
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
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'
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
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'
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'
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
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
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
18160 # FIXME: we may have to deal with multi-command sequences.
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; }
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
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } 2>conftest.err
; then
18178 libobjs
=conftest.
$ac_objext
18180 wl
=$lt_prog_compiler_wl_GCJ
18181 pic_flag
=$lt_prog_compiler_pic_GCJ
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
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }
18195 archive_cmds_need_lc_GCJ
=no
18197 archive_cmds_need_lc_GCJ
=yes
18199 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18201 cat conftest.err
1>&5
18204 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18205 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
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'
18219 postuninstall_cmds
=
18223 shlibpath_overrides_runpath
=unknown
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
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'
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
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.
18261 aix4 | aix4.
[01] | aix4.
[01].
*)
18262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18264 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18267 can_build_shared
=no
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}'
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
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'
18296 library_names_spec
='${libname}${shared_ext}'
18297 dynamic_linker
="$host_os ld.so"
18298 shlibpath_var
=LIBRARY_PATH
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
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~
18334 shlibpath_overrides_runpath
=yes
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"
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'`
18355 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
18366 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18369 dynamic_linker
='Win32 ld.exe'
18370 # FIXME: first we should search . and the directory the executable is in
18374 darwin
* | rhapsody
*)
18375 dynamic_linker
="$host_os dyld"
18376 version_type
=darwin
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'
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
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`
18408 freebsd
[123]*) objformat
=aout
;;
18409 *) objformat
=elf
;;
18412 version_type
=freebsd-
$objformat
18413 case $version_type in
18415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18420 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18424 shlibpath_var
=LD_LIBRARY_PATH
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
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.
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"
18473 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18475 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
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
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'
18497 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18498 postinstall_cmds
='chmod 555 $lib'
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
*)
18515 nonstopux
*) version_type
=nonstopux
;;
18517 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
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
;;
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
*)
18555 # This must be Linux ELF.
18556 linux
* | k
*bsd
*-gnu)
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'
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'
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'
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
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
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
18634 sys_lib_dlsearch_path_spec
="/usr/lib"
18636 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18638 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18639 *) need_version
=no
;;
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
18646 openbsd2.
[89] | openbsd2.
[89].
*)
18647 shlibpath_overrides_runpath
=no
18650 shlibpath_overrides_runpath
=yes
18654 shlibpath_overrides_runpath
=yes
18659 libname_spec
='$name'
18662 library_names_spec
='$libname${shared_ext} $libname.a'
18663 dynamic_linker
='OS/2 ld.exe'
18664 shlibpath_var
=LIBPATH
18667 osf3
* | osf4
* | osf5
*)
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"
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'
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
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
18714 shlibpath_overrides_runpath
=no
18716 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18717 runpath_var
=LD_RUN_PATH
18725 shlibpath_overrides_runpath
=no
18726 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18732 if test -d /usr
/nec
;then
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
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
18752 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18753 shlibpath_overrides_runpath
=yes
18756 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18760 sys_lib_dlsearch_path_spec
='/usr/lib'
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
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
18800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18801 hardcode_action_GCJ
=immediate
18804 # We cannot hardcode anything, or else we can only hardcode existing
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 \
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 \
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 \
18860 compiler_lib_search_path_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 \
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
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\"\`\\\""
18903 *'\$0 --fallback-echo"')
18904 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
18934 host_alias=$host_alias
18938 # The build system.
18939 build_alias=$build_alias
18943 # An echo program that does not interpret backslashes.
18948 AR_FLAGS=$lt_AR_FLAGS
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?
18965 # The linker used to build libraries.
18968 # Whether we need hard or soft links.
18971 # A BSD-compatible nm program.
18974 # A symbol stripping program
18977 # Used to examine libraries when file_magic_cmd begins "file"
18978 MAGIC_CMD=$MAGIC_CMD
18980 # Used on cygwin: DLL creation program.
18983 # Used on cygwin: object dumper.
18986 # Used on cygwin: assembler.
18989 # The name of the directory that contains temporary libtool files.
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").
19005 # Shared library suffix (normally ".so").
19006 shrext_cmds='$shrext_cmds'
19008 # Executable file suffix (normally "").
19011 # Additional compiler flags for building library objects.
19012 pic_flag=$lt_lt_prog_compiler_pic_GCJ
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.
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
19095 predep_objects=$lt_predep_objects_GCJ
19097 # Dependencies to place after the objects being linked to create a
19099 postdep_objects=$lt_postdep_objects_GCJ
19101 # Dependencies to place before the objects being linked to create a
19103 predeps=$lt_predeps_GCJ
19105 # Dependencies to place after the objects being linked to create a
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
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
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"
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
19246 # Source file extension for RC test sources.
19249 # Object file extension for compiled RC test sources.
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.
19264 # If no C compiler flags were specified, use CFLAGS.
19265 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19267 # Allow CC to be a program name with arguments.
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`
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`
19285 # Allow CC to be a program name with arguments.
19290 for cc_temp
in $compiler""; do
19292 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19293 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
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 \
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 \
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 \
19341 compiler_lib_search_path_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 \
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
19362 old_archive_cmds_RC | \
19363 old_archive_from_new_cmds_RC | \
19364 archive_cmds_RC | \
19365 archive_expsym_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\"\`\\\""
19384 *'\$0 --fallback-echo"')
19385 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
19415 host_alias=$host_alias
19419 # The build system.
19420 build_alias=$build_alias
19424 # An echo program that does not interpret backslashes.
19429 AR_FLAGS=$lt_AR_FLAGS
19434 # LTCC compiler flags.
19435 LTCFLAGS=$lt_LTCFLAGS
19437 # A language-specific compiler.
19440 # Is the compiler the GNU C compiler?
19446 # The linker used to build libraries.
19449 # Whether we need hard or soft links.
19452 # A BSD-compatible nm program.
19455 # A symbol stripping program
19458 # Used to examine libraries when file_magic_cmd begins "file"
19459 MAGIC_CMD=$MAGIC_CMD
19461 # Used on cygwin: DLL creation program.
19464 # Used on cygwin: object dumper.
19467 # Used on cygwin: assembler.
19470 # The name of the directory that contains temporary libtool files.
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").
19486 # Shared library suffix (normally ".so").
19487 shrext_cmds='$shrext_cmds'
19489 # Executable file suffix (normally "").
19492 # Additional compiler flags for building library objects.
19493 pic_flag=$lt_lt_prog_compiler_pic_RC
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.
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
19576 predep_objects=$lt_predep_objects_RC
19578 # Dependencies to place after the objects being linked to create a
19580 postdep_objects=$lt_postdep_objects_RC
19582 # Dependencies to place before the objects being linked to create a
19584 predeps=$lt_predeps_RC
19586 # Dependencies to place after the objects being linked to create a
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
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
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"
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
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; }; }
19728 # Append the new tag name to the list of available tags.
19729 if test -n "$tagname" ; then
19730 available_tags
="$available_tags $tagname"
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"
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
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
19790 if test -n "$CC"; then
19791 ac_cv_prog_CC
="$CC" # Let the user override the test.
19793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19794 for as_dir
in $PATH
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
19811 if test -n "$CC"; then
19812 { echo "$as_me:$LINENO: result: $CC" >&5
19813 echo "${ECHO_T}$CC" >&6; }
19815 { echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6; }
19821 if test -z "$ac_cv_prog_CC"; then
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
19830 if test -n "$ac_ct_CC"; then
19831 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19834 for as_dir
in $PATH
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
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; }
19855 { echo "$as_me:$LINENO: result: no" >&5
19856 echo "${ECHO_T}no" >&6; }
19859 if test "x$ac_ct_CC" = x
; then
19862 case $cross_compiling:$ac_tool_warned in
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 ;;
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
19887 if test -n "$CC"; then
19888 ac_cv_prog_CC
="$CC" # Let the user override the test.
19890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19891 for as_dir
in $PATH
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
19908 if test -n "$CC"; then
19909 { echo "$as_me:$LINENO: result: $CC" >&5
19910 echo "${ECHO_T}$CC" >&6; }
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
19927 if test -n "$CC"; then
19928 ac_cv_prog_CC
="$CC" # Let the user override the test.
19930 ac_prog_rejected
=no
19931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19932 for as_dir
in $PATH
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
19943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
19959 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19965 if test -n "$CC"; then
19966 { echo "$as_me:$LINENO: result: $CC" >&5
19967 echo "${ECHO_T}$CC" >&6; }
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
19986 if test -n "$CC"; then
19987 ac_cv_prog_CC
="$CC" # Let the user override the test.
19989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19990 for as_dir
in $PATH
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
20007 if test -n "$CC"; then
20008 { echo "$as_me:$LINENO: result: $CC" >&5
20009 echo "${ECHO_T}$CC" >&6; }
20011 { echo "$as_me:$LINENO: result: no" >&5
20012 echo "${ECHO_T}no" >&6; }
20016 test -n "$CC" && break
20019 if test -z "$CC"; then
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
20030 if test -n "$ac_ct_CC"; then
20031 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
20033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20034 for as_dir
in $PATH
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
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; }
20055 { echo "$as_me:$LINENO: result: no" >&5
20056 echo "${ECHO_T}no" >&6; }
20060 test -n "$ac_ct_CC" && break
20063 if test "x$ac_ct_CC" = x
; then
20066 case $cross_compiling:$ac_tool_warned in
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 ;;
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;;
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098 (eval "$ac_compiler --version >&5") 2>&5
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;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compiler -v >&5") 2>&5
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;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compiler -V >&5") 2>&5
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
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
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;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1
>conftest.err
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
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.
$ac_ext >&5
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
20185 ac_save_c_werror_flag
=$ac_c_werror_flag
20186 ac_c_werror_flag
=yes
20189 cat >conftest.
$ac_ext <<_ACEOF
20192 cat confdefs.h
>>conftest.
$ac_ext
20193 cat >>conftest.
$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
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;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
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
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
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;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_compile") 2>conftest.er1
20251 grep -v '^ *+' conftest.er1
>conftest.err
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
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
20266 cat >conftest.
$ac_ext <<_ACEOF
20269 cat confdefs.h
>>conftest.
$ac_ext
20270 cat >>conftest.
$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
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;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_compile") 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
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
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
20326 if test "$GCC" = yes; then
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
20337 ac_cv_prog_cc_c89=no
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <stdarg.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)
20358 static char *f (char * (*g) (char **, int), char **p, ...)
20363 s = g (p, va_arg (v,int));
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. */
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);
20391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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;;
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_compile") 2>conftest.er1
20409 grep -v '^ *+' conftest.er1
>conftest.err
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
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
20428 rm -f conftest.
$ac_ext
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; } ;;
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; } ;;
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
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
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
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
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.
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
20498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
20539 rm -rf conftest.dir
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
='#'
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
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
20581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20582 for as_dir
in $PATH
20585 test -z "$as_dir" && as_dir
=.
20586 # Account for people who put trailing slashes in PATH elements.
20588 .
/ | .
// |
/cC
/* | \
20589 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
20590 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
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
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.
20608 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
20621 if test "${ac_cv_path_install+set}" = set; then
20622 INSTALL
=$ac_cv_path_install
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
20646 CFLAGS
="$CFLAGS -mcpu=ev4 -Wa,-mall"
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
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
20671 case $PKG_CONFIG in
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
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
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; }
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
20714 case $ac_pt_PKG_CONFIG in
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
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
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; }
20742 { echo "$as_me:$LINENO: result: no" >&5
20743 echo "${ECHO_T}no" >&6; }
20746 if test "x$ac_pt_PKG_CONFIG" = x
; then
20749 case $cross_compiling:$ac_tool_warned in
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 ;;
20759 PKG_CONFIG
=$ac_pt_PKG_CONFIG
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; }
20774 { echo "$as_me:$LINENO: result: no" >&5
20775 echo "${ECHO_T}no" >&6; }
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"
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
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`
20803 if test -n "$PKG_CONFIG"; then
20804 if test -n "$PANGO_LIBS"; then
20805 pkg_cv_PANGO_LIBS
="$PANGO_LIBS"
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
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`
20824 if test $pkg_failed = yes; then
20826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20827 _pkg_short_errors_supported
=yes
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"`
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; }; }
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"
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"
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
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`
20881 if test -n "$PKG_CONFIG"; then
20882 if test -n "$PANGOFT2_LIBS"; then
20883 pkg_cv_PANGOFT2_LIBS
="$PANGOFT2_LIBS"
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
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`
20902 if test $pkg_failed = yes; then
20904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20905 _pkg_short_errors_supported
=yes
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"`
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; }; }
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"
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"
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"
20955 # Check whether --enable-sdltest was given.
20956 if test "${enable_sdltest+set}" = set; then
20957 enableval
=$enable_sdltest;
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
20986 case $SDL_CONFIG in
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
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
21006 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
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; }
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; }
21024 if test "$SDL_CONFIG" = "no" ; then
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"
21044 if test "$cross_compiling" = yes; then
21045 echo $ac_n "cross compiling; assumed OK... $ac_c"
21047 cat >conftest.
$ac_ext <<_ACEOF
21050 cat confdefs.h
>>conftest.
$ac_ext
21051 cat >>conftest.
$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21055 #include <stdlib.h>
21056 #include <string.h>
21060 my_strdup (char *str)
21066 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21067 strcpy (new_str, str);
21075 int main (int argc, char *argv[])
21077 int major, minor, micro;
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, µ) != 3) {
21088 printf("%s, bad version string\n", "$min_sdl_version");
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)))
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");
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;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_link") 2>&5
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;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_try") 2>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
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 )
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; }
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."
21163 if test -f conf.sdltest
; then
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
21173 cat confdefs.h
>>conftest.
$ac_ext
21174 cat >>conftest.
$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21180 int main(int argc, char *argv[])
21183 #define main K_and_R_C_main
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;;
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_link") 2>conftest.er1
21202 grep -v '^ *+' conftest.er1 >conftest.err
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"
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"
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"
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; }; }
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.
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
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;} ;;
21286 _ | IFS | as_nl
) ;; #(
21287 *) $as_unset $ac_var ;;
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 \).
21299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21302 # `set' quotes correctly as required by POSIX, so do not add quotes.
21303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
21323 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21324 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
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.
21343 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21345 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21349 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21362 DEFS
=`sed -n "$ac_script" confdefs.h`
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'
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
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.
21430 ac_cs_recheck=false
21432 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
21450 case `(set -o) 2>/dev/null` in
21451 *posix
*) set -o posix
;;
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
21472 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21480 # Support unset when possible.
21481 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
21497 # Find who we are. Look in the path if we contain no directory separator.
21499 *[\\/]* ) as_myself
=$0 ;;
21500 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21501 for as_dir
in $PATH
21504 test -z "$as_dir" && as_dir
=.
21505 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
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
21538 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21542 # Required to use basename.
21543 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21544 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21550 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21551 as_basename
=basename
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 ||
21563 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
21608 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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.
21625 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21631 ECHO_C
= ECHO_N
= ECHO_T
=
21632 case `echo -n x` in
21634 case `echo 'x\c'` in
21635 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21642 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21643 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21649 rm -f conf$$ conf$$.exe conf$$.
file
21650 if test -d conf$$.dir
; then
21651 rm -f conf$$.dir
/conf$$.
file
21657 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
21665 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
21676 test -d .
/-p && rmdir .
/-p
21680 if test -x / >/dev
/null
2>&1; then
21681 as_test_x
='test -x'
21683 if ls -dL / >/dev
/null
2>&1; then
21690 if test -d "$1"; then
21696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21697 ???[sx]*):;;*)false;;esac;fi
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'"
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.
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
21725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
21737 cat >>$CONFIG_STATUS <<\_ACEOF
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:
21755 Configuration commands:
21758 Report bugs to <bug-autoconf@gnu.org>."
21761 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
21784 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21785 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21796 # Handling of the options.
21797 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21799 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21800 echo "$ac_cs_version"; exit ;;
21801 --debug |
--debu |
--deb |
--de |
--d |
-d )
21803 --file |
--fil |
--fi |
--f )
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)
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
;;
21825 ac_configure_extra_args
=
21827 if $ac_cs_silent; then
21829 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
21842 cat >>$CONFIG_STATUS <<\_ACEOF
21846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21847 ## Running $as_me. ##
21853 cat >>$CONFIG_STATUS <<_ACEOF
21857 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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; }; };;
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'.
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"
21916 tmp
=.
/conf$$
-$RANDOM
21917 (umask 077 && mkdir
"$tmp")
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
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
22017 SET_MAKE!$SET_MAKE$ac_delim
22018 am__leading_dot!$am__leading_dot$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
22038 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
22045 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
22060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22061 s/^/s,@/; s/!/@,|#_!!_#|/
22064 s/'"$ac_delim"'$/,g/; t
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
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
22082 RANLIB!$RANLIB$ac_delim
22083 DLLTOOL!$DLLTOOL$ac_delim
22085 OBJDUMP!$OBJDUMP$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
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
22110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
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; }; }
22117 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
22132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22133 s/^/s,@/; s/!/@,|#_!!_#|/
22136 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
22157 s/^\([^=]*=[ ]*\):*/\1/
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 fi # test -n "$CONFIG_FILES"
22167 for ac_tag
in :F
$CONFIG_FILES :C
$CONFIG_COMMANDS
22170 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22172 case $ac_mode$ac_tag in
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;;
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 `:'.
22202 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
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; }; };;
22208 ac_file_inputs
="$ac_file_inputs $ac_f"
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;}
22223 *:-:* |
*:-) cat >"$tmp/stdin";;
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 ||
22234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22238 /^X\(\/\/\)[^/].*/{
22253 -*) as_dir
=.
/$as_dir;;
22255 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22259 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22260 *) as_qdir
=$as_dir;;
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 ||
22269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22273 /^X\(\/\/\)[^/].*/{
22286 test -d "$as_dir" && break
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; }; }; }
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/ ;;
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
22311 .
) # We are building in place.
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 ;;
22324 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22334 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22335 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
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/ {
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;}
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' ;;
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
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;}
22403 -) cat "$tmp/out"; rm -f "$tmp/out";;
22404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22409 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22410 echo "$as_me: executing $ac_file commands" >&6;}
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 ||
22432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22436 /^X\(\/\/\)[^/].*/{
22452 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
22453 # Extract the definition of DEP_FILES from the Makefile without
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 = .*\\\\$/ {
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 ||
22482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22486 /^X\(\/\/\)[^/].*/{
22499 { as_dir
=$dirpart/$fdir
22501 -*) as_dir
=.
/$as_dir;;
22503 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22507 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22508 *) as_qdir
=$as_dir;;
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 ||
22517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22521 /^X\(\/\/\)[^/].*/{
22534 test -d "$as_dir" && break
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"
22550 { (exit 0); exit 0; }
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
22566 ac_config_status_args
=
22567 test "$silent" = yes &&
22568 ac_config_status_args
="$ac_config_status_args --quiet"
22570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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; }