4645
4469
SET_MAKE="MAKE=${MAKE-make}"
4650
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4651
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4656
macro_version='2.2.6'
4657
macro_revision='1.3012'
4671
ltmain="$ac_aux_dir/ltmain.sh"
4673
# Make sure we can run config.sub.
4674
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4675
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4678
$as_echo_n "checking build system type... " >&6; }
4679
if test "${ac_cv_build+set}" = set; then :
4680
$as_echo_n "(cached) " >&6
4682
ac_build_alias=$build_alias
4683
test "x$ac_build_alias" = x &&
4684
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4685
test "x$ac_build_alias" = x &&
4686
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4687
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4688
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692
$as_echo "$ac_cv_build" >&6; }
4693
case $ac_cv_build in
4695
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4698
ac_save_IFS=$IFS; IFS='-'
4704
# Remember, the first character of IFS is used to create $*,
4705
# except with old shells:
4708
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712
$as_echo_n "checking host system type... " >&6; }
4713
if test "${ac_cv_host+set}" = set; then :
4714
$as_echo_n "(cached) " >&6
4716
if test "x$host_alias" = x; then
4717
ac_cv_host=$ac_cv_build
4719
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4720
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4725
$as_echo "$ac_cv_host" >&6; }
4728
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4731
ac_save_IFS=$IFS; IFS='-'
4737
# Remember, the first character of IFS is used to create $*,
4738
# except with old shells:
4741
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4745
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4746
if test "${ac_cv_path_SED+set}" = set; then :
4747
$as_echo_n "(cached) " >&6
4749
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4750
for ac_i in 1 2 3 4 5 6 7; do
4751
ac_script="$ac_script$as_nl$ac_script"
4753
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4754
{ ac_script=; unset ac_script;}
4755
if test -z "$SED"; then
4756
ac_path_SED_found=false
4757
# Loop through the user's path and test for each of PROGNAME-LIST
4758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762
test -z "$as_dir" && as_dir=.
4763
for ac_prog in sed gsed; do
4764
for ac_exec_ext in '' $ac_executable_extensions; do
4765
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4766
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4767
# Check for GNU ac_path_SED and select it if it is found.
4768
# Check for GNU $ac_path_SED
4769
case `"$ac_path_SED" --version 2>&1` in
4771
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4774
$as_echo_n 0123456789 >"conftest.in"
4777
cat "conftest.in" "conftest.in" >"conftest.tmp"
4778
mv "conftest.tmp" "conftest.in"
4779
cp "conftest.in" "conftest.nl"
4780
$as_echo '' >> "conftest.nl"
4781
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783
as_fn_arith $ac_count + 1 && ac_count=$as_val
4784
if test $ac_count -gt ${ac_path_SED_max-0}; then
4785
# Best one so far, save it but keep looking for a better one
4786
ac_cv_path_SED="$ac_path_SED"
4787
ac_path_SED_max=$ac_count
4789
# 10*(2^10) chars as input seems more than enough
4790
test $ac_count -gt 10 && break
4792
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795
$ac_path_SED_found && break 3
4800
if test -z "$ac_cv_path_SED"; then
4801
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4809
$as_echo "$ac_cv_path_SED" >&6; }
4810
SED="$ac_cv_path_SED"
4813
test -z "$SED" && SED=sed
4814
Xsed="$SED -e 1s/^X//"
4826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828
if test "${ac_cv_path_GREP+set}" = set; then :
4829
$as_echo_n "(cached) " >&6
4831
if test -z "$GREP"; then
4832
ac_path_GREP_found=false
4833
# Loop through the user's path and test for each of PROGNAME-LIST
4834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838
test -z "$as_dir" && as_dir=.
4839
for ac_prog in grep ggrep; do
4840
for ac_exec_ext in '' $ac_executable_extensions; do
4841
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4843
# Check for GNU ac_path_GREP and select it if it is found.
4844
# Check for GNU $ac_path_GREP
4845
case `"$ac_path_GREP" --version 2>&1` in
4847
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4850
$as_echo_n 0123456789 >"conftest.in"
4853
cat "conftest.in" "conftest.in" >"conftest.tmp"
4854
mv "conftest.tmp" "conftest.in"
4855
cp "conftest.in" "conftest.nl"
4856
$as_echo 'GREP' >> "conftest.nl"
4857
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859
as_fn_arith $ac_count + 1 && ac_count=$as_val
4860
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861
# Best one so far, save it but keep looking for a better one
4862
ac_cv_path_GREP="$ac_path_GREP"
4863
ac_path_GREP_max=$ac_count
4865
# 10*(2^10) chars as input seems more than enough
4866
test $ac_count -gt 10 && break
4868
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871
$ac_path_GREP_found && break 3
4876
if test -z "$ac_cv_path_GREP"; then
4877
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880
ac_cv_path_GREP=$GREP
4884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885
$as_echo "$ac_cv_path_GREP" >&6; }
4886
GREP="$ac_cv_path_GREP"
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890
$as_echo_n "checking for egrep... " >&6; }
4891
if test "${ac_cv_path_EGREP+set}" = set; then :
4892
$as_echo_n "(cached) " >&6
4894
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895
then ac_cv_path_EGREP="$GREP -E"
4897
if test -z "$EGREP"; then
4898
ac_path_EGREP_found=false
4899
# Loop through the user's path and test for each of PROGNAME-LIST
4900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904
test -z "$as_dir" && as_dir=.
4905
for ac_prog in egrep; do
4906
for ac_exec_ext in '' $ac_executable_extensions; do
4907
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4909
# Check for GNU ac_path_EGREP and select it if it is found.
4910
# Check for GNU $ac_path_EGREP
4911
case `"$ac_path_EGREP" --version 2>&1` in
4913
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4916
$as_echo_n 0123456789 >"conftest.in"
4919
cat "conftest.in" "conftest.in" >"conftest.tmp"
4920
mv "conftest.tmp" "conftest.in"
4921
cp "conftest.in" "conftest.nl"
4922
$as_echo 'EGREP' >> "conftest.nl"
4923
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925
as_fn_arith $ac_count + 1 && ac_count=$as_val
4926
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927
# Best one so far, save it but keep looking for a better one
4928
ac_cv_path_EGREP="$ac_path_EGREP"
4929
ac_path_EGREP_max=$ac_count
4931
# 10*(2^10) chars as input seems more than enough
4932
test $ac_count -gt 10 && break
4934
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937
$ac_path_EGREP_found && break 3
4942
if test -z "$ac_cv_path_EGREP"; then
4943
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946
ac_cv_path_EGREP=$EGREP
4951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952
$as_echo "$ac_cv_path_EGREP" >&6; }
4953
EGREP="$ac_cv_path_EGREP"
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4957
$as_echo_n "checking for fgrep... " >&6; }
4958
if test "${ac_cv_path_FGREP+set}" = set; then :
4959
$as_echo_n "(cached) " >&6
4961
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4962
then ac_cv_path_FGREP="$GREP -F"
4964
if test -z "$FGREP"; then
4965
ac_path_FGREP_found=false
4966
# Loop through the user's path and test for each of PROGNAME-LIST
4967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4971
test -z "$as_dir" && as_dir=.
4972
for ac_prog in fgrep; do
4973
for ac_exec_ext in '' $ac_executable_extensions; do
4974
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4975
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4976
# Check for GNU ac_path_FGREP and select it if it is found.
4977
# Check for GNU $ac_path_FGREP
4978
case `"$ac_path_FGREP" --version 2>&1` in
4980
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4983
$as_echo_n 0123456789 >"conftest.in"
4986
cat "conftest.in" "conftest.in" >"conftest.tmp"
4987
mv "conftest.tmp" "conftest.in"
4988
cp "conftest.in" "conftest.nl"
4989
$as_echo 'FGREP' >> "conftest.nl"
4990
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4991
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4992
as_fn_arith $ac_count + 1 && ac_count=$as_val
4993
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4994
# Best one so far, save it but keep looking for a better one
4995
ac_cv_path_FGREP="$ac_path_FGREP"
4996
ac_path_FGREP_max=$ac_count
4998
# 10*(2^10) chars as input seems more than enough
4999
test $ac_count -gt 10 && break
5001
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5004
$ac_path_FGREP_found && break 3
5009
if test -z "$ac_cv_path_FGREP"; then
5010
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5013
ac_cv_path_FGREP=$FGREP
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5019
$as_echo "$ac_cv_path_FGREP" >&6; }
5020
FGREP="$ac_cv_path_FGREP"
5023
test -z "$GREP" && GREP=grep
5043
# Check whether --with-gnu-ld was given.
5044
if test "${with_gnu_ld+set}" = set; then :
5045
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5051
if test "$GCC" = yes; then
5052
# Check if gcc -print-prog-name=ld gives a path.
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5054
$as_echo_n "checking for ld used by $CC... " >&6; }
5057
# gcc leaves a trailing carriage return which upsets mingw
5058
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5060
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5063
# Accept absolute paths.
5065
re_direlt='/[^/][^/]*/\.\./'
5066
# Canonicalize the pathname of ld
5067
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5068
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5069
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5071
test -z "$LD" && LD="$ac_prog"
5074
# If it fails, then pretend we aren't using GCC.
5078
# If it is relative, then search for the first ld in PATH.
5082
elif test "$with_gnu_ld" = yes; then
5083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5084
$as_echo_n "checking for GNU ld... " >&6; }
5086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5087
$as_echo_n "checking for non-GNU ld... " >&6; }
5089
if test "${lt_cv_path_LD+set}" = set; then :
5090
$as_echo_n "(cached) " >&6
5092
if test -z "$LD"; then
5093
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5094
for ac_dir in $PATH; do
5096
test -z "$ac_dir" && ac_dir=.
5097
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5098
lt_cv_path_LD="$ac_dir/$ac_prog"
5099
# Check to see if the program is GNU ld. I'd rather use --version,
5100
# but apparently some variants of GNU ld only accept -v.
5101
# Break only if it was the GNU/non-GNU ld that we prefer.
5102
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5103
*GNU* | *'with BFD'*)
5104
test "$with_gnu_ld" != no && break
5107
test "$with_gnu_ld" != yes && break
5114
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5119
if test -n "$LD"; then
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5121
$as_echo "$LD" >&6; }
5123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124
$as_echo "no" >&6; }
5126
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5128
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5129
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5130
$as_echo_n "(cached) " >&6
5132
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5133
case `$LD -v 2>&1 </dev/null` in
5134
*GNU* | *'with BFD'*)
5135
lt_cv_prog_gnu_ld=yes
5138
lt_cv_prog_gnu_ld=no
5142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5143
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5144
with_gnu_ld=$lt_cv_prog_gnu_ld
5154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5155
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5156
if test "${lt_cv_path_NM+set}" = set; then :
5157
$as_echo_n "(cached) " >&6
5159
if test -n "$NM"; then
5160
# Let the user override the test.
5163
lt_nm_to_check="${ac_tool_prefix}nm"
5164
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5165
lt_nm_to_check="$lt_nm_to_check nm"
5167
for lt_tmp_nm in $lt_nm_to_check; do
5168
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5169
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5171
test -z "$ac_dir" && ac_dir=.
5172
tmp_nm="$ac_dir/$lt_tmp_nm"
5173
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5174
# Check to see if the nm accepts a BSD-compat flag.
5175
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5176
# nm: unknown option "B" ignored
5177
# Tru64's nm complains that /dev/null is an invalid object file
5178
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5179
*/dev/null* | *'Invalid file or object type'*)
5180
lt_cv_path_NM="$tmp_nm -B"
5184
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5186
lt_cv_path_NM="$tmp_nm -p"
5190
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5191
continue # so that we can try to find one that supports BSD flags
5200
: ${lt_cv_path_NM=no}
5203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5204
$as_echo "$lt_cv_path_NM" >&6; }
5205
if test "$lt_cv_path_NM" != "no"; then
5208
# Didn't find any BSD compatible name lister, look for dumpbin.
5209
if test -n "$ac_tool_prefix"; then
5210
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5212
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5213
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215
$as_echo_n "checking for $ac_word... " >&6; }
5216
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5217
$as_echo_n "(cached) " >&6
5219
if test -n "$DUMPBIN"; then
5220
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226
test -z "$as_dir" && as_dir=.
5227
for ac_exec_ext in '' $ac_executable_extensions; do
5228
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5230
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239
DUMPBIN=$ac_cv_prog_DUMPBIN
5240
if test -n "$DUMPBIN"; then
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5242
$as_echo "$DUMPBIN" >&6; }
5244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245
$as_echo "no" >&6; }
5249
test -n "$DUMPBIN" && break
5252
if test -z "$DUMPBIN"; then
5253
ac_ct_DUMPBIN=$DUMPBIN
5254
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5256
# Extract the first word of "$ac_prog", so it can be a program name with args.
5257
set dummy $ac_prog; ac_word=$2
5258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259
$as_echo_n "checking for $ac_word... " >&6; }
5260
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5261
$as_echo_n "(cached) " >&6
5263
if test -n "$ac_ct_DUMPBIN"; then
5264
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270
test -z "$as_dir" && as_dir=.
5271
for ac_exec_ext in '' $ac_executable_extensions; do
5272
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5274
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5284
if test -n "$ac_ct_DUMPBIN"; then
5285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5286
$as_echo "$ac_ct_DUMPBIN" >&6; }
5288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289
$as_echo "no" >&6; }
5293
test -n "$ac_ct_DUMPBIN" && break
5296
if test "x$ac_ct_DUMPBIN" = x; then
5299
case $cross_compiling:$ac_tool_warned in
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303
ac_tool_warned=yes ;;
5305
DUMPBIN=$ac_ct_DUMPBIN
5310
if test "$DUMPBIN" != ":"; then
5314
test -z "$NM" && NM=nm
5321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5322
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5323
if test "${lt_cv_nm_interface+set}" = set; then :
5324
$as_echo_n "(cached) " >&6
5326
lt_cv_nm_interface="BSD nm"
5327
echo "int some_variable = 0;" > conftest.$ac_ext
5328
(eval echo "\"\$as_me:5328: $ac_compile\"" >&5)
5329
(eval "$ac_compile" 2>conftest.err)
5330
cat conftest.err >&5
5331
(eval echo "\"\$as_me:5331: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5332
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5333
cat conftest.err >&5
5334
(eval echo "\"\$as_me:5334: output\"" >&5)
5335
cat conftest.out >&5
5336
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5337
lt_cv_nm_interface="MS dumpbin"
5341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5342
$as_echo "$lt_cv_nm_interface" >&6; }
5344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5345
$as_echo_n "checking whether ln -s works... " >&6; }
5347
if test "$LN_S" = "ln -s"; then
5348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349
$as_echo "yes" >&6; }
5351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5352
$as_echo "no, using $LN_S" >&6; }
5355
# find the maximum length of command line arguments
5356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5357
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5358
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5359
$as_echo_n "(cached) " >&6
5366
# On DJGPP, this test can blow up pretty badly due to problems in libc
5367
# (any single argument exceeding 2000 bytes causes a buffer overrun
5368
# during glob expansion). Even if it were fixed, the result of this
5369
# check would be larger than it should be.
5370
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5374
# Under GNU Hurd, this test is not required because there is
5375
# no limit to the length of command line arguments.
5376
# Libtool will interpret -1 as no limit whatsoever
5377
lt_cv_sys_max_cmd_len=-1;
5380
cygwin* | mingw* | cegcc*)
5381
# On Win9x/ME, this test blows up -- it succeeds, but takes
5382
# about 5 minutes as the teststring grows exponentially.
5383
# Worse, since 9x/ME are not pre-emptively multitasking,
5384
# you end up with a "frozen" computer, even though with patience
5385
# the test eventually succeeds (with a max line length of 256k).
5386
# Instead, let's just punt: use the minimum linelength reported by
5387
# all of the supported platforms: 8192 (on NT/2K/XP).
5388
lt_cv_sys_max_cmd_len=8192;
5392
# On AmigaOS with pdksh, this test takes hours, literally.
5393
# So we just punt and use a minimum line length of 8192.
5394
lt_cv_sys_max_cmd_len=8192;
5397
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5398
# This has been around since 386BSD, at least. Likely further.
5399
if test -x /sbin/sysctl; then
5400
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5401
elif test -x /usr/sbin/sysctl; then
5402
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5404
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5406
# And add a safety zone
5407
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5408
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5412
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5413
lt_cv_sys_max_cmd_len=196608
5417
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5418
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5419
# nice to cause kernel panics so lets avoid the loop below.
5420
# First set a reasonable default.
5421
lt_cv_sys_max_cmd_len=16384
5423
if test -x /sbin/sysconfig; then
5424
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5425
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5430
lt_cv_sys_max_cmd_len=102400
5432
sysv5* | sco5v6* | sysv4.2uw2*)
5433
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5434
if test -n "$kargmax"; then
5435
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5437
lt_cv_sys_max_cmd_len=32768
5441
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5442
if test -n "$lt_cv_sys_max_cmd_len"; then
5443
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5444
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5446
# Make teststring a little bigger before we do anything with it.
5447
# a 1K string should be a reasonable start.
5448
for i in 1 2 3 4 5 6 7 8 ; do
5449
teststring=$teststring$teststring
5451
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5452
# If test is not a shell built-in, we'll probably end up computing a
5453
# maximum length that is only half of the actual maximum length, but
5455
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5456
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5457
test $i != 17 # 1/2 MB should be enough
5460
teststring=$teststring$teststring
5462
# Only check the string length outside the loop.
5463
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5465
# Add a significant safety factor because C++ compilers can tack on
5466
# massive amounts of additional arguments before passing them to the
5467
# linker. It appears as though 1/2 is a usable value.
5468
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5475
if test -n $lt_cv_sys_max_cmd_len ; then
5476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5477
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5480
$as_echo "none" >&6; }
5482
max_cmd_len=$lt_cv_sys_max_cmd_len
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5494
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5495
# Try some XSI features
5498
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5500
&& eval 'test $(( 1 + 1 )) -eq 2 \
5501
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5504
$as_echo "$xsi_shell" >&6; }
5507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5508
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5510
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5512
&& lt_shell_append=yes
5513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5514
$as_echo "$lt_shell_append" >&6; }
5517
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5527
# test EBCDIC or ASCII
5528
case `echo X|tr X '\101'` in
5529
A) # ASCII based system
5530
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5531
lt_SP2NL='tr \040 \012'
5532
lt_NL2SP='tr \015\012 \040\040'
5534
*) # EBCDIC based system
5535
lt_SP2NL='tr \100 \n'
5536
lt_NL2SP='tr \r\n \100\100'
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5549
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5550
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5551
$as_echo_n "(cached) " >&6
5553
lt_cv_ld_reload_flag='-r'
5555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5556
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5557
reload_flag=$lt_cv_ld_reload_flag
5558
case $reload_flag in
5560
*) reload_flag=" $reload_flag" ;;
5562
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5565
if test "$GCC" = yes; then
5566
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5568
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5581
if test -n "$ac_tool_prefix"; then
5582
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5583
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585
$as_echo_n "checking for $ac_word... " >&6; }
5586
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5587
$as_echo_n "(cached) " >&6
5589
if test -n "$OBJDUMP"; then
5590
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596
test -z "$as_dir" && as_dir=.
5597
for ac_exec_ext in '' $ac_executable_extensions; do
5598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609
OBJDUMP=$ac_cv_prog_OBJDUMP
5610
if test -n "$OBJDUMP"; then
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5612
$as_echo "$OBJDUMP" >&6; }
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615
$as_echo "no" >&6; }
5620
if test -z "$ac_cv_prog_OBJDUMP"; then
5621
ac_ct_OBJDUMP=$OBJDUMP
5622
# Extract the first word of "objdump", so it can be a program name with args.
5623
set dummy objdump; ac_word=$2
5624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625
$as_echo_n "checking for $ac_word... " >&6; }
5626
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5627
$as_echo_n "(cached) " >&6
5629
if test -n "$ac_ct_OBJDUMP"; then
5630
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636
test -z "$as_dir" && as_dir=.
5637
for ac_exec_ext in '' $ac_executable_extensions; do
5638
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5640
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5650
if test -n "$ac_ct_OBJDUMP"; then
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5652
$as_echo "$ac_ct_OBJDUMP" >&6; }
5654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655
$as_echo "no" >&6; }
5658
if test "x$ac_ct_OBJDUMP" = x; then
5661
case $cross_compiling:$ac_tool_warned in
5663
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665
ac_tool_warned=yes ;;
5667
OBJDUMP=$ac_ct_OBJDUMP
5670
OBJDUMP="$ac_cv_prog_OBJDUMP"
5673
test -z "$OBJDUMP" && OBJDUMP=objdump
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5684
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5685
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5686
$as_echo_n "(cached) " >&6
5688
lt_cv_file_magic_cmd='$MAGIC_CMD'
5689
lt_cv_file_magic_test_file=
5690
lt_cv_deplibs_check_method='unknown'
5691
# Need to set the preceding variable on all platforms that support
5692
# interlibrary dependencies.
5693
# 'none' -- dependencies not supported.
5694
# `unknown' -- same as none, but documents that we really don't know.
5695
# 'pass_all' -- all dependencies passed with no checks.
5696
# 'test_compile' -- check by making test program.
5697
# 'file_magic [[regex]]' -- check by looking for files in library path
5698
# which responds to the $file_magic_cmd with a given extended regex.
5699
# If you have `file' or equivalent on your system and you're not sure
5700
# whether `pass_all' will *always* work, you probably want this one.
5704
lt_cv_deplibs_check_method=pass_all
5708
lt_cv_deplibs_check_method=pass_all
5712
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5713
lt_cv_file_magic_cmd='/usr/bin/file -L'
5714
lt_cv_file_magic_test_file=/shlib/libc.so
5718
# func_win32_libid is a shell function defined in ltmain.sh
5719
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5720
lt_cv_file_magic_cmd='func_win32_libid'
5724
# Base MSYS/MinGW do not provide the 'file' command needed by
5725
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5726
# unless we find 'file', for example because we are cross-compiling.
5727
if ( file / ) >/dev/null 2>&1; then
5728
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5729
lt_cv_file_magic_cmd='func_win32_libid'
5731
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5732
lt_cv_file_magic_cmd='$OBJDUMP -f'
5737
# use the weaker test based on 'objdump'. See mingw*.
5738
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5739
lt_cv_file_magic_cmd='$OBJDUMP -f'
5742
darwin* | rhapsody*)
5743
lt_cv_deplibs_check_method=pass_all
5746
freebsd* | dragonfly*)
5747
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5750
# Not sure whether the presence of OpenBSD here was a mistake.
5751
# Let's accept both of them until this is cleared up.
5752
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5753
lt_cv_file_magic_cmd=/usr/bin/file
5754
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5758
lt_cv_deplibs_check_method=pass_all
5763
lt_cv_deplibs_check_method=pass_all
5766
hpux10.20* | hpux11*)
5767
lt_cv_file_magic_cmd=/usr/bin/file
5770
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5771
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5774
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]'
5775
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5778
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5779
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5785
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5786
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5789
irix5* | irix6* | nonstopux*)
5791
*-32|*"-32 ") libmagic=32-bit;;
5792
*-n32|*"-n32 ") libmagic=N32;;
5793
*-64|*"-64 ") libmagic=64-bit;;
5794
*) libmagic=never-match;;
5796
lt_cv_deplibs_check_method=pass_all
5799
# This must be Linux ELF.
5800
linux* | k*bsd*-gnu)
5801
lt_cv_deplibs_check_method=pass_all
5804
netbsd* | netbsdelf*-gnu)
5805
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5806
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5808
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5813
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5814
lt_cv_file_magic_cmd=/usr/bin/file
5815
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5819
lt_cv_deplibs_check_method=pass_all
5823
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5824
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5826
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5830
osf3* | osf4* | osf5*)
5831
lt_cv_deplibs_check_method=pass_all
5835
lt_cv_deplibs_check_method=pass_all
5839
lt_cv_deplibs_check_method=pass_all
5842
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5843
lt_cv_deplibs_check_method=pass_all
5847
case $host_vendor in
5849
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]'
5850
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5853
lt_cv_deplibs_check_method=pass_all
5856
lt_cv_file_magic_cmd='/bin/file'
5857
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5860
lt_cv_file_magic_cmd='/bin/file'
5861
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5862
lt_cv_file_magic_test_file=/lib/libc.so
5865
lt_cv_deplibs_check_method=pass_all
5868
lt_cv_deplibs_check_method=pass_all
5874
lt_cv_deplibs_check_method=pass_all
5879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5880
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5881
file_magic_cmd=$lt_cv_file_magic_cmd
5882
deplibs_check_method=$lt_cv_deplibs_check_method
5883
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5896
if test -n "$ac_tool_prefix"; then
5897
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5898
set dummy ${ac_tool_prefix}ar; ac_word=$2
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900
$as_echo_n "checking for $ac_word... " >&6; }
5901
if test "${ac_cv_prog_AR+set}" = set; then :
5902
$as_echo_n "(cached) " >&6
5904
if test -n "$AR"; then
5905
ac_cv_prog_AR="$AR" # Let the user override the test.
5907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911
test -z "$as_dir" && as_dir=.
5912
for ac_exec_ext in '' $ac_executable_extensions; do
5913
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914
ac_cv_prog_AR="${ac_tool_prefix}ar"
5915
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925
if test -n "$AR"; then
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5927
$as_echo "$AR" >&6; }
5929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930
$as_echo "no" >&6; }
5935
if test -z "$ac_cv_prog_AR"; then
5937
# Extract the first word of "ar", so it can be a program name with args.
5938
set dummy ar; ac_word=$2
5939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940
$as_echo_n "checking for $ac_word... " >&6; }
5941
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5942
$as_echo_n "(cached) " >&6
5944
if test -n "$ac_ct_AR"; then
5945
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951
test -z "$as_dir" && as_dir=.
5952
for ac_exec_ext in '' $ac_executable_extensions; do
5953
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954
ac_cv_prog_ac_ct_AR="ar"
5955
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5965
if test -n "$ac_ct_AR"; then
5966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5967
$as_echo "$ac_ct_AR" >&6; }
5969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970
$as_echo "no" >&6; }
5973
if test "x$ac_ct_AR" = x; then
5976
case $cross_compiling:$ac_tool_warned in
5978
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980
ac_tool_warned=yes ;;
5988
test -z "$AR" && AR=ar
5989
test -z "$AR_FLAGS" && AR_FLAGS=cru
6001
if test -n "$ac_tool_prefix"; then
6002
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003
set dummy ${ac_tool_prefix}strip; ac_word=$2
6004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005
$as_echo_n "checking for $ac_word... " >&6; }
6006
if test "${ac_cv_prog_STRIP+set}" = set; then :
6007
$as_echo_n "(cached) " >&6
6009
if test -n "$STRIP"; then
6010
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016
test -z "$as_dir" && as_dir=.
6017
for ac_exec_ext in '' $ac_executable_extensions; do
6018
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029
STRIP=$ac_cv_prog_STRIP
6030
if test -n "$STRIP"; then
6031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6032
$as_echo "$STRIP" >&6; }
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035
$as_echo "no" >&6; }
6040
if test -z "$ac_cv_prog_STRIP"; then
6042
# Extract the first word of "strip", so it can be a program name with args.
6043
set dummy strip; ac_word=$2
6044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045
$as_echo_n "checking for $ac_word... " >&6; }
6046
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6047
$as_echo_n "(cached) " >&6
6049
if test -n "$ac_ct_STRIP"; then
6050
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056
test -z "$as_dir" && as_dir=.
6057
for ac_exec_ext in '' $ac_executable_extensions; do
6058
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059
ac_cv_prog_ac_ct_STRIP="strip"
6060
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6070
if test -n "$ac_ct_STRIP"; then
6071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6072
$as_echo "$ac_ct_STRIP" >&6; }
6074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075
$as_echo "no" >&6; }
6078
if test "x$ac_ct_STRIP" = x; then
6081
case $cross_compiling:$ac_tool_warned in
6083
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085
ac_tool_warned=yes ;;
6090
STRIP="$ac_cv_prog_STRIP"
6093
test -z "$STRIP" && STRIP=:
6100
if test -n "$ac_tool_prefix"; then
6101
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6102
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104
$as_echo_n "checking for $ac_word... " >&6; }
6105
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6106
$as_echo_n "(cached) " >&6
6108
if test -n "$RANLIB"; then
6109
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115
test -z "$as_dir" && as_dir=.
6116
for ac_exec_ext in '' $ac_executable_extensions; do
6117
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6119
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128
RANLIB=$ac_cv_prog_RANLIB
6129
if test -n "$RANLIB"; then
6130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6131
$as_echo "$RANLIB" >&6; }
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134
$as_echo "no" >&6; }
6139
if test -z "$ac_cv_prog_RANLIB"; then
6140
ac_ct_RANLIB=$RANLIB
6141
# Extract the first word of "ranlib", so it can be a program name with args.
6142
set dummy ranlib; ac_word=$2
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144
$as_echo_n "checking for $ac_word... " >&6; }
6145
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6146
$as_echo_n "(cached) " >&6
6148
if test -n "$ac_ct_RANLIB"; then
6149
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155
test -z "$as_dir" && as_dir=.
6156
for ac_exec_ext in '' $ac_executable_extensions; do
6157
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158
ac_cv_prog_ac_ct_RANLIB="ranlib"
6159
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6169
if test -n "$ac_ct_RANLIB"; then
6170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6171
$as_echo "$ac_ct_RANLIB" >&6; }
6173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174
$as_echo "no" >&6; }
6177
if test "x$ac_ct_RANLIB" = x; then
6180
case $cross_compiling:$ac_tool_warned in
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184
ac_tool_warned=yes ;;
6186
RANLIB=$ac_ct_RANLIB
6189
RANLIB="$ac_cv_prog_RANLIB"
6192
test -z "$RANLIB" && RANLIB=:
6199
# Determine commands to create old-style static archives.
6200
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6201
old_postinstall_cmds='chmod 644 $oldlib'
6202
old_postuninstall_cmds=
6204
if test -n "$RANLIB"; then
6207
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6210
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6213
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6249
# If no C compiler was specified, use CC.
6252
# If no C compiler flags were specified, use CFLAGS.
6253
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6255
# Allow CC to be a program name with arguments.
6259
# Check for command to grab the raw symbol name followed by C symbol from nm.
6260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6261
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6262
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6263
$as_echo_n "(cached) " >&6
6266
# These are sane defaults that work on at least a few old systems.
6267
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6269
# Character class describing NM global symbol codes.
6270
symcode='[BCDEGRST]'
6272
# Regexp to match symbols that can be accessed directly from C.
6273
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6275
# Define system-specific variables.
6280
cygwin* | mingw* | pw32* | cegcc*)
6281
symcode='[ABCDGISTW]'
6284
if test "$host_cpu" = ia64; then
6285
symcode='[ABCDEGRST]'
6289
symcode='[BCDEGRST]'
6292
symcode='[BCDEGQRST]'
6303
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6311
# If we're using GNU nm, then use its standard symbol codes.
6312
case `$NM -V 2>&1` in
6313
*GNU* | *'with BFD'*)
6314
symcode='[ABCDGIRSTW]' ;;
6317
# Transform an extracted symbol line into a proper C declaration.
6318
# Some systems (esp. on ia64) link data and code symbols differently,
6319
# so use this general approach.
6320
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6322
# Transform an extracted symbol line into symbol name and symbol address
6323
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6324
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6326
# Handle CRLF in mingw tool chain
6330
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334
# Try without a prefix underscore, then with it.
6335
for ac_symprfx in "" "_"; do
6337
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6338
symxfrm="\\1 $ac_symprfx\\2 \\2"
6340
# Write the raw and C identifiers.
6341
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342
# Fake it for dumpbin and say T for any non-static function
6343
# and D for any global variable.
6344
# Also find C++ and __fastcall symbols from MSVC++,
6345
# which start with @ or ?.
6346
lt_cv_sys_global_symbol_pipe="$AWK '"\
6347
" {last_section=section; section=\$ 3};"\
6348
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6349
" \$ 0!~/External *\|/{next};"\
6350
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6351
" {if(hide[section]) next};"\
6352
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6353
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6354
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6355
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6356
" ' prfx=^$ac_symprfx"
6358
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6361
# Check to see that the pipe works correctly.
6365
cat > conftest.$ac_ext <<_LT_EOF
6370
void nm_test_func(void);
6371
void nm_test_func(void){}
6375
int main(){nm_test_var='a';nm_test_func();return(0);}
6378
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379
(eval $ac_compile) 2>&5
6381
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382
test $ac_status = 0; }; then
6383
# Now try to grab the symbols.
6385
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6386
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6388
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389
test $ac_status = 0; } && test -s "$nlist"; then
6390
# Try sorting and uniquifying the output.
6391
if sort "$nlist" | uniq > "$nlist"T; then
6392
mv -f "$nlist"T "$nlist"
6397
# Make sure that we snagged all the symbols we need.
6398
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6399
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6400
cat <<_LT_EOF > conftest.$ac_ext
6406
# Now generate the symbol file.
6407
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6409
cat <<_LT_EOF >> conftest.$ac_ext
6411
/* The mapping between symbol names and symbols. */
6416
lt__PROGRAM__LTX_preloaded_symbols[] =
6418
{ "@PROGRAM@", (void *) 0 },
6420
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6421
cat <<\_LT_EOF >> conftest.$ac_ext
6425
/* This works around a problem in FreeBSD linker */
6426
#ifdef FREEBSD_WORKAROUND
6427
static const void *lt_preloaded_setup() {
6428
return lt__PROGRAM__LTX_preloaded_symbols;
6436
# Now try linking the two files.
6437
mv conftest.$ac_objext conftstm.$ac_objext
6438
lt_save_LIBS="$LIBS"
6439
lt_save_CFLAGS="$CFLAGS"
6440
LIBS="conftstm.$ac_objext"
6441
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6442
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6443
(eval $ac_link) 2>&5
6445
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449
LIBS="$lt_save_LIBS"
6450
CFLAGS="$lt_save_CFLAGS"
6452
echo "cannot find nm_test_func in $nlist" >&5
6455
echo "cannot find nm_test_var in $nlist" >&5
6458
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461
echo "$progname: failed program was:" >&5
6462
cat conftest.$ac_ext >&5
6464
rm -rf conftest* conftst*
6466
# Do not use the global_symbol_pipe unless it works.
6467
if test "$pipe_works" = yes; then
6470
lt_cv_sys_global_symbol_pipe=
6476
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6477
lt_cv_sys_global_symbol_to_cdecl=
6479
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6481
$as_echo "failed" >&6; }
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6484
$as_echo "ok" >&6; }
6508
# Check whether --enable-libtool-lock was given.
6509
if test "${enable_libtool_lock+set}" = set; then :
6510
enableval=$enable_libtool_lock;
6513
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6515
# Some flags need to be propagated to the compiler or linker for good
6519
# Find out which ABI we are using.
6520
echo 'int i;' > conftest.$ac_ext
6521
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522
(eval $ac_compile) 2>&5
6524
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525
test $ac_status = 0; }; then
6526
case `/usr/bin/file conftest.$ac_objext` in
6538
# Find out which ABI we are using.
6539
echo '#line 6539 "configure"' > conftest.$ac_ext
6540
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541
(eval $ac_compile) 2>&5
6543
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544
test $ac_status = 0; }; then
6545
if test "$lt_cv_prog_gnu_ld" = yes; then
6546
case `/usr/bin/file conftest.$ac_objext` in
6548
LD="${LD-ld} -melf32bsmip"
6551
LD="${LD-ld} -melf32bmipn32"
6554
LD="${LD-ld} -melf64bmip"
6558
case `/usr/bin/file conftest.$ac_objext` in
6574
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6575
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6576
# Find out which ABI we are using.
6577
echo 'int i;' > conftest.$ac_ext
6578
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579
(eval $ac_compile) 2>&5
6581
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582
test $ac_status = 0; }; then
6583
case `/usr/bin/file conftest.o` in
6586
x86_64-*kfreebsd*-gnu)
6587
LD="${LD-ld} -m elf_i386_fbsd"
6590
LD="${LD-ld} -m elf_i386"
6592
ppc64-*linux*|powerpc64-*linux*)
6593
LD="${LD-ld} -m elf32ppclinux"
6596
LD="${LD-ld} -m elf_s390"
6599
LD="${LD-ld} -m elf32_sparc"
6605
x86_64-*kfreebsd*-gnu)
6606
LD="${LD-ld} -m elf_x86_64_fbsd"
6609
LD="${LD-ld} -m elf_x86_64"
6611
ppc*-*linux*|powerpc*-*linux*)
6612
LD="${LD-ld} -m elf64ppc"
6614
s390*-*linux*|s390*-*tpf*)
6615
LD="${LD-ld} -m elf64_s390"
6618
LD="${LD-ld} -m elf64_sparc"
6628
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6629
SAVE_CFLAGS="$CFLAGS"
6630
CFLAGS="$CFLAGS -belf"
6631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6632
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6633
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6634
$as_echo_n "(cached) " >&6
6637
ac_cpp='$CPP $CPPFLAGS'
6638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643
/* end confdefs.h. */
6653
if ac_fn_c_try_link "$LINENO"; then :
6654
lt_cv_cc_needs_belf=yes
6656
lt_cv_cc_needs_belf=no
6658
rm -f core conftest.err conftest.$ac_objext \
6659
conftest$ac_exeext conftest.$ac_ext
6661
ac_cpp='$CPP $CPPFLAGS'
6662
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6668
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6669
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6670
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6671
CFLAGS="$SAVE_CFLAGS"
6675
# Find out which ABI we are using.
6676
echo 'int i;' > conftest.$ac_ext
6677
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678
(eval $ac_compile) 2>&5
6680
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681
test $ac_status = 0; }; then
6682
case `/usr/bin/file conftest.o` in
6684
case $lt_cv_prog_gnu_ld in
6685
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6687
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6699
need_locks="$enable_libtool_lock"
6703
rhapsody* | darwin*)
6704
if test -n "$ac_tool_prefix"; then
6705
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6706
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708
$as_echo_n "checking for $ac_word... " >&6; }
6709
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6710
$as_echo_n "(cached) " >&6
6712
if test -n "$DSYMUTIL"; then
6713
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719
test -z "$as_dir" && as_dir=.
6720
for ac_exec_ext in '' $ac_executable_extensions; do
6721
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6723
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6733
if test -n "$DSYMUTIL"; then
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6735
$as_echo "$DSYMUTIL" >&6; }
6737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738
$as_echo "no" >&6; }
6743
if test -z "$ac_cv_prog_DSYMUTIL"; then
6744
ac_ct_DSYMUTIL=$DSYMUTIL
6745
# Extract the first word of "dsymutil", so it can be a program name with args.
6746
set dummy dsymutil; ac_word=$2
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748
$as_echo_n "checking for $ac_word... " >&6; }
6749
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6750
$as_echo_n "(cached) " >&6
6752
if test -n "$ac_ct_DSYMUTIL"; then
6753
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759
test -z "$as_dir" && as_dir=.
6760
for ac_exec_ext in '' $ac_executable_extensions; do
6761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6763
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6773
if test -n "$ac_ct_DSYMUTIL"; then
6774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6775
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778
$as_echo "no" >&6; }
6781
if test "x$ac_ct_DSYMUTIL" = x; then
6784
case $cross_compiling:$ac_tool_warned in
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788
ac_tool_warned=yes ;;
6790
DSYMUTIL=$ac_ct_DSYMUTIL
6793
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6796
if test -n "$ac_tool_prefix"; then
6797
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6798
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800
$as_echo_n "checking for $ac_word... " >&6; }
6801
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6802
$as_echo_n "(cached) " >&6
6804
if test -n "$NMEDIT"; then
6805
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811
test -z "$as_dir" && as_dir=.
6812
for ac_exec_ext in '' $ac_executable_extensions; do
6813
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6815
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824
NMEDIT=$ac_cv_prog_NMEDIT
6825
if test -n "$NMEDIT"; then
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6827
$as_echo "$NMEDIT" >&6; }
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830
$as_echo "no" >&6; }
6835
if test -z "$ac_cv_prog_NMEDIT"; then
6836
ac_ct_NMEDIT=$NMEDIT
6837
# Extract the first word of "nmedit", so it can be a program name with args.
6838
set dummy nmedit; ac_word=$2
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840
$as_echo_n "checking for $ac_word... " >&6; }
6841
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6842
$as_echo_n "(cached) " >&6
6844
if test -n "$ac_ct_NMEDIT"; then
6845
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
test -z "$as_dir" && as_dir=.
6852
for ac_exec_ext in '' $ac_executable_extensions; do
6853
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6855
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6865
if test -n "$ac_ct_NMEDIT"; then
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6867
$as_echo "$ac_ct_NMEDIT" >&6; }
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870
$as_echo "no" >&6; }
6873
if test "x$ac_ct_NMEDIT" = x; then
6876
case $cross_compiling:$ac_tool_warned in
6878
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880
ac_tool_warned=yes ;;
6882
NMEDIT=$ac_ct_NMEDIT
6885
NMEDIT="$ac_cv_prog_NMEDIT"
6888
if test -n "$ac_tool_prefix"; then
6889
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6890
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6891
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892
$as_echo_n "checking for $ac_word... " >&6; }
6893
if test "${ac_cv_prog_LIPO+set}" = set; then :
6894
$as_echo_n "(cached) " >&6
6896
if test -n "$LIPO"; then
6897
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903
test -z "$as_dir" && as_dir=.
6904
for ac_exec_ext in '' $ac_executable_extensions; do
6905
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6907
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916
LIPO=$ac_cv_prog_LIPO
6917
if test -n "$LIPO"; then
6918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6919
$as_echo "$LIPO" >&6; }
6921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922
$as_echo "no" >&6; }
6927
if test -z "$ac_cv_prog_LIPO"; then
6929
# Extract the first word of "lipo", so it can be a program name with args.
6930
set dummy lipo; ac_word=$2
6931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932
$as_echo_n "checking for $ac_word... " >&6; }
6933
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6934
$as_echo_n "(cached) " >&6
6936
if test -n "$ac_ct_LIPO"; then
6937
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
test -z "$as_dir" && as_dir=.
6944
for ac_exec_ext in '' $ac_executable_extensions; do
6945
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946
ac_cv_prog_ac_ct_LIPO="lipo"
6947
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6957
if test -n "$ac_ct_LIPO"; then
6958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6959
$as_echo "$ac_ct_LIPO" >&6; }
6961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962
$as_echo "no" >&6; }
6965
if test "x$ac_ct_LIPO" = x; then
6968
case $cross_compiling:$ac_tool_warned in
6970
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972
ac_tool_warned=yes ;;
6977
LIPO="$ac_cv_prog_LIPO"
6980
if test -n "$ac_tool_prefix"; then
6981
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6982
set dummy ${ac_tool_prefix}otool; ac_word=$2
6983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984
$as_echo_n "checking for $ac_word... " >&6; }
6985
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6986
$as_echo_n "(cached) " >&6
6988
if test -n "$OTOOL"; then
6989
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995
test -z "$as_dir" && as_dir=.
6996
for ac_exec_ext in '' $ac_executable_extensions; do
6997
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6999
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008
OTOOL=$ac_cv_prog_OTOOL
7009
if test -n "$OTOOL"; then
7010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7011
$as_echo "$OTOOL" >&6; }
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014
$as_echo "no" >&6; }
7019
if test -z "$ac_cv_prog_OTOOL"; then
7021
# Extract the first word of "otool", so it can be a program name with args.
7022
set dummy otool; ac_word=$2
7023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024
$as_echo_n "checking for $ac_word... " >&6; }
7025
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7026
$as_echo_n "(cached) " >&6
7028
if test -n "$ac_ct_OTOOL"; then
7029
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035
test -z "$as_dir" && as_dir=.
7036
for ac_exec_ext in '' $ac_executable_extensions; do
7037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038
ac_cv_prog_ac_ct_OTOOL="otool"
7039
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7049
if test -n "$ac_ct_OTOOL"; then
7050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7051
$as_echo "$ac_ct_OTOOL" >&6; }
7053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054
$as_echo "no" >&6; }
7057
if test "x$ac_ct_OTOOL" = x; then
7060
case $cross_compiling:$ac_tool_warned in
7062
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064
ac_tool_warned=yes ;;
7069
OTOOL="$ac_cv_prog_OTOOL"
7072
if test -n "$ac_tool_prefix"; then
7073
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7074
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076
$as_echo_n "checking for $ac_word... " >&6; }
7077
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7078
$as_echo_n "(cached) " >&6
7080
if test -n "$OTOOL64"; then
7081
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087
test -z "$as_dir" && as_dir=.
7088
for ac_exec_ext in '' $ac_executable_extensions; do
7089
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7091
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100
OTOOL64=$ac_cv_prog_OTOOL64
7101
if test -n "$OTOOL64"; then
7102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7103
$as_echo "$OTOOL64" >&6; }
7105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106
$as_echo "no" >&6; }
7111
if test -z "$ac_cv_prog_OTOOL64"; then
7112
ac_ct_OTOOL64=$OTOOL64
7113
# Extract the first word of "otool64", so it can be a program name with args.
7114
set dummy otool64; ac_word=$2
7115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116
$as_echo_n "checking for $ac_word... " >&6; }
7117
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7118
$as_echo_n "(cached) " >&6
7120
if test -n "$ac_ct_OTOOL64"; then
7121
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127
test -z "$as_dir" && as_dir=.
7128
for ac_exec_ext in '' $ac_executable_extensions; do
7129
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130
ac_cv_prog_ac_ct_OTOOL64="otool64"
7131
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7141
if test -n "$ac_ct_OTOOL64"; then
7142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7143
$as_echo "$ac_ct_OTOOL64" >&6; }
7145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146
$as_echo "no" >&6; }
7149
if test "x$ac_ct_OTOOL64" = x; then
7152
case $cross_compiling:$ac_tool_warned in
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156
ac_tool_warned=yes ;;
7158
OTOOL64=$ac_ct_OTOOL64
7161
OTOOL64="$ac_cv_prog_OTOOL64"
7190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7191
$as_echo_n "checking for -single_module linker flag... " >&6; }
7192
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7193
$as_echo_n "(cached) " >&6
7195
lt_cv_apple_cc_single_mod=no
7196
if test -z "${LT_MULTI_MODULE}"; then
7197
# By default we will add the -single_module flag. You can override
7198
# by either setting the environment variable LT_MULTI_MODULE
7199
# non-empty at configure time, or by adding -multi_module to the
7201
rm -rf libconftest.dylib*
7202
echo "int foo(void){return 1;}" > conftest.c
7203
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7204
-dynamiclib -Wl,-single_module conftest.c" >&5
7205
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7206
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7208
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7209
lt_cv_apple_cc_single_mod=yes
7211
cat conftest.err >&5
7213
rm -rf libconftest.dylib*
7217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7218
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7220
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7221
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7222
$as_echo_n "(cached) " >&6
7224
lt_cv_ld_exported_symbols_list=no
7225
save_LDFLAGS=$LDFLAGS
7226
echo "_main" > conftest.sym
7227
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229
/* end confdefs.h. */
7239
if ac_fn_c_try_link "$LINENO"; then :
7240
lt_cv_ld_exported_symbols_list=yes
7242
lt_cv_ld_exported_symbols_list=no
7244
rm -f core conftest.err conftest.$ac_objext \
7245
conftest$ac_exeext conftest.$ac_ext
7246
LDFLAGS="$save_LDFLAGS"
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7250
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7252
rhapsody* | darwin1.[012])
7253
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7255
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7256
darwin*) # darwin 5.x on
7257
# if running on 10.5 or later, the deployment target defaults
7258
# to the OS version, if on x86, and 10.4, the deployment
7259
# target defaults to 10.4. Don't you love it?
7260
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7261
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7262
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7264
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7266
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7270
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7271
_lt_dar_single_mod='$single_module'
7273
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7274
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7276
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7278
if test "$DSYMUTIL" != ":"; then
7279
_lt_dsymutil='~$DSYMUTIL $lib || :'
7287
ac_cpp='$CPP $CPPFLAGS'
7288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7292
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7293
# On Suns, sometimes $CPP names a directory.
7294
if test -n "$CPP" && test -d "$CPP"; then
7297
if test -z "$CPP"; then
7298
if test "${ac_cv_prog_CPP+set}" = set; then :
7299
$as_echo_n "(cached) " >&6
7301
# Double quotes because CPP needs to be expanded
7302
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7305
for ac_c_preproc_warn_flag in '' yes
7307
# Use a header file that comes with gcc, so configuring glibc
7308
# with a fresh cross-compiler works.
7309
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7310
# <limits.h> exists even on freestanding compilers.
7311
# On the NeXT, cc -E runs the code through the compiler's parser,
7312
# not just through cpp. "Syntax error" is here to catch this case.
7313
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314
/* end confdefs.h. */
7316
# include <limits.h>
7318
# include <assert.h>
7322
if ac_fn_c_try_cpp "$LINENO"; then :
7325
# Broken: fails on valid input.
7328
rm -f conftest.err conftest.$ac_ext
7330
# OK, works on sane cases. Now check whether nonexistent headers
7331
# can be detected and how.
7332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333
/* end confdefs.h. */
7334
#include <ac_nonexistent.h>
7336
if ac_fn_c_try_cpp "$LINENO"; then :
7337
# Broken: success on invalid input.
7340
# Passes both tests.
7344
rm -f conftest.err conftest.$ac_ext
7347
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7348
rm -f conftest.err conftest.$ac_ext
7349
if $ac_preproc_ok; then :
7361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7362
$as_echo "$CPP" >&6; }
7364
for ac_c_preproc_warn_flag in '' yes
7366
# Use a header file that comes with gcc, so configuring glibc
7367
# with a fresh cross-compiler works.
7368
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7369
# <limits.h> exists even on freestanding compilers.
7370
# On the NeXT, cc -E runs the code through the compiler's parser,
7371
# not just through cpp. "Syntax error" is here to catch this case.
7372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373
/* end confdefs.h. */
7375
# include <limits.h>
7377
# include <assert.h>
7381
if ac_fn_c_try_cpp "$LINENO"; then :
7384
# Broken: fails on valid input.
7387
rm -f conftest.err conftest.$ac_ext
7389
# OK, works on sane cases. Now check whether nonexistent headers
7390
# can be detected and how.
7391
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392
/* end confdefs.h. */
7393
#include <ac_nonexistent.h>
7395
if ac_fn_c_try_cpp "$LINENO"; then :
7396
# Broken: success on invalid input.
7399
# Passes both tests.
7403
rm -f conftest.err conftest.$ac_ext
7406
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7407
rm -f conftest.err conftest.$ac_ext
7408
if $ac_preproc_ok; then :
7411
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7412
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7413
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7414
See \`config.log' for more details." "$LINENO" 5; }
7418
ac_cpp='$CPP $CPPFLAGS'
7419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7425
$as_echo_n "checking for ANSI C header files... " >&6; }
7426
if test "${ac_cv_header_stdc+set}" = set; then :
7427
$as_echo_n "(cached) " >&6
7429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430
/* end confdefs.h. */
7444
if ac_fn_c_try_compile "$LINENO"; then :
7445
ac_cv_header_stdc=yes
7447
ac_cv_header_stdc=no
7449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451
if test $ac_cv_header_stdc = yes; then
7452
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454
/* end confdefs.h. */
7458
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459
$EGREP "memchr" >/dev/null 2>&1; then :
7462
ac_cv_header_stdc=no
7468
if test $ac_cv_header_stdc = yes; then
7469
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7470
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471
/* end confdefs.h. */
7475
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7476
$EGREP "free" >/dev/null 2>&1; then :
7479
ac_cv_header_stdc=no
7485
if test $ac_cv_header_stdc = yes; then
7486
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7487
if test "$cross_compiling" = yes; then :
7490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491
/* end confdefs.h. */
7494
#if ((' ' & 0x0FF) == 0x020)
7495
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7496
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7498
# define ISLOWER(c) \
7499
(('a' <= (c) && (c) <= 'i') \
7500
|| ('j' <= (c) && (c) <= 'r') \
7501
|| ('s' <= (c) && (c) <= 'z'))
7502
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7505
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7510
for (i = 0; i < 256; i++)
7511
if (XOR (islower (i), ISLOWER (i))
7512
|| toupper (i) != TOUPPER (i))
7517
if ac_fn_c_try_run "$LINENO"; then :
7520
ac_cv_header_stdc=no
7522
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7523
conftest.$ac_objext conftest.beam conftest.$ac_ext
7528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7529
$as_echo "$ac_cv_header_stdc" >&6; }
7530
if test $ac_cv_header_stdc = yes; then
7532
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7536
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7537
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7538
inttypes.h stdint.h unistd.h
7540
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7541
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7543
eval as_val=\$$as_ac_Header
7544
if test "x$as_val" = x""yes; then :
7545
cat >>confdefs.h <<_ACEOF
7546
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554
for ac_header in dlfcn.h
7556
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7558
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7559
cat >>confdefs.h <<_ACEOF
7560
#define HAVE_DLFCN_H 1
7579
# Check whether --enable-shared was given.
7580
if test "${enable_shared+set}" = set; then :
7581
enableval=$enable_shared; p=${PACKAGE-default}
7583
yes) enable_shared=yes ;;
7584
no) enable_shared=no ;;
7587
# Look at the argument we got. We use all the common list separators.
7588
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7589
for pkg in $enableval; do
7591
if test "X$pkg" = "X$p"; then
7610
# Check whether --enable-static was given.
7611
if test "${enable_static+set}" = set; then :
7612
enableval=$enable_static; p=${PACKAGE-default}
7614
yes) enable_static=yes ;;
7615
no) enable_static=no ;;
7618
# Look at the argument we got. We use all the common list separators.
7619
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7620
for pkg in $enableval; do
7622
if test "X$pkg" = "X$p"; then
7642
# Check whether --with-pic was given.
7643
if test "${with_pic+set}" = set; then :
7644
withval=$with_pic; pic_mode="$withval"
7650
test -z "$pic_mode" && pic_mode=default
7658
# Check whether --enable-fast-install was given.
7659
if test "${enable_fast_install+set}" = set; then :
7660
enableval=$enable_fast_install; p=${PACKAGE-default}
7662
yes) enable_fast_install=yes ;;
7663
no) enable_fast_install=no ;;
7665
enable_fast_install=no
7666
# Look at the argument we got. We use all the common list separators.
7667
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668
for pkg in $enableval; do
7670
if test "X$pkg" = "X$p"; then
7671
enable_fast_install=yes
7678
enable_fast_install=yes
7691
# This can be used to rebuild libtool when needed
7692
LIBTOOL_DEPS="$ltmain"
7694
# Always use our own libtool.
7695
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7721
test -z "$LN_S" && LN_S="ln -s"
7736
if test -n "${ZSH_VERSION+set}" ; then
7737
setopt NO_GLOB_SUBST
7740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7741
$as_echo_n "checking for objdir... " >&6; }
7742
if test "${lt_cv_objdir+set}" = set; then :
7743
$as_echo_n "(cached) " >&6
7745
rm -f .libs 2>/dev/null
7746
mkdir .libs 2>/dev/null
7747
if test -d .libs; then
7750
# MS-DOS does not allow filenames that begin with a dot.
7753
rmdir .libs 2>/dev/null
7755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7756
$as_echo "$lt_cv_objdir" >&6; }
7757
objdir=$lt_cv_objdir
7763
cat >>confdefs.h <<_ACEOF
7764
#define LT_OBJDIR "$lt_cv_objdir/"
7785
# AIX sometimes has problems with the GCC collect2 program. For some
7786
# reason, if we set the COLLECT_NAMES environment variable, the problems
7787
# vanish in a puff of smoke.
7788
if test "X${COLLECT_NAMES+set}" != Xset; then
7790
export COLLECT_NAMES
7795
# Sed substitution that helps us do robust quoting. It backslashifies
7796
# metacharacters that are still active within double-quoted strings.
7797
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7799
# Same as above, but do not quote variable references.
7800
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7802
# Sed substitution to delay expansion of an escaped shell variable in a
7803
# double_quote_subst'ed string.
7804
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7806
# Sed substitution to delay expansion of an escaped single quote.
7807
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7809
# Sed substitution to avoid accidental globbing in evaled expressions
7810
no_glob_subst='s/\*/\\\*/g'
7814
can_build_shared=yes
7816
# All known linkers require a `.a' archive for static linking (except MSVC,
7817
# which needs '.lib').
7820
with_gnu_ld="$lt_cv_prog_gnu_ld"
7823
old_CFLAGS="$CFLAGS"
7825
# Set sane defaults for various variables
7826
test -z "$CC" && CC=cc
7827
test -z "$LTCC" && LTCC=$CC
7828
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7829
test -z "$LD" && LD=ld
7830
test -z "$ac_objext" && ac_objext=o
7832
for cc_temp in $compiler""; do
7834
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7835
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7840
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7843
# Only perform the check for file, if the check method requires it
7844
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7845
case $deplibs_check_method in
7847
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7849
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7850
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7851
$as_echo_n "(cached) " >&6
7855
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7858
lt_save_MAGIC_CMD="$MAGIC_CMD"
7859
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861
for ac_dir in $ac_dummy; do
7863
test -z "$ac_dir" && ac_dir=.
7864
if test -f $ac_dir/${ac_tool_prefix}file; then
7865
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7866
if test -n "$file_magic_test_file"; then
7867
case $deplibs_check_method in
7869
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872
$EGREP "$file_magic_regex" > /dev/null; then
7877
*** Warning: the command libtool uses to detect shared libraries,
7878
*** $file_magic_cmd, produces output that libtool cannot recognize.
7879
*** The result is that libtool may fail to recognize shared libraries
7880
*** as such. This will affect the creation of libtool libraries that
7881
*** depend on shared libraries, but programs linked with such libtool
7882
*** libraries will work regardless of this problem. Nevertheless, you
7883
*** may want to report the problem to your system manager and/or to
7884
*** bug-libtool@gnu.org
7894
MAGIC_CMD="$lt_save_MAGIC_CMD"
7899
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900
if test -n "$MAGIC_CMD"; then
7901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7902
$as_echo "$MAGIC_CMD" >&6; }
7904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905
$as_echo "no" >&6; }
7912
if test -z "$lt_cv_path_MAGIC_CMD"; then
7913
if test -n "$ac_tool_prefix"; then
7914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7915
$as_echo_n "checking for file... " >&6; }
7916
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7917
$as_echo_n "(cached) " >&6
7921
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7924
lt_save_MAGIC_CMD="$MAGIC_CMD"
7925
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7926
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7927
for ac_dir in $ac_dummy; do
7929
test -z "$ac_dir" && ac_dir=.
7930
if test -f $ac_dir/file; then
7931
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7932
if test -n "$file_magic_test_file"; then
7933
case $deplibs_check_method in
7935
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7936
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7938
$EGREP "$file_magic_regex" > /dev/null; then
7943
*** Warning: the command libtool uses to detect shared libraries,
7944
*** $file_magic_cmd, produces output that libtool cannot recognize.
7945
*** The result is that libtool may fail to recognize shared libraries
7946
*** as such. This will affect the creation of libtool libraries that
7947
*** depend on shared libraries, but programs linked with such libtool
7948
*** libraries will work regardless of this problem. Nevertheless, you
7949
*** may want to report the problem to your system manager and/or to
7950
*** bug-libtool@gnu.org
7960
MAGIC_CMD="$lt_save_MAGIC_CMD"
7965
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7966
if test -n "$MAGIC_CMD"; then
7967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7968
$as_echo "$MAGIC_CMD" >&6; }
7970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971
$as_echo "no" >&6; }
7984
# Use C for the default configuration in the libtool script
7988
ac_cpp='$CPP $CPPFLAGS'
7989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
# Source file extension for C test sources.
7997
# Object file extension for compiled C test sources.
8001
# Code to be used in simple compile tests
8002
lt_simple_compile_test_code="int some_variable = 0;"
8004
# Code to be used in simple link tests
8005
lt_simple_link_test_code='int main(){return(0);}'
8013
# If no C compiler was specified, use CC.
8016
# If no C compiler flags were specified, use CFLAGS.
8017
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8019
# Allow CC to be a program name with arguments.
8022
# Save the default compiler, since it gets overwritten when the other
8023
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8024
compiler_DEFAULT=$CC
8026
# save warnings/boilerplate of simple test code
8027
ac_outfile=conftest.$ac_objext
8028
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8029
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030
_lt_compiler_boilerplate=`cat conftest.err`
8033
ac_outfile=conftest.$ac_objext
8034
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8035
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036
_lt_linker_boilerplate=`cat conftest.err`
8040
if test -n "$compiler"; then
8042
lt_prog_compiler_no_builtin_flag=
8044
if test "$GCC" = yes; then
8045
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8048
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8049
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8050
$as_echo_n "(cached) " >&6
8052
lt_cv_prog_compiler_rtti_exceptions=no
8053
ac_outfile=conftest.$ac_objext
8054
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8055
lt_compiler_flag="-fno-rtti -fno-exceptions"
8056
# Insert the option either (1) after the last *FLAGS variable, or
8057
# (2) before a word containing "conftest.", or (3) at the end.
8058
# Note that $ac_compile itself does not contain backslashes and begins
8059
# with a dollar sign (not a hyphen), so the echo should work correctly.
8060
# The option is referenced via a variable to avoid confusing sed.
8061
lt_compile=`echo "$ac_compile" | $SED \
8062
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8063
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8064
-e 's:$: $lt_compiler_flag:'`
8065
(eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
8066
(eval "$lt_compile" 2>conftest.err)
8068
cat conftest.err >&5
8069
echo "$as_me:8069: \$? = $ac_status" >&5
8070
if (exit $ac_status) && test -s "$ac_outfile"; then
8071
# The compiler can only warn and ignore the option if not recognized
8072
# So say no if there are warnings other than the usual output.
8073
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8074
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8075
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8076
lt_cv_prog_compiler_rtti_exceptions=yes
8082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8083
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8085
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8086
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8098
lt_prog_compiler_wl=
8099
lt_prog_compiler_pic=
8100
lt_prog_compiler_static=
8102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8103
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8105
if test "$GCC" = yes; then
8106
lt_prog_compiler_wl='-Wl,'
8107
lt_prog_compiler_static='-static'
8111
# All AIX code is PIC.
8112
if test "$host_cpu" = ia64; then
8113
# AIX 5 now supports IA64 processor
8114
lt_prog_compiler_static='-Bstatic'
8121
# see comment about AmigaOS4 .so support
8122
lt_prog_compiler_pic='-fPIC'
8125
# FIXME: we need at least 68020 code to build shared libraries, but
8126
# adding the `-m68020' flag to GCC prevents building anything better,
8128
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8133
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8134
# PIC is the default for these OSes.
8137
mingw* | cygwin* | pw32* | os2* | cegcc*)
8138
# This hack is so that the source file can tell whether it is being
8139
# built for inclusion in a dll (and should export symbols for example).
8140
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8141
# (--disable-auto-import) libraries
8142
lt_prog_compiler_pic='-DDLL_EXPORT'
8145
darwin* | rhapsody*)
8146
# PIC is the default on this platform
8147
# Common symbols not allowed in MH_DYLIB files
8148
lt_prog_compiler_pic='-fno-common'
8152
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8153
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8154
# sets the default TLS model and affects inlining.
8160
lt_prog_compiler_pic='-fPIC'
8166
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8167
# Instead, we relocate shared libraries at runtime.
8171
# Just because we use GCC doesn't mean we suddenly get shared libraries
8172
# on systems that don't support them.
8173
lt_prog_compiler_can_build_shared=no
8178
# QNX uses GNU C++, but need to define -shared option too, otherwise
8180
lt_prog_compiler_pic='-fPIC -shared'
8184
if test -d /usr/nec; then
8185
lt_prog_compiler_pic=-Kconform_pic
8190
lt_prog_compiler_pic='-fPIC'
8194
# PORTME Check for flag to pass linker flags through the system compiler.
8197
lt_prog_compiler_wl='-Wl,'
8198
if test "$host_cpu" = ia64; then
8199
# AIX 5 now supports IA64 processor
8200
lt_prog_compiler_static='-Bstatic'
8202
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8206
mingw* | cygwin* | pw32* | os2* | cegcc*)
8207
# This hack is so that the source file can tell whether it is being
8208
# built for inclusion in a dll (and should export symbols for example).
8209
lt_prog_compiler_pic='-DDLL_EXPORT'
8212
hpux9* | hpux10* | hpux11*)
8213
lt_prog_compiler_wl='-Wl,'
8214
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8221
lt_prog_compiler_pic='+Z'
8224
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8225
lt_prog_compiler_static='${wl}-a ${wl}archive'
8228
irix5* | irix6* | nonstopux*)
8229
lt_prog_compiler_wl='-Wl,'
8230
# PIC (with -KPIC) is the default.
8231
lt_prog_compiler_static='-non_shared'
8234
linux* | k*bsd*-gnu)
8235
case $cc_basename in
8236
# old Intel for x86_64 which still supported -KPIC.
8238
lt_prog_compiler_wl='-Wl,'
8239
lt_prog_compiler_pic='-KPIC'
8240
lt_prog_compiler_static='-static'
8242
# icc used to be incompatible with GCC.
8243
# ICC 10 doesn't accept -KPIC any more.
8245
lt_prog_compiler_wl='-Wl,'
8246
lt_prog_compiler_pic='-fPIC'
8247
lt_prog_compiler_static='-static'
8249
# Lahey Fortran 8.1.
8251
lt_prog_compiler_wl='-Wl,'
8252
lt_prog_compiler_pic='--shared'
8253
lt_prog_compiler_static='--static'
8255
pgcc* | pgf77* | pgf90* | pgf95*)
8256
# Portland Group compilers (*not* the Pentium gcc compiler,
8257
# which looks to be a dead project)
8258
lt_prog_compiler_wl='-Wl,'
8259
lt_prog_compiler_pic='-fpic'
8260
lt_prog_compiler_static='-Bstatic'
8263
lt_prog_compiler_wl='-Wl,'
8264
# All Alpha code is PIC.
8265
lt_prog_compiler_static='-non_shared'
8268
# IBM XL C 8.0/Fortran 10.1 on PPC
8269
lt_prog_compiler_wl='-Wl,'
8270
lt_prog_compiler_pic='-qpic'
8271
lt_prog_compiler_static='-qstaticlink'
8274
case `$CC -V 2>&1 | sed 5q` in
8277
lt_prog_compiler_pic='-KPIC'
8278
lt_prog_compiler_static='-Bstatic'
8279
lt_prog_compiler_wl='-Wl,'
8282
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8283
lt_prog_compiler_pic='-KPIC'
8284
lt_prog_compiler_static='-Bstatic'
8285
lt_prog_compiler_wl=''
8293
lt_prog_compiler_pic='-KPIC'
8294
lt_prog_compiler_static='-Bstatic'
8298
# QNX uses GNU C++, but need to define -shared option too, otherwise
8300
lt_prog_compiler_pic='-fPIC -shared'
8303
osf3* | osf4* | osf5*)
8304
lt_prog_compiler_wl='-Wl,'
8305
# All OSF/1 code is PIC.
8306
lt_prog_compiler_static='-non_shared'
8310
lt_prog_compiler_static='-non_shared'
8314
lt_prog_compiler_pic='-KPIC'
8315
lt_prog_compiler_static='-Bstatic'
8316
case $cc_basename in
8318
lt_prog_compiler_wl='-Qoption ld ';;
8320
lt_prog_compiler_wl='-Wl,';;
8325
lt_prog_compiler_wl='-Qoption ld '
8326
lt_prog_compiler_pic='-PIC'
8327
lt_prog_compiler_static='-Bstatic'
8330
sysv4 | sysv4.2uw2* | sysv4.3*)
8331
lt_prog_compiler_wl='-Wl,'
8332
lt_prog_compiler_pic='-KPIC'
8333
lt_prog_compiler_static='-Bstatic'
8337
if test -d /usr/nec ;then
8338
lt_prog_compiler_pic='-Kconform_pic'
8339
lt_prog_compiler_static='-Bstatic'
8343
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8344
lt_prog_compiler_wl='-Wl,'
8345
lt_prog_compiler_pic='-KPIC'
8346
lt_prog_compiler_static='-Bstatic'
8350
lt_prog_compiler_wl='-Wl,'
8351
lt_prog_compiler_can_build_shared=no
8355
lt_prog_compiler_pic='-pic'
8356
lt_prog_compiler_static='-Bstatic'
8360
lt_prog_compiler_can_build_shared=no
8366
# For platforms which do not support PIC, -DPIC is meaningless:
8368
lt_prog_compiler_pic=
8371
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8375
$as_echo "$lt_prog_compiler_pic" >&6; }
8383
# Check to make sure the PIC flag actually works.
8385
if test -n "$lt_prog_compiler_pic"; then
8386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8387
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8388
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8389
$as_echo_n "(cached) " >&6
8391
lt_cv_prog_compiler_pic_works=no
8392
ac_outfile=conftest.$ac_objext
8393
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8394
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8395
# Insert the option either (1) after the last *FLAGS variable, or
8396
# (2) before a word containing "conftest.", or (3) at the end.
8397
# Note that $ac_compile itself does not contain backslashes and begins
8398
# with a dollar sign (not a hyphen), so the echo should work correctly.
8399
# The option is referenced via a variable to avoid confusing sed.
8400
lt_compile=`echo "$ac_compile" | $SED \
8401
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403
-e 's:$: $lt_compiler_flag:'`
8404
(eval echo "\"\$as_me:8404: $lt_compile\"" >&5)
8405
(eval "$lt_compile" 2>conftest.err)
8407
cat conftest.err >&5
8408
echo "$as_me:8408: \$? = $ac_status" >&5
8409
if (exit $ac_status) && test -s "$ac_outfile"; then
8410
# The compiler can only warn and ignore the option if not recognized
8411
# So say no if there are warnings other than the usual output.
8412
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8413
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8414
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8415
lt_cv_prog_compiler_pic_works=yes
8421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8422
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8424
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8425
case $lt_prog_compiler_pic in
8427
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8430
lt_prog_compiler_pic=
8431
lt_prog_compiler_can_build_shared=no
8442
# Check to make sure the static flag actually works.
8444
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8446
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8447
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8448
$as_echo_n "(cached) " >&6
8450
lt_cv_prog_compiler_static_works=no
8451
save_LDFLAGS="$LDFLAGS"
8452
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8453
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8454
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8455
# The linker can only warn and ignore the option if not recognized
8456
# So say no if there are warnings
8457
if test -s conftest.err; then
8458
# Append any errors to the config.log.
8459
cat conftest.err 1>&5
8460
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8461
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462
if diff conftest.exp conftest.er2 >/dev/null; then
8463
lt_cv_prog_compiler_static_works=yes
8466
lt_cv_prog_compiler_static_works=yes
8470
LDFLAGS="$save_LDFLAGS"
8473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8474
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8476
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8479
lt_prog_compiler_static=
8488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8489
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8490
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8491
$as_echo_n "(cached) " >&6
8493
lt_cv_prog_compiler_c_o=no
8494
$RM -r conftest 2>/dev/null
8498
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8500
lt_compiler_flag="-o out/conftest2.$ac_objext"
8501
# Insert the option either (1) after the last *FLAGS variable, or
8502
# (2) before a word containing "conftest.", or (3) at the end.
8503
# Note that $ac_compile itself does not contain backslashes and begins
8504
# with a dollar sign (not a hyphen), so the echo should work correctly.
8505
lt_compile=`echo "$ac_compile" | $SED \
8506
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508
-e 's:$: $lt_compiler_flag:'`
8509
(eval echo "\"\$as_me:8509: $lt_compile\"" >&5)
8510
(eval "$lt_compile" 2>out/conftest.err)
8512
cat out/conftest.err >&5
8513
echo "$as_me:8513: \$? = $ac_status" >&5
8514
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8516
# The compiler can only warn and ignore the option if not recognized
8517
# So say no if there are warnings
8518
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8519
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8520
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8521
lt_cv_prog_compiler_c_o=yes
8526
# SGI C++ compiler will create directory out/ii_files/ for
8527
# template instantiation
8528
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8529
$RM out/* && rmdir out
8535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8536
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8546
$as_echo_n "(cached) " >&6
8548
lt_cv_prog_compiler_c_o=no
8549
$RM -r conftest 2>/dev/null
8553
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8555
lt_compiler_flag="-o out/conftest2.$ac_objext"
8556
# Insert the option either (1) after the last *FLAGS variable, or
8557
# (2) before a word containing "conftest.", or (3) at the end.
8558
# Note that $ac_compile itself does not contain backslashes and begins
8559
# with a dollar sign (not a hyphen), so the echo should work correctly.
8560
lt_compile=`echo "$ac_compile" | $SED \
8561
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563
-e 's:$: $lt_compiler_flag:'`
8564
(eval echo "\"\$as_me:8564: $lt_compile\"" >&5)
8565
(eval "$lt_compile" 2>out/conftest.err)
8567
cat out/conftest.err >&5
8568
echo "$as_me:8568: \$? = $ac_status" >&5
8569
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8571
# The compiler can only warn and ignore the option if not recognized
8572
# So say no if there are warnings
8573
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8574
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576
lt_cv_prog_compiler_c_o=yes
8581
# SGI C++ compiler will create directory out/ii_files/ for
8582
# template instantiation
8583
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584
$RM out/* && rmdir out
8590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596
hard_links="nottested"
8597
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8598
# do not overwrite the value of need_locks provided by the user
8599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8600
$as_echo_n "checking if we can lock with hard links... " >&6; }
8603
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8605
ln conftest.a conftest.b 2>&5 || hard_links=no
8606
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8608
$as_echo "$hard_links" >&6; }
8609
if test "$hard_links" = no; then
8610
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8611
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8624
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8627
allow_undefined_flag=
8628
always_export_symbols=no
8630
archive_expsym_cmds=
8631
compiler_needs_object=no
8632
enable_shared_with_static_runtimes=no
8633
export_dynamic_flag_spec=
8634
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8635
hardcode_automatic=no
8637
hardcode_direct_absolute=no
8638
hardcode_libdir_flag_spec=
8639
hardcode_libdir_flag_spec_ld=
8640
hardcode_libdir_separator=
8642
hardcode_shlibpath_var=unsupported
8644
link_all_deplibs=unknown
8647
old_archive_from_new_cmds=
8648
old_archive_from_expsyms_cmds=
8649
thread_safe_flag_spec=
8650
whole_archive_flag_spec=
8651
# include_expsyms should be a list of space-separated symbols to be *always*
8652
# included in the symbol list
8654
# exclude_expsyms can be an extended regexp of symbols to exclude
8655
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8656
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8657
# as well as any symbol that contains `d'.
8658
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8659
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8660
# platforms (ab)use it in PIC code, but their linkers get confused if
8661
# the symbol is explicitly referenced. Since portable code cannot
8662
# rely on this symbol name, it's probably fine to never include it in
8663
# preloaded symbol tables.
8664
# Exclude shared library initialization/finalization symbols.
8665
extract_expsyms_cmds=
8668
cygwin* | mingw* | pw32* | cegcc*)
8669
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8670
# When not using gcc, we currently assume that we are using
8671
# Microsoft Visual C++.
8672
if test "$GCC" != yes; then
8677
# we just hope/assume this is gcc and not c89 (= MSVC++)
8683
linux* | k*bsd*-gnu)
8689
if test "$with_gnu_ld" = yes; then
8690
# If archive_cmds runs LD, not CC, wlarc should be empty
8693
# Set some defaults for GNU ld with shared library support. These
8694
# are reset later if shared libraries are not supported. Putting them
8695
# here allows them to be overridden if necessary.
8696
runpath_var=LD_RUN_PATH
8697
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698
export_dynamic_flag_spec='${wl}--export-dynamic'
8699
# ancient GNU ld didn't support --whole-archive et. al.
8700
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8701
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8703
whole_archive_flag_spec=
8705
supports_anon_versioning=no
8706
case `$LD -v 2>&1` in
8707
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8708
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8709
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8710
*\ 2.11.*) ;; # other 2.11 versions
8711
*) supports_anon_versioning=yes ;;
8714
# See if GNU ld supports shared libraries.
8717
# On AIX/PPC, the GNU linker is very broken
8718
if test "$host_cpu" != ia64; then
8722
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8723
*** to be unable to reliably create shared libraries on AIX.
8724
*** Therefore, libtool is disabling shared libraries support. If you
8725
*** really care for shared libraries, you may want to modify your PATH
8726
*** so that a non-GNU linker is found, and then restart.
8735
# see comment about AmigaOS4 .so support
8736
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737
archive_expsym_cmds=''
8740
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)'
8741
hardcode_libdir_flag_spec='-L$libdir'
8742
hardcode_minus_L=yes
8748
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749
allow_undefined_flag=unsupported
8750
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8751
# support --undefined. This deserves some investigation. FIXME
8752
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758
cygwin* | mingw* | pw32* | cegcc*)
8759
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8760
# as there is no search path for DLLs.
8761
hardcode_libdir_flag_spec='-L$libdir'
8762
allow_undefined_flag=unsupported
8763
always_export_symbols=no
8764
enable_shared_with_static_runtimes=yes
8765
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8767
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8768
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8769
# If the export-symbols file already is a .def file (1st line
8770
# is EXPORTS), use it as is; otherwise, prepend...
8771
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8772
cp $export_symbols $output_objdir/$soname.def;
8774
echo EXPORTS > $output_objdir/$soname.def;
8775
cat $export_symbols >> $output_objdir/$soname.def;
8777
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8785
hardcode_shlibpath_var=no
8786
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8787
export_dynamic_flag_spec='${wl}-E'
8788
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8789
# Instead, shared libraries are loaded at an image base (0x10000000 by
8790
# default) and relocated if they conflict, which is a slow very memory
8791
# consuming and fragmenting process. To avoid this, we pick a random,
8792
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8793
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8794
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8795
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'
8798
gnu* | linux* | tpf* | k*bsd*-gnu)
8800
if test "$host_os" = linux-dietlibc; then
8801
case $cc_basename in
8802
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8805
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8806
&& test "$tmp_diet" = no
8809
tmp_sharedflag='-shared'
8810
case $cc_basename,$host_cpu in
8811
pgcc*) # Portland Group C compiler
8812
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'
8813
tmp_addflag=' $pic_flag'
8815
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8816
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'
8817
tmp_addflag=' $pic_flag -Mnomain' ;;
8818
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8819
tmp_addflag=' -i_dynamic' ;;
8820
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8821
tmp_addflag=' -i_dynamic -nofor_main' ;;
8822
ifc* | ifort*) # Intel Fortran compiler
8823
tmp_addflag=' -nofor_main' ;;
8824
lf95*) # Lahey Fortran 8.1
8825
whole_archive_flag_spec=
8826
tmp_sharedflag='--shared' ;;
8827
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8828
tmp_sharedflag='-qmkshrobj'
8831
case `$CC -V 2>&1 | sed 5q` in
8832
*Sun\ C*) # Sun C 5.9
8833
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'
8834
compiler_needs_object=yes
8835
tmp_sharedflag='-G' ;;
8836
*Sun\ F*) # Sun Fortran 8.3
8837
tmp_sharedflag='-G' ;;
8839
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841
if test "x$supports_anon_versioning" = xyes; then
8842
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8843
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8844
echo "local: *; };" >> $output_objdir/$libname.ver~
8845
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8848
case $cc_basename in
8850
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8851
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8852
hardcode_libdir_flag_spec=
8853
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8854
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8855
if test "x$supports_anon_versioning" = xyes; then
8856
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8857
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858
echo "local: *; };" >> $output_objdir/$libname.ver~
8859
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8868
netbsd* | netbsdelf*-gnu)
8869
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8870
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8873
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8883
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8884
*** create shared libraries on Solaris systems. Therefore, libtool
8885
*** is disabling shared libraries support. We urge you to upgrade GNU
8886
*** binutils to release 2.9.1 or newer. Another option is to modify
8887
*** your PATH or compiler configuration so that the native linker is
8888
*** used, and then restart.
8891
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8900
case `$LD -v 2>&1` in
8901
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8905
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8906
*** reliably create shared libraries on SCO systems. Therefore, libtool
8907
*** is disabling shared libraries support. We urge you to upgrade GNU
8908
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8909
*** your PATH or compiler configuration so that the native linker is
8910
*** used, and then restart.
8915
# For security reasons, it is highly recommended that you always
8916
# use absolute paths for naming shared libraries, and exclude the
8917
# DT_RUNPATH tag from executables and libraries. But doing so
8918
# requires that you compile everything twice, which is a pain.
8919
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8931
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934
hardcode_shlibpath_var=no
8938
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8947
if test "$ld_shlibs" = no; then
8949
hardcode_libdir_flag_spec=
8950
export_dynamic_flag_spec=
8951
whole_archive_flag_spec=
8954
# PORTME fill in a description of your system's linker (not GNU ld)
8957
allow_undefined_flag=unsupported
8958
always_export_symbols=yes
8959
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'
8960
# Note: this linker hardcodes the directories in LIBPATH if there
8961
# are no directories specified by -L.
8962
hardcode_minus_L=yes
8963
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8964
# Neither direct hardcoding nor static linking is supported with a
8966
hardcode_direct=unsupported
8971
if test "$host_cpu" = ia64; then
8972
# On IA64, the linker does run time linking by default, so we don't
8973
# have to do anything special.
8974
aix_use_runtimelinking=no
8975
exp_sym_flag='-Bexport'
8978
# If we're using GNU nm, then we don't want the "-C" option.
8979
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8980
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8981
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'
8983
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'
8985
aix_use_runtimelinking=no
8987
# Test if we are trying to use run time linking or normal
8988
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8989
# need to do runtime linking.
8990
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8991
for ld_flag in $LDFLAGS; do
8992
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8993
aix_use_runtimelinking=yes
9000
exp_sym_flag='-bexport'
9001
no_entry_flag='-bnoentry'
9004
# When large executables or shared objects are built, AIX ld can
9005
# have problems creating the table of contents. If linking a library
9006
# or program results in "error TOC overflow" add -mminimal-toc to
9007
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9008
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9012
hardcode_direct_absolute=yes
9013
hardcode_libdir_separator=':'
9014
link_all_deplibs=yes
9015
file_list_spec='${wl}-f,'
9017
if test "$GCC" = yes; then
9018
case $host_os in aix4.[012]|aix4.[012].*)
9019
# We only want to do this on AIX 4.2 and lower, the check
9020
# below for broken collect2 doesn't work under 4.3+
9021
collect2name=`${CC} -print-prog-name=collect2`
9022
if test -f "$collect2name" &&
9023
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9025
# We have reworked collect2
9028
# We have old collect2
9029
hardcode_direct=unsupported
9030
# It fails to find uninstalled libraries when the uninstalled
9031
# path is not listed in the libpath. Setting hardcode_minus_L
9032
# to unsupported forces relinking
9033
hardcode_minus_L=yes
9034
hardcode_libdir_flag_spec='-L$libdir'
9035
hardcode_libdir_separator=
9039
shared_flag='-shared'
9040
if test "$aix_use_runtimelinking" = yes; then
9041
shared_flag="$shared_flag "'${wl}-G'
9046
if test "$host_cpu" = ia64; then
9047
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9048
# chokes on -Wl,-G. The following line is correct:
9051
if test "$aix_use_runtimelinking" = yes; then
9052
shared_flag='${wl}-G'
9054
shared_flag='${wl}-bM:SRE'
9059
export_dynamic_flag_spec='${wl}-bexpall'
9060
# It seems that -bexpall does not export symbols beginning with
9061
# underscore (_), so it is better to generate a list of symbols to export.
9062
always_export_symbols=yes
9063
if test "$aix_use_runtimelinking" = yes; then
9064
# Warning - without using the other runtime loading flags (-brtl),
9065
# -berok will link without error, but may produce a broken library.
9066
allow_undefined_flag='-berok'
9067
# Determine the default libpath from the value encoded in an
9069
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070
/* end confdefs.h. */
9080
if ac_fn_c_try_link "$LINENO"; then :
9082
lt_aix_libpath_sed='
9083
/Import File Strings/,/^$/ {
9089
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9090
# Check for a 64-bit object if we didn't find anything.
9091
if test -z "$aix_libpath"; then
9092
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095
rm -f core conftest.err conftest.$ac_objext \
9096
conftest$ac_exeext conftest.$ac_ext
9097
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9099
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100
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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9102
if test "$host_cpu" = ia64; then
9103
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9104
allow_undefined_flag="-z nodefs"
9105
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"
9107
# Determine the default libpath from the value encoded in an
9109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110
/* end confdefs.h. */
9120
if ac_fn_c_try_link "$LINENO"; then :
9122
lt_aix_libpath_sed='
9123
/Import File Strings/,/^$/ {
9129
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130
# Check for a 64-bit object if we didn't find anything.
9131
if test -z "$aix_libpath"; then
9132
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135
rm -f core conftest.err conftest.$ac_objext \
9136
conftest$ac_exeext conftest.$ac_ext
9137
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9139
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9140
# Warning - without using the other run time loading flags,
9141
# -berok will link without error, but may produce a broken library.
9142
no_undefined_flag=' ${wl}-bernotok'
9143
allow_undefined_flag=' ${wl}-berok'
9144
# Exported symbols can be pulled into shared objects from archives
9145
whole_archive_flag_spec='$convenience'
9146
archive_cmds_need_lc=yes
9147
# This is similar to how AIX traditionally builds its shared libraries.
9148
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'
9156
# see comment about AmigaOS4 .so support
9157
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158
archive_expsym_cmds=''
9161
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)'
9162
hardcode_libdir_flag_spec='-L$libdir'
9163
hardcode_minus_L=yes
9169
export_dynamic_flag_spec=-rdynamic
9172
cygwin* | mingw* | pw32* | cegcc*)
9173
# When not using gcc, we currently assume that we are using
9174
# Microsoft Visual C++.
9175
# hardcode_libdir_flag_spec is actually meaningless, as there is
9176
# no search path for DLLs.
9177
hardcode_libdir_flag_spec=' '
9178
allow_undefined_flag=unsupported
9179
# Tell ltmain to make .lib files, not .a files.
9181
# Tell ltmain to make .dll files, not .so files.
9183
# FIXME: Setting linknames here is a bad hack.
9184
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9185
# The linker will automatically build a .lib file if we build a DLL.
9186
old_archive_from_new_cmds='true'
9187
# FIXME: Should let the user specify the lib program.
9188
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9189
fix_srcfile_path='`cygpath -w "$srcfile"`'
9190
enable_shared_with_static_runtimes=yes
9193
darwin* | rhapsody*)
9196
archive_cmds_need_lc=no
9198
hardcode_automatic=yes
9199
hardcode_shlibpath_var=unsupported
9200
whole_archive_flag_spec=''
9201
link_all_deplibs=yes
9202
allow_undefined_flag="$_lt_dar_allow_undefined"
9203
case $cc_basename in
9204
ifort*) _lt_dar_can_shared=yes ;;
9205
*) _lt_dar_can_shared=$GCC ;;
9207
if test "$_lt_dar_can_shared" = "yes"; then
9208
output_verbose_link_cmd=echo
9209
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9210
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9211
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9212
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9221
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9222
hardcode_libdir_flag_spec='-L$libdir'
9223
hardcode_shlibpath_var=no
9230
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9231
# support. Future versions do this automatically, but an explicit c++rt0.o
9232
# does not break anything, and helps significantly (at the cost of a little
9235
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9236
hardcode_libdir_flag_spec='-R$libdir'
9238
hardcode_shlibpath_var=no
9241
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9243
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9245
hardcode_minus_L=yes
9246
hardcode_shlibpath_var=no
9249
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9250
freebsd* | dragonfly*)
9251
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9252
hardcode_libdir_flag_spec='-R$libdir'
9254
hardcode_shlibpath_var=no
9258
if test "$GCC" = yes; then
9259
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'
9261
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'
9263
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264
hardcode_libdir_separator=:
9267
# hardcode_minus_L: Not really in the search PATH,
9268
# but as the default location of the library.
9269
hardcode_minus_L=yes
9270
export_dynamic_flag_spec='${wl}-E'
9274
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9275
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9277
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9279
if test "$with_gnu_ld" = no; then
9280
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9281
hardcode_libdir_flag_spec_ld='+b $libdir'
9282
hardcode_libdir_separator=:
9284
hardcode_direct_absolute=yes
9285
export_dynamic_flag_spec='${wl}-E'
9286
# hardcode_minus_L: Not really in the search PATH,
9287
# but as the default location of the library.
9288
hardcode_minus_L=yes
9293
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9296
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9299
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9302
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9314
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9318
if test "$with_gnu_ld" = no; then
9319
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320
hardcode_libdir_separator=:
9325
hardcode_shlibpath_var=no
9329
hardcode_direct_absolute=yes
9330
export_dynamic_flag_spec='${wl}-E'
9332
# hardcode_minus_L: Not really in the search PATH,
9333
# but as the default location of the library.
9334
hardcode_minus_L=yes
9340
irix5* | irix6* | nonstopux*)
9341
if test "$GCC" = yes; then
9342
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9343
# Try to use the -exported_symbol ld option, if it does not
9344
# work, assume that -exports_file does not work either and
9345
# implicitly export all symbols.
9346
save_LDFLAGS="$LDFLAGS"
9347
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349
/* end confdefs.h. */
9352
if ac_fn_c_try_link "$LINENO"; then :
9353
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9356
rm -f core conftest.err conftest.$ac_objext \
9357
conftest$ac_exeext conftest.$ac_ext
9358
LDFLAGS="$save_LDFLAGS"
9360
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9361
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9363
archive_cmds_need_lc='no'
9364
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365
hardcode_libdir_separator=:
9367
link_all_deplibs=yes
9370
netbsd* | netbsdelf*-gnu)
9371
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9372
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9374
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9376
hardcode_libdir_flag_spec='-R$libdir'
9378
hardcode_shlibpath_var=no
9382
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385
hardcode_libdir_separator=:
9386
hardcode_shlibpath_var=no
9393
if test -f /usr/libexec/ld.so; then
9395
hardcode_shlibpath_var=no
9396
hardcode_direct_absolute=yes
9397
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9398
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9399
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9400
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401
export_dynamic_flag_spec='${wl}-E'
9404
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9405
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406
hardcode_libdir_flag_spec='-R$libdir'
9409
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9410
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420
hardcode_libdir_flag_spec='-L$libdir'
9421
hardcode_minus_L=yes
9422
allow_undefined_flag=unsupported
9423
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'
9424
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9428
if test "$GCC" = yes; then
9429
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9430
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9432
allow_undefined_flag=' -expect_unresolved \*'
9433
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9435
archive_cmds_need_lc='no'
9436
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437
hardcode_libdir_separator=:
9440
osf4* | osf5*) # as osf3* with the addition of -msym flag
9441
if test "$GCC" = yes; then
9442
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9444
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446
allow_undefined_flag=' -expect_unresolved \*'
9447
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9448
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9449
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9451
# Both c and cxx compiler support -rpath directly
9452
hardcode_libdir_flag_spec='-rpath $libdir'
9454
archive_cmds_need_lc='no'
9455
hardcode_libdir_separator=:
9459
no_undefined_flag=' -z defs'
9460
if test "$GCC" = yes; then
9462
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9463
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9464
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9466
case `$CC -V 2>&1` in
9469
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9471
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9475
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9476
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9481
hardcode_libdir_flag_spec='-R$libdir'
9482
hardcode_shlibpath_var=no
9484
solaris2.[0-5] | solaris2.[0-5].*) ;;
9486
# The compiler driver will combine and reorder linker options,
9487
# but understands `-z linker_flag'. GCC discards it without `$wl',
9488
# but is careful enough not to reorder.
9489
# Supported since Solaris 2.6 (maybe 2.5.1?)
9490
if test "$GCC" = yes; then
9491
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9493
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9497
link_all_deplibs=yes
9501
if test "x$host_vendor" = xsequent; then
9502
# Use $CC to link under sequent, because it throws in some extra .o
9503
# files that make .init and .fini sections work.
9504
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9506
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9508
hardcode_libdir_flag_spec='-L$libdir'
9510
hardcode_minus_L=yes
9511
hardcode_shlibpath_var=no
9515
case $host_vendor in
9517
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518
hardcode_direct=yes # is this really true???
9521
## LD is ld it makes a PLAMLIB
9522
## CC just makes a GrossModule.
9523
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9524
reload_cmds='$CC -r -o $output$reload_objs'
9528
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9532
runpath_var='LD_RUN_PATH'
9533
hardcode_shlibpath_var=no
9537
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538
hardcode_shlibpath_var=no
9539
export_dynamic_flag_spec='-Bexport'
9543
if test -d /usr/nec; then
9544
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545
hardcode_shlibpath_var=no
9546
runpath_var=LD_RUN_PATH
9547
hardcode_runpath_var=yes
9552
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9553
no_undefined_flag='${wl}-z,text'
9554
archive_cmds_need_lc=no
9555
hardcode_shlibpath_var=no
9556
runpath_var='LD_RUN_PATH'
9558
if test "$GCC" = yes; then
9559
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567
sysv5* | sco3.2v5* | sco5v6*)
9568
# Note: We can NOT use -z defs as we might desire, because we do not
9569
# link with -lc, and that would cause any symbols used from libc to
9570
# always be unresolved, which means just about no library would
9571
# ever link correctly. If we're not using GNU ld we use -z text
9572
# though, which does catch some bad symbols but isn't as heavy-handed
9574
no_undefined_flag='${wl}-z,text'
9575
allow_undefined_flag='${wl}-z,nodefs'
9576
archive_cmds_need_lc=no
9577
hardcode_shlibpath_var=no
9578
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9579
hardcode_libdir_separator=':'
9580
link_all_deplibs=yes
9581
export_dynamic_flag_spec='${wl}-Bexport'
9582
runpath_var='LD_RUN_PATH'
9584
if test "$GCC" = yes; then
9585
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595
hardcode_libdir_flag_spec='-L$libdir'
9596
hardcode_shlibpath_var=no
9604
if test x$host_vendor = xsni; then
9606
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9607
export_dynamic_flag_spec='${wl}-Blargedynsym'
9613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9614
$as_echo "$ld_shlibs" >&6; }
9615
test "$ld_shlibs" = no && can_build_shared=no
9617
with_gnu_ld=$with_gnu_ld
9634
# Do we need to explicitly link libc?
9636
case "x$archive_cmds_need_lc" in
9638
# Assume -lc should be added
9639
archive_cmds_need_lc=yes
9641
if test "$enable_shared" = yes && test "$GCC" = yes; then
9642
case $archive_cmds in
9644
# FIXME: we may have to deal with multi-command sequences.
9647
# Test whether the compiler implicitly links with -lc since on some
9648
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9649
# to ld, don't add -lc before -lgcc.
9650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9651
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9653
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9656
(eval $ac_compile) 2>&5
9658
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9659
test $ac_status = 0; } 2>conftest.err; then
9662
libobjs=conftest.$ac_objext
9664
wl=$lt_prog_compiler_wl
9665
pic_flag=$lt_prog_compiler_pic
9671
lt_save_allow_undefined_flag=$allow_undefined_flag
9672
allow_undefined_flag=
9673
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9674
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9676
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9677
test $ac_status = 0; }
9679
archive_cmds_need_lc=no
9681
archive_cmds_need_lc=yes
9683
allow_undefined_flag=$lt_save_allow_undefined_flag
9685
cat conftest.err 1>&5
9688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9689
$as_echo "$archive_cmds_need_lc" >&6; }
9852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9853
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9855
if test "$GCC" = yes; then
9857
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9858
*) lt_awk_arg="/^libraries:/" ;;
9860
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9861
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9862
# if the path contains ";" then we assume it to be the separator
9863
# otherwise default to the standard path separator (i.e. ":") - it is
9864
# assumed that no part of a normal pathname contains ";" but that should
9865
# okay in the real world where ";" in dirpaths is itself problematic.
9866
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9868
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9870
# Ok, now we have the path, separated by spaces, we can step through it
9871
# and add multilib dir if necessary.
9872
lt_tmp_lt_search_path_spec=
9873
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9874
for lt_sys_path in $lt_search_path_spec; do
9875
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9876
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9878
test -d "$lt_sys_path" && \
9879
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9882
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9883
BEGIN {RS=" "; FS="/|\n";} {
9886
for (lt_i = NF; lt_i > 0; lt_i--) {
9887
if ($lt_i != "" && $lt_i != ".") {
9888
if ($lt_i == "..") {
9891
if (lt_count == 0) {
9892
lt_foo="/" $lt_i lt_foo;
9899
if (lt_foo != "") { lt_freq[lt_foo]++; }
9900
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9902
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9904
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9907
libname_spec='lib$name'
9915
shlibpath_overrides_runpath=unknown
9917
dynamic_linker="$host_os ld.so"
9918
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9919
need_lib_prefix=unknown
9920
hardcode_into_libs=no
9922
# when you set need_version to no, make sure it does not cause -set_version
9923
# flags to be left without arguments
9924
need_version=unknown
9929
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9930
shlibpath_var=LIBPATH
9932
# AIX 3 has no versioning support, so we append a major version to the name.
9933
soname_spec='${libname}${release}${shared_ext}$major'
9940
hardcode_into_libs=yes
9941
if test "$host_cpu" = ia64; then
9942
# AIX 5 supports IA64
9943
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9944
shlibpath_var=LD_LIBRARY_PATH
9946
# With GCC up to 2.95.x, collect2 would create an import file
9947
# for dependence libraries. The import file would start with
9948
# the line `#! .'. This would cause the generated library to
9949
# depend on `.', always an invalid library. This was fixed in
9950
# development snapshots of GCC prior to 3.0.
9952
aix4 | aix4.[01] | aix4.[01].*)
9953
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9955
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9962
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9963
# soname into executable. Probably we can add versioning support to
9964
# collect2, so additional links can be useful in future.
9965
if test "$aix_use_runtimelinking" = yes; then
9966
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9967
# instead of lib<name>.a to let people know that these are not
9968
# typical AIX shared libraries.
9969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971
# We preserve .a as extension for shared libraries through AIX4.2
9972
# and later when we are not doing run time linking.
9973
library_names_spec='${libname}${release}.a $libname.a'
9974
soname_spec='${libname}${release}${shared_ext}$major'
9976
shlibpath_var=LIBPATH
9983
# Since July 2007 AmigaOS4 officially supports .so libraries.
9984
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988
library_names_spec='$libname.ixlibrary $libname.a'
9989
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9990
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'
9996
library_names_spec='${libname}${shared_ext}'
9997
dynamic_linker="$host_os ld.so"
9998
shlibpath_var=LIBRARY_PATH
10004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005
soname_spec='${libname}${release}${shared_ext}$major'
10006
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10007
shlibpath_var=LD_LIBRARY_PATH
10008
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10009
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10010
# the default ld.so.conf also contains /usr/contrib/lib and
10011
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10012
# libtool to hard-code these into programs
10015
cygwin* | mingw* | pw32* | cegcc*)
10016
version_type=windows
10021
case $GCC,$host_os in
10022
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10023
library_names_spec='$libname.dll.a'
10024
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10025
postinstall_cmds='base_file=`basename \${file}`~
10026
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10027
dldir=$destdir/`dirname \$dlpath`~
10028
test -d \$dldir || mkdir -p \$dldir~
10029
$install_prog $dir/$dlname \$dldir/$dlname~
10030
chmod a+x \$dldir/$dlname~
10031
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10032
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10034
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035
dlpath=$dir/\$dldll~
10037
shlibpath_overrides_runpath=yes
10041
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10042
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10046
# MinGW DLLs use traditional 'lib' prefix
10047
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10048
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10049
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10050
# It is most probably a Windows format PATH printed by
10051
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10052
# path with ; separators, and with drive letters. We can handle the
10053
# drive letters (cygwin fileutils understands them), so leave them,
10054
# especially as we might pass files found there to a mingw objdump,
10055
# which wouldn't understand a cygwinified path. Ahh.
10056
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10058
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10062
# pw32 DLLs use 'pw' prefix rather than 'lib'
10063
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10069
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10072
dynamic_linker='Win32 ld.exe'
10073
# FIXME: first we should search . and the directory the executable is in
10077
darwin* | rhapsody*)
10078
dynamic_linker="$host_os dyld"
10079
version_type=darwin
10082
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10083
soname_spec='${libname}${release}${major}$shared_ext'
10084
shlibpath_overrides_runpath=yes
10085
shlibpath_var=DYLD_LIBRARY_PATH
10086
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10088
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10089
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10097
soname_spec='${libname}${release}${shared_ext}$major'
10098
shlibpath_var=LD_LIBRARY_PATH
10105
freebsd* | dragonfly*)
10106
# DragonFly does not have aout. When/if they implement a new
10107
# versioning mechanism, adjust this.
10108
if test -x /usr/bin/objformat; then
10109
objformat=`/usr/bin/objformat`
10112
freebsd[123]*) objformat=aout ;;
10113
*) objformat=elf ;;
10116
version_type=freebsd-$objformat
10117
case $version_type in
10119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10124
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10128
shlibpath_var=LD_LIBRARY_PATH
10131
shlibpath_overrides_runpath=yes
10133
freebsd3.[01]* | freebsdelf3.[01]*)
10134
shlibpath_overrides_runpath=yes
10135
hardcode_into_libs=yes
10137
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10138
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10139
shlibpath_overrides_runpath=no
10140
hardcode_into_libs=yes
10142
*) # from 4.6 on, and DragonFly
10143
shlibpath_overrides_runpath=yes
10144
hardcode_into_libs=yes
10153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10154
soname_spec='${libname}${release}${shared_ext}$major'
10155
shlibpath_var=LD_LIBRARY_PATH
10156
hardcode_into_libs=yes
10159
hpux9* | hpux10* | hpux11*)
10160
# Give a soname corresponding to the major version so that dld.sl refuses to
10161
# link against other versions.
10168
hardcode_into_libs=yes
10169
dynamic_linker="$host_os dld.so"
10170
shlibpath_var=LD_LIBRARY_PATH
10171
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173
soname_spec='${libname}${release}${shared_ext}$major'
10174
if test "X$HPUX_IA64_MODE" = X32; then
10175
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10177
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10179
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183
hardcode_into_libs=yes
10184
dynamic_linker="$host_os dld.sl"
10185
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10186
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188
soname_spec='${libname}${release}${shared_ext}$major'
10189
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10190
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10194
dynamic_linker="$host_os dld.sl"
10195
shlibpath_var=SHLIB_PATH
10196
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198
soname_spec='${libname}${release}${shared_ext}$major'
10201
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10202
postinstall_cmds='chmod 555 $lib'
10209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10210
soname_spec='${libname}${release}${shared_ext}$major'
10211
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10212
shlibpath_var=LD_LIBRARY_PATH
10213
shlibpath_overrides_runpath=no
10214
hardcode_into_libs=yes
10217
irix5* | irix6* | nonstopux*)
10219
nonstopux*) version_type=nonstopux ;;
10221
if test "$lt_cv_prog_gnu_ld" = yes; then
10229
soname_spec='${libname}${release}${shared_ext}$major'
10230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10232
irix5* | nonstopux*)
10233
libsuff= shlibsuff=
10236
case $LD in # libtool.m4 will add one of these switches to LD
10237
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10238
libsuff= shlibsuff= libmagic=32-bit;;
10239
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10240
libsuff=32 shlibsuff=N32 libmagic=N32;;
10241
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10242
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10243
*) libsuff= shlibsuff= libmagic=never-match;;
10247
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10248
shlibpath_overrides_runpath=no
10249
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10250
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10251
hardcode_into_libs=yes
10254
# No shared lib support for Linux oldld, aout, or coff.
10255
linux*oldld* | linux*aout* | linux*coff*)
10259
# This must be Linux ELF.
10260
linux* | k*bsd*-gnu)
10264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265
soname_spec='${libname}${release}${shared_ext}$major'
10266
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10267
shlibpath_var=LD_LIBRARY_PATH
10268
shlibpath_overrides_runpath=no
10269
# Some binutils ld are patched to set DT_RUNPATH
10270
save_LDFLAGS=$LDFLAGS
10271
save_libdir=$libdir
10272
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10273
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275
/* end confdefs.h. */
10285
if ac_fn_c_try_link "$LINENO"; then :
10286
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10287
shlibpath_overrides_runpath=yes
10290
rm -f core conftest.err conftest.$ac_objext \
10291
conftest$ac_exeext conftest.$ac_ext
10292
LDFLAGS=$save_LDFLAGS
10293
libdir=$save_libdir
10295
# This implies no fast_install, which is unacceptable.
10296
# Some rework will be needed to allow for fast_install
10297
# before this can be enabled.
10298
hardcode_into_libs=yes
10300
# Append ld.so.conf contents to the search path
10301
if test -f /etc/ld.so.conf; then
10302
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' ' '`
10303
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10306
# We used to test for /lib/ld.so.1 and disable shared libraries on
10307
# powerpc, because MkLinux only supported shared libraries with the
10308
# GNU dynamic linker. Since this was broken with cross compilers,
10309
# most powerpc-linux boxes support dynamic linking these days and
10310
# people can always --disable-shared, the test was removed, and we
10311
# assume the GNU/Linux dynamic linker is in use.
10312
dynamic_linker='GNU/Linux ld.so'
10319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320
soname_spec='${libname}${release}${shared_ext}$major'
10321
shlibpath_var=LD_LIBRARY_PATH
10322
shlibpath_overrides_runpath=no
10323
hardcode_into_libs=yes
10324
dynamic_linker='NetBSD ld.elf_so'
10331
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10333
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10334
dynamic_linker='NetBSD (a.out) ld.so'
10336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10337
soname_spec='${libname}${release}${shared_ext}$major'
10338
dynamic_linker='NetBSD ld.elf_so'
10340
shlibpath_var=LD_LIBRARY_PATH
10341
shlibpath_overrides_runpath=yes
10342
hardcode_into_libs=yes
10347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348
shlibpath_var=LD_LIBRARY_PATH
10349
shlibpath_overrides_runpath=yes
10356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357
soname_spec='${libname}${release}${shared_ext}$major'
10358
shlibpath_var=LD_LIBRARY_PATH
10359
shlibpath_overrides_runpath=no
10360
hardcode_into_libs=yes
10361
dynamic_linker='ldqnx.so'
10366
sys_lib_dlsearch_path_spec="/usr/lib"
10368
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10370
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10371
*) need_version=no ;;
10373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10375
shlibpath_var=LD_LIBRARY_PATH
10376
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10378
openbsd2.[89] | openbsd2.[89].*)
10379
shlibpath_overrides_runpath=no
10382
shlibpath_overrides_runpath=yes
10386
shlibpath_overrides_runpath=yes
10391
libname_spec='$name'
10394
library_names_spec='$libname${shared_ext} $libname.a'
10395
dynamic_linker='OS/2 ld.exe'
10396
shlibpath_var=LIBPATH
10399
osf3* | osf4* | osf5*)
10403
soname_spec='${libname}${release}${shared_ext}$major'
10404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405
shlibpath_var=LD_LIBRARY_PATH
10406
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10407
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419
soname_spec='${libname}${release}${shared_ext}$major'
10420
shlibpath_var=LD_LIBRARY_PATH
10421
shlibpath_overrides_runpath=yes
10422
hardcode_into_libs=yes
10423
# ldd complains unless libraries are executable
10424
postinstall_cmds='chmod +x $lib'
10429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10431
shlibpath_var=LD_LIBRARY_PATH
10432
shlibpath_overrides_runpath=yes
10433
if test "$with_gnu_ld" = yes; then
10441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442
soname_spec='${libname}${release}${shared_ext}$major'
10443
shlibpath_var=LD_LIBRARY_PATH
10444
case $host_vendor in
10446
shlibpath_overrides_runpath=no
10448
runpath_var=LD_RUN_PATH
10456
shlibpath_overrides_runpath=no
10457
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10463
if test -d /usr/nec ;then
10465
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10466
soname_spec='$libname${shared_ext}.$major'
10467
shlibpath_var=LD_LIBRARY_PATH
10471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10472
version_type=freebsd-elf
10475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10476
soname_spec='${libname}${release}${shared_ext}$major'
10477
shlibpath_var=LD_LIBRARY_PATH
10478
shlibpath_overrides_runpath=yes
10479
hardcode_into_libs=yes
10480
if test "$with_gnu_ld" = yes; then
10481
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10483
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10486
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10490
sys_lib_dlsearch_path_spec='/usr/lib'
10494
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499
shlibpath_var=LD_LIBRARY_PATH
10500
shlibpath_overrides_runpath=no
10501
hardcode_into_libs=yes
10506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507
soname_spec='${libname}${release}${shared_ext}$major'
10508
shlibpath_var=LD_LIBRARY_PATH
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10516
$as_echo "$dynamic_linker" >&6; }
10517
test "$dynamic_linker" = no && can_build_shared=no
10519
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10520
if test "$GCC" = yes; then
10521
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10524
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10525
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10527
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10528
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10618
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10620
if test -n "$hardcode_libdir_flag_spec" ||
10621
test -n "$runpath_var" ||
10622
test "X$hardcode_automatic" = "Xyes" ; then
10624
# We can hardcode non-existent directories.
10625
if test "$hardcode_direct" != no &&
10626
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10627
# have to relink, otherwise we might link with an installed library
10628
# when we should be linking with a yet-to-be-installed one
10629
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10630
test "$hardcode_minus_L" != no; then
10631
# Linking always hardcodes the temporary library directory.
10632
hardcode_action=relink
10634
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10635
hardcode_action=immediate
10638
# We cannot hardcode anything, or else we can only hardcode existing
10640
hardcode_action=unsupported
10642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10643
$as_echo "$hardcode_action" >&6; }
10645
if test "$hardcode_action" = relink ||
10646
test "$inherit_rpath" = yes; then
10647
# Fast installation is not supported
10648
enable_fast_install=no
10649
elif test "$shlibpath_overrides_runpath" = yes ||
10650
test "$enable_shared" = no; then
10651
# Fast installation is not necessary
10652
enable_fast_install=needless
10660
if test "x$enable_dlopen" != xyes; then
10661
enable_dlopen=unknown
10662
enable_dlopen_self=unknown
10663
enable_dlopen_self_static=unknown
10670
lt_cv_dlopen="load_add_on"
10672
lt_cv_dlopen_self=yes
10675
mingw* | pw32* | cegcc*)
10676
lt_cv_dlopen="LoadLibrary"
10681
lt_cv_dlopen="dlopen"
10686
# if libdl is installed we need to link against it
10687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10688
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10689
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10690
$as_echo_n "(cached) " >&6
10692
ac_check_lib_save_LIBS=$LIBS
10694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695
/* end confdefs.h. */
10697
/* Override any GCC internal prototype to avoid an error.
10698
Use char because int might match the return type of a GCC
10699
builtin and then its argument prototype would still apply. */
10712
if ac_fn_c_try_link "$LINENO"; then :
10713
ac_cv_lib_dl_dlopen=yes
10715
ac_cv_lib_dl_dlopen=no
10717
rm -f core conftest.err conftest.$ac_objext \
10718
conftest$ac_exeext conftest.$ac_ext
10719
LIBS=$ac_check_lib_save_LIBS
10721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10722
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10723
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10724
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10727
lt_cv_dlopen="dyld"
10729
lt_cv_dlopen_self=yes
10736
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10737
if test "x$ac_cv_func_shl_load" = x""yes; then :
10738
lt_cv_dlopen="shl_load"
10740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10741
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10742
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10743
$as_echo_n "(cached) " >&6
10745
ac_check_lib_save_LIBS=$LIBS
10747
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748
/* end confdefs.h. */
10750
/* Override any GCC internal prototype to avoid an error.
10751
Use char because int might match the return type of a GCC
10752
builtin and then its argument prototype would still apply. */
10760
return shl_load ();
10765
if ac_fn_c_try_link "$LINENO"; then :
10766
ac_cv_lib_dld_shl_load=yes
10768
ac_cv_lib_dld_shl_load=no
10770
rm -f core conftest.err conftest.$ac_objext \
10771
conftest$ac_exeext conftest.$ac_ext
10772
LIBS=$ac_check_lib_save_LIBS
10774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10775
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10776
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10777
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10779
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10780
if test "x$ac_cv_func_dlopen" = x""yes; then :
10781
lt_cv_dlopen="dlopen"
10783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10784
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10785
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10786
$as_echo_n "(cached) " >&6
10788
ac_check_lib_save_LIBS=$LIBS
10790
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791
/* end confdefs.h. */
10793
/* Override any GCC internal prototype to avoid an error.
10794
Use char because int might match the return type of a GCC
10795
builtin and then its argument prototype would still apply. */
10808
if ac_fn_c_try_link "$LINENO"; then :
10809
ac_cv_lib_dl_dlopen=yes
10811
ac_cv_lib_dl_dlopen=no
10813
rm -f core conftest.err conftest.$ac_objext \
10814
conftest$ac_exeext conftest.$ac_ext
10815
LIBS=$ac_check_lib_save_LIBS
10817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10818
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10819
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10820
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10823
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10824
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10825
$as_echo_n "(cached) " >&6
10827
ac_check_lib_save_LIBS=$LIBS
10828
LIBS="-lsvld $LIBS"
10829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830
/* end confdefs.h. */
10832
/* Override any GCC internal prototype to avoid an error.
10833
Use char because int might match the return type of a GCC
10834
builtin and then its argument prototype would still apply. */
10847
if ac_fn_c_try_link "$LINENO"; then :
10848
ac_cv_lib_svld_dlopen=yes
10850
ac_cv_lib_svld_dlopen=no
10852
rm -f core conftest.err conftest.$ac_objext \
10853
conftest$ac_exeext conftest.$ac_ext
10854
LIBS=$ac_check_lib_save_LIBS
10856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10857
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10858
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10859
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10862
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10863
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10864
$as_echo_n "(cached) " >&6
10866
ac_check_lib_save_LIBS=$LIBS
10868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869
/* end confdefs.h. */
10871
/* Override any GCC internal prototype to avoid an error.
10872
Use char because int might match the return type of a GCC
10873
builtin and then its argument prototype would still apply. */
10881
return dld_link ();
10886
if ac_fn_c_try_link "$LINENO"; then :
10887
ac_cv_lib_dld_dld_link=yes
10889
ac_cv_lib_dld_dld_link=no
10891
rm -f core conftest.err conftest.$ac_objext \
10892
conftest$ac_exeext conftest.$ac_ext
10893
LIBS=$ac_check_lib_save_LIBS
10895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10896
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10897
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10898
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10919
if test "x$lt_cv_dlopen" != xno; then
10925
case $lt_cv_dlopen in
10927
save_CPPFLAGS="$CPPFLAGS"
10928
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10930
save_LDFLAGS="$LDFLAGS"
10931
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10934
LIBS="$lt_cv_dlopen_libs $LIBS"
10936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10937
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10938
if test "${lt_cv_dlopen_self+set}" = set; then :
10939
$as_echo_n "(cached) " >&6
10941
if test "$cross_compiling" = yes; then :
10942
lt_cv_dlopen_self=cross
10944
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945
lt_status=$lt_dlunknown
10946
cat > conftest.$ac_ext <<_LT_EOF
10947
#line 10947 "configure"
10948
#include "confdefs.h"
10957
# define LT_DLGLOBAL RTLD_GLOBAL
10960
# define LT_DLGLOBAL DL_GLOBAL
10962
# define LT_DLGLOBAL 0
10966
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967
find out it does not work in some platform. */
10968
#ifndef LT_DLLAZY_OR_NOW
10970
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10973
# define LT_DLLAZY_OR_NOW DL_LAZY
10976
# define LT_DLLAZY_OR_NOW RTLD_NOW
10979
# define LT_DLLAZY_OR_NOW DL_NOW
10981
# define LT_DLLAZY_OR_NOW 0
10988
void fnord() { int i=42;}
10991
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10992
int status = $lt_dlunknown;
10996
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10997
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10998
/* dlclose (self); */
11006
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11007
(eval $ac_link) 2>&5
11009
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11010
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11011
(./conftest; exit; ) >&5 2>/dev/null
11013
case x$lt_status in
11014
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11015
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11016
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11019
# compilation failed
11020
lt_cv_dlopen_self=no
11027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11028
$as_echo "$lt_cv_dlopen_self" >&6; }
11030
if test "x$lt_cv_dlopen_self" = xyes; then
11031
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11033
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11034
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11035
$as_echo_n "(cached) " >&6
11037
if test "$cross_compiling" = yes; then :
11038
lt_cv_dlopen_self_static=cross
11040
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041
lt_status=$lt_dlunknown
11042
cat > conftest.$ac_ext <<_LT_EOF
11043
#line 11043 "configure"
11044
#include "confdefs.h"
11053
# define LT_DLGLOBAL RTLD_GLOBAL
11056
# define LT_DLGLOBAL DL_GLOBAL
11058
# define LT_DLGLOBAL 0
11062
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063
find out it does not work in some platform. */
11064
#ifndef LT_DLLAZY_OR_NOW
11066
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11069
# define LT_DLLAZY_OR_NOW DL_LAZY
11072
# define LT_DLLAZY_OR_NOW RTLD_NOW
11075
# define LT_DLLAZY_OR_NOW DL_NOW
11077
# define LT_DLLAZY_OR_NOW 0
11084
void fnord() { int i=42;}
11087
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11088
int status = $lt_dlunknown;
11092
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11093
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11094
/* dlclose (self); */
11102
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11103
(eval $ac_link) 2>&5
11105
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11107
(./conftest; exit; ) >&5 2>/dev/null
11109
case x$lt_status in
11110
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11111
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11112
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11115
# compilation failed
11116
lt_cv_dlopen_self_static=no
11123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11124
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11127
CPPFLAGS="$save_CPPFLAGS"
11128
LDFLAGS="$save_LDFLAGS"
11133
case $lt_cv_dlopen_self in
11134
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11135
*) enable_dlopen_self=unknown ;;
11138
case $lt_cv_dlopen_self_static in
11139
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11140
*) enable_dlopen_self_static=unknown ;;
11162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11163
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11164
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11165
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11166
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168
$as_echo "yes" >&6; }
11170
# FIXME - insert some real tests, host_os isn't really good enough
11173
if test -n "$STRIP" ; then
11174
striplib="$STRIP -x"
11175
old_striplib="$STRIP -S"
11176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177
$as_echo "yes" >&6; }
11179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180
$as_echo "no" >&6; }
11184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185
$as_echo "no" >&6; }
11201
# Report which library types will actually be built
11202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11203
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11205
$as_echo "$can_build_shared" >&6; }
11207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11208
$as_echo_n "checking whether to build shared libraries... " >&6; }
11209
test "$can_build_shared" = "no" && enable_shared=no
11211
# On AIX, shared libraries and static libraries use the same namespace, and
11212
# are all built from PIC.
11215
test "$enable_shared" = yes && enable_static=no
11216
if test -n "$RANLIB"; then
11217
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11218
postinstall_cmds='$RANLIB $lib'
11223
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11224
test "$enable_shared" = yes && enable_static=no
11228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11229
$as_echo "$enable_shared" >&6; }
11231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11232
$as_echo_n "checking whether to build static libraries... " >&6; }
11233
# Make sure either enable_shared or enable_static is yes.
11234
test "$enable_shared" = yes || enable_static=yes
11235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11236
$as_echo "$enable_static" >&6; }
11243
ac_cpp='$CPP $CPPFLAGS'
11244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11262
ac_config_commands="$ac_config_commands libtool"
11267
# Only expand once:
11271
4473
# Disable optimization if we enable debug
11272
4474
# Check whether --enable-debug was given.