~ubuntu-branches/ubuntu/precise/judy/precise

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Bazaar Package Importer
  • Author(s): Troy Heber
  • Date: 2006-06-11 15:58:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060611155814-n3j1fvfd5eb5h1zs
Tags: 1.0.3-2

* Resolves #372525, remove .shlibs
* Policy update
* Updated FSF address in copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
 
281
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
282
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
284
 
285
285
if test -z "$ECHO"; then
286
286
if test "X${echo_test_string+set}" != Xset; then
287
287
# find a string as large as possible, as long as the shell can cope with it
288
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
292
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
293
    then
294
294
      break
1032
1032
  --enable-ccover         enable use of ccover code coverage tools
1033
1033
  --disable-dependency-tracking  speeds up one-time build
1034
1034
  --enable-dependency-tracking   do not reject slow dependency extractors
1035
 
 --enable-32-bit          Generate code for a 32-bit environment
1036
 
 --enable-64-bit          Generate code for a 64-bit environment
1037
1035
  --enable-shared@<:@=PKGS@:>@ 
1038
1036
                          build shared libraries @<:@default=yes@:>@
1039
1037
  --enable-static@<:@=PKGS@:>@ 
1983
1981
 
1984
1982
 
1985
1983
 
1986
 
VERSION_INFO="-version-info 1:1:0"
 
1984
VERSION_INFO="-version-info 1:3:0"
1987
1985
 
1988
1986
 
1989
1987
 
4783
4781
esac
4784
4782
 
4785
4783
 
4786
 
 
4787
 
# Check whether --enable-32-bit or --disable-32-bit was given.
4788
 
if test "${enable_32_bit+set}" = set; then
4789
 
  enableval="$enable_32_bit"
4790
 
  b32="$enableval"
4791
 
else
4792
 
  b32="no"
4793
 
fi; 
4794
 
if test x"$b32" != "xno"; then
 
4784
echo "$as_me:$LINENO: checking for void *" >&5
 
4785
echo $ECHO_N "checking for void *... $ECHO_C" >&6
 
4786
if test "${ac_cv_type_void_p+set}" = set; then
 
4787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4788
else
 
4789
  cat >conftest.$ac_ext <<_ACEOF
 
4790
/* confdefs.h.  */
 
4791
_ACEOF
 
4792
cat confdefs.h >>conftest.$ac_ext
 
4793
cat >>conftest.$ac_ext <<_ACEOF
 
4794
/* end confdefs.h.  */
 
4795
$ac_includes_default
 
4796
int
 
4797
main ()
 
4798
{
 
4799
if ((void * *) 0)
 
4800
  return 0;
 
4801
if (sizeof (void *))
 
4802
  return 0;
 
4803
  ;
 
4804
  return 0;
 
4805
}
 
4806
_ACEOF
 
4807
rm -f conftest.$ac_objext
 
4808
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4809
  (eval $ac_compile) 2>conftest.er1
 
4810
  ac_status=$?
 
4811
  grep -v '^ *+' conftest.er1 >conftest.err
 
4812
  rm -f conftest.er1
 
4813
  cat conftest.err >&5
 
4814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4815
  (exit $ac_status); } &&
 
4816
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4818
  (eval $ac_try) 2>&5
 
4819
  ac_status=$?
 
4820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4821
  (exit $ac_status); }; } &&
 
4822
         { ac_try='test -s conftest.$ac_objext'
 
4823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4824
  (eval $ac_try) 2>&5
 
4825
  ac_status=$?
 
4826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4827
  (exit $ac_status); }; }; then
 
4828
  ac_cv_type_void_p=yes
 
4829
else
 
4830
  echo "$as_me: failed program was:" >&5
 
4831
sed 's/^/| /' conftest.$ac_ext >&5
 
4832
 
 
4833
ac_cv_type_void_p=no
 
4834
fi
 
4835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4836
fi
 
4837
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
4838
echo "${ECHO_T}$ac_cv_type_void_p" >&6
 
4839
 
 
4840
echo "$as_me:$LINENO: checking size of void *" >&5
 
4841
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
 
4842
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
4843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4844
else
 
4845
  if test "$ac_cv_type_void_p" = yes; then
 
4846
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4847
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4848
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4849
  # This bug is HP SR number 8606223364.
 
4850
  if test "$cross_compiling" = yes; then
 
4851
  # Depending upon the size, compute the lo and hi bounds.
 
4852
cat >conftest.$ac_ext <<_ACEOF
 
4853
/* confdefs.h.  */
 
4854
_ACEOF
 
4855
cat confdefs.h >>conftest.$ac_ext
 
4856
cat >>conftest.$ac_ext <<_ACEOF
 
4857
/* end confdefs.h.  */
 
4858
$ac_includes_default
 
4859
int
 
4860
main ()
 
4861
{
 
4862
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) >= 0)@:>@;
 
4863
test_array @<:@0@:>@ = 0
 
4864
 
 
4865
  ;
 
4866
  return 0;
 
4867
}
 
4868
_ACEOF
 
4869
rm -f conftest.$ac_objext
 
4870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4871
  (eval $ac_compile) 2>conftest.er1
 
4872
  ac_status=$?
 
4873
  grep -v '^ *+' conftest.er1 >conftest.err
 
4874
  rm -f conftest.er1
 
4875
  cat conftest.err >&5
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); } &&
 
4878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4880
  (eval $ac_try) 2>&5
 
4881
  ac_status=$?
 
4882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4883
  (exit $ac_status); }; } &&
 
4884
         { ac_try='test -s conftest.$ac_objext'
 
4885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4886
  (eval $ac_try) 2>&5
 
4887
  ac_status=$?
 
4888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4889
  (exit $ac_status); }; }; then
 
4890
  ac_lo=0 ac_mid=0
 
4891
  while :; do
 
4892
    cat >conftest.$ac_ext <<_ACEOF
 
4893
/* confdefs.h.  */
 
4894
_ACEOF
 
4895
cat confdefs.h >>conftest.$ac_ext
 
4896
cat >>conftest.$ac_ext <<_ACEOF
 
4897
/* end confdefs.h.  */
 
4898
$ac_includes_default
 
4899
int
 
4900
main ()
 
4901
{
 
4902
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)@:>@;
 
4903
test_array @<:@0@:>@ = 0
 
4904
 
 
4905
  ;
 
4906
  return 0;
 
4907
}
 
4908
_ACEOF
 
4909
rm -f conftest.$ac_objext
 
4910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4911
  (eval $ac_compile) 2>conftest.er1
 
4912
  ac_status=$?
 
4913
  grep -v '^ *+' conftest.er1 >conftest.err
 
4914
  rm -f conftest.er1
 
4915
  cat conftest.err >&5
 
4916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4917
  (exit $ac_status); } &&
 
4918
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4920
  (eval $ac_try) 2>&5
 
4921
  ac_status=$?
 
4922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4923
  (exit $ac_status); }; } &&
 
4924
         { ac_try='test -s conftest.$ac_objext'
 
4925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4926
  (eval $ac_try) 2>&5
 
4927
  ac_status=$?
 
4928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4929
  (exit $ac_status); }; }; then
 
4930
  ac_hi=$ac_mid; break
 
4931
else
 
4932
  echo "$as_me: failed program was:" >&5
 
4933
sed 's/^/| /' conftest.$ac_ext >&5
 
4934
 
 
4935
ac_lo=`expr $ac_mid + 1`
 
4936
                    if test $ac_lo -le $ac_mid; then
 
4937
                      ac_lo= ac_hi=
 
4938
                      break
 
4939
                    fi
 
4940
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4941
fi
 
4942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4943
  done
 
4944
else
 
4945
  echo "$as_me: failed program was:" >&5
 
4946
sed 's/^/| /' conftest.$ac_ext >&5
 
4947
 
 
4948
cat >conftest.$ac_ext <<_ACEOF
 
4949
/* confdefs.h.  */
 
4950
_ACEOF
 
4951
cat confdefs.h >>conftest.$ac_ext
 
4952
cat >>conftest.$ac_ext <<_ACEOF
 
4953
/* end confdefs.h.  */
 
4954
$ac_includes_default
 
4955
int
 
4956
main ()
 
4957
{
 
4958
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) < 0)@:>@;
 
4959
test_array @<:@0@:>@ = 0
 
4960
 
 
4961
  ;
 
4962
  return 0;
 
4963
}
 
4964
_ACEOF
 
4965
rm -f conftest.$ac_objext
 
4966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4967
  (eval $ac_compile) 2>conftest.er1
 
4968
  ac_status=$?
 
4969
  grep -v '^ *+' conftest.er1 >conftest.err
 
4970
  rm -f conftest.er1
 
4971
  cat conftest.err >&5
 
4972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4973
  (exit $ac_status); } &&
 
4974
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4976
  (eval $ac_try) 2>&5
 
4977
  ac_status=$?
 
4978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4979
  (exit $ac_status); }; } &&
 
4980
         { ac_try='test -s conftest.$ac_objext'
 
4981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4982
  (eval $ac_try) 2>&5
 
4983
  ac_status=$?
 
4984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4985
  (exit $ac_status); }; }; then
 
4986
  ac_hi=-1 ac_mid=-1
 
4987
  while :; do
 
4988
    cat >conftest.$ac_ext <<_ACEOF
 
4989
/* confdefs.h.  */
 
4990
_ACEOF
 
4991
cat confdefs.h >>conftest.$ac_ext
 
4992
cat >>conftest.$ac_ext <<_ACEOF
 
4993
/* end confdefs.h.  */
 
4994
$ac_includes_default
 
4995
int
 
4996
main ()
 
4997
{
 
4998
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)@:>@;
 
4999
test_array @<:@0@:>@ = 0
 
5000
 
 
5001
  ;
 
5002
  return 0;
 
5003
}
 
5004
_ACEOF
 
5005
rm -f conftest.$ac_objext
 
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5007
  (eval $ac_compile) 2>conftest.er1
 
5008
  ac_status=$?
 
5009
  grep -v '^ *+' conftest.er1 >conftest.err
 
5010
  rm -f conftest.er1
 
5011
  cat conftest.err >&5
 
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); } &&
 
5014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5016
  (eval $ac_try) 2>&5
 
5017
  ac_status=$?
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); }; } &&
 
5020
         { ac_try='test -s conftest.$ac_objext'
 
5021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5022
  (eval $ac_try) 2>&5
 
5023
  ac_status=$?
 
5024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5025
  (exit $ac_status); }; }; then
 
5026
  ac_lo=$ac_mid; break
 
5027
else
 
5028
  echo "$as_me: failed program was:" >&5
 
5029
sed 's/^/| /' conftest.$ac_ext >&5
 
5030
 
 
5031
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5032
                       if test $ac_mid -le $ac_hi; then
 
5033
                         ac_lo= ac_hi=
 
5034
                         break
 
5035
                       fi
 
5036
                       ac_mid=`expr 2 '*' $ac_mid`
 
5037
fi
 
5038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5039
  done
 
5040
else
 
5041
  echo "$as_me: failed program was:" >&5
 
5042
sed 's/^/| /' conftest.$ac_ext >&5
 
5043
 
 
5044
ac_lo= ac_hi=
 
5045
fi
 
5046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5047
fi
 
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5049
# Binary search between lo and hi bounds.
 
5050
while test "x$ac_lo" != "x$ac_hi"; do
 
5051
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5052
  cat >conftest.$ac_ext <<_ACEOF
 
5053
/* confdefs.h.  */
 
5054
_ACEOF
 
5055
cat confdefs.h >>conftest.$ac_ext
 
5056
cat >>conftest.$ac_ext <<_ACEOF
 
5057
/* end confdefs.h.  */
 
5058
$ac_includes_default
 
5059
int
 
5060
main ()
 
5061
{
 
5062
static int test_array @<:@1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)@:>@;
 
5063
test_array @<:@0@:>@ = 0
 
5064
 
 
5065
  ;
 
5066
  return 0;
 
5067
}
 
5068
_ACEOF
 
5069
rm -f conftest.$ac_objext
 
5070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5071
  (eval $ac_compile) 2>conftest.er1
 
5072
  ac_status=$?
 
5073
  grep -v '^ *+' conftest.er1 >conftest.err
 
5074
  rm -f conftest.er1
 
5075
  cat conftest.err >&5
 
5076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5077
  (exit $ac_status); } &&
 
5078
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5080
  (eval $ac_try) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); }; } &&
 
5084
         { ac_try='test -s conftest.$ac_objext'
 
5085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5086
  (eval $ac_try) 2>&5
 
5087
  ac_status=$?
 
5088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5089
  (exit $ac_status); }; }; then
 
5090
  ac_hi=$ac_mid
 
5091
else
 
5092
  echo "$as_me: failed program was:" >&5
 
5093
sed 's/^/| /' conftest.$ac_ext >&5
 
5094
 
 
5095
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5096
fi
 
5097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5098
done
 
5099
case $ac_lo in
 
5100
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
5101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
5102
See \`config.log' for more details." >&5
 
5103
echo "$as_me: error: cannot compute sizeof (void *), 77
 
5104
See \`config.log' for more details." >&2;}
 
5105
   { (exit 1); exit 1; }; } ;;
 
5106
esac
 
5107
else
 
5108
  if test "$cross_compiling" = yes; then
 
5109
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5110
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5111
   { (exit 1); exit 1; }; }
 
5112
else
 
5113
  cat >conftest.$ac_ext <<_ACEOF
 
5114
/* confdefs.h.  */
 
5115
_ACEOF
 
5116
cat confdefs.h >>conftest.$ac_ext
 
5117
cat >>conftest.$ac_ext <<_ACEOF
 
5118
/* end confdefs.h.  */
 
5119
$ac_includes_default
 
5120
long longval () { return (long) (sizeof (void *)); }
 
5121
unsigned long ulongval () { return (long) (sizeof (void *)); }
 
5122
@%:@include <stdio.h>
 
5123
@%:@include <stdlib.h>
 
5124
int
 
5125
main ()
 
5126
{
 
5127
 
 
5128
  FILE *f = fopen ("conftest.val", "w");
 
5129
  if (! f)
 
5130
    exit (1);
 
5131
  if (((long) (sizeof (void *))) < 0)
 
5132
    {
 
5133
      long i = longval ();
 
5134
      if (i != ((long) (sizeof (void *))))
 
5135
        exit (1);
 
5136
      fprintf (f, "%ld\n", i);
 
5137
    }
 
5138
  else
 
5139
    {
 
5140
      unsigned long i = ulongval ();
 
5141
      if (i != ((long) (sizeof (void *))))
 
5142
        exit (1);
 
5143
      fprintf (f, "%lu\n", i);
 
5144
    }
 
5145
  exit (ferror (f) || fclose (f) != 0);
 
5146
 
 
5147
  ;
 
5148
  return 0;
 
5149
}
 
5150
_ACEOF
 
5151
rm -f conftest$ac_exeext
 
5152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5153
  (eval $ac_link) 2>&5
 
5154
  ac_status=$?
 
5155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5156
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5158
  (eval $ac_try) 2>&5
 
5159
  ac_status=$?
 
5160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5161
  (exit $ac_status); }; }; then
 
5162
  ac_cv_sizeof_void_p=`cat conftest.val`
 
5163
else
 
5164
  echo "$as_me: program exited with status $ac_status" >&5
 
5165
echo "$as_me: failed program was:" >&5
 
5166
sed 's/^/| /' conftest.$ac_ext >&5
 
5167
 
 
5168
( exit $ac_status )
 
5169
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
5170
See \`config.log' for more details." >&5
 
5171
echo "$as_me: error: cannot compute sizeof (void *), 77
 
5172
See \`config.log' for more details." >&2;}
 
5173
   { (exit 1); exit 1; }; }
 
5174
fi
 
5175
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5176
fi
 
5177
fi
 
5178
rm -f conftest.val
 
5179
else
 
5180
  ac_cv_sizeof_void_p=0
 
5181
fi
 
5182
fi
 
5183
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
5184
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
 
5185
cat >>confdefs.h <<_ACEOF
 
5186
@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
5187
_ACEOF
 
5188
 
 
5189
 
 
5190
if test "$ac_cv_sizeof_void_p" = 8; then 
 
5191
    echo "$as_me:$LINENO: result: Building 64-bit" >&5
 
5192
echo "${ECHO_T}Building 64-bit" >&6
 
5193
    CFLAGS="-DJU_64BIT $CFLAGS"
 
5194
else 
4795
5195
    echo "$as_me:$LINENO: result: Building 32-bit" >&5
4796
5196
echo "${ECHO_T}Building 32-bit" >&6
4797
5197
    CFLAGS="-UJU_64BIT $CFLAGS"
4798
5198
fi
4799
5199
 
4800
 
# Check whether --enable-64-bit or --disable-64-bit was given.
4801
 
if test "${enable_64_bit+set}" = set; then
4802
 
  enableval="$enable_64_bit"
4803
 
  b64="$enableval"
4804
 
else
4805
 
  b64="no"
4806
 
fi; 
4807
 
if test x"$b64" != "xno"; then
4808
 
    echo "$as_me:$LINENO: result: Building 64-bit" >&5
4809
 
echo "${ECHO_T}Building 64-bit" >&6
4810
 
    CFLAGS="-DJU_64BIT $CFLAGS"
4811
 
fi
4812
 
 
4813
 
if test x"$b32" = "xno"; then 
4814
 
    if test x"$b64" = "xno"; then
4815
 
        { { echo "$as_me:$LINENO: error: You must run configure with either: 
4816
 
                      --enable-32-bit 
4817
 
                      --enable-64-bit" >&5
4818
 
echo "$as_me: error: You must run configure with either: 
4819
 
                      --enable-32-bit 
4820
 
                      --enable-64-bit" >&2;}
4821
 
   { (exit 1); exit 1; }; };
4822
 
    fi
4823
 
fi
4824
5200
 
4825
5201
#  dnl Determine whether or not we're compiling for a 64-bit system by looking
4826
5202
#  dnl at the size of a 'long'.  This will define SIZEOF_LONG in config.h.  We
6482
6858
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6483
6859
# along with /bin/sed that truncates output.
6484
6860
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6485
 
  test ! -f $lt_ac_sed && break
 
6861
  test ! -f $lt_ac_sed && continue
6486
6862
  cat /dev/null > conftest.in
6487
6863
  lt_ac_count=0
6488
6864
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6507
6883
    fi
6508
6884
  done
6509
6885
done
 
6886
 
 
6887
fi
 
6888
 
6510
6889
SED=$lt_cv_path_SED
6511
 
 
6512
 
fi
6513
 
 
6514
6890
echo "$as_me:$LINENO: result: $SED" >&5
6515
6891
echo "${ECHO_T}$SED" >&6
6516
6892
 
6572
6948
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6573
6949
      lt_cv_path_LD="$ac_dir/$ac_prog"
6574
6950
      # Check to see if the program is GNU ld.  I'd rather use --version,
6575
 
      # but apparently some GNU ld's only accept -v.
 
6951
      # but apparently some variants of GNU ld only accept -v.
6576
6952
      # Break only if it was the GNU/non-GNU ld that we prefer.
6577
6953
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6578
6954
      *GNU* | *'with BFD'*)
6606
6982
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6607
6983
  echo $ECHO_N "(cached) $ECHO_C" >&6
6608
6984
else
6609
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
6985
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6610
6986
case `$LD -v 2>&1 </dev/null` in
6611
6987
*GNU* | *'with BFD'*)
6612
6988
  lt_cv_prog_gnu_ld=yes
6636
7012
*) reload_flag=" $reload_flag" ;;
6637
7013
esac
6638
7014
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7015
case $host_os in
 
7016
  darwin*)
 
7017
    if test "$GCC" = yes; then
 
7018
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
7019
    else
 
7020
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7021
    fi
 
7022
    ;;
 
7023
esac
6639
7024
 
6640
7025
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641
7026
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6646
7031
  # Let the user override the test.
6647
7032
  lt_cv_path_NM="$NM"
6648
7033
else
6649
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6650
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6651
 
    IFS="$lt_save_ifs"
6652
 
    test -z "$ac_dir" && ac_dir=.
6653
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6654
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6655
 
      # Check to see if the nm accepts a BSD-compat flag.
6656
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6657
 
      #   nm: unknown option "B" ignored
6658
 
      # Tru64's nm complains that /dev/null is an invalid object file
6659
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6660
 
      */dev/null* | *'Invalid file or object type'*)
6661
 
        lt_cv_path_NM="$tmp_nm -B"
6662
 
        break
6663
 
        ;;
6664
 
      *)
6665
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6666
 
        */dev/null*)
6667
 
          lt_cv_path_NM="$tmp_nm -p"
 
7034
  lt_nm_to_check="${ac_tool_prefix}nm"
 
7035
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
7036
    lt_nm_to_check="$lt_nm_to_check nm"
 
7037
  fi
 
7038
  for lt_tmp_nm in $lt_nm_to_check; do
 
7039
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7040
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
7041
      IFS="$lt_save_ifs"
 
7042
      test -z "$ac_dir" && ac_dir=.
 
7043
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
7044
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
7045
        # Check to see if the nm accepts a BSD-compat flag.
 
7046
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
7047
        #   nm: unknown option "B" ignored
 
7048
        # Tru64's nm complains that /dev/null is an invalid object file
 
7049
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
7050
        */dev/null* | *'Invalid file or object type'*)
 
7051
          lt_cv_path_NM="$tmp_nm -B"
6668
7052
          break
6669
7053
          ;;
6670
7054
        *)
6671
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6672
 
          continue # so that we can try to find one that supports BSD flags
 
7055
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
7056
          */dev/null*)
 
7057
            lt_cv_path_NM="$tmp_nm -p"
 
7058
            break
 
7059
            ;;
 
7060
          *)
 
7061
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
7062
            continue # so that we can try to find one that supports BSD flags
 
7063
            ;;
 
7064
          esac
6673
7065
          ;;
6674
7066
        esac
6675
 
      esac
6676
 
    fi
 
7067
      fi
 
7068
    done
 
7069
    IFS="$lt_save_ifs"
6677
7070
  done
6678
 
  IFS="$lt_save_ifs"
6679
7071
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6680
7072
fi
6681
7073
fi
6711
7103
  lt_cv_deplibs_check_method=pass_all
6712
7104
  ;;
6713
7105
 
6714
 
bsdi4*)
 
7106
bsdi[45]*)
6715
7107
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6716
7108
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6717
7109
  lt_cv_file_magic_test_file=/shlib/libc.so
6734
7126
  lt_cv_deplibs_check_method=pass_all
6735
7127
  ;;
6736
7128
 
6737
 
freebsd* | kfreebsd*-gnu)
 
7129
freebsd* | kfreebsd*-gnu | dragonfly*)
6738
7130
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6739
7131
    case $host_cpu in
6740
7132
    i*86 )
6741
7133
      # Not sure whether the presence of OpenBSD here was a mistake.
6742
7134
      # Let's accept both of them until this is cleared up.
6743
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
7135
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6744
7136
      lt_cv_file_magic_cmd=/usr/bin/file
6745
7137
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6746
7138
      ;;
6756
7148
 
6757
7149
hpux10.20* | hpux11*)
6758
7150
  lt_cv_file_magic_cmd=/usr/bin/file
6759
 
  case "$host_cpu" in
 
7151
  case $host_cpu in
6760
7152
  ia64*)
6761
7153
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6762
7154
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6772
7164
  esac
6773
7165
  ;;
6774
7166
 
 
7167
interix3*)
 
7168
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
7169
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
7170
  ;;
 
7171
 
6775
7172
irix5* | irix6* | nonstopux*)
6776
7173
  case $LD in
6777
7174
  *-32|*"-32 ") libmagic=32-bit;;
6806
7203
  ;;
6807
7204
 
6808
7205
openbsd*)
6809
 
  lt_cv_file_magic_cmd=/usr/bin/file
6810
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6811
7206
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6812
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
7207
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6813
7208
  else
6814
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
7209
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6815
7210
  fi
6816
7211
  ;;
6817
7212
 
6819
7214
  lt_cv_deplibs_check_method=pass_all
6820
7215
  ;;
6821
7216
 
6822
 
sco3.2v5*)
6823
 
  lt_cv_deplibs_check_method=pass_all
6824
 
  ;;
6825
 
 
6826
7217
solaris*)
6827
7218
  lt_cv_deplibs_check_method=pass_all
6828
7219
  ;;
6829
7220
 
6830
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7221
sysv4 | sysv4.3*)
6831
7222
  case $host_vendor in
6832
7223
  motorola)
6833
7224
    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]'
6848
7239
  siemens)
6849
7240
    lt_cv_deplibs_check_method=pass_all
6850
7241
    ;;
 
7242
  pc)
 
7243
    lt_cv_deplibs_check_method=pass_all
 
7244
    ;;
6851
7245
  esac
6852
7246
  ;;
6853
7247
 
6854
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
7248
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6855
7249
  lt_cv_deplibs_check_method=pass_all
6856
7250
  ;;
6857
7251
esac
6869
7263
# If no C compiler was specified, use CC.
6870
7264
LTCC=${LTCC-"$CC"}
6871
7265
 
 
7266
# If no C compiler flags were specified, use CFLAGS.
 
7267
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7268
 
6872
7269
# Allow CC to be a program name with arguments.
6873
7270
compiler=$CC
6874
7271
 
6946
7343
  ac_status=$?
6947
7344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
7345
  (exit $ac_status); }; then
6949
 
    case "`/usr/bin/file conftest.o`" in
 
7346
    case `/usr/bin/file conftest.o` in
6950
7347
    *32-bit*)
6951
7348
      case $host in
6952
7349
        x86_64-*linux*)
7058
7455
    CFLAGS="$SAVE_CFLAGS"
7059
7456
  fi
7060
7457
  ;;
 
7458
sparc*-*solaris*)
 
7459
  # Find out which ABI we are using.
 
7460
  echo 'int i;' > conftest.$ac_ext
 
7461
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7462
  (eval $ac_compile) 2>&5
 
7463
  ac_status=$?
 
7464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7465
  (exit $ac_status); }; then
 
7466
    case `/usr/bin/file conftest.o` in
 
7467
    *64-bit*)
 
7468
      case $lt_cv_prog_gnu_ld in
 
7469
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7470
      *)    LD="${LD-ld} -64" ;;
 
7471
      esac
 
7472
      ;;
 
7473
    esac
 
7474
  fi
 
7475
  rm -rf conftest*
 
7476
  ;;
 
7477
 
7061
7478
 
7062
7479
esac
7063
7480
 
7673
8090
fi
7674
8091
 
7675
8092
 
7676
 
ac_ext=cc
 
8093
 
 
8094
 
 
8095
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
8096
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
8097
    (test "X$CXX" != "Xg++"))) ; then
 
8098
  ac_ext=cc
7677
8099
ac_cpp='$CXXCPP $CPPFLAGS'
7678
8100
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679
8101
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903
8325
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904
8326
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7905
8327
 
 
8328
fi
 
8329
 
7906
8330
 
7907
8331
ac_ext=f
7908
8332
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8184
8608
    lt_cv_sys_max_cmd_len=8192;
8185
8609
    ;;
8186
8610
 
8187
 
 *)
 
8611
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
8612
    # This has been around since 386BSD, at least.  Likely further.
 
8613
    if test -x /sbin/sysctl; then
 
8614
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
8615
    elif test -x /usr/sbin/sysctl; then
 
8616
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
8617
    else
 
8618
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
8619
    fi
 
8620
    # And add a safety zone
 
8621
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
8622
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
8623
    ;;
 
8624
 
 
8625
  interix*)
 
8626
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
8627
    lt_cv_sys_max_cmd_len=196608
 
8628
    ;;
 
8629
 
 
8630
  osf*)
 
8631
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
8632
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
8633
    # nice to cause kernel panics so lets avoid the loop below.
 
8634
    # First set a reasonable default.
 
8635
    lt_cv_sys_max_cmd_len=16384
 
8636
    #
 
8637
    if test -x /sbin/sysconfig; then
 
8638
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
8639
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
8640
      esac
 
8641
    fi
 
8642
    ;;
 
8643
  sco3.2v5*)
 
8644
    lt_cv_sys_max_cmd_len=102400
 
8645
    ;;
 
8646
  sysv5* | sco5v6* | sysv4.2uw2*)
 
8647
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
8648
    if test -n "$kargmax"; then
 
8649
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
8650
    else
 
8651
      lt_cv_sys_max_cmd_len=32768
 
8652
    fi
 
8653
    ;;
 
8654
  *)
8188
8655
    # If test is not a shell built-in, we'll probably end up computing a
8189
8656
    # maximum length that is only half of the actual maximum length, but
8190
8657
    # we can't tell.
8191
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
8658
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
8659
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8192
8660
               = "XX$teststring") >/dev/null 2>&1 &&
8193
8661
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8194
8662
            lt_cv_sys_max_cmd_len=$new_result &&
8234
8702
# Regexp to match symbols that can be accessed directly from C.
8235
8703
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8236
8704
 
8237
 
# Transform the above into a raw symbol and a C symbol.
8238
 
symxfrm='\1 \2\3 \3'
8239
 
 
8240
8705
# Transform an extracted symbol line into a proper C declaration
8241
8706
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8242
8707
 
8258
8723
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8259
8724
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8260
8725
  ;;
 
8726
linux*)
 
8727
  if test "$host_cpu" = ia64; then
 
8728
    symcode='[ABCDGIRSTW]'
 
8729
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8730
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
8731
  fi
 
8732
  ;;
8261
8733
irix* | nonstopux*)
8262
8734
  symcode='[BCDEGRST]'
8263
8735
  ;;
8264
8736
osf*)
8265
8737
  symcode='[BCDEGQRST]'
8266
8738
  ;;
8267
 
solaris* | sysv5*)
 
8739
solaris*)
8268
8740
  symcode='[BDRT]'
8269
8741
  ;;
 
8742
sco3.2v5*)
 
8743
  symcode='[DT]'
 
8744
  ;;
 
8745
sysv4.2uw2*)
 
8746
  symcode='[DT]'
 
8747
  ;;
 
8748
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
8749
  symcode='[ABDT]'
 
8750
  ;;
8270
8751
sysv4)
8271
8752
  symcode='[DFNSTU]'
8272
8753
  ;;
8289
8770
# Try without a prefix undercore, then with it.
8290
8771
for ac_symprfx in "" "_"; do
8291
8772
 
 
8773
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
8774
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
8775
 
8292
8776
  # Write the raw and C identifiers.
8293
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8777
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8294
8778
 
8295
8779
  # Check to see that the pipe works correctly.
8296
8780
  pipe_works=no
8452
8936
 
8453
8937
# Sed substitution that helps us do robust quoting.  It backslashifies
8454
8938
# metacharacters that are still active within double-quoted strings.
8455
 
Xsed='sed -e s/^X//'
 
8939
Xsed='sed -e 1s/^X//'
8456
8940
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8457
8941
 
8458
8942
# Same as above, but do not quote variable references.
8472
8956
default_ofile=libtool
8473
8957
can_build_shared=yes
8474
8958
 
8475
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8959
# All known linkers require a `.a' archive for static linking (except MSVC,
8476
8960
# which needs '.lib').
8477
8961
libext=a
8478
8962
ltmain="$ac_aux_dir/ltmain.sh"
8729
9213
test -z "$AS" && AS=as
8730
9214
test -z "$CC" && CC=cc
8731
9215
test -z "$LTCC" && LTCC=$CC
 
9216
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8732
9217
test -z "$DLLTOOL" && DLLTOOL=dlltool
8733
9218
test -z "$LD" && LD=ld
8734
9219
test -z "$LN_S" && LN_S="ln -s"
8748
9233
if test -n "$RANLIB"; then
8749
9234
  case $host_os in
8750
9235
  openbsd*)
8751
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
9236
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8752
9237
    ;;
8753
9238
  *)
8754
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
9239
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8755
9240
    ;;
8756
9241
  esac
8757
9242
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8758
9243
fi
8759
9244
 
 
9245
for cc_temp in $compiler""; do
 
9246
  case $cc_temp in
 
9247
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9248
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9249
    \-*) ;;
 
9250
    *) break;;
 
9251
  esac
 
9252
done
 
9253
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9254
 
 
9255
 
8760
9256
# Only perform the check for file, if the check method requires it
8761
9257
case $deplibs_check_method in
8762
9258
file_magic*)
8782
9278
      if test -n "$file_magic_test_file"; then
8783
9279
        case $deplibs_check_method in
8784
9280
        "file_magic "*)
8785
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
9281
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8786
9282
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8787
9283
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8788
9284
            $EGREP "$file_magic_regex" > /dev/null; then
8844
9340
      if test -n "$file_magic_test_file"; then
8845
9341
        case $deplibs_check_method in
8846
9342
        "file_magic "*)
8847
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
9343
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8848
9344
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8849
9345
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8850
9346
            $EGREP "$file_magic_regex" > /dev/null; then
8939
9435
# If no C compiler was specified, use CC.
8940
9436
LTCC=${LTCC-"$CC"}
8941
9437
 
 
9438
# If no C compiler flags were specified, use CFLAGS.
 
9439
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9440
 
8942
9441
# Allow CC to be a program name with arguments.
8943
9442
compiler=$CC
8944
9443
 
8945
9444
 
8946
 
#
8947
 
# Check for any special shared library compilation flags.
8948
 
#
8949
 
lt_prog_cc_shlib=
8950
 
if test "$GCC" = no; then
8951
 
  case $host_os in
8952
 
  sco3.2v5*)
8953
 
    lt_prog_cc_shlib='-belf'
8954
 
    ;;
8955
 
  esac
8956
 
fi
8957
 
if test -n "$lt_prog_cc_shlib"; then
8958
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8959
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8960
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8961
 
  else
8962
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8963
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8964
 
    lt_cv_prog_cc_can_build_shared=no
8965
 
  fi
8966
 
fi
8967
 
 
8968
 
 
8969
 
#
8970
 
# Check to make sure the static flag actually works.
8971
 
#
8972
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8973
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8974
 
if test "${lt_prog_compiler_static_works+set}" = set; then
8975
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8976
 
else
8977
 
  lt_prog_compiler_static_works=no
8978
 
   save_LDFLAGS="$LDFLAGS"
8979
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8980
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8981
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8982
 
     # The compiler can only warn and ignore the option if not recognized
8983
 
     # So say no if there are warnings
8984
 
     if test -s conftest.err; then
8985
 
       # Append any errors to the config.log.
8986
 
       cat conftest.err 1>&5
8987
 
     else
8988
 
       lt_prog_compiler_static_works=yes
8989
 
     fi
8990
 
   fi
8991
 
   $rm conftest*
8992
 
   LDFLAGS="$save_LDFLAGS"
8993
 
 
8994
 
fi
8995
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8996
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8997
 
 
8998
 
if test x"$lt_prog_compiler_static_works" = xyes; then
8999
 
    :
9000
 
else
9001
 
    lt_prog_compiler_static=
9002
 
fi
9003
 
 
 
9445
# save warnings/boilerplate of simple test code
 
9446
ac_outfile=conftest.$ac_objext
 
9447
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9448
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9449
_lt_compiler_boilerplate=`cat conftest.err`
 
9450
$rm conftest*
 
9451
 
 
9452
ac_outfile=conftest.$ac_objext
 
9453
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9454
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9455
_lt_linker_boilerplate=`cat conftest.err`
 
9456
$rm conftest*
9004
9457
 
9005
9458
 
9006
9459
 
9025
9478
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9026
9479
   # The option is referenced via a variable to avoid confusing sed.
9027
9480
   lt_compile=`echo "$ac_compile" | $SED \
9028
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9481
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029
9482
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030
9483
   -e 's:$: $lt_compiler_flag:'`
9031
9484
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9035
9488
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9036
9489
   if (exit $ac_status) && test -s "$ac_outfile"; then
9037
9490
     # The compiler can only warn and ignore the option if not recognized
9038
 
     # So say no if there are warnings
9039
 
     if test ! -s conftest.err; then
 
9491
     # So say no if there are warnings other than the usual output.
 
9492
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9493
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9494
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9040
9495
       lt_cv_prog_compiler_rtti_exceptions=yes
9041
9496
     fi
9042
9497
   fi
9097
9552
      lt_prog_compiler_pic='-fno-common'
9098
9553
      ;;
9099
9554
 
 
9555
    interix3*)
 
9556
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9557
      # Instead, we relocate shared libraries at runtime.
 
9558
      ;;
 
9559
 
9100
9560
    msdosdjgpp*)
9101
9561
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9102
9562
      # on systems that don't support them.
9113
9573
    hpux*)
9114
9574
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9115
9575
      # not for PA HP-UX.
9116
 
      case "$host_cpu" in
 
9576
      case $host_cpu in
9117
9577
      hppa*64*|ia64*)
9118
9578
        # +Z the default
9119
9579
        ;;
9139
9599
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9140
9600
      fi
9141
9601
      ;;
 
9602
      darwin*)
 
9603
        # PIC is the default on this platform
 
9604
        # Common symbols not allowed in MH_DYLIB files
 
9605
       case $cc_basename in
 
9606
         xlc*)
 
9607
         lt_prog_compiler_pic='-qnocommon'
 
9608
         lt_prog_compiler_wl='-Wl,'
 
9609
         ;;
 
9610
       esac
 
9611
       ;;
9142
9612
 
9143
9613
    mingw* | pw32* | os2*)
9144
9614
      # This hack is so that the source file can tell whether it is being
9150
9620
      lt_prog_compiler_wl='-Wl,'
9151
9621
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9152
9622
      # not for PA HP-UX.
9153
 
      case "$host_cpu" in
 
9623
      case $host_cpu in
9154
9624
      hppa*64*|ia64*)
9155
9625
        # +Z the default
9156
9626
        ;;
9174
9644
      ;;
9175
9645
 
9176
9646
    linux*)
9177
 
      case $CC in
 
9647
      case $cc_basename in
9178
9648
      icc* | ecc*)
9179
9649
        lt_prog_compiler_wl='-Wl,'
9180
9650
        lt_prog_compiler_pic='-KPIC'
9181
9651
        lt_prog_compiler_static='-static'
9182
9652
        ;;
 
9653
      pgcc* | pgf77* | pgf90* | pgf95*)
 
9654
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9655
        # which looks to be a dead project)
 
9656
        lt_prog_compiler_wl='-Wl,'
 
9657
        lt_prog_compiler_pic='-fpic'
 
9658
        lt_prog_compiler_static='-Bstatic'
 
9659
        ;;
9183
9660
      ccc*)
9184
9661
        lt_prog_compiler_wl='-Wl,'
9185
9662
        # All Alpha code is PIC.
9194
9671
      lt_prog_compiler_static='-non_shared'
9195
9672
      ;;
9196
9673
 
9197
 
    sco3.2v5*)
9198
 
      lt_prog_compiler_pic='-Kpic'
9199
 
      lt_prog_compiler_static='-dn'
9200
 
      ;;
9201
 
 
9202
9674
    solaris*)
9203
 
      lt_prog_compiler_wl='-Wl,'
9204
9675
      lt_prog_compiler_pic='-KPIC'
9205
9676
      lt_prog_compiler_static='-Bstatic'
 
9677
      case $cc_basename in
 
9678
      f77* | f90* | f95*)
 
9679
        lt_prog_compiler_wl='-Qoption ld ';;
 
9680
      *)
 
9681
        lt_prog_compiler_wl='-Wl,';;
 
9682
      esac
9206
9683
      ;;
9207
9684
 
9208
9685
    sunos4*)
9211
9688
      lt_prog_compiler_static='-Bstatic'
9212
9689
      ;;
9213
9690
 
9214
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9691
    sysv4 | sysv4.2uw2* | sysv4.3*)
9215
9692
      lt_prog_compiler_wl='-Wl,'
9216
9693
      lt_prog_compiler_pic='-KPIC'
9217
9694
      lt_prog_compiler_static='-Bstatic'
9224
9701
      fi
9225
9702
      ;;
9226
9703
 
 
9704
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9705
      lt_prog_compiler_wl='-Wl,'
 
9706
      lt_prog_compiler_pic='-KPIC'
 
9707
      lt_prog_compiler_static='-Bstatic'
 
9708
      ;;
 
9709
 
 
9710
    unicos*)
 
9711
      lt_prog_compiler_wl='-Wl,'
 
9712
      lt_prog_compiler_can_build_shared=no
 
9713
      ;;
 
9714
 
9227
9715
    uts4*)
9228
9716
      lt_prog_compiler_pic='-pic'
9229
9717
      lt_prog_compiler_static='-Bstatic'
9258
9746
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9259
9747
   # The option is referenced via a variable to avoid confusing sed.
9260
9748
   lt_compile=`echo "$ac_compile" | $SED \
9261
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9749
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262
9750
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263
9751
   -e 's:$: $lt_compiler_flag:'`
9264
9752
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9268
9756
   echo "$as_me:__oline__: \$? = $ac_status" >&5
9269
9757
   if (exit $ac_status) && test -s "$ac_outfile"; then
9270
9758
     # The compiler can only warn and ignore the option if not recognized
9271
 
     # So say no if there are warnings
9272
 
     if test ! -s conftest.err; then
 
9759
     # So say no if there are warnings other than the usual output.
 
9760
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9761
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9762
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273
9763
       lt_prog_compiler_pic_works=yes
9274
9764
     fi
9275
9765
   fi
9290
9780
fi
9291
9781
 
9292
9782
fi
9293
 
case "$host_os" in
 
9783
case $host_os in
9294
9784
  # For platforms which do not support PIC, -DPIC is meaningless:
9295
9785
  *djgpp*)
9296
9786
    lt_prog_compiler_pic=
9300
9790
    ;;
9301
9791
esac
9302
9792
 
 
9793
#
 
9794
# Check to make sure the static flag actually works.
 
9795
#
 
9796
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9797
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9798
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
9799
if test "${lt_prog_compiler_static_works+set}" = set; then
 
9800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9801
else
 
9802
  lt_prog_compiler_static_works=no
 
9803
   save_LDFLAGS="$LDFLAGS"
 
9804
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9805
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
9806
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9807
     # The linker can only warn and ignore the option if not recognized
 
9808
     # So say no if there are warnings
 
9809
     if test -s conftest.err; then
 
9810
       # Append any errors to the config.log.
 
9811
       cat conftest.err 1>&5
 
9812
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9813
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9814
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9815
         lt_prog_compiler_static_works=yes
 
9816
       fi
 
9817
     else
 
9818
       lt_prog_compiler_static_works=yes
 
9819
     fi
 
9820
   fi
 
9821
   $rm conftest*
 
9822
   LDFLAGS="$save_LDFLAGS"
 
9823
 
 
9824
fi
 
9825
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
9826
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
9827
 
 
9828
if test x"$lt_prog_compiler_static_works" = xyes; then
 
9829
    :
 
9830
else
 
9831
    lt_prog_compiler_static=
 
9832
fi
 
9833
 
 
9834
 
9303
9835
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9304
9836
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9305
9837
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9318
9850
   # Note that $ac_compile itself does not contain backslashes and begins
9319
9851
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9320
9852
   lt_compile=`echo "$ac_compile" | $SED \
9321
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9853
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9322
9854
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9323
9855
   -e 's:$: $lt_compiler_flag:'`
9324
9856
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9330
9862
   then
9331
9863
     # The compiler can only warn and ignore the option if not recognized
9332
9864
     # So say no if there are warnings
9333
 
     if test ! -s out/conftest.err; then
 
9865
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9866
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9867
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9334
9868
       lt_cv_prog_compiler_c_o=yes
9335
9869
     fi
9336
9870
   fi
9337
 
   chmod u+w .
 
9871
   chmod u+w . 2>&5
9338
9872
   $rm conftest*
9339
9873
   # SGI C++ compiler will create directory out/ii_files/ for
9340
9874
   # template instantiation
9410
9944
  # rely on this symbol name, it's probably fine to never include it in
9411
9945
  # preloaded symbol tables.
9412
9946
  extract_expsyms_cmds=
 
9947
  # Just being paranoid about ensuring that cc_basename is set.
 
9948
  for cc_temp in $compiler""; do
 
9949
  case $cc_temp in
 
9950
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9951
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9952
    \-*) ;;
 
9953
    *) break;;
 
9954
  esac
 
9955
done
 
9956
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9413
9957
 
9414
9958
  case $host_os in
9415
9959
  cygwin* | mingw* | pw32*)
9420
9964
      with_gnu_ld=no
9421
9965
    fi
9422
9966
    ;;
 
9967
  interix*)
 
9968
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9969
    with_gnu_ld=yes
 
9970
    ;;
9423
9971
  openbsd*)
9424
9972
    with_gnu_ld=no
9425
9973
    ;;
9430
9978
    # If archive_cmds runs LD, not CC, wlarc should be empty
9431
9979
    wlarc='${wl}'
9432
9980
 
 
9981
    # Set some defaults for GNU ld with shared library support. These
 
9982
    # are reset later if shared libraries are not supported. Putting them
 
9983
    # here allows them to be overridden if necessary.
 
9984
    runpath_var=LD_RUN_PATH
 
9985
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9986
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9987
    # ancient GNU ld didn't support --whole-archive et. al.
 
9988
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9989
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9990
      else
 
9991
        whole_archive_flag_spec=
 
9992
    fi
 
9993
    supports_anon_versioning=no
 
9994
    case `$LD -v 2>/dev/null` in
 
9995
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9996
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9997
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9998
      *\ 2.11.*) ;; # other 2.11 versions
 
9999
      *) supports_anon_versioning=yes ;;
 
10000
    esac
 
10001
 
9433
10002
    # See if GNU ld supports shared libraries.
9434
10003
    case $host_os in
9435
10004
    aix3* | aix4* | aix5*)
9480
10049
      allow_undefined_flag=unsupported
9481
10050
      always_export_symbols=no
9482
10051
      enable_shared_with_static_runtimes=yes
9483
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10052
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9484
10053
 
9485
10054
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9486
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10055
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9487
10056
        # If the export-symbols file already is a .def file (1st line
9488
10057
        # is EXPORTS), use it as is; otherwise, prepend...
9489
10058
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9492
10061
          echo EXPORTS > $output_objdir/$soname.def;
9493
10062
          cat $export_symbols >> $output_objdir/$soname.def;
9494
10063
        fi~
9495
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
10064
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10065
      else
 
10066
        ld_shlibs=no
 
10067
      fi
 
10068
      ;;
 
10069
 
 
10070
    interix3*)
 
10071
      hardcode_direct=no
 
10072
      hardcode_shlibpath_var=no
 
10073
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10074
      export_dynamic_flag_spec='${wl}-E'
 
10075
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10076
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10077
      # default) and relocated if they conflict, which is a slow very memory
 
10078
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10079
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10080
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10081
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10082
      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'
 
10083
      ;;
 
10084
 
 
10085
    linux*)
 
10086
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10087
        tmp_addflag=
 
10088
        case $cc_basename,$host_cpu in
 
10089
        pgcc*)                          # Portland Group C compiler
 
10090
          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'
 
10091
          tmp_addflag=' $pic_flag'
 
10092
          ;;
 
10093
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
10094
          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'
 
10095
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10096
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
10097
          tmp_addflag=' -i_dynamic' ;;
 
10098
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10099
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10100
        ifc* | ifort*)                  # Intel Fortran compiler
 
10101
          tmp_addflag=' -nofor_main' ;;
 
10102
        esac
 
10103
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10104
 
 
10105
        if test $supports_anon_versioning = yes; then
 
10106
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
10107
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10108
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
10109
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10110
        fi
 
10111
        link_all_deplibs=no
9496
10112
      else
9497
10113
        ld_shlibs=no
9498
10114
      fi
9508
10124
      fi
9509
10125
      ;;
9510
10126
 
9511
 
    solaris* | sysv5*)
 
10127
    solaris*)
9512
10128
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9513
10129
        ld_shlibs=no
9514
10130
        cat <<EOF 1>&2
9529
10145
      fi
9530
10146
      ;;
9531
10147
 
 
10148
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10149
      case `$LD -v 2>&1` in
 
10150
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
 
10151
        ld_shlibs=no
 
10152
        cat <<_LT_EOF 1>&2
 
10153
 
 
10154
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10155
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10156
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10157
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10158
*** your PATH or compiler configuration so that the native linker is
 
10159
*** used, and then restart.
 
10160
 
 
10161
_LT_EOF
 
10162
        ;;
 
10163
        *)
 
10164
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10165
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
10166
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
10167
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
10168
          else
 
10169
            ld_shlibs=no
 
10170
          fi
 
10171
        ;;
 
10172
      esac
 
10173
      ;;
 
10174
 
9532
10175
    sunos4*)
9533
10176
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534
10177
      wlarc=
9536
10179
      hardcode_shlibpath_var=no
9537
10180
      ;;
9538
10181
 
9539
 
  linux*)
9540
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9541
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542
 
        archive_cmds="$tmp_archive_cmds"
9543
 
      supports_anon_versioning=no
9544
 
      case `$LD -v 2>/dev/null` in
9545
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9546
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9547
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9548
 
        *\ 2.11.*) ;; # other 2.11 versions
9549
 
        *) supports_anon_versioning=yes ;;
9550
 
      esac
9551
 
      if test $supports_anon_versioning = yes; then
9552
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9553
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
9555
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9556
 
      else
9557
 
        archive_expsym_cmds="$tmp_archive_cmds"
9558
 
      fi
9559
 
      link_all_deplibs=no
9560
 
    else
9561
 
      ld_shlibs=no
9562
 
    fi
9563
 
    ;;
9564
 
 
9565
10182
    *)
9566
10183
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9567
10184
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572
10189
      ;;
9573
10190
    esac
9574
10191
 
9575
 
    if test "$ld_shlibs" = yes; then
9576
 
      runpath_var=LD_RUN_PATH
9577
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9578
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
9579
 
      # ancient GNU ld didn't support --whole-archive et. al.
9580
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9581
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9582
 
      else
9583
 
        whole_archive_flag_spec=
9584
 
      fi
 
10192
    if test "$ld_shlibs" = no; then
 
10193
      runpath_var=
 
10194
      hardcode_libdir_flag_spec=
 
10195
      export_dynamic_flag_spec=
 
10196
      whole_archive_flag_spec=
9585
10197
    fi
9586
10198
  else
9587
10199
    # PORTME fill in a description of your system's linker (not GNU ld)
9593
10205
      # Note: this linker hardcodes the directories in LIBPATH if there
9594
10206
      # are no directories specified by -L.
9595
10207
      hardcode_minus_L=yes
9596
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
10208
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9597
10209
        # Neither direct hardcoding nor static linking is supported with a
9598
10210
        # broken collect2.
9599
10211
        hardcode_direct=unsupported
9627
10239
            break
9628
10240
          fi
9629
10241
          done
 
10242
          ;;
9630
10243
        esac
9631
10244
 
9632
10245
        exp_sym_flag='-bexport'
9645
10258
      link_all_deplibs=yes
9646
10259
 
9647
10260
      if test "$GCC" = yes; then
9648
 
        case $host_os in aix4.012|aix4.012.*)
 
10261
        case $host_os in aix4.[012]|aix4.[012].*)
9649
10262
        # We only want to do this on AIX 4.2 and lower, the check
9650
10263
        # below for broken collect2 doesn't work under 4.3+
9651
10264
          collect2name=`${CC} -print-prog-name=collect2`
9664
10277
          hardcode_libdir_flag_spec='-L$libdir'
9665
10278
          hardcode_libdir_separator=
9666
10279
          fi
 
10280
          ;;
9667
10281
        esac
9668
10282
        shared_flag='-shared'
 
10283
        if test "$aix_use_runtimelinking" = yes; then
 
10284
          shared_flag="$shared_flag "'${wl}-G'
 
10285
        fi
9669
10286
      else
9670
10287
        # not using gcc
9671
10288
        if test "$host_cpu" = ia64; then
9673
10290
        # chokes on -Wl,-G. The following line is correct:
9674
10291
          shared_flag='-G'
9675
10292
        else
9676
 
        if test "$aix_use_runtimelinking" = yes; then
 
10293
          if test "$aix_use_runtimelinking" = yes; then
9677
10294
            shared_flag='${wl}-G'
9678
10295
          else
9679
10296
            shared_flag='${wl}-bM:SRE'
9680
 
        fi
 
10297
          fi
9681
10298
        fi
9682
10299
      fi
9683
10300
 
9741
10358
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9742
10359
 
9743
10360
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10361
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9745
10362
       else
9746
10363
        if test "$host_cpu" = ia64; then
9747
10364
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9748
10365
          allow_undefined_flag="-z nodefs"
9749
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10366
          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"
9750
10367
        else
9751
10368
         # Determine the default libpath from the value encoded in an empty executable.
9752
10369
         cat >conftest.$ac_ext <<_ACEOF
9805
10422
          # -berok will link without error, but may produce a broken library.
9806
10423
          no_undefined_flag=' ${wl}-bernotok'
9807
10424
          allow_undefined_flag=' ${wl}-berok'
9808
 
          # -bexpall does not export symbols beginning with underscore (_)
9809
 
          always_export_symbols=yes
9810
10425
          # Exported symbols can be pulled into shared objects from archives
9811
 
          whole_archive_flag_spec=' '
 
10426
          whole_archive_flag_spec='$convenience'
9812
10427
          archive_cmds_need_lc=yes
9813
 
          # This is similar to how AIX traditionally builds it's shared libraries.
9814
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10428
          # This is similar to how AIX traditionally builds its shared libraries.
 
10429
          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'
9815
10430
        fi
9816
10431
      fi
9817
10432
      ;;
9824
10439
      ld_shlibs=no
9825
10440
      ;;
9826
10441
 
9827
 
    bsdi4*)
 
10442
    bsdi[45]*)
9828
10443
      export_dynamic_flag_spec=-rdynamic
9829
10444
      ;;
9830
10445
 
9850
10465
      ;;
9851
10466
 
9852
10467
    darwin* | rhapsody*)
9853
 
    if test "$GXX" = yes ; then
 
10468
      case $host_os in
 
10469
        rhapsody* | darwin1.[012])
 
10470
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
10471
         ;;
 
10472
       *) # Darwin 1.3 on
 
10473
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10474
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10475
         else
 
10476
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10477
             10.[012])
 
10478
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10479
               ;;
 
10480
             10.*)
 
10481
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
10482
               ;;
 
10483
           esac
 
10484
         fi
 
10485
         ;;
 
10486
      esac
9854
10487
      archive_cmds_need_lc=no
9855
 
      case "$host_os" in
9856
 
      rhapsody* | darwin1.[012])
9857
 
        allow_undefined_flag='-undefined suppress'
9858
 
        ;;
9859
 
      *) # Darwin 1.3 on
9860
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9861
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9862
 
      else
9863
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9864
 
          10.[012])
9865
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9866
 
            ;;
9867
 
          10.*)
9868
 
            allow_undefined_flag='-undefined dynamic_lookup'
9869
 
            ;;
9870
 
        esac
9871
 
      fi
9872
 
        ;;
9873
 
      esac
9874
 
        lt_int_apple_cc_single_mod=no
9875
 
        output_verbose_link_cmd='echo'
9876
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9877
 
          lt_int_apple_cc_single_mod=yes
9878
 
        fi
9879
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9880
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9881
 
        else
9882
 
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9883
 
      fi
9884
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9885
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9886
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9887
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9888
 
        else
9889
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9890
 
        fi
9891
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9892
10488
      hardcode_direct=no
9893
10489
      hardcode_automatic=yes
9894
10490
      hardcode_shlibpath_var=unsupported
9895
 
      whole_archive_flag_spec='-all_load $convenience'
 
10491
      whole_archive_flag_spec=''
9896
10492
      link_all_deplibs=yes
 
10493
    if test "$GCC" = yes ; then
 
10494
        output_verbose_link_cmd='echo'
 
10495
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10496
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10497
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10498
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10499
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9897
10500
    else
9898
 
      ld_shlibs=no
 
10501
      case $cc_basename in
 
10502
        xlc*)
 
10503
         output_verbose_link_cmd='echo'
 
10504
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10505
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10506
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10507
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10508
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10509
          ;;
 
10510
       *)
 
10511
         ld_shlibs=no
 
10512
          ;;
 
10513
      esac
9899
10514
    fi
9900
10515
      ;;
9901
10516
 
9929
10544
      ;;
9930
10545
 
9931
10546
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9932
 
    freebsd* | kfreebsd*-gnu)
9933
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9934
 
      hardcode_libdir_flag_spec='-R$libdir'
9935
 
      hardcode_direct=yes
9936
 
      hardcode_shlibpath_var=no
 
10547
    freebsd* | dragonfly*)
 
10548
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
10549
      hardcode_libdir_flag_spec='-R$libdir'
 
10550
      hardcode_direct=yes
 
10551
      hardcode_shlibpath_var=no
 
10552
      ;;
 
10553
      
 
10554
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
10555
    kfreebsd*-gnu)
 
10556
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
10557
      hardcode_libdir_flag_spec='-R$libdir'
 
10558
      hardcode_direct=yes
 
10559
      hardcode_shlibpath_var=no
 
10560
      link_all_deplibs=no
9937
10561
      ;;
9938
10562
 
9939
10563
    hpux9*)
9952
10576
      export_dynamic_flag_spec='${wl}-E'
9953
10577
      ;;
9954
10578
 
9955
 
    hpux10* | hpux11*)
9956
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9957
 
        case "$host_cpu" in
9958
 
        hppa*64*|ia64*)
 
10579
    hpux10*)
 
10580
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10581
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10582
      else
 
10583
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10584
      fi
 
10585
      if test "$with_gnu_ld" = no; then
 
10586
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10587
        hardcode_libdir_separator=:
 
10588
 
 
10589
        hardcode_direct=yes
 
10590
        export_dynamic_flag_spec='${wl}-E'
 
10591
 
 
10592
        # hardcode_minus_L: Not really in the search PATH,
 
10593
        # but as the default location of the library.
 
10594
        hardcode_minus_L=yes
 
10595
      fi
 
10596
      ;;
 
10597
 
 
10598
    hpux11*)
 
10599
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10600
        case $host_cpu in
 
10601
        hppa*64*)
9959
10602
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960
10603
          ;;
 
10604
        ia64*)
 
10605
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10606
          ;;
9961
10607
        *)
9962
10608
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9963
10609
          ;;
9964
10610
        esac
9965
10611
      else
9966
 
        case "$host_cpu" in
9967
 
        hppa*64*|ia64*)
9968
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10612
        case $host_cpu in
 
10613
        hppa*64*)
 
10614
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10615
          ;;
 
10616
        ia64*)
 
10617
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969
10618
          ;;
9970
10619
        *)
9971
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10620
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972
10621
          ;;
9973
10622
        esac
9974
10623
      fi
9975
10624
      if test "$with_gnu_ld" = no; then
9976
 
        case "$host_cpu" in
9977
 
        hppa*64*)
9978
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10625
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10626
        hardcode_libdir_separator=:
 
10627
 
 
10628
        case $host_cpu in
 
10629
        hppa*64*|ia64*)
9979
10630
          hardcode_libdir_flag_spec_ld='+b $libdir'
9980
 
          hardcode_libdir_separator=:
9981
 
          hardcode_direct=no
9982
 
          hardcode_shlibpath_var=no
9983
 
          ;;
9984
 
        ia64*)
9985
 
          hardcode_libdir_flag_spec='-L$libdir'
9986
 
          hardcode_direct=no
9987
 
          hardcode_shlibpath_var=no
9988
 
 
9989
 
          # hardcode_minus_L: Not really in the search PATH,
9990
 
          # but as the default location of the library.
9991
 
          hardcode_minus_L=yes
 
10631
          hardcode_direct=no
 
10632
          hardcode_shlibpath_var=no
9992
10633
          ;;
9993
10634
        *)
9994
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995
 
          hardcode_libdir_separator=:
9996
10635
          hardcode_direct=yes
9997
10636
          export_dynamic_flag_spec='${wl}-E'
9998
10637
 
10040
10679
      hardcode_shlibpath_var=no
10041
10680
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10042
10681
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10682
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10043
10683
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044
10684
        export_dynamic_flag_spec='${wl}-E'
10045
10685
      else
10085
10725
        allow_undefined_flag=' -expect_unresolved \*'
10086
10726
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10087
10727
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10088
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
10728
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10089
10729
 
10090
10730
        # Both c and cxx compiler support -rpath directly
10091
10731
        hardcode_libdir_flag_spec='-rpath $libdir'
10093
10733
      hardcode_libdir_separator=:
10094
10734
      ;;
10095
10735
 
10096
 
    sco3.2v5*)
10097
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098
 
      hardcode_shlibpath_var=no
10099
 
      export_dynamic_flag_spec='${wl}-Bexport'
10100
 
      runpath_var=LD_RUN_PATH
10101
 
      hardcode_runpath_var=yes
10102
 
      ;;
10103
 
 
10104
10736
    solaris*)
10105
10737
      no_undefined_flag=' -z text'
10106
10738
      if test "$GCC" = yes; then
 
10739
        wlarc='${wl}'
10107
10740
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10108
10741
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10109
10742
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10110
10743
      else
 
10744
        wlarc=''
10111
10745
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112
10746
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10113
10747
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10116
10750
      hardcode_shlibpath_var=no
10117
10751
      case $host_os in
10118
10752
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10119
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10120
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10753
      *)
 
10754
        # The compiler driver will combine linker options so we
 
10755
        # cannot just pass the convience library names through
 
10756
        # without $wl, iff we do not link with $LD.
 
10757
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
10758
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10759
        case $wlarc in
 
10760
        '')
 
10761
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10762
        *)
 
10763
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
10764
        esac ;;
10121
10765
      esac
10122
10766
      link_all_deplibs=yes
10123
10767
      ;;
10174
10818
      fi
10175
10819
      ;;
10176
10820
 
10177
 
    sysv4.2uw2*)
10178
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10179
 
      hardcode_direct=yes
10180
 
      hardcode_minus_L=no
10181
 
      hardcode_shlibpath_var=no
10182
 
      hardcode_runpath_var=yes
10183
 
      runpath_var=LD_RUN_PATH
10184
 
      ;;
10185
 
 
10186
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10187
 
      no_undefined_flag='${wl}-z ${wl}text'
10188
 
      if test "$GCC" = yes; then
10189
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10190
 
      else
10191
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10192
 
      fi
10193
 
      runpath_var='LD_RUN_PATH'
10194
 
      hardcode_shlibpath_var=no
10195
 
      ;;
10196
 
 
10197
 
    sysv5*)
10198
 
      no_undefined_flag=' -z text'
10199
 
      # $CC -shared without GNU ld will not create a library from C++
10200
 
      # object files and a static libstdc++, better avoid it by now
10201
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10203
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10204
 
      hardcode_libdir_flag_spec=
10205
 
      hardcode_shlibpath_var=no
10206
 
      runpath_var='LD_RUN_PATH'
 
10821
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
10822
      no_undefined_flag='${wl}-z,text'
 
10823
      archive_cmds_need_lc=no
 
10824
      hardcode_shlibpath_var=no
 
10825
      runpath_var='LD_RUN_PATH'
 
10826
 
 
10827
      if test "$GCC" = yes; then
 
10828
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10829
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10830
      else
 
10831
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10832
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10833
      fi
 
10834
      ;;
 
10835
 
 
10836
    sysv5* | sco3.2v5* | sco5v6*)
 
10837
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10838
      # link with -lc, and that would cause any symbols used from libc to
 
10839
      # always be unresolved, which means just about no library would
 
10840
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10841
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10842
      # as -z defs.
 
10843
      no_undefined_flag='${wl}-z,text'
 
10844
      allow_undefined_flag='${wl}-z,nodefs'
 
10845
      archive_cmds_need_lc=no
 
10846
      hardcode_shlibpath_var=no
 
10847
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
10848
      hardcode_libdir_separator=':'
 
10849
      link_all_deplibs=yes
 
10850
      export_dynamic_flag_spec='${wl}-Bexport'
 
10851
      runpath_var='LD_RUN_PATH'
 
10852
 
 
10853
      if test "$GCC" = yes; then
 
10854
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10855
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10856
      else
 
10857
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10858
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10859
      fi
10207
10860
      ;;
10208
10861
 
10209
10862
    uts4*)
10222
10875
echo "${ECHO_T}$ld_shlibs" >&6
10223
10876
test "$ld_shlibs" = no && can_build_shared=no
10224
10877
 
10225
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10226
 
if test "$GCC" = yes; then
10227
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10228
 
fi
10229
 
 
10230
10878
#
10231
10879
# Do we need to explicitly link libc?
10232
10880
#
10259
10907
        libobjs=conftest.$ac_objext
10260
10908
        deplibs=
10261
10909
        wl=$lt_prog_compiler_wl
 
10910
        pic_flag=$lt_prog_compiler_pic
10262
10911
        compiler_flags=-v
10263
10912
        linker_flags=-v
10264
10913
        verstring=
10391
11040
  shlibpath_var=LIBRARY_PATH
10392
11041
  ;;
10393
11042
 
10394
 
bsdi4*)
 
11043
bsdi[45]*)
10395
11044
  version_type=linux
10396
11045
  need_version=no
10397
11046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419
11068
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10420
11069
      dldir=$destdir/`dirname \$dlpath`~
10421
11070
      test -d \$dldir || mkdir -p \$dldir~
10422
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11071
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11072
      chmod a+x \$dldir/$dlname'
10423
11073
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10424
11074
      dlpath=$dir/\$dldll~
10425
11075
       $rm \$dlpath'
10449
11099
      ;;
10450
11100
    pw32*)
10451
11101
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10452
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11102
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10453
11103
      ;;
10454
11104
    esac
10455
11105
    ;;
10472
11122
  soname_spec='${libname}${release}${major}$shared_ext'
10473
11123
  shlibpath_overrides_runpath=yes
10474
11124
  shlibpath_var=DYLD_LIBRARY_PATH
10475
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11125
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10476
11126
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10477
11127
  if test "$GCC" = yes; then
10478
11128
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10507
11157
  dynamic_linker='GNU ld.so'
10508
11158
  ;;
10509
11159
 
10510
 
freebsd*)
10511
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11160
freebsd* | dragonfly*)
 
11161
  # DragonFly does not have aout.  When/if they implement a new
 
11162
  # versioning mechanism, adjust this.
 
11163
  if test -x /usr/bin/objformat; then
 
11164
    objformat=`/usr/bin/objformat`
 
11165
  else
 
11166
    case $host_os in
 
11167
    freebsd[123]*) objformat=aout ;;
 
11168
    *) objformat=elf ;;
 
11169
    esac
 
11170
  fi
10512
11171
  version_type=freebsd-$objformat
10513
11172
  case $version_type in
10514
11173
    freebsd-elf*)
10526
11185
  freebsd2*)
10527
11186
    shlibpath_overrides_runpath=yes
10528
11187
    ;;
10529
 
  freebsd3.01* | freebsdelf3.01*)
 
11188
  freebsd3.[01]* | freebsdelf3.[01]*)
10530
11189
    shlibpath_overrides_runpath=yes
10531
11190
    hardcode_into_libs=yes
10532
11191
    ;;
10533
 
  *) # from 3.2 on
 
11192
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11193
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10534
11194
    shlibpath_overrides_runpath=no
10535
11195
    hardcode_into_libs=yes
10536
11196
    ;;
 
11197
  freebsd*) # from 4.6 on
 
11198
    shlibpath_overrides_runpath=yes
 
11199
    hardcode_into_libs=yes
 
11200
    ;;
10537
11201
  esac
10538
11202
  ;;
10539
11203
 
10553
11217
  version_type=sunos
10554
11218
  need_lib_prefix=no
10555
11219
  need_version=no
10556
 
  case "$host_cpu" in
 
11220
  case $host_cpu in
10557
11221
  ia64*)
10558
11222
    shrext_cmds='.so'
10559
11223
    hardcode_into_libs=yes
10593
11257
  postinstall_cmds='chmod 555 $lib'
10594
11258
  ;;
10595
11259
 
 
11260
interix3*)
 
11261
  version_type=linux
 
11262
  need_lib_prefix=no
 
11263
  need_version=no
 
11264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11265
  soname_spec='${libname}${release}${shared_ext}$major'
 
11266
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11267
  shlibpath_var=LD_LIBRARY_PATH
 
11268
  shlibpath_overrides_runpath=no
 
11269
  hardcode_into_libs=yes
 
11270
  ;;
 
11271
 
10596
11272
irix5* | irix6* | nonstopux*)
10597
11273
  case $host_os in
10598
11274
    nonstopux*) version_type=nonstopux ;;
10652
11328
 
10653
11329
  # Append ld.so.conf contents to the search path
10654
11330
  if test -f /etc/ld.so.conf; then
10655
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11331
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10656
11332
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10657
11333
  fi
10658
11334
 
10726
11402
 
10727
11403
openbsd*)
10728
11404
  version_type=sunos
 
11405
  sys_lib_dlsearch_path_spec="/usr/lib"
10729
11406
  need_lib_prefix=no
10730
 
  need_version=yes
 
11407
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11408
  case $host_os in
 
11409
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
11410
    *)                         need_version=no  ;;
 
11411
  esac
10731
11412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10732
11413
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10733
11414
  shlibpath_var=LD_LIBRARY_PATH
10765
11446
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10766
11447
  ;;
10767
11448
 
10768
 
sco3.2v5*)
10769
 
  version_type=osf
10770
 
  soname_spec='${libname}${release}${shared_ext}$major'
10771
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772
 
  shlibpath_var=LD_LIBRARY_PATH
10773
 
  ;;
10774
 
 
10775
11449
solaris*)
10776
11450
  version_type=linux
10777
11451
  need_lib_prefix=no
10797
11471
  need_version=yes
10798
11472
  ;;
10799
11473
 
10800
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11474
sysv4 | sysv4.3*)
10801
11475
  version_type=linux
10802
11476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803
11477
  soname_spec='${libname}${release}${shared_ext}$major'
10830
11504
  fi
10831
11505
  ;;
10832
11506
 
 
11507
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11508
  version_type=freebsd-elf
 
11509
  need_lib_prefix=no
 
11510
  need_version=no
 
11511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11512
  soname_spec='${libname}${release}${shared_ext}$major'
 
11513
  shlibpath_var=LD_LIBRARY_PATH
 
11514
  hardcode_into_libs=yes
 
11515
  if test "$with_gnu_ld" = yes; then
 
11516
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11517
    shlibpath_overrides_runpath=no
 
11518
  else
 
11519
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11520
    shlibpath_overrides_runpath=yes
 
11521
    case $host_os in
 
11522
      sco3.2v5*)
 
11523
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11524
        ;;
 
11525
    esac
 
11526
  fi
 
11527
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11528
  ;;
 
11529
 
10833
11530
uts4*)
10834
11531
  version_type=linux
10835
11532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845
11542
echo "${ECHO_T}$dynamic_linker" >&6
10846
11543
test "$dynamic_linker" = no && can_build_shared=no
10847
11544
 
 
11545
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11546
if test "$GCC" = yes; then
 
11547
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11548
fi
 
11549
 
10848
11550
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10849
11551
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10850
11552
hardcode_action=
10851
11553
if test -n "$hardcode_libdir_flag_spec" || \
10852
 
   test -n "$runpath_var " || \
10853
 
   test "X$hardcode_automatic"="Xyes" ; then
 
11554
   test -n "$runpath_var" || \
 
11555
   test "X$hardcode_automatic" = "Xyes" ; then
10854
11556
 
10855
11557
  # We can hardcode non-existant directories.
10856
11558
  if test "$hardcode_direct" != no &&
11493
12195
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11494
12196
 
11495
12197
    save_LDFLAGS="$LDFLAGS"
11496
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12198
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11497
12199
 
11498
12200
    save_LIBS="$LIBS"
11499
12201
    LIBS="$lt_cv_dlopen_libs $LIBS"
11566
12268
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567
12269
      /* dlclose (self); */
11568
12270
    }
 
12271
  else
 
12272
    puts (dlerror ());
11569
12273
 
11570
12274
    exit (status);
11571
12275
}
11575
12279
  ac_status=$?
11576
12280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577
12281
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578
 
    (./conftest; exit; ) 2>/dev/null
 
12282
    (./conftest; exit; ) >&5 2>/dev/null
11579
12283
    lt_status=$?
11580
12284
    case x$lt_status in
11581
12285
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582
12286
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12287
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11584
12288
    esac
11585
12289
  else :
11586
12290
    # compilation failed
11595
12299
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11596
12300
 
11597
12301
    if test "x$lt_cv_dlopen_self" = xyes; then
11598
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12302
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11599
12303
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600
12304
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11601
12305
if test "${lt_cv_dlopen_self_static+set}" = set; then
11664
12368
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665
12369
      /* dlclose (self); */
11666
12370
    }
 
12371
  else
 
12372
    puts (dlerror ());
11667
12373
 
11668
12374
    exit (status);
11669
12375
}
11673
12379
  ac_status=$?
11674
12380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675
12381
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11676
 
    (./conftest; exit; ) 2>/dev/null
 
12382
    (./conftest; exit; ) >&5 2>/dev/null
11677
12383
    lt_status=$?
11678
12384
    case x$lt_status in
11679
12385
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11680
12386
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11681
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12387
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11682
12388
    esac
11683
12389
  else :
11684
12390
    # compilation failed
11711
12417
fi
11712
12418
 
11713
12419
 
11714
 
# Report which librarie types wil actually be built
 
12420
# Report which library types will actually be built
11715
12421
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11716
12422
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11717
12423
echo "$as_me:$LINENO: result: $can_build_shared" >&5
11723
12429
 
11724
12430
# On AIX, shared libraries and static libraries use the same namespace, and
11725
12431
# are all built from PIC.
11726
 
case "$host_os" in
 
12432
case $host_os in
11727
12433
aix3*)
11728
12434
  test "$enable_shared" = yes && enable_static=no
11729
12435
  if test -n "$RANLIB"; then
11736
12442
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11737
12443
    test "$enable_shared" = yes && enable_static=no
11738
12444
  fi
11739
 
  ;;
11740
 
  darwin* | rhapsody*)
11741
 
  if test "$GCC" = yes; then
11742
 
    archive_cmds_need_lc=no
11743
 
    case "$host_os" in
11744
 
    rhapsody* | darwin1.[012])
11745
 
      allow_undefined_flag='-undefined suppress'
11746
 
      ;;
11747
 
    *) # Darwin 1.3 on
11748
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11749
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
11750
 
      else
11751
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
11752
 
          10.[012])
11753
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
11754
 
            ;;
11755
 
          10.*)
11756
 
            allow_undefined_flag='-undefined dynamic_lookup'
11757
 
            ;;
11758
 
        esac
11759
 
      fi
11760
 
      ;;
11761
 
    esac
11762
 
    output_verbose_link_cmd='echo'
11763
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11764
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11765
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11766
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11767
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11768
 
    hardcode_direct=no
11769
 
    hardcode_automatic=yes
11770
 
    hardcode_shlibpath_var=unsupported
11771
 
    whole_archive_flag_spec='-all_load $convenience'
11772
 
    link_all_deplibs=yes
11773
 
  else
11774
 
    ld_shlibs=no
11775
 
  fi
11776
12445
    ;;
11777
12446
esac
11778
12447
echo "$as_me:$LINENO: result: $enable_shared" >&5
11798
12467
  # Now quote all the things that may contain metacharacters while being
11799
12468
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11800
12469
  # variables and quote the copies for generation of the libtool script.
11801
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12470
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11802
12471
    SED SHELL STRIP \
11803
12472
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11804
12473
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11902
12571
#
11903
12572
# You should have received a copy of the GNU General Public License
11904
12573
# along with this program; if not, write to the Free Software
11905
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
12574
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11906
12575
#
11907
12576
# As a special exception to the GNU General Public License, if you
11908
12577
# distribute this file as part of a program that contains a
11913
12582
SED=$lt_SED
11914
12583
 
11915
12584
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11916
 
Xsed="$SED -e s/^X//"
 
12585
Xsed="$SED -e 1s/^X//"
11917
12586
 
11918
12587
# The HP-UX ksh and POSIX shell print the target directory to stdout
11919
12588
# if CDPATH is set.
11920
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
12589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11921
12590
 
11922
12591
# The names of the tagged configurations supported by this script.
11923
12592
available_tags=
11947
12616
# The host system.
11948
12617
host_alias=$host_alias
11949
12618
host=$host
 
12619
host_os=$host_os
 
12620
 
 
12621
# The build system.
 
12622
build_alias=$build_alias
 
12623
build=$build
 
12624
build_os=$build_os
11950
12625
 
11951
12626
# An echo program that does not interpret backslashes.
11952
12627
echo=$lt_echo
11958
12633
# A C compiler.
11959
12634
LTCC=$lt_LTCC
11960
12635
 
 
12636
# LTCC compiler flags.
 
12637
LTCFLAGS=$lt_LTCFLAGS
 
12638
 
11961
12639
# A language-specific compiler.
11962
12640
CC=$lt_compiler
11963
12641
 
12023
12701
# Does compiler simultaneously support -c and -o options?
12024
12702
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12025
12703
 
12026
 
# Must we lock files when doing compilation ?
 
12704
# Must we lock files when doing compilation?
12027
12705
need_locks=$lt_need_locks
12028
12706
 
12029
12707
# Do we need the lib prefix for modules?
12288
12966
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12289
12967
    fi
12290
12968
  fi
 
12969
  if test -z "$LTCFLAGS"; then
 
12970
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
12971
  fi
12291
12972
 
12292
12973
  # Extract list of available tagged configurations in $ofile.
12293
12974
  # Note that this assumes the entire list is on one line.
12318
12999
 
12319
13000
      case $tagname in
12320
13001
      CXX)
12321
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
13002
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
13003
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
13004
            (test "X$CXX" != "Xg++"))) ; then
12322
13005
          ac_ext=cc
12323
13006
ac_cpp='$CXXCPP $CPPFLAGS'
12324
13007
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338
13021
hardcode_libdir_flag_spec_ld_CXX=
12339
13022
hardcode_libdir_separator_CXX=
12340
13023
hardcode_minus_L_CXX=no
 
13024
hardcode_shlibpath_var_CXX=unsupported
12341
13025
hardcode_automatic_CXX=no
12342
13026
module_cmds_CXX=
12343
13027
module_expsym_cmds_CXX=
12355
13039
compiler_lib_search_path_CXX=
12356
13040
 
12357
13041
# Source file extension for C++ test sources.
12358
 
ac_ext=cc
 
13042
ac_ext=cpp
12359
13043
 
12360
13044
# Object file extension for compiled C++ test sources.
12361
13045
objext=o
12365
13049
lt_simple_compile_test_code="int some_variable = 0;\n"
12366
13050
 
12367
13051
# Code to be used in simple link tests
12368
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
13052
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12369
13053
 
12370
13054
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12371
13055
 
12372
13056
# If no C compiler was specified, use CC.
12373
13057
LTCC=${LTCC-"$CC"}
12374
13058
 
 
13059
# If no C compiler flags were specified, use CFLAGS.
 
13060
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13061
 
12375
13062
# Allow CC to be a program name with arguments.
12376
13063
compiler=$CC
12377
13064
 
12378
13065
 
 
13066
# save warnings/boilerplate of simple test code
 
13067
ac_outfile=conftest.$ac_objext
 
13068
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13069
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13070
_lt_compiler_boilerplate=`cat conftest.err`
 
13071
$rm conftest*
 
13072
 
 
13073
ac_outfile=conftest.$ac_objext
 
13074
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13075
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13076
_lt_linker_boilerplate=`cat conftest.err`
 
13077
$rm conftest*
 
13078
 
 
13079
 
12379
13080
# Allow CC to be a program name with arguments.
12380
13081
lt_save_CC=$CC
12381
13082
lt_save_LD=$LD
12386
13087
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12387
13088
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12388
13089
else
12389
 
  unset lt_cv_prog_gnu_ld
 
13090
  $as_unset lt_cv_prog_gnu_ld
12390
13091
fi
12391
13092
if test -n "${lt_cv_path_LDCXX+set}"; then
12392
13093
  lt_cv_path_LD=$lt_cv_path_LDCXX
12393
13094
else
12394
 
  unset lt_cv_path_LD
 
13095
  $as_unset lt_cv_path_LD
12395
13096
fi
12396
13097
test -z "${LDCXX+set}" || LD=$LDCXX
12397
13098
CC=${CXX-"c++"}
12398
13099
compiler=$CC
12399
13100
compiler_CXX=$CC
12400
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13101
for cc_temp in $compiler""; do
 
13102
  case $cc_temp in
 
13103
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13104
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13105
    \-*) ;;
 
13106
    *) break;;
 
13107
  esac
 
13108
done
 
13109
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13110
 
12401
13111
 
12402
13112
# We don't want -fno-exception wen compiling C++ code, so set the
12403
13113
# no_builtin_flag separately
12468
13178
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12469
13179
      lt_cv_path_LD="$ac_dir/$ac_prog"
12470
13180
      # Check to see if the program is GNU ld.  I'd rather use --version,
12471
 
      # but apparently some GNU ld's only accept -v.
 
13181
      # but apparently some variants of GNU ld only accept -v.
12472
13182
      # Break only if it was the GNU/non-GNU ld that we prefer.
12473
13183
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12474
13184
      *GNU* | *'with BFD'*)
12502
13212
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12503
13213
  echo $ECHO_N "(cached) $ECHO_C" >&6
12504
13214
else
12505
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
13215
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12506
13216
case `$LD -v 2>&1 </dev/null` in
12507
13217
*GNU* | *'with BFD'*)
12508
13218
  lt_cv_prog_gnu_ld=yes
12593
13303
            ;;
12594
13304
          esac
12595
13305
        done
 
13306
        ;;
12596
13307
      esac
12597
13308
 
12598
13309
      exp_sym_flag='-bexport'
12611
13322
    link_all_deplibs_CXX=yes
12612
13323
 
12613
13324
    if test "$GXX" = yes; then
12614
 
      case $host_os in aix4.012|aix4.012.*)
 
13325
      case $host_os in aix4.[012]|aix4.[012].*)
12615
13326
      # We only want to do this on AIX 4.2 and lower, the check
12616
13327
      # below for broken collect2 doesn't work under 4.3+
12617
13328
        collect2name=`${CC} -print-prog-name=collect2`
12630
13341
          hardcode_libdir_flag_spec_CXX='-L$libdir'
12631
13342
          hardcode_libdir_separator_CXX=
12632
13343
        fi
 
13344
        ;;
12633
13345
      esac
12634
13346
      shared_flag='-shared'
 
13347
      if test "$aix_use_runtimelinking" = yes; then
 
13348
        shared_flag="$shared_flag "'${wl}-G'
 
13349
      fi
12635
13350
    else
12636
13351
      # not using gcc
12637
13352
      if test "$host_cpu" = ia64; then
12708
13423
 
12709
13424
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12710
13425
 
12711
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13426
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12712
13427
     else
12713
13428
      if test "$host_cpu" = ia64; then
12714
13429
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12715
13430
        allow_undefined_flag_CXX="-z nodefs"
12716
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
13431
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12717
13432
      else
12718
13433
        # Determine the default libpath from the value encoded in an empty executable.
12719
13434
        cat >conftest.$ac_ext <<_ACEOF
12772
13487
        # -berok will link without error, but may produce a broken library.
12773
13488
        no_undefined_flag_CXX=' ${wl}-bernotok'
12774
13489
        allow_undefined_flag_CXX=' ${wl}-berok'
12775
 
        # -bexpall does not export symbols beginning with underscore (_)
12776
 
        always_export_symbols_CXX=yes
12777
13490
        # Exported symbols can be pulled into shared objects from archives
12778
 
        whole_archive_flag_spec_CXX=' '
 
13491
        whole_archive_flag_spec_CXX='$convenience'
12779
13492
        archive_cmds_need_lc_CXX=yes
12780
 
        # This is similar to how AIX traditionally builds it's shared libraries.
12781
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13493
        # This is similar to how AIX traditionally builds its shared libraries.
 
13494
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12782
13495
      fi
12783
13496
    fi
12784
13497
    ;;
 
13498
 
 
13499
  beos*)
 
13500
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13501
      allow_undefined_flag_CXX=unsupported
 
13502
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13503
      # support --undefined.  This deserves some investigation.  FIXME
 
13504
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13505
    else
 
13506
      ld_shlibs_CXX=no
 
13507
    fi
 
13508
    ;;
 
13509
 
12785
13510
  chorus*)
12786
13511
    case $cc_basename in
12787
13512
      *)
12800
13525
    enable_shared_with_static_runtimes_CXX=yes
12801
13526
 
12802
13527
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12803
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13528
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12804
13529
      # If the export-symbols file already is a .def file (1st line
12805
13530
      # is EXPORTS), use it as is; otherwise, prepend...
12806
13531
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12809
13534
        echo EXPORTS > $output_objdir/$soname.def;
12810
13535
        cat $export_symbols >> $output_objdir/$soname.def;
12811
13536
      fi~
12812
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13537
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12813
13538
    else
12814
13539
      ld_shlibs_CXX=no
12815
13540
    fi
12816
13541
  ;;
12817
 
 
12818
 
  darwin* | rhapsody*)
12819
 
  if test "$GXX" = yes; then
12820
 
    archive_cmds_need_lc_CXX=no
12821
 
    case "$host_os" in
12822
 
    rhapsody* | darwin1.[012])
12823
 
      allow_undefined_flag_CXX='-undefined suppress'
12824
 
      ;;
12825
 
    *) # Darwin 1.3 on
12826
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12827
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12828
 
      else
12829
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
12830
 
          10.[012])
12831
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12832
 
            ;;
12833
 
          10.*)
12834
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
12835
 
            ;;
 
13542
      darwin* | rhapsody*)
 
13543
        case $host_os in
 
13544
        rhapsody* | darwin1.[012])
 
13545
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
13546
         ;;
 
13547
       *) # Darwin 1.3 on
 
13548
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13549
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13550
         else
 
13551
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13552
             10.[012])
 
13553
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13554
               ;;
 
13555
             10.*)
 
13556
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
13557
               ;;
 
13558
           esac
 
13559
         fi
 
13560
         ;;
12836
13561
        esac
12837
 
      fi
12838
 
      ;;
12839
 
    esac
12840
 
    lt_int_apple_cc_single_mod=no
12841
 
    output_verbose_link_cmd='echo'
12842
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12843
 
      lt_int_apple_cc_single_mod=yes
12844
 
    fi
12845
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12846
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12847
 
    else
12848
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12849
 
    fi
12850
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13562
      archive_cmds_need_lc_CXX=no
 
13563
      hardcode_direct_CXX=no
 
13564
      hardcode_automatic_CXX=yes
 
13565
      hardcode_shlibpath_var_CXX=unsupported
 
13566
      whole_archive_flag_spec_CXX=''
 
13567
      link_all_deplibs_CXX=yes
12851
13568
 
12852
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12853
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12854
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12855
 
    else
12856
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12857
 
    fi
12858
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12859
 
    hardcode_direct_CXX=no
12860
 
    hardcode_automatic_CXX=yes
12861
 
    hardcode_shlibpath_var_CXX=unsupported
12862
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
12863
 
    link_all_deplibs_CXX=yes
12864
 
  else
12865
 
    ld_shlibs_CXX=no
12866
 
  fi
12867
 
    ;;
 
13569
    if test "$GXX" = yes ; then
 
13570
      lt_int_apple_cc_single_mod=no
 
13571
      output_verbose_link_cmd='echo'
 
13572
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
13573
       lt_int_apple_cc_single_mod=yes
 
13574
      fi
 
13575
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13576
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13577
      else
 
13578
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13579
        fi
 
13580
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13581
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13582
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13583
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13584
          else
 
13585
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13586
          fi
 
13587
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13588
      else
 
13589
      case $cc_basename in
 
13590
        xlc*)
 
13591
         output_verbose_link_cmd='echo'
 
13592
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13593
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13594
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13595
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13596
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13597
          ;;
 
13598
       *)
 
13599
         ld_shlibs_CXX=no
 
13600
          ;;
 
13601
      esac
 
13602
      fi
 
13603
        ;;
12868
13604
 
12869
13605
  dgux*)
12870
13606
    case $cc_basename in
12871
 
      ec++)
 
13607
      ec++*)
12872
13608
        # FIXME: insert proper C++ library support
12873
13609
        ld_shlibs_CXX=no
12874
13610
        ;;
12875
 
      ghcx)
 
13611
      ghcx*)
12876
13612
        # Green Hills C++ Compiler
12877
13613
        # FIXME: insert proper C++ library support
12878
13614
        ld_shlibs_CXX=no
12883
13619
        ;;
12884
13620
    esac
12885
13621
    ;;
12886
 
  freebsd12*)
 
13622
  freebsd[12]*)
12887
13623
    # C++ shared libraries reported to be fairly broken before switch to ELF
12888
13624
    ld_shlibs_CXX=no
12889
13625
    ;;
12890
13626
  freebsd-elf*)
12891
13627
    archive_cmds_need_lc_CXX=no
12892
13628
    ;;
12893
 
  freebsd* | kfreebsd*-gnu)
 
13629
  freebsd* | kfreebsd*-gnu | dragonfly*)
12894
13630
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12895
13631
    # conventions
12896
13632
    ld_shlibs_CXX=yes
12907
13643
                                # location of the library.
12908
13644
 
12909
13645
    case $cc_basename in
12910
 
    CC)
 
13646
    CC*)
12911
13647
      # FIXME: insert proper C++ library support
12912
13648
      ld_shlibs_CXX=no
12913
13649
      ;;
12914
 
    aCC)
 
13650
    aCC*)
12915
13651
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12916
13652
      # Commands to make compiler produce verbose output that lists
12917
13653
      # what "hidden" libraries, object files and flags are used when
12921
13657
      # explicitly linking system object files so we need to strip them
12922
13658
      # from the output so that they don't get included in the library
12923
13659
      # dependencies.
12924
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
13660
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12925
13661
      ;;
12926
13662
    *)
12927
13663
      if test "$GXX" = yes; then
12935
13671
    ;;
12936
13672
  hpux10*|hpux11*)
12937
13673
    if test $with_gnu_ld = no; then
12938
 
      case "$host_cpu" in
12939
 
      hppa*64*)
12940
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13674
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13675
      hardcode_libdir_separator_CXX=:
 
13676
 
 
13677
      case $host_cpu in
 
13678
      hppa*64*|ia64*)
12941
13679
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12942
 
        hardcode_libdir_separator_CXX=:
12943
 
        ;;
12944
 
      ia64*)
12945
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
12946
13680
        ;;
12947
13681
      *)
12948
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12949
 
        hardcode_libdir_separator_CXX=:
12950
13682
        export_dynamic_flag_spec_CXX='${wl}-E'
12951
13683
        ;;
12952
13684
      esac
12953
13685
    fi
12954
 
    case "$host_cpu" in
12955
 
    hppa*64*)
12956
 
      hardcode_direct_CXX=no
12957
 
      hardcode_shlibpath_var_CXX=no
12958
 
      ;;
12959
 
    ia64*)
12960
 
      hardcode_direct_CXX=no
12961
 
      hardcode_shlibpath_var_CXX=no
12962
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
12963
 
                                              # but as the default
12964
 
                                              # location of the library.
 
13686
    case $host_cpu in
 
13687
    hppa*64*|ia64*)
 
13688
      hardcode_direct_CXX=no
 
13689
      hardcode_shlibpath_var_CXX=no
12965
13690
      ;;
12966
13691
    *)
12967
13692
      hardcode_direct_CXX=yes
12972
13697
    esac
12973
13698
 
12974
13699
    case $cc_basename in
12975
 
      CC)
 
13700
      CC*)
12976
13701
        # FIXME: insert proper C++ library support
12977
13702
        ld_shlibs_CXX=no
12978
13703
        ;;
12979
 
      aCC)
12980
 
        case "$host_cpu" in
12981
 
        hppa*64*|ia64*)
12982
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13704
      aCC*)
 
13705
        case $host_cpu in
 
13706
        hppa*64*)
 
13707
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13708
          ;;
 
13709
        ia64*)
 
13710
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12983
13711
          ;;
12984
13712
        *)
12985
13713
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998
13726
      *)
12999
13727
        if test "$GXX" = yes; then
13000
13728
          if test $with_gnu_ld = no; then
13001
 
            case "$host_cpu" in
13002
 
            ia64*|hppa*64*)
13003
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13729
            case $host_cpu in
 
13730
            hppa*64*)
 
13731
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13732
              ;;
 
13733
            ia64*)
 
13734
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004
13735
              ;;
13005
13736
            *)
13006
13737
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014
13745
        ;;
13015
13746
    esac
13016
13747
    ;;
 
13748
  interix3*)
 
13749
    hardcode_direct_CXX=no
 
13750
    hardcode_shlibpath_var_CXX=no
 
13751
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13752
    export_dynamic_flag_spec_CXX='${wl}-E'
 
13753
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13754
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13755
    # default) and relocated if they conflict, which is a slow very memory
 
13756
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
13757
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13758
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13759
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13760
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13761
    ;;
13017
13762
  irix5* | irix6*)
13018
13763
    case $cc_basename in
13019
 
      CC)
 
13764
      CC*)
13020
13765
        # SGI C++
13021
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
13766
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13022
13767
 
13023
13768
        # Archives containing C++ object files must be created using
13024
13769
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13029
13774
      *)
13030
13775
        if test "$GXX" = yes; then
13031
13776
          if test "$with_gnu_ld" = no; then
13032
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13777
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13033
13778
          else
13034
13779
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13035
13780
          fi
13042
13787
    ;;
13043
13788
  linux*)
13044
13789
    case $cc_basename in
13045
 
      KCC)
 
13790
      KCC*)
13046
13791
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13047
13792
 
13048
13793
        # KCC will only create a shared library if the output file
13067
13812
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13068
13813
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13069
13814
        ;;
13070
 
      icpc)
 
13815
      icpc*)
13071
13816
        # Intel C++
13072
13817
        with_gnu_ld=yes
 
13818
        # version 8.0 and above of icpc choke on multiply defined symbols
 
13819
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13820
        # earlier do not add the objects themselves.
 
13821
        case `$CC -V 2>&1` in
 
13822
        *"Version 7."*)
 
13823
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13824
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13825
          ;;
 
13826
        *)  # Version 8.0 or newer
 
13827
          tmp_idyn=
 
13828
          case $host_cpu in
 
13829
            ia64*) tmp_idyn=' -i_dynamic';;
 
13830
          esac
 
13831
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13832
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13833
          ;;
 
13834
        esac
13073
13835
        archive_cmds_need_lc_CXX=no
13074
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13076
13836
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13077
13837
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13078
13838
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13079
13839
        ;;
13080
 
      cxx)
 
13840
      pgCC*)
 
13841
        # Portland Group C++ compiler
 
13842
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13843
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13844
 
 
13845
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13846
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13847
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13848
        ;;
 
13849
      cxx*)
13081
13850
        # Compaq C++
13082
13851
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13083
13852
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13108
13877
    ;;
13109
13878
  mvs*)
13110
13879
    case $cc_basename in
13111
 
      cxx)
 
13880
      cxx*)
13112
13881
        # FIXME: insert proper C++ library support
13113
13882
        ld_shlibs_CXX=no
13114
13883
        ;;
13129
13898
    # Workaround some broken pre-1.5 toolchains
13130
13899
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13131
13900
    ;;
 
13901
  openbsd2*)
 
13902
    # C++ shared libraries are fairly broken
 
13903
    ld_shlibs_CXX=no
 
13904
    ;;
 
13905
  openbsd*)
 
13906
    hardcode_direct_CXX=yes
 
13907
    hardcode_shlibpath_var_CXX=no
 
13908
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13909
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13910
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13911
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13912
      export_dynamic_flag_spec_CXX='${wl}-E'
 
13913
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13914
    fi
 
13915
    output_verbose_link_cmd='echo'
 
13916
    ;;
13132
13917
  osf3*)
13133
13918
    case $cc_basename in
13134
 
      KCC)
 
13919
      KCC*)
13135
13920
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13136
13921
 
13137
13922
        # KCC will only create a shared library if the output file
13147
13932
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13148
13933
 
13149
13934
        ;;
13150
 
      RCC)
 
13935
      RCC*)
13151
13936
        # Rational C++ 2.4.1
13152
13937
        # FIXME: insert proper C++ library support
13153
13938
        ld_shlibs_CXX=no
13154
13939
        ;;
13155
 
      cxx)
 
13940
      cxx*)
13156
13941
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13157
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
13942
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13158
13943
 
13159
13944
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13160
13945
        hardcode_libdir_separator_CXX=:
13172
13957
      *)
13173
13958
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13174
13959
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
13960
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13176
13961
 
13177
13962
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178
13963
          hardcode_libdir_separator_CXX=:
13191
13976
    ;;
13192
13977
  osf4* | osf5*)
13193
13978
    case $cc_basename in
13194
 
      KCC)
 
13979
      KCC*)
13195
13980
        # Kuck and Associates, Inc. (KAI) C++ Compiler
13196
13981
 
13197
13982
        # KCC will only create a shared library if the output file
13206
13991
        # the KAI C++ compiler.
13207
13992
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13208
13993
        ;;
13209
 
      RCC)
 
13994
      RCC*)
13210
13995
        # Rational C++ 2.4.1
13211
13996
        # FIXME: insert proper C++ library support
13212
13997
        ld_shlibs_CXX=no
13213
13998
        ;;
13214
 
      cxx)
 
13999
      cxx*)
13215
14000
        allow_undefined_flag_CXX=' -expect_unresolved \*'
13216
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
14001
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13217
14002
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13218
14003
          echo "-hidden">> $lib.exp~
13219
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
14004
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13220
14005
          $rm $lib.exp'
13221
14006
 
13222
14007
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13235
14020
      *)
13236
14021
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13237
14022
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13238
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
14023
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13239
14024
 
13240
14025
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241
14026
          hardcode_libdir_separator_CXX=:
13256
14041
    # FIXME: insert proper C++ library support
13257
14042
    ld_shlibs_CXX=no
13258
14043
    ;;
13259
 
  sco*)
13260
 
    archive_cmds_need_lc_CXX=no
13261
 
    case $cc_basename in
13262
 
      CC)
13263
 
        # FIXME: insert proper C++ library support
13264
 
        ld_shlibs_CXX=no
13265
 
        ;;
13266
 
      *)
13267
 
        # FIXME: insert proper C++ library support
13268
 
        ld_shlibs_CXX=no
13269
 
        ;;
13270
 
    esac
13271
 
    ;;
13272
14044
  sunos4*)
13273
14045
    case $cc_basename in
13274
 
      CC)
 
14046
      CC*)
13275
14047
        # Sun C++ 4.x
13276
14048
        # FIXME: insert proper C++ library support
13277
14049
        ld_shlibs_CXX=no
13278
14050
        ;;
13279
 
      lcc)
 
14051
      lcc*)
13280
14052
        # Lucid
13281
14053
        # FIXME: insert proper C++ library support
13282
14054
        ld_shlibs_CXX=no
13289
14061
    ;;
13290
14062
  solaris*)
13291
14063
    case $cc_basename in
13292
 
      CC)
 
14064
      CC*)
13293
14065
        # Sun C++ 4.2, 5.x and Centerline C++
 
14066
        archive_cmds_need_lc_CXX=yes
13294
14067
        no_undefined_flag_CXX=' -zdefs'
13295
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14068
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13296
14069
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13297
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
14070
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13298
14071
 
13299
14072
        hardcode_libdir_flag_spec_CXX='-R$libdir'
13300
14073
        hardcode_shlibpath_var_CXX=no
13301
14074
        case $host_os in
13302
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
14075
          solaris2.[0-5] | solaris2.[0-5].*) ;;
13303
14076
          *)
13304
14077
            # The C++ compiler is used as linker so we must use $wl
13305
14078
            # flag to pass the commands to the underlying system
13306
 
            # linker.
 
14079
            # linker. We must also pass each convience library through
 
14080
            # to the system linker between allextract/defaultextract.
 
14081
            # The C++ compiler will combine linker options so we
 
14082
            # cannot just pass the convience library names through
 
14083
            # without $wl.
13307
14084
            # Supported since Solaris 2.6 (maybe 2.5.1?)
13308
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14085
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13309
14086
            ;;
13310
14087
        esac
13311
14088
        link_all_deplibs_CXX=yes
13312
14089
 
13313
 
        # Commands to make compiler produce verbose output that lists
13314
 
        # what "hidden" libraries, object files and flags are used when
13315
 
        # linking a shared library.
13316
 
        #
13317
 
        # There doesn't appear to be a way to prevent this compiler from
13318
 
        # explicitly linking system object files so we need to strip them
13319
 
        # from the output so that they don't get included in the library
13320
 
        # dependencies.
13321
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
14090
        output_verbose_link_cmd='echo'
13322
14091
 
13323
14092
        # Archives containing C++ object files must be created using
13324
14093
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13326
14095
        # in the archive.
13327
14096
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13328
14097
        ;;
13329
 
      gcx)
 
14098
      gcx*)
13330
14099
        # Green Hills C++ Compiler
13331
14100
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13332
14101
 
13364
14133
        ;;
13365
14134
    esac
13366
14135
    ;;
13367
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13368
 
    archive_cmds_need_lc_CXX=no
 
14136
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
14137
    no_undefined_flag_CXX='${wl}-z,text'
 
14138
    archive_cmds_need_lc_CXX=no
 
14139
    hardcode_shlibpath_var_CXX=no
 
14140
    runpath_var='LD_RUN_PATH'
 
14141
 
 
14142
    case $cc_basename in
 
14143
      CC*)
 
14144
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14145
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14146
        ;;
 
14147
      *)
 
14148
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14149
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14150
        ;;
 
14151
    esac
 
14152
    ;;
 
14153
  sysv5* | sco3.2v5* | sco5v6*)
 
14154
    # Note: We can NOT use -z defs as we might desire, because we do not
 
14155
    # link with -lc, and that would cause any symbols used from libc to
 
14156
    # always be unresolved, which means just about no library would
 
14157
    # ever link correctly.  If we're not using GNU ld we use -z text
 
14158
    # though, which does catch some bad symbols but isn't as heavy-handed
 
14159
    # as -z defs.
 
14160
    # For security reasons, it is highly recommended that you always
 
14161
    # use absolute paths for naming shared libraries, and exclude the
 
14162
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
14163
    # requires that you compile everything twice, which is a pain.
 
14164
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
14165
    # non-empty value in the environment.  Most likely only useful for
 
14166
    # creating official distributions of packages.
 
14167
    # This is a hack until libtool officially supports absolute path
 
14168
    # names for shared libraries.
 
14169
    no_undefined_flag_CXX='${wl}-z,text'
 
14170
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
14171
    archive_cmds_need_lc_CXX=no
 
14172
    hardcode_shlibpath_var_CXX=no
 
14173
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14174
    hardcode_libdir_separator_CXX=':'
 
14175
    link_all_deplibs_CXX=yes
 
14176
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
14177
    runpath_var='LD_RUN_PATH'
 
14178
 
 
14179
    case $cc_basename in
 
14180
      CC*)
 
14181
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14182
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14183
        ;;
 
14184
      *)
 
14185
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14186
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14187
        ;;
 
14188
    esac
13369
14189
    ;;
13370
14190
  tandem*)
13371
14191
    case $cc_basename in
13372
 
      NCC)
 
14192
      NCC*)
13373
14193
        # NonStop-UX NCC 3.20
13374
14194
        # FIXME: insert proper C++ library support
13375
14195
        ld_shlibs_CXX=no
13422
14242
  # The `*' in the case matches for architectures that use `case' in
13423
14243
  # $output_verbose_cmd can trigger glob expansion during the loop
13424
14244
  # eval without this substitution.
13425
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
14245
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13426
14246
 
13427
14247
  for p in `eval $output_verbose_link_cmd`; do
13428
14248
    case $p in
13498
14318
 
13499
14319
$rm -f confest.$objext
13500
14320
 
 
14321
# PORTME: override above test on systems where it is broken
 
14322
case $host_os in
 
14323
interix3*)
 
14324
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14325
  # hack all around it, let's just trust "g++" to DTRT.
 
14326
  predep_objects_CXX=
 
14327
  postdep_objects_CXX=
 
14328
  postdeps_CXX=
 
14329
  ;;
 
14330
 
 
14331
solaris*)
 
14332
  case $cc_basename in
 
14333
  CC*)
 
14334
    # Adding this requires a known-good setup of shared libraries for
 
14335
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14336
    # archive will be linked into the output, leading to subtle bugs.
 
14337
    postdeps_CXX='-lCstd -lCrun'
 
14338
    ;;
 
14339
  esac
 
14340
  ;;
 
14341
esac
 
14342
 
 
14343
 
13501
14344
case " $postdeps_CXX " in
13502
14345
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13503
14346
esac
13545
14388
      # DJGPP does not support shared libraries at all
13546
14389
      lt_prog_compiler_pic_CXX=
13547
14390
      ;;
 
14391
    interix3*)
 
14392
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14393
      # Instead, we relocate shared libraries at runtime.
 
14394
      ;;
13548
14395
    sysv4*MP*)
13549
14396
      if test -d /usr/nec; then
13550
14397
        lt_prog_compiler_pic_CXX=-Kconform_pic
13553
14400
    hpux*)
13554
14401
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13555
14402
      # not for PA HP-UX.
13556
 
      case "$host_cpu" in
 
14403
      case $host_cpu in
13557
14404
      hppa*64*|ia64*)
13558
14405
        ;;
13559
14406
      *)
13578
14425
        ;;
13579
14426
      chorus*)
13580
14427
        case $cc_basename in
13581
 
        cxch68)
 
14428
        cxch68*)
13582
14429
          # Green Hills C++ Compiler
13583
14430
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13584
14431
          ;;
13585
14432
        esac
13586
14433
        ;;
 
14434
       darwin*)
 
14435
         # PIC is the default on this platform
 
14436
         # Common symbols not allowed in MH_DYLIB files
 
14437
         case $cc_basename in
 
14438
           xlc*)
 
14439
           lt_prog_compiler_pic_CXX='-qnocommon'
 
14440
           lt_prog_compiler_wl_CXX='-Wl,'
 
14441
           ;;
 
14442
         esac
 
14443
       ;;
13587
14444
      dgux*)
13588
14445
        case $cc_basename in
13589
 
          ec++)
 
14446
          ec++*)
13590
14447
            lt_prog_compiler_pic_CXX='-KPIC'
13591
14448
            ;;
13592
 
          ghcx)
 
14449
          ghcx*)
13593
14450
            # Green Hills C++ Compiler
13594
14451
            lt_prog_compiler_pic_CXX='-pic'
13595
14452
            ;;
13597
14454
            ;;
13598
14455
        esac
13599
14456
        ;;
13600
 
      freebsd* | kfreebsd*-gnu)
 
14457
      freebsd* | kfreebsd*-gnu | dragonfly*)
13601
14458
        # FreeBSD uses GNU C++
13602
14459
        ;;
13603
14460
      hpux9* | hpux10* | hpux11*)
13604
14461
        case $cc_basename in
13605
 
          CC)
 
14462
          CC*)
13606
14463
            lt_prog_compiler_wl_CXX='-Wl,'
13607
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
14464
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13608
14465
            if test "$host_cpu" != ia64; then
13609
14466
              lt_prog_compiler_pic_CXX='+Z'
13610
14467
            fi
13611
14468
            ;;
13612
 
          aCC)
 
14469
          aCC*)
13613
14470
            lt_prog_compiler_wl_CXX='-Wl,'
13614
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13615
 
            case "$host_cpu" in
 
14471
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14472
            case $host_cpu in
13616
14473
            hppa*64*|ia64*)
13617
14474
              # +Z the default
13618
14475
              ;;
13625
14482
            ;;
13626
14483
        esac
13627
14484
        ;;
 
14485
      interix*)
 
14486
        # This is c89, which is MS Visual C++ (no shared libs)
 
14487
        # Anyone wants to do a port?
 
14488
        ;;
13628
14489
      irix5* | irix6* | nonstopux*)
13629
14490
        case $cc_basename in
13630
 
          CC)
 
14491
          CC*)
13631
14492
            lt_prog_compiler_wl_CXX='-Wl,'
13632
14493
            lt_prog_compiler_static_CXX='-non_shared'
13633
14494
            # CC pic flag -KPIC is the default.
13638
14499
        ;;
13639
14500
      linux*)
13640
14501
        case $cc_basename in
13641
 
          KCC)
 
14502
          KCC*)
13642
14503
            # KAI C++ Compiler
13643
14504
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13644
14505
            lt_prog_compiler_pic_CXX='-fPIC'
13645
14506
            ;;
13646
 
          icpc)
 
14507
          icpc* | ecpc*)
13647
14508
            # Intel C++
13648
14509
            lt_prog_compiler_wl_CXX='-Wl,'
13649
14510
            lt_prog_compiler_pic_CXX='-KPIC'
13650
14511
            lt_prog_compiler_static_CXX='-static'
13651
14512
            ;;
13652
 
          cxx)
 
14513
          pgCC*)
 
14514
            # Portland Group C++ compiler.
 
14515
            lt_prog_compiler_wl_CXX='-Wl,'
 
14516
            lt_prog_compiler_pic_CXX='-fpic'
 
14517
            lt_prog_compiler_static_CXX='-Bstatic'
 
14518
            ;;
 
14519
          cxx*)
13653
14520
            # Compaq C++
13654
14521
            # Make sure the PIC flag is empty.  It appears that all Alpha
13655
14522
            # Linux and Compaq Tru64 Unix objects are PIC.
13666
14533
        ;;
13667
14534
      mvs*)
13668
14535
        case $cc_basename in
13669
 
          cxx)
 
14536
          cxx*)
13670
14537
            lt_prog_compiler_pic_CXX='-W c,exportall'
13671
14538
            ;;
13672
14539
          *)
13677
14544
        ;;
13678
14545
      osf3* | osf4* | osf5*)
13679
14546
        case $cc_basename in
13680
 
          KCC)
 
14547
          KCC*)
13681
14548
            lt_prog_compiler_wl_CXX='--backend -Wl,'
13682
14549
            ;;
13683
 
          RCC)
 
14550
          RCC*)
13684
14551
            # Rational C++ 2.4.1
13685
14552
            lt_prog_compiler_pic_CXX='-pic'
13686
14553
            ;;
13687
 
          cxx)
 
14554
          cxx*)
13688
14555
            # Digital/Compaq C++
13689
14556
            lt_prog_compiler_wl_CXX='-Wl,'
13690
14557
            # Make sure the PIC flag is empty.  It appears that all Alpha
13698
14565
        ;;
13699
14566
      psos*)
13700
14567
        ;;
13701
 
      sco*)
13702
 
        case $cc_basename in
13703
 
          CC)
13704
 
            lt_prog_compiler_pic_CXX='-fPIC'
13705
 
            ;;
13706
 
          *)
13707
 
            ;;
13708
 
        esac
13709
 
        ;;
13710
14568
      solaris*)
13711
14569
        case $cc_basename in
13712
 
          CC)
 
14570
          CC*)
13713
14571
            # Sun C++ 4.2, 5.x and Centerline C++
13714
14572
            lt_prog_compiler_pic_CXX='-KPIC'
13715
14573
            lt_prog_compiler_static_CXX='-Bstatic'
13716
14574
            lt_prog_compiler_wl_CXX='-Qoption ld '
13717
14575
            ;;
13718
 
          gcx)
 
14576
          gcx*)
13719
14577
            # Green Hills C++ Compiler
13720
14578
            lt_prog_compiler_pic_CXX='-PIC'
13721
14579
            ;;
13725
14583
        ;;
13726
14584
      sunos4*)
13727
14585
        case $cc_basename in
13728
 
          CC)
 
14586
          CC*)
13729
14587
            # Sun C++ 4.x
13730
14588
            lt_prog_compiler_pic_CXX='-pic'
13731
14589
            lt_prog_compiler_static_CXX='-Bstatic'
13732
14590
            ;;
13733
 
          lcc)
 
14591
          lcc*)
13734
14592
            # Lucid
13735
14593
            lt_prog_compiler_pic_CXX='-pic'
13736
14594
            ;;
13740
14598
        ;;
13741
14599
      tandem*)
13742
14600
        case $cc_basename in
13743
 
          NCC)
 
14601
          NCC*)
13744
14602
            # NonStop-UX NCC 3.20
13745
14603
            lt_prog_compiler_pic_CXX='-KPIC'
13746
14604
            ;;
13748
14606
            ;;
13749
14607
        esac
13750
14608
        ;;
13751
 
      unixware*)
 
14609
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14610
        case $cc_basename in
 
14611
          CC*)
 
14612
            lt_prog_compiler_wl_CXX='-Wl,'
 
14613
            lt_prog_compiler_pic_CXX='-KPIC'
 
14614
            lt_prog_compiler_static_CXX='-Bstatic'
 
14615
            ;;
 
14616
        esac
13752
14617
        ;;
13753
14618
      vxworks*)
13754
14619
        ;;
13781
14646
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13782
14647
   # The option is referenced via a variable to avoid confusing sed.
13783
14648
   lt_compile=`echo "$ac_compile" | $SED \
13784
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14649
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13785
14650
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786
14651
   -e 's:$: $lt_compiler_flag:'`
13787
14652
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13791
14656
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13792
14657
   if (exit $ac_status) && test -s "$ac_outfile"; then
13793
14658
     # The compiler can only warn and ignore the option if not recognized
13794
 
     # So say no if there are warnings
13795
 
     if test ! -s conftest.err; then
 
14659
     # So say no if there are warnings other than the usual output.
 
14660
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14661
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14662
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13796
14663
       lt_prog_compiler_pic_works_CXX=yes
13797
14664
     fi
13798
14665
   fi
13813
14680
fi
13814
14681
 
13815
14682
fi
13816
 
case "$host_os" in
 
14683
case $host_os in
13817
14684
  # For platforms which do not support PIC, -DPIC is meaningless:
13818
14685
  *djgpp*)
13819
14686
    lt_prog_compiler_pic_CXX=
13823
14690
    ;;
13824
14691
esac
13825
14692
 
 
14693
#
 
14694
# Check to make sure the static flag actually works.
 
14695
#
 
14696
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14697
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14698
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
14699
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
14700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14701
else
 
14702
  lt_prog_compiler_static_works_CXX=no
 
14703
   save_LDFLAGS="$LDFLAGS"
 
14704
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14705
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14706
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14707
     # The linker can only warn and ignore the option if not recognized
 
14708
     # So say no if there are warnings
 
14709
     if test -s conftest.err; then
 
14710
       # Append any errors to the config.log.
 
14711
       cat conftest.err 1>&5
 
14712
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14713
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14714
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14715
         lt_prog_compiler_static_works_CXX=yes
 
14716
       fi
 
14717
     else
 
14718
       lt_prog_compiler_static_works_CXX=yes
 
14719
     fi
 
14720
   fi
 
14721
   $rm conftest*
 
14722
   LDFLAGS="$save_LDFLAGS"
 
14723
 
 
14724
fi
 
14725
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
14726
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
14727
 
 
14728
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
14729
    :
 
14730
else
 
14731
    lt_prog_compiler_static_CXX=
 
14732
fi
 
14733
 
 
14734
 
13826
14735
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13827
14736
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13828
14737
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13841
14750
   # Note that $ac_compile itself does not contain backslashes and begins
13842
14751
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13843
14752
   lt_compile=`echo "$ac_compile" | $SED \
13844
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14753
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13845
14754
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846
14755
   -e 's:$: $lt_compiler_flag:'`
13847
14756
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13853
14762
   then
13854
14763
     # The compiler can only warn and ignore the option if not recognized
13855
14764
     # So say no if there are warnings
13856
 
     if test ! -s out/conftest.err; then
 
14765
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14766
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14767
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13857
14768
       lt_cv_prog_compiler_c_o_CXX=yes
13858
14769
     fi
13859
14770
   fi
13860
 
   chmod u+w .
 
14771
   chmod u+w . 2>&5
13861
14772
   $rm conftest*
13862
14773
   # SGI C++ compiler will create directory out/ii_files/ for
13863
14774
   # template instantiation
13912
14823
    export_symbols_cmds_CXX="$ltdll_cmds"
13913
14824
  ;;
13914
14825
  cygwin* | mingw*)
13915
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14826
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14827
  ;;
 
14828
  kfreebsd*-gnu)
 
14829
    link_all_deplibs_CXX=no
13916
14830
  ;;
13917
14831
  linux*)
13918
14832
    link_all_deplibs_CXX=no
13926
14840
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13927
14841
test "$ld_shlibs_CXX" = no && can_build_shared=no
13928
14842
 
13929
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13930
 
if test "$GCC" = yes; then
13931
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13932
 
fi
13933
 
 
13934
14843
#
13935
14844
# Do we need to explicitly link libc?
13936
14845
#
13963
14872
        libobjs=conftest.$ac_objext
13964
14873
        deplibs=
13965
14874
        wl=$lt_prog_compiler_wl_CXX
 
14875
        pic_flag=$lt_prog_compiler_pic_CXX
13966
14876
        compiler_flags=-v
13967
14877
        linker_flags=-v
13968
14878
        verstring=
14095
15005
  shlibpath_var=LIBRARY_PATH
14096
15006
  ;;
14097
15007
 
14098
 
bsdi4*)
 
15008
bsdi[45]*)
14099
15009
  version_type=linux
14100
15010
  need_version=no
14101
15011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123
15033
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14124
15034
      dldir=$destdir/`dirname \$dlpath`~
14125
15035
      test -d \$dldir || mkdir -p \$dldir~
14126
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15036
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15037
      chmod a+x \$dldir/$dlname'
14127
15038
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14128
15039
      dlpath=$dir/\$dldll~
14129
15040
       $rm \$dlpath'
14153
15064
      ;;
14154
15065
    pw32*)
14155
15066
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14156
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15067
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14157
15068
      ;;
14158
15069
    esac
14159
15070
    ;;
14176
15087
  soname_spec='${libname}${release}${major}$shared_ext'
14177
15088
  shlibpath_overrides_runpath=yes
14178
15089
  shlibpath_var=DYLD_LIBRARY_PATH
14179
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15090
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14180
15091
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14181
15092
  if test "$GCC" = yes; then
14182
15093
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14211
15122
  dynamic_linker='GNU ld.so'
14212
15123
  ;;
14213
15124
 
14214
 
freebsd*)
14215
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15125
freebsd* | dragonfly*)
 
15126
  # DragonFly does not have aout.  When/if they implement a new
 
15127
  # versioning mechanism, adjust this.
 
15128
  if test -x /usr/bin/objformat; then
 
15129
    objformat=`/usr/bin/objformat`
 
15130
  else
 
15131
    case $host_os in
 
15132
    freebsd[123]*) objformat=aout ;;
 
15133
    *) objformat=elf ;;
 
15134
    esac
 
15135
  fi
14216
15136
  version_type=freebsd-$objformat
14217
15137
  case $version_type in
14218
15138
    freebsd-elf*)
14230
15150
  freebsd2*)
14231
15151
    shlibpath_overrides_runpath=yes
14232
15152
    ;;
14233
 
  freebsd3.01* | freebsdelf3.01*)
 
15153
  freebsd3.[01]* | freebsdelf3.[01]*)
14234
15154
    shlibpath_overrides_runpath=yes
14235
15155
    hardcode_into_libs=yes
14236
15156
    ;;
14237
 
  *) # from 3.2 on
 
15157
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15158
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14238
15159
    shlibpath_overrides_runpath=no
14239
15160
    hardcode_into_libs=yes
14240
15161
    ;;
 
15162
  freebsd*) # from 4.6 on
 
15163
    shlibpath_overrides_runpath=yes
 
15164
    hardcode_into_libs=yes
 
15165
    ;;
14241
15166
  esac
14242
15167
  ;;
14243
15168
 
14257
15182
  version_type=sunos
14258
15183
  need_lib_prefix=no
14259
15184
  need_version=no
14260
 
  case "$host_cpu" in
 
15185
  case $host_cpu in
14261
15186
  ia64*)
14262
15187
    shrext_cmds='.so'
14263
15188
    hardcode_into_libs=yes
14297
15222
  postinstall_cmds='chmod 555 $lib'
14298
15223
  ;;
14299
15224
 
 
15225
interix3*)
 
15226
  version_type=linux
 
15227
  need_lib_prefix=no
 
15228
  need_version=no
 
15229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15230
  soname_spec='${libname}${release}${shared_ext}$major'
 
15231
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15232
  shlibpath_var=LD_LIBRARY_PATH
 
15233
  shlibpath_overrides_runpath=no
 
15234
  hardcode_into_libs=yes
 
15235
  ;;
 
15236
 
14300
15237
irix5* | irix6* | nonstopux*)
14301
15238
  case $host_os in
14302
15239
    nonstopux*) version_type=nonstopux ;;
14356
15293
 
14357
15294
  # Append ld.so.conf contents to the search path
14358
15295
  if test -f /etc/ld.so.conf; then
14359
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15296
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14360
15297
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14361
15298
  fi
14362
15299
 
14430
15367
 
14431
15368
openbsd*)
14432
15369
  version_type=sunos
 
15370
  sys_lib_dlsearch_path_spec="/usr/lib"
14433
15371
  need_lib_prefix=no
14434
 
  need_version=yes
 
15372
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15373
  case $host_os in
 
15374
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15375
    *)                         need_version=no  ;;
 
15376
  esac
14435
15377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436
15378
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437
15379
  shlibpath_var=LD_LIBRARY_PATH
14469
15411
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14470
15412
  ;;
14471
15413
 
14472
 
sco3.2v5*)
14473
 
  version_type=osf
14474
 
  soname_spec='${libname}${release}${shared_ext}$major'
14475
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476
 
  shlibpath_var=LD_LIBRARY_PATH
14477
 
  ;;
14478
 
 
14479
15414
solaris*)
14480
15415
  version_type=linux
14481
15416
  need_lib_prefix=no
14501
15436
  need_version=yes
14502
15437
  ;;
14503
15438
 
14504
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15439
sysv4 | sysv4.3*)
14505
15440
  version_type=linux
14506
15441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507
15442
  soname_spec='${libname}${release}${shared_ext}$major'
14534
15469
  fi
14535
15470
  ;;
14536
15471
 
 
15472
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15473
  version_type=freebsd-elf
 
15474
  need_lib_prefix=no
 
15475
  need_version=no
 
15476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15477
  soname_spec='${libname}${release}${shared_ext}$major'
 
15478
  shlibpath_var=LD_LIBRARY_PATH
 
15479
  hardcode_into_libs=yes
 
15480
  if test "$with_gnu_ld" = yes; then
 
15481
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15482
    shlibpath_overrides_runpath=no
 
15483
  else
 
15484
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15485
    shlibpath_overrides_runpath=yes
 
15486
    case $host_os in
 
15487
      sco3.2v5*)
 
15488
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15489
        ;;
 
15490
    esac
 
15491
  fi
 
15492
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15493
  ;;
 
15494
 
14537
15495
uts4*)
14538
15496
  version_type=linux
14539
15497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549
15507
echo "${ECHO_T}$dynamic_linker" >&6
14550
15508
test "$dynamic_linker" = no && can_build_shared=no
14551
15509
 
 
15510
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15511
if test "$GCC" = yes; then
 
15512
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15513
fi
 
15514
 
14552
15515
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14553
15516
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14554
15517
hardcode_action_CXX=
14555
15518
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14556
 
   test -n "$runpath_var CXX" || \
14557
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
15519
   test -n "$runpath_var_CXX" || \
 
15520
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14558
15521
 
14559
15522
  # We can hardcode non-existant directories.
14560
15523
  if test "$hardcode_direct_CXX" != no &&
14586
15549
  enable_fast_install=needless
14587
15550
fi
14588
15551
 
14589
 
striplib=
14590
 
old_striplib=
14591
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14592
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14593
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14594
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14595
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14596
 
  echo "$as_me:$LINENO: result: yes" >&5
14597
 
echo "${ECHO_T}yes" >&6
14598
 
else
14599
 
# FIXME - insert some real tests, host_os isn't really good enough
14600
 
  case $host_os in
14601
 
   darwin*)
14602
 
       if test -n "$STRIP" ; then
14603
 
         striplib="$STRIP -x"
14604
 
         echo "$as_me:$LINENO: result: yes" >&5
14605
 
echo "${ECHO_T}yes" >&6
14606
 
       else
14607
 
  echo "$as_me:$LINENO: result: no" >&5
14608
 
echo "${ECHO_T}no" >&6
14609
 
fi
14610
 
       ;;
14611
 
   *)
14612
 
  echo "$as_me:$LINENO: result: no" >&5
14613
 
echo "${ECHO_T}no" >&6
14614
 
    ;;
14615
 
  esac
14616
 
fi
14617
 
 
14618
 
if test "x$enable_dlopen" != xyes; then
14619
 
  enable_dlopen=unknown
14620
 
  enable_dlopen_self=unknown
14621
 
  enable_dlopen_self_static=unknown
14622
 
else
14623
 
  lt_cv_dlopen=no
14624
 
  lt_cv_dlopen_libs=
14625
 
 
14626
 
  case $host_os in
14627
 
  beos*)
14628
 
    lt_cv_dlopen="load_add_on"
14629
 
    lt_cv_dlopen_libs=
14630
 
    lt_cv_dlopen_self=yes
14631
 
    ;;
14632
 
 
14633
 
  mingw* | pw32*)
14634
 
    lt_cv_dlopen="LoadLibrary"
14635
 
    lt_cv_dlopen_libs=
14636
 
   ;;
14637
 
 
14638
 
  cygwin*)
14639
 
    lt_cv_dlopen="dlopen"
14640
 
    lt_cv_dlopen_libs=
14641
 
   ;;
14642
 
 
14643
 
  darwin*)
14644
 
  # if libdl is installed we need to link against it
14645
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14646
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14647
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14649
 
else
14650
 
  ac_check_lib_save_LIBS=$LIBS
14651
 
LIBS="-ldl  $LIBS"
14652
 
cat >conftest.$ac_ext <<_ACEOF
14653
 
/* confdefs.h.  */
14654
 
_ACEOF
14655
 
cat confdefs.h >>conftest.$ac_ext
14656
 
cat >>conftest.$ac_ext <<_ACEOF
14657
 
/* end confdefs.h.  */
14658
 
 
14659
 
/* Override any gcc2 internal prototype to avoid an error.  */
14660
 
#ifdef __cplusplus
14661
 
extern "C"
14662
 
#endif
14663
 
/* We use char because int might match the return type of a gcc2
14664
 
   builtin and then its argument prototype would still apply.  */
14665
 
char dlopen ();
14666
 
int
14667
 
main ()
14668
 
{
14669
 
dlopen ();
14670
 
  ;
14671
 
  return 0;
14672
 
}
14673
 
_ACEOF
14674
 
rm -f conftest.$ac_objext conftest$ac_exeext
14675
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676
 
  (eval $ac_link) 2>conftest.er1
14677
 
  ac_status=$?
14678
 
  grep -v '^ *+' conftest.er1 >conftest.err
14679
 
  rm -f conftest.er1
14680
 
  cat conftest.err >&5
14681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682
 
  (exit $ac_status); } &&
14683
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685
 
  (eval $ac_try) 2>&5
14686
 
  ac_status=$?
14687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688
 
  (exit $ac_status); }; } &&
14689
 
         { ac_try='test -s conftest$ac_exeext'
14690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691
 
  (eval $ac_try) 2>&5
14692
 
  ac_status=$?
14693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694
 
  (exit $ac_status); }; }; then
14695
 
  ac_cv_lib_dl_dlopen=yes
14696
 
else
14697
 
  echo "$as_me: failed program was:" >&5
14698
 
sed 's/^/| /' conftest.$ac_ext >&5
14699
 
 
14700
 
ac_cv_lib_dl_dlopen=no
14701
 
fi
14702
 
rm -f conftest.err conftest.$ac_objext \
14703
 
      conftest$ac_exeext conftest.$ac_ext
14704
 
LIBS=$ac_check_lib_save_LIBS
14705
 
fi
14706
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14707
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14708
 
if test $ac_cv_lib_dl_dlopen = yes; then
14709
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14710
 
else
14711
 
  
14712
 
    lt_cv_dlopen="dyld"
14713
 
    lt_cv_dlopen_libs=
14714
 
    lt_cv_dlopen_self=yes
14715
 
    
14716
 
fi
14717
 
 
14718
 
   ;;
14719
 
 
14720
 
  *)
14721
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
14722
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14723
 
if test "${ac_cv_func_shl_load+set}" = set; then
14724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14725
 
else
14726
 
  cat >conftest.$ac_ext <<_ACEOF
14727
 
/* confdefs.h.  */
14728
 
_ACEOF
14729
 
cat confdefs.h >>conftest.$ac_ext
14730
 
cat >>conftest.$ac_ext <<_ACEOF
14731
 
/* end confdefs.h.  */
14732
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14733
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14734
 
#define shl_load innocuous_shl_load
14735
 
 
14736
 
/* System header to define __stub macros and hopefully few prototypes,
14737
 
    which can conflict with char shl_load (); below.
14738
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739
 
    <limits.h> exists even on freestanding compilers.  */
14740
 
 
14741
 
#ifdef __STDC__
14742
 
# include <limits.h>
14743
 
#else
14744
 
# include <assert.h>
14745
 
#endif
14746
 
 
14747
 
#undef shl_load
14748
 
 
14749
 
/* Override any gcc2 internal prototype to avoid an error.  */
14750
 
#ifdef __cplusplus
14751
 
extern "C"
14752
 
{
14753
 
#endif
14754
 
/* We use char because int might match the return type of a gcc2
14755
 
   builtin and then its argument prototype would still apply.  */
14756
 
char shl_load ();
14757
 
/* The GNU C library defines this for functions which it implements
14758
 
    to always fail with ENOSYS.  Some functions are actually named
14759
 
    something starting with __ and the normal name is an alias.  */
14760
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
14761
 
choke me
14762
 
#else
14763
 
char (*f) () = shl_load;
14764
 
#endif
14765
 
#ifdef __cplusplus
14766
 
}
14767
 
#endif
14768
 
 
14769
 
int
14770
 
main ()
14771
 
{
14772
 
return f != shl_load;
14773
 
  ;
14774
 
  return 0;
14775
 
}
14776
 
_ACEOF
14777
 
rm -f conftest.$ac_objext conftest$ac_exeext
14778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779
 
  (eval $ac_link) 2>conftest.er1
14780
 
  ac_status=$?
14781
 
  grep -v '^ *+' conftest.er1 >conftest.err
14782
 
  rm -f conftest.er1
14783
 
  cat conftest.err >&5
14784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785
 
  (exit $ac_status); } &&
14786
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788
 
  (eval $ac_try) 2>&5
14789
 
  ac_status=$?
14790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
 
  (exit $ac_status); }; } &&
14792
 
         { ac_try='test -s conftest$ac_exeext'
14793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
 
  (eval $ac_try) 2>&5
14795
 
  ac_status=$?
14796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
 
  (exit $ac_status); }; }; then
14798
 
  ac_cv_func_shl_load=yes
14799
 
else
14800
 
  echo "$as_me: failed program was:" >&5
14801
 
sed 's/^/| /' conftest.$ac_ext >&5
14802
 
 
14803
 
ac_cv_func_shl_load=no
14804
 
fi
14805
 
rm -f conftest.err conftest.$ac_objext \
14806
 
      conftest$ac_exeext conftest.$ac_ext
14807
 
fi
14808
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14809
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14810
 
if test $ac_cv_func_shl_load = yes; then
14811
 
  lt_cv_dlopen="shl_load"
14812
 
else
14813
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14814
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14815
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14817
 
else
14818
 
  ac_check_lib_save_LIBS=$LIBS
14819
 
LIBS="-ldld  $LIBS"
14820
 
cat >conftest.$ac_ext <<_ACEOF
14821
 
/* confdefs.h.  */
14822
 
_ACEOF
14823
 
cat confdefs.h >>conftest.$ac_ext
14824
 
cat >>conftest.$ac_ext <<_ACEOF
14825
 
/* end confdefs.h.  */
14826
 
 
14827
 
/* Override any gcc2 internal prototype to avoid an error.  */
14828
 
#ifdef __cplusplus
14829
 
extern "C"
14830
 
#endif
14831
 
/* We use char because int might match the return type of a gcc2
14832
 
   builtin and then its argument prototype would still apply.  */
14833
 
char shl_load ();
14834
 
int
14835
 
main ()
14836
 
{
14837
 
shl_load ();
14838
 
  ;
14839
 
  return 0;
14840
 
}
14841
 
_ACEOF
14842
 
rm -f conftest.$ac_objext conftest$ac_exeext
14843
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844
 
  (eval $ac_link) 2>conftest.er1
14845
 
  ac_status=$?
14846
 
  grep -v '^ *+' conftest.er1 >conftest.err
14847
 
  rm -f conftest.er1
14848
 
  cat conftest.err >&5
14849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850
 
  (exit $ac_status); } &&
14851
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14852
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853
 
  (eval $ac_try) 2>&5
14854
 
  ac_status=$?
14855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856
 
  (exit $ac_status); }; } &&
14857
 
         { ac_try='test -s conftest$ac_exeext'
14858
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859
 
  (eval $ac_try) 2>&5
14860
 
  ac_status=$?
14861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862
 
  (exit $ac_status); }; }; then
14863
 
  ac_cv_lib_dld_shl_load=yes
14864
 
else
14865
 
  echo "$as_me: failed program was:" >&5
14866
 
sed 's/^/| /' conftest.$ac_ext >&5
14867
 
 
14868
 
ac_cv_lib_dld_shl_load=no
14869
 
fi
14870
 
rm -f conftest.err conftest.$ac_objext \
14871
 
      conftest$ac_exeext conftest.$ac_ext
14872
 
LIBS=$ac_check_lib_save_LIBS
14873
 
fi
14874
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14875
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14876
 
if test $ac_cv_lib_dld_shl_load = yes; then
14877
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14878
 
else
14879
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
14880
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14881
 
if test "${ac_cv_func_dlopen+set}" = set; then
14882
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14883
 
else
14884
 
  cat >conftest.$ac_ext <<_ACEOF
14885
 
/* confdefs.h.  */
14886
 
_ACEOF
14887
 
cat confdefs.h >>conftest.$ac_ext
14888
 
cat >>conftest.$ac_ext <<_ACEOF
14889
 
/* end confdefs.h.  */
14890
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14891
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14892
 
#define dlopen innocuous_dlopen
14893
 
 
14894
 
/* System header to define __stub macros and hopefully few prototypes,
14895
 
    which can conflict with char dlopen (); below.
14896
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14897
 
    <limits.h> exists even on freestanding compilers.  */
14898
 
 
14899
 
#ifdef __STDC__
14900
 
# include <limits.h>
14901
 
#else
14902
 
# include <assert.h>
14903
 
#endif
14904
 
 
14905
 
#undef dlopen
14906
 
 
14907
 
/* Override any gcc2 internal prototype to avoid an error.  */
14908
 
#ifdef __cplusplus
14909
 
extern "C"
14910
 
{
14911
 
#endif
14912
 
/* We use char because int might match the return type of a gcc2
14913
 
   builtin and then its argument prototype would still apply.  */
14914
 
char dlopen ();
14915
 
/* The GNU C library defines this for functions which it implements
14916
 
    to always fail with ENOSYS.  Some functions are actually named
14917
 
    something starting with __ and the normal name is an alias.  */
14918
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14919
 
choke me
14920
 
#else
14921
 
char (*f) () = dlopen;
14922
 
#endif
14923
 
#ifdef __cplusplus
14924
 
}
14925
 
#endif
14926
 
 
14927
 
int
14928
 
main ()
14929
 
{
14930
 
return f != dlopen;
14931
 
  ;
14932
 
  return 0;
14933
 
}
14934
 
_ACEOF
14935
 
rm -f conftest.$ac_objext conftest$ac_exeext
14936
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937
 
  (eval $ac_link) 2>conftest.er1
14938
 
  ac_status=$?
14939
 
  grep -v '^ *+' conftest.er1 >conftest.err
14940
 
  rm -f conftest.er1
14941
 
  cat conftest.err >&5
14942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943
 
  (exit $ac_status); } &&
14944
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946
 
  (eval $ac_try) 2>&5
14947
 
  ac_status=$?
14948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949
 
  (exit $ac_status); }; } &&
14950
 
         { ac_try='test -s conftest$ac_exeext'
14951
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952
 
  (eval $ac_try) 2>&5
14953
 
  ac_status=$?
14954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955
 
  (exit $ac_status); }; }; then
14956
 
  ac_cv_func_dlopen=yes
14957
 
else
14958
 
  echo "$as_me: failed program was:" >&5
14959
 
sed 's/^/| /' conftest.$ac_ext >&5
14960
 
 
14961
 
ac_cv_func_dlopen=no
14962
 
fi
14963
 
rm -f conftest.err conftest.$ac_objext \
14964
 
      conftest$ac_exeext conftest.$ac_ext
14965
 
fi
14966
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14967
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14968
 
if test $ac_cv_func_dlopen = yes; then
14969
 
  lt_cv_dlopen="dlopen"
14970
 
else
14971
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14973
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14974
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14975
 
else
14976
 
  ac_check_lib_save_LIBS=$LIBS
14977
 
LIBS="-ldl  $LIBS"
14978
 
cat >conftest.$ac_ext <<_ACEOF
14979
 
/* confdefs.h.  */
14980
 
_ACEOF
14981
 
cat confdefs.h >>conftest.$ac_ext
14982
 
cat >>conftest.$ac_ext <<_ACEOF
14983
 
/* end confdefs.h.  */
14984
 
 
14985
 
/* Override any gcc2 internal prototype to avoid an error.  */
14986
 
#ifdef __cplusplus
14987
 
extern "C"
14988
 
#endif
14989
 
/* We use char because int might match the return type of a gcc2
14990
 
   builtin and then its argument prototype would still apply.  */
14991
 
char dlopen ();
14992
 
int
14993
 
main ()
14994
 
{
14995
 
dlopen ();
14996
 
  ;
14997
 
  return 0;
14998
 
}
14999
 
_ACEOF
15000
 
rm -f conftest.$ac_objext conftest$ac_exeext
15001
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002
 
  (eval $ac_link) 2>conftest.er1
15003
 
  ac_status=$?
15004
 
  grep -v '^ *+' conftest.er1 >conftest.err
15005
 
  rm -f conftest.er1
15006
 
  cat conftest.err >&5
15007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008
 
  (exit $ac_status); } &&
15009
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15010
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011
 
  (eval $ac_try) 2>&5
15012
 
  ac_status=$?
15013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014
 
  (exit $ac_status); }; } &&
15015
 
         { ac_try='test -s conftest$ac_exeext'
15016
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017
 
  (eval $ac_try) 2>&5
15018
 
  ac_status=$?
15019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020
 
  (exit $ac_status); }; }; then
15021
 
  ac_cv_lib_dl_dlopen=yes
15022
 
else
15023
 
  echo "$as_me: failed program was:" >&5
15024
 
sed 's/^/| /' conftest.$ac_ext >&5
15025
 
 
15026
 
ac_cv_lib_dl_dlopen=no
15027
 
fi
15028
 
rm -f conftest.err conftest.$ac_objext \
15029
 
      conftest$ac_exeext conftest.$ac_ext
15030
 
LIBS=$ac_check_lib_save_LIBS
15031
 
fi
15032
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15033
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15034
 
if test $ac_cv_lib_dl_dlopen = yes; then
15035
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15036
 
else
15037
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15038
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15039
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15040
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15041
 
else
15042
 
  ac_check_lib_save_LIBS=$LIBS
15043
 
LIBS="-lsvld  $LIBS"
15044
 
cat >conftest.$ac_ext <<_ACEOF
15045
 
/* confdefs.h.  */
15046
 
_ACEOF
15047
 
cat confdefs.h >>conftest.$ac_ext
15048
 
cat >>conftest.$ac_ext <<_ACEOF
15049
 
/* end confdefs.h.  */
15050
 
 
15051
 
/* Override any gcc2 internal prototype to avoid an error.  */
15052
 
#ifdef __cplusplus
15053
 
extern "C"
15054
 
#endif
15055
 
/* We use char because int might match the return type of a gcc2
15056
 
   builtin and then its argument prototype would still apply.  */
15057
 
char dlopen ();
15058
 
int
15059
 
main ()
15060
 
{
15061
 
dlopen ();
15062
 
  ;
15063
 
  return 0;
15064
 
}
15065
 
_ACEOF
15066
 
rm -f conftest.$ac_objext conftest$ac_exeext
15067
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068
 
  (eval $ac_link) 2>conftest.er1
15069
 
  ac_status=$?
15070
 
  grep -v '^ *+' conftest.er1 >conftest.err
15071
 
  rm -f conftest.er1
15072
 
  cat conftest.err >&5
15073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
 
  (exit $ac_status); } &&
15075
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077
 
  (eval $ac_try) 2>&5
15078
 
  ac_status=$?
15079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080
 
  (exit $ac_status); }; } &&
15081
 
         { ac_try='test -s conftest$ac_exeext'
15082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083
 
  (eval $ac_try) 2>&5
15084
 
  ac_status=$?
15085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086
 
  (exit $ac_status); }; }; then
15087
 
  ac_cv_lib_svld_dlopen=yes
15088
 
else
15089
 
  echo "$as_me: failed program was:" >&5
15090
 
sed 's/^/| /' conftest.$ac_ext >&5
15091
 
 
15092
 
ac_cv_lib_svld_dlopen=no
15093
 
fi
15094
 
rm -f conftest.err conftest.$ac_objext \
15095
 
      conftest$ac_exeext conftest.$ac_ext
15096
 
LIBS=$ac_check_lib_save_LIBS
15097
 
fi
15098
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15099
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15100
 
if test $ac_cv_lib_svld_dlopen = yes; then
15101
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15102
 
else
15103
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15104
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15105
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15106
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15107
 
else
15108
 
  ac_check_lib_save_LIBS=$LIBS
15109
 
LIBS="-ldld  $LIBS"
15110
 
cat >conftest.$ac_ext <<_ACEOF
15111
 
/* confdefs.h.  */
15112
 
_ACEOF
15113
 
cat confdefs.h >>conftest.$ac_ext
15114
 
cat >>conftest.$ac_ext <<_ACEOF
15115
 
/* end confdefs.h.  */
15116
 
 
15117
 
/* Override any gcc2 internal prototype to avoid an error.  */
15118
 
#ifdef __cplusplus
15119
 
extern "C"
15120
 
#endif
15121
 
/* We use char because int might match the return type of a gcc2
15122
 
   builtin and then its argument prototype would still apply.  */
15123
 
char dld_link ();
15124
 
int
15125
 
main ()
15126
 
{
15127
 
dld_link ();
15128
 
  ;
15129
 
  return 0;
15130
 
}
15131
 
_ACEOF
15132
 
rm -f conftest.$ac_objext conftest$ac_exeext
15133
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134
 
  (eval $ac_link) 2>conftest.er1
15135
 
  ac_status=$?
15136
 
  grep -v '^ *+' conftest.er1 >conftest.err
15137
 
  rm -f conftest.er1
15138
 
  cat conftest.err >&5
15139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140
 
  (exit $ac_status); } &&
15141
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15142
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143
 
  (eval $ac_try) 2>&5
15144
 
  ac_status=$?
15145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146
 
  (exit $ac_status); }; } &&
15147
 
         { ac_try='test -s conftest$ac_exeext'
15148
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149
 
  (eval $ac_try) 2>&5
15150
 
  ac_status=$?
15151
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152
 
  (exit $ac_status); }; }; then
15153
 
  ac_cv_lib_dld_dld_link=yes
15154
 
else
15155
 
  echo "$as_me: failed program was:" >&5
15156
 
sed 's/^/| /' conftest.$ac_ext >&5
15157
 
 
15158
 
ac_cv_lib_dld_dld_link=no
15159
 
fi
15160
 
rm -f conftest.err conftest.$ac_objext \
15161
 
      conftest$ac_exeext conftest.$ac_ext
15162
 
LIBS=$ac_check_lib_save_LIBS
15163
 
fi
15164
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15165
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15166
 
if test $ac_cv_lib_dld_dld_link = yes; then
15167
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15168
 
fi
15169
 
 
15170
 
              
15171
 
fi
15172
 
 
15173
 
            
15174
 
fi
15175
 
 
15176
 
          
15177
 
fi
15178
 
 
15179
 
        
15180
 
fi
15181
 
 
15182
 
      
15183
 
fi
15184
 
 
15185
 
    ;;
15186
 
  esac
15187
 
 
15188
 
  if test "x$lt_cv_dlopen" != xno; then
15189
 
    enable_dlopen=yes
15190
 
  else
15191
 
    enable_dlopen=no
15192
 
  fi
15193
 
 
15194
 
  case $lt_cv_dlopen in
15195
 
  dlopen)
15196
 
    save_CPPFLAGS="$CPPFLAGS"
15197
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15198
 
 
15199
 
    save_LDFLAGS="$LDFLAGS"
15200
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15201
 
 
15202
 
    save_LIBS="$LIBS"
15203
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
15204
 
 
15205
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15206
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15207
 
if test "${lt_cv_dlopen_self+set}" = set; then
15208
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15209
 
else
15210
 
          if test "$cross_compiling" = yes; then :
15211
 
  lt_cv_dlopen_self=cross
15212
 
else
15213
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15214
 
  lt_status=$lt_dlunknown
15215
 
  cat > conftest.$ac_ext <<EOF
15216
 
#line __oline__ "configure"
15217
 
#include "confdefs.h"
15218
 
 
15219
 
#if HAVE_DLFCN_H
15220
 
#include <dlfcn.h>
15221
 
#endif
15222
 
 
15223
 
#include <stdio.h>
15224
 
 
15225
 
#ifdef RTLD_GLOBAL
15226
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
15227
 
#else
15228
 
#  ifdef DL_GLOBAL
15229
 
#    define LT_DLGLOBAL         DL_GLOBAL
15230
 
#  else
15231
 
#    define LT_DLGLOBAL         0
15232
 
#  endif
15233
 
#endif
15234
 
 
15235
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15236
 
   find out it does not work in some platform. */
15237
 
#ifndef LT_DLLAZY_OR_NOW
15238
 
#  ifdef RTLD_LAZY
15239
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15240
 
#  else
15241
 
#    ifdef DL_LAZY
15242
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
15243
 
#    else
15244
 
#      ifdef RTLD_NOW
15245
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
15246
 
#      else
15247
 
#        ifdef DL_NOW
15248
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
15249
 
#        else
15250
 
#          define LT_DLLAZY_OR_NOW      0
15251
 
#        endif
15252
 
#      endif
15253
 
#    endif
15254
 
#  endif
15255
 
#endif
15256
 
 
15257
 
#ifdef __cplusplus
15258
 
extern "C" void exit (int);
15259
 
#endif
15260
 
 
15261
 
void fnord() { int i=42;}
15262
 
int main ()
15263
 
{
15264
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15265
 
  int status = $lt_dlunknown;
15266
 
 
15267
 
  if (self)
15268
 
    {
15269
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15270
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15271
 
      /* dlclose (self); */
15272
 
    }
15273
 
 
15274
 
    exit (status);
15275
 
}
15276
 
EOF
15277
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278
 
  (eval $ac_link) 2>&5
15279
 
  ac_status=$?
15280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15282
 
    (./conftest; exit; ) 2>/dev/null
15283
 
    lt_status=$?
15284
 
    case x$lt_status in
15285
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15286
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15287
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15288
 
    esac
15289
 
  else :
15290
 
    # compilation failed
15291
 
    lt_cv_dlopen_self=no
15292
 
  fi
15293
 
fi
15294
 
rm -fr conftest*
15295
 
 
15296
 
    
15297
 
fi
15298
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15299
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15300
 
 
15301
 
    if test "x$lt_cv_dlopen_self" = xyes; then
15302
 
      LDFLAGS="$LDFLAGS $link_static_flag"
15303
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15304
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15305
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
15306
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15307
 
else
15308
 
          if test "$cross_compiling" = yes; then :
15309
 
  lt_cv_dlopen_self_static=cross
15310
 
else
15311
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15312
 
  lt_status=$lt_dlunknown
15313
 
  cat > conftest.$ac_ext <<EOF
15314
 
#line __oline__ "configure"
15315
 
#include "confdefs.h"
15316
 
 
15317
 
#if HAVE_DLFCN_H
15318
 
#include <dlfcn.h>
15319
 
#endif
15320
 
 
15321
 
#include <stdio.h>
15322
 
 
15323
 
#ifdef RTLD_GLOBAL
15324
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
15325
 
#else
15326
 
#  ifdef DL_GLOBAL
15327
 
#    define LT_DLGLOBAL         DL_GLOBAL
15328
 
#  else
15329
 
#    define LT_DLGLOBAL         0
15330
 
#  endif
15331
 
#endif
15332
 
 
15333
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15334
 
   find out it does not work in some platform. */
15335
 
#ifndef LT_DLLAZY_OR_NOW
15336
 
#  ifdef RTLD_LAZY
15337
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15338
 
#  else
15339
 
#    ifdef DL_LAZY
15340
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
15341
 
#    else
15342
 
#      ifdef RTLD_NOW
15343
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
15344
 
#      else
15345
 
#        ifdef DL_NOW
15346
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
15347
 
#        else
15348
 
#          define LT_DLLAZY_OR_NOW      0
15349
 
#        endif
15350
 
#      endif
15351
 
#    endif
15352
 
#  endif
15353
 
#endif
15354
 
 
15355
 
#ifdef __cplusplus
15356
 
extern "C" void exit (int);
15357
 
#endif
15358
 
 
15359
 
void fnord() { int i=42;}
15360
 
int main ()
15361
 
{
15362
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15363
 
  int status = $lt_dlunknown;
15364
 
 
15365
 
  if (self)
15366
 
    {
15367
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15368
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15369
 
      /* dlclose (self); */
15370
 
    }
15371
 
 
15372
 
    exit (status);
15373
 
}
15374
 
EOF
15375
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376
 
  (eval $ac_link) 2>&5
15377
 
  ac_status=$?
15378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15380
 
    (./conftest; exit; ) 2>/dev/null
15381
 
    lt_status=$?
15382
 
    case x$lt_status in
15383
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15384
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15385
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15386
 
    esac
15387
 
  else :
15388
 
    # compilation failed
15389
 
    lt_cv_dlopen_self_static=no
15390
 
  fi
15391
 
fi
15392
 
rm -fr conftest*
15393
 
 
15394
 
      
15395
 
fi
15396
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15397
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15398
 
    fi
15399
 
 
15400
 
    CPPFLAGS="$save_CPPFLAGS"
15401
 
    LDFLAGS="$save_LDFLAGS"
15402
 
    LIBS="$save_LIBS"
15403
 
    ;;
15404
 
  esac
15405
 
 
15406
 
  case $lt_cv_dlopen_self in
15407
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15408
 
  *) enable_dlopen_self=unknown ;;
15409
 
  esac
15410
 
 
15411
 
  case $lt_cv_dlopen_self_static in
15412
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15413
 
  *) enable_dlopen_self_static=unknown ;;
15414
 
  esac
15415
 
fi
15416
 
 
15417
15552
 
15418
15553
# The else clause should only fire when bootstrapping the
15419
15554
# libtool distribution, otherwise you forgot to ship ltmain.sh
15428
15563
  # Now quote all the things that may contain metacharacters while being
15429
15564
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15430
15565
  # variables and quote the copies for generation of the libtool script.
15431
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15566
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15432
15567
    SED SHELL STRIP \
15433
15568
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15434
15569
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15529
15664
# The host system.
15530
15665
host_alias=$host_alias
15531
15666
host=$host
 
15667
host_os=$host_os
 
15668
 
 
15669
# The build system.
 
15670
build_alias=$build_alias
 
15671
build=$build
 
15672
build_os=$build_os
15532
15673
 
15533
15674
# An echo program that does not interpret backslashes.
15534
15675
echo=$lt_echo
15540
15681
# A C compiler.
15541
15682
LTCC=$lt_LTCC
15542
15683
 
 
15684
# LTCC compiler flags.
 
15685
LTCFLAGS=$lt_LTCFLAGS
 
15686
 
15543
15687
# A language-specific compiler.
15544
15688
CC=$lt_compiler_CXX
15545
15689
 
15605
15749
# Does compiler simultaneously support -c and -o options?
15606
15750
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15607
15751
 
15608
 
# Must we lock files when doing compilation ?
 
15752
# Must we lock files when doing compilation?
15609
15753
need_locks=$lt_need_locks
15610
15754
 
15611
15755
# Do we need the lib prefix for modules?
15882
16026
# If no C compiler was specified, use CC.
15883
16027
LTCC=${LTCC-"$CC"}
15884
16028
 
 
16029
# If no C compiler flags were specified, use CFLAGS.
 
16030
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16031
 
15885
16032
# Allow CC to be a program name with arguments.
15886
16033
compiler=$CC
15887
16034
 
15888
16035
 
 
16036
# save warnings/boilerplate of simple test code
 
16037
ac_outfile=conftest.$ac_objext
 
16038
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16039
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16040
_lt_compiler_boilerplate=`cat conftest.err`
 
16041
$rm conftest*
 
16042
 
 
16043
ac_outfile=conftest.$ac_objext
 
16044
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16045
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16046
_lt_linker_boilerplate=`cat conftest.err`
 
16047
$rm conftest*
 
16048
 
 
16049
 
15889
16050
# Allow CC to be a program name with arguments.
15890
16051
lt_save_CC="$CC"
15891
16052
CC=${F77-"f77"}
15892
16053
compiler=$CC
15893
16054
compiler_F77=$CC
15894
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
16055
for cc_temp in $compiler""; do
 
16056
  case $cc_temp in
 
16057
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16058
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16059
    \-*) ;;
 
16060
    *) break;;
 
16061
  esac
 
16062
done
 
16063
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16064
 
15895
16065
 
15896
16066
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15897
16067
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15904
16074
 
15905
16075
# On AIX, shared libraries and static libraries use the same namespace, and
15906
16076
# are all built from PIC.
15907
 
case "$host_os" in
 
16077
case $host_os in
15908
16078
aix3*)
15909
16079
  test "$enable_shared" = yes && enable_static=no
15910
16080
  if test -n "$RANLIB"; then
15913
16083
  fi
15914
16084
  ;;
15915
16085
aix4* | aix5*)
15916
 
  test "$enable_shared" = yes && enable_static=no
 
16086
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
16087
    test "$enable_shared" = yes && enable_static=no
 
16088
  fi
15917
16089
  ;;
15918
16090
esac
15919
16091
echo "$as_me:$LINENO: result: $enable_shared" >&5
15926
16098
echo "$as_me:$LINENO: result: $enable_static" >&5
15927
16099
echo "${ECHO_T}$enable_static" >&6
15928
16100
 
15929
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15930
 
 
15931
16101
GCC_F77="$G77"
15932
16102
LD_F77="$LD"
15933
16103
 
15974
16144
      lt_prog_compiler_pic_F77='-fno-common'
15975
16145
      ;;
15976
16146
 
 
16147
    interix3*)
 
16148
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16149
      # Instead, we relocate shared libraries at runtime.
 
16150
      ;;
 
16151
 
15977
16152
    msdosdjgpp*)
15978
16153
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15979
16154
      # on systems that don't support them.
15990
16165
    hpux*)
15991
16166
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15992
16167
      # not for PA HP-UX.
15993
 
      case "$host_cpu" in
 
16168
      case $host_cpu in
15994
16169
      hppa*64*|ia64*)
15995
16170
        # +Z the default
15996
16171
        ;;
16016
16191
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16017
16192
      fi
16018
16193
      ;;
 
16194
      darwin*)
 
16195
        # PIC is the default on this platform
 
16196
        # Common symbols not allowed in MH_DYLIB files
 
16197
       case $cc_basename in
 
16198
         xlc*)
 
16199
         lt_prog_compiler_pic_F77='-qnocommon'
 
16200
         lt_prog_compiler_wl_F77='-Wl,'
 
16201
         ;;
 
16202
       esac
 
16203
       ;;
16019
16204
 
16020
16205
    mingw* | pw32* | os2*)
16021
16206
      # This hack is so that the source file can tell whether it is being
16027
16212
      lt_prog_compiler_wl_F77='-Wl,'
16028
16213
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16029
16214
      # not for PA HP-UX.
16030
 
      case "$host_cpu" in
 
16215
      case $host_cpu in
16031
16216
      hppa*64*|ia64*)
16032
16217
        # +Z the default
16033
16218
        ;;
16051
16236
      ;;
16052
16237
 
16053
16238
    linux*)
16054
 
      case $CC in
 
16239
      case $cc_basename in
16055
16240
      icc* | ecc*)
16056
16241
        lt_prog_compiler_wl_F77='-Wl,'
16057
16242
        lt_prog_compiler_pic_F77='-KPIC'
16058
16243
        lt_prog_compiler_static_F77='-static'
16059
16244
        ;;
 
16245
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16246
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16247
        # which looks to be a dead project)
 
16248
        lt_prog_compiler_wl_F77='-Wl,'
 
16249
        lt_prog_compiler_pic_F77='-fpic'
 
16250
        lt_prog_compiler_static_F77='-Bstatic'
 
16251
        ;;
16060
16252
      ccc*)
16061
16253
        lt_prog_compiler_wl_F77='-Wl,'
16062
16254
        # All Alpha code is PIC.
16071
16263
      lt_prog_compiler_static_F77='-non_shared'
16072
16264
      ;;
16073
16265
 
16074
 
    sco3.2v5*)
16075
 
      lt_prog_compiler_pic_F77='-Kpic'
16076
 
      lt_prog_compiler_static_F77='-dn'
16077
 
      ;;
16078
 
 
16079
16266
    solaris*)
16080
 
      lt_prog_compiler_wl_F77='-Wl,'
16081
16267
      lt_prog_compiler_pic_F77='-KPIC'
16082
16268
      lt_prog_compiler_static_F77='-Bstatic'
 
16269
      case $cc_basename in
 
16270
      f77* | f90* | f95*)
 
16271
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
16272
      *)
 
16273
        lt_prog_compiler_wl_F77='-Wl,';;
 
16274
      esac
16083
16275
      ;;
16084
16276
 
16085
16277
    sunos4*)
16088
16280
      lt_prog_compiler_static_F77='-Bstatic'
16089
16281
      ;;
16090
16282
 
16091
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16283
    sysv4 | sysv4.2uw2* | sysv4.3*)
16092
16284
      lt_prog_compiler_wl_F77='-Wl,'
16093
16285
      lt_prog_compiler_pic_F77='-KPIC'
16094
16286
      lt_prog_compiler_static_F77='-Bstatic'
16101
16293
      fi
16102
16294
      ;;
16103
16295
 
 
16296
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16297
      lt_prog_compiler_wl_F77='-Wl,'
 
16298
      lt_prog_compiler_pic_F77='-KPIC'
 
16299
      lt_prog_compiler_static_F77='-Bstatic'
 
16300
      ;;
 
16301
 
 
16302
    unicos*)
 
16303
      lt_prog_compiler_wl_F77='-Wl,'
 
16304
      lt_prog_compiler_can_build_shared_F77=no
 
16305
      ;;
 
16306
 
16104
16307
    uts4*)
16105
16308
      lt_prog_compiler_pic_F77='-pic'
16106
16309
      lt_prog_compiler_static_F77='-Bstatic'
16135
16338
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16136
16339
   # The option is referenced via a variable to avoid confusing sed.
16137
16340
   lt_compile=`echo "$ac_compile" | $SED \
16138
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16341
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16139
16342
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16140
16343
   -e 's:$: $lt_compiler_flag:'`
16141
16344
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16145
16348
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16146
16349
   if (exit $ac_status) && test -s "$ac_outfile"; then
16147
16350
     # The compiler can only warn and ignore the option if not recognized
16148
 
     # So say no if there are warnings
16149
 
     if test ! -s conftest.err; then
 
16351
     # So say no if there are warnings other than the usual output.
 
16352
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16353
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16354
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16150
16355
       lt_prog_compiler_pic_works_F77=yes
16151
16356
     fi
16152
16357
   fi
16167
16372
fi
16168
16373
 
16169
16374
fi
16170
 
case "$host_os" in
 
16375
case $host_os in
16171
16376
  # For platforms which do not support PIC, -DPIC is meaningless:
16172
16377
  *djgpp*)
16173
16378
    lt_prog_compiler_pic_F77=
16177
16382
    ;;
16178
16383
esac
16179
16384
 
 
16385
#
 
16386
# Check to make sure the static flag actually works.
 
16387
#
 
16388
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
16389
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16390
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
16391
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
16392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16393
else
 
16394
  lt_prog_compiler_static_works_F77=no
 
16395
   save_LDFLAGS="$LDFLAGS"
 
16396
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16397
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16398
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16399
     # The linker can only warn and ignore the option if not recognized
 
16400
     # So say no if there are warnings
 
16401
     if test -s conftest.err; then
 
16402
       # Append any errors to the config.log.
 
16403
       cat conftest.err 1>&5
 
16404
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16405
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16406
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16407
         lt_prog_compiler_static_works_F77=yes
 
16408
       fi
 
16409
     else
 
16410
       lt_prog_compiler_static_works_F77=yes
 
16411
     fi
 
16412
   fi
 
16413
   $rm conftest*
 
16414
   LDFLAGS="$save_LDFLAGS"
 
16415
 
 
16416
fi
 
16417
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
16418
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
16419
 
 
16420
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
16421
    :
 
16422
else
 
16423
    lt_prog_compiler_static_F77=
 
16424
fi
 
16425
 
 
16426
 
16180
16427
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16181
16428
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16182
16429
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16195
16442
   # Note that $ac_compile itself does not contain backslashes and begins
16196
16443
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16197
16444
   lt_compile=`echo "$ac_compile" | $SED \
16198
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16445
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16199
16446
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16200
16447
   -e 's:$: $lt_compiler_flag:'`
16201
16448
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16207
16454
   then
16208
16455
     # The compiler can only warn and ignore the option if not recognized
16209
16456
     # So say no if there are warnings
16210
 
     if test ! -s out/conftest.err; then
 
16457
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16458
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16459
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16211
16460
       lt_cv_prog_compiler_c_o_F77=yes
16212
16461
     fi
16213
16462
   fi
16214
 
   chmod u+w .
 
16463
   chmod u+w . 2>&5
16215
16464
   $rm conftest*
16216
16465
   # SGI C++ compiler will create directory out/ii_files/ for
16217
16466
   # template instantiation
16287
16536
  # rely on this symbol name, it's probably fine to never include it in
16288
16537
  # preloaded symbol tables.
16289
16538
  extract_expsyms_cmds=
 
16539
  # Just being paranoid about ensuring that cc_basename is set.
 
16540
  for cc_temp in $compiler""; do
 
16541
  case $cc_temp in
 
16542
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16543
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16544
    \-*) ;;
 
16545
    *) break;;
 
16546
  esac
 
16547
done
 
16548
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16549
 
16291
16550
  case $host_os in
16292
16551
  cygwin* | mingw* | pw32*)
16297
16556
      with_gnu_ld=no
16298
16557
    fi
16299
16558
    ;;
 
16559
  interix*)
 
16560
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16561
    with_gnu_ld=yes
 
16562
    ;;
16300
16563
  openbsd*)
16301
16564
    with_gnu_ld=no
16302
16565
    ;;
16307
16570
    # If archive_cmds runs LD, not CC, wlarc should be empty
16308
16571
    wlarc='${wl}'
16309
16572
 
 
16573
    # Set some defaults for GNU ld with shared library support. These
 
16574
    # are reset later if shared libraries are not supported. Putting them
 
16575
    # here allows them to be overridden if necessary.
 
16576
    runpath_var=LD_RUN_PATH
 
16577
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16578
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16579
    # ancient GNU ld didn't support --whole-archive et. al.
 
16580
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16581
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16582
      else
 
16583
        whole_archive_flag_spec_F77=
 
16584
    fi
 
16585
    supports_anon_versioning=no
 
16586
    case `$LD -v 2>/dev/null` in
 
16587
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16588
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16589
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16590
      *\ 2.11.*) ;; # other 2.11 versions
 
16591
      *) supports_anon_versioning=yes ;;
 
16592
    esac
 
16593
 
16310
16594
    # See if GNU ld supports shared libraries.
16311
16595
    case $host_os in
16312
16596
    aix3* | aix4* | aix5*)
16357
16641
      allow_undefined_flag_F77=unsupported
16358
16642
      always_export_symbols_F77=no
16359
16643
      enable_shared_with_static_runtimes_F77=yes
16360
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16644
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16361
16645
 
16362
16646
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16363
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16647
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16364
16648
        # If the export-symbols file already is a .def file (1st line
16365
16649
        # is EXPORTS), use it as is; otherwise, prepend...
16366
16650
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16369
16653
          echo EXPORTS > $output_objdir/$soname.def;
16370
16654
          cat $export_symbols >> $output_objdir/$soname.def;
16371
16655
        fi~
16372
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16373
 
      else
16374
 
        ld_shlibs=no
 
16656
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16657
      else
 
16658
        ld_shlibs_F77=no
 
16659
      fi
 
16660
      ;;
 
16661
 
 
16662
    interix3*)
 
16663
      hardcode_direct_F77=no
 
16664
      hardcode_shlibpath_var_F77=no
 
16665
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16666
      export_dynamic_flag_spec_F77='${wl}-E'
 
16667
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16668
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16669
      # default) and relocated if they conflict, which is a slow very memory
 
16670
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16671
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16672
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16673
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16674
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16675
      ;;
 
16676
 
 
16677
    linux*)
 
16678
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16679
        tmp_addflag=
 
16680
        case $cc_basename,$host_cpu in
 
16681
        pgcc*)                          # Portland Group C compiler
 
16682
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16683
          tmp_addflag=' $pic_flag'
 
16684
          ;;
 
16685
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16686
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16687
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16688
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16689
          tmp_addflag=' -i_dynamic' ;;
 
16690
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16691
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16692
        ifc* | ifort*)                  # Intel Fortran compiler
 
16693
          tmp_addflag=' -nofor_main' ;;
 
16694
        esac
 
16695
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16696
 
 
16697
        if test $supports_anon_versioning = yes; then
 
16698
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
16699
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16700
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16701
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16702
        fi
 
16703
        link_all_deplibs_F77=no
 
16704
      else
 
16705
        ld_shlibs_F77=no
16375
16706
      fi
16376
16707
      ;;
16377
16708
 
16385
16716
      fi
16386
16717
      ;;
16387
16718
 
16388
 
    solaris* | sysv5*)
 
16719
    solaris*)
16389
16720
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16390
16721
        ld_shlibs_F77=no
16391
16722
        cat <<EOF 1>&2
16406
16737
      fi
16407
16738
      ;;
16408
16739
 
 
16740
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16741
      case `$LD -v 2>&1` in
 
16742
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
 
16743
        ld_shlibs_F77=no
 
16744
        cat <<_LT_EOF 1>&2
 
16745
 
 
16746
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16747
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16748
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16749
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16750
*** your PATH or compiler configuration so that the native linker is
 
16751
*** used, and then restart.
 
16752
 
 
16753
_LT_EOF
 
16754
        ;;
 
16755
        *)
 
16756
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16757
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16758
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16759
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16760
          else
 
16761
            ld_shlibs_F77=no
 
16762
          fi
 
16763
        ;;
 
16764
      esac
 
16765
      ;;
 
16766
 
16409
16767
    sunos4*)
16410
16768
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411
16769
      wlarc=
16413
16771
      hardcode_shlibpath_var_F77=no
16414
16772
      ;;
16415
16773
 
16416
 
  linux*)
16417
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419
 
        archive_cmds_F77="$tmp_archive_cmds"
16420
 
      supports_anon_versioning=no
16421
 
      case `$LD -v 2>/dev/null` in
16422
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16423
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16424
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16425
 
        *\ 2.11.*) ;; # other 2.11 versions
16426
 
        *) supports_anon_versioning=yes ;;
16427
 
      esac
16428
 
      if test $supports_anon_versioning = yes; then
16429
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16430
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16431
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16432
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16433
 
      else
16434
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
16435
 
      fi
16436
 
      link_all_deplibs_F77=no
16437
 
    else
16438
 
      ld_shlibs_F77=no
16439
 
    fi
16440
 
    ;;
16441
 
 
16442
16774
    *)
16443
16775
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16444
16776
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16449
16781
      ;;
16450
16782
    esac
16451
16783
 
16452
 
    if test "$ld_shlibs_F77" = yes; then
16453
 
      runpath_var=LD_RUN_PATH
16454
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16455
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16456
 
      # ancient GNU ld didn't support --whole-archive et. al.
16457
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16458
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16459
 
      else
16460
 
        whole_archive_flag_spec_F77=
16461
 
      fi
 
16784
    if test "$ld_shlibs_F77" = no; then
 
16785
      runpath_var=
 
16786
      hardcode_libdir_flag_spec_F77=
 
16787
      export_dynamic_flag_spec_F77=
 
16788
      whole_archive_flag_spec_F77=
16462
16789
    fi
16463
16790
  else
16464
16791
    # PORTME fill in a description of your system's linker (not GNU ld)
16470
16797
      # Note: this linker hardcodes the directories in LIBPATH if there
16471
16798
      # are no directories specified by -L.
16472
16799
      hardcode_minus_L_F77=yes
16473
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16800
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16474
16801
        # Neither direct hardcoding nor static linking is supported with a
16475
16802
        # broken collect2.
16476
16803
        hardcode_direct_F77=unsupported
16504
16831
            break
16505
16832
          fi
16506
16833
          done
 
16834
          ;;
16507
16835
        esac
16508
16836
 
16509
16837
        exp_sym_flag='-bexport'
16522
16850
      link_all_deplibs_F77=yes
16523
16851
 
16524
16852
      if test "$GCC" = yes; then
16525
 
        case $host_os in aix4.012|aix4.012.*)
 
16853
        case $host_os in aix4.[012]|aix4.[012].*)
16526
16854
        # We only want to do this on AIX 4.2 and lower, the check
16527
16855
        # below for broken collect2 doesn't work under 4.3+
16528
16856
          collect2name=`${CC} -print-prog-name=collect2`
16541
16869
          hardcode_libdir_flag_spec_F77='-L$libdir'
16542
16870
          hardcode_libdir_separator_F77=
16543
16871
          fi
 
16872
          ;;
16544
16873
        esac
16545
16874
        shared_flag='-shared'
 
16875
        if test "$aix_use_runtimelinking" = yes; then
 
16876
          shared_flag="$shared_flag "'${wl}-G'
 
16877
        fi
16546
16878
      else
16547
16879
        # not using gcc
16548
16880
        if test "$host_cpu" = ia64; then
16550
16882
        # chokes on -Wl,-G. The following line is correct:
16551
16883
          shared_flag='-G'
16552
16884
        else
16553
 
        if test "$aix_use_runtimelinking" = yes; then
 
16885
          if test "$aix_use_runtimelinking" = yes; then
16554
16886
            shared_flag='${wl}-G'
16555
16887
          else
16556
16888
            shared_flag='${wl}-bM:SRE'
16557
 
        fi
 
16889
          fi
16558
16890
        fi
16559
16891
      fi
16560
16892
 
16608
16940
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16609
16941
 
16610
16942
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16611
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16943
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16612
16944
       else
16613
16945
        if test "$host_cpu" = ia64; then
16614
16946
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16615
16947
          allow_undefined_flag_F77="-z nodefs"
16616
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16948
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16617
16949
        else
16618
16950
         # Determine the default libpath from the value encoded in an empty executable.
16619
16951
         cat >conftest.$ac_ext <<_ACEOF
16662
16994
          # -berok will link without error, but may produce a broken library.
16663
16995
          no_undefined_flag_F77=' ${wl}-bernotok'
16664
16996
          allow_undefined_flag_F77=' ${wl}-berok'
16665
 
          # -bexpall does not export symbols beginning with underscore (_)
16666
 
          always_export_symbols_F77=yes
16667
16997
          # Exported symbols can be pulled into shared objects from archives
16668
 
          whole_archive_flag_spec_F77=' '
 
16998
          whole_archive_flag_spec_F77='$convenience'
16669
16999
          archive_cmds_need_lc_F77=yes
16670
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16671
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17000
          # This is similar to how AIX traditionally builds its shared libraries.
 
17001
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16672
17002
        fi
16673
17003
      fi
16674
17004
      ;;
16681
17011
      ld_shlibs_F77=no
16682
17012
      ;;
16683
17013
 
16684
 
    bsdi4*)
 
17014
    bsdi[45]*)
16685
17015
      export_dynamic_flag_spec_F77=-rdynamic
16686
17016
      ;;
16687
17017
 
16702
17032
      old_archive_From_new_cmds_F77='true'
16703
17033
      # FIXME: Should let the user specify the lib program.
16704
17034
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16705
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17035
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16706
17036
      enable_shared_with_static_runtimes_F77=yes
16707
17037
      ;;
16708
17038
 
16709
17039
    darwin* | rhapsody*)
16710
 
    if test "$GXX" = yes ; then
 
17040
      case $host_os in
 
17041
        rhapsody* | darwin1.[012])
 
17042
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
17043
         ;;
 
17044
       *) # Darwin 1.3 on
 
17045
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17046
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17047
         else
 
17048
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17049
             10.[012])
 
17050
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17051
               ;;
 
17052
             10.*)
 
17053
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
17054
               ;;
 
17055
           esac
 
17056
         fi
 
17057
         ;;
 
17058
      esac
16711
17059
      archive_cmds_need_lc_F77=no
16712
 
      case "$host_os" in
16713
 
      rhapsody* | darwin1.[012])
16714
 
        allow_undefined_flag_F77='-undefined suppress'
16715
 
        ;;
16716
 
      *) # Darwin 1.3 on
16717
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16718
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16719
 
      else
16720
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16721
 
          10.[012])
16722
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16723
 
            ;;
16724
 
          10.*)
16725
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
16726
 
            ;;
16727
 
        esac
16728
 
      fi
16729
 
        ;;
16730
 
      esac
16731
 
        lt_int_apple_cc_single_mod=no
16732
 
        output_verbose_link_cmd='echo'
16733
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16734
 
          lt_int_apple_cc_single_mod=yes
16735
 
        fi
16736
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16737
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16738
 
        else
16739
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16740
 
      fi
16741
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16742
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16743
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16744
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16745
 
        else
16746
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16747
 
        fi
16748
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16749
17060
      hardcode_direct_F77=no
16750
17061
      hardcode_automatic_F77=yes
16751
17062
      hardcode_shlibpath_var_F77=unsupported
16752
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
17063
      whole_archive_flag_spec_F77=''
16753
17064
      link_all_deplibs_F77=yes
 
17065
    if test "$GCC" = yes ; then
 
17066
        output_verbose_link_cmd='echo'
 
17067
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17068
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17069
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17070
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17071
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16754
17072
    else
16755
 
      ld_shlibs_F77=no
 
17073
      case $cc_basename in
 
17074
        xlc*)
 
17075
         output_verbose_link_cmd='echo'
 
17076
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17077
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17078
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17079
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17080
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17081
          ;;
 
17082
       *)
 
17083
         ld_shlibs_F77=no
 
17084
          ;;
 
17085
      esac
16756
17086
    fi
16757
17087
      ;;
16758
17088
 
16786
17116
      ;;
16787
17117
 
16788
17118
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16789
 
    freebsd* | kfreebsd*-gnu)
16790
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16791
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
16792
 
      hardcode_direct_F77=yes
16793
 
      hardcode_shlibpath_var_F77=no
 
17119
    freebsd* | dragonfly*)
 
17120
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17121
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17122
      hardcode_direct_F77=yes
 
17123
      hardcode_shlibpath_var_F77=no
 
17124
      ;;
 
17125
      
 
17126
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
17127
    kfreebsd*-gnu)
 
17128
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17129
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17130
      hardcode_direct_F77=yes
 
17131
      hardcode_shlibpath_var_F77=no
 
17132
      link_all_deplibs_F77=no
16794
17133
      ;;
16795
17134
 
16796
17135
    hpux9*)
16809
17148
      export_dynamic_flag_spec_F77='${wl}-E'
16810
17149
      ;;
16811
17150
 
16812
 
    hpux10* | hpux11*)
16813
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16814
 
        case "$host_cpu" in
16815
 
        hppa*64*|ia64*)
 
17151
    hpux10*)
 
17152
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17153
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17154
      else
 
17155
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17156
      fi
 
17157
      if test "$with_gnu_ld" = no; then
 
17158
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17159
        hardcode_libdir_separator_F77=:
 
17160
 
 
17161
        hardcode_direct_F77=yes
 
17162
        export_dynamic_flag_spec_F77='${wl}-E'
 
17163
 
 
17164
        # hardcode_minus_L: Not really in the search PATH,
 
17165
        # but as the default location of the library.
 
17166
        hardcode_minus_L_F77=yes
 
17167
      fi
 
17168
      ;;
 
17169
 
 
17170
    hpux11*)
 
17171
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17172
        case $host_cpu in
 
17173
        hppa*64*)
16816
17174
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16817
17175
          ;;
 
17176
        ia64*)
 
17177
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17178
          ;;
16818
17179
        *)
16819
17180
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16820
17181
          ;;
16821
17182
        esac
16822
17183
      else
16823
 
        case "$host_cpu" in
16824
 
        hppa*64*|ia64*)
16825
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17184
        case $host_cpu in
 
17185
        hppa*64*)
 
17186
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17187
          ;;
 
17188
        ia64*)
 
17189
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16826
17190
          ;;
16827
17191
        *)
16828
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17192
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829
17193
          ;;
16830
17194
        esac
16831
17195
      fi
16832
17196
      if test "$with_gnu_ld" = no; then
16833
 
        case "$host_cpu" in
16834
 
        hppa*64*)
16835
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17197
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17198
        hardcode_libdir_separator_F77=:
 
17199
 
 
17200
        case $host_cpu in
 
17201
        hppa*64*|ia64*)
16836
17202
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16837
 
          hardcode_libdir_separator_F77=:
16838
 
          hardcode_direct_F77=no
16839
 
          hardcode_shlibpath_var_F77=no
16840
 
          ;;
16841
 
        ia64*)
16842
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
16843
 
          hardcode_direct_F77=no
16844
 
          hardcode_shlibpath_var_F77=no
16845
 
 
16846
 
          # hardcode_minus_L: Not really in the search PATH,
16847
 
          # but as the default location of the library.
16848
 
          hardcode_minus_L_F77=yes
 
17203
          hardcode_direct_F77=no
 
17204
          hardcode_shlibpath_var_F77=no
16849
17205
          ;;
16850
17206
        *)
16851
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16852
 
          hardcode_libdir_separator_F77=:
16853
17207
          hardcode_direct_F77=yes
16854
17208
          export_dynamic_flag_spec_F77='${wl}-E'
16855
17209
 
16897
17251
      hardcode_shlibpath_var_F77=no
16898
17252
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16899
17253
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17254
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16900
17255
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16901
17256
        export_dynamic_flag_spec_F77='${wl}-E'
16902
17257
      else
16942
17297
        allow_undefined_flag_F77=' -expect_unresolved \*'
16943
17298
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16944
17299
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16945
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17300
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16946
17301
 
16947
17302
        # Both c and cxx compiler support -rpath directly
16948
17303
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
16950
17305
      hardcode_libdir_separator_F77=:
16951
17306
      ;;
16952
17307
 
16953
 
    sco3.2v5*)
16954
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955
 
      hardcode_shlibpath_var_F77=no
16956
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
16957
 
      runpath_var=LD_RUN_PATH
16958
 
      hardcode_runpath_var=yes
16959
 
      ;;
16960
 
 
16961
17308
    solaris*)
16962
17309
      no_undefined_flag_F77=' -z text'
16963
17310
      if test "$GCC" = yes; then
 
17311
        wlarc='${wl}'
16964
17312
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16965
17313
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16966
17314
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16967
17315
      else
 
17316
        wlarc=''
16968
17317
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969
17318
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16970
17319
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16973
17322
      hardcode_shlibpath_var_F77=no
16974
17323
      case $host_os in
16975
17324
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16976
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16977
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
17325
      *)
 
17326
        # The compiler driver will combine linker options so we
 
17327
        # cannot just pass the convience library names through
 
17328
        # without $wl, iff we do not link with $LD.
 
17329
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17330
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17331
        case $wlarc in
 
17332
        '')
 
17333
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
17334
        *)
 
17335
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17336
        esac ;;
16978
17337
      esac
16979
17338
      link_all_deplibs_F77=yes
16980
17339
      ;;
17031
17390
      fi
17032
17391
      ;;
17033
17392
 
17034
 
    sysv4.2uw2*)
17035
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17036
 
      hardcode_direct_F77=yes
17037
 
      hardcode_minus_L_F77=no
17038
 
      hardcode_shlibpath_var_F77=no
17039
 
      hardcode_runpath_var=yes
17040
 
      runpath_var=LD_RUN_PATH
17041
 
      ;;
17042
 
 
17043
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17044
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
17045
 
      if test "$GCC" = yes; then
17046
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17047
 
      else
17048
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17049
 
      fi
17050
 
      runpath_var='LD_RUN_PATH'
17051
 
      hardcode_shlibpath_var_F77=no
17052
 
      ;;
17053
 
 
17054
 
    sysv5*)
17055
 
      no_undefined_flag_F77=' -z text'
17056
 
      # $CC -shared without GNU ld will not create a library from C++
17057
 
      # object files and a static libstdc++, better avoid it by now
17058
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17060
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17061
 
      hardcode_libdir_flag_spec_F77=
17062
 
      hardcode_shlibpath_var_F77=no
17063
 
      runpath_var='LD_RUN_PATH'
 
17393
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17394
      no_undefined_flag_F77='${wl}-z,text'
 
17395
      archive_cmds_need_lc_F77=no
 
17396
      hardcode_shlibpath_var_F77=no
 
17397
      runpath_var='LD_RUN_PATH'
 
17398
 
 
17399
      if test "$GCC" = yes; then
 
17400
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17401
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17402
      else
 
17403
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17404
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17405
      fi
 
17406
      ;;
 
17407
 
 
17408
    sysv5* | sco3.2v5* | sco5v6*)
 
17409
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17410
      # link with -lc, and that would cause any symbols used from libc to
 
17411
      # always be unresolved, which means just about no library would
 
17412
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17413
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17414
      # as -z defs.
 
17415
      no_undefined_flag_F77='${wl}-z,text'
 
17416
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
17417
      archive_cmds_need_lc_F77=no
 
17418
      hardcode_shlibpath_var_F77=no
 
17419
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17420
      hardcode_libdir_separator_F77=':'
 
17421
      link_all_deplibs_F77=yes
 
17422
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
17423
      runpath_var='LD_RUN_PATH'
 
17424
 
 
17425
      if test "$GCC" = yes; then
 
17426
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17427
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17428
      else
 
17429
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17430
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17431
      fi
17064
17432
      ;;
17065
17433
 
17066
17434
    uts4*)
17079
17447
echo "${ECHO_T}$ld_shlibs_F77" >&6
17080
17448
test "$ld_shlibs_F77" = no && can_build_shared=no
17081
17449
 
17082
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17083
 
if test "$GCC" = yes; then
17084
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17085
 
fi
17086
 
 
17087
17450
#
17088
17451
# Do we need to explicitly link libc?
17089
17452
#
17116
17479
        libobjs=conftest.$ac_objext
17117
17480
        deplibs=
17118
17481
        wl=$lt_prog_compiler_wl_F77
 
17482
        pic_flag=$lt_prog_compiler_pic_F77
17119
17483
        compiler_flags=-v
17120
17484
        linker_flags=-v
17121
17485
        verstring=
17248
17612
  shlibpath_var=LIBRARY_PATH
17249
17613
  ;;
17250
17614
 
17251
 
bsdi4*)
 
17615
bsdi[45]*)
17252
17616
  version_type=linux
17253
17617
  need_version=no
17254
17618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276
17640
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17277
17641
      dldir=$destdir/`dirname \$dlpath`~
17278
17642
      test -d \$dldir || mkdir -p \$dldir~
17279
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17643
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17644
      chmod a+x \$dldir/$dlname'
17280
17645
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17281
17646
      dlpath=$dir/\$dldll~
17282
17647
       $rm \$dlpath'
17306
17671
      ;;
17307
17672
    pw32*)
17308
17673
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17309
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17674
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17310
17675
      ;;
17311
17676
    esac
17312
17677
    ;;
17329
17694
  soname_spec='${libname}${release}${major}$shared_ext'
17330
17695
  shlibpath_overrides_runpath=yes
17331
17696
  shlibpath_var=DYLD_LIBRARY_PATH
17332
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17697
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17333
17698
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17334
17699
  if test "$GCC" = yes; then
17335
17700
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17364
17729
  dynamic_linker='GNU ld.so'
17365
17730
  ;;
17366
17731
 
17367
 
freebsd*)
17368
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17732
freebsd* | dragonfly*)
 
17733
  # DragonFly does not have aout.  When/if they implement a new
 
17734
  # versioning mechanism, adjust this.
 
17735
  if test -x /usr/bin/objformat; then
 
17736
    objformat=`/usr/bin/objformat`
 
17737
  else
 
17738
    case $host_os in
 
17739
    freebsd[123]*) objformat=aout ;;
 
17740
    *) objformat=elf ;;
 
17741
    esac
 
17742
  fi
17369
17743
  version_type=freebsd-$objformat
17370
17744
  case $version_type in
17371
17745
    freebsd-elf*)
17383
17757
  freebsd2*)
17384
17758
    shlibpath_overrides_runpath=yes
17385
17759
    ;;
17386
 
  freebsd3.01* | freebsdelf3.01*)
 
17760
  freebsd3.[01]* | freebsdelf3.[01]*)
17387
17761
    shlibpath_overrides_runpath=yes
17388
17762
    hardcode_into_libs=yes
17389
17763
    ;;
17390
 
  *) # from 3.2 on
 
17764
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17765
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17391
17766
    shlibpath_overrides_runpath=no
17392
17767
    hardcode_into_libs=yes
17393
17768
    ;;
 
17769
  freebsd*) # from 4.6 on
 
17770
    shlibpath_overrides_runpath=yes
 
17771
    hardcode_into_libs=yes
 
17772
    ;;
17394
17773
  esac
17395
17774
  ;;
17396
17775
 
17410
17789
  version_type=sunos
17411
17790
  need_lib_prefix=no
17412
17791
  need_version=no
17413
 
  case "$host_cpu" in
 
17792
  case $host_cpu in
17414
17793
  ia64*)
17415
17794
    shrext_cmds='.so'
17416
17795
    hardcode_into_libs=yes
17450
17829
  postinstall_cmds='chmod 555 $lib'
17451
17830
  ;;
17452
17831
 
 
17832
interix3*)
 
17833
  version_type=linux
 
17834
  need_lib_prefix=no
 
17835
  need_version=no
 
17836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17837
  soname_spec='${libname}${release}${shared_ext}$major'
 
17838
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17839
  shlibpath_var=LD_LIBRARY_PATH
 
17840
  shlibpath_overrides_runpath=no
 
17841
  hardcode_into_libs=yes
 
17842
  ;;
 
17843
 
17453
17844
irix5* | irix6* | nonstopux*)
17454
17845
  case $host_os in
17455
17846
    nonstopux*) version_type=nonstopux ;;
17509
17900
 
17510
17901
  # Append ld.so.conf contents to the search path
17511
17902
  if test -f /etc/ld.so.conf; then
17512
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17903
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17513
17904
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17514
17905
  fi
17515
17906
 
17583
17974
 
17584
17975
openbsd*)
17585
17976
  version_type=sunos
 
17977
  sys_lib_dlsearch_path_spec="/usr/lib"
17586
17978
  need_lib_prefix=no
17587
 
  need_version=yes
 
17979
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17980
  case $host_os in
 
17981
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17982
    *)                         need_version=no  ;;
 
17983
  esac
17588
17984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17589
17985
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17590
17986
  shlibpath_var=LD_LIBRARY_PATH
17622
18018
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17623
18019
  ;;
17624
18020
 
17625
 
sco3.2v5*)
17626
 
  version_type=osf
17627
 
  soname_spec='${libname}${release}${shared_ext}$major'
17628
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629
 
  shlibpath_var=LD_LIBRARY_PATH
17630
 
  ;;
17631
 
 
17632
18021
solaris*)
17633
18022
  version_type=linux
17634
18023
  need_lib_prefix=no
17654
18043
  need_version=yes
17655
18044
  ;;
17656
18045
 
17657
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18046
sysv4 | sysv4.3*)
17658
18047
  version_type=linux
17659
18048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660
18049
  soname_spec='${libname}${release}${shared_ext}$major'
17687
18076
  fi
17688
18077
  ;;
17689
18078
 
 
18079
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18080
  version_type=freebsd-elf
 
18081
  need_lib_prefix=no
 
18082
  need_version=no
 
18083
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18084
  soname_spec='${libname}${release}${shared_ext}$major'
 
18085
  shlibpath_var=LD_LIBRARY_PATH
 
18086
  hardcode_into_libs=yes
 
18087
  if test "$with_gnu_ld" = yes; then
 
18088
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18089
    shlibpath_overrides_runpath=no
 
18090
  else
 
18091
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18092
    shlibpath_overrides_runpath=yes
 
18093
    case $host_os in
 
18094
      sco3.2v5*)
 
18095
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18096
        ;;
 
18097
    esac
 
18098
  fi
 
18099
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18100
  ;;
 
18101
 
17690
18102
uts4*)
17691
18103
  version_type=linux
17692
18104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702
18114
echo "${ECHO_T}$dynamic_linker" >&6
17703
18115
test "$dynamic_linker" = no && can_build_shared=no
17704
18116
 
 
18117
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18118
if test "$GCC" = yes; then
 
18119
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18120
fi
 
18121
 
17705
18122
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17706
18123
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17707
18124
hardcode_action_F77=
17708
18125
if test -n "$hardcode_libdir_flag_spec_F77" || \
17709
 
   test -n "$runpath_var F77" || \
17710
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
18126
   test -n "$runpath_var_F77" || \
 
18127
   test "X$hardcode_automatic_F77" = "Xyes" ; then
17711
18128
 
17712
18129
  # We can hardcode non-existant directories.
17713
18130
  if test "$hardcode_direct_F77" != no &&
17739
18156
  enable_fast_install=needless
17740
18157
fi
17741
18158
 
17742
 
striplib=
17743
 
old_striplib=
17744
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17745
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17746
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17747
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17748
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17749
 
  echo "$as_me:$LINENO: result: yes" >&5
17750
 
echo "${ECHO_T}yes" >&6
17751
 
else
17752
 
# FIXME - insert some real tests, host_os isn't really good enough
17753
 
  case $host_os in
17754
 
   darwin*)
17755
 
       if test -n "$STRIP" ; then
17756
 
         striplib="$STRIP -x"
17757
 
         echo "$as_me:$LINENO: result: yes" >&5
17758
 
echo "${ECHO_T}yes" >&6
17759
 
       else
17760
 
  echo "$as_me:$LINENO: result: no" >&5
17761
 
echo "${ECHO_T}no" >&6
17762
 
fi
17763
 
       ;;
17764
 
   *)
17765
 
  echo "$as_me:$LINENO: result: no" >&5
17766
 
echo "${ECHO_T}no" >&6
17767
 
    ;;
17768
 
  esac
17769
 
fi
17770
 
 
17771
 
 
17772
18159
 
17773
18160
# The else clause should only fire when bootstrapping the
17774
18161
# libtool distribution, otherwise you forgot to ship ltmain.sh
17783
18170
  # Now quote all the things that may contain metacharacters while being
17784
18171
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17785
18172
  # variables and quote the copies for generation of the libtool script.
17786
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18173
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17787
18174
    SED SHELL STRIP \
17788
18175
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17789
18176
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17884
18271
# The host system.
17885
18272
host_alias=$host_alias
17886
18273
host=$host
 
18274
host_os=$host_os
 
18275
 
 
18276
# The build system.
 
18277
build_alias=$build_alias
 
18278
build=$build
 
18279
build_os=$build_os
17887
18280
 
17888
18281
# An echo program that does not interpret backslashes.
17889
18282
echo=$lt_echo
17895
18288
# A C compiler.
17896
18289
LTCC=$lt_LTCC
17897
18290
 
 
18291
# LTCC compiler flags.
 
18292
LTCFLAGS=$lt_LTCFLAGS
 
18293
 
17898
18294
# A language-specific compiler.
17899
18295
CC=$lt_compiler_F77
17900
18296
 
17960
18356
# Does compiler simultaneously support -c and -o options?
17961
18357
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17962
18358
 
17963
 
# Must we lock files when doing compilation ?
 
18359
# Must we lock files when doing compilation?
17964
18360
need_locks=$lt_need_locks
17965
18361
 
17966
18362
# Do we need the lib prefix for modules?
18198
18594
lt_simple_compile_test_code="class foo {}\n"
18199
18595
 
18200
18596
# Code to be used in simple link tests
18201
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
18597
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18202
18598
 
18203
18599
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18204
18600
 
18205
18601
# If no C compiler was specified, use CC.
18206
18602
LTCC=${LTCC-"$CC"}
18207
18603
 
 
18604
# If no C compiler flags were specified, use CFLAGS.
 
18605
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18606
 
18208
18607
# Allow CC to be a program name with arguments.
18209
18608
compiler=$CC
18210
18609
 
18211
18610
 
 
18611
# save warnings/boilerplate of simple test code
 
18612
ac_outfile=conftest.$ac_objext
 
18613
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18614
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18615
_lt_compiler_boilerplate=`cat conftest.err`
 
18616
$rm conftest*
 
18617
 
 
18618
ac_outfile=conftest.$ac_objext
 
18619
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18620
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18621
_lt_linker_boilerplate=`cat conftest.err`
 
18622
$rm conftest*
 
18623
 
 
18624
 
18212
18625
# Allow CC to be a program name with arguments.
18213
18626
lt_save_CC="$CC"
18214
18627
CC=${GCJ-"gcj"}
18215
18628
compiler=$CC
18216
18629
compiler_GCJ=$CC
 
18630
for cc_temp in $compiler""; do
 
18631
  case $cc_temp in
 
18632
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18633
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18634
    \-*) ;;
 
18635
    *) break;;
 
18636
  esac
 
18637
done
 
18638
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18639
 
18217
18640
 
18218
18641
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18219
18642
archive_cmds_need_lc_GCJ=no
18220
18643
 
 
18644
old_archive_cmds_GCJ=$old_archive_cmds
 
18645
 
18221
18646
 
18222
18647
lt_prog_compiler_no_builtin_flag_GCJ=
18223
18648
 
18240
18665
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18241
18666
   # The option is referenced via a variable to avoid confusing sed.
18242
18667
   lt_compile=`echo "$ac_compile" | $SED \
18243
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18668
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18244
18669
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18245
18670
   -e 's:$: $lt_compiler_flag:'`
18246
18671
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18250
18675
   echo "$as_me:__oline__: \$? = $ac_status" >&5
18251
18676
   if (exit $ac_status) && test -s "$ac_outfile"; then
18252
18677
     # The compiler can only warn and ignore the option if not recognized
18253
 
     # So say no if there are warnings
18254
 
     if test ! -s conftest.err; then
 
18678
     # So say no if there are warnings other than the usual output.
 
18679
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
18680
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
18681
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18255
18682
       lt_cv_prog_compiler_rtti_exceptions=yes
18256
18683
     fi
18257
18684
   fi
18312
18739
      lt_prog_compiler_pic_GCJ='-fno-common'
18313
18740
      ;;
18314
18741
 
 
18742
    interix3*)
 
18743
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
18744
      # Instead, we relocate shared libraries at runtime.
 
18745
      ;;
 
18746
 
18315
18747
    msdosdjgpp*)
18316
18748
      # Just because we use GCC doesn't mean we suddenly get shared libraries
18317
18749
      # on systems that don't support them.
18328
18760
    hpux*)
18329
18761
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18330
18762
      # not for PA HP-UX.
18331
 
      case "$host_cpu" in
 
18763
      case $host_cpu in
18332
18764
      hppa*64*|ia64*)
18333
18765
        # +Z the default
18334
18766
        ;;
18354
18786
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18355
18787
      fi
18356
18788
      ;;
 
18789
      darwin*)
 
18790
        # PIC is the default on this platform
 
18791
        # Common symbols not allowed in MH_DYLIB files
 
18792
       case $cc_basename in
 
18793
         xlc*)
 
18794
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
18795
         lt_prog_compiler_wl_GCJ='-Wl,'
 
18796
         ;;
 
18797
       esac
 
18798
       ;;
18357
18799
 
18358
18800
    mingw* | pw32* | os2*)
18359
18801
      # This hack is so that the source file can tell whether it is being
18365
18807
      lt_prog_compiler_wl_GCJ='-Wl,'
18366
18808
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18367
18809
      # not for PA HP-UX.
18368
 
      case "$host_cpu" in
 
18810
      case $host_cpu in
18369
18811
      hppa*64*|ia64*)
18370
18812
        # +Z the default
18371
18813
        ;;
18389
18831
      ;;
18390
18832
 
18391
18833
    linux*)
18392
 
      case $CC in
 
18834
      case $cc_basename in
18393
18835
      icc* | ecc*)
18394
18836
        lt_prog_compiler_wl_GCJ='-Wl,'
18395
18837
        lt_prog_compiler_pic_GCJ='-KPIC'
18396
18838
        lt_prog_compiler_static_GCJ='-static'
18397
18839
        ;;
 
18840
      pgcc* | pgf77* | pgf90* | pgf95*)
 
18841
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
18842
        # which looks to be a dead project)
 
18843
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18844
        lt_prog_compiler_pic_GCJ='-fpic'
 
18845
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18846
        ;;
18398
18847
      ccc*)
18399
18848
        lt_prog_compiler_wl_GCJ='-Wl,'
18400
18849
        # All Alpha code is PIC.
18409
18858
      lt_prog_compiler_static_GCJ='-non_shared'
18410
18859
      ;;
18411
18860
 
18412
 
    sco3.2v5*)
18413
 
      lt_prog_compiler_pic_GCJ='-Kpic'
18414
 
      lt_prog_compiler_static_GCJ='-dn'
18415
 
      ;;
18416
 
 
18417
18861
    solaris*)
18418
 
      lt_prog_compiler_wl_GCJ='-Wl,'
18419
18862
      lt_prog_compiler_pic_GCJ='-KPIC'
18420
18863
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18864
      case $cc_basename in
 
18865
      f77* | f90* | f95*)
 
18866
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
18867
      *)
 
18868
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
18869
      esac
18421
18870
      ;;
18422
18871
 
18423
18872
    sunos4*)
18426
18875
      lt_prog_compiler_static_GCJ='-Bstatic'
18427
18876
      ;;
18428
18877
 
18429
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18878
    sysv4 | sysv4.2uw2* | sysv4.3*)
18430
18879
      lt_prog_compiler_wl_GCJ='-Wl,'
18431
18880
      lt_prog_compiler_pic_GCJ='-KPIC'
18432
18881
      lt_prog_compiler_static_GCJ='-Bstatic'
18439
18888
      fi
18440
18889
      ;;
18441
18890
 
 
18891
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
18892
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18893
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18894
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18895
      ;;
 
18896
 
 
18897
    unicos*)
 
18898
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18899
      lt_prog_compiler_can_build_shared_GCJ=no
 
18900
      ;;
 
18901
 
18442
18902
    uts4*)
18443
18903
      lt_prog_compiler_pic_GCJ='-pic'
18444
18904
      lt_prog_compiler_static_GCJ='-Bstatic'
18473
18933
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18474
18934
   # The option is referenced via a variable to avoid confusing sed.
18475
18935
   lt_compile=`echo "$ac_compile" | $SED \
18476
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18936
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18477
18937
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18478
18938
   -e 's:$: $lt_compiler_flag:'`
18479
18939
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18483
18943
   echo "$as_me:__oline__: \$? = $ac_status" >&5
18484
18944
   if (exit $ac_status) && test -s "$ac_outfile"; then
18485
18945
     # The compiler can only warn and ignore the option if not recognized
18486
 
     # So say no if there are warnings
18487
 
     if test ! -s conftest.err; then
 
18946
     # So say no if there are warnings other than the usual output.
 
18947
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
18948
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
18949
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18488
18950
       lt_prog_compiler_pic_works_GCJ=yes
18489
18951
     fi
18490
18952
   fi
18505
18967
fi
18506
18968
 
18507
18969
fi
18508
 
case "$host_os" in
 
18970
case $host_os in
18509
18971
  # For platforms which do not support PIC, -DPIC is meaningless:
18510
18972
  *djgpp*)
18511
18973
    lt_prog_compiler_pic_GCJ=
18515
18977
    ;;
18516
18978
esac
18517
18979
 
 
18980
#
 
18981
# Check to make sure the static flag actually works.
 
18982
#
 
18983
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
18984
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
18985
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
18986
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
18987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18988
else
 
18989
  lt_prog_compiler_static_works_GCJ=no
 
18990
   save_LDFLAGS="$LDFLAGS"
 
18991
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
18992
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
18993
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
18994
     # The linker can only warn and ignore the option if not recognized
 
18995
     # So say no if there are warnings
 
18996
     if test -s conftest.err; then
 
18997
       # Append any errors to the config.log.
 
18998
       cat conftest.err 1>&5
 
18999
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
19000
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
19001
       if diff conftest.exp conftest.er2 >/dev/null; then
 
19002
         lt_prog_compiler_static_works_GCJ=yes
 
19003
       fi
 
19004
     else
 
19005
       lt_prog_compiler_static_works_GCJ=yes
 
19006
     fi
 
19007
   fi
 
19008
   $rm conftest*
 
19009
   LDFLAGS="$save_LDFLAGS"
 
19010
 
 
19011
fi
 
19012
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
19013
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
19014
 
 
19015
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
19016
    :
 
19017
else
 
19018
    lt_prog_compiler_static_GCJ=
 
19019
fi
 
19020
 
 
19021
 
18518
19022
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18519
19023
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18520
19024
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18533
19037
   # Note that $ac_compile itself does not contain backslashes and begins
18534
19038
   # with a dollar sign (not a hyphen), so the echo should work correctly.
18535
19039
   lt_compile=`echo "$ac_compile" | $SED \
18536
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
19040
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18537
19041
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18538
19042
   -e 's:$: $lt_compiler_flag:'`
18539
19043
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18545
19049
   then
18546
19050
     # The compiler can only warn and ignore the option if not recognized
18547
19051
     # So say no if there are warnings
18548
 
     if test ! -s out/conftest.err; then
 
19052
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
19053
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
19054
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18549
19055
       lt_cv_prog_compiler_c_o_GCJ=yes
18550
19056
     fi
18551
19057
   fi
18552
 
   chmod u+w .
 
19058
   chmod u+w . 2>&5
18553
19059
   $rm conftest*
18554
19060
   # SGI C++ compiler will create directory out/ii_files/ for
18555
19061
   # template instantiation
18625
19131
  # rely on this symbol name, it's probably fine to never include it in
18626
19132
  # preloaded symbol tables.
18627
19133
  extract_expsyms_cmds=
 
19134
  # Just being paranoid about ensuring that cc_basename is set.
 
19135
  for cc_temp in $compiler""; do
 
19136
  case $cc_temp in
 
19137
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19138
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19139
    \-*) ;;
 
19140
    *) break;;
 
19141
  esac
 
19142
done
 
19143
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18628
19144
 
18629
19145
  case $host_os in
18630
19146
  cygwin* | mingw* | pw32*)
18635
19151
      with_gnu_ld=no
18636
19152
    fi
18637
19153
    ;;
 
19154
  interix*)
 
19155
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
19156
    with_gnu_ld=yes
 
19157
    ;;
18638
19158
  openbsd*)
18639
19159
    with_gnu_ld=no
18640
19160
    ;;
18645
19165
    # If archive_cmds runs LD, not CC, wlarc should be empty
18646
19166
    wlarc='${wl}'
18647
19167
 
 
19168
    # Set some defaults for GNU ld with shared library support. These
 
19169
    # are reset later if shared libraries are not supported. Putting them
 
19170
    # here allows them to be overridden if necessary.
 
19171
    runpath_var=LD_RUN_PATH
 
19172
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
19173
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
19174
    # ancient GNU ld didn't support --whole-archive et. al.
 
19175
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
19176
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
19177
      else
 
19178
        whole_archive_flag_spec_GCJ=
 
19179
    fi
 
19180
    supports_anon_versioning=no
 
19181
    case `$LD -v 2>/dev/null` in
 
19182
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
19183
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
19184
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
19185
      *\ 2.11.*) ;; # other 2.11 versions
 
19186
      *) supports_anon_versioning=yes ;;
 
19187
    esac
 
19188
 
18648
19189
    # See if GNU ld supports shared libraries.
18649
19190
    case $host_os in
18650
19191
    aix3* | aix4* | aix5*)
18695
19236
      allow_undefined_flag_GCJ=unsupported
18696
19237
      always_export_symbols_GCJ=no
18697
19238
      enable_shared_with_static_runtimes_GCJ=yes
18698
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
19239
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18699
19240
 
18700
19241
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18701
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
19242
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18702
19243
        # If the export-symbols file already is a .def file (1st line
18703
19244
        # is EXPORTS), use it as is; otherwise, prepend...
18704
19245
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18707
19248
          echo EXPORTS > $output_objdir/$soname.def;
18708
19249
          cat $export_symbols >> $output_objdir/$soname.def;
18709
19250
        fi~
18710
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18711
 
      else
18712
 
        ld_shlibs=no
 
19251
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
19252
      else
 
19253
        ld_shlibs_GCJ=no
 
19254
      fi
 
19255
      ;;
 
19256
 
 
19257
    interix3*)
 
19258
      hardcode_direct_GCJ=no
 
19259
      hardcode_shlibpath_var_GCJ=no
 
19260
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19261
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19262
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
19263
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
19264
      # default) and relocated if they conflict, which is a slow very memory
 
19265
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
19266
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
19267
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
19268
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
19269
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
19270
      ;;
 
19271
 
 
19272
    linux*)
 
19273
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
19274
        tmp_addflag=
 
19275
        case $cc_basename,$host_cpu in
 
19276
        pgcc*)                          # Portland Group C compiler
 
19277
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
19278
          tmp_addflag=' $pic_flag'
 
19279
          ;;
 
19280
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
19281
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
19282
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
19283
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
19284
          tmp_addflag=' -i_dynamic' ;;
 
19285
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
19286
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
19287
        ifc* | ifort*)                  # Intel Fortran compiler
 
19288
          tmp_addflag=' -nofor_main' ;;
 
19289
        esac
 
19290
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
19291
 
 
19292
        if test $supports_anon_versioning = yes; then
 
19293
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
19294
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
19295
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
19296
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
19297
        fi
 
19298
        link_all_deplibs_GCJ=no
 
19299
      else
 
19300
        ld_shlibs_GCJ=no
18713
19301
      fi
18714
19302
      ;;
18715
19303
 
18723
19311
      fi
18724
19312
      ;;
18725
19313
 
18726
 
    solaris* | sysv5*)
 
19314
    solaris*)
18727
19315
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18728
19316
        ld_shlibs_GCJ=no
18729
19317
        cat <<EOF 1>&2
18744
19332
      fi
18745
19333
      ;;
18746
19334
 
 
19335
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
19336
      case `$LD -v 2>&1` in
 
19337
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
 
19338
        ld_shlibs_GCJ=no
 
19339
        cat <<_LT_EOF 1>&2
 
19340
 
 
19341
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
19342
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
19343
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
19344
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
19345
*** your PATH or compiler configuration so that the native linker is
 
19346
*** used, and then restart.
 
19347
 
 
19348
_LT_EOF
 
19349
        ;;
 
19350
        *)
 
19351
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
19352
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
19353
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
19354
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
19355
          else
 
19356
            ld_shlibs_GCJ=no
 
19357
          fi
 
19358
        ;;
 
19359
      esac
 
19360
      ;;
 
19361
 
18747
19362
    sunos4*)
18748
19363
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18749
19364
      wlarc=
18751
19366
      hardcode_shlibpath_var_GCJ=no
18752
19367
      ;;
18753
19368
 
18754
 
  linux*)
18755
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18756
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18757
 
        archive_cmds_GCJ="$tmp_archive_cmds"
18758
 
      supports_anon_versioning=no
18759
 
      case `$LD -v 2>/dev/null` in
18760
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18761
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18762
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18763
 
        *\ 2.11.*) ;; # other 2.11 versions
18764
 
        *) supports_anon_versioning=yes ;;
18765
 
      esac
18766
 
      if test $supports_anon_versioning = yes; then
18767
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18768
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18769
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
18770
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18771
 
      else
18772
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18773
 
      fi
18774
 
      link_all_deplibs_GCJ=no
18775
 
    else
18776
 
      ld_shlibs_GCJ=no
18777
 
    fi
18778
 
    ;;
18779
 
 
18780
19369
    *)
18781
19370
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18782
19371
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787
19376
      ;;
18788
19377
    esac
18789
19378
 
18790
 
    if test "$ld_shlibs_GCJ" = yes; then
18791
 
      runpath_var=LD_RUN_PATH
18792
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18793
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18794
 
      # ancient GNU ld didn't support --whole-archive et. al.
18795
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18796
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18797
 
      else
18798
 
        whole_archive_flag_spec_GCJ=
18799
 
      fi
 
19379
    if test "$ld_shlibs_GCJ" = no; then
 
19380
      runpath_var=
 
19381
      hardcode_libdir_flag_spec_GCJ=
 
19382
      export_dynamic_flag_spec_GCJ=
 
19383
      whole_archive_flag_spec_GCJ=
18800
19384
    fi
18801
19385
  else
18802
19386
    # PORTME fill in a description of your system's linker (not GNU ld)
18808
19392
      # Note: this linker hardcodes the directories in LIBPATH if there
18809
19393
      # are no directories specified by -L.
18810
19394
      hardcode_minus_L_GCJ=yes
18811
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
19395
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18812
19396
        # Neither direct hardcoding nor static linking is supported with a
18813
19397
        # broken collect2.
18814
19398
        hardcode_direct_GCJ=unsupported
18842
19426
            break
18843
19427
          fi
18844
19428
          done
 
19429
          ;;
18845
19430
        esac
18846
19431
 
18847
19432
        exp_sym_flag='-bexport'
18860
19445
      link_all_deplibs_GCJ=yes
18861
19446
 
18862
19447
      if test "$GCC" = yes; then
18863
 
        case $host_os in aix4.012|aix4.012.*)
 
19448
        case $host_os in aix4.[012]|aix4.[012].*)
18864
19449
        # We only want to do this on AIX 4.2 and lower, the check
18865
19450
        # below for broken collect2 doesn't work under 4.3+
18866
19451
          collect2name=`${CC} -print-prog-name=collect2`
18879
19464
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
18880
19465
          hardcode_libdir_separator_GCJ=
18881
19466
          fi
 
19467
          ;;
18882
19468
        esac
18883
19469
        shared_flag='-shared'
 
19470
        if test "$aix_use_runtimelinking" = yes; then
 
19471
          shared_flag="$shared_flag "'${wl}-G'
 
19472
        fi
18884
19473
      else
18885
19474
        # not using gcc
18886
19475
        if test "$host_cpu" = ia64; then
18888
19477
        # chokes on -Wl,-G. The following line is correct:
18889
19478
          shared_flag='-G'
18890
19479
        else
18891
 
        if test "$aix_use_runtimelinking" = yes; then
 
19480
          if test "$aix_use_runtimelinking" = yes; then
18892
19481
            shared_flag='${wl}-G'
18893
19482
          else
18894
19483
            shared_flag='${wl}-bM:SRE'
18895
 
        fi
 
19484
          fi
18896
19485
        fi
18897
19486
      fi
18898
19487
 
18956
19545
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18957
19546
 
18958
19547
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18959
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
19548
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18960
19549
       else
18961
19550
        if test "$host_cpu" = ia64; then
18962
19551
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18963
19552
          allow_undefined_flag_GCJ="-z nodefs"
18964
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
19553
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18965
19554
        else
18966
19555
         # Determine the default libpath from the value encoded in an empty executable.
18967
19556
         cat >conftest.$ac_ext <<_ACEOF
19020
19609
          # -berok will link without error, but may produce a broken library.
19021
19610
          no_undefined_flag_GCJ=' ${wl}-bernotok'
19022
19611
          allow_undefined_flag_GCJ=' ${wl}-berok'
19023
 
          # -bexpall does not export symbols beginning with underscore (_)
19024
 
          always_export_symbols_GCJ=yes
19025
19612
          # Exported symbols can be pulled into shared objects from archives
19026
 
          whole_archive_flag_spec_GCJ=' '
 
19613
          whole_archive_flag_spec_GCJ='$convenience'
19027
19614
          archive_cmds_need_lc_GCJ=yes
19028
 
          # This is similar to how AIX traditionally builds it's shared libraries.
19029
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
19615
          # This is similar to how AIX traditionally builds its shared libraries.
 
19616
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19030
19617
        fi
19031
19618
      fi
19032
19619
      ;;
19039
19626
      ld_shlibs_GCJ=no
19040
19627
      ;;
19041
19628
 
19042
 
    bsdi4*)
 
19629
    bsdi[45]*)
19043
19630
      export_dynamic_flag_spec_GCJ=-rdynamic
19044
19631
      ;;
19045
19632
 
19060
19647
      old_archive_From_new_cmds_GCJ='true'
19061
19648
      # FIXME: Should let the user specify the lib program.
19062
19649
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19063
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
19650
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19064
19651
      enable_shared_with_static_runtimes_GCJ=yes
19065
19652
      ;;
19066
19653
 
19067
19654
    darwin* | rhapsody*)
19068
 
    if test "$GXX" = yes ; then
 
19655
      case $host_os in
 
19656
        rhapsody* | darwin1.[012])
 
19657
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
19658
         ;;
 
19659
       *) # Darwin 1.3 on
 
19660
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19661
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
19662
         else
 
19663
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
19664
             10.[012])
 
19665
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
19666
               ;;
 
19667
             10.*)
 
19668
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
19669
               ;;
 
19670
           esac
 
19671
         fi
 
19672
         ;;
 
19673
      esac
19069
19674
      archive_cmds_need_lc_GCJ=no
19070
 
      case "$host_os" in
19071
 
      rhapsody* | darwin1.[012])
19072
 
        allow_undefined_flag_GCJ='-undefined suppress'
19073
 
        ;;
19074
 
      *) # Darwin 1.3 on
19075
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19076
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19077
 
      else
19078
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
19079
 
          10.[012])
19080
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19081
 
            ;;
19082
 
          10.*)
19083
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
19084
 
            ;;
19085
 
        esac
19086
 
      fi
19087
 
        ;;
19088
 
      esac
19089
 
        lt_int_apple_cc_single_mod=no
19090
 
        output_verbose_link_cmd='echo'
19091
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19092
 
          lt_int_apple_cc_single_mod=yes
19093
 
        fi
19094
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19095
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19096
 
        else
19097
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19098
 
      fi
19099
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19101
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19102
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19103
 
        else
19104
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19105
 
        fi
19106
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19107
19675
      hardcode_direct_GCJ=no
19108
19676
      hardcode_automatic_GCJ=yes
19109
19677
      hardcode_shlibpath_var_GCJ=unsupported
19110
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
19678
      whole_archive_flag_spec_GCJ=''
19111
19679
      link_all_deplibs_GCJ=yes
 
19680
    if test "$GCC" = yes ; then
 
19681
        output_verbose_link_cmd='echo'
 
19682
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
19683
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19684
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
19685
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19686
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19112
19687
    else
19113
 
      ld_shlibs_GCJ=no
 
19688
      case $cc_basename in
 
19689
        xlc*)
 
19690
         output_verbose_link_cmd='echo'
 
19691
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
19692
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19693
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
19694
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19695
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19696
          ;;
 
19697
       *)
 
19698
         ld_shlibs_GCJ=no
 
19699
          ;;
 
19700
      esac
19114
19701
    fi
19115
19702
      ;;
19116
19703
 
19144
19731
      ;;
19145
19732
 
19146
19733
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19147
 
    freebsd* | kfreebsd*-gnu)
19148
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19149
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150
 
      hardcode_direct_GCJ=yes
19151
 
      hardcode_shlibpath_var_GCJ=no
 
19734
    freebsd* | dragonfly*)
 
19735
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
19736
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19737
      hardcode_direct_GCJ=yes
 
19738
      hardcode_shlibpath_var_GCJ=no
 
19739
      ;;
 
19740
      
 
19741
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
19742
    kfreebsd*-gnu)
 
19743
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
19744
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19745
      hardcode_direct_GCJ=yes
 
19746
      hardcode_shlibpath_var_GCJ=no
 
19747
      link_all_deplibs_GCJ=no
19152
19748
      ;;
19153
19749
 
19154
19750
    hpux9*)
19167
19763
      export_dynamic_flag_spec_GCJ='${wl}-E'
19168
19764
      ;;
19169
19765
 
19170
 
    hpux10* | hpux11*)
19171
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19172
 
        case "$host_cpu" in
19173
 
        hppa*64*|ia64*)
 
19766
    hpux10*)
 
19767
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19768
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19769
      else
 
19770
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19771
      fi
 
19772
      if test "$with_gnu_ld" = no; then
 
19773
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19774
        hardcode_libdir_separator_GCJ=:
 
19775
 
 
19776
        hardcode_direct_GCJ=yes
 
19777
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19778
 
 
19779
        # hardcode_minus_L: Not really in the search PATH,
 
19780
        # but as the default location of the library.
 
19781
        hardcode_minus_L_GCJ=yes
 
19782
      fi
 
19783
      ;;
 
19784
 
 
19785
    hpux11*)
 
19786
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19787
        case $host_cpu in
 
19788
        hppa*64*)
19174
19789
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19175
19790
          ;;
 
19791
        ia64*)
 
19792
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
19793
          ;;
19176
19794
        *)
19177
19795
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19178
19796
          ;;
19179
19797
        esac
19180
19798
      else
19181
 
        case "$host_cpu" in
19182
 
        hppa*64*|ia64*)
19183
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19799
        case $host_cpu in
 
19800
        hppa*64*)
 
19801
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19802
          ;;
 
19803
        ia64*)
 
19804
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19184
19805
          ;;
19185
19806
        *)
19186
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19807
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19187
19808
          ;;
19188
19809
        esac
19189
19810
      fi
19190
19811
      if test "$with_gnu_ld" = no; then
19191
 
        case "$host_cpu" in
19192
 
        hppa*64*)
19193
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19812
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19813
        hardcode_libdir_separator_GCJ=:
 
19814
 
 
19815
        case $host_cpu in
 
19816
        hppa*64*|ia64*)
19194
19817
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19195
 
          hardcode_libdir_separator_GCJ=:
19196
 
          hardcode_direct_GCJ=no
19197
 
          hardcode_shlibpath_var_GCJ=no
19198
 
          ;;
19199
 
        ia64*)
19200
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
19201
 
          hardcode_direct_GCJ=no
19202
 
          hardcode_shlibpath_var_GCJ=no
19203
 
 
19204
 
          # hardcode_minus_L: Not really in the search PATH,
19205
 
          # but as the default location of the library.
19206
 
          hardcode_minus_L_GCJ=yes
 
19818
          hardcode_direct_GCJ=no
 
19819
          hardcode_shlibpath_var_GCJ=no
19207
19820
          ;;
19208
19821
        *)
19209
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19210
 
          hardcode_libdir_separator_GCJ=:
19211
19822
          hardcode_direct_GCJ=yes
19212
19823
          export_dynamic_flag_spec_GCJ='${wl}-E'
19213
19824
 
19255
19866
      hardcode_shlibpath_var_GCJ=no
19256
19867
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19257
19868
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19869
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19258
19870
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19259
19871
        export_dynamic_flag_spec_GCJ='${wl}-E'
19260
19872
      else
19300
19912
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
19301
19913
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19302
19914
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19303
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
19915
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19304
19916
 
19305
19917
        # Both c and cxx compiler support -rpath directly
19306
19918
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19308
19920
      hardcode_libdir_separator_GCJ=:
19309
19921
      ;;
19310
19922
 
19311
 
    sco3.2v5*)
19312
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19313
 
      hardcode_shlibpath_var_GCJ=no
19314
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19315
 
      runpath_var=LD_RUN_PATH
19316
 
      hardcode_runpath_var=yes
19317
 
      ;;
19318
 
 
19319
19923
    solaris*)
19320
19924
      no_undefined_flag_GCJ=' -z text'
19321
19925
      if test "$GCC" = yes; then
 
19926
        wlarc='${wl}'
19322
19927
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323
19928
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19324
19929
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19325
19930
      else
 
19931
        wlarc=''
19326
19932
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19327
19933
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19328
19934
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19331
19937
      hardcode_shlibpath_var_GCJ=no
19332
19938
      case $host_os in
19333
19939
      solaris2.[0-5] | solaris2.[0-5].*) ;;
19334
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19335
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19940
      *)
 
19941
        # The compiler driver will combine linker options so we
 
19942
        # cannot just pass the convience library names through
 
19943
        # without $wl, iff we do not link with $LD.
 
19944
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
19945
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19946
        case $wlarc in
 
19947
        '')
 
19948
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19949
        *)
 
19950
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
19951
        esac ;;
19336
19952
      esac
19337
19953
      link_all_deplibs_GCJ=yes
19338
19954
      ;;
19389
20005
      fi
19390
20006
      ;;
19391
20007
 
19392
 
    sysv4.2uw2*)
19393
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19394
 
      hardcode_direct_GCJ=yes
19395
 
      hardcode_minus_L_GCJ=no
19396
 
      hardcode_shlibpath_var_GCJ=no
19397
 
      hardcode_runpath_var=yes
19398
 
      runpath_var=LD_RUN_PATH
19399
 
      ;;
19400
 
 
19401
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19402
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
19403
 
      if test "$GCC" = yes; then
19404
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19405
 
      else
19406
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19407
 
      fi
19408
 
      runpath_var='LD_RUN_PATH'
19409
 
      hardcode_shlibpath_var_GCJ=no
19410
 
      ;;
19411
 
 
19412
 
    sysv5*)
19413
 
      no_undefined_flag_GCJ=' -z text'
19414
 
      # $CC -shared without GNU ld will not create a library from C++
19415
 
      # object files and a static libstdc++, better avoid it by now
19416
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19417
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19418
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19419
 
      hardcode_libdir_flag_spec_GCJ=
19420
 
      hardcode_shlibpath_var_GCJ=no
19421
 
      runpath_var='LD_RUN_PATH'
 
20008
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
20009
      no_undefined_flag_GCJ='${wl}-z,text'
 
20010
      archive_cmds_need_lc_GCJ=no
 
20011
      hardcode_shlibpath_var_GCJ=no
 
20012
      runpath_var='LD_RUN_PATH'
 
20013
 
 
20014
      if test "$GCC" = yes; then
 
20015
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20016
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20017
      else
 
20018
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20019
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20020
      fi
 
20021
      ;;
 
20022
 
 
20023
    sysv5* | sco3.2v5* | sco5v6*)
 
20024
      # Note: We can NOT use -z defs as we might desire, because we do not
 
20025
      # link with -lc, and that would cause any symbols used from libc to
 
20026
      # always be unresolved, which means just about no library would
 
20027
      # ever link correctly.  If we're not using GNU ld we use -z text
 
20028
      # though, which does catch some bad symbols but isn't as heavy-handed
 
20029
      # as -z defs.
 
20030
      no_undefined_flag_GCJ='${wl}-z,text'
 
20031
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
20032
      archive_cmds_need_lc_GCJ=no
 
20033
      hardcode_shlibpath_var_GCJ=no
 
20034
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
20035
      hardcode_libdir_separator_GCJ=':'
 
20036
      link_all_deplibs_GCJ=yes
 
20037
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
20038
      runpath_var='LD_RUN_PATH'
 
20039
 
 
20040
      if test "$GCC" = yes; then
 
20041
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20042
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20043
      else
 
20044
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20045
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
20046
      fi
19422
20047
      ;;
19423
20048
 
19424
20049
    uts4*)
19437
20062
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19438
20063
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19439
20064
 
19440
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19441
 
if test "$GCC" = yes; then
19442
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19443
 
fi
19444
 
 
19445
20065
#
19446
20066
# Do we need to explicitly link libc?
19447
20067
#
19474
20094
        libobjs=conftest.$ac_objext
19475
20095
        deplibs=
19476
20096
        wl=$lt_prog_compiler_wl_GCJ
 
20097
        pic_flag=$lt_prog_compiler_pic_GCJ
19477
20098
        compiler_flags=-v
19478
20099
        linker_flags=-v
19479
20100
        verstring=
19606
20227
  shlibpath_var=LIBRARY_PATH
19607
20228
  ;;
19608
20229
 
19609
 
bsdi4*)
 
20230
bsdi[45]*)
19610
20231
  version_type=linux
19611
20232
  need_version=no
19612
20233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19634
20255
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19635
20256
      dldir=$destdir/`dirname \$dlpath`~
19636
20257
      test -d \$dldir || mkdir -p \$dldir~
19637
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
20258
      $install_prog $dir/$dlname \$dldir/$dlname~
 
20259
      chmod a+x \$dldir/$dlname'
19638
20260
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19639
20261
      dlpath=$dir/\$dldll~
19640
20262
       $rm \$dlpath'
19664
20286
      ;;
19665
20287
    pw32*)
19666
20288
      # pw32 DLLs use 'pw' prefix rather than 'lib'
19667
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
20289
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19668
20290
      ;;
19669
20291
    esac
19670
20292
    ;;
19687
20309
  soname_spec='${libname}${release}${major}$shared_ext'
19688
20310
  shlibpath_overrides_runpath=yes
19689
20311
  shlibpath_var=DYLD_LIBRARY_PATH
19690
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
20312
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19691
20313
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19692
20314
  if test "$GCC" = yes; then
19693
20315
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19722
20344
  dynamic_linker='GNU ld.so'
19723
20345
  ;;
19724
20346
 
19725
 
freebsd*)
19726
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
20347
freebsd* | dragonfly*)
 
20348
  # DragonFly does not have aout.  When/if they implement a new
 
20349
  # versioning mechanism, adjust this.
 
20350
  if test -x /usr/bin/objformat; then
 
20351
    objformat=`/usr/bin/objformat`
 
20352
  else
 
20353
    case $host_os in
 
20354
    freebsd[123]*) objformat=aout ;;
 
20355
    *) objformat=elf ;;
 
20356
    esac
 
20357
  fi
19727
20358
  version_type=freebsd-$objformat
19728
20359
  case $version_type in
19729
20360
    freebsd-elf*)
19741
20372
  freebsd2*)
19742
20373
    shlibpath_overrides_runpath=yes
19743
20374
    ;;
19744
 
  freebsd3.01* | freebsdelf3.01*)
 
20375
  freebsd3.[01]* | freebsdelf3.[01]*)
19745
20376
    shlibpath_overrides_runpath=yes
19746
20377
    hardcode_into_libs=yes
19747
20378
    ;;
19748
 
  *) # from 3.2 on
 
20379
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
20380
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19749
20381
    shlibpath_overrides_runpath=no
19750
20382
    hardcode_into_libs=yes
19751
20383
    ;;
 
20384
  freebsd*) # from 4.6 on
 
20385
    shlibpath_overrides_runpath=yes
 
20386
    hardcode_into_libs=yes
 
20387
    ;;
19752
20388
  esac
19753
20389
  ;;
19754
20390
 
19768
20404
  version_type=sunos
19769
20405
  need_lib_prefix=no
19770
20406
  need_version=no
19771
 
  case "$host_cpu" in
 
20407
  case $host_cpu in
19772
20408
  ia64*)
19773
20409
    shrext_cmds='.so'
19774
20410
    hardcode_into_libs=yes
19808
20444
  postinstall_cmds='chmod 555 $lib'
19809
20445
  ;;
19810
20446
 
 
20447
interix3*)
 
20448
  version_type=linux
 
20449
  need_lib_prefix=no
 
20450
  need_version=no
 
20451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20452
  soname_spec='${libname}${release}${shared_ext}$major'
 
20453
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
20454
  shlibpath_var=LD_LIBRARY_PATH
 
20455
  shlibpath_overrides_runpath=no
 
20456
  hardcode_into_libs=yes
 
20457
  ;;
 
20458
 
19811
20459
irix5* | irix6* | nonstopux*)
19812
20460
  case $host_os in
19813
20461
    nonstopux*) version_type=nonstopux ;;
19867
20515
 
19868
20516
  # Append ld.so.conf contents to the search path
19869
20517
  if test -f /etc/ld.so.conf; then
19870
 
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
20518
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19871
20519
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19872
20520
  fi
19873
20521
 
19941
20589
 
19942
20590
openbsd*)
19943
20591
  version_type=sunos
 
20592
  sys_lib_dlsearch_path_spec="/usr/lib"
19944
20593
  need_lib_prefix=no
19945
 
  need_version=yes
 
20594
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
20595
  case $host_os in
 
20596
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
20597
    *)                         need_version=no  ;;
 
20598
  esac
19946
20599
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19947
20600
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19948
20601
  shlibpath_var=LD_LIBRARY_PATH
19980
20633
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19981
20634
  ;;
19982
20635
 
19983
 
sco3.2v5*)
19984
 
  version_type=osf
19985
 
  soname_spec='${libname}${release}${shared_ext}$major'
19986
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987
 
  shlibpath_var=LD_LIBRARY_PATH
19988
 
  ;;
19989
 
 
19990
20636
solaris*)
19991
20637
  version_type=linux
19992
20638
  need_lib_prefix=no
20012
20658
  need_version=yes
20013
20659
  ;;
20014
20660
 
20015
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
20661
sysv4 | sysv4.3*)
20016
20662
  version_type=linux
20017
20663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018
20664
  soname_spec='${libname}${release}${shared_ext}$major'
20045
20691
  fi
20046
20692
  ;;
20047
20693
 
 
20694
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
20695
  version_type=freebsd-elf
 
20696
  need_lib_prefix=no
 
20697
  need_version=no
 
20698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20699
  soname_spec='${libname}${release}${shared_ext}$major'
 
20700
  shlibpath_var=LD_LIBRARY_PATH
 
20701
  hardcode_into_libs=yes
 
20702
  if test "$with_gnu_ld" = yes; then
 
20703
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
20704
    shlibpath_overrides_runpath=no
 
20705
  else
 
20706
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
20707
    shlibpath_overrides_runpath=yes
 
20708
    case $host_os in
 
20709
      sco3.2v5*)
 
20710
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
20711
        ;;
 
20712
    esac
 
20713
  fi
 
20714
  sys_lib_dlsearch_path_spec='/usr/lib'
 
20715
  ;;
 
20716
 
20048
20717
uts4*)
20049
20718
  version_type=linux
20050
20719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060
20729
echo "${ECHO_T}$dynamic_linker" >&6
20061
20730
test "$dynamic_linker" = no && can_build_shared=no
20062
20731
 
 
20732
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
20733
if test "$GCC" = yes; then
 
20734
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
20735
fi
 
20736
 
20063
20737
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20064
20738
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20065
20739
hardcode_action_GCJ=
20066
20740
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20067
 
   test -n "$runpath_var GCJ" || \
20068
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
20741
   test -n "$runpath_var_GCJ" || \
 
20742
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20069
20743
 
20070
20744
  # We can hardcode non-existant directories.
20071
20745
  if test "$hardcode_direct_GCJ" != no &&
20097
20771
  enable_fast_install=needless
20098
20772
fi
20099
20773
 
20100
 
striplib=
20101
 
old_striplib=
20102
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20103
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20104
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20105
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20106
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20107
 
  echo "$as_me:$LINENO: result: yes" >&5
20108
 
echo "${ECHO_T}yes" >&6
20109
 
else
20110
 
# FIXME - insert some real tests, host_os isn't really good enough
20111
 
  case $host_os in
20112
 
   darwin*)
20113
 
       if test -n "$STRIP" ; then
20114
 
         striplib="$STRIP -x"
20115
 
         echo "$as_me:$LINENO: result: yes" >&5
20116
 
echo "${ECHO_T}yes" >&6
20117
 
       else
20118
 
  echo "$as_me:$LINENO: result: no" >&5
20119
 
echo "${ECHO_T}no" >&6
20120
 
fi
20121
 
       ;;
20122
 
   *)
20123
 
  echo "$as_me:$LINENO: result: no" >&5
20124
 
echo "${ECHO_T}no" >&6
20125
 
    ;;
20126
 
  esac
20127
 
fi
20128
 
 
20129
 
if test "x$enable_dlopen" != xyes; then
20130
 
  enable_dlopen=unknown
20131
 
  enable_dlopen_self=unknown
20132
 
  enable_dlopen_self_static=unknown
20133
 
else
20134
 
  lt_cv_dlopen=no
20135
 
  lt_cv_dlopen_libs=
20136
 
 
20137
 
  case $host_os in
20138
 
  beos*)
20139
 
    lt_cv_dlopen="load_add_on"
20140
 
    lt_cv_dlopen_libs=
20141
 
    lt_cv_dlopen_self=yes
20142
 
    ;;
20143
 
 
20144
 
  mingw* | pw32*)
20145
 
    lt_cv_dlopen="LoadLibrary"
20146
 
    lt_cv_dlopen_libs=
20147
 
   ;;
20148
 
 
20149
 
  cygwin*)
20150
 
    lt_cv_dlopen="dlopen"
20151
 
    lt_cv_dlopen_libs=
20152
 
   ;;
20153
 
 
20154
 
  darwin*)
20155
 
  # if libdl is installed we need to link against it
20156
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20157
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20158
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20159
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20160
 
else
20161
 
  ac_check_lib_save_LIBS=$LIBS
20162
 
LIBS="-ldl  $LIBS"
20163
 
cat >conftest.$ac_ext <<_ACEOF
20164
 
/* confdefs.h.  */
20165
 
_ACEOF
20166
 
cat confdefs.h >>conftest.$ac_ext
20167
 
cat >>conftest.$ac_ext <<_ACEOF
20168
 
/* end confdefs.h.  */
20169
 
 
20170
 
/* Override any gcc2 internal prototype to avoid an error.  */
20171
 
#ifdef __cplusplus
20172
 
extern "C"
20173
 
#endif
20174
 
/* We use char because int might match the return type of a gcc2
20175
 
   builtin and then its argument prototype would still apply.  */
20176
 
char dlopen ();
20177
 
int
20178
 
main ()
20179
 
{
20180
 
dlopen ();
20181
 
  ;
20182
 
  return 0;
20183
 
}
20184
 
_ACEOF
20185
 
rm -f conftest.$ac_objext conftest$ac_exeext
20186
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187
 
  (eval $ac_link) 2>conftest.er1
20188
 
  ac_status=$?
20189
 
  grep -v '^ *+' conftest.er1 >conftest.err
20190
 
  rm -f conftest.er1
20191
 
  cat conftest.err >&5
20192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193
 
  (exit $ac_status); } &&
20194
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20195
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196
 
  (eval $ac_try) 2>&5
20197
 
  ac_status=$?
20198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199
 
  (exit $ac_status); }; } &&
20200
 
         { ac_try='test -s conftest$ac_exeext'
20201
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202
 
  (eval $ac_try) 2>&5
20203
 
  ac_status=$?
20204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
 
  (exit $ac_status); }; }; then
20206
 
  ac_cv_lib_dl_dlopen=yes
20207
 
else
20208
 
  echo "$as_me: failed program was:" >&5
20209
 
sed 's/^/| /' conftest.$ac_ext >&5
20210
 
 
20211
 
ac_cv_lib_dl_dlopen=no
20212
 
fi
20213
 
rm -f conftest.err conftest.$ac_objext \
20214
 
      conftest$ac_exeext conftest.$ac_ext
20215
 
LIBS=$ac_check_lib_save_LIBS
20216
 
fi
20217
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20218
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20219
 
if test $ac_cv_lib_dl_dlopen = yes; then
20220
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20221
 
else
20222
 
  
20223
 
    lt_cv_dlopen="dyld"
20224
 
    lt_cv_dlopen_libs=
20225
 
    lt_cv_dlopen_self=yes
20226
 
    
20227
 
fi
20228
 
 
20229
 
   ;;
20230
 
 
20231
 
  *)
20232
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
20233
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20234
 
if test "${ac_cv_func_shl_load+set}" = set; then
20235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20236
 
else
20237
 
  cat >conftest.$ac_ext <<_ACEOF
20238
 
/* confdefs.h.  */
20239
 
_ACEOF
20240
 
cat confdefs.h >>conftest.$ac_ext
20241
 
cat >>conftest.$ac_ext <<_ACEOF
20242
 
/* end confdefs.h.  */
20243
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20244
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20245
 
#define shl_load innocuous_shl_load
20246
 
 
20247
 
/* System header to define __stub macros and hopefully few prototypes,
20248
 
    which can conflict with char shl_load (); below.
20249
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250
 
    <limits.h> exists even on freestanding compilers.  */
20251
 
 
20252
 
#ifdef __STDC__
20253
 
# include <limits.h>
20254
 
#else
20255
 
# include <assert.h>
20256
 
#endif
20257
 
 
20258
 
#undef shl_load
20259
 
 
20260
 
/* Override any gcc2 internal prototype to avoid an error.  */
20261
 
#ifdef __cplusplus
20262
 
extern "C"
20263
 
{
20264
 
#endif
20265
 
/* We use char because int might match the return type of a gcc2
20266
 
   builtin and then its argument prototype would still apply.  */
20267
 
char shl_load ();
20268
 
/* The GNU C library defines this for functions which it implements
20269
 
    to always fail with ENOSYS.  Some functions are actually named
20270
 
    something starting with __ and the normal name is an alias.  */
20271
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
20272
 
choke me
20273
 
#else
20274
 
char (*f) () = shl_load;
20275
 
#endif
20276
 
#ifdef __cplusplus
20277
 
}
20278
 
#endif
20279
 
 
20280
 
int
20281
 
main ()
20282
 
{
20283
 
return f != shl_load;
20284
 
  ;
20285
 
  return 0;
20286
 
}
20287
 
_ACEOF
20288
 
rm -f conftest.$ac_objext conftest$ac_exeext
20289
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290
 
  (eval $ac_link) 2>conftest.er1
20291
 
  ac_status=$?
20292
 
  grep -v '^ *+' conftest.er1 >conftest.err
20293
 
  rm -f conftest.er1
20294
 
  cat conftest.err >&5
20295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296
 
  (exit $ac_status); } &&
20297
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20298
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299
 
  (eval $ac_try) 2>&5
20300
 
  ac_status=$?
20301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
 
  (exit $ac_status); }; } &&
20303
 
         { ac_try='test -s conftest$ac_exeext'
20304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305
 
  (eval $ac_try) 2>&5
20306
 
  ac_status=$?
20307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
 
  (exit $ac_status); }; }; then
20309
 
  ac_cv_func_shl_load=yes
20310
 
else
20311
 
  echo "$as_me: failed program was:" >&5
20312
 
sed 's/^/| /' conftest.$ac_ext >&5
20313
 
 
20314
 
ac_cv_func_shl_load=no
20315
 
fi
20316
 
rm -f conftest.err conftest.$ac_objext \
20317
 
      conftest$ac_exeext conftest.$ac_ext
20318
 
fi
20319
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20320
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20321
 
if test $ac_cv_func_shl_load = yes; then
20322
 
  lt_cv_dlopen="shl_load"
20323
 
else
20324
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20325
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20326
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20327
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20328
 
else
20329
 
  ac_check_lib_save_LIBS=$LIBS
20330
 
LIBS="-ldld  $LIBS"
20331
 
cat >conftest.$ac_ext <<_ACEOF
20332
 
/* confdefs.h.  */
20333
 
_ACEOF
20334
 
cat confdefs.h >>conftest.$ac_ext
20335
 
cat >>conftest.$ac_ext <<_ACEOF
20336
 
/* end confdefs.h.  */
20337
 
 
20338
 
/* Override any gcc2 internal prototype to avoid an error.  */
20339
 
#ifdef __cplusplus
20340
 
extern "C"
20341
 
#endif
20342
 
/* We use char because int might match the return type of a gcc2
20343
 
   builtin and then its argument prototype would still apply.  */
20344
 
char shl_load ();
20345
 
int
20346
 
main ()
20347
 
{
20348
 
shl_load ();
20349
 
  ;
20350
 
  return 0;
20351
 
}
20352
 
_ACEOF
20353
 
rm -f conftest.$ac_objext conftest$ac_exeext
20354
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20355
 
  (eval $ac_link) 2>conftest.er1
20356
 
  ac_status=$?
20357
 
  grep -v '^ *+' conftest.er1 >conftest.err
20358
 
  rm -f conftest.er1
20359
 
  cat conftest.err >&5
20360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361
 
  (exit $ac_status); } &&
20362
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20363
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364
 
  (eval $ac_try) 2>&5
20365
 
  ac_status=$?
20366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
 
  (exit $ac_status); }; } &&
20368
 
         { ac_try='test -s conftest$ac_exeext'
20369
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370
 
  (eval $ac_try) 2>&5
20371
 
  ac_status=$?
20372
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
 
  (exit $ac_status); }; }; then
20374
 
  ac_cv_lib_dld_shl_load=yes
20375
 
else
20376
 
  echo "$as_me: failed program was:" >&5
20377
 
sed 's/^/| /' conftest.$ac_ext >&5
20378
 
 
20379
 
ac_cv_lib_dld_shl_load=no
20380
 
fi
20381
 
rm -f conftest.err conftest.$ac_objext \
20382
 
      conftest$ac_exeext conftest.$ac_ext
20383
 
LIBS=$ac_check_lib_save_LIBS
20384
 
fi
20385
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20386
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20387
 
if test $ac_cv_lib_dld_shl_load = yes; then
20388
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20389
 
else
20390
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
20391
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20392
 
if test "${ac_cv_func_dlopen+set}" = set; then
20393
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20394
 
else
20395
 
  cat >conftest.$ac_ext <<_ACEOF
20396
 
/* confdefs.h.  */
20397
 
_ACEOF
20398
 
cat confdefs.h >>conftest.$ac_ext
20399
 
cat >>conftest.$ac_ext <<_ACEOF
20400
 
/* end confdefs.h.  */
20401
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20402
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20403
 
#define dlopen innocuous_dlopen
20404
 
 
20405
 
/* System header to define __stub macros and hopefully few prototypes,
20406
 
    which can conflict with char dlopen (); below.
20407
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20408
 
    <limits.h> exists even on freestanding compilers.  */
20409
 
 
20410
 
#ifdef __STDC__
20411
 
# include <limits.h>
20412
 
#else
20413
 
# include <assert.h>
20414
 
#endif
20415
 
 
20416
 
#undef dlopen
20417
 
 
20418
 
/* Override any gcc2 internal prototype to avoid an error.  */
20419
 
#ifdef __cplusplus
20420
 
extern "C"
20421
 
{
20422
 
#endif
20423
 
/* We use char because int might match the return type of a gcc2
20424
 
   builtin and then its argument prototype would still apply.  */
20425
 
char dlopen ();
20426
 
/* The GNU C library defines this for functions which it implements
20427
 
    to always fail with ENOSYS.  Some functions are actually named
20428
 
    something starting with __ and the normal name is an alias.  */
20429
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
20430
 
choke me
20431
 
#else
20432
 
char (*f) () = dlopen;
20433
 
#endif
20434
 
#ifdef __cplusplus
20435
 
}
20436
 
#endif
20437
 
 
20438
 
int
20439
 
main ()
20440
 
{
20441
 
return f != dlopen;
20442
 
  ;
20443
 
  return 0;
20444
 
}
20445
 
_ACEOF
20446
 
rm -f conftest.$ac_objext conftest$ac_exeext
20447
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20448
 
  (eval $ac_link) 2>conftest.er1
20449
 
  ac_status=$?
20450
 
  grep -v '^ *+' conftest.er1 >conftest.err
20451
 
  rm -f conftest.er1
20452
 
  cat conftest.err >&5
20453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454
 
  (exit $ac_status); } &&
20455
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457
 
  (eval $ac_try) 2>&5
20458
 
  ac_status=$?
20459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460
 
  (exit $ac_status); }; } &&
20461
 
         { ac_try='test -s conftest$ac_exeext'
20462
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463
 
  (eval $ac_try) 2>&5
20464
 
  ac_status=$?
20465
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466
 
  (exit $ac_status); }; }; then
20467
 
  ac_cv_func_dlopen=yes
20468
 
else
20469
 
  echo "$as_me: failed program was:" >&5
20470
 
sed 's/^/| /' conftest.$ac_ext >&5
20471
 
 
20472
 
ac_cv_func_dlopen=no
20473
 
fi
20474
 
rm -f conftest.err conftest.$ac_objext \
20475
 
      conftest$ac_exeext conftest.$ac_ext
20476
 
fi
20477
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20478
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20479
 
if test $ac_cv_func_dlopen = yes; then
20480
 
  lt_cv_dlopen="dlopen"
20481
 
else
20482
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20483
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20484
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20485
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20486
 
else
20487
 
  ac_check_lib_save_LIBS=$LIBS
20488
 
LIBS="-ldl  $LIBS"
20489
 
cat >conftest.$ac_ext <<_ACEOF
20490
 
/* confdefs.h.  */
20491
 
_ACEOF
20492
 
cat confdefs.h >>conftest.$ac_ext
20493
 
cat >>conftest.$ac_ext <<_ACEOF
20494
 
/* end confdefs.h.  */
20495
 
 
20496
 
/* Override any gcc2 internal prototype to avoid an error.  */
20497
 
#ifdef __cplusplus
20498
 
extern "C"
20499
 
#endif
20500
 
/* We use char because int might match the return type of a gcc2
20501
 
   builtin and then its argument prototype would still apply.  */
20502
 
char dlopen ();
20503
 
int
20504
 
main ()
20505
 
{
20506
 
dlopen ();
20507
 
  ;
20508
 
  return 0;
20509
 
}
20510
 
_ACEOF
20511
 
rm -f conftest.$ac_objext conftest$ac_exeext
20512
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513
 
  (eval $ac_link) 2>conftest.er1
20514
 
  ac_status=$?
20515
 
  grep -v '^ *+' conftest.er1 >conftest.err
20516
 
  rm -f conftest.er1
20517
 
  cat conftest.err >&5
20518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519
 
  (exit $ac_status); } &&
20520
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522
 
  (eval $ac_try) 2>&5
20523
 
  ac_status=$?
20524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525
 
  (exit $ac_status); }; } &&
20526
 
         { ac_try='test -s conftest$ac_exeext'
20527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528
 
  (eval $ac_try) 2>&5
20529
 
  ac_status=$?
20530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531
 
  (exit $ac_status); }; }; then
20532
 
  ac_cv_lib_dl_dlopen=yes
20533
 
else
20534
 
  echo "$as_me: failed program was:" >&5
20535
 
sed 's/^/| /' conftest.$ac_ext >&5
20536
 
 
20537
 
ac_cv_lib_dl_dlopen=no
20538
 
fi
20539
 
rm -f conftest.err conftest.$ac_objext \
20540
 
      conftest$ac_exeext conftest.$ac_ext
20541
 
LIBS=$ac_check_lib_save_LIBS
20542
 
fi
20543
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20544
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20545
 
if test $ac_cv_lib_dl_dlopen = yes; then
20546
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20547
 
else
20548
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20549
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20550
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20551
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20552
 
else
20553
 
  ac_check_lib_save_LIBS=$LIBS
20554
 
LIBS="-lsvld  $LIBS"
20555
 
cat >conftest.$ac_ext <<_ACEOF
20556
 
/* confdefs.h.  */
20557
 
_ACEOF
20558
 
cat confdefs.h >>conftest.$ac_ext
20559
 
cat >>conftest.$ac_ext <<_ACEOF
20560
 
/* end confdefs.h.  */
20561
 
 
20562
 
/* Override any gcc2 internal prototype to avoid an error.  */
20563
 
#ifdef __cplusplus
20564
 
extern "C"
20565
 
#endif
20566
 
/* We use char because int might match the return type of a gcc2
20567
 
   builtin and then its argument prototype would still apply.  */
20568
 
char dlopen ();
20569
 
int
20570
 
main ()
20571
 
{
20572
 
dlopen ();
20573
 
  ;
20574
 
  return 0;
20575
 
}
20576
 
_ACEOF
20577
 
rm -f conftest.$ac_objext conftest$ac_exeext
20578
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579
 
  (eval $ac_link) 2>conftest.er1
20580
 
  ac_status=$?
20581
 
  grep -v '^ *+' conftest.er1 >conftest.err
20582
 
  rm -f conftest.er1
20583
 
  cat conftest.err >&5
20584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585
 
  (exit $ac_status); } &&
20586
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20587
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588
 
  (eval $ac_try) 2>&5
20589
 
  ac_status=$?
20590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591
 
  (exit $ac_status); }; } &&
20592
 
         { ac_try='test -s conftest$ac_exeext'
20593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594
 
  (eval $ac_try) 2>&5
20595
 
  ac_status=$?
20596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
 
  (exit $ac_status); }; }; then
20598
 
  ac_cv_lib_svld_dlopen=yes
20599
 
else
20600
 
  echo "$as_me: failed program was:" >&5
20601
 
sed 's/^/| /' conftest.$ac_ext >&5
20602
 
 
20603
 
ac_cv_lib_svld_dlopen=no
20604
 
fi
20605
 
rm -f conftest.err conftest.$ac_objext \
20606
 
      conftest$ac_exeext conftest.$ac_ext
20607
 
LIBS=$ac_check_lib_save_LIBS
20608
 
fi
20609
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20610
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20611
 
if test $ac_cv_lib_svld_dlopen = yes; then
20612
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20613
 
else
20614
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20615
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20616
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20618
 
else
20619
 
  ac_check_lib_save_LIBS=$LIBS
20620
 
LIBS="-ldld  $LIBS"
20621
 
cat >conftest.$ac_ext <<_ACEOF
20622
 
/* confdefs.h.  */
20623
 
_ACEOF
20624
 
cat confdefs.h >>conftest.$ac_ext
20625
 
cat >>conftest.$ac_ext <<_ACEOF
20626
 
/* end confdefs.h.  */
20627
 
 
20628
 
/* Override any gcc2 internal prototype to avoid an error.  */
20629
 
#ifdef __cplusplus
20630
 
extern "C"
20631
 
#endif
20632
 
/* We use char because int might match the return type of a gcc2
20633
 
   builtin and then its argument prototype would still apply.  */
20634
 
char dld_link ();
20635
 
int
20636
 
main ()
20637
 
{
20638
 
dld_link ();
20639
 
  ;
20640
 
  return 0;
20641
 
}
20642
 
_ACEOF
20643
 
rm -f conftest.$ac_objext conftest$ac_exeext
20644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645
 
  (eval $ac_link) 2>conftest.er1
20646
 
  ac_status=$?
20647
 
  grep -v '^ *+' conftest.er1 >conftest.err
20648
 
  rm -f conftest.er1
20649
 
  cat conftest.err >&5
20650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651
 
  (exit $ac_status); } &&
20652
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20653
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654
 
  (eval $ac_try) 2>&5
20655
 
  ac_status=$?
20656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657
 
  (exit $ac_status); }; } &&
20658
 
         { ac_try='test -s conftest$ac_exeext'
20659
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660
 
  (eval $ac_try) 2>&5
20661
 
  ac_status=$?
20662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663
 
  (exit $ac_status); }; }; then
20664
 
  ac_cv_lib_dld_dld_link=yes
20665
 
else
20666
 
  echo "$as_me: failed program was:" >&5
20667
 
sed 's/^/| /' conftest.$ac_ext >&5
20668
 
 
20669
 
ac_cv_lib_dld_dld_link=no
20670
 
fi
20671
 
rm -f conftest.err conftest.$ac_objext \
20672
 
      conftest$ac_exeext conftest.$ac_ext
20673
 
LIBS=$ac_check_lib_save_LIBS
20674
 
fi
20675
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20676
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20677
 
if test $ac_cv_lib_dld_dld_link = yes; then
20678
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20679
 
fi
20680
 
 
20681
 
              
20682
 
fi
20683
 
 
20684
 
            
20685
 
fi
20686
 
 
20687
 
          
20688
 
fi
20689
 
 
20690
 
        
20691
 
fi
20692
 
 
20693
 
      
20694
 
fi
20695
 
 
20696
 
    ;;
20697
 
  esac
20698
 
 
20699
 
  if test "x$lt_cv_dlopen" != xno; then
20700
 
    enable_dlopen=yes
20701
 
  else
20702
 
    enable_dlopen=no
20703
 
  fi
20704
 
 
20705
 
  case $lt_cv_dlopen in
20706
 
  dlopen)
20707
 
    save_CPPFLAGS="$CPPFLAGS"
20708
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20709
 
 
20710
 
    save_LDFLAGS="$LDFLAGS"
20711
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20712
 
 
20713
 
    save_LIBS="$LIBS"
20714
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
20715
 
 
20716
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20717
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20718
 
if test "${lt_cv_dlopen_self+set}" = set; then
20719
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20720
 
else
20721
 
          if test "$cross_compiling" = yes; then :
20722
 
  lt_cv_dlopen_self=cross
20723
 
else
20724
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20725
 
  lt_status=$lt_dlunknown
20726
 
  cat > conftest.$ac_ext <<EOF
20727
 
#line __oline__ "configure"
20728
 
#include "confdefs.h"
20729
 
 
20730
 
#if HAVE_DLFCN_H
20731
 
#include <dlfcn.h>
20732
 
#endif
20733
 
 
20734
 
#include <stdio.h>
20735
 
 
20736
 
#ifdef RTLD_GLOBAL
20737
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
20738
 
#else
20739
 
#  ifdef DL_GLOBAL
20740
 
#    define LT_DLGLOBAL         DL_GLOBAL
20741
 
#  else
20742
 
#    define LT_DLGLOBAL         0
20743
 
#  endif
20744
 
#endif
20745
 
 
20746
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20747
 
   find out it does not work in some platform. */
20748
 
#ifndef LT_DLLAZY_OR_NOW
20749
 
#  ifdef RTLD_LAZY
20750
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20751
 
#  else
20752
 
#    ifdef DL_LAZY
20753
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
20754
 
#    else
20755
 
#      ifdef RTLD_NOW
20756
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
20757
 
#      else
20758
 
#        ifdef DL_NOW
20759
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
20760
 
#        else
20761
 
#          define LT_DLLAZY_OR_NOW      0
20762
 
#        endif
20763
 
#      endif
20764
 
#    endif
20765
 
#  endif
20766
 
#endif
20767
 
 
20768
 
#ifdef __cplusplus
20769
 
extern "C" void exit (int);
20770
 
#endif
20771
 
 
20772
 
void fnord() { int i=42;}
20773
 
int main ()
20774
 
{
20775
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20776
 
  int status = $lt_dlunknown;
20777
 
 
20778
 
  if (self)
20779
 
    {
20780
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20781
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20782
 
      /* dlclose (self); */
20783
 
    }
20784
 
 
20785
 
    exit (status);
20786
 
}
20787
 
EOF
20788
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789
 
  (eval $ac_link) 2>&5
20790
 
  ac_status=$?
20791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20793
 
    (./conftest; exit; ) 2>/dev/null
20794
 
    lt_status=$?
20795
 
    case x$lt_status in
20796
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20797
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20798
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20799
 
    esac
20800
 
  else :
20801
 
    # compilation failed
20802
 
    lt_cv_dlopen_self=no
20803
 
  fi
20804
 
fi
20805
 
rm -fr conftest*
20806
 
 
20807
 
    
20808
 
fi
20809
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20810
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20811
 
 
20812
 
    if test "x$lt_cv_dlopen_self" = xyes; then
20813
 
      LDFLAGS="$LDFLAGS $link_static_flag"
20814
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20815
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20816
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
20817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20818
 
else
20819
 
          if test "$cross_compiling" = yes; then :
20820
 
  lt_cv_dlopen_self_static=cross
20821
 
else
20822
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20823
 
  lt_status=$lt_dlunknown
20824
 
  cat > conftest.$ac_ext <<EOF
20825
 
#line __oline__ "configure"
20826
 
#include "confdefs.h"
20827
 
 
20828
 
#if HAVE_DLFCN_H
20829
 
#include <dlfcn.h>
20830
 
#endif
20831
 
 
20832
 
#include <stdio.h>
20833
 
 
20834
 
#ifdef RTLD_GLOBAL
20835
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
20836
 
#else
20837
 
#  ifdef DL_GLOBAL
20838
 
#    define LT_DLGLOBAL         DL_GLOBAL
20839
 
#  else
20840
 
#    define LT_DLGLOBAL         0
20841
 
#  endif
20842
 
#endif
20843
 
 
20844
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20845
 
   find out it does not work in some platform. */
20846
 
#ifndef LT_DLLAZY_OR_NOW
20847
 
#  ifdef RTLD_LAZY
20848
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20849
 
#  else
20850
 
#    ifdef DL_LAZY
20851
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
20852
 
#    else
20853
 
#      ifdef RTLD_NOW
20854
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
20855
 
#      else
20856
 
#        ifdef DL_NOW
20857
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
20858
 
#        else
20859
 
#          define LT_DLLAZY_OR_NOW      0
20860
 
#        endif
20861
 
#      endif
20862
 
#    endif
20863
 
#  endif
20864
 
#endif
20865
 
 
20866
 
#ifdef __cplusplus
20867
 
extern "C" void exit (int);
20868
 
#endif
20869
 
 
20870
 
void fnord() { int i=42;}
20871
 
int main ()
20872
 
{
20873
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20874
 
  int status = $lt_dlunknown;
20875
 
 
20876
 
  if (self)
20877
 
    {
20878
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20879
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20880
 
      /* dlclose (self); */
20881
 
    }
20882
 
 
20883
 
    exit (status);
20884
 
}
20885
 
EOF
20886
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887
 
  (eval $ac_link) 2>&5
20888
 
  ac_status=$?
20889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20891
 
    (./conftest; exit; ) 2>/dev/null
20892
 
    lt_status=$?
20893
 
    case x$lt_status in
20894
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20895
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20896
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20897
 
    esac
20898
 
  else :
20899
 
    # compilation failed
20900
 
    lt_cv_dlopen_self_static=no
20901
 
  fi
20902
 
fi
20903
 
rm -fr conftest*
20904
 
 
20905
 
      
20906
 
fi
20907
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20908
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20909
 
    fi
20910
 
 
20911
 
    CPPFLAGS="$save_CPPFLAGS"
20912
 
    LDFLAGS="$save_LDFLAGS"
20913
 
    LIBS="$save_LIBS"
20914
 
    ;;
20915
 
  esac
20916
 
 
20917
 
  case $lt_cv_dlopen_self in
20918
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20919
 
  *) enable_dlopen_self=unknown ;;
20920
 
  esac
20921
 
 
20922
 
  case $lt_cv_dlopen_self_static in
20923
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20924
 
  *) enable_dlopen_self_static=unknown ;;
20925
 
  esac
20926
 
fi
20927
 
 
20928
20774
 
20929
20775
# The else clause should only fire when bootstrapping the
20930
20776
# libtool distribution, otherwise you forgot to ship ltmain.sh
20939
20785
  # Now quote all the things that may contain metacharacters while being
20940
20786
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20941
20787
  # variables and quote the copies for generation of the libtool script.
20942
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20788
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20943
20789
    SED SHELL STRIP \
20944
20790
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20945
20791
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21040
20886
# The host system.
21041
20887
host_alias=$host_alias
21042
20888
host=$host
 
20889
host_os=$host_os
 
20890
 
 
20891
# The build system.
 
20892
build_alias=$build_alias
 
20893
build=$build
 
20894
build_os=$build_os
21043
20895
 
21044
20896
# An echo program that does not interpret backslashes.
21045
20897
echo=$lt_echo
21051
20903
# A C compiler.
21052
20904
LTCC=$lt_LTCC
21053
20905
 
 
20906
# LTCC compiler flags.
 
20907
LTCFLAGS=$lt_LTCFLAGS
 
20908
 
21054
20909
# A language-specific compiler.
21055
20910
CC=$lt_compiler_GCJ
21056
20911
 
21116
20971
# Does compiler simultaneously support -c and -o options?
21117
20972
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21118
20973
 
21119
 
# Must we lock files when doing compilation ?
 
20974
# Must we lock files when doing compilation?
21120
20975
need_locks=$lt_need_locks
21121
20976
 
21122
20977
# Do we need the lib prefix for modules?
21360
21215
# If no C compiler was specified, use CC.
21361
21216
LTCC=${LTCC-"$CC"}
21362
21217
 
 
21218
# If no C compiler flags were specified, use CFLAGS.
 
21219
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
21220
 
21363
21221
# Allow CC to be a program name with arguments.
21364
21222
compiler=$CC
21365
21223
 
21366
21224
 
 
21225
# save warnings/boilerplate of simple test code
 
21226
ac_outfile=conftest.$ac_objext
 
21227
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
21228
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
21229
_lt_compiler_boilerplate=`cat conftest.err`
 
21230
$rm conftest*
 
21231
 
 
21232
ac_outfile=conftest.$ac_objext
 
21233
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
21234
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
21235
_lt_linker_boilerplate=`cat conftest.err`
 
21236
$rm conftest*
 
21237
 
 
21238
 
21367
21239
# Allow CC to be a program name with arguments.
21368
21240
lt_save_CC="$CC"
21369
21241
CC=${RC-"windres"}
21370
21242
compiler=$CC
21371
21243
compiler_RC=$CC
 
21244
for cc_temp in $compiler""; do
 
21245
  case $cc_temp in
 
21246
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
21247
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
21248
    \-*) ;;
 
21249
    *) break;;
 
21250
  esac
 
21251
done
 
21252
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
21253
 
21372
21254
lt_cv_prog_compiler_c_o_RC=yes
21373
21255
 
21374
21256
# The else clause should only fire when bootstrapping the
21384
21266
  # Now quote all the things that may contain metacharacters while being
21385
21267
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21386
21268
  # variables and quote the copies for generation of the libtool script.
21387
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
21269
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21388
21270
    SED SHELL STRIP \
21389
21271
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21390
21272
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21485
21367
# The host system.
21486
21368
host_alias=$host_alias
21487
21369
host=$host
 
21370
host_os=$host_os
 
21371
 
 
21372
# The build system.
 
21373
build_alias=$build_alias
 
21374
build=$build
 
21375
build_os=$build_os
21488
21376
 
21489
21377
# An echo program that does not interpret backslashes.
21490
21378
echo=$lt_echo
21496
21384
# A C compiler.
21497
21385
LTCC=$lt_LTCC
21498
21386
 
 
21387
# LTCC compiler flags.
 
21388
LTCFLAGS=$lt_LTCFLAGS
 
21389
 
21499
21390
# A language-specific compiler.
21500
21391
CC=$lt_compiler_RC
21501
21392
 
21561
21452
# Does compiler simultaneously support -c and -o options?
21562
21453
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21563
21454
 
21564
 
# Must we lock files when doing compilation ?
 
21455
# Must we lock files when doing compilation?
21565
21456
need_locks=$lt_need_locks
21566
21457
 
21567
21458
# Do we need the lib prefix for modules?