5712
if test -n "$ac_tool_prefix"; then
5713
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714
set dummy ${ac_tool_prefix}ar; ac_word=$2
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716
$as_echo_n "checking for $ac_word... " >&6; }
5717
if test "${ac_cv_prog_AR+set}" = set; then :
5718
$as_echo_n "(cached) " >&6
5720
if test -n "$AR"; then
5721
ac_cv_prog_AR="$AR" # Let the user override the test.
5723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727
test -z "$as_dir" && as_dir=.
5728
for ac_exec_ext in '' $ac_executable_extensions; do
5729
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730
ac_cv_prog_AR="${ac_tool_prefix}ar"
5731
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741
if test -n "$AR"; then
5742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5743
$as_echo "$AR" >&6; }
5745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746
$as_echo "no" >&6; }
5751
if test -z "$ac_cv_prog_AR"; then
5753
# Extract the first word of "ar", so it can be a program name with args.
5754
set dummy ar; ac_word=$2
5755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756
$as_echo_n "checking for $ac_word... " >&6; }
5757
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5758
$as_echo_n "(cached) " >&6
5760
if test -n "$ac_ct_AR"; then
5761
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767
test -z "$as_dir" && as_dir=.
5768
for ac_exec_ext in '' $ac_executable_extensions; do
5769
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770
ac_cv_prog_ac_ct_AR="ar"
5771
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781
if test -n "$ac_ct_AR"; then
5782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5783
$as_echo "$ac_ct_AR" >&6; }
5785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786
$as_echo "no" >&6; }
5789
if test "x$ac_ct_AR" = x; then
5792
case $cross_compiling:$ac_tool_warned in
5794
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796
ac_tool_warned=yes ;;
5804
test -z "$AR" && AR=ar
5805
test -z "$AR_FLAGS" && AR_FLAGS=cru
5817
if test -n "$ac_tool_prefix"; then
5818
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5819
set dummy ${ac_tool_prefix}strip; ac_word=$2
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821
$as_echo_n "checking for $ac_word... " >&6; }
5822
if test "${ac_cv_prog_STRIP+set}" = set; then :
5823
$as_echo_n "(cached) " >&6
5825
if test -n "$STRIP"; then
5826
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832
test -z "$as_dir" && as_dir=.
5833
for ac_exec_ext in '' $ac_executable_extensions; do
5834
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5836
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845
STRIP=$ac_cv_prog_STRIP
5846
if test -n "$STRIP"; then
5847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5848
$as_echo "$STRIP" >&6; }
5850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851
$as_echo "no" >&6; }
5856
if test -z "$ac_cv_prog_STRIP"; then
5858
# Extract the first word of "strip", so it can be a program name with args.
5859
set dummy strip; ac_word=$2
5860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861
$as_echo_n "checking for $ac_word... " >&6; }
5862
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5863
$as_echo_n "(cached) " >&6
5865
if test -n "$ac_ct_STRIP"; then
5866
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872
test -z "$as_dir" && as_dir=.
5873
for ac_exec_ext in '' $ac_executable_extensions; do
5874
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875
ac_cv_prog_ac_ct_STRIP="strip"
5876
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5886
if test -n "$ac_ct_STRIP"; then
5887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5888
$as_echo "$ac_ct_STRIP" >&6; }
5890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891
$as_echo "no" >&6; }
5894
if test "x$ac_ct_STRIP" = x; then
5897
case $cross_compiling:$ac_tool_warned in
5899
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901
ac_tool_warned=yes ;;
5906
STRIP="$ac_cv_prog_STRIP"
5909
test -z "$STRIP" && STRIP=:
5916
if test -n "$ac_tool_prefix"; then
5917
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5918
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920
$as_echo_n "checking for $ac_word... " >&6; }
5921
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5922
$as_echo_n "(cached) " >&6
5924
if test -n "$RANLIB"; then
5925
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931
test -z "$as_dir" && as_dir=.
5932
for ac_exec_ext in '' $ac_executable_extensions; do
5933
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5935
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944
RANLIB=$ac_cv_prog_RANLIB
5945
if test -n "$RANLIB"; then
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5947
$as_echo "$RANLIB" >&6; }
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950
$as_echo "no" >&6; }
5955
if test -z "$ac_cv_prog_RANLIB"; then
5956
ac_ct_RANLIB=$RANLIB
5957
# Extract the first word of "ranlib", so it can be a program name with args.
5958
set dummy ranlib; ac_word=$2
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960
$as_echo_n "checking for $ac_word... " >&6; }
5961
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5962
$as_echo_n "(cached) " >&6
5964
if test -n "$ac_ct_RANLIB"; then
5965
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971
test -z "$as_dir" && as_dir=.
5972
for ac_exec_ext in '' $ac_executable_extensions; do
5973
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974
ac_cv_prog_ac_ct_RANLIB="ranlib"
5975
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5985
if test -n "$ac_ct_RANLIB"; then
5986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5987
$as_echo "$ac_ct_RANLIB" >&6; }
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990
$as_echo "no" >&6; }
5993
if test "x$ac_ct_RANLIB" = x; then
5996
case $cross_compiling:$ac_tool_warned in
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000
ac_tool_warned=yes ;;
6002
RANLIB=$ac_ct_RANLIB
6005
RANLIB="$ac_cv_prog_RANLIB"
6008
test -z "$RANLIB" && RANLIB=:
6015
# Determine commands to create old-style static archives.
6016
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6017
old_postinstall_cmds='chmod 644 $oldlib'
6018
old_postuninstall_cmds=
6020
if test -n "$RANLIB"; then
6023
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6026
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6029
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4960
6065
# If no C compiler was specified, use CC.
4961
6066
LTCC=${LTCC-"$CC"}
6068
# If no C compiler flags were specified, use CFLAGS.
6069
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4963
6071
# Allow CC to be a program name with arguments.
4967
# Check whether --enable-libtool-lock was given.
4968
if test "${enable_libtool_lock+set}" = set; then
4969
enableval=$enable_libtool_lock;
4972
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4974
# Some flags need to be propagated to the compiler or linker for good
4978
# Find out which ABI we are using.
4979
echo 'int i;' > conftest.$ac_ext
4980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981
(eval $ac_compile) 2>&5
4983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984
(exit $ac_status); }; then
4985
case `/usr/bin/file conftest.$ac_objext` in
4997
# Find out which ABI we are using.
4998
echo '#line 4998 "configure"' > conftest.$ac_ext
4999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000
(eval $ac_compile) 2>&5
5002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003
(exit $ac_status); }; then
5004
if test "$lt_cv_prog_gnu_ld" = yes; then
5005
case `/usr/bin/file conftest.$ac_objext` in
5007
LD="${LD-ld} -melf32bsmip"
5010
LD="${LD-ld} -melf32bmipn32"
5013
LD="${LD-ld} -melf64bmip"
5017
case `/usr/bin/file conftest.$ac_objext` in
5033
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5034
# Find out which ABI we are using.
5035
echo 'int i;' > conftest.$ac_ext
5036
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037
(eval $ac_compile) 2>&5
5039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
(exit $ac_status); }; then
5041
case "`/usr/bin/file conftest.o`" in
5045
LD="${LD-ld} -m elf_i386"
5047
ppc64-*linux*|powerpc64-*linux*)
5048
LD="${LD-ld} -m elf32ppclinux"
5051
LD="${LD-ld} -m elf_s390"
5054
LD="${LD-ld} -m elf32_sparc"
5061
LD="${LD-ld} -m elf_x86_64"
5063
ppc*-*linux*|powerpc*-*linux*)
5064
LD="${LD-ld} -m elf64ppc"
5067
LD="${LD-ld} -m elf64_s390"
5070
LD="${LD-ld} -m elf64_sparc"
5080
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5081
SAVE_CFLAGS="$CFLAGS"
5082
CFLAGS="$CFLAGS -belf"
5083
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5084
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5085
if test "${lt_cv_cc_needs_belf+set}" = set; then
5086
echo $ECHO_N "(cached) $ECHO_C" >&6
5089
ac_cpp='$CPP $CPPFLAGS'
5090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
cat >conftest.$ac_ext <<_ACEOF
5097
cat confdefs.h >>conftest.$ac_ext
5098
cat >>conftest.$ac_ext <<_ACEOF
5099
/* end confdefs.h. */
5109
rm -f conftest.$ac_objext conftest$ac_exeext
5110
if { (ac_try="$ac_link"
5112
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113
*) ac_try_echo=$ac_try;;
5115
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116
(eval "$ac_link") 2>conftest.er1
5118
grep -v '^ *+' conftest.er1 >conftest.err
5120
cat conftest.err >&5
5121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122
(exit $ac_status); } && {
5123
test -z "$ac_c_werror_flag" ||
5124
test ! -s conftest.err
5125
} && test -s conftest$ac_exeext &&
5126
$as_test_x conftest$ac_exeext; then
5127
lt_cv_cc_needs_belf=yes
5129
echo "$as_me: failed program was:" >&5
5130
sed 's/^/| /' conftest.$ac_ext >&5
5132
lt_cv_cc_needs_belf=no
5135
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5136
conftest$ac_exeext conftest.$ac_ext
5138
ac_cpp='$CPP $CPPFLAGS'
5139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5145
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5146
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5147
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5148
CFLAGS="$SAVE_CFLAGS"
5151
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5152
if test -n "$ac_tool_prefix"; then
5153
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5154
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5155
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5156
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5158
echo $ECHO_N "(cached) $ECHO_C" >&6
5160
if test -n "$DLLTOOL"; then
5161
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167
test -z "$as_dir" && as_dir=.
5168
for ac_exec_ext in '' $ac_executable_extensions; do
5169
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5171
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180
DLLTOOL=$ac_cv_prog_DLLTOOL
5181
if test -n "$DLLTOOL"; then
5182
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5183
echo "${ECHO_T}$DLLTOOL" >&6; }
5185
{ echo "$as_me:$LINENO: result: no" >&5
5186
echo "${ECHO_T}no" >&6; }
5191
if test -z "$ac_cv_prog_DLLTOOL"; then
5192
ac_ct_DLLTOOL=$DLLTOOL
5193
# Extract the first word of "dlltool", so it can be a program name with args.
5194
set dummy dlltool; ac_word=$2
5195
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5196
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5198
echo $ECHO_N "(cached) $ECHO_C" >&6
5200
if test -n "$ac_ct_DLLTOOL"; then
5201
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207
test -z "$as_dir" && as_dir=.
5208
for ac_exec_ext in '' $ac_executable_extensions; do
5209
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5211
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5221
if test -n "$ac_ct_DLLTOOL"; then
5222
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5223
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5225
{ echo "$as_me:$LINENO: result: no" >&5
5226
echo "${ECHO_T}no" >&6; }
5229
if test "x$ac_ct_DLLTOOL" = x; then
5232
case $cross_compiling:$ac_tool_warned in
5234
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235
whose name does not start with the host triplet. If you think this
5236
configuration is useful to you, please write to autoconf@gnu.org." >&5
5237
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238
whose name does not start with the host triplet. If you think this
5239
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240
ac_tool_warned=yes ;;
5242
DLLTOOL=$ac_ct_DLLTOOL
5245
DLLTOOL="$ac_cv_prog_DLLTOOL"
5248
if test -n "$ac_tool_prefix"; then
5249
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250
set dummy ${ac_tool_prefix}as; ac_word=$2
5251
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253
if test "${ac_cv_prog_AS+set}" = set; then
5254
echo $ECHO_N "(cached) $ECHO_C" >&6
5256
if test -n "$AS"; then
5257
ac_cv_prog_AS="$AS" # Let the user override the test.
5259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263
test -z "$as_dir" && as_dir=.
5264
for ac_exec_ext in '' $ac_executable_extensions; do
5265
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266
ac_cv_prog_AS="${ac_tool_prefix}as"
5267
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277
if test -n "$AS"; then
5278
{ echo "$as_me:$LINENO: result: $AS" >&5
5279
echo "${ECHO_T}$AS" >&6; }
5281
{ echo "$as_me:$LINENO: result: no" >&5
5282
echo "${ECHO_T}no" >&6; }
5287
if test -z "$ac_cv_prog_AS"; then
5289
# Extract the first word of "as", so it can be a program name with args.
5290
set dummy as; ac_word=$2
5291
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5292
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5294
echo $ECHO_N "(cached) $ECHO_C" >&6
5296
if test -n "$ac_ct_AS"; then
5297
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303
test -z "$as_dir" && as_dir=.
5304
for ac_exec_ext in '' $ac_executable_extensions; do
5305
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306
ac_cv_prog_ac_ct_AS="as"
5307
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317
if test -n "$ac_ct_AS"; then
5318
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5319
echo "${ECHO_T}$ac_ct_AS" >&6; }
5321
{ echo "$as_me:$LINENO: result: no" >&5
5322
echo "${ECHO_T}no" >&6; }
5325
if test "x$ac_ct_AS" = x; then
5328
case $cross_compiling:$ac_tool_warned in
5330
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5331
whose name does not start with the host triplet. If you think this
5332
configuration is useful to you, please write to autoconf@gnu.org." >&5
5333
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5334
whose name does not start with the host triplet. If you think this
5335
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5336
ac_tool_warned=yes ;;
5344
if test -n "$ac_tool_prefix"; then
5345
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5350
echo $ECHO_N "(cached) $ECHO_C" >&6
5352
if test -n "$OBJDUMP"; then
5353
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359
test -z "$as_dir" && as_dir=.
5360
for ac_exec_ext in '' $ac_executable_extensions; do
5361
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372
OBJDUMP=$ac_cv_prog_OBJDUMP
5373
if test -n "$OBJDUMP"; then
5374
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5375
echo "${ECHO_T}$OBJDUMP" >&6; }
5377
{ echo "$as_me:$LINENO: result: no" >&5
5378
echo "${ECHO_T}no" >&6; }
5383
if test -z "$ac_cv_prog_OBJDUMP"; then
5384
ac_ct_OBJDUMP=$OBJDUMP
5385
# Extract the first word of "objdump", so it can be a program name with args.
5386
set dummy objdump; ac_word=$2
5387
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5390
echo $ECHO_N "(cached) $ECHO_C" >&6
5392
if test -n "$ac_ct_OBJDUMP"; then
5393
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399
test -z "$as_dir" && as_dir=.
5400
for ac_exec_ext in '' $ac_executable_extensions; do
5401
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413
if test -n "$ac_ct_OBJDUMP"; then
5414
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5415
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5417
{ echo "$as_me:$LINENO: result: no" >&5
5418
echo "${ECHO_T}no" >&6; }
5421
if test "x$ac_ct_OBJDUMP" = x; then
5424
case $cross_compiling:$ac_tool_warned in
5426
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427
whose name does not start with the host triplet. If you think this
5428
configuration is useful to you, please write to autoconf@gnu.org." >&5
5429
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430
whose name does not start with the host triplet. If you think this
5431
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432
ac_tool_warned=yes ;;
5434
OBJDUMP=$ac_ct_OBJDUMP
5437
OBJDUMP="$ac_cv_prog_OBJDUMP"
5444
need_locks="$enable_libtool_lock"
5448
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5449
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5450
if test "${ac_cv_header_stdc+set}" = set; then
5451
echo $ECHO_N "(cached) $ECHO_C" >&6
5453
cat >conftest.$ac_ext <<_ACEOF
5456
cat confdefs.h >>conftest.$ac_ext
5457
cat >>conftest.$ac_ext <<_ACEOF
5458
/* end confdefs.h. */
5472
rm -f conftest.$ac_objext
5473
if { (ac_try="$ac_compile"
5475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476
*) ac_try_echo=$ac_try;;
5478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479
(eval "$ac_compile") 2>conftest.er1
5481
grep -v '^ *+' conftest.er1 >conftest.err
5483
cat conftest.err >&5
5484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485
(exit $ac_status); } && {
5486
test -z "$ac_c_werror_flag" ||
5487
test ! -s conftest.err
5488
} && test -s conftest.$ac_objext; then
5489
ac_cv_header_stdc=yes
5491
echo "$as_me: failed program was:" >&5
5492
sed 's/^/| /' conftest.$ac_ext >&5
5494
ac_cv_header_stdc=no
5497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
if test $ac_cv_header_stdc = yes; then
5500
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5501
cat >conftest.$ac_ext <<_ACEOF
5504
cat confdefs.h >>conftest.$ac_ext
5505
cat >>conftest.$ac_ext <<_ACEOF
5506
/* end confdefs.h. */
5510
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511
$EGREP "memchr" >/dev/null 2>&1; then
5514
ac_cv_header_stdc=no
5520
if test $ac_cv_header_stdc = yes; then
5521
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5522
cat >conftest.$ac_ext <<_ACEOF
5525
cat confdefs.h >>conftest.$ac_ext
5526
cat >>conftest.$ac_ext <<_ACEOF
5527
/* end confdefs.h. */
5531
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532
$EGREP "free" >/dev/null 2>&1; then
5535
ac_cv_header_stdc=no
5541
if test $ac_cv_header_stdc = yes; then
5542
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543
if test "$cross_compiling" = yes; then
5546
cat >conftest.$ac_ext <<_ACEOF
5549
cat confdefs.h >>conftest.$ac_ext
5550
cat >>conftest.$ac_ext <<_ACEOF
5551
/* end confdefs.h. */
5554
#if ((' ' & 0x0FF) == 0x020)
5555
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5558
# define ISLOWER(c) \
5559
(('a' <= (c) && (c) <= 'i') \
5560
|| ('j' <= (c) && (c) <= 'r') \
5561
|| ('s' <= (c) && (c) <= 'z'))
5562
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5565
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570
for (i = 0; i < 256; i++)
5571
if (XOR (islower (i), ISLOWER (i))
5572
|| toupper (i) != TOUPPER (i))
5577
rm -f conftest$ac_exeext
5578
if { (ac_try="$ac_link"
5580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581
*) ac_try_echo=$ac_try;;
5583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584
(eval "$ac_link") 2>&5
5586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5588
{ (case "(($ac_try" in
5589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590
*) ac_try_echo=$ac_try;;
5592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593
(eval "$ac_try") 2>&5
5595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596
(exit $ac_status); }; }; then
5599
echo "$as_me: program exited with status $ac_status" >&5
5600
echo "$as_me: failed program was:" >&5
5601
sed 's/^/| /' conftest.$ac_ext >&5
5604
ac_cv_header_stdc=no
5606
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5613
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5614
if test $ac_cv_header_stdc = yes; then
5616
cat >>confdefs.h <<\_ACEOF
5617
#define STDC_HEADERS 1
5622
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5632
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5633
inttypes.h stdint.h unistd.h
5635
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5636
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5637
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5638
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5639
echo $ECHO_N "(cached) $ECHO_C" >&6
5641
cat >conftest.$ac_ext <<_ACEOF
5644
cat confdefs.h >>conftest.$ac_ext
5645
cat >>conftest.$ac_ext <<_ACEOF
5646
/* end confdefs.h. */
5647
$ac_includes_default
5649
#include <$ac_header>
5651
rm -f conftest.$ac_objext
5652
if { (ac_try="$ac_compile"
5654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655
*) ac_try_echo=$ac_try;;
5657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658
(eval "$ac_compile") 2>conftest.er1
5660
grep -v '^ *+' conftest.er1 >conftest.err
5662
cat conftest.err >&5
5663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
(exit $ac_status); } && {
5665
test -z "$ac_c_werror_flag" ||
5666
test ! -s conftest.err
5667
} && test -s conftest.$ac_objext; then
5668
eval "$as_ac_Header=yes"
5670
echo "$as_me: failed program was:" >&5
5671
sed 's/^/| /' conftest.$ac_ext >&5
5673
eval "$as_ac_Header=no"
5676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678
ac_res=`eval echo '${'$as_ac_Header'}'`
5679
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5680
echo "${ECHO_T}$ac_res" >&6; }
5681
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5682
cat >>confdefs.h <<_ACEOF
5683
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5692
for ac_header in dlfcn.h
5694
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5695
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5696
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5697
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5698
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699
echo $ECHO_N "(cached) $ECHO_C" >&6
5701
ac_res=`eval echo '${'$as_ac_Header'}'`
5702
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5703
echo "${ECHO_T}$ac_res" >&6; }
5705
# Is the header compilable?
5706
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5707
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5708
cat >conftest.$ac_ext <<_ACEOF
5711
cat confdefs.h >>conftest.$ac_ext
5712
cat >>conftest.$ac_ext <<_ACEOF
5713
/* end confdefs.h. */
5714
$ac_includes_default
5715
#include <$ac_header>
5717
rm -f conftest.$ac_objext
5718
if { (ac_try="$ac_compile"
5720
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721
*) ac_try_echo=$ac_try;;
5723
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724
(eval "$ac_compile") 2>conftest.er1
5726
grep -v '^ *+' conftest.er1 >conftest.err
5728
cat conftest.err >&5
5729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
(exit $ac_status); } && {
5731
test -z "$ac_c_werror_flag" ||
5732
test ! -s conftest.err
5733
} && test -s conftest.$ac_objext; then
5734
ac_header_compiler=yes
5736
echo "$as_me: failed program was:" >&5
5737
sed 's/^/| /' conftest.$ac_ext >&5
5739
ac_header_compiler=no
5742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5744
echo "${ECHO_T}$ac_header_compiler" >&6; }
5746
# Is the header present?
5747
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5748
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5749
cat >conftest.$ac_ext <<_ACEOF
5752
cat confdefs.h >>conftest.$ac_ext
5753
cat >>conftest.$ac_ext <<_ACEOF
5754
/* end confdefs.h. */
5755
#include <$ac_header>
5757
if { (ac_try="$ac_cpp conftest.$ac_ext"
5759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760
*) ac_try_echo=$ac_try;;
5762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5765
grep -v '^ *+' conftest.er1 >conftest.err
5767
cat conftest.err >&5
5768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
(exit $ac_status); } >/dev/null && {
5770
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5771
test ! -s conftest.err
5773
ac_header_preproc=yes
5775
echo "$as_me: failed program was:" >&5
5776
sed 's/^/| /' conftest.$ac_ext >&5
5778
ac_header_preproc=no
5781
rm -f conftest.err conftest.$ac_ext
5782
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5783
echo "${ECHO_T}$ac_header_preproc" >&6; }
5785
# So? What about this header?
5786
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5788
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5789
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5790
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5791
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5792
ac_header_preproc=yes
5795
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5796
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5797
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5798
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5799
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5800
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5801
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5802
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5803
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5804
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5805
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5806
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5808
## ---------------------------------- ##
5809
## Report this to bug-gnupg@gnupg.org ##
5810
## ---------------------------------- ##
5812
) | sed "s/^/$as_me: WARNING: /" >&2
5815
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5816
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5817
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5818
echo $ECHO_N "(cached) $ECHO_C" >&6
5820
eval "$as_ac_Header=\$ac_header_preproc"
5822
ac_res=`eval echo '${'$as_ac_Header'}'`
5823
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5824
echo "${ECHO_T}$ac_res" >&6; }
5827
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828
cat >>confdefs.h <<_ACEOF
5829
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5837
ac_cpp='$CXXCPP $CPPFLAGS'
5838
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841
if test -z "$CXX"; then
5842
if test -n "$CCC"; then
5845
if test -n "$ac_tool_prefix"; then
5846
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5848
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5850
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852
if test "${ac_cv_prog_CXX+set}" = set; then
5853
echo $ECHO_N "(cached) $ECHO_C" >&6
5855
if test -n "$CXX"; then
5856
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862
test -z "$as_dir" && as_dir=.
5863
for ac_exec_ext in '' $ac_executable_extensions; do
5864
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5866
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876
if test -n "$CXX"; then
5877
{ echo "$as_me:$LINENO: result: $CXX" >&5
5878
echo "${ECHO_T}$CXX" >&6; }
5880
{ echo "$as_me:$LINENO: result: no" >&5
5881
echo "${ECHO_T}no" >&6; }
5885
test -n "$CXX" && break
5888
if test -z "$CXX"; then
5890
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5892
# Extract the first word of "$ac_prog", so it can be a program name with args.
5893
set dummy $ac_prog; ac_word=$2
5894
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5897
echo $ECHO_N "(cached) $ECHO_C" >&6
5899
if test -n "$ac_ct_CXX"; then
5900
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906
test -z "$as_dir" && as_dir=.
5907
for ac_exec_ext in '' $ac_executable_extensions; do
5908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909
ac_cv_prog_ac_ct_CXX="$ac_prog"
5910
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5920
if test -n "$ac_ct_CXX"; then
5921
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5922
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5924
{ echo "$as_me:$LINENO: result: no" >&5
5925
echo "${ECHO_T}no" >&6; }
5929
test -n "$ac_ct_CXX" && break
5932
if test "x$ac_ct_CXX" = x; then
5935
case $cross_compiling:$ac_tool_warned in
5937
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938
whose name does not start with the host triplet. If you think this
5939
configuration is useful to you, please write to autoconf@gnu.org." >&5
5940
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941
whose name does not start with the host triplet. If you think this
5942
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943
ac_tool_warned=yes ;;
5951
# Provide some information about the compiler.
5952
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5953
ac_compiler=`set X $ac_compile; echo $2`
5954
{ (ac_try="$ac_compiler --version >&5"
5956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957
*) ac_try_echo=$ac_try;;
5959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960
(eval "$ac_compiler --version >&5") 2>&5
5962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
(exit $ac_status); }
5964
{ (ac_try="$ac_compiler -v >&5"
5966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967
*) ac_try_echo=$ac_try;;
5969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970
(eval "$ac_compiler -v >&5") 2>&5
5972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973
(exit $ac_status); }
5974
{ (ac_try="$ac_compiler -V >&5"
5976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977
*) ac_try_echo=$ac_try;;
5979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980
(eval "$ac_compiler -V >&5") 2>&5
5982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983
(exit $ac_status); }
5985
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5986
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5987
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5988
echo $ECHO_N "(cached) $ECHO_C" >&6
5990
cat >conftest.$ac_ext <<_ACEOF
5993
cat confdefs.h >>conftest.$ac_ext
5994
cat >>conftest.$ac_ext <<_ACEOF
5995
/* end confdefs.h. */
6008
rm -f conftest.$ac_objext
6009
if { (ac_try="$ac_compile"
6011
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012
*) ac_try_echo=$ac_try;;
6014
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015
(eval "$ac_compile") 2>conftest.er1
6017
grep -v '^ *+' conftest.er1 >conftest.err
6019
cat conftest.err >&5
6020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
(exit $ac_status); } && {
6022
test -z "$ac_cxx_werror_flag" ||
6023
test ! -s conftest.err
6024
} && test -s conftest.$ac_objext; then
6027
echo "$as_me: failed program was:" >&5
6028
sed 's/^/| /' conftest.$ac_ext >&5
6033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6037
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6038
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6039
GXX=`test $ac_compiler_gnu = yes && echo yes`
6040
ac_test_CXXFLAGS=${CXXFLAGS+set}
6041
ac_save_CXXFLAGS=$CXXFLAGS
6042
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6043
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6044
if test "${ac_cv_prog_cxx_g+set}" = set; then
6045
echo $ECHO_N "(cached) $ECHO_C" >&6
6047
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6048
ac_cxx_werror_flag=yes
6051
cat >conftest.$ac_ext <<_ACEOF
6054
cat confdefs.h >>conftest.$ac_ext
6055
cat >>conftest.$ac_ext <<_ACEOF
6056
/* end confdefs.h. */
6066
rm -f conftest.$ac_objext
6067
if { (ac_try="$ac_compile"
6069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070
*) ac_try_echo=$ac_try;;
6072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073
(eval "$ac_compile") 2>conftest.er1
6075
grep -v '^ *+' conftest.er1 >conftest.err
6077
cat conftest.err >&5
6078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079
(exit $ac_status); } && {
6080
test -z "$ac_cxx_werror_flag" ||
6081
test ! -s conftest.err
6082
} && test -s conftest.$ac_objext; then
6083
ac_cv_prog_cxx_g=yes
6085
echo "$as_me: failed program was:" >&5
6086
sed 's/^/| /' conftest.$ac_ext >&5
6089
cat >conftest.$ac_ext <<_ACEOF
6092
cat confdefs.h >>conftest.$ac_ext
6093
cat >>conftest.$ac_ext <<_ACEOF
6094
/* end confdefs.h. */
6104
rm -f conftest.$ac_objext
6105
if { (ac_try="$ac_compile"
6107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108
*) ac_try_echo=$ac_try;;
6110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111
(eval "$ac_compile") 2>conftest.er1
6113
grep -v '^ *+' conftest.er1 >conftest.err
6115
cat conftest.err >&5
6116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
(exit $ac_status); } && {
6118
test -z "$ac_cxx_werror_flag" ||
6119
test ! -s conftest.err
6120
} && test -s conftest.$ac_objext; then
6123
echo "$as_me: failed program was:" >&5
6124
sed 's/^/| /' conftest.$ac_ext >&5
6126
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6128
cat >conftest.$ac_ext <<_ACEOF
6131
cat confdefs.h >>conftest.$ac_ext
6132
cat >>conftest.$ac_ext <<_ACEOF
6133
/* end confdefs.h. */
6143
rm -f conftest.$ac_objext
6144
if { (ac_try="$ac_compile"
6146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147
*) ac_try_echo=$ac_try;;
6149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150
(eval "$ac_compile") 2>conftest.er1
6152
grep -v '^ *+' conftest.er1 >conftest.err
6154
cat conftest.err >&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); } && {
6157
test -z "$ac_cxx_werror_flag" ||
6158
test ! -s conftest.err
6159
} && test -s conftest.$ac_objext; then
6160
ac_cv_prog_cxx_g=yes
6162
echo "$as_me: failed program was:" >&5
6163
sed 's/^/| /' conftest.$ac_ext >&5
6168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6177
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6178
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6179
if test "$ac_test_CXXFLAGS" = set; then
6180
CXXFLAGS=$ac_save_CXXFLAGS
6181
elif test $ac_cv_prog_cxx_g = yes; then
6182
if test "$GXX" = yes; then
6188
if test "$GXX" = yes; then
6195
ac_cpp='$CXXCPP $CPPFLAGS'
6196
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6200
depcc="$CXX" am_compiler_list=
6202
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6203
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6204
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6205
echo $ECHO_N "(cached) $ECHO_C" >&6
6207
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6208
# We make a subdir and do the tests there. Otherwise we can end up
6209
# making bogus files that we don't know about and never remove. For
6210
# instance it was reported that on HP-UX the gcc test will end up
6211
# making a dummy file named `D' -- because `-MD' means `put the output
6214
# Copy depcomp to subdir because otherwise we won't find it if we're
6215
# using a relative directory.
6216
cp "$am_depcomp" conftest.dir
6218
# We will build objects and dependencies in a subdirectory because
6219
# it helps to detect inapplicable dependency modes. For instance
6220
# both Tru64's cc and ICC support -MD to output dependencies as a
6221
# side effect of compilation, but ICC will put the dependencies in
6222
# the current directory while Tru64 will put them in the object
6226
am_cv_CXX_dependencies_compiler_type=none
6227
if test "$am_compiler_list" = ""; then
6228
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6230
for depmode in $am_compiler_list; do
6231
# Setup a source with many dependencies, because some compilers
6232
# like to wrap large dependency lists on column 80 (with \), and
6233
# we should not choose a depcomp mode which is confused by this.
6235
# We need to recreate these files for each test, as the compiler may
6236
# overwrite some of them when testing with obscure command lines.
6237
# This happens at least with the AIX C compiler.
6239
for i in 1 2 3 4 5 6; do
6240
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6242
# Solaris 8's {/usr,}/bin/sh.
6243
touch sub/conftst$i.h
6245
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6249
# after this tag, mechanisms are not by side-effect, so they'll
6250
# only be used when explicitly requested
6251
if test "x$enable_dependency_tracking" = xyes; then
6259
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6260
# mode. It turns out that the SunPro C++ compiler does not properly
6261
# handle `-M -o', and we need to detect this.
6262
if depmode=$depmode \
6263
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6264
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6265
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6266
>/dev/null 2>conftest.err &&
6267
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6268
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271
# icc doesn't choke on unknown options, it will just issue warnings
6272
# or remarks (even with -Werror). So we grep stderr for any message
6273
# that says an option was ignored or not supported.
6274
# When given -MP, icc 7.0 and 7.1 complain thusly:
6275
# icc: Command line warning: ignoring option '-M'; no argument required
6276
# The diagnosis changed in icc 8.0:
6277
# icc: Command line remark: option '-MP' not supported
6278
if (grep 'ignoring option' conftest.err ||
6279
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280
am_cv_CXX_dependencies_compiler_type=$depmode
6289
am_cv_CXX_dependencies_compiler_type=none
6293
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6294
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6295
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6298
test "x$enable_dependency_tracking" != xno \
6299
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6300
am__fastdepCXX_TRUE=
6301
am__fastdepCXX_FALSE='#'
6303
am__fastdepCXX_TRUE='#'
6304
am__fastdepCXX_FALSE=
6309
ac_cpp='$CXXCPP $CPPFLAGS'
6310
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6314
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6315
if test -z "$CXXCPP"; then
6316
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6317
echo $ECHO_N "(cached) $ECHO_C" >&6
6319
# Double quotes because CXXCPP needs to be expanded
6320
for CXXCPP in "$CXX -E" "/lib/cpp"
6323
for ac_cxx_preproc_warn_flag in '' yes
6325
# Use a header file that comes with gcc, so configuring glibc
6326
# with a fresh cross-compiler works.
6327
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328
# <limits.h> exists even on freestanding compilers.
6329
# On the NeXT, cc -E runs the code through the compiler's parser,
6330
# not just through cpp. "Syntax error" is here to catch this case.
6331
cat >conftest.$ac_ext <<_ACEOF
6334
cat confdefs.h >>conftest.$ac_ext
6335
cat >>conftest.$ac_ext <<_ACEOF
6336
/* end confdefs.h. */
6338
# include <limits.h>
6340
# include <assert.h>
6344
if { (ac_try="$ac_cpp conftest.$ac_ext"
6346
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347
*) ac_try_echo=$ac_try;;
6349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352
grep -v '^ *+' conftest.er1 >conftest.err
6354
cat conftest.err >&5
6355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356
(exit $ac_status); } >/dev/null && {
6357
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6358
test ! -s conftest.err
6362
echo "$as_me: failed program was:" >&5
6363
sed 's/^/| /' conftest.$ac_ext >&5
6365
# Broken: fails on valid input.
6369
rm -f conftest.err conftest.$ac_ext
6371
# OK, works on sane cases. Now check whether nonexistent headers
6372
# can be detected and how.
6373
cat >conftest.$ac_ext <<_ACEOF
6376
cat confdefs.h >>conftest.$ac_ext
6377
cat >>conftest.$ac_ext <<_ACEOF
6378
/* end confdefs.h. */
6379
#include <ac_nonexistent.h>
6381
if { (ac_try="$ac_cpp conftest.$ac_ext"
6383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384
*) ac_try_echo=$ac_try;;
6386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6389
grep -v '^ *+' conftest.er1 >conftest.err
6391
cat conftest.err >&5
6392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393
(exit $ac_status); } >/dev/null && {
6394
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6395
test ! -s conftest.err
6397
# Broken: success on invalid input.
6400
echo "$as_me: failed program was:" >&5
6401
sed 's/^/| /' conftest.$ac_ext >&5
6403
# Passes both tests.
6408
rm -f conftest.err conftest.$ac_ext
6411
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412
rm -f conftest.err conftest.$ac_ext
6413
if $ac_preproc_ok; then
6418
ac_cv_prog_CXXCPP=$CXXCPP
6421
CXXCPP=$ac_cv_prog_CXXCPP
6423
ac_cv_prog_CXXCPP=$CXXCPP
6425
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6426
echo "${ECHO_T}$CXXCPP" >&6; }
6428
for ac_cxx_preproc_warn_flag in '' yes
6430
# Use a header file that comes with gcc, so configuring glibc
6431
# with a fresh cross-compiler works.
6432
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6433
# <limits.h> exists even on freestanding compilers.
6434
# On the NeXT, cc -E runs the code through the compiler's parser,
6435
# not just through cpp. "Syntax error" is here to catch this case.
6436
cat >conftest.$ac_ext <<_ACEOF
6439
cat confdefs.h >>conftest.$ac_ext
6440
cat >>conftest.$ac_ext <<_ACEOF
6441
/* end confdefs.h. */
6443
# include <limits.h>
6445
# include <assert.h>
6449
if { (ac_try="$ac_cpp conftest.$ac_ext"
6451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452
*) ac_try_echo=$ac_try;;
6454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6457
grep -v '^ *+' conftest.er1 >conftest.err
6459
cat conftest.err >&5
6460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461
(exit $ac_status); } >/dev/null && {
6462
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6463
test ! -s conftest.err
6467
echo "$as_me: failed program was:" >&5
6468
sed 's/^/| /' conftest.$ac_ext >&5
6470
# Broken: fails on valid input.
6474
rm -f conftest.err conftest.$ac_ext
6476
# OK, works on sane cases. Now check whether nonexistent headers
6477
# can be detected and how.
6478
cat >conftest.$ac_ext <<_ACEOF
6481
cat confdefs.h >>conftest.$ac_ext
6482
cat >>conftest.$ac_ext <<_ACEOF
6483
/* end confdefs.h. */
6484
#include <ac_nonexistent.h>
6486
if { (ac_try="$ac_cpp conftest.$ac_ext"
6488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489
*) ac_try_echo=$ac_try;;
6491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6494
grep -v '^ *+' conftest.er1 >conftest.err
6496
cat conftest.err >&5
6497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
(exit $ac_status); } >/dev/null && {
6499
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6500
test ! -s conftest.err
6502
# Broken: success on invalid input.
6505
echo "$as_me: failed program was:" >&5
6506
sed 's/^/| /' conftest.$ac_ext >&5
6508
# Passes both tests.
6513
rm -f conftest.err conftest.$ac_ext
6516
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6517
rm -f conftest.err conftest.$ac_ext
6518
if $ac_preproc_ok; then
6521
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6522
See \`config.log' for more details." >&5
6523
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6524
See \`config.log' for more details." >&2;}
6525
{ (exit 1); exit 1; }; }
6529
ac_cpp='$CXXCPP $CPPFLAGS'
6530
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6536
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6537
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6539
if test -n "$ac_tool_prefix"; then
6540
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6542
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6543
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6544
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6545
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546
if test "${ac_cv_prog_F77+set}" = set; then
6547
echo $ECHO_N "(cached) $ECHO_C" >&6
6549
if test -n "$F77"; then
6550
ac_cv_prog_F77="$F77" # Let the user override the test.
6552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556
test -z "$as_dir" && as_dir=.
6557
for ac_exec_ext in '' $ac_executable_extensions; do
6558
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6560
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570
if test -n "$F77"; then
6571
{ echo "$as_me:$LINENO: result: $F77" >&5
6572
echo "${ECHO_T}$F77" >&6; }
6574
{ echo "$as_me:$LINENO: result: no" >&5
6575
echo "${ECHO_T}no" >&6; }
6579
test -n "$F77" && break
6582
if test -z "$F77"; then
6584
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6586
# Extract the first word of "$ac_prog", so it can be a program name with args.
6587
set dummy $ac_prog; ac_word=$2
6588
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6591
echo $ECHO_N "(cached) $ECHO_C" >&6
6593
if test -n "$ac_ct_F77"; then
6594
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600
test -z "$as_dir" && as_dir=.
6601
for ac_exec_ext in '' $ac_executable_extensions; do
6602
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603
ac_cv_prog_ac_ct_F77="$ac_prog"
6604
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6614
if test -n "$ac_ct_F77"; then
6615
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6616
echo "${ECHO_T}$ac_ct_F77" >&6; }
6618
{ echo "$as_me:$LINENO: result: no" >&5
6619
echo "${ECHO_T}no" >&6; }
6623
test -n "$ac_ct_F77" && break
6626
if test "x$ac_ct_F77" = x; then
6629
case $cross_compiling:$ac_tool_warned in
6631
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632
whose name does not start with the host triplet. If you think this
6633
configuration is useful to you, please write to autoconf@gnu.org." >&5
6634
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635
whose name does not start with the host triplet. If you think this
6636
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637
ac_tool_warned=yes ;;
6644
# Provide some information about the compiler.
6645
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6646
ac_compiler=`set X $ac_compile; echo $2`
6647
{ (ac_try="$ac_compiler --version >&5"
6649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650
*) ac_try_echo=$ac_try;;
6652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653
(eval "$ac_compiler --version >&5") 2>&5
6655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656
(exit $ac_status); }
6657
{ (ac_try="$ac_compiler -v >&5"
6659
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660
*) ac_try_echo=$ac_try;;
6662
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663
(eval "$ac_compiler -v >&5") 2>&5
6665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666
(exit $ac_status); }
6667
{ (ac_try="$ac_compiler -V >&5"
6669
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670
*) ac_try_echo=$ac_try;;
6672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673
(eval "$ac_compiler -V >&5") 2>&5
6675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676
(exit $ac_status); }
6679
# If we don't use `.F' as extension, the preprocessor is not run on the
6680
# input file. (Note that this only needs to work for GNU compilers.)
6683
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6684
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6685
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6686
echo $ECHO_N "(cached) $ECHO_C" >&6
6688
cat >conftest.$ac_ext <<_ACEOF
6696
rm -f conftest.$ac_objext
6697
if { (ac_try="$ac_compile"
6699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700
*) ac_try_echo=$ac_try;;
6702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703
(eval "$ac_compile") 2>conftest.er1
6705
grep -v '^ *+' conftest.er1 >conftest.err
6707
cat conftest.err >&5
6708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709
(exit $ac_status); } && {
6710
test -z "$ac_f77_werror_flag" ||
6711
test ! -s conftest.err
6712
} && test -s conftest.$ac_objext; then
6715
echo "$as_me: failed program was:" >&5
6716
sed 's/^/| /' conftest.$ac_ext >&5
6721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6725
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6726
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6728
ac_test_FFLAGS=${FFLAGS+set}
6729
ac_save_FFLAGS=$FFLAGS
6731
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6732
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6733
if test "${ac_cv_prog_f77_g+set}" = set; then
6734
echo $ECHO_N "(cached) $ECHO_C" >&6
6737
cat >conftest.$ac_ext <<_ACEOF
6742
rm -f conftest.$ac_objext
6743
if { (ac_try="$ac_compile"
6745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746
*) ac_try_echo=$ac_try;;
6748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749
(eval "$ac_compile") 2>conftest.er1
6751
grep -v '^ *+' conftest.er1 >conftest.err
6753
cat conftest.err >&5
6754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755
(exit $ac_status); } && {
6756
test -z "$ac_f77_werror_flag" ||
6757
test ! -s conftest.err
6758
} && test -s conftest.$ac_objext; then
6759
ac_cv_prog_f77_g=yes
6761
echo "$as_me: failed program was:" >&5
6762
sed 's/^/| /' conftest.$ac_ext >&5
6767
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6771
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6772
if test "$ac_test_FFLAGS" = set; then
6773
FFLAGS=$ac_save_FFLAGS
6774
elif test $ac_cv_prog_f77_g = yes; then
6775
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6781
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6788
G77=`test $ac_compiler_gnu = yes && echo yes`
6790
ac_cpp='$CPP $CPPFLAGS'
6791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6799
# find the maximum length of command line arguments
6800
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6801
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6802
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6803
echo $ECHO_N "(cached) $ECHO_C" >&6
6810
# On DJGPP, this test can blow up pretty badly due to problems in libc
6811
# (any single argument exceeding 2000 bytes causes a buffer overrun
6812
# during glob expansion). Even if it were fixed, the result of this
6813
# check would be larger than it should be.
6814
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6818
# Under GNU Hurd, this test is not required because there is
6819
# no limit to the length of command line arguments.
6820
# Libtool will interpret -1 as no limit whatsoever
6821
lt_cv_sys_max_cmd_len=-1;
6825
# On Win9x/ME, this test blows up -- it succeeds, but takes
6826
# about 5 minutes as the teststring grows exponentially.
6827
# Worse, since 9x/ME are not pre-emptively multitasking,
6828
# you end up with a "frozen" computer, even though with patience
6829
# the test eventually succeeds (with a max line length of 256k).
6830
# Instead, let's just punt: use the minimum linelength reported by
6831
# all of the supported platforms: 8192 (on NT/2K/XP).
6832
lt_cv_sys_max_cmd_len=8192;
6836
# On AmigaOS with pdksh, this test takes hours, literally.
6837
# So we just punt and use a minimum line length of 8192.
6838
lt_cv_sys_max_cmd_len=8192;
6842
# If test is not a shell built-in, we'll probably end up computing a
6843
# maximum length that is only half of the actual maximum length, but
6845
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846
= "XX$teststring") >/dev/null 2>&1 &&
6847
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848
lt_cv_sys_max_cmd_len=$new_result &&
6849
test $i != 17 # 1/2 MB should be enough
6852
teststring=$teststring$teststring
6855
# Add a significant safety factor because C++ compilers can tack on massive
6856
# amounts of additional arguments before passing them to the linker.
6857
# It appears as though 1/2 is a usable value.
6858
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6864
if test -n $lt_cv_sys_max_cmd_len ; then
6865
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6868
{ echo "$as_me:$LINENO: result: none" >&5
6869
echo "${ECHO_T}none" >&6; }
6875
6075
# Check for command to grab the raw symbol name followed by C symbol from nm.
6876
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6878
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879
echo $ECHO_N "(cached) $ECHO_C" >&6
6076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6077
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6078
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6079
$as_echo_n "(cached) " >&6
6882
6082
# These are sane defaults that work on at least a few old systems.
10392
# Report which librarie types wil actually be built
10393
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10395
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396
echo "${ECHO_T}$can_build_shared" >&6; }
10398
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10400
test "$can_build_shared" = "no" && enable_shared=no
10402
# On AIX, shared libraries and static libraries use the same namespace, and
10403
# are all built from PIC.
10406
test "$enable_shared" = yes && enable_static=no
10407
if test -n "$RANLIB"; then
10408
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409
postinstall_cmds='$RANLIB $lib'
10414
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11009
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11010
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11011
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11012
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11014
$as_echo "yes" >&6; }
11016
# FIXME - insert some real tests, host_os isn't really good enough
11019
if test -n "$STRIP" ; then
11020
striplib="$STRIP -x"
11021
old_striplib="$STRIP -S"
11022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023
$as_echo "yes" >&6; }
11025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026
$as_echo "no" >&6; }
11030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031
$as_echo "no" >&6; }
11047
# Report which library types will actually be built
11048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11049
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11051
$as_echo "$can_build_shared" >&6; }
11053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11054
$as_echo_n "checking whether to build shared libraries... " >&6; }
11055
test "$can_build_shared" = "no" && enable_shared=no
11057
# On AIX, shared libraries and static libraries use the same namespace, and
11058
# are all built from PIC.
10415
11061
test "$enable_shared" = yes && enable_static=no
10418
darwin* | rhapsody*)
10419
if test "$GCC" = yes; then
10420
archive_cmds_need_lc=no
10422
rhapsody* | darwin1.[012])
10423
allow_undefined_flag='-undefined suppress'
10426
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10427
allow_undefined_flag='-flat_namespace -undefined suppress'
10429
case ${MACOSX_DEPLOYMENT_TARGET} in
10431
allow_undefined_flag='-flat_namespace -undefined suppress'
10434
allow_undefined_flag='-undefined dynamic_lookup'
10440
output_verbose_link_cmd='echo'
10441
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10442
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10443
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10444
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}'
10445
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}'
10447
hardcode_automatic=yes
10448
hardcode_shlibpath_var=unsupported
10449
whole_archive_flag_spec='-all_load $convenience'
10450
link_all_deplibs=yes
10456
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10457
echo "${ECHO_T}$enable_shared" >&6; }
10459
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10460
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10461
# Make sure either enable_shared or enable_static is yes.
10462
test "$enable_shared" = yes || enable_static=yes
10463
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10464
echo "${ECHO_T}$enable_static" >&6; }
10466
# The else clause should only fire when bootstrapping the
10467
# libtool distribution, otherwise you forgot to ship ltmain.sh
10468
# with your package, and you will get complaints that there are
10469
# no rules to generate ltmain.sh.
10470
if test -f "$ltmain"; then
10471
# See if we are running on zsh, and set the options which allow our commands through
10472
# without removal of \ escapes.
10473
if test -n "${ZSH_VERSION+set}" ; then
10474
setopt NO_GLOB_SUBST
10476
# Now quote all the things that may contain metacharacters while being
10477
# careful not to overquote the AC_SUBSTed values. We take copies of the
10478
# variables and quote the copies for generation of the libtool script.
10479
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10481
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10482
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10483
deplibs_check_method reload_flag reload_cmds need_locks \
10484
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10485
lt_cv_sys_global_symbol_to_c_name_address \
10486
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10487
old_postinstall_cmds old_postuninstall_cmds \
10491
lt_prog_compiler_wl \
10492
lt_prog_compiler_pic \
10493
lt_prog_compiler_static \
10494
lt_prog_compiler_no_builtin_flag \
10495
export_dynamic_flag_spec \
10496
thread_safe_flag_spec \
10497
whole_archive_flag_spec \
10498
enable_shared_with_static_runtimes \
10500
old_archive_from_new_cmds \
10505
compiler_lib_search_path \
10507
archive_expsym_cmds \
10509
postuninstall_cmds \
10510
old_archive_from_expsyms_cmds \
10511
allow_undefined_flag \
10512
no_undefined_flag \
10513
export_symbols_cmds \
10514
hardcode_libdir_flag_spec \
10515
hardcode_libdir_flag_spec_ld \
10516
hardcode_libdir_separator \
10517
hardcode_automatic \
10519
module_expsym_cmds \
10520
lt_cv_prog_compiler_c_o \
10522
include_expsyms; do
10525
old_archive_cmds | \
10526
old_archive_from_new_cmds | \
10528
archive_expsym_cmds | \
10530
module_expsym_cmds | \
10531
old_archive_from_expsyms_cmds | \
10532
export_symbols_cmds | \
10533
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10534
postinstall_cmds | postuninstall_cmds | \
10535
old_postinstall_cmds | old_postuninstall_cmds | \
10536
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10537
# Double-quote double-evaled strings.
10538
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10541
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10547
*'\$0 --fallback-echo"')
10548
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10552
cfgfile="${ofile}T"
10553
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10555
{ echo "$as_me:$LINENO: creating $ofile" >&5
10556
echo "$as_me: creating $ofile" >&6;}
10558
cat <<__EOF__ >> "$cfgfile"
10561
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10562
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10563
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10565
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10566
# Free Software Foundation, Inc.
10568
# This file is part of GNU Libtool:
10569
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10571
# This program is free software; you can redistribute it and/or modify
10572
# it under the terms of the GNU General Public License as published by
10573
# the Free Software Foundation; either version 2 of the License, or
10574
# (at your option) any later version.
10576
# This program is distributed in the hope that it will be useful, but
10577
# WITHOUT ANY WARRANTY; without even the implied warranty of
10578
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10579
# General Public License for more details.
10581
# You should have received a copy of the GNU General Public License
10582
# along with this program; if not, write to the Free Software
10583
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10585
# As a special exception to the GNU General Public License, if you
10586
# distribute this file as part of a program that contains a
10587
# configuration script generated by Autoconf, you may include it under
10588
# the same distribution terms that you use for the rest of that program.
10590
# A sed program that does not truncate output.
10593
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10594
Xsed="$SED -e s/^X//"
10596
# The HP-UX ksh and POSIX shell print the target directory to stdout
10597
# if CDPATH is set.
10598
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10600
# The names of the tagged configurations supported by this script.
10603
# ### BEGIN LIBTOOL CONFIG
10605
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10607
# Shell to use when invoking shell scripts.
10610
# Whether or not to build shared libraries.
10611
build_libtool_libs=$enable_shared
10613
# Whether or not to build static libraries.
10614
build_old_libs=$enable_static
10616
# Whether or not to add -lc for building shared libraries.
10617
build_libtool_need_lc=$archive_cmds_need_lc
10619
# Whether or not to disallow shared libs when runtime libs are static
10620
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10622
# Whether or not to optimize for fast installation.
10623
fast_install=$enable_fast_install
10626
host_alias=$host_alias
10629
# An echo program that does not interpret backslashes.
10634
AR_FLAGS=$lt_AR_FLAGS
10639
# A language-specific compiler.
10642
# Is the compiler the GNU C compiler?
10648
# The linker used to build libraries.
10651
# Whether we need hard or soft links.
10654
# A BSD-compatible nm program.
10657
# A symbol stripping program
10660
# Used to examine libraries when file_magic_cmd begins "file"
10661
MAGIC_CMD=$MAGIC_CMD
10663
# Used on cygwin: DLL creation program.
10666
# Used on cygwin: object dumper.
10669
# Used on cygwin: assembler.
10672
# The name of the directory that contains temporary libtool files.
10675
# How to create reloadable object files.
10676
reload_flag=$lt_reload_flag
10677
reload_cmds=$lt_reload_cmds
10679
# How to pass a linker flag through the compiler.
10680
wl=$lt_lt_prog_compiler_wl
10682
# Object file suffix (normally "o").
10683
objext="$ac_objext"
10685
# Old archive suffix (normally "a").
10688
# Shared library suffix (normally ".so").
10689
shrext_cmds='$shrext_cmds'
10691
# Executable file suffix (normally "").
10694
# Additional compiler flags for building library objects.
10695
pic_flag=$lt_lt_prog_compiler_pic
10698
# What is the maximum length of a command?
10699
max_cmd_len=$lt_cv_sys_max_cmd_len
10701
# Does compiler simultaneously support -c and -o options?
10702
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10704
# Must we lock files when doing compilation ?
10705
need_locks=$lt_need_locks
10707
# Do we need the lib prefix for modules?
10708
need_lib_prefix=$need_lib_prefix
10710
# Do we need a version for libraries?
10711
need_version=$need_version
10713
# Whether dlopen is supported.
10714
dlopen_support=$enable_dlopen
10716
# Whether dlopen of programs is supported.
10717
dlopen_self=$enable_dlopen_self
10719
# Whether dlopen of statically linked programs is supported.
10720
dlopen_self_static=$enable_dlopen_self_static
10722
# Compiler flag to prevent dynamic linking.
10723
link_static_flag=$lt_lt_prog_compiler_static
10725
# Compiler flag to turn off builtin functions.
10726
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10728
# Compiler flag to allow reflexive dlopens.
10729
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10731
# Compiler flag to generate shared objects directly from archives.
10732
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10734
# Compiler flag to generate thread-safe objects.
10735
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10737
# Library versioning type.
10738
version_type=$version_type
10740
# Format of library name prefix.
10741
libname_spec=$lt_libname_spec
10743
# List of archive names. First name is the real one, the rest are links.
10744
# The last name is the one that the linker finds with -lNAME.
10745
library_names_spec=$lt_library_names_spec
10747
# The coded name of the library, if different from the real name.
10748
soname_spec=$lt_soname_spec
10750
# Commands used to build and install an old-style archive.
10752
old_archive_cmds=$lt_old_archive_cmds
10753
old_postinstall_cmds=$lt_old_postinstall_cmds
10754
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10756
# Create an old-style archive from a shared archive.
10757
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10759
# Create a temporary old-style archive to link instead of a shared archive.
10760
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10762
# Commands used to build and install a shared archive.
10763
archive_cmds=$lt_archive_cmds
10764
archive_expsym_cmds=$lt_archive_expsym_cmds
10765
postinstall_cmds=$lt_postinstall_cmds
10766
postuninstall_cmds=$lt_postuninstall_cmds
10768
# Commands used to build a loadable module (assumed same as above if empty)
10769
module_cmds=$lt_module_cmds
10770
module_expsym_cmds=$lt_module_expsym_cmds
10772
# Commands to strip libraries.
10773
old_striplib=$lt_old_striplib
10774
striplib=$lt_striplib
10776
# Dependencies to place before the objects being linked to create a
10778
predep_objects=$lt_predep_objects
10780
# Dependencies to place after the objects being linked to create a
10782
postdep_objects=$lt_postdep_objects
10784
# Dependencies to place before the objects being linked to create a
10786
predeps=$lt_predeps
10788
# Dependencies to place after the objects being linked to create a
10790
postdeps=$lt_postdeps
10792
# The library search path used internally by the compiler when linking
10793
# a shared library.
10794
compiler_lib_search_path=$lt_compiler_lib_search_path
10796
# Method to check whether dependent libraries are shared objects.
10797
deplibs_check_method=$lt_deplibs_check_method
10799
# Command to use when deplibs_check_method == file_magic.
10800
file_magic_cmd=$lt_file_magic_cmd
10802
# Flag that allows shared libraries with undefined symbols to be built.
10803
allow_undefined_flag=$lt_allow_undefined_flag
10805
# Flag that forces no undefined symbols.
10806
no_undefined_flag=$lt_no_undefined_flag
10808
# Commands used to finish a libtool library installation in a directory.
10809
finish_cmds=$lt_finish_cmds
10811
# Same as above, but a single script fragment to be evaled but not shown.
10812
finish_eval=$lt_finish_eval
10814
# Take the output of nm and produce a listing of raw symbols and C names.
10815
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10817
# Transform the output of nm in a proper C declaration
10818
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10820
# Transform the output of nm in a C name address pair
10821
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10823
# This is the shared library runtime path variable.
10824
runpath_var=$runpath_var
10826
# This is the shared library path variable.
10827
shlibpath_var=$shlibpath_var
10829
# Is shlibpath searched before the hard-coded library search path?
10830
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10832
# How to hardcode a shared library path into an executable.
10833
hardcode_action=$hardcode_action
10835
# Whether we should hardcode library paths into libraries.
10836
hardcode_into_libs=$hardcode_into_libs
10838
# Flag to hardcode \$libdir into a binary during linking.
10839
# This must work even if \$libdir does not exist.
10840
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10842
# If ld is used when linking, flag to hardcode \$libdir into
10843
# a binary during linking. This must work even if \$libdir does
10845
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10847
# Whether we need a single -rpath flag with a separated argument.
10848
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10850
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10851
# resulting binary.
10852
hardcode_direct=$hardcode_direct
10854
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10855
# resulting binary.
10856
hardcode_minus_L=$hardcode_minus_L
10858
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10859
# the resulting binary.
10860
hardcode_shlibpath_var=$hardcode_shlibpath_var
10862
# Set to yes if building a shared library automatically hardcodes DIR into the library
10863
# and all subsequent libraries and executables linked against it.
10864
hardcode_automatic=$hardcode_automatic
10866
# Variables whose values should be saved in libtool wrapper scripts and
10867
# restored at relink time.
10868
variables_saved_for_relink="$variables_saved_for_relink"
10870
# Whether libtool must link a program against all its dependency libraries.
10871
link_all_deplibs=$link_all_deplibs
10873
# Compile-time system search path for libraries
10874
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10876
# Run-time system search path for libraries
10877
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10879
# Fix the shell variable \$srcfile for the compiler.
10880
fix_srcfile_path="$fix_srcfile_path"
10882
# Set to yes if exported symbols are required.
10883
always_export_symbols=$always_export_symbols
10885
# The commands to list exported symbols.
10886
export_symbols_cmds=$lt_export_symbols_cmds
10888
# The commands to extract the exported symbol list from a shared archive.
10889
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10891
# Symbols that should not be listed in the preloaded symbols.
10892
exclude_expsyms=$lt_exclude_expsyms
10894
# Symbols that must always be exported.
10895
include_expsyms=$lt_include_expsyms
10897
# ### END LIBTOOL CONFIG
10904
cat <<\EOF >> "$cfgfile"
10906
# AIX sometimes has problems with the GCC collect2 program. For some
10907
# reason, if we set the COLLECT_NAMES environment variable, the problems
10908
# vanish in a puff of smoke.
10909
if test "X${COLLECT_NAMES+set}" != Xset; then
10911
export COLLECT_NAMES
10917
# We use sed instead of cat because bash on DJGPP gets confused if
10918
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10919
# text mode, it properly converts lines to CR/LF. This bash problem
10920
# is reportedly fixed, but why not run on old versions too?
10921
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10923
mv -f "$cfgfile" "$ofile" || \
10924
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10928
# If there is no Makefile yet, we rely on a make rule to execute
10929
# `config.status --recheck' to rerun these tests and create the
10930
# libtool script then.
10931
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10932
if test -f "$ltmain_in"; then
10933
test -f Makefile && make "$ltmain"
10939
ac_cpp='$CPP $CPPFLAGS'
10940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947
# Check whether --with-tags was given.
10948
if test "${with_tags+set}" = set; then
10949
withval=$with_tags; tagnames="$withval"
10953
if test -f "$ltmain" && test -n "$tagnames"; then
10954
if test ! -f "${ofile}"; then
10955
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10956
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10959
if test -z "$LTCC"; then
10960
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10961
if test -z "$LTCC"; then
10962
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10963
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10965
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10966
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10970
# Extract list of available tagged configurations in $ofile.
10971
# Note that this assumes the entire list is on one line.
10972
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10974
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10975
for tagname in $tagnames; do
10977
# Check whether tagname contains only valid characters
10978
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10980
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10981
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10982
{ (exit 1); exit 1; }; }
10986
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10988
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10989
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10990
{ (exit 1); exit 1; }; }
10993
# Update the list of available tags.
10994
if test -n "$tagname"; then
10995
echo appending configuration tag \"$tagname\" to $ofile
10999
if test -n "$CXX" && test "X$CXX" != "Xno"; then
11001
ac_cpp='$CXXCPP $CPPFLAGS'
11002
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11009
archive_cmds_need_lc_CXX=no
11010
allow_undefined_flag_CXX=
11011
always_export_symbols_CXX=no
11012
archive_expsym_cmds_CXX=
11013
export_dynamic_flag_spec_CXX=
11014
hardcode_direct_CXX=no
11015
hardcode_libdir_flag_spec_CXX=
11016
hardcode_libdir_flag_spec_ld_CXX=
11017
hardcode_libdir_separator_CXX=
11018
hardcode_minus_L_CXX=no
11019
hardcode_automatic_CXX=no
11021
module_expsym_cmds_CXX=
11022
link_all_deplibs_CXX=unknown
11023
old_archive_cmds_CXX=$old_archive_cmds
11024
no_undefined_flag_CXX=
11025
whole_archive_flag_spec_CXX=
11026
enable_shared_with_static_runtimes_CXX=no
11028
# Dependencies to place before and after the object being linked:
11029
predep_objects_CXX=
11030
postdep_objects_CXX=
11033
compiler_lib_search_path_CXX=
11035
# Source file extension for C++ test sources.
11038
# Object file extension for compiled C++ test sources.
11042
# Code to be used in simple compile tests
11043
lt_simple_compile_test_code="int some_variable = 0;\n"
11045
# Code to be used in simple link tests
11046
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11048
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11050
# If no C compiler was specified, use CC.
11053
# Allow CC to be a program name with arguments.
11057
# Allow CC to be a program name with arguments.
11062
lt_save_with_gnu_ld=$with_gnu_ld
11063
lt_save_path_LD=$lt_cv_path_LD
11064
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11065
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11067
unset lt_cv_prog_gnu_ld
11069
if test -n "${lt_cv_path_LDCXX+set}"; then
11070
lt_cv_path_LD=$lt_cv_path_LDCXX
11072
unset lt_cv_path_LD
11074
test -z "${LDCXX+set}" || LD=$LDCXX
11078
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11080
# We don't want -fno-exception wen compiling C++ code, so set the
11081
# no_builtin_flag separately
11082
if test "$GXX" = yes; then
11083
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11085
lt_prog_compiler_no_builtin_flag_CXX=
11088
if test "$GXX" = yes; then
11089
# Set up default GNU C++ configuration
11092
# Check whether --with-gnu-ld was given.
11093
if test "${with_gnu_ld+set}" = set; then
11094
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11100
if test "$GCC" = yes; then
11101
# Check if gcc -print-prog-name=ld gives a path.
11102
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11103
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11106
# gcc leaves a trailing carriage return which upsets mingw
11107
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11109
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11112
# Accept absolute paths.
11114
re_direlt='/[^/][^/]*/\.\./'
11115
# Canonicalize the pathname of ld
11116
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11117
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11118
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11120
test -z "$LD" && LD="$ac_prog"
11123
# If it fails, then pretend we aren't using GCC.
11127
# If it is relative, then search for the first ld in PATH.
11128
with_gnu_ld=unknown
11131
elif test "$with_gnu_ld" = yes; then
11132
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11133
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11135
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11136
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11138
if test "${lt_cv_path_LD+set}" = set; then
11139
echo $ECHO_N "(cached) $ECHO_C" >&6
11141
if test -z "$LD"; then
11142
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11143
for ac_dir in $PATH; do
11145
test -z "$ac_dir" && ac_dir=.
11146
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11147
lt_cv_path_LD="$ac_dir/$ac_prog"
11148
# Check to see if the program is GNU ld. I'd rather use --version,
11149
# but apparently some GNU ld's only accept -v.
11150
# Break only if it was the GNU/non-GNU ld that we prefer.
11151
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11152
*GNU* | *'with BFD'*)
11153
test "$with_gnu_ld" != no && break
11156
test "$with_gnu_ld" != yes && break
11163
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11167
LD="$lt_cv_path_LD"
11168
if test -n "$LD"; then
11169
{ echo "$as_me:$LINENO: result: $LD" >&5
11170
echo "${ECHO_T}$LD" >&6; }
11172
{ echo "$as_me:$LINENO: result: no" >&5
11173
echo "${ECHO_T}no" >&6; }
11175
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11176
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11177
{ (exit 1); exit 1; }; }
11178
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11179
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11180
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11181
echo $ECHO_N "(cached) $ECHO_C" >&6
11183
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11184
case `$LD -v 2>&1 </dev/null` in
11185
*GNU* | *'with BFD'*)
11186
lt_cv_prog_gnu_ld=yes
11189
lt_cv_prog_gnu_ld=no
11193
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11194
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11195
with_gnu_ld=$lt_cv_prog_gnu_ld
11199
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11200
# archiving commands below assume that GNU ld is being used.
11201
if test "$with_gnu_ld" = yes; then
11202
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11203
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11205
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11206
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11208
# If archive_cmds runs LD, not CC, wlarc should be empty
11209
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11210
# investigate it a little bit more. (MM)
11213
# ancient GNU ld didn't support --whole-archive et. al.
11214
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11215
grep 'no-whole-archive' > /dev/null; then
11216
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11218
whole_archive_flag_spec_CXX=
11224
# A generic and very simple default shared library creation
11225
# command for GNU C++ for the case where it uses the native
11226
# linker, instead of GNU ld. If possible, this setting should
11227
# overridden to take advantage of the native linker features on
11228
# the platform it is being used on.
11229
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11232
# Commands to make compiler produce verbose output that lists
11233
# what "hidden" libraries, object files and flags are used when
11234
# linking a shared library.
11235
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11243
# PORTME: fill in a description of your system's C++ link characteristics
11244
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11245
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11249
# FIXME: insert proper C++ library support
11253
if test "$host_cpu" = ia64; then
11254
# On IA64, the linker does run time linking by default, so we don't
11255
# have to do anything special.
11256
aix_use_runtimelinking=no
11257
exp_sym_flag='-Bexport'
11260
aix_use_runtimelinking=no
11262
# Test if we are trying to use run time linking or normal
11263
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11264
# need to do runtime linking.
11265
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11266
for ld_flag in $LDFLAGS; do
11269
aix_use_runtimelinking=yes
11276
exp_sym_flag='-bexport'
11277
no_entry_flag='-bnoentry'
11280
# When large executables or shared objects are built, AIX ld can
11281
# have problems creating the table of contents. If linking a library
11282
# or program results in "error TOC overflow" add -mminimal-toc to
11283
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11284
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11286
archive_cmds_CXX=''
11287
hardcode_direct_CXX=yes
11288
hardcode_libdir_separator_CXX=':'
11289
link_all_deplibs_CXX=yes
11291
if test "$GXX" = yes; then
11292
case $host_os in aix4.012|aix4.012.*)
11293
# We only want to do this on AIX 4.2 and lower, the check
11294
# below for broken collect2 doesn't work under 4.3+
11295
collect2name=`${CC} -print-prog-name=collect2`
11296
if test -f "$collect2name" && \
11297
strings "$collect2name" | grep resolve_lib_name >/dev/null
11299
# We have reworked collect2
11300
hardcode_direct_CXX=yes
11302
# We have old collect2
11303
hardcode_direct_CXX=unsupported
11304
# It fails to find uninstalled libraries when the uninstalled
11305
# path is not listed in the libpath. Setting hardcode_minus_L
11306
# to unsupported forces relinking
11307
hardcode_minus_L_CXX=yes
11308
hardcode_libdir_flag_spec_CXX='-L$libdir'
11309
hardcode_libdir_separator_CXX=
11312
shared_flag='-shared'
11315
if test "$host_cpu" = ia64; then
11316
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11317
# chokes on -Wl,-G. The following line is correct:
11320
if test "$aix_use_runtimelinking" = yes; then
11321
shared_flag='${wl}-G'
11323
shared_flag='${wl}-bM:SRE'
11328
# It seems that -bexpall does not export symbols beginning with
11329
# underscore (_), so it is better to generate a list of symbols to export.
11330
always_export_symbols_CXX=yes
11331
if test "$aix_use_runtimelinking" = yes; then
11332
# Warning - without using the other runtime loading flags (-brtl),
11333
# -berok will link without error, but may produce a broken library.
11334
allow_undefined_flag_CXX='-berok'
11335
# Determine the default libpath from the value encoded in an empty executable.
11336
cat >conftest.$ac_ext <<_ACEOF
11339
cat confdefs.h >>conftest.$ac_ext
11340
cat >>conftest.$ac_ext <<_ACEOF
11341
/* end confdefs.h. */
11351
rm -f conftest.$ac_objext conftest$ac_exeext
11352
if { (ac_try="$ac_link"
11353
case "(($ac_try" in
11354
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355
*) ac_try_echo=$ac_try;;
11357
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358
(eval "$ac_link") 2>conftest.er1
11360
grep -v '^ *+' conftest.er1 >conftest.err
11362
cat conftest.err >&5
11363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364
(exit $ac_status); } && {
11365
test -z "$ac_cxx_werror_flag" ||
11366
test ! -s conftest.err
11367
} && test -s conftest$ac_exeext &&
11368
$as_test_x conftest$ac_exeext; then
11370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11372
# Check for a 64-bit object if we didn't find anything.
11373
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11376
echo "$as_me: failed program was:" >&5
11377
sed 's/^/| /' conftest.$ac_ext >&5
11382
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383
conftest$ac_exeext conftest.$ac_ext
11384
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11386
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11388
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"
11390
if test "$host_cpu" = ia64; then
11391
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11392
allow_undefined_flag_CXX="-z nodefs"
11393
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"
11395
# Determine the default libpath from the value encoded in an empty executable.
11396
cat >conftest.$ac_ext <<_ACEOF
11399
cat confdefs.h >>conftest.$ac_ext
11400
cat >>conftest.$ac_ext <<_ACEOF
11401
/* end confdefs.h. */
11411
rm -f conftest.$ac_objext conftest$ac_exeext
11412
if { (ac_try="$ac_link"
11413
case "(($ac_try" in
11414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415
*) ac_try_echo=$ac_try;;
11417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418
(eval "$ac_link") 2>conftest.er1
11420
grep -v '^ *+' conftest.er1 >conftest.err
11422
cat conftest.err >&5
11423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424
(exit $ac_status); } && {
11425
test -z "$ac_cxx_werror_flag" ||
11426
test ! -s conftest.err
11427
} && test -s conftest$ac_exeext &&
11428
$as_test_x conftest$ac_exeext; then
11430
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11432
# Check for a 64-bit object if we didn't find anything.
11433
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11436
echo "$as_me: failed program was:" >&5
11437
sed 's/^/| /' conftest.$ac_ext >&5
11442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11443
conftest$ac_exeext conftest.$ac_ext
11444
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11446
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11447
# Warning - without using the other run time loading flags,
11448
# -berok will link without error, but may produce a broken library.
11449
no_undefined_flag_CXX=' ${wl}-bernotok'
11450
allow_undefined_flag_CXX=' ${wl}-berok'
11451
# -bexpall does not export symbols beginning with underscore (_)
11452
always_export_symbols_CXX=yes
11453
# Exported symbols can be pulled into shared objects from archives
11454
whole_archive_flag_spec_CXX=' '
11455
archive_cmds_need_lc_CXX=yes
11456
# This is similar to how AIX traditionally builds it's shared libraries.
11457
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'
11462
case $cc_basename in
11464
# FIXME: insert proper C++ library support
11470
cygwin* | mingw* | pw32*)
11471
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11472
# as there is no search path for DLLs.
11473
hardcode_libdir_flag_spec_CXX='-L$libdir'
11474
allow_undefined_flag_CXX=unsupported
11475
always_export_symbols_CXX=no
11476
enable_shared_with_static_runtimes_CXX=yes
11478
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11479
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'
11480
# If the export-symbols file already is a .def file (1st line
11481
# is EXPORTS), use it as is; otherwise, prepend...
11482
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483
cp $export_symbols $output_objdir/$soname.def;
11485
echo EXPORTS > $output_objdir/$soname.def;
11486
cat $export_symbols >> $output_objdir/$soname.def;
11488
$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'
11494
darwin* | rhapsody*)
11495
if test "$GXX" = yes; then
11496
archive_cmds_need_lc_CXX=no
11498
rhapsody* | darwin1.[012])
11499
allow_undefined_flag_CXX='-undefined suppress'
11502
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11503
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11505
case ${MACOSX_DEPLOYMENT_TARGET} in
11507
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11510
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11516
lt_int_apple_cc_single_mod=no
11517
output_verbose_link_cmd='echo'
11518
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11519
lt_int_apple_cc_single_mod=yes
11521
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11522
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11524
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'
11526
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11528
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11529
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11530
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}'
11532
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}'
11534
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}'
11535
hardcode_direct_CXX=no
11536
hardcode_automatic_CXX=yes
11537
hardcode_shlibpath_var_CXX=unsupported
11538
whole_archive_flag_spec_CXX='-all_load $convenience'
11539
link_all_deplibs_CXX=yes
11546
case $cc_basename in
11548
# FIXME: insert proper C++ library support
11552
# Green Hills C++ Compiler
11553
# FIXME: insert proper C++ library support
11557
# FIXME: insert proper C++ library support
11563
# C++ shared libraries reported to be fairly broken before switch to ELF
11567
archive_cmds_need_lc_CXX=no
11569
freebsd* | kfreebsd*-gnu)
11570
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11577
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11578
hardcode_libdir_separator_CXX=:
11579
export_dynamic_flag_spec_CXX='${wl}-E'
11580
hardcode_direct_CXX=yes
11581
hardcode_minus_L_CXX=yes # Not in the search PATH,
11582
# but as the default
11583
# location of the library.
11585
case $cc_basename in
11587
# FIXME: insert proper C++ library support
11591
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'
11592
# Commands to make compiler produce verbose output that lists
11593
# what "hidden" libraries, object files and flags are used when
11594
# linking a shared library.
11596
# There doesn't appear to be a way to prevent this compiler from
11597
# explicitly linking system object files so we need to strip them
11598
# from the output so that they don't get included in the library
11600
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'
11603
if test "$GXX" = yes; then
11604
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11606
# FIXME: insert proper C++ library support
11613
if test $with_gnu_ld = no; then
11614
case "$host_cpu" in
11616
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11618
hardcode_libdir_separator_CXX=:
11621
hardcode_libdir_flag_spec_CXX='-L$libdir'
11624
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625
hardcode_libdir_separator_CXX=:
11626
export_dynamic_flag_spec_CXX='${wl}-E'
11630
case "$host_cpu" in
11632
hardcode_direct_CXX=no
11633
hardcode_shlibpath_var_CXX=no
11636
hardcode_direct_CXX=no
11637
hardcode_shlibpath_var_CXX=no
11638
hardcode_minus_L_CXX=yes # Not in the search PATH,
11639
# but as the default
11640
# location of the library.
11643
hardcode_direct_CXX=yes
11644
hardcode_minus_L_CXX=yes # Not in the search PATH,
11645
# but as the default
11646
# location of the library.
11650
case $cc_basename in
11652
# FIXME: insert proper C++ library support
11656
case "$host_cpu" in
11658
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11661
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11664
# Commands to make compiler produce verbose output that lists
11665
# what "hidden" libraries, object files and flags are used when
11666
# linking a shared library.
11668
# There doesn't appear to be a way to prevent this compiler from
11669
# explicitly linking system object files so we need to strip them
11670
# from the output so that they don't get included in the library
11672
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11675
if test "$GXX" = yes; then
11676
if test $with_gnu_ld = no; then
11677
case "$host_cpu" in
11679
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11682
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'
11687
# FIXME: insert proper C++ library support
11694
case $cc_basename in
11697
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'
11699
# Archives containing C++ object files must be created using
11700
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11701
# necessary to make sure instantiated templates are included
11703
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11706
if test "$GXX" = yes; then
11707
if test "$with_gnu_ld" = no; then
11708
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'
11710
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'
11713
link_all_deplibs_CXX=yes
11716
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11717
hardcode_libdir_separator_CXX=:
11720
case $cc_basename in
11722
# Kuck and Associates, Inc. (KAI) C++ Compiler
11724
# KCC will only create a shared library if the output file
11725
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11726
# to its proper name (with version) after linking.
11727
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11728
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11729
# Commands to make compiler produce verbose output that lists
11730
# what "hidden" libraries, object files and flags are used when
11731
# linking a shared library.
11733
# There doesn't appear to be a way to prevent this compiler from
11734
# explicitly linking system object files so we need to strip them
11735
# from the output so that they don't get included in the library
11737
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11739
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11740
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11742
# Archives containing C++ object files must be created using
11743
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11744
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11749
archive_cmds_need_lc_CXX=no
11750
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751
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'
11752
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11753
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11754
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11758
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11759
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'
11761
runpath_var=LD_RUN_PATH
11762
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11763
hardcode_libdir_separator_CXX=:
11765
# Commands to make compiler produce verbose output that lists
11766
# what "hidden" libraries, object files and flags are used when
11767
# linking a shared library.
11769
# There doesn't appear to be a way to prevent this compiler from
11770
# explicitly linking system object files so we need to strip them
11771
# from the output so that they don't get included in the library
11773
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11778
# FIXME: insert proper C++ library support
11782
# FIXME: insert proper C++ library support
11786
case $cc_basename in
11788
# FIXME: insert proper C++ library support
11792
# FIXME: insert proper C++ library support
11797
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11798
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11799
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11801
hardcode_libdir_flag_spec_CXX='-R$libdir'
11802
hardcode_direct_CXX=yes
11803
hardcode_shlibpath_var_CXX=no
11805
# Workaround some broken pre-1.5 toolchains
11806
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11809
case $cc_basename in
11811
# Kuck and Associates, Inc. (KAI) C++ Compiler
11813
# KCC will only create a shared library if the output file
11814
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11815
# to its proper name (with version) after linking.
11816
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11818
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819
hardcode_libdir_separator_CXX=:
11821
# Archives containing C++ object files must be created using
11822
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11827
# Rational C++ 2.4.1
11828
# FIXME: insert proper C++ library support
11832
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833
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'
11835
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836
hardcode_libdir_separator_CXX=:
11838
# Commands to make compiler produce verbose output that lists
11839
# what "hidden" libraries, object files and flags are used when
11840
# linking a shared library.
11842
# There doesn't appear to be a way to prevent this compiler from
11843
# explicitly linking system object files so we need to strip them
11844
# from the output so that they don't get included in the library
11846
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11849
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851
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'
11853
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854
hardcode_libdir_separator_CXX=:
11856
# Commands to make compiler produce verbose output that lists
11857
# what "hidden" libraries, object files and flags are used when
11858
# linking a shared library.
11859
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11862
# FIXME: insert proper C++ library support
11869
case $cc_basename in
11871
# Kuck and Associates, Inc. (KAI) C++ Compiler
11873
# KCC will only create a shared library if the output file
11874
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11875
# to its proper name (with version) after linking.
11876
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11878
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879
hardcode_libdir_separator_CXX=:
11881
# Archives containing C++ object files must be created using
11882
# the KAI C++ compiler.
11883
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11886
# Rational C++ 2.4.1
11887
# FIXME: insert proper C++ library support
11891
allow_undefined_flag_CXX=' -expect_unresolved \*'
11892
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'
11893
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894
echo "-hidden">> $lib.exp~
11895
$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~
11898
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899
hardcode_libdir_separator_CXX=:
11901
# Commands to make compiler produce verbose output that lists
11902
# what "hidden" libraries, object files and flags are used when
11903
# linking a shared library.
11905
# There doesn't appear to be a way to prevent this compiler from
11906
# explicitly linking system object files so we need to strip them
11907
# from the output so that they don't get included in the library
11909
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11912
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914
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'
11916
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917
hardcode_libdir_separator_CXX=:
11919
# Commands to make compiler produce verbose output that lists
11920
# what "hidden" libraries, object files and flags are used when
11921
# linking a shared library.
11922
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11925
# FIXME: insert proper C++ library support
11932
# FIXME: insert proper C++ library support
11936
archive_cmds_need_lc_CXX=no
11937
case $cc_basename in
11939
# FIXME: insert proper C++ library support
11943
# FIXME: insert proper C++ library support
11949
case $cc_basename in
11952
# FIXME: insert proper C++ library support
11957
# FIXME: insert proper C++ library support
11961
# FIXME: insert proper C++ library support
11967
case $cc_basename in
11969
# Sun C++ 4.2, 5.x and Centerline C++
11970
no_undefined_flag_CXX=' -zdefs'
11971
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11973
$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'
11975
hardcode_libdir_flag_spec_CXX='-R$libdir'
11976
hardcode_shlibpath_var_CXX=no
11978
solaris2.0-5 | solaris2.0-5.*) ;;
11980
# The C++ compiler is used as linker so we must use $wl
11981
# flag to pass the commands to the underlying system
11983
# Supported since Solaris 2.6 (maybe 2.5.1?)
11984
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11987
link_all_deplibs_CXX=yes
11989
# Commands to make compiler produce verbose output that lists
11990
# what "hidden" libraries, object files and flags are used when
11991
# linking a shared library.
11993
# There doesn't appear to be a way to prevent this compiler from
11994
# explicitly linking system object files so we need to strip them
11995
# from the output so that they don't get included in the library
11997
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'
11999
# Archives containing C++ object files must be created using
12000
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12001
# necessary to make sure instantiated templates are included
12003
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12006
# Green Hills C++ Compiler
12007
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12009
# The C++ compiler must be used to create the archive.
12010
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12013
# GNU C++ compiler with Solaris linker
12014
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12016
if $CC --version | grep -v '^2\.7' > /dev/null; then
12017
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12018
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12019
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12021
# Commands to make compiler produce verbose output that lists
12022
# what "hidden" libraries, object files and flags are used when
12023
# linking a shared library.
12024
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12026
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12028
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12029
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12030
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12032
# Commands to make compiler produce verbose output that lists
12033
# what "hidden" libraries, object files and flags are used when
12034
# linking a shared library.
12035
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12038
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12043
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12044
archive_cmds_need_lc_CXX=no
12047
case $cc_basename in
12049
# NonStop-UX NCC 3.20
12050
# FIXME: insert proper C++ library support
12054
# FIXME: insert proper C++ library support
12060
# FIXME: insert proper C++ library support
12064
# FIXME: insert proper C++ library support
12068
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12069
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12070
test "$ld_shlibs_CXX" = no && can_build_shared=no
12076
## There is no encapsulation within the following macros, do not change
12077
## the running order or otherwise move them around unless you know exactly
12078
## what you are doing...
12080
cat > conftest.$ac_ext <<EOF
12084
Foo (void) { a = 0; }
12090
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091
(eval $ac_compile) 2>&5
12093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094
(exit $ac_status); }; then
12095
# Parse the compiler output and extract the necessary
12096
# objects, libraries and library flags.
12098
# Sentinel used to keep track of whether or not we are before
12099
# the conftest object file.
12100
pre_test_object_deps_done=no
12102
# The `*' in the case matches for architectures that use `case' in
12103
# $output_verbose_cmd can trigger glob expansion during the loop
12104
# eval without this substitution.
12105
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12107
for p in `eval $output_verbose_link_cmd`; do
12111
# Some compilers place space between "-{L,R}" and the path.
12112
# Remove the space.
12113
if test $p = "-L" \
12114
|| test $p = "-R"; then
12121
if test "$pre_test_object_deps_done" = no; then
12124
# Internal compiler library paths should come after those
12125
# provided the user. The postdeps already come after the
12126
# user supplied libs so there is no need to process them.
12127
if test -z "$compiler_lib_search_path_CXX"; then
12128
compiler_lib_search_path_CXX="${prev}${p}"
12130
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12133
# The "-l" case would never come before the object being
12134
# linked, so don't bother handling this case.
12137
if test -z "$postdeps_CXX"; then
12138
postdeps_CXX="${prev}${p}"
12140
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12146
# This assumes that the test object file only shows up
12147
# once in the compiler output.
12148
if test "$p" = "conftest.$objext"; then
12149
pre_test_object_deps_done=yes
12153
if test "$pre_test_object_deps_done" = no; then
12154
if test -z "$predep_objects_CXX"; then
12155
predep_objects_CXX="$p"
12157
predep_objects_CXX="$predep_objects_CXX $p"
12160
if test -z "$postdep_objects_CXX"; then
12161
postdep_objects_CXX="$p"
12163
postdep_objects_CXX="$postdep_objects_CXX $p"
12168
*) ;; # Ignore the rest.
12176
echo "libtool.m4: error: problem compiling CXX test program"
12179
$rm -f confest.$objext
12181
case " $postdeps_CXX " in
12182
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12185
lt_prog_compiler_wl_CXX=
12186
lt_prog_compiler_pic_CXX=
12187
lt_prog_compiler_static_CXX=
12189
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12190
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12192
# C++ specific cases for pic, static, wl, etc.
12193
if test "$GXX" = yes; then
12194
lt_prog_compiler_wl_CXX='-Wl,'
12195
lt_prog_compiler_static_CXX='-static'
12199
# All AIX code is PIC.
12200
if test "$host_cpu" = ia64; then
12201
# AIX 5 now supports IA64 processor
12202
lt_prog_compiler_static_CXX='-Bstatic'
12206
# FIXME: we need at least 68020 code to build shared libraries, but
12207
# adding the `-m68020' flag to GCC prevents building anything better,
12209
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12211
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12212
# PIC is the default for these OSes.
12214
mingw* | os2* | pw32*)
12215
# This hack is so that the source file can tell whether it is being
12216
# built for inclusion in a dll (and should export symbols for example).
12217
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12219
darwin* | rhapsody*)
12220
# PIC is the default on this platform
12221
# Common symbols not allowed in MH_DYLIB files
12222
lt_prog_compiler_pic_CXX='-fno-common'
12225
# DJGPP does not support shared libraries at all
12226
lt_prog_compiler_pic_CXX=
12229
if test -d /usr/nec; then
12230
lt_prog_compiler_pic_CXX=-Kconform_pic
12234
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12235
# not for PA HP-UX.
12236
case "$host_cpu" in
12240
lt_prog_compiler_pic_CXX='-fPIC'
12245
lt_prog_compiler_pic_CXX='-fPIC'
12251
# All AIX code is PIC.
12252
if test "$host_cpu" = ia64; then
12253
# AIX 5 now supports IA64 processor
12254
lt_prog_compiler_static_CXX='-Bstatic'
12256
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12260
case $cc_basename in
12262
# Green Hills C++ Compiler
12263
# _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"
12268
case $cc_basename in
12270
lt_prog_compiler_pic_CXX='-KPIC'
12273
# Green Hills C++ Compiler
12274
lt_prog_compiler_pic_CXX='-pic'
12280
freebsd* | kfreebsd*-gnu)
12281
# FreeBSD uses GNU C++
12283
hpux9* | hpux10* | hpux11*)
12284
case $cc_basename in
12286
lt_prog_compiler_wl_CXX='-Wl,'
12287
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12288
if test "$host_cpu" != ia64; then
12289
lt_prog_compiler_pic_CXX='+Z'
12293
lt_prog_compiler_wl_CXX='-Wl,'
12294
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12295
case "$host_cpu" in
12300
lt_prog_compiler_pic_CXX='+Z'
12308
irix5* | irix6* | nonstopux*)
12309
case $cc_basename in
12311
lt_prog_compiler_wl_CXX='-Wl,'
12312
lt_prog_compiler_static_CXX='-non_shared'
12313
# CC pic flag -KPIC is the default.
12320
case $cc_basename in
12323
lt_prog_compiler_wl_CXX='--backend -Wl,'
12324
lt_prog_compiler_pic_CXX='-fPIC'
12328
lt_prog_compiler_wl_CXX='-Wl,'
12329
lt_prog_compiler_pic_CXX='-KPIC'
12330
lt_prog_compiler_static_CXX='-static'
12334
# Make sure the PIC flag is empty. It appears that all Alpha
12335
# Linux and Compaq Tru64 Unix objects are PIC.
12336
lt_prog_compiler_pic_CXX=
12337
lt_prog_compiler_static_CXX='-non_shared'
12348
case $cc_basename in
12350
lt_prog_compiler_pic_CXX='-W c,exportall'
12356
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12358
osf3* | osf4* | osf5*)
12359
case $cc_basename in
12361
lt_prog_compiler_wl_CXX='--backend -Wl,'
12364
# Rational C++ 2.4.1
12365
lt_prog_compiler_pic_CXX='-pic'
12368
# Digital/Compaq C++
12369
lt_prog_compiler_wl_CXX='-Wl,'
12370
# Make sure the PIC flag is empty. It appears that all Alpha
12371
# Linux and Compaq Tru64 Unix objects are PIC.
12372
lt_prog_compiler_pic_CXX=
12373
lt_prog_compiler_static_CXX='-non_shared'
12382
case $cc_basename in
12384
lt_prog_compiler_pic_CXX='-fPIC'
12391
case $cc_basename in
12393
# Sun C++ 4.2, 5.x and Centerline C++
12394
lt_prog_compiler_pic_CXX='-KPIC'
12395
lt_prog_compiler_static_CXX='-Bstatic'
12396
lt_prog_compiler_wl_CXX='-Qoption ld '
12399
# Green Hills C++ Compiler
12400
lt_prog_compiler_pic_CXX='-PIC'
12407
case $cc_basename in
12410
lt_prog_compiler_pic_CXX='-pic'
12411
lt_prog_compiler_static_CXX='-Bstatic'
12415
lt_prog_compiler_pic_CXX='-pic'
12422
case $cc_basename in
12424
# NonStop-UX NCC 3.20
12425
lt_prog_compiler_pic_CXX='-KPIC'
12436
lt_prog_compiler_can_build_shared_CXX=no
12441
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12442
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12445
# Check to make sure the PIC flag actually works.
12447
if test -n "$lt_prog_compiler_pic_CXX"; then
12449
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12450
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12451
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12452
echo $ECHO_N "(cached) $ECHO_C" >&6
12454
lt_prog_compiler_pic_works_CXX=no
12455
ac_outfile=conftest.$ac_objext
12456
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12457
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12458
# Insert the option either (1) after the last *FLAGS variable, or
12459
# (2) before a word containing "conftest.", or (3) at the end.
12460
# Note that $ac_compile itself does not contain backslashes and begins
12461
# with a dollar sign (not a hyphen), so the echo should work correctly.
12462
# The option is referenced via a variable to avoid confusing sed.
12463
lt_compile=`echo "$ac_compile" | $SED \
12464
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12465
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12466
-e 's:$: $lt_compiler_flag:'`
12467
(eval echo "\"\$as_me:12467: $lt_compile\"" >&5)
12468
(eval "$lt_compile" 2>conftest.err)
12470
cat conftest.err >&5
12471
echo "$as_me:12471: \$? = $ac_status" >&5
12472
if (exit $ac_status) && test -s "$ac_outfile"; then
12473
# The compiler can only warn and ignore the option if not recognized
12474
# So say no if there are warnings
12475
if test ! -s conftest.err; then
12476
lt_prog_compiler_pic_works_CXX=yes
12482
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12483
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12485
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12486
case $lt_prog_compiler_pic_CXX in
12488
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12491
lt_prog_compiler_pic_CXX=
12492
lt_prog_compiler_can_build_shared_CXX=no
12497
# For platforms which do not support PIC, -DPIC is meaningless:
12499
lt_prog_compiler_pic_CXX=
12502
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12506
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12507
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12508
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12509
echo $ECHO_N "(cached) $ECHO_C" >&6
12511
lt_cv_prog_compiler_c_o_CXX=no
12512
$rm -r conftest 2>/dev/null
12516
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518
lt_compiler_flag="-o out/conftest2.$ac_objext"
12519
# Insert the option either (1) after the last *FLAGS variable, or
12520
# (2) before a word containing "conftest.", or (3) at the end.
12521
# Note that $ac_compile itself does not contain backslashes and begins
12522
# with a dollar sign (not a hyphen), so the echo should work correctly.
12523
lt_compile=`echo "$ac_compile" | $SED \
12524
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12525
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12526
-e 's:$: $lt_compiler_flag:'`
12527
(eval echo "\"\$as_me:12527: $lt_compile\"" >&5)
12528
(eval "$lt_compile" 2>out/conftest.err)
12530
cat out/conftest.err >&5
12531
echo "$as_me:12531: \$? = $ac_status" >&5
12532
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12534
# The compiler can only warn and ignore the option if not recognized
12535
# So say no if there are warnings
12536
if test ! -s out/conftest.err; then
12537
lt_cv_prog_compiler_c_o_CXX=yes
12542
# SGI C++ compiler will create directory out/ii_files/ for
12543
# template instantiation
12544
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12545
$rm out/* && rmdir out
12551
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12552
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12555
hard_links="nottested"
12556
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12557
# do not overwrite the value of need_locks provided by the user
12558
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12559
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12562
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12564
ln conftest.a conftest.b 2>&5 || hard_links=no
12565
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12566
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12567
echo "${ECHO_T}$hard_links" >&6; }
12568
if test "$hard_links" = no; then
12569
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12570
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12577
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12578
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12580
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12583
# If we're using GNU nm, then we don't want the "-C" option.
12584
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12585
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12586
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12588
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12592
export_symbols_cmds_CXX="$ltdll_cmds"
12595
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12598
link_all_deplibs_CXX=no
12601
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12605
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12606
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12607
test "$ld_shlibs_CXX" = no && can_build_shared=no
12609
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12610
if test "$GCC" = yes; then
12611
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12615
# Do we need to explicitly link libc?
12617
case "x$archive_cmds_need_lc_CXX" in
12619
# Assume -lc should be added
12620
archive_cmds_need_lc_CXX=yes
12622
if test "$enable_shared" = yes && test "$GCC" = yes; then
12623
case $archive_cmds_CXX in
12625
# FIXME: we may have to deal with multi-command sequences.
12628
# Test whether the compiler implicitly links with -lc since on some
12629
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12630
# to ld, don't add -lc before -lgcc.
12631
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12632
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12634
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637
(eval $ac_compile) 2>&5
12639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640
(exit $ac_status); } 2>conftest.err; then
12643
libobjs=conftest.$ac_objext
12645
wl=$lt_prog_compiler_wl_CXX
12651
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12652
allow_undefined_flag_CXX=
12653
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12654
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
(exit $ac_status); }
12659
archive_cmds_need_lc_CXX=no
12661
archive_cmds_need_lc_CXX=yes
12663
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12665
cat conftest.err 1>&5
12668
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12669
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12676
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12677
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12678
library_names_spec=
12679
libname_spec='lib$name'
12683
postuninstall_cmds=
12687
shlibpath_overrides_runpath=unknown
12689
dynamic_linker="$host_os ld.so"
12690
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12691
if test "$GCC" = yes; then
12692
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12693
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12694
# if the path contains ";" then we assume it to be the separator
12695
# otherwise default to the standard path separator (i.e. ":") - it is
12696
# assumed that no part of a normal pathname contains ";" but that should
12697
# okay in the real world where ";" in dirpaths is itself problematic.
12698
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12700
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12703
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12705
need_lib_prefix=unknown
12706
hardcode_into_libs=no
12708
# when you set need_version to no, make sure it does not cause -set_version
12709
# flags to be left without arguments
12710
need_version=unknown
12715
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12716
shlibpath_var=LIBPATH
12718
# AIX 3 has no versioning support, so we append a major version to the name.
12719
soname_spec='${libname}${release}${shared_ext}$major'
12726
hardcode_into_libs=yes
12727
if test "$host_cpu" = ia64; then
12728
# AIX 5 supports IA64
12729
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12730
shlibpath_var=LD_LIBRARY_PATH
12732
# With GCC up to 2.95.x, collect2 would create an import file
12733
# for dependence libraries. The import file would start with
12734
# the line `#! .'. This would cause the generated library to
12735
# depend on `.', always an invalid library. This was fixed in
12736
# development snapshots of GCC prior to 3.0.
12738
aix4 | aix4.[01] | aix4.[01].*)
12739
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12741
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12744
can_build_shared=no
12748
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12749
# soname into executable. Probably we can add versioning support to
12750
# collect2, so additional links can be useful in future.
12751
if test "$aix_use_runtimelinking" = yes; then
12752
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12753
# instead of lib<name>.a to let people know that these are not
12754
# typical AIX shared libraries.
12755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12757
# We preserve .a as extension for shared libraries through AIX4.2
12758
# and later when we are not doing run time linking.
12759
library_names_spec='${libname}${release}.a $libname.a'
12760
soname_spec='${libname}${release}${shared_ext}$major'
12762
shlibpath_var=LIBPATH
12767
library_names_spec='$libname.ixlibrary $libname.a'
12768
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12769
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12773
library_names_spec='${libname}${shared_ext}'
12774
dynamic_linker="$host_os ld.so"
12775
shlibpath_var=LIBRARY_PATH
12781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782
soname_spec='${libname}${release}${shared_ext}$major'
12783
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12784
shlibpath_var=LD_LIBRARY_PATH
12785
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12786
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12787
# the default ld.so.conf also contains /usr/contrib/lib and
12788
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12789
# libtool to hard-code these into programs
12792
cygwin* | mingw* | pw32*)
12793
version_type=windows
12798
case $GCC,$host_os in
12799
yes,cygwin* | yes,mingw* | yes,pw32*)
12800
library_names_spec='$libname.dll.a'
12801
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12802
postinstall_cmds='base_file=`basename \${file}`~
12803
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12804
dldir=$destdir/`dirname \$dlpath`~
12805
test -d \$dldir || mkdir -p \$dldir~
12806
$install_prog $dir/$dlname \$dldir/$dlname'
12807
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12808
dlpath=$dir/\$dldll~
12810
shlibpath_overrides_runpath=yes
12814
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12815
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12816
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12819
# MinGW DLLs use traditional 'lib' prefix
12820
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12822
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12823
# It is most probably a Windows format PATH printed by
12824
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12825
# path with ; separators, and with drive letters. We can handle the
12826
# drive letters (cygwin fileutils understands them), so leave them,
12827
# especially as we might pass files found there to a mingw objdump,
12828
# which wouldn't understand a cygwinified path. Ahh.
12829
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12831
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12835
# pw32 DLLs use 'pw' prefix rather than 'lib'
12836
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12842
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12845
dynamic_linker='Win32 ld.exe'
12846
# FIXME: first we should search . and the directory the executable is in
12850
darwin* | rhapsody*)
12851
dynamic_linker="$host_os dyld"
12852
version_type=darwin
12855
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12856
soname_spec='${libname}${release}${major}$shared_ext'
12857
shlibpath_overrides_runpath=yes
12858
shlibpath_var=DYLD_LIBRARY_PATH
12859
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12860
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12861
if test "$GCC" = yes; then
12862
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"`
12864
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12866
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12874
soname_spec='${libname}${release}${shared_ext}$major'
12875
shlibpath_var=LD_LIBRARY_PATH
12886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12887
soname_spec='${libname}${release}${shared_ext}$major'
12888
shlibpath_var=LD_LIBRARY_PATH
12889
shlibpath_overrides_runpath=no
12890
hardcode_into_libs=yes
12891
dynamic_linker='GNU ld.so'
12895
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12896
version_type=freebsd-$objformat
12897
case $version_type in
12899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12904
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12908
shlibpath_var=LD_LIBRARY_PATH
12911
shlibpath_overrides_runpath=yes
12913
freebsd3.01* | freebsdelf3.01*)
12914
shlibpath_overrides_runpath=yes
12915
hardcode_into_libs=yes
12918
shlibpath_overrides_runpath=no
12919
hardcode_into_libs=yes
12928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12929
soname_spec='${libname}${release}${shared_ext}$major'
12930
shlibpath_var=LD_LIBRARY_PATH
12931
hardcode_into_libs=yes
12934
hpux9* | hpux10* | hpux11*)
12935
# Give a soname corresponding to the major version so that dld.sl refuses to
12936
# link against other versions.
12940
case "$host_cpu" in
12943
hardcode_into_libs=yes
12944
dynamic_linker="$host_os dld.so"
12945
shlibpath_var=LD_LIBRARY_PATH
12946
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12948
soname_spec='${libname}${release}${shared_ext}$major'
12949
if test "X$HPUX_IA64_MODE" = X32; then
12950
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12952
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12954
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12958
hardcode_into_libs=yes
12959
dynamic_linker="$host_os dld.sl"
12960
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12961
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12963
soname_spec='${libname}${release}${shared_ext}$major'
12964
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12965
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12969
dynamic_linker="$host_os dld.sl"
12970
shlibpath_var=SHLIB_PATH
12971
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973
soname_spec='${libname}${release}${shared_ext}$major'
12976
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12977
postinstall_cmds='chmod 555 $lib'
12980
irix5* | irix6* | nonstopux*)
12982
nonstopux*) version_type=nonstopux ;;
12984
if test "$lt_cv_prog_gnu_ld" = yes; then
12992
soname_spec='${libname}${release}${shared_ext}$major'
12993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12995
irix5* | nonstopux*)
12996
libsuff= shlibsuff=
12999
case $LD in # libtool.m4 will add one of these switches to LD
13000
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13001
libsuff= shlibsuff= libmagic=32-bit;;
13002
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13003
libsuff=32 shlibsuff=N32 libmagic=N32;;
13004
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13005
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13006
*) libsuff= shlibsuff= libmagic=never-match;;
13010
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13011
shlibpath_overrides_runpath=no
13012
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13013
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13014
hardcode_into_libs=yes
13017
# No shared lib support for Linux oldld, aout, or coff.
13018
linux*oldld* | linux*aout* | linux*coff*)
13022
# This must be Linux ELF.
13027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028
soname_spec='${libname}${release}${shared_ext}$major'
13029
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13030
shlibpath_var=LD_LIBRARY_PATH
13031
shlibpath_overrides_runpath=no
13032
# This implies no fast_install, which is unacceptable.
13033
# Some rework will be needed to allow for fast_install
13034
# before this can be enabled.
13035
hardcode_into_libs=yes
13037
# Append ld.so.conf contents to the search path
13038
if test -f /etc/ld.so.conf; then
13039
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13040
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13043
# We used to test for /lib/ld.so.1 and disable shared libraries on
13044
# powerpc, because MkLinux only supported shared libraries with the
13045
# GNU dynamic linker. Since this was broken with cross compilers,
13046
# most powerpc-linux boxes support dynamic linking these days and
13047
# people can always --disable-shared, the test was removed, and we
13048
# assume the GNU/Linux dynamic linker is in use.
13049
dynamic_linker='GNU/Linux ld.so'
13056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13057
soname_spec='${libname}${release}${shared_ext}$major'
13058
shlibpath_var=LD_LIBRARY_PATH
13059
shlibpath_overrides_runpath=no
13060
hardcode_into_libs=yes
13061
dynamic_linker='NetBSD ld.elf_so'
13068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13069
soname_spec='${libname}${release}${shared_ext}$major'
13070
shlibpath_var=LD_LIBRARY_PATH
13071
shlibpath_overrides_runpath=no
13072
hardcode_into_libs=yes
13073
dynamic_linker='GNU ld.so'
13080
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13082
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13083
dynamic_linker='NetBSD (a.out) ld.so'
13085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086
soname_spec='${libname}${release}${shared_ext}$major'
13087
dynamic_linker='NetBSD ld.elf_so'
13089
shlibpath_var=LD_LIBRARY_PATH
13090
shlibpath_overrides_runpath=yes
13091
hardcode_into_libs=yes
13096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097
shlibpath_var=LD_LIBRARY_PATH
13098
shlibpath_overrides_runpath=yes
13105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13106
soname_spec='${libname}${release}${shared_ext}$major'
13107
shlibpath_var=LD_LIBRARY_PATH
13108
shlibpath_overrides_runpath=yes
13115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117
shlibpath_var=LD_LIBRARY_PATH
13118
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13120
openbsd2.[89] | openbsd2.[89].*)
13121
shlibpath_overrides_runpath=no
13124
shlibpath_overrides_runpath=yes
13128
shlibpath_overrides_runpath=yes
13133
libname_spec='$name'
13136
library_names_spec='$libname${shared_ext} $libname.a'
13137
dynamic_linker='OS/2 ld.exe'
13138
shlibpath_var=LIBPATH
13141
osf3* | osf4* | osf5*)
13145
soname_spec='${libname}${release}${shared_ext}$major'
13146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147
shlibpath_var=LD_LIBRARY_PATH
13148
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13149
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13154
soname_spec='${libname}${release}${shared_ext}$major'
13155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156
shlibpath_var=LD_LIBRARY_PATH
13163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164
soname_spec='${libname}${release}${shared_ext}$major'
13165
shlibpath_var=LD_LIBRARY_PATH
13166
shlibpath_overrides_runpath=yes
13167
hardcode_into_libs=yes
13168
# ldd complains unless libraries are executable
13169
postinstall_cmds='chmod +x $lib'
13174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13175
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13176
shlibpath_var=LD_LIBRARY_PATH
13177
shlibpath_overrides_runpath=yes
13178
if test "$with_gnu_ld" = yes; then
13184
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187
soname_spec='${libname}${release}${shared_ext}$major'
13188
shlibpath_var=LD_LIBRARY_PATH
13189
case $host_vendor in
13191
shlibpath_overrides_runpath=no
13193
export_dynamic_flag_spec='${wl}-Blargedynsym'
13194
runpath_var=LD_RUN_PATH
13202
shlibpath_overrides_runpath=no
13203
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13209
if test -d /usr/nec ;then
13211
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13212
soname_spec='$libname${shared_ext}.$major'
13213
shlibpath_var=LD_LIBRARY_PATH
13219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220
soname_spec='${libname}${release}${shared_ext}$major'
13221
shlibpath_var=LD_LIBRARY_PATH
13228
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13229
echo "${ECHO_T}$dynamic_linker" >&6; }
13230
test "$dynamic_linker" = no && can_build_shared=no
13232
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13233
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13234
hardcode_action_CXX=
13235
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13236
test -n "$runpath_var CXX" || \
13237
test "X$hardcode_automatic_CXX"="Xyes" ; then
13239
# We can hardcode non-existant directories.
13240
if test "$hardcode_direct_CXX" != no &&
13241
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13242
# have to relink, otherwise we might link with an installed library
13243
# when we should be linking with a yet-to-be-installed one
13244
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13245
test "$hardcode_minus_L_CXX" != no; then
13246
# Linking always hardcodes the temporary library directory.
13247
hardcode_action_CXX=relink
13249
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13250
hardcode_action_CXX=immediate
13253
# We cannot hardcode anything, or else we can only hardcode existing
13255
hardcode_action_CXX=unsupported
13257
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13258
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13260
if test "$hardcode_action_CXX" = relink; then
13261
# Fast installation is not supported
13262
enable_fast_install=no
13263
elif test "$shlibpath_overrides_runpath" = yes ||
13264
test "$enable_shared" = no; then
13265
# Fast installation is not necessary
13266
enable_fast_install=needless
13271
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13272
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13273
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13274
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13275
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13276
{ echo "$as_me:$LINENO: result: yes" >&5
13277
echo "${ECHO_T}yes" >&6; }
13279
# FIXME - insert some real tests, host_os isn't really good enough
13282
if test -n "$STRIP" ; then
13283
striplib="$STRIP -x"
13284
{ echo "$as_me:$LINENO: result: yes" >&5
13285
echo "${ECHO_T}yes" >&6; }
13287
{ echo "$as_me:$LINENO: result: no" >&5
13288
echo "${ECHO_T}no" >&6; }
13292
{ echo "$as_me:$LINENO: result: no" >&5
13293
echo "${ECHO_T}no" >&6; }
13298
if test "x$enable_dlopen" != xyes; then
13299
enable_dlopen=unknown
13300
enable_dlopen_self=unknown
13301
enable_dlopen_self_static=unknown
13308
lt_cv_dlopen="load_add_on"
13310
lt_cv_dlopen_self=yes
13314
lt_cv_dlopen="LoadLibrary"
13319
lt_cv_dlopen="dlopen"
13324
# if libdl is installed we need to link against it
13325
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13326
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13327
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13328
echo $ECHO_N "(cached) $ECHO_C" >&6
13330
ac_check_lib_save_LIBS=$LIBS
13332
cat >conftest.$ac_ext <<_ACEOF
13335
cat confdefs.h >>conftest.$ac_ext
13336
cat >>conftest.$ac_ext <<_ACEOF
13337
/* end confdefs.h. */
13339
/* Override any GCC internal prototype to avoid an error.
13340
Use char because int might match the return type of a GCC
13341
builtin and then its argument prototype would still apply. */
13354
rm -f conftest.$ac_objext conftest$ac_exeext
13355
if { (ac_try="$ac_link"
13356
case "(($ac_try" in
13357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358
*) ac_try_echo=$ac_try;;
13360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361
(eval "$ac_link") 2>conftest.er1
13363
grep -v '^ *+' conftest.er1 >conftest.err
13365
cat conftest.err >&5
13366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367
(exit $ac_status); } && {
13368
test -z "$ac_cxx_werror_flag" ||
13369
test ! -s conftest.err
13370
} && test -s conftest$ac_exeext &&
13371
$as_test_x conftest$ac_exeext; then
13372
ac_cv_lib_dl_dlopen=yes
13374
echo "$as_me: failed program was:" >&5
13375
sed 's/^/| /' conftest.$ac_ext >&5
13377
ac_cv_lib_dl_dlopen=no
13380
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381
conftest$ac_exeext conftest.$ac_ext
13382
LIBS=$ac_check_lib_save_LIBS
13384
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13385
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13386
if test $ac_cv_lib_dl_dlopen = yes; then
13387
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13390
lt_cv_dlopen="dyld"
13392
lt_cv_dlopen_self=yes
13399
{ echo "$as_me:$LINENO: checking for shl_load" >&5
13400
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13401
if test "${ac_cv_func_shl_load+set}" = set; then
13402
echo $ECHO_N "(cached) $ECHO_C" >&6
13404
cat >conftest.$ac_ext <<_ACEOF
13407
cat confdefs.h >>conftest.$ac_ext
13408
cat >>conftest.$ac_ext <<_ACEOF
13409
/* end confdefs.h. */
13410
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13411
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13412
#define shl_load innocuous_shl_load
13414
/* System header to define __stub macros and hopefully few prototypes,
13415
which can conflict with char shl_load (); below.
13416
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13417
<limits.h> exists even on freestanding compilers. */
13420
# include <limits.h>
13422
# include <assert.h>
13427
/* Override any GCC internal prototype to avoid an error.
13428
Use char because int might match the return type of a GCC
13429
builtin and then its argument prototype would still apply. */
13434
/* The GNU C library defines this for functions which it implements
13435
to always fail with ENOSYS. Some functions are actually named
13436
something starting with __ and the normal name is an alias. */
13437
#if defined __stub_shl_load || defined __stub___shl_load
13444
return shl_load ();
13449
rm -f conftest.$ac_objext conftest$ac_exeext
13450
if { (ac_try="$ac_link"
13451
case "(($ac_try" in
13452
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453
*) ac_try_echo=$ac_try;;
13455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456
(eval "$ac_link") 2>conftest.er1
13458
grep -v '^ *+' conftest.er1 >conftest.err
13460
cat conftest.err >&5
13461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462
(exit $ac_status); } && {
13463
test -z "$ac_cxx_werror_flag" ||
13464
test ! -s conftest.err
13465
} && test -s conftest$ac_exeext &&
13466
$as_test_x conftest$ac_exeext; then
13467
ac_cv_func_shl_load=yes
13469
echo "$as_me: failed program was:" >&5
13470
sed 's/^/| /' conftest.$ac_ext >&5
13472
ac_cv_func_shl_load=no
13475
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13476
conftest$ac_exeext conftest.$ac_ext
13478
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13479
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13480
if test $ac_cv_func_shl_load = yes; then
13481
lt_cv_dlopen="shl_load"
13483
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13484
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13485
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13486
echo $ECHO_N "(cached) $ECHO_C" >&6
13488
ac_check_lib_save_LIBS=$LIBS
13490
cat >conftest.$ac_ext <<_ACEOF
13493
cat confdefs.h >>conftest.$ac_ext
13494
cat >>conftest.$ac_ext <<_ACEOF
13495
/* end confdefs.h. */
13497
/* Override any GCC internal prototype to avoid an error.
13498
Use char because int might match the return type of a GCC
13499
builtin and then its argument prototype would still apply. */
13507
return shl_load ();
13512
rm -f conftest.$ac_objext conftest$ac_exeext
13513
if { (ac_try="$ac_link"
13514
case "(($ac_try" in
13515
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516
*) ac_try_echo=$ac_try;;
13518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519
(eval "$ac_link") 2>conftest.er1
13521
grep -v '^ *+' conftest.er1 >conftest.err
13523
cat conftest.err >&5
13524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
(exit $ac_status); } && {
13526
test -z "$ac_cxx_werror_flag" ||
13527
test ! -s conftest.err
13528
} && test -s conftest$ac_exeext &&
13529
$as_test_x conftest$ac_exeext; then
13530
ac_cv_lib_dld_shl_load=yes
13532
echo "$as_me: failed program was:" >&5
13533
sed 's/^/| /' conftest.$ac_ext >&5
13535
ac_cv_lib_dld_shl_load=no
13538
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13539
conftest$ac_exeext conftest.$ac_ext
13540
LIBS=$ac_check_lib_save_LIBS
13542
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13543
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13544
if test $ac_cv_lib_dld_shl_load = yes; then
13545
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13547
{ echo "$as_me:$LINENO: checking for dlopen" >&5
13548
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13549
if test "${ac_cv_func_dlopen+set}" = set; then
13550
echo $ECHO_N "(cached) $ECHO_C" >&6
13552
cat >conftest.$ac_ext <<_ACEOF
13555
cat confdefs.h >>conftest.$ac_ext
13556
cat >>conftest.$ac_ext <<_ACEOF
13557
/* end confdefs.h. */
13558
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13559
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13560
#define dlopen innocuous_dlopen
13562
/* System header to define __stub macros and hopefully few prototypes,
13563
which can conflict with char dlopen (); below.
13564
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13565
<limits.h> exists even on freestanding compilers. */
13568
# include <limits.h>
13570
# include <assert.h>
13575
/* Override any GCC internal prototype to avoid an error.
13576
Use char because int might match the return type of a GCC
13577
builtin and then its argument prototype would still apply. */
13582
/* The GNU C library defines this for functions which it implements
13583
to always fail with ENOSYS. Some functions are actually named
13584
something starting with __ and the normal name is an alias. */
13585
#if defined __stub_dlopen || defined __stub___dlopen
13597
rm -f conftest.$ac_objext conftest$ac_exeext
13598
if { (ac_try="$ac_link"
13599
case "(($ac_try" in
13600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601
*) ac_try_echo=$ac_try;;
13603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604
(eval "$ac_link") 2>conftest.er1
13606
grep -v '^ *+' conftest.er1 >conftest.err
13608
cat conftest.err >&5
13609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610
(exit $ac_status); } && {
13611
test -z "$ac_cxx_werror_flag" ||
13612
test ! -s conftest.err
13613
} && test -s conftest$ac_exeext &&
13614
$as_test_x conftest$ac_exeext; then
13615
ac_cv_func_dlopen=yes
13617
echo "$as_me: failed program was:" >&5
13618
sed 's/^/| /' conftest.$ac_ext >&5
13620
ac_cv_func_dlopen=no
13623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624
conftest$ac_exeext conftest.$ac_ext
13626
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13627
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13628
if test $ac_cv_func_dlopen = yes; then
13629
lt_cv_dlopen="dlopen"
13631
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13632
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13633
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13634
echo $ECHO_N "(cached) $ECHO_C" >&6
13636
ac_check_lib_save_LIBS=$LIBS
13638
cat >conftest.$ac_ext <<_ACEOF
13641
cat confdefs.h >>conftest.$ac_ext
13642
cat >>conftest.$ac_ext <<_ACEOF
13643
/* end confdefs.h. */
13645
/* Override any GCC internal prototype to avoid an error.
13646
Use char because int might match the return type of a GCC
13647
builtin and then its argument prototype would still apply. */
13660
rm -f conftest.$ac_objext conftest$ac_exeext
13661
if { (ac_try="$ac_link"
13662
case "(($ac_try" in
13663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664
*) ac_try_echo=$ac_try;;
13666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667
(eval "$ac_link") 2>conftest.er1
13669
grep -v '^ *+' conftest.er1 >conftest.err
13671
cat conftest.err >&5
13672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673
(exit $ac_status); } && {
13674
test -z "$ac_cxx_werror_flag" ||
13675
test ! -s conftest.err
13676
} && test -s conftest$ac_exeext &&
13677
$as_test_x conftest$ac_exeext; then
13678
ac_cv_lib_dl_dlopen=yes
13680
echo "$as_me: failed program was:" >&5
13681
sed 's/^/| /' conftest.$ac_ext >&5
13683
ac_cv_lib_dl_dlopen=no
13686
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13687
conftest$ac_exeext conftest.$ac_ext
13688
LIBS=$ac_check_lib_save_LIBS
13690
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13691
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13692
if test $ac_cv_lib_dl_dlopen = yes; then
13693
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13695
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13696
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13697
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13698
echo $ECHO_N "(cached) $ECHO_C" >&6
13700
ac_check_lib_save_LIBS=$LIBS
13701
LIBS="-lsvld $LIBS"
13702
cat >conftest.$ac_ext <<_ACEOF
13705
cat confdefs.h >>conftest.$ac_ext
13706
cat >>conftest.$ac_ext <<_ACEOF
13707
/* end confdefs.h. */
13709
/* Override any GCC internal prototype to avoid an error.
13710
Use char because int might match the return type of a GCC
13711
builtin and then its argument prototype would still apply. */
13724
rm -f conftest.$ac_objext conftest$ac_exeext
13725
if { (ac_try="$ac_link"
13726
case "(($ac_try" in
13727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728
*) ac_try_echo=$ac_try;;
13730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731
(eval "$ac_link") 2>conftest.er1
13733
grep -v '^ *+' conftest.er1 >conftest.err
13735
cat conftest.err >&5
13736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
(exit $ac_status); } && {
13738
test -z "$ac_cxx_werror_flag" ||
13739
test ! -s conftest.err
13740
} && test -s conftest$ac_exeext &&
13741
$as_test_x conftest$ac_exeext; then
13742
ac_cv_lib_svld_dlopen=yes
13744
echo "$as_me: failed program was:" >&5
13745
sed 's/^/| /' conftest.$ac_ext >&5
13747
ac_cv_lib_svld_dlopen=no
13750
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13751
conftest$ac_exeext conftest.$ac_ext
13752
LIBS=$ac_check_lib_save_LIBS
13754
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13755
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13756
if test $ac_cv_lib_svld_dlopen = yes; then
13757
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13759
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13760
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13761
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13762
echo $ECHO_N "(cached) $ECHO_C" >&6
13764
ac_check_lib_save_LIBS=$LIBS
13766
cat >conftest.$ac_ext <<_ACEOF
13769
cat confdefs.h >>conftest.$ac_ext
13770
cat >>conftest.$ac_ext <<_ACEOF
13771
/* end confdefs.h. */
13773
/* Override any GCC internal prototype to avoid an error.
13774
Use char because int might match the return type of a GCC
13775
builtin and then its argument prototype would still apply. */
13783
return dld_link ();
13788
rm -f conftest.$ac_objext conftest$ac_exeext
13789
if { (ac_try="$ac_link"
13790
case "(($ac_try" in
13791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792
*) ac_try_echo=$ac_try;;
13794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795
(eval "$ac_link") 2>conftest.er1
13797
grep -v '^ *+' conftest.er1 >conftest.err
13799
cat conftest.err >&5
13800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801
(exit $ac_status); } && {
13802
test -z "$ac_cxx_werror_flag" ||
13803
test ! -s conftest.err
13804
} && test -s conftest$ac_exeext &&
13805
$as_test_x conftest$ac_exeext; then
13806
ac_cv_lib_dld_dld_link=yes
13808
echo "$as_me: failed program was:" >&5
13809
sed 's/^/| /' conftest.$ac_ext >&5
13811
ac_cv_lib_dld_dld_link=no
13814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13815
conftest$ac_exeext conftest.$ac_ext
13816
LIBS=$ac_check_lib_save_LIBS
13818
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13819
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13820
if test $ac_cv_lib_dld_dld_link = yes; then
13821
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13842
if test "x$lt_cv_dlopen" != xno; then
13848
case $lt_cv_dlopen in
13850
save_CPPFLAGS="$CPPFLAGS"
13851
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13853
save_LDFLAGS="$LDFLAGS"
13854
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13857
LIBS="$lt_cv_dlopen_libs $LIBS"
13859
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13860
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13861
if test "${lt_cv_dlopen_self+set}" = set; then
13862
echo $ECHO_N "(cached) $ECHO_C" >&6
13864
if test "$cross_compiling" = yes; then :
13865
lt_cv_dlopen_self=cross
13867
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13868
lt_status=$lt_dlunknown
13869
cat > conftest.$ac_ext <<EOF
13870
#line 13870 "configure"
13871
#include "confdefs.h"
13880
# define LT_DLGLOBAL RTLD_GLOBAL
13883
# define LT_DLGLOBAL DL_GLOBAL
13885
# define LT_DLGLOBAL 0
13889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13890
find out it does not work in some platform. */
13891
#ifndef LT_DLLAZY_OR_NOW
13893
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13896
# define LT_DLLAZY_OR_NOW DL_LAZY
13899
# define LT_DLLAZY_OR_NOW RTLD_NOW
13902
# define LT_DLLAZY_OR_NOW DL_NOW
13904
# define LT_DLLAZY_OR_NOW 0
13912
extern "C" void exit (int);
13915
void fnord() { int i=42;}
13918
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13919
int status = $lt_dlunknown;
13923
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13924
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13925
/* dlclose (self); */
13931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932
(eval $ac_link) 2>&5
13934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13936
(./conftest; exit; ) 2>/dev/null
13938
case x$lt_status in
13939
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13940
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13941
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13944
# compilation failed
13945
lt_cv_dlopen_self=no
13952
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13953
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13955
if test "x$lt_cv_dlopen_self" = xyes; then
13956
LDFLAGS="$LDFLAGS $link_static_flag"
13957
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13958
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13959
if test "${lt_cv_dlopen_self_static+set}" = set; then
13960
echo $ECHO_N "(cached) $ECHO_C" >&6
13962
if test "$cross_compiling" = yes; then :
13963
lt_cv_dlopen_self_static=cross
13965
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13966
lt_status=$lt_dlunknown
13967
cat > conftest.$ac_ext <<EOF
13968
#line 13968 "configure"
13969
#include "confdefs.h"
13978
# define LT_DLGLOBAL RTLD_GLOBAL
13981
# define LT_DLGLOBAL DL_GLOBAL
13983
# define LT_DLGLOBAL 0
13987
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13988
find out it does not work in some platform. */
13989
#ifndef LT_DLLAZY_OR_NOW
13991
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13994
# define LT_DLLAZY_OR_NOW DL_LAZY
13997
# define LT_DLLAZY_OR_NOW RTLD_NOW
14000
# define LT_DLLAZY_OR_NOW DL_NOW
14002
# define LT_DLLAZY_OR_NOW 0
14010
extern "C" void exit (int);
14013
void fnord() { int i=42;}
14016
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14017
int status = $lt_dlunknown;
14021
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14022
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14023
/* dlclose (self); */
14029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14030
(eval $ac_link) 2>&5
14032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14034
(./conftest; exit; ) 2>/dev/null
14036
case x$lt_status in
14037
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14038
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14039
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14042
# compilation failed
14043
lt_cv_dlopen_self_static=no
14050
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14051
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14054
CPPFLAGS="$save_CPPFLAGS"
14055
LDFLAGS="$save_LDFLAGS"
14060
case $lt_cv_dlopen_self in
14061
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14062
*) enable_dlopen_self=unknown ;;
14065
case $lt_cv_dlopen_self_static in
14066
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14067
*) enable_dlopen_self_static=unknown ;;
14072
# The else clause should only fire when bootstrapping the
14073
# libtool distribution, otherwise you forgot to ship ltmain.sh
14074
# with your package, and you will get complaints that there are
14075
# no rules to generate ltmain.sh.
14076
if test -f "$ltmain"; then
14077
# See if we are running on zsh, and set the options which allow our commands through
14078
# without removal of \ escapes.
14079
if test -n "${ZSH_VERSION+set}" ; then
14080
setopt NO_GLOB_SUBST
14082
# Now quote all the things that may contain metacharacters while being
14083
# careful not to overquote the AC_SUBSTed values. We take copies of the
14084
# variables and quote the copies for generation of the libtool script.
14085
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14087
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14088
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14089
deplibs_check_method reload_flag reload_cmds need_locks \
14090
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14091
lt_cv_sys_global_symbol_to_c_name_address \
14092
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14093
old_postinstall_cmds old_postuninstall_cmds \
14097
lt_prog_compiler_wl_CXX \
14098
lt_prog_compiler_pic_CXX \
14099
lt_prog_compiler_static_CXX \
14100
lt_prog_compiler_no_builtin_flag_CXX \
14101
export_dynamic_flag_spec_CXX \
14102
thread_safe_flag_spec_CXX \
14103
whole_archive_flag_spec_CXX \
14104
enable_shared_with_static_runtimes_CXX \
14105
old_archive_cmds_CXX \
14106
old_archive_from_new_cmds_CXX \
14107
predep_objects_CXX \
14108
postdep_objects_CXX \
14111
compiler_lib_search_path_CXX \
14113
archive_expsym_cmds_CXX \
14114
postinstall_cmds_CXX \
14115
postuninstall_cmds_CXX \
14116
old_archive_from_expsyms_cmds_CXX \
14117
allow_undefined_flag_CXX \
14118
no_undefined_flag_CXX \
14119
export_symbols_cmds_CXX \
14120
hardcode_libdir_flag_spec_CXX \
14121
hardcode_libdir_flag_spec_ld_CXX \
14122
hardcode_libdir_separator_CXX \
14123
hardcode_automatic_CXX \
14125
module_expsym_cmds_CXX \
14126
lt_cv_prog_compiler_c_o_CXX \
14127
exclude_expsyms_CXX \
14128
include_expsyms_CXX; do
14131
old_archive_cmds_CXX | \
14132
old_archive_from_new_cmds_CXX | \
14133
archive_cmds_CXX | \
14134
archive_expsym_cmds_CXX | \
14135
module_cmds_CXX | \
14136
module_expsym_cmds_CXX | \
14137
old_archive_from_expsyms_cmds_CXX | \
14138
export_symbols_cmds_CXX | \
14139
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14140
postinstall_cmds | postuninstall_cmds | \
14141
old_postinstall_cmds | old_postuninstall_cmds | \
14142
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14143
# Double-quote double-evaled strings.
14144
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14147
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14153
*'\$0 --fallback-echo"')
14154
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14160
cat <<__EOF__ >> "$cfgfile"
14161
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14163
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14165
# Shell to use when invoking shell scripts.
14168
# Whether or not to build shared libraries.
14169
build_libtool_libs=$enable_shared
14171
# Whether or not to build static libraries.
14172
build_old_libs=$enable_static
14174
# Whether or not to add -lc for building shared libraries.
14175
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14177
# Whether or not to disallow shared libs when runtime libs are static
14178
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14180
# Whether or not to optimize for fast installation.
14181
fast_install=$enable_fast_install
14184
host_alias=$host_alias
14187
# An echo program that does not interpret backslashes.
14192
AR_FLAGS=$lt_AR_FLAGS
14197
# A language-specific compiler.
14198
CC=$lt_compiler_CXX
14200
# Is the compiler the GNU C compiler?
14206
# The linker used to build libraries.
14209
# Whether we need hard or soft links.
14212
# A BSD-compatible nm program.
14215
# A symbol stripping program
14218
# Used to examine libraries when file_magic_cmd begins "file"
14219
MAGIC_CMD=$MAGIC_CMD
14221
# Used on cygwin: DLL creation program.
14224
# Used on cygwin: object dumper.
14227
# Used on cygwin: assembler.
14230
# The name of the directory that contains temporary libtool files.
14233
# How to create reloadable object files.
14234
reload_flag=$lt_reload_flag
14235
reload_cmds=$lt_reload_cmds
14237
# How to pass a linker flag through the compiler.
14238
wl=$lt_lt_prog_compiler_wl_CXX
14240
# Object file suffix (normally "o").
14241
objext="$ac_objext"
14243
# Old archive suffix (normally "a").
14246
# Shared library suffix (normally ".so").
14247
shrext_cmds='$shrext_cmds'
14249
# Executable file suffix (normally "").
14252
# Additional compiler flags for building library objects.
14253
pic_flag=$lt_lt_prog_compiler_pic_CXX
14256
# What is the maximum length of a command?
14257
max_cmd_len=$lt_cv_sys_max_cmd_len
14259
# Does compiler simultaneously support -c and -o options?
14260
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14262
# Must we lock files when doing compilation ?
14263
need_locks=$lt_need_locks
14265
# Do we need the lib prefix for modules?
14266
need_lib_prefix=$need_lib_prefix
14268
# Do we need a version for libraries?
14269
need_version=$need_version
14271
# Whether dlopen is supported.
14272
dlopen_support=$enable_dlopen
14274
# Whether dlopen of programs is supported.
14275
dlopen_self=$enable_dlopen_self
14277
# Whether dlopen of statically linked programs is supported.
14278
dlopen_self_static=$enable_dlopen_self_static
14280
# Compiler flag to prevent dynamic linking.
14281
link_static_flag=$lt_lt_prog_compiler_static_CXX
14283
# Compiler flag to turn off builtin functions.
14284
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14286
# Compiler flag to allow reflexive dlopens.
14287
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14289
# Compiler flag to generate shared objects directly from archives.
14290
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14292
# Compiler flag to generate thread-safe objects.
14293
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14295
# Library versioning type.
14296
version_type=$version_type
14298
# Format of library name prefix.
14299
libname_spec=$lt_libname_spec
14301
# List of archive names. First name is the real one, the rest are links.
14302
# The last name is the one that the linker finds with -lNAME.
14303
library_names_spec=$lt_library_names_spec
14305
# The coded name of the library, if different from the real name.
14306
soname_spec=$lt_soname_spec
14308
# Commands used to build and install an old-style archive.
14310
old_archive_cmds=$lt_old_archive_cmds_CXX
14311
old_postinstall_cmds=$lt_old_postinstall_cmds
14312
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14314
# Create an old-style archive from a shared archive.
14315
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14317
# Create a temporary old-style archive to link instead of a shared archive.
14318
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14320
# Commands used to build and install a shared archive.
14321
archive_cmds=$lt_archive_cmds_CXX
14322
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14323
postinstall_cmds=$lt_postinstall_cmds
14324
postuninstall_cmds=$lt_postuninstall_cmds
14326
# Commands used to build a loadable module (assumed same as above if empty)
14327
module_cmds=$lt_module_cmds_CXX
14328
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14330
# Commands to strip libraries.
14331
old_striplib=$lt_old_striplib
14332
striplib=$lt_striplib
14334
# Dependencies to place before the objects being linked to create a
14336
predep_objects=$lt_predep_objects_CXX
14338
# Dependencies to place after the objects being linked to create a
14340
postdep_objects=$lt_postdep_objects_CXX
14342
# Dependencies to place before the objects being linked to create a
14344
predeps=$lt_predeps_CXX
14346
# Dependencies to place after the objects being linked to create a
14348
postdeps=$lt_postdeps_CXX
14350
# The library search path used internally by the compiler when linking
14351
# a shared library.
14352
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14354
# Method to check whether dependent libraries are shared objects.
14355
deplibs_check_method=$lt_deplibs_check_method
14357
# Command to use when deplibs_check_method == file_magic.
14358
file_magic_cmd=$lt_file_magic_cmd
14360
# Flag that allows shared libraries with undefined symbols to be built.
14361
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14363
# Flag that forces no undefined symbols.
14364
no_undefined_flag=$lt_no_undefined_flag_CXX
14366
# Commands used to finish a libtool library installation in a directory.
14367
finish_cmds=$lt_finish_cmds
14369
# Same as above, but a single script fragment to be evaled but not shown.
14370
finish_eval=$lt_finish_eval
14372
# Take the output of nm and produce a listing of raw symbols and C names.
14373
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14375
# Transform the output of nm in a proper C declaration
14376
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14378
# Transform the output of nm in a C name address pair
14379
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14381
# This is the shared library runtime path variable.
14382
runpath_var=$runpath_var
14384
# This is the shared library path variable.
14385
shlibpath_var=$shlibpath_var
14387
# Is shlibpath searched before the hard-coded library search path?
14388
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14390
# How to hardcode a shared library path into an executable.
14391
hardcode_action=$hardcode_action_CXX
14393
# Whether we should hardcode library paths into libraries.
14394
hardcode_into_libs=$hardcode_into_libs
14396
# Flag to hardcode \$libdir into a binary during linking.
14397
# This must work even if \$libdir does not exist.
14398
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14400
# If ld is used when linking, flag to hardcode \$libdir into
14401
# a binary during linking. This must work even if \$libdir does
14403
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14405
# Whether we need a single -rpath flag with a separated argument.
14406
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14408
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14409
# resulting binary.
14410
hardcode_direct=$hardcode_direct_CXX
14412
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14413
# resulting binary.
14414
hardcode_minus_L=$hardcode_minus_L_CXX
14416
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14417
# the resulting binary.
14418
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14420
# Set to yes if building a shared library automatically hardcodes DIR into the library
14421
# and all subsequent libraries and executables linked against it.
14422
hardcode_automatic=$hardcode_automatic_CXX
14424
# Variables whose values should be saved in libtool wrapper scripts and
14425
# restored at relink time.
14426
variables_saved_for_relink="$variables_saved_for_relink"
14428
# Whether libtool must link a program against all its dependency libraries.
14429
link_all_deplibs=$link_all_deplibs_CXX
14431
# Compile-time system search path for libraries
14432
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14434
# Run-time system search path for libraries
14435
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14437
# Fix the shell variable \$srcfile for the compiler.
14438
fix_srcfile_path="$fix_srcfile_path_CXX"
14440
# Set to yes if exported symbols are required.
14441
always_export_symbols=$always_export_symbols_CXX
14443
# The commands to list exported symbols.
14444
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14446
# The commands to extract the exported symbol list from a shared archive.
14447
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14449
# Symbols that should not be listed in the preloaded symbols.
14450
exclude_expsyms=$lt_exclude_expsyms_CXX
14452
# Symbols that must always be exported.
14453
include_expsyms=$lt_include_expsyms_CXX
14455
# ### END LIBTOOL TAG CONFIG: $tagname
14461
# If there is no Makefile yet, we rely on a make rule to execute
14462
# `config.status --recheck' to rerun these tests and create the
14463
# libtool script then.
14464
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14465
if test -f "$ltmain_in"; then
14466
test -f Makefile && make "$ltmain"
14472
ac_cpp='$CPP $CPPFLAGS'
14473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14481
with_gnu_ldcxx=$with_gnu_ld
14482
with_gnu_ld=$lt_save_with_gnu_ld
14483
lt_cv_path_LDCXX=$lt_cv_path_LD
14484
lt_cv_path_LD=$lt_save_path_LD
14485
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14486
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14494
if test -n "$F77" && test "X$F77" != "Xno"; then
14497
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14498
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14502
archive_cmds_need_lc_F77=no
14503
allow_undefined_flag_F77=
14504
always_export_symbols_F77=no
14505
archive_expsym_cmds_F77=
14506
export_dynamic_flag_spec_F77=
14507
hardcode_direct_F77=no
14508
hardcode_libdir_flag_spec_F77=
14509
hardcode_libdir_flag_spec_ld_F77=
14510
hardcode_libdir_separator_F77=
14511
hardcode_minus_L_F77=no
14512
hardcode_automatic_F77=no
14514
module_expsym_cmds_F77=
14515
link_all_deplibs_F77=unknown
14516
old_archive_cmds_F77=$old_archive_cmds
14517
no_undefined_flag_F77=
14518
whole_archive_flag_spec_F77=
14519
enable_shared_with_static_runtimes_F77=no
14521
# Source file extension for f77 test sources.
14524
# Object file extension for compiled f77 test sources.
14528
# Code to be used in simple compile tests
14529
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14531
# Code to be used in simple link tests
14532
lt_simple_link_test_code=" program t\n end\n"
14534
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14536
# If no C compiler was specified, use CC.
14539
# Allow CC to be a program name with arguments.
14543
# Allow CC to be a program name with arguments.
14548
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14550
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14551
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14552
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14553
echo "${ECHO_T}$can_build_shared" >&6; }
14555
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14556
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14557
test "$can_build_shared" = "no" && enable_shared=no
14559
# On AIX, shared libraries and static libraries use the same namespace, and
14560
# are all built from PIC.
14563
test "$enable_shared" = yes && enable_static=no
14564
if test -n "$RANLIB"; then
14565
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14566
postinstall_cmds='$RANLIB $lib'
14570
test "$enable_shared" = yes && enable_static=no
14573
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14574
echo "${ECHO_T}$enable_shared" >&6; }
14576
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14577
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14578
# Make sure either enable_shared or enable_static is yes.
14579
test "$enable_shared" = yes || enable_static=yes
14580
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14581
echo "${ECHO_T}$enable_static" >&6; }
14583
test "$ld_shlibs_F77" = no && can_build_shared=no
14588
lt_prog_compiler_wl_F77=
14589
lt_prog_compiler_pic_F77=
14590
lt_prog_compiler_static_F77=
14592
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14593
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14595
if test "$GCC" = yes; then
14596
lt_prog_compiler_wl_F77='-Wl,'
14597
lt_prog_compiler_static_F77='-static'
14601
# All AIX code is PIC.
14602
if test "$host_cpu" = ia64; then
14603
# AIX 5 now supports IA64 processor
14604
lt_prog_compiler_static_F77='-Bstatic'
14609
# FIXME: we need at least 68020 code to build shared libraries, but
14610
# adding the `-m68020' flag to GCC prevents building anything better,
14612
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14615
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14616
# PIC is the default for these OSes.
14619
mingw* | pw32* | os2*)
14620
# This hack is so that the source file can tell whether it is being
14621
# built for inclusion in a dll (and should export symbols for example).
14622
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14625
darwin* | rhapsody*)
14626
# PIC is the default on this platform
14627
# Common symbols not allowed in MH_DYLIB files
14628
lt_prog_compiler_pic_F77='-fno-common'
14632
# Just because we use GCC doesn't mean we suddenly get shared libraries
14633
# on systems that don't support them.
14634
lt_prog_compiler_can_build_shared_F77=no
14639
if test -d /usr/nec; then
14640
lt_prog_compiler_pic_F77=-Kconform_pic
14645
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14646
# not for PA HP-UX.
14647
case "$host_cpu" in
14652
lt_prog_compiler_pic_F77='-fPIC'
14658
lt_prog_compiler_pic_F77='-fPIC'
14662
# PORTME Check for flag to pass linker flags through the system compiler.
14665
lt_prog_compiler_wl_F77='-Wl,'
14666
if test "$host_cpu" = ia64; then
14667
# AIX 5 now supports IA64 processor
14668
lt_prog_compiler_static_F77='-Bstatic'
14670
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14674
mingw* | pw32* | os2*)
14675
# This hack is so that the source file can tell whether it is being
14676
# built for inclusion in a dll (and should export symbols for example).
14677
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14680
hpux9* | hpux10* | hpux11*)
14681
lt_prog_compiler_wl_F77='-Wl,'
14682
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683
# not for PA HP-UX.
14684
case "$host_cpu" in
14689
lt_prog_compiler_pic_F77='+Z'
14692
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14693
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14696
irix5* | irix6* | nonstopux*)
14697
lt_prog_compiler_wl_F77='-Wl,'
14698
# PIC (with -KPIC) is the default.
14699
lt_prog_compiler_static_F77='-non_shared'
14703
lt_prog_compiler_pic_F77='-KPIC'
14704
lt_prog_compiler_static_F77='-Bstatic'
14710
lt_prog_compiler_wl_F77='-Wl,'
14711
lt_prog_compiler_pic_F77='-KPIC'
14712
lt_prog_compiler_static_F77='-static'
14715
lt_prog_compiler_wl_F77='-Wl,'
14716
# All Alpha code is PIC.
14717
lt_prog_compiler_static_F77='-non_shared'
14722
osf3* | osf4* | osf5*)
14723
lt_prog_compiler_wl_F77='-Wl,'
14724
# All OSF/1 code is PIC.
14725
lt_prog_compiler_static_F77='-non_shared'
14729
lt_prog_compiler_pic_F77='-Kpic'
14730
lt_prog_compiler_static_F77='-dn'
14734
lt_prog_compiler_wl_F77='-Wl,'
14735
lt_prog_compiler_pic_F77='-KPIC'
14736
lt_prog_compiler_static_F77='-Bstatic'
14740
lt_prog_compiler_wl_F77='-Qoption ld '
14741
lt_prog_compiler_pic_F77='-PIC'
14742
lt_prog_compiler_static_F77='-Bstatic'
14745
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14746
lt_prog_compiler_wl_F77='-Wl,'
14747
lt_prog_compiler_pic_F77='-KPIC'
14748
lt_prog_compiler_static_F77='-Bstatic'
14752
if test -d /usr/nec ;then
14753
lt_prog_compiler_pic_F77='-Kconform_pic'
14754
lt_prog_compiler_static_F77='-Bstatic'
14759
lt_prog_compiler_pic_F77='-pic'
14760
lt_prog_compiler_static_F77='-Bstatic'
14764
lt_prog_compiler_can_build_shared_F77=no
14769
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14770
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14773
# Check to make sure the PIC flag actually works.
14775
if test -n "$lt_prog_compiler_pic_F77"; then
14777
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14778
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14779
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14780
echo $ECHO_N "(cached) $ECHO_C" >&6
14782
lt_prog_compiler_pic_works_F77=no
14783
ac_outfile=conftest.$ac_objext
14784
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14785
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14786
# Insert the option either (1) after the last *FLAGS variable, or
14787
# (2) before a word containing "conftest.", or (3) at the end.
14788
# Note that $ac_compile itself does not contain backslashes and begins
14789
# with a dollar sign (not a hyphen), so the echo should work correctly.
14790
# The option is referenced via a variable to avoid confusing sed.
14791
lt_compile=`echo "$ac_compile" | $SED \
14792
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14793
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794
-e 's:$: $lt_compiler_flag:'`
14795
(eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
14796
(eval "$lt_compile" 2>conftest.err)
14798
cat conftest.err >&5
14799
echo "$as_me:14799: \$? = $ac_status" >&5
14800
if (exit $ac_status) && test -s "$ac_outfile"; then
14801
# The compiler can only warn and ignore the option if not recognized
14802
# So say no if there are warnings
14803
if test ! -s conftest.err; then
14804
lt_prog_compiler_pic_works_F77=yes
14810
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14811
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14813
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14814
case $lt_prog_compiler_pic_F77 in
14816
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14819
lt_prog_compiler_pic_F77=
14820
lt_prog_compiler_can_build_shared_F77=no
14825
# For platforms which do not support PIC, -DPIC is meaningless:
14827
lt_prog_compiler_pic_F77=
14830
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14834
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14835
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14836
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14837
echo $ECHO_N "(cached) $ECHO_C" >&6
14839
lt_cv_prog_compiler_c_o_F77=no
14840
$rm -r conftest 2>/dev/null
14844
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14846
lt_compiler_flag="-o out/conftest2.$ac_objext"
14847
# Insert the option either (1) after the last *FLAGS variable, or
14848
# (2) before a word containing "conftest.", or (3) at the end.
14849
# Note that $ac_compile itself does not contain backslashes and begins
14850
# with a dollar sign (not a hyphen), so the echo should work correctly.
14851
lt_compile=`echo "$ac_compile" | $SED \
14852
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14853
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854
-e 's:$: $lt_compiler_flag:'`
14855
(eval echo "\"\$as_me:14855: $lt_compile\"" >&5)
14856
(eval "$lt_compile" 2>out/conftest.err)
14858
cat out/conftest.err >&5
14859
echo "$as_me:14859: \$? = $ac_status" >&5
14860
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14862
# The compiler can only warn and ignore the option if not recognized
14863
# So say no if there are warnings
14864
if test ! -s out/conftest.err; then
14865
lt_cv_prog_compiler_c_o_F77=yes
14870
# SGI C++ compiler will create directory out/ii_files/ for
14871
# template instantiation
14872
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14873
$rm out/* && rmdir out
14879
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14880
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14883
hard_links="nottested"
14884
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14885
# do not overwrite the value of need_locks provided by the user
14886
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14887
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14890
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14892
ln conftest.a conftest.b 2>&5 || hard_links=no
14893
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14895
echo "${ECHO_T}$hard_links" >&6; }
14896
if test "$hard_links" = no; then
14897
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14898
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14905
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14906
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14909
allow_undefined_flag_F77=
14910
enable_shared_with_static_runtimes_F77=no
14912
archive_expsym_cmds_F77=
14913
old_archive_From_new_cmds_F77=
14914
old_archive_from_expsyms_cmds_F77=
14915
export_dynamic_flag_spec_F77=
14916
whole_archive_flag_spec_F77=
14917
thread_safe_flag_spec_F77=
14918
hardcode_libdir_flag_spec_F77=
14919
hardcode_libdir_flag_spec_ld_F77=
14920
hardcode_libdir_separator_F77=
14921
hardcode_direct_F77=no
14922
hardcode_minus_L_F77=no
14923
hardcode_shlibpath_var_F77=unsupported
14924
link_all_deplibs_F77=unknown
14925
hardcode_automatic_F77=no
14927
module_expsym_cmds_F77=
14928
always_export_symbols_F77=no
14929
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14930
# include_expsyms should be a list of space-separated symbols to be *always*
14931
# included in the symbol list
14932
include_expsyms_F77=
14933
# exclude_expsyms can be an extended regexp of symbols to exclude
14934
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14935
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14936
# as well as any symbol that contains `d'.
14937
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14938
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14939
# platforms (ab)use it in PIC code, but their linkers get confused if
14940
# the symbol is explicitly referenced. Since portable code cannot
14941
# rely on this symbol name, it's probably fine to never include it in
14942
# preloaded symbol tables.
14943
extract_expsyms_cmds=
14946
cygwin* | mingw* | pw32*)
14947
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14948
# When not using gcc, we currently assume that we are using
14949
# Microsoft Visual C++.
14950
if test "$GCC" != yes; then
14960
if test "$with_gnu_ld" = yes; then
14961
# If archive_cmds runs LD, not CC, wlarc should be empty
14964
# See if GNU ld supports shared libraries.
14966
aix3* | aix4* | aix5*)
14967
# On AIX/PPC, the GNU linker is very broken
14968
if test "$host_cpu" != ia64; then
14972
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14973
*** to be unable to reliably create shared libraries on AIX.
14974
*** Therefore, libtool is disabling shared libraries support. If you
14975
*** really care for shared libraries, you may want to modify your PATH
14976
*** so that a non-GNU linker is found, and then restart.
14983
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14984
hardcode_libdir_flag_spec_F77='-L$libdir'
14985
hardcode_minus_L_F77=yes
14987
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14988
# that the semantics of dynamic libraries on AmigaOS, at least up
14989
# to version 4, is to share data among multiple programs linked
14990
# with the same dynamic library. Since this doesn't match the
14991
# behavior of shared libraries on other platforms, we can't use
14997
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14998
allow_undefined_flag_F77=unsupported
14999
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15000
# support --undefined. This deserves some investigation. FIXME
15001
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15007
cygwin* | mingw* | pw32*)
15008
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15009
# as there is no search path for DLLs.
15010
hardcode_libdir_flag_spec_F77='-L$libdir'
15011
allow_undefined_flag_F77=unsupported
15012
always_export_symbols_F77=no
15013
enable_shared_with_static_runtimes_F77=yes
15014
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15016
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15017
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15018
# If the export-symbols file already is a .def file (1st line
15019
# is EXPORTS), use it as is; otherwise, prepend...
15020
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15021
cp $export_symbols $output_objdir/$soname.def;
15023
echo EXPORTS > $output_objdir/$soname.def;
15024
cat $export_symbols >> $output_objdir/$soname.def;
15026
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15032
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15033
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15037
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15043
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15047
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048
*** create shared libraries on Solaris systems. Therefore, libtool
15049
*** is disabling shared libraries support. We urge you to upgrade GNU
15050
*** binutils to release 2.9.1 or newer. Another option is to modify
15051
*** your PATH or compiler configuration so that the native linker is
15052
*** used, and then restart.
15055
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15066
hardcode_direct_F77=yes
15067
hardcode_shlibpath_var_F77=no
15071
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15072
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073
archive_cmds_F77="$tmp_archive_cmds"
15074
supports_anon_versioning=no
15075
case `$LD -v 2>/dev/null` in
15076
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15077
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15078
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15079
*\ 2.11.*) ;; # other 2.11 versions
15080
*) supports_anon_versioning=yes ;;
15082
if test $supports_anon_versioning = yes; then
15083
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15084
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085
$echo "local: *; };" >> $output_objdir/$libname.ver~
15086
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15088
archive_expsym_cmds_F77="$tmp_archive_cmds"
15090
link_all_deplibs_F77=no
15097
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106
if test "$ld_shlibs_F77" = yes; then
15107
runpath_var=LD_RUN_PATH
15108
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15109
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15110
# ancient GNU ld didn't support --whole-archive et. al.
15111
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15112
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15114
whole_archive_flag_spec_F77=
15118
# PORTME fill in a description of your system's linker (not GNU ld)
15121
allow_undefined_flag_F77=unsupported
15122
always_export_symbols_F77=yes
15123
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15124
# Note: this linker hardcodes the directories in LIBPATH if there
15125
# are no directories specified by -L.
15126
hardcode_minus_L_F77=yes
15127
if test "$GCC" = yes && test -z "$link_static_flag"; then
15128
# Neither direct hardcoding nor static linking is supported with a
15130
hardcode_direct_F77=unsupported
15135
if test "$host_cpu" = ia64; then
15136
# On IA64, the linker does run time linking by default, so we don't
15137
# have to do anything special.
15138
aix_use_runtimelinking=no
15139
exp_sym_flag='-Bexport'
15142
# If we're using GNU nm, then we don't want the "-C" option.
15143
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15144
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15145
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15147
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15149
aix_use_runtimelinking=no
15151
# Test if we are trying to use run time linking or normal
15152
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15153
# need to do runtime linking.
15154
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15155
for ld_flag in $LDFLAGS; do
15156
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15157
aix_use_runtimelinking=yes
15163
exp_sym_flag='-bexport'
15164
no_entry_flag='-bnoentry'
15167
# When large executables or shared objects are built, AIX ld can
15168
# have problems creating the table of contents. If linking a library
15169
# or program results in "error TOC overflow" add -mminimal-toc to
15170
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15171
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15173
archive_cmds_F77=''
15174
hardcode_direct_F77=yes
15175
hardcode_libdir_separator_F77=':'
15176
link_all_deplibs_F77=yes
15178
if test "$GCC" = yes; then
15179
case $host_os in aix4.012|aix4.012.*)
15180
# We only want to do this on AIX 4.2 and lower, the check
15181
# below for broken collect2 doesn't work under 4.3+
15182
collect2name=`${CC} -print-prog-name=collect2`
15183
if test -f "$collect2name" && \
15184
strings "$collect2name" | grep resolve_lib_name >/dev/null
15186
# We have reworked collect2
15187
hardcode_direct_F77=yes
15189
# We have old collect2
15190
hardcode_direct_F77=unsupported
15191
# It fails to find uninstalled libraries when the uninstalled
15192
# path is not listed in the libpath. Setting hardcode_minus_L
15193
# to unsupported forces relinking
15194
hardcode_minus_L_F77=yes
15195
hardcode_libdir_flag_spec_F77='-L$libdir'
15196
hardcode_libdir_separator_F77=
15199
shared_flag='-shared'
15202
if test "$host_cpu" = ia64; then
15203
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15204
# chokes on -Wl,-G. The following line is correct:
15207
if test "$aix_use_runtimelinking" = yes; then
15208
shared_flag='${wl}-G'
15210
shared_flag='${wl}-bM:SRE'
15215
# It seems that -bexpall does not export symbols beginning with
15216
# underscore (_), so it is better to generate a list of symbols to export.
15217
always_export_symbols_F77=yes
15218
if test "$aix_use_runtimelinking" = yes; then
15219
# Warning - without using the other runtime loading flags (-brtl),
15220
# -berok will link without error, but may produce a broken library.
15221
allow_undefined_flag_F77='-berok'
15222
# Determine the default libpath from the value encoded in an empty executable.
15223
cat >conftest.$ac_ext <<_ACEOF
15228
rm -f conftest.$ac_objext conftest$ac_exeext
15229
if { (ac_try="$ac_link"
15230
case "(($ac_try" in
15231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232
*) ac_try_echo=$ac_try;;
15234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235
(eval "$ac_link") 2>conftest.er1
15237
grep -v '^ *+' conftest.er1 >conftest.err
15239
cat conftest.err >&5
15240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241
(exit $ac_status); } && {
15242
test -z "$ac_f77_werror_flag" ||
15243
test ! -s conftest.err
15244
} && test -s conftest$ac_exeext &&
15245
$as_test_x conftest$ac_exeext; then
15247
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15249
# Check for a 64-bit object if we didn't find anything.
15250
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15253
echo "$as_me: failed program was:" >&5
15254
sed 's/^/| /' conftest.$ac_ext >&5
15259
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15260
conftest$ac_exeext conftest.$ac_ext
15261
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15263
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15264
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"
15266
if test "$host_cpu" = ia64; then
15267
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15268
allow_undefined_flag_F77="-z nodefs"
15269
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"
15271
# Determine the default libpath from the value encoded in an empty executable.
15272
cat >conftest.$ac_ext <<_ACEOF
15277
rm -f conftest.$ac_objext conftest$ac_exeext
15278
if { (ac_try="$ac_link"
15279
case "(($ac_try" in
15280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281
*) ac_try_echo=$ac_try;;
15283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284
(eval "$ac_link") 2>conftest.er1
15286
grep -v '^ *+' conftest.er1 >conftest.err
15288
cat conftest.err >&5
15289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290
(exit $ac_status); } && {
15291
test -z "$ac_f77_werror_flag" ||
15292
test ! -s conftest.err
15293
} && test -s conftest$ac_exeext &&
15294
$as_test_x conftest$ac_exeext; then
15296
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15298
# Check for a 64-bit object if we didn't find anything.
15299
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15302
echo "$as_me: failed program was:" >&5
15303
sed 's/^/| /' conftest.$ac_ext >&5
15308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309
conftest$ac_exeext conftest.$ac_ext
15310
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15312
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15313
# Warning - without using the other run time loading flags,
15314
# -berok will link without error, but may produce a broken library.
15315
no_undefined_flag_F77=' ${wl}-bernotok'
15316
allow_undefined_flag_F77=' ${wl}-berok'
15317
# -bexpall does not export symbols beginning with underscore (_)
15318
always_export_symbols_F77=yes
15319
# Exported symbols can be pulled into shared objects from archives
15320
whole_archive_flag_spec_F77=' '
15321
archive_cmds_need_lc_F77=yes
15322
# This is similar to how AIX traditionally builds it's shared libraries.
15323
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'
15329
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15330
hardcode_libdir_flag_spec_F77='-L$libdir'
15331
hardcode_minus_L_F77=yes
15332
# see comment about different semantics on the GNU ld section
15337
export_dynamic_flag_spec_F77=-rdynamic
15340
cygwin* | mingw* | pw32*)
15341
# When not using gcc, we currently assume that we are using
15342
# Microsoft Visual C++.
15343
# hardcode_libdir_flag_spec is actually meaningless, as there is
15344
# no search path for DLLs.
15345
hardcode_libdir_flag_spec_F77=' '
15346
allow_undefined_flag_F77=unsupported
15347
# Tell ltmain to make .lib files, not .a files.
15349
# Tell ltmain to make .dll files, not .so files.
15351
# FIXME: Setting linknames here is a bad hack.
15352
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15353
# The linker will automatically build a .lib file if we build a DLL.
15354
old_archive_From_new_cmds_F77='true'
15355
# FIXME: Should let the user specify the lib program.
15356
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15357
fix_srcfile_path='`cygpath -w "$srcfile"`'
15358
enable_shared_with_static_runtimes_F77=yes
15361
darwin* | rhapsody*)
15362
if test "$GXX" = yes ; then
15363
archive_cmds_need_lc_F77=no
15365
rhapsody* | darwin1.[012])
15366
allow_undefined_flag_F77='-undefined suppress'
15369
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15370
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15372
case ${MACOSX_DEPLOYMENT_TARGET} in
15374
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15377
allow_undefined_flag_F77='-undefined dynamic_lookup'
15383
lt_int_apple_cc_single_mod=no
15384
output_verbose_link_cmd='echo'
15385
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15386
lt_int_apple_cc_single_mod=yes
15388
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15389
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15391
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'
15393
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15394
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15395
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15396
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}'
15398
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}'
15400
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}'
15401
hardcode_direct_F77=no
15402
hardcode_automatic_F77=yes
15403
hardcode_shlibpath_var_F77=unsupported
15404
whole_archive_flag_spec_F77='-all_load $convenience'
15405
link_all_deplibs_F77=yes
15412
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413
hardcode_libdir_flag_spec_F77='-L$libdir'
15414
hardcode_shlibpath_var_F77=no
15421
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15422
# support. Future versions do this automatically, but an explicit c++rt0.o
15423
# does not break anything, and helps significantly (at the cost of a little
15426
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15427
hardcode_libdir_flag_spec_F77='-R$libdir'
15428
hardcode_direct_F77=yes
15429
hardcode_shlibpath_var_F77=no
15432
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15434
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435
hardcode_direct_F77=yes
15436
hardcode_minus_L_F77=yes
15437
hardcode_shlibpath_var_F77=no
15440
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15441
freebsd* | kfreebsd*-gnu)
15442
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15443
hardcode_libdir_flag_spec_F77='-R$libdir'
15444
hardcode_direct_F77=yes
15445
hardcode_shlibpath_var_F77=no
15449
if test "$GCC" = yes; then
15450
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15452
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15454
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455
hardcode_libdir_separator_F77=:
15456
hardcode_direct_F77=yes
15458
# hardcode_minus_L: Not really in the search PATH,
15459
# but as the default location of the library.
15460
hardcode_minus_L_F77=yes
15461
export_dynamic_flag_spec_F77='${wl}-E'
15465
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15466
case "$host_cpu" in
15468
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15471
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15475
case "$host_cpu" in
15477
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15480
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15484
if test "$with_gnu_ld" = no; then
15485
case "$host_cpu" in
15487
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15489
hardcode_libdir_separator_F77=:
15490
hardcode_direct_F77=no
15491
hardcode_shlibpath_var_F77=no
15494
hardcode_libdir_flag_spec_F77='-L$libdir'
15495
hardcode_direct_F77=no
15496
hardcode_shlibpath_var_F77=no
15498
# hardcode_minus_L: Not really in the search PATH,
15499
# but as the default location of the library.
15500
hardcode_minus_L_F77=yes
15503
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15504
hardcode_libdir_separator_F77=:
15505
hardcode_direct_F77=yes
15506
export_dynamic_flag_spec_F77='${wl}-E'
15508
# hardcode_minus_L: Not really in the search PATH,
15509
# but as the default location of the library.
15510
hardcode_minus_L_F77=yes
15516
irix5* | irix6* | nonstopux*)
15517
if test "$GCC" = yes; then
15518
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15520
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15521
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15523
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15524
hardcode_libdir_separator_F77=:
15525
link_all_deplibs_F77=yes
15528
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15529
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15530
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15532
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15534
hardcode_libdir_flag_spec_F77='-R$libdir'
15535
hardcode_direct_F77=yes
15536
hardcode_shlibpath_var_F77=no
15540
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541
hardcode_direct_F77=yes
15542
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15543
hardcode_libdir_separator_F77=:
15544
hardcode_shlibpath_var_F77=no
15548
hardcode_direct_F77=yes
15549
hardcode_shlibpath_var_F77=no
15550
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15551
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15553
export_dynamic_flag_spec_F77='${wl}-E'
15556
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15557
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15558
hardcode_libdir_flag_spec_F77='-R$libdir'
15561
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15562
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15569
hardcode_libdir_flag_spec_F77='-L$libdir'
15570
hardcode_minus_L_F77=yes
15571
allow_undefined_flag_F77=unsupported
15572
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15573
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15577
if test "$GCC" = yes; then
15578
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15579
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15581
allow_undefined_flag_F77=' -expect_unresolved \*'
15582
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15584
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585
hardcode_libdir_separator_F77=:
15588
osf4* | osf5*) # as osf3* with the addition of -msym flag
15589
if test "$GCC" = yes; then
15590
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15591
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15592
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15594
allow_undefined_flag_F77=' -expect_unresolved \*'
15595
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'
15596
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~
15597
$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'
15599
# Both c and cxx compiler support -rpath directly
15600
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15602
hardcode_libdir_separator_F77=:
15606
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607
hardcode_shlibpath_var_F77=no
15608
export_dynamic_flag_spec_F77='${wl}-Bexport'
15609
runpath_var=LD_RUN_PATH
15610
hardcode_runpath_var=yes
15614
no_undefined_flag_F77=' -z text'
15615
if test "$GCC" = yes; then
15616
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15618
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15620
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15624
hardcode_libdir_flag_spec_F77='-R$libdir'
15625
hardcode_shlibpath_var_F77=no
15627
solaris2.[0-5] | solaris2.[0-5].*) ;;
15628
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15629
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15631
link_all_deplibs_F77=yes
15635
if test "x$host_vendor" = xsequent; then
15636
# Use $CC to link under sequent, because it throws in some extra .o
15637
# files that make .init and .fini sections work.
15638
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15640
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15642
hardcode_libdir_flag_spec_F77='-L$libdir'
15643
hardcode_direct_F77=yes
15644
hardcode_minus_L_F77=yes
15645
hardcode_shlibpath_var_F77=no
15649
case $host_vendor in
15651
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15652
hardcode_direct_F77=yes # is this really true???
15655
## LD is ld it makes a PLAMLIB
15656
## CC just makes a GrossModule.
15657
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658
reload_cmds_F77='$CC -r -o $output$reload_objs'
15659
hardcode_direct_F77=no
15662
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15666
runpath_var='LD_RUN_PATH'
15667
hardcode_shlibpath_var_F77=no
15671
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672
hardcode_shlibpath_var_F77=no
15673
export_dynamic_flag_spec_F77='-Bexport'
15677
if test -d /usr/nec; then
15678
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679
hardcode_shlibpath_var_F77=no
15680
runpath_var=LD_RUN_PATH
15681
hardcode_runpath_var=yes
15687
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15688
hardcode_direct_F77=yes
15689
hardcode_minus_L_F77=no
15690
hardcode_shlibpath_var_F77=no
15691
hardcode_runpath_var=yes
15692
runpath_var=LD_RUN_PATH
15695
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15696
no_undefined_flag_F77='${wl}-z ${wl}text'
15697
if test "$GCC" = yes; then
15698
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15700
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15702
runpath_var='LD_RUN_PATH'
15703
hardcode_shlibpath_var_F77=no
15707
no_undefined_flag_F77=' -z text'
15708
# $CC -shared without GNU ld will not create a library from C++
15709
# object files and a static libstdc++, better avoid it by now
15710
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15712
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15713
hardcode_libdir_flag_spec_F77=
15714
hardcode_shlibpath_var_F77=no
15715
runpath_var='LD_RUN_PATH'
15719
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720
hardcode_libdir_flag_spec_F77='-L$libdir'
15721
hardcode_shlibpath_var_F77=no
15730
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15731
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15732
test "$ld_shlibs_F77" = no && can_build_shared=no
15734
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735
if test "$GCC" = yes; then
15736
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15740
# Do we need to explicitly link libc?
15742
case "x$archive_cmds_need_lc_F77" in
15744
# Assume -lc should be added
15745
archive_cmds_need_lc_F77=yes
15747
if test "$enable_shared" = yes && test "$GCC" = yes; then
15748
case $archive_cmds_F77 in
15750
# FIXME: we may have to deal with multi-command sequences.
15753
# Test whether the compiler implicitly links with -lc since on some
15754
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15755
# to ld, don't add -lc before -lgcc.
15756
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15757
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15759
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15762
(eval $ac_compile) 2>&5
15764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765
(exit $ac_status); } 2>conftest.err; then
15768
libobjs=conftest.$ac_objext
15770
wl=$lt_prog_compiler_wl_F77
15776
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15777
allow_undefined_flag_F77=
15778
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15779
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782
(exit $ac_status); }
15784
archive_cmds_need_lc_F77=no
15786
archive_cmds_need_lc_F77=yes
15788
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15790
cat conftest.err 1>&5
15793
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15794
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15801
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15802
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15803
library_names_spec=
15804
libname_spec='lib$name'
15808
postuninstall_cmds=
15812
shlibpath_overrides_runpath=unknown
15814
dynamic_linker="$host_os ld.so"
15815
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15816
if test "$GCC" = yes; then
15817
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15819
# if the path contains ";" then we assume it to be the separator
15820
# otherwise default to the standard path separator (i.e. ":") - it is
15821
# assumed that no part of a normal pathname contains ";" but that should
15822
# okay in the real world where ";" in dirpaths is itself problematic.
15823
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15825
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15830
need_lib_prefix=unknown
15831
hardcode_into_libs=no
15833
# when you set need_version to no, make sure it does not cause -set_version
15834
# flags to be left without arguments
15835
need_version=unknown
15840
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15841
shlibpath_var=LIBPATH
15843
# AIX 3 has no versioning support, so we append a major version to the name.
15844
soname_spec='${libname}${release}${shared_ext}$major'
15851
hardcode_into_libs=yes
15852
if test "$host_cpu" = ia64; then
15853
# AIX 5 supports IA64
15854
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15855
shlibpath_var=LD_LIBRARY_PATH
15857
# With GCC up to 2.95.x, collect2 would create an import file
15858
# for dependence libraries. The import file would start with
15859
# the line `#! .'. This would cause the generated library to
15860
# depend on `.', always an invalid library. This was fixed in
15861
# development snapshots of GCC prior to 3.0.
15863
aix4 | aix4.[01] | aix4.[01].*)
15864
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15866
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15869
can_build_shared=no
15873
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15874
# soname into executable. Probably we can add versioning support to
15875
# collect2, so additional links can be useful in future.
15876
if test "$aix_use_runtimelinking" = yes; then
15877
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15878
# instead of lib<name>.a to let people know that these are not
15879
# typical AIX shared libraries.
15880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882
# We preserve .a as extension for shared libraries through AIX4.2
15883
# and later when we are not doing run time linking.
15884
library_names_spec='${libname}${release}.a $libname.a'
15885
soname_spec='${libname}${release}${shared_ext}$major'
15887
shlibpath_var=LIBPATH
15892
library_names_spec='$libname.ixlibrary $libname.a'
15893
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15894
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15898
library_names_spec='${libname}${shared_ext}'
15899
dynamic_linker="$host_os ld.so"
15900
shlibpath_var=LIBRARY_PATH
15906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907
soname_spec='${libname}${release}${shared_ext}$major'
15908
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15909
shlibpath_var=LD_LIBRARY_PATH
15910
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15911
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15912
# the default ld.so.conf also contains /usr/contrib/lib and
15913
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15914
# libtool to hard-code these into programs
15917
cygwin* | mingw* | pw32*)
15918
version_type=windows
15923
case $GCC,$host_os in
15924
yes,cygwin* | yes,mingw* | yes,pw32*)
15925
library_names_spec='$libname.dll.a'
15926
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15927
postinstall_cmds='base_file=`basename \${file}`~
15928
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15929
dldir=$destdir/`dirname \$dlpath`~
15930
test -d \$dldir || mkdir -p \$dldir~
15931
$install_prog $dir/$dlname \$dldir/$dlname'
15932
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933
dlpath=$dir/\$dldll~
15935
shlibpath_overrides_runpath=yes
15939
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944
# MinGW DLLs use traditional 'lib' prefix
15945
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948
# It is most probably a Windows format PATH printed by
15949
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15950
# path with ; separators, and with drive letters. We can handle the
15951
# drive letters (cygwin fileutils understands them), so leave them,
15952
# especially as we might pass files found there to a mingw objdump,
15953
# which wouldn't understand a cygwinified path. Ahh.
15954
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15956
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15960
# pw32 DLLs use 'pw' prefix rather than 'lib'
15961
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15967
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970
dynamic_linker='Win32 ld.exe'
15971
# FIXME: first we should search . and the directory the executable is in
15975
darwin* | rhapsody*)
15976
dynamic_linker="$host_os dyld"
15977
version_type=darwin
15980
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981
soname_spec='${libname}${release}${major}$shared_ext'
15982
shlibpath_overrides_runpath=yes
15983
shlibpath_var=DYLD_LIBRARY_PATH
15984
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15985
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15986
if test "$GCC" = yes; then
15987
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"`
15989
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15991
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15999
soname_spec='${libname}${release}${shared_ext}$major'
16000
shlibpath_var=LD_LIBRARY_PATH
16011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16012
soname_spec='${libname}${release}${shared_ext}$major'
16013
shlibpath_var=LD_LIBRARY_PATH
16014
shlibpath_overrides_runpath=no
16015
hardcode_into_libs=yes
16016
dynamic_linker='GNU ld.so'
16020
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16021
version_type=freebsd-$objformat
16022
case $version_type in
16024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16033
shlibpath_var=LD_LIBRARY_PATH
16036
shlibpath_overrides_runpath=yes
16038
freebsd3.01* | freebsdelf3.01*)
16039
shlibpath_overrides_runpath=yes
16040
hardcode_into_libs=yes
16043
shlibpath_overrides_runpath=no
16044
hardcode_into_libs=yes
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16054
soname_spec='${libname}${release}${shared_ext}$major'
16055
shlibpath_var=LD_LIBRARY_PATH
16056
hardcode_into_libs=yes
16059
hpux9* | hpux10* | hpux11*)
16060
# Give a soname corresponding to the major version so that dld.sl refuses to
16061
# link against other versions.
16065
case "$host_cpu" in
16068
hardcode_into_libs=yes
16069
dynamic_linker="$host_os dld.so"
16070
shlibpath_var=LD_LIBRARY_PATH
16071
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073
soname_spec='${libname}${release}${shared_ext}$major'
16074
if test "X$HPUX_IA64_MODE" = X32; then
16075
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16077
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16079
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16083
hardcode_into_libs=yes
16084
dynamic_linker="$host_os dld.sl"
16085
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16086
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088
soname_spec='${libname}${release}${shared_ext}$major'
16089
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16090
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094
dynamic_linker="$host_os dld.sl"
16095
shlibpath_var=SHLIB_PATH
16096
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098
soname_spec='${libname}${release}${shared_ext}$major'
16101
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16102
postinstall_cmds='chmod 555 $lib'
16105
irix5* | irix6* | nonstopux*)
16107
nonstopux*) version_type=nonstopux ;;
16109
if test "$lt_cv_prog_gnu_ld" = yes; then
16117
soname_spec='${libname}${release}${shared_ext}$major'
16118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16120
irix5* | nonstopux*)
16121
libsuff= shlibsuff=
16124
case $LD in # libtool.m4 will add one of these switches to LD
16125
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126
libsuff= shlibsuff= libmagic=32-bit;;
16127
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128
libsuff=32 shlibsuff=N32 libmagic=N32;;
16129
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131
*) libsuff= shlibsuff= libmagic=never-match;;
16135
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136
shlibpath_overrides_runpath=no
16137
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139
hardcode_into_libs=yes
16142
# No shared lib support for Linux oldld, aout, or coff.
16143
linux*oldld* | linux*aout* | linux*coff*)
16147
# This must be Linux ELF.
16152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153
soname_spec='${libname}${release}${shared_ext}$major'
16154
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155
shlibpath_var=LD_LIBRARY_PATH
16156
shlibpath_overrides_runpath=no
16157
# This implies no fast_install, which is unacceptable.
16158
# Some rework will be needed to allow for fast_install
16159
# before this can be enabled.
16160
hardcode_into_libs=yes
16162
# Append ld.so.conf contents to the search path
16163
if test -f /etc/ld.so.conf; then
16164
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16165
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16168
# We used to test for /lib/ld.so.1 and disable shared libraries on
16169
# powerpc, because MkLinux only supported shared libraries with the
16170
# GNU dynamic linker. Since this was broken with cross compilers,
16171
# most powerpc-linux boxes support dynamic linking these days and
16172
# people can always --disable-shared, the test was removed, and we
16173
# assume the GNU/Linux dynamic linker is in use.
16174
dynamic_linker='GNU/Linux ld.so'
16181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182
soname_spec='${libname}${release}${shared_ext}$major'
16183
shlibpath_var=LD_LIBRARY_PATH
16184
shlibpath_overrides_runpath=no
16185
hardcode_into_libs=yes
16186
dynamic_linker='NetBSD ld.elf_so'
16193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16194
soname_spec='${libname}${release}${shared_ext}$major'
16195
shlibpath_var=LD_LIBRARY_PATH
16196
shlibpath_overrides_runpath=no
16197
hardcode_into_libs=yes
16198
dynamic_linker='GNU ld.so'
16205
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16207
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16208
dynamic_linker='NetBSD (a.out) ld.so'
16210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16211
soname_spec='${libname}${release}${shared_ext}$major'
16212
dynamic_linker='NetBSD ld.elf_so'
16214
shlibpath_var=LD_LIBRARY_PATH
16215
shlibpath_overrides_runpath=yes
16216
hardcode_into_libs=yes
16221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16222
shlibpath_var=LD_LIBRARY_PATH
16223
shlibpath_overrides_runpath=yes
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
shlibpath_var=LD_LIBRARY_PATH
16233
shlibpath_overrides_runpath=yes
16240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16241
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16242
shlibpath_var=LD_LIBRARY_PATH
16243
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16245
openbsd2.[89] | openbsd2.[89].*)
16246
shlibpath_overrides_runpath=no
16249
shlibpath_overrides_runpath=yes
16253
shlibpath_overrides_runpath=yes
16258
libname_spec='$name'
16261
library_names_spec='$libname${shared_ext} $libname.a'
16262
dynamic_linker='OS/2 ld.exe'
16263
shlibpath_var=LIBPATH
16266
osf3* | osf4* | osf5*)
16270
soname_spec='${libname}${release}${shared_ext}$major'
16271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272
shlibpath_var=LD_LIBRARY_PATH
16273
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16274
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16279
soname_spec='${libname}${release}${shared_ext}$major'
16280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281
shlibpath_var=LD_LIBRARY_PATH
16288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289
soname_spec='${libname}${release}${shared_ext}$major'
16290
shlibpath_var=LD_LIBRARY_PATH
16291
shlibpath_overrides_runpath=yes
16292
hardcode_into_libs=yes
16293
# ldd complains unless libraries are executable
16294
postinstall_cmds='chmod +x $lib'
16299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301
shlibpath_var=LD_LIBRARY_PATH
16302
shlibpath_overrides_runpath=yes
16303
if test "$with_gnu_ld" = yes; then
16309
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312
soname_spec='${libname}${release}${shared_ext}$major'
16313
shlibpath_var=LD_LIBRARY_PATH
16314
case $host_vendor in
16316
shlibpath_overrides_runpath=no
16318
export_dynamic_flag_spec='${wl}-Blargedynsym'
16319
runpath_var=LD_RUN_PATH
16327
shlibpath_overrides_runpath=no
16328
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334
if test -d /usr/nec ;then
16336
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337
soname_spec='$libname${shared_ext}.$major'
16338
shlibpath_var=LD_LIBRARY_PATH
16344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345
soname_spec='${libname}${release}${shared_ext}$major'
16346
shlibpath_var=LD_LIBRARY_PATH
16353
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16354
echo "${ECHO_T}$dynamic_linker" >&6; }
16355
test "$dynamic_linker" = no && can_build_shared=no
16357
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16358
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16359
hardcode_action_F77=
16360
if test -n "$hardcode_libdir_flag_spec_F77" || \
16361
test -n "$runpath_var F77" || \
16362
test "X$hardcode_automatic_F77"="Xyes" ; then
16364
# We can hardcode non-existant directories.
16365
if test "$hardcode_direct_F77" != no &&
16366
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16367
# have to relink, otherwise we might link with an installed library
16368
# when we should be linking with a yet-to-be-installed one
16369
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16370
test "$hardcode_minus_L_F77" != no; then
16371
# Linking always hardcodes the temporary library directory.
16372
hardcode_action_F77=relink
16374
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16375
hardcode_action_F77=immediate
16378
# We cannot hardcode anything, or else we can only hardcode existing
16380
hardcode_action_F77=unsupported
16382
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16383
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16385
if test "$hardcode_action_F77" = relink; then
16386
# Fast installation is not supported
16387
enable_fast_install=no
16388
elif test "$shlibpath_overrides_runpath" = yes ||
16389
test "$enable_shared" = no; then
16390
# Fast installation is not necessary
16391
enable_fast_install=needless
16396
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16397
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16398
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16399
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401
{ echo "$as_me:$LINENO: result: yes" >&5
16402
echo "${ECHO_T}yes" >&6; }
16404
# FIXME - insert some real tests, host_os isn't really good enough
16407
if test -n "$STRIP" ; then
16408
striplib="$STRIP -x"
16409
{ echo "$as_me:$LINENO: result: yes" >&5
16410
echo "${ECHO_T}yes" >&6; }
16412
{ echo "$as_me:$LINENO: result: no" >&5
16413
echo "${ECHO_T}no" >&6; }
16417
{ echo "$as_me:$LINENO: result: no" >&5
16418
echo "${ECHO_T}no" >&6; }
16425
# The else clause should only fire when bootstrapping the
16426
# libtool distribution, otherwise you forgot to ship ltmain.sh
16427
# with your package, and you will get complaints that there are
16428
# no rules to generate ltmain.sh.
16429
if test -f "$ltmain"; then
16430
# See if we are running on zsh, and set the options which allow our commands through
16431
# without removal of \ escapes.
16432
if test -n "${ZSH_VERSION+set}" ; then
16433
setopt NO_GLOB_SUBST
16435
# Now quote all the things that may contain metacharacters while being
16436
# careful not to overquote the AC_SUBSTed values. We take copies of the
16437
# variables and quote the copies for generation of the libtool script.
16438
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16440
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16441
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16442
deplibs_check_method reload_flag reload_cmds need_locks \
16443
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16444
lt_cv_sys_global_symbol_to_c_name_address \
16445
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16446
old_postinstall_cmds old_postuninstall_cmds \
16450
lt_prog_compiler_wl_F77 \
16451
lt_prog_compiler_pic_F77 \
16452
lt_prog_compiler_static_F77 \
16453
lt_prog_compiler_no_builtin_flag_F77 \
16454
export_dynamic_flag_spec_F77 \
16455
thread_safe_flag_spec_F77 \
16456
whole_archive_flag_spec_F77 \
16457
enable_shared_with_static_runtimes_F77 \
16458
old_archive_cmds_F77 \
16459
old_archive_from_new_cmds_F77 \
16460
predep_objects_F77 \
16461
postdep_objects_F77 \
16464
compiler_lib_search_path_F77 \
16466
archive_expsym_cmds_F77 \
16467
postinstall_cmds_F77 \
16468
postuninstall_cmds_F77 \
16469
old_archive_from_expsyms_cmds_F77 \
16470
allow_undefined_flag_F77 \
16471
no_undefined_flag_F77 \
16472
export_symbols_cmds_F77 \
16473
hardcode_libdir_flag_spec_F77 \
16474
hardcode_libdir_flag_spec_ld_F77 \
16475
hardcode_libdir_separator_F77 \
16476
hardcode_automatic_F77 \
16478
module_expsym_cmds_F77 \
16479
lt_cv_prog_compiler_c_o_F77 \
16480
exclude_expsyms_F77 \
16481
include_expsyms_F77; do
16484
old_archive_cmds_F77 | \
16485
old_archive_from_new_cmds_F77 | \
16486
archive_cmds_F77 | \
16487
archive_expsym_cmds_F77 | \
16488
module_cmds_F77 | \
16489
module_expsym_cmds_F77 | \
16490
old_archive_from_expsyms_cmds_F77 | \
16491
export_symbols_cmds_F77 | \
16492
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16493
postinstall_cmds | postuninstall_cmds | \
16494
old_postinstall_cmds | old_postuninstall_cmds | \
16495
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16496
# Double-quote double-evaled strings.
16497
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16500
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16506
*'\$0 --fallback-echo"')
16507
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16513
cat <<__EOF__ >> "$cfgfile"
16514
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16516
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16518
# Shell to use when invoking shell scripts.
16521
# Whether or not to build shared libraries.
16522
build_libtool_libs=$enable_shared
16524
# Whether or not to build static libraries.
16525
build_old_libs=$enable_static
16527
# Whether or not to add -lc for building shared libraries.
16528
build_libtool_need_lc=$archive_cmds_need_lc_F77
16530
# Whether or not to disallow shared libs when runtime libs are static
16531
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16533
# Whether or not to optimize for fast installation.
16534
fast_install=$enable_fast_install
16537
host_alias=$host_alias
16540
# An echo program that does not interpret backslashes.
16545
AR_FLAGS=$lt_AR_FLAGS
16550
# A language-specific compiler.
16551
CC=$lt_compiler_F77
16553
# Is the compiler the GNU C compiler?
16559
# The linker used to build libraries.
16562
# Whether we need hard or soft links.
16565
# A BSD-compatible nm program.
16568
# A symbol stripping program
16571
# Used to examine libraries when file_magic_cmd begins "file"
16572
MAGIC_CMD=$MAGIC_CMD
16574
# Used on cygwin: DLL creation program.
16577
# Used on cygwin: object dumper.
16580
# Used on cygwin: assembler.
16583
# The name of the directory that contains temporary libtool files.
16586
# How to create reloadable object files.
16587
reload_flag=$lt_reload_flag
16588
reload_cmds=$lt_reload_cmds
16590
# How to pass a linker flag through the compiler.
16591
wl=$lt_lt_prog_compiler_wl_F77
16593
# Object file suffix (normally "o").
16594
objext="$ac_objext"
16596
# Old archive suffix (normally "a").
16599
# Shared library suffix (normally ".so").
16600
shrext_cmds='$shrext_cmds'
16602
# Executable file suffix (normally "").
16605
# Additional compiler flags for building library objects.
16606
pic_flag=$lt_lt_prog_compiler_pic_F77
16609
# What is the maximum length of a command?
16610
max_cmd_len=$lt_cv_sys_max_cmd_len
16612
# Does compiler simultaneously support -c and -o options?
16613
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16615
# Must we lock files when doing compilation ?
16616
need_locks=$lt_need_locks
16618
# Do we need the lib prefix for modules?
16619
need_lib_prefix=$need_lib_prefix
16621
# Do we need a version for libraries?
16622
need_version=$need_version
16624
# Whether dlopen is supported.
16625
dlopen_support=$enable_dlopen
16627
# Whether dlopen of programs is supported.
16628
dlopen_self=$enable_dlopen_self
16630
# Whether dlopen of statically linked programs is supported.
16631
dlopen_self_static=$enable_dlopen_self_static
16633
# Compiler flag to prevent dynamic linking.
16634
link_static_flag=$lt_lt_prog_compiler_static_F77
16636
# Compiler flag to turn off builtin functions.
16637
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16639
# Compiler flag to allow reflexive dlopens.
16640
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16642
# Compiler flag to generate shared objects directly from archives.
16643
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16645
# Compiler flag to generate thread-safe objects.
16646
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16648
# Library versioning type.
16649
version_type=$version_type
16651
# Format of library name prefix.
16652
libname_spec=$lt_libname_spec
16654
# List of archive names. First name is the real one, the rest are links.
16655
# The last name is the one that the linker finds with -lNAME.
16656
library_names_spec=$lt_library_names_spec
16658
# The coded name of the library, if different from the real name.
16659
soname_spec=$lt_soname_spec
16661
# Commands used to build and install an old-style archive.
16663
old_archive_cmds=$lt_old_archive_cmds_F77
16664
old_postinstall_cmds=$lt_old_postinstall_cmds
16665
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16667
# Create an old-style archive from a shared archive.
16668
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16670
# Create a temporary old-style archive to link instead of a shared archive.
16671
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16673
# Commands used to build and install a shared archive.
16674
archive_cmds=$lt_archive_cmds_F77
16675
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16676
postinstall_cmds=$lt_postinstall_cmds
16677
postuninstall_cmds=$lt_postuninstall_cmds
16679
# Commands used to build a loadable module (assumed same as above if empty)
16680
module_cmds=$lt_module_cmds_F77
16681
module_expsym_cmds=$lt_module_expsym_cmds_F77
16683
# Commands to strip libraries.
16684
old_striplib=$lt_old_striplib
16685
striplib=$lt_striplib
16687
# Dependencies to place before the objects being linked to create a
16689
predep_objects=$lt_predep_objects_F77
16691
# Dependencies to place after the objects being linked to create a
16693
postdep_objects=$lt_postdep_objects_F77
16695
# Dependencies to place before the objects being linked to create a
16697
predeps=$lt_predeps_F77
16699
# Dependencies to place after the objects being linked to create a
16701
postdeps=$lt_postdeps_F77
16703
# The library search path used internally by the compiler when linking
16704
# a shared library.
16705
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16707
# Method to check whether dependent libraries are shared objects.
16708
deplibs_check_method=$lt_deplibs_check_method
16710
# Command to use when deplibs_check_method == file_magic.
16711
file_magic_cmd=$lt_file_magic_cmd
16713
# Flag that allows shared libraries with undefined symbols to be built.
16714
allow_undefined_flag=$lt_allow_undefined_flag_F77
16716
# Flag that forces no undefined symbols.
16717
no_undefined_flag=$lt_no_undefined_flag_F77
16719
# Commands used to finish a libtool library installation in a directory.
16720
finish_cmds=$lt_finish_cmds
16722
# Same as above, but a single script fragment to be evaled but not shown.
16723
finish_eval=$lt_finish_eval
16725
# Take the output of nm and produce a listing of raw symbols and C names.
16726
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16728
# Transform the output of nm in a proper C declaration
16729
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16731
# Transform the output of nm in a C name address pair
16732
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16734
# This is the shared library runtime path variable.
16735
runpath_var=$runpath_var
16737
# This is the shared library path variable.
16738
shlibpath_var=$shlibpath_var
16740
# Is shlibpath searched before the hard-coded library search path?
16741
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16743
# How to hardcode a shared library path into an executable.
16744
hardcode_action=$hardcode_action_F77
16746
# Whether we should hardcode library paths into libraries.
16747
hardcode_into_libs=$hardcode_into_libs
16749
# Flag to hardcode \$libdir into a binary during linking.
16750
# This must work even if \$libdir does not exist.
16751
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16753
# If ld is used when linking, flag to hardcode \$libdir into
16754
# a binary during linking. This must work even if \$libdir does
16756
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16758
# Whether we need a single -rpath flag with a separated argument.
16759
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16761
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762
# resulting binary.
16763
hardcode_direct=$hardcode_direct_F77
16765
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766
# resulting binary.
16767
hardcode_minus_L=$hardcode_minus_L_F77
16769
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770
# the resulting binary.
16771
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16773
# Set to yes if building a shared library automatically hardcodes DIR into the library
16774
# and all subsequent libraries and executables linked against it.
16775
hardcode_automatic=$hardcode_automatic_F77
16777
# Variables whose values should be saved in libtool wrapper scripts and
16778
# restored at relink time.
16779
variables_saved_for_relink="$variables_saved_for_relink"
16781
# Whether libtool must link a program against all its dependency libraries.
16782
link_all_deplibs=$link_all_deplibs_F77
16784
# Compile-time system search path for libraries
16785
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16787
# Run-time system search path for libraries
16788
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16790
# Fix the shell variable \$srcfile for the compiler.
16791
fix_srcfile_path="$fix_srcfile_path_F77"
16793
# Set to yes if exported symbols are required.
16794
always_export_symbols=$always_export_symbols_F77
16796
# The commands to list exported symbols.
16797
export_symbols_cmds=$lt_export_symbols_cmds_F77
16799
# The commands to extract the exported symbol list from a shared archive.
16800
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16802
# Symbols that should not be listed in the preloaded symbols.
16803
exclude_expsyms=$lt_exclude_expsyms_F77
16805
# Symbols that must always be exported.
16806
include_expsyms=$lt_include_expsyms_F77
16808
# ### END LIBTOOL TAG CONFIG: $tagname
16814
# If there is no Makefile yet, we rely on a make rule to execute
16815
# `config.status --recheck' to rerun these tests and create the
16816
# libtool script then.
16817
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16818
if test -f "$ltmain_in"; then
16819
test -f Makefile && make "$ltmain"
16825
ac_cpp='$CPP $CPPFLAGS'
16826
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16838
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16841
# Source file extension for Java test sources.
16844
# Object file extension for compiled Java test sources.
16848
# Code to be used in simple compile tests
16849
lt_simple_compile_test_code="class foo {}\n"
16851
# Code to be used in simple link tests
16852
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16854
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16856
# If no C compiler was specified, use CC.
16859
# Allow CC to be a program name with arguments.
16863
# Allow CC to be a program name with arguments.
16869
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16870
archive_cmds_need_lc_GCJ=no
16873
## There is no encapsulation within the following macros, do not change
16874
## the running order or otherwise move them around unless you know exactly
16875
## what you are doing...
16877
lt_prog_compiler_no_builtin_flag_GCJ=
16879
if test "$GCC" = yes; then
16880
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16883
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16884
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16885
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16886
echo $ECHO_N "(cached) $ECHO_C" >&6
16888
lt_cv_prog_compiler_rtti_exceptions=no
16889
ac_outfile=conftest.$ac_objext
16890
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16891
lt_compiler_flag="-fno-rtti -fno-exceptions"
16892
# Insert the option either (1) after the last *FLAGS variable, or
16893
# (2) before a word containing "conftest.", or (3) at the end.
16894
# Note that $ac_compile itself does not contain backslashes and begins
16895
# with a dollar sign (not a hyphen), so the echo should work correctly.
16896
# The option is referenced via a variable to avoid confusing sed.
16897
lt_compile=`echo "$ac_compile" | $SED \
16898
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16899
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16900
-e 's:$: $lt_compiler_flag:'`
16901
(eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
16902
(eval "$lt_compile" 2>conftest.err)
16904
cat conftest.err >&5
16905
echo "$as_me:16905: \$? = $ac_status" >&5
16906
if (exit $ac_status) && test -s "$ac_outfile"; then
16907
# The compiler can only warn and ignore the option if not recognized
16908
# So say no if there are warnings
16909
if test ! -s conftest.err; then
16910
lt_cv_prog_compiler_rtti_exceptions=yes
16916
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16919
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16927
lt_prog_compiler_wl_GCJ=
16928
lt_prog_compiler_pic_GCJ=
16929
lt_prog_compiler_static_GCJ=
16931
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16934
if test "$GCC" = yes; then
16935
lt_prog_compiler_wl_GCJ='-Wl,'
16936
lt_prog_compiler_static_GCJ='-static'
16940
# All AIX code is PIC.
16941
if test "$host_cpu" = ia64; then
16942
# AIX 5 now supports IA64 processor
16943
lt_prog_compiler_static_GCJ='-Bstatic'
16948
# FIXME: we need at least 68020 code to build shared libraries, but
16949
# adding the `-m68020' flag to GCC prevents building anything better,
16951
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16954
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955
# PIC is the default for these OSes.
16958
mingw* | pw32* | os2*)
16959
# This hack is so that the source file can tell whether it is being
16960
# built for inclusion in a dll (and should export symbols for example).
16961
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16964
darwin* | rhapsody*)
16965
# PIC is the default on this platform
16966
# Common symbols not allowed in MH_DYLIB files
16967
lt_prog_compiler_pic_GCJ='-fno-common'
16971
# Just because we use GCC doesn't mean we suddenly get shared libraries
16972
# on systems that don't support them.
16973
lt_prog_compiler_can_build_shared_GCJ=no
16978
if test -d /usr/nec; then
16979
lt_prog_compiler_pic_GCJ=-Kconform_pic
16984
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16985
# not for PA HP-UX.
16986
case "$host_cpu" in
16991
lt_prog_compiler_pic_GCJ='-fPIC'
16997
lt_prog_compiler_pic_GCJ='-fPIC'
17001
# PORTME Check for flag to pass linker flags through the system compiler.
17004
lt_prog_compiler_wl_GCJ='-Wl,'
17005
if test "$host_cpu" = ia64; then
17006
# AIX 5 now supports IA64 processor
17007
lt_prog_compiler_static_GCJ='-Bstatic'
17009
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17013
mingw* | pw32* | os2*)
17014
# This hack is so that the source file can tell whether it is being
17015
# built for inclusion in a dll (and should export symbols for example).
17016
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17019
hpux9* | hpux10* | hpux11*)
17020
lt_prog_compiler_wl_GCJ='-Wl,'
17021
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17022
# not for PA HP-UX.
17023
case "$host_cpu" in
17028
lt_prog_compiler_pic_GCJ='+Z'
17031
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17032
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17035
irix5* | irix6* | nonstopux*)
17036
lt_prog_compiler_wl_GCJ='-Wl,'
17037
# PIC (with -KPIC) is the default.
17038
lt_prog_compiler_static_GCJ='-non_shared'
17042
lt_prog_compiler_pic_GCJ='-KPIC'
17043
lt_prog_compiler_static_GCJ='-Bstatic'
17049
lt_prog_compiler_wl_GCJ='-Wl,'
17050
lt_prog_compiler_pic_GCJ='-KPIC'
17051
lt_prog_compiler_static_GCJ='-static'
17054
lt_prog_compiler_wl_GCJ='-Wl,'
17055
# All Alpha code is PIC.
17056
lt_prog_compiler_static_GCJ='-non_shared'
17061
osf3* | osf4* | osf5*)
17062
lt_prog_compiler_wl_GCJ='-Wl,'
17063
# All OSF/1 code is PIC.
17064
lt_prog_compiler_static_GCJ='-non_shared'
17068
lt_prog_compiler_pic_GCJ='-Kpic'
17069
lt_prog_compiler_static_GCJ='-dn'
17073
lt_prog_compiler_wl_GCJ='-Wl,'
17074
lt_prog_compiler_pic_GCJ='-KPIC'
17075
lt_prog_compiler_static_GCJ='-Bstatic'
17079
lt_prog_compiler_wl_GCJ='-Qoption ld '
17080
lt_prog_compiler_pic_GCJ='-PIC'
17081
lt_prog_compiler_static_GCJ='-Bstatic'
17084
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17085
lt_prog_compiler_wl_GCJ='-Wl,'
17086
lt_prog_compiler_pic_GCJ='-KPIC'
17087
lt_prog_compiler_static_GCJ='-Bstatic'
17091
if test -d /usr/nec ;then
17092
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17093
lt_prog_compiler_static_GCJ='-Bstatic'
17098
lt_prog_compiler_pic_GCJ='-pic'
17099
lt_prog_compiler_static_GCJ='-Bstatic'
17103
lt_prog_compiler_can_build_shared_GCJ=no
17108
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17109
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17112
# Check to make sure the PIC flag actually works.
17114
if test -n "$lt_prog_compiler_pic_GCJ"; then
17116
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17117
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17118
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17119
echo $ECHO_N "(cached) $ECHO_C" >&6
17121
lt_prog_compiler_pic_works_GCJ=no
17122
ac_outfile=conftest.$ac_objext
17123
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17124
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17125
# Insert the option either (1) after the last *FLAGS variable, or
17126
# (2) before a word containing "conftest.", or (3) at the end.
17127
# Note that $ac_compile itself does not contain backslashes and begins
17128
# with a dollar sign (not a hyphen), so the echo should work correctly.
17129
# The option is referenced via a variable to avoid confusing sed.
17130
lt_compile=`echo "$ac_compile" | $SED \
17131
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17132
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17133
-e 's:$: $lt_compiler_flag:'`
17134
(eval echo "\"\$as_me:17134: $lt_compile\"" >&5)
17135
(eval "$lt_compile" 2>conftest.err)
17137
cat conftest.err >&5
17138
echo "$as_me:17138: \$? = $ac_status" >&5
17139
if (exit $ac_status) && test -s "$ac_outfile"; then
17140
# The compiler can only warn and ignore the option if not recognized
17141
# So say no if there are warnings
17142
if test ! -s conftest.err; then
17143
lt_prog_compiler_pic_works_GCJ=yes
17149
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17150
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17152
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17153
case $lt_prog_compiler_pic_GCJ in
17155
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17158
lt_prog_compiler_pic_GCJ=
17159
lt_prog_compiler_can_build_shared_GCJ=no
17164
# For platforms which do not support PIC, -DPIC is meaningless:
17166
lt_prog_compiler_pic_GCJ=
17169
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17173
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17174
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17175
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17176
echo $ECHO_N "(cached) $ECHO_C" >&6
17178
lt_cv_prog_compiler_c_o_GCJ=no
17179
$rm -r conftest 2>/dev/null
17183
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17185
lt_compiler_flag="-o out/conftest2.$ac_objext"
17186
# Insert the option either (1) after the last *FLAGS variable, or
17187
# (2) before a word containing "conftest.", or (3) at the end.
17188
# Note that $ac_compile itself does not contain backslashes and begins
17189
# with a dollar sign (not a hyphen), so the echo should work correctly.
17190
lt_compile=`echo "$ac_compile" | $SED \
17191
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17192
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193
-e 's:$: $lt_compiler_flag:'`
17194
(eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195
(eval "$lt_compile" 2>out/conftest.err)
17197
cat out/conftest.err >&5
17198
echo "$as_me:17198: \$? = $ac_status" >&5
17199
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17201
# The compiler can only warn and ignore the option if not recognized
17202
# So say no if there are warnings
17203
if test ! -s out/conftest.err; then
17204
lt_cv_prog_compiler_c_o_GCJ=yes
17209
# SGI C++ compiler will create directory out/ii_files/ for
17210
# template instantiation
17211
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17212
$rm out/* && rmdir out
17218
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17219
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17222
hard_links="nottested"
17223
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17224
# do not overwrite the value of need_locks provided by the user
17225
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17226
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17229
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17231
ln conftest.a conftest.b 2>&5 || hard_links=no
17232
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17233
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17234
echo "${ECHO_T}$hard_links" >&6; }
17235
if test "$hard_links" = no; then
17236
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17237
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17244
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17245
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17248
allow_undefined_flag_GCJ=
17249
enable_shared_with_static_runtimes_GCJ=no
17251
archive_expsym_cmds_GCJ=
17252
old_archive_From_new_cmds_GCJ=
17253
old_archive_from_expsyms_cmds_GCJ=
17254
export_dynamic_flag_spec_GCJ=
17255
whole_archive_flag_spec_GCJ=
17256
thread_safe_flag_spec_GCJ=
17257
hardcode_libdir_flag_spec_GCJ=
17258
hardcode_libdir_flag_spec_ld_GCJ=
17259
hardcode_libdir_separator_GCJ=
17260
hardcode_direct_GCJ=no
17261
hardcode_minus_L_GCJ=no
17262
hardcode_shlibpath_var_GCJ=unsupported
17263
link_all_deplibs_GCJ=unknown
17264
hardcode_automatic_GCJ=no
17266
module_expsym_cmds_GCJ=
17267
always_export_symbols_GCJ=no
17268
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17269
# include_expsyms should be a list of space-separated symbols to be *always*
17270
# included in the symbol list
17271
include_expsyms_GCJ=
17272
# exclude_expsyms can be an extended regexp of symbols to exclude
17273
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17274
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17275
# as well as any symbol that contains `d'.
17276
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17277
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17278
# platforms (ab)use it in PIC code, but their linkers get confused if
17279
# the symbol is explicitly referenced. Since portable code cannot
17280
# rely on this symbol name, it's probably fine to never include it in
17281
# preloaded symbol tables.
17282
extract_expsyms_cmds=
17285
cygwin* | mingw* | pw32*)
17286
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17287
# When not using gcc, we currently assume that we are using
17288
# Microsoft Visual C++.
17289
if test "$GCC" != yes; then
17299
if test "$with_gnu_ld" = yes; then
17300
# If archive_cmds runs LD, not CC, wlarc should be empty
17303
# See if GNU ld supports shared libraries.
17305
aix3* | aix4* | aix5*)
17306
# On AIX/PPC, the GNU linker is very broken
17307
if test "$host_cpu" != ia64; then
17311
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17312
*** to be unable to reliably create shared libraries on AIX.
17313
*** Therefore, libtool is disabling shared libraries support. If you
17314
*** really care for shared libraries, you may want to modify your PATH
17315
*** so that a non-GNU linker is found, and then restart.
17322
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17323
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17324
hardcode_minus_L_GCJ=yes
17326
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17327
# that the semantics of dynamic libraries on AmigaOS, at least up
17328
# to version 4, is to share data among multiple programs linked
17329
# with the same dynamic library. Since this doesn't match the
17330
# behavior of shared libraries on other platforms, we can't use
17336
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337
allow_undefined_flag_GCJ=unsupported
17338
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17339
# support --undefined. This deserves some investigation. FIXME
17340
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17346
cygwin* | mingw* | pw32*)
17347
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17348
# as there is no search path for DLLs.
17349
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350
allow_undefined_flag_GCJ=unsupported
17351
always_export_symbols_GCJ=no
17352
enable_shared_with_static_runtimes_GCJ=yes
17353
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17355
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17356
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17357
# If the export-symbols file already is a .def file (1st line
17358
# is EXPORTS), use it as is; otherwise, prepend...
17359
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17360
cp $export_symbols $output_objdir/$soname.def;
17362
echo EXPORTS > $output_objdir/$soname.def;
17363
cat $export_symbols >> $output_objdir/$soname.def;
17365
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17371
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17372
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17373
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17376
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17382
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17386
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17387
*** create shared libraries on Solaris systems. Therefore, libtool
17388
*** is disabling shared libraries support. We urge you to upgrade GNU
17389
*** binutils to release 2.9.1 or newer. Another option is to modify
17390
*** your PATH or compiler configuration so that the native linker is
17391
*** used, and then restart.
17394
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17403
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17405
hardcode_direct_GCJ=yes
17406
hardcode_shlibpath_var_GCJ=no
17410
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412
archive_cmds_GCJ="$tmp_archive_cmds"
17413
supports_anon_versioning=no
17414
case `$LD -v 2>/dev/null` in
17415
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17416
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17417
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17418
*\ 2.11.*) ;; # other 2.11 versions
17419
*) supports_anon_versioning=yes ;;
17421
if test $supports_anon_versioning = yes; then
17422
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17423
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17424
$echo "local: *; };" >> $output_objdir/$libname.ver~
17425
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17427
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17429
link_all_deplibs_GCJ=no
17436
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17437
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17438
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17445
if test "$ld_shlibs_GCJ" = yes; then
17446
runpath_var=LD_RUN_PATH
17447
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17448
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17449
# ancient GNU ld didn't support --whole-archive et. al.
17450
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17451
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17453
whole_archive_flag_spec_GCJ=
17457
# PORTME fill in a description of your system's linker (not GNU ld)
17460
allow_undefined_flag_GCJ=unsupported
17461
always_export_symbols_GCJ=yes
17462
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17463
# Note: this linker hardcodes the directories in LIBPATH if there
17464
# are no directories specified by -L.
17465
hardcode_minus_L_GCJ=yes
17466
if test "$GCC" = yes && test -z "$link_static_flag"; then
17467
# Neither direct hardcoding nor static linking is supported with a
17469
hardcode_direct_GCJ=unsupported
17474
if test "$host_cpu" = ia64; then
17475
# On IA64, the linker does run time linking by default, so we don't
17476
# have to do anything special.
17477
aix_use_runtimelinking=no
17478
exp_sym_flag='-Bexport'
17481
# If we're using GNU nm, then we don't want the "-C" option.
17482
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17483
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17484
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17486
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17488
aix_use_runtimelinking=no
17490
# Test if we are trying to use run time linking or normal
17491
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17492
# need to do runtime linking.
17493
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17494
for ld_flag in $LDFLAGS; do
17495
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17496
aix_use_runtimelinking=yes
17502
exp_sym_flag='-bexport'
17503
no_entry_flag='-bnoentry'
17506
# When large executables or shared objects are built, AIX ld can
17507
# have problems creating the table of contents. If linking a library
17508
# or program results in "error TOC overflow" add -mminimal-toc to
17509
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17510
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17512
archive_cmds_GCJ=''
17513
hardcode_direct_GCJ=yes
17514
hardcode_libdir_separator_GCJ=':'
17515
link_all_deplibs_GCJ=yes
17517
if test "$GCC" = yes; then
17518
case $host_os in aix4.012|aix4.012.*)
17519
# We only want to do this on AIX 4.2 and lower, the check
17520
# below for broken collect2 doesn't work under 4.3+
17521
collect2name=`${CC} -print-prog-name=collect2`
17522
if test -f "$collect2name" && \
17523
strings "$collect2name" | grep resolve_lib_name >/dev/null
17525
# We have reworked collect2
17526
hardcode_direct_GCJ=yes
17528
# We have old collect2
17529
hardcode_direct_GCJ=unsupported
17530
# It fails to find uninstalled libraries when the uninstalled
17531
# path is not listed in the libpath. Setting hardcode_minus_L
17532
# to unsupported forces relinking
17533
hardcode_minus_L_GCJ=yes
17534
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17535
hardcode_libdir_separator_GCJ=
17538
shared_flag='-shared'
17541
if test "$host_cpu" = ia64; then
17542
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17543
# chokes on -Wl,-G. The following line is correct:
17546
if test "$aix_use_runtimelinking" = yes; then
17547
shared_flag='${wl}-G'
17549
shared_flag='${wl}-bM:SRE'
17554
# It seems that -bexpall does not export symbols beginning with
17555
# underscore (_), so it is better to generate a list of symbols to export.
17556
always_export_symbols_GCJ=yes
17557
if test "$aix_use_runtimelinking" = yes; then
17558
# Warning - without using the other runtime loading flags (-brtl),
17559
# -berok will link without error, but may produce a broken library.
17560
allow_undefined_flag_GCJ='-berok'
17561
# Determine the default libpath from the value encoded in an empty executable.
17562
cat >conftest.$ac_ext <<_ACEOF
17565
cat confdefs.h >>conftest.$ac_ext
17566
cat >>conftest.$ac_ext <<_ACEOF
17567
/* end confdefs.h. */
17577
rm -f conftest.$ac_objext conftest$ac_exeext
17578
if { (ac_try="$ac_link"
17579
case "(($ac_try" in
17580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581
*) ac_try_echo=$ac_try;;
17583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584
(eval "$ac_link") 2>conftest.er1
17586
grep -v '^ *+' conftest.er1 >conftest.err
17588
cat conftest.err >&5
17589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590
(exit $ac_status); } && {
17591
test -z "$ac_c_werror_flag" ||
17592
test ! -s conftest.err
17593
} && test -s conftest$ac_exeext &&
17594
$as_test_x conftest$ac_exeext; then
17596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17598
# Check for a 64-bit object if we didn't find anything.
17599
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17602
echo "$as_me: failed program was:" >&5
17603
sed 's/^/| /' conftest.$ac_ext >&5
17608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609
conftest$ac_exeext conftest.$ac_ext
17610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17612
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17613
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"
17615
if test "$host_cpu" = ia64; then
17616
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17617
allow_undefined_flag_GCJ="-z nodefs"
17618
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"
17620
# Determine the default libpath from the value encoded in an empty executable.
17621
cat >conftest.$ac_ext <<_ACEOF
17624
cat confdefs.h >>conftest.$ac_ext
17625
cat >>conftest.$ac_ext <<_ACEOF
17626
/* end confdefs.h. */
17636
rm -f conftest.$ac_objext conftest$ac_exeext
17637
if { (ac_try="$ac_link"
17638
case "(($ac_try" in
17639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640
*) ac_try_echo=$ac_try;;
17642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643
(eval "$ac_link") 2>conftest.er1
17645
grep -v '^ *+' conftest.er1 >conftest.err
17647
cat conftest.err >&5
17648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649
(exit $ac_status); } && {
17650
test -z "$ac_c_werror_flag" ||
17651
test ! -s conftest.err
17652
} && test -s conftest$ac_exeext &&
17653
$as_test_x conftest$ac_exeext; then
17655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17657
# Check for a 64-bit object if we didn't find anything.
17658
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17661
echo "$as_me: failed program was:" >&5
17662
sed 's/^/| /' conftest.$ac_ext >&5
17667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668
conftest$ac_exeext conftest.$ac_ext
17669
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17671
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672
# Warning - without using the other run time loading flags,
17673
# -berok will link without error, but may produce a broken library.
17674
no_undefined_flag_GCJ=' ${wl}-bernotok'
17675
allow_undefined_flag_GCJ=' ${wl}-berok'
17676
# -bexpall does not export symbols beginning with underscore (_)
17677
always_export_symbols_GCJ=yes
17678
# Exported symbols can be pulled into shared objects from archives
17679
whole_archive_flag_spec_GCJ=' '
17680
archive_cmds_need_lc_GCJ=yes
17681
# This is similar to how AIX traditionally builds it's shared libraries.
17682
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'
17688
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17689
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17690
hardcode_minus_L_GCJ=yes
17691
# see comment about different semantics on the GNU ld section
17696
export_dynamic_flag_spec_GCJ=-rdynamic
17699
cygwin* | mingw* | pw32*)
17700
# When not using gcc, we currently assume that we are using
17701
# Microsoft Visual C++.
17702
# hardcode_libdir_flag_spec is actually meaningless, as there is
17703
# no search path for DLLs.
17704
hardcode_libdir_flag_spec_GCJ=' '
17705
allow_undefined_flag_GCJ=unsupported
17706
# Tell ltmain to make .lib files, not .a files.
17708
# Tell ltmain to make .dll files, not .so files.
17710
# FIXME: Setting linknames here is a bad hack.
17711
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17712
# The linker will automatically build a .lib file if we build a DLL.
17713
old_archive_From_new_cmds_GCJ='true'
17714
# FIXME: Should let the user specify the lib program.
17715
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17716
fix_srcfile_path='`cygpath -w "$srcfile"`'
17717
enable_shared_with_static_runtimes_GCJ=yes
17720
darwin* | rhapsody*)
17721
if test "$GXX" = yes ; then
17722
archive_cmds_need_lc_GCJ=no
17724
rhapsody* | darwin1.[012])
17725
allow_undefined_flag_GCJ='-undefined suppress'
17728
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17729
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17731
case ${MACOSX_DEPLOYMENT_TARGET} in
17733
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17736
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17742
lt_int_apple_cc_single_mod=no
17743
output_verbose_link_cmd='echo'
17744
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17745
lt_int_apple_cc_single_mod=yes
17747
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17748
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17750
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'
17752
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17753
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17754
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17755
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}'
17757
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}'
17759
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}'
17760
hardcode_direct_GCJ=no
17761
hardcode_automatic_GCJ=yes
17762
hardcode_shlibpath_var_GCJ=unsupported
17763
whole_archive_flag_spec_GCJ='-all_load $convenience'
17764
link_all_deplibs_GCJ=yes
17771
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17772
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773
hardcode_shlibpath_var_GCJ=no
17780
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17781
# support. Future versions do this automatically, but an explicit c++rt0.o
17782
# does not break anything, and helps significantly (at the cost of a little
17785
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17786
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17787
hardcode_direct_GCJ=yes
17788
hardcode_shlibpath_var_GCJ=no
17791
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17793
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17794
hardcode_direct_GCJ=yes
17795
hardcode_minus_L_GCJ=yes
17796
hardcode_shlibpath_var_GCJ=no
17799
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17800
freebsd* | kfreebsd*-gnu)
17801
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17802
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17803
hardcode_direct_GCJ=yes
17804
hardcode_shlibpath_var_GCJ=no
17808
if test "$GCC" = yes; then
17809
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17811
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17813
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17814
hardcode_libdir_separator_GCJ=:
17815
hardcode_direct_GCJ=yes
17817
# hardcode_minus_L: Not really in the search PATH,
17818
# but as the default location of the library.
17819
hardcode_minus_L_GCJ=yes
17820
export_dynamic_flag_spec_GCJ='${wl}-E'
17824
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17825
case "$host_cpu" in
17827
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17830
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834
case "$host_cpu" in
17836
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17839
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17843
if test "$with_gnu_ld" = no; then
17844
case "$host_cpu" in
17846
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17847
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17848
hardcode_libdir_separator_GCJ=:
17849
hardcode_direct_GCJ=no
17850
hardcode_shlibpath_var_GCJ=no
17853
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17854
hardcode_direct_GCJ=no
17855
hardcode_shlibpath_var_GCJ=no
17857
# hardcode_minus_L: Not really in the search PATH,
17858
# but as the default location of the library.
17859
hardcode_minus_L_GCJ=yes
17862
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17863
hardcode_libdir_separator_GCJ=:
17864
hardcode_direct_GCJ=yes
17865
export_dynamic_flag_spec_GCJ='${wl}-E'
17867
# hardcode_minus_L: Not really in the search PATH,
17868
# but as the default location of the library.
17869
hardcode_minus_L_GCJ=yes
17875
irix5* | irix6* | nonstopux*)
17876
if test "$GCC" = yes; then
17877
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17879
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17880
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17882
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17883
hardcode_libdir_separator_GCJ=:
17884
link_all_deplibs_GCJ=yes
17887
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17888
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17889
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17891
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17893
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17894
hardcode_direct_GCJ=yes
17895
hardcode_shlibpath_var_GCJ=no
17899
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900
hardcode_direct_GCJ=yes
17901
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17902
hardcode_libdir_separator_GCJ=:
17903
hardcode_shlibpath_var_GCJ=no
17907
hardcode_direct_GCJ=yes
17908
hardcode_shlibpath_var_GCJ=no
17909
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17910
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17911
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17912
export_dynamic_flag_spec_GCJ='${wl}-E'
17915
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17916
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17917
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17920
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17921
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17928
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929
hardcode_minus_L_GCJ=yes
17930
allow_undefined_flag_GCJ=unsupported
17931
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17932
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17936
if test "$GCC" = yes; then
17937
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17938
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17940
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17941
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17943
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944
hardcode_libdir_separator_GCJ=:
17947
osf4* | osf5*) # as osf3* with the addition of -msym flag
17948
if test "$GCC" = yes; then
17949
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17950
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17951
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17954
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'
17955
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~
17956
$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'
17958
# Both c and cxx compiler support -rpath directly
17959
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17961
hardcode_libdir_separator_GCJ=:
17965
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966
hardcode_shlibpath_var_GCJ=no
17967
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17968
runpath_var=LD_RUN_PATH
17969
hardcode_runpath_var=yes
17973
no_undefined_flag_GCJ=' -z text'
17974
if test "$GCC" = yes; then
17975
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17976
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17977
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17979
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17983
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17984
hardcode_shlibpath_var_GCJ=no
17986
solaris2.[0-5] | solaris2.[0-5].*) ;;
17987
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17988
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17990
link_all_deplibs_GCJ=yes
17994
if test "x$host_vendor" = xsequent; then
17995
# Use $CC to link under sequent, because it throws in some extra .o
17996
# files that make .init and .fini sections work.
17997
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17999
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18001
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002
hardcode_direct_GCJ=yes
18003
hardcode_minus_L_GCJ=yes
18004
hardcode_shlibpath_var_GCJ=no
18008
case $host_vendor in
18010
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011
hardcode_direct_GCJ=yes # is this really true???
18014
## LD is ld it makes a PLAMLIB
18015
## CC just makes a GrossModule.
18016
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18017
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18018
hardcode_direct_GCJ=no
18021
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18025
runpath_var='LD_RUN_PATH'
18026
hardcode_shlibpath_var_GCJ=no
18030
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031
hardcode_shlibpath_var_GCJ=no
18032
export_dynamic_flag_spec_GCJ='-Bexport'
18036
if test -d /usr/nec; then
18037
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038
hardcode_shlibpath_var_GCJ=no
18039
runpath_var=LD_RUN_PATH
18040
hardcode_runpath_var=yes
18046
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047
hardcode_direct_GCJ=yes
18048
hardcode_minus_L_GCJ=no
18049
hardcode_shlibpath_var_GCJ=no
18050
hardcode_runpath_var=yes
18051
runpath_var=LD_RUN_PATH
18054
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18055
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18056
if test "$GCC" = yes; then
18057
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061
runpath_var='LD_RUN_PATH'
18062
hardcode_shlibpath_var_GCJ=no
18066
no_undefined_flag_GCJ=' -z text'
18067
# $CC -shared without GNU ld will not create a library from C++
18068
# object files and a static libstdc++, better avoid it by now
18069
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18071
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18072
hardcode_libdir_flag_spec_GCJ=
18073
hardcode_shlibpath_var_GCJ=no
18074
runpath_var='LD_RUN_PATH'
18078
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18080
hardcode_shlibpath_var_GCJ=no
18089
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18090
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18091
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18093
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18094
if test "$GCC" = yes; then
18095
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18099
# Do we need to explicitly link libc?
18101
case "x$archive_cmds_need_lc_GCJ" in
18103
# Assume -lc should be added
18104
archive_cmds_need_lc_GCJ=yes
18106
if test "$enable_shared" = yes && test "$GCC" = yes; then
18107
case $archive_cmds_GCJ in
18109
# FIXME: we may have to deal with multi-command sequences.
18112
# Test whether the compiler implicitly links with -lc since on some
18113
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18114
# to ld, don't add -lc before -lgcc.
18115
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18116
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18118
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18121
(eval $ac_compile) 2>&5
18123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124
(exit $ac_status); } 2>conftest.err; then
18127
libobjs=conftest.$ac_objext
18129
wl=$lt_prog_compiler_wl_GCJ
18135
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18136
allow_undefined_flag_GCJ=
18137
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18138
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141
(exit $ac_status); }
18143
archive_cmds_need_lc_GCJ=no
18145
archive_cmds_need_lc_GCJ=yes
18147
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18149
cat conftest.err 1>&5
18152
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18153
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18160
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18161
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18162
library_names_spec=
18163
libname_spec='lib$name'
18167
postuninstall_cmds=
18171
shlibpath_overrides_runpath=unknown
18173
dynamic_linker="$host_os ld.so"
18174
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18175
if test "$GCC" = yes; then
18176
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18177
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18178
# if the path contains ";" then we assume it to be the separator
18179
# otherwise default to the standard path separator (i.e. ":") - it is
18180
# assumed that no part of a normal pathname contains ";" but that should
18181
# okay in the real world where ";" in dirpaths is itself problematic.
18182
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18184
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18187
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18189
need_lib_prefix=unknown
18190
hardcode_into_libs=no
18192
# when you set need_version to no, make sure it does not cause -set_version
18193
# flags to be left without arguments
18194
need_version=unknown
18199
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18200
shlibpath_var=LIBPATH
18202
# AIX 3 has no versioning support, so we append a major version to the name.
18203
soname_spec='${libname}${release}${shared_ext}$major'
18210
hardcode_into_libs=yes
18211
if test "$host_cpu" = ia64; then
18212
# AIX 5 supports IA64
18213
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18214
shlibpath_var=LD_LIBRARY_PATH
18216
# With GCC up to 2.95.x, collect2 would create an import file
18217
# for dependence libraries. The import file would start with
18218
# the line `#! .'. This would cause the generated library to
18219
# depend on `.', always an invalid library. This was fixed in
18220
# development snapshots of GCC prior to 3.0.
18222
aix4 | aix4.[01] | aix4.[01].*)
18223
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18225
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18228
can_build_shared=no
18232
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18233
# soname into executable. Probably we can add versioning support to
18234
# collect2, so additional links can be useful in future.
18235
if test "$aix_use_runtimelinking" = yes; then
18236
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18237
# instead of lib<name>.a to let people know that these are not
18238
# typical AIX shared libraries.
18239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241
# We preserve .a as extension for shared libraries through AIX4.2
18242
# and later when we are not doing run time linking.
18243
library_names_spec='${libname}${release}.a $libname.a'
18244
soname_spec='${libname}${release}${shared_ext}$major'
18246
shlibpath_var=LIBPATH
18251
library_names_spec='$libname.ixlibrary $libname.a'
18252
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18253
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18257
library_names_spec='${libname}${shared_ext}'
18258
dynamic_linker="$host_os ld.so"
18259
shlibpath_var=LIBRARY_PATH
18265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266
soname_spec='${libname}${release}${shared_ext}$major'
18267
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18268
shlibpath_var=LD_LIBRARY_PATH
18269
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18270
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18271
# the default ld.so.conf also contains /usr/contrib/lib and
18272
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18273
# libtool to hard-code these into programs
18276
cygwin* | mingw* | pw32*)
18277
version_type=windows
18282
case $GCC,$host_os in
18283
yes,cygwin* | yes,mingw* | yes,pw32*)
18284
library_names_spec='$libname.dll.a'
18285
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18286
postinstall_cmds='base_file=`basename \${file}`~
18287
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18288
dldir=$destdir/`dirname \$dlpath`~
18289
test -d \$dldir || mkdir -p \$dldir~
18290
$install_prog $dir/$dlname \$dldir/$dlname'
18291
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18292
dlpath=$dir/\$dldll~
18294
shlibpath_overrides_runpath=yes
18298
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18299
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18303
# MinGW DLLs use traditional 'lib' prefix
18304
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18305
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18306
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18307
# It is most probably a Windows format PATH printed by
18308
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18309
# path with ; separators, and with drive letters. We can handle the
18310
# drive letters (cygwin fileutils understands them), so leave them,
18311
# especially as we might pass files found there to a mingw objdump,
18312
# which wouldn't understand a cygwinified path. Ahh.
18313
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18315
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18319
# pw32 DLLs use 'pw' prefix rather than 'lib'
18320
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18326
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18329
dynamic_linker='Win32 ld.exe'
18330
# FIXME: first we should search . and the directory the executable is in
18334
darwin* | rhapsody*)
18335
dynamic_linker="$host_os dyld"
18336
version_type=darwin
18339
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18340
soname_spec='${libname}${release}${major}$shared_ext'
18341
shlibpath_overrides_runpath=yes
18342
shlibpath_var=DYLD_LIBRARY_PATH
18343
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18344
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18345
if test "$GCC" = yes; then
18346
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"`
18348
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18350
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18358
soname_spec='${libname}${release}${shared_ext}$major'
18359
shlibpath_var=LD_LIBRARY_PATH
18370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18371
soname_spec='${libname}${release}${shared_ext}$major'
18372
shlibpath_var=LD_LIBRARY_PATH
18373
shlibpath_overrides_runpath=no
18374
hardcode_into_libs=yes
18375
dynamic_linker='GNU ld.so'
18379
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18380
version_type=freebsd-$objformat
18381
case $version_type in
18383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18388
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18392
shlibpath_var=LD_LIBRARY_PATH
18395
shlibpath_overrides_runpath=yes
18397
freebsd3.01* | freebsdelf3.01*)
18398
shlibpath_overrides_runpath=yes
18399
hardcode_into_libs=yes
18402
shlibpath_overrides_runpath=no
18403
hardcode_into_libs=yes
18412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18413
soname_spec='${libname}${release}${shared_ext}$major'
18414
shlibpath_var=LD_LIBRARY_PATH
18415
hardcode_into_libs=yes
18418
hpux9* | hpux10* | hpux11*)
18419
# Give a soname corresponding to the major version so that dld.sl refuses to
18420
# link against other versions.
18424
case "$host_cpu" in
18427
hardcode_into_libs=yes
18428
dynamic_linker="$host_os dld.so"
18429
shlibpath_var=LD_LIBRARY_PATH
18430
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432
soname_spec='${libname}${release}${shared_ext}$major'
18433
if test "X$HPUX_IA64_MODE" = X32; then
18434
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18436
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18438
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18442
hardcode_into_libs=yes
18443
dynamic_linker="$host_os dld.sl"
18444
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18445
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447
soname_spec='${libname}${release}${shared_ext}$major'
18448
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18449
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18453
dynamic_linker="$host_os dld.sl"
18454
shlibpath_var=SHLIB_PATH
18455
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457
soname_spec='${libname}${release}${shared_ext}$major'
18460
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18461
postinstall_cmds='chmod 555 $lib'
18464
irix5* | irix6* | nonstopux*)
18466
nonstopux*) version_type=nonstopux ;;
18468
if test "$lt_cv_prog_gnu_ld" = yes; then
18476
soname_spec='${libname}${release}${shared_ext}$major'
18477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18479
irix5* | nonstopux*)
18480
libsuff= shlibsuff=
18483
case $LD in # libtool.m4 will add one of these switches to LD
18484
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485
libsuff= shlibsuff= libmagic=32-bit;;
18486
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487
libsuff=32 shlibsuff=N32 libmagic=N32;;
18488
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490
*) libsuff= shlibsuff= libmagic=never-match;;
18494
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495
shlibpath_overrides_runpath=no
18496
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18498
hardcode_into_libs=yes
18501
# No shared lib support for Linux oldld, aout, or coff.
18502
linux*oldld* | linux*aout* | linux*coff*)
18506
# This must be Linux ELF.
18511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512
soname_spec='${libname}${release}${shared_ext}$major'
18513
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514
shlibpath_var=LD_LIBRARY_PATH
18515
shlibpath_overrides_runpath=no
18516
# This implies no fast_install, which is unacceptable.
18517
# Some rework will be needed to allow for fast_install
18518
# before this can be enabled.
18519
hardcode_into_libs=yes
18521
# Append ld.so.conf contents to the search path
18522
if test -f /etc/ld.so.conf; then
18523
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18524
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18527
# We used to test for /lib/ld.so.1 and disable shared libraries on
18528
# powerpc, because MkLinux only supported shared libraries with the
18529
# GNU dynamic linker. Since this was broken with cross compilers,
18530
# most powerpc-linux boxes support dynamic linking these days and
18531
# people can always --disable-shared, the test was removed, and we
18532
# assume the GNU/Linux dynamic linker is in use.
18533
dynamic_linker='GNU/Linux ld.so'
18540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541
soname_spec='${libname}${release}${shared_ext}$major'
18542
shlibpath_var=LD_LIBRARY_PATH
18543
shlibpath_overrides_runpath=no
18544
hardcode_into_libs=yes
18545
dynamic_linker='NetBSD ld.elf_so'
18552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18553
soname_spec='${libname}${release}${shared_ext}$major'
18554
shlibpath_var=LD_LIBRARY_PATH
18555
shlibpath_overrides_runpath=no
18556
hardcode_into_libs=yes
18557
dynamic_linker='GNU ld.so'
18564
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567
dynamic_linker='NetBSD (a.out) ld.so'
18569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18570
soname_spec='${libname}${release}${shared_ext}$major'
18571
dynamic_linker='NetBSD ld.elf_so'
18573
shlibpath_var=LD_LIBRARY_PATH
18574
shlibpath_overrides_runpath=yes
18575
hardcode_into_libs=yes
18580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581
shlibpath_var=LD_LIBRARY_PATH
18582
shlibpath_overrides_runpath=yes
18589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590
soname_spec='${libname}${release}${shared_ext}$major'
18591
shlibpath_var=LD_LIBRARY_PATH
18592
shlibpath_overrides_runpath=yes
18599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601
shlibpath_var=LD_LIBRARY_PATH
18602
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18604
openbsd2.[89] | openbsd2.[89].*)
18605
shlibpath_overrides_runpath=no
18608
shlibpath_overrides_runpath=yes
18612
shlibpath_overrides_runpath=yes
18617
libname_spec='$name'
18620
library_names_spec='$libname${shared_ext} $libname.a'
18621
dynamic_linker='OS/2 ld.exe'
18622
shlibpath_var=LIBPATH
18625
osf3* | osf4* | osf5*)
18629
soname_spec='${libname}${release}${shared_ext}$major'
18630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631
shlibpath_var=LD_LIBRARY_PATH
18632
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18633
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18638
soname_spec='${libname}${release}${shared_ext}$major'
18639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640
shlibpath_var=LD_LIBRARY_PATH
18647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648
soname_spec='${libname}${release}${shared_ext}$major'
18649
shlibpath_var=LD_LIBRARY_PATH
18650
shlibpath_overrides_runpath=yes
18651
hardcode_into_libs=yes
18652
# ldd complains unless libraries are executable
18653
postinstall_cmds='chmod +x $lib'
18658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18659
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18660
shlibpath_var=LD_LIBRARY_PATH
18661
shlibpath_overrides_runpath=yes
18662
if test "$with_gnu_ld" = yes; then
18668
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671
soname_spec='${libname}${release}${shared_ext}$major'
18672
shlibpath_var=LD_LIBRARY_PATH
18673
case $host_vendor in
18675
shlibpath_overrides_runpath=no
18677
export_dynamic_flag_spec='${wl}-Blargedynsym'
18678
runpath_var=LD_RUN_PATH
18686
shlibpath_overrides_runpath=no
18687
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18693
if test -d /usr/nec ;then
18695
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18696
soname_spec='$libname${shared_ext}.$major'
18697
shlibpath_var=LD_LIBRARY_PATH
18703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704
soname_spec='${libname}${release}${shared_ext}$major'
18705
shlibpath_var=LD_LIBRARY_PATH
18712
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18713
echo "${ECHO_T}$dynamic_linker" >&6; }
18714
test "$dynamic_linker" = no && can_build_shared=no
18716
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18717
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18718
hardcode_action_GCJ=
18719
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18720
test -n "$runpath_var GCJ" || \
18721
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18723
# We can hardcode non-existant directories.
18724
if test "$hardcode_direct_GCJ" != no &&
18725
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18726
# have to relink, otherwise we might link with an installed library
18727
# when we should be linking with a yet-to-be-installed one
18728
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18729
test "$hardcode_minus_L_GCJ" != no; then
18730
# Linking always hardcodes the temporary library directory.
18731
hardcode_action_GCJ=relink
18733
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18734
hardcode_action_GCJ=immediate
18737
# We cannot hardcode anything, or else we can only hardcode existing
18739
hardcode_action_GCJ=unsupported
18741
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18742
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18744
if test "$hardcode_action_GCJ" = relink; then
18745
# Fast installation is not supported
18746
enable_fast_install=no
18747
elif test "$shlibpath_overrides_runpath" = yes ||
18748
test "$enable_shared" = no; then
18749
# Fast installation is not necessary
18750
enable_fast_install=needless
18755
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18756
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18757
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18758
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18759
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18760
{ echo "$as_me:$LINENO: result: yes" >&5
18761
echo "${ECHO_T}yes" >&6; }
18763
# FIXME - insert some real tests, host_os isn't really good enough
18766
if test -n "$STRIP" ; then
18767
striplib="$STRIP -x"
18768
{ echo "$as_me:$LINENO: result: yes" >&5
18769
echo "${ECHO_T}yes" >&6; }
18771
{ echo "$as_me:$LINENO: result: no" >&5
18772
echo "${ECHO_T}no" >&6; }
18776
{ echo "$as_me:$LINENO: result: no" >&5
18777
echo "${ECHO_T}no" >&6; }
18782
if test "x$enable_dlopen" != xyes; then
18783
enable_dlopen=unknown
18784
enable_dlopen_self=unknown
18785
enable_dlopen_self_static=unknown
18792
lt_cv_dlopen="load_add_on"
18794
lt_cv_dlopen_self=yes
18798
lt_cv_dlopen="LoadLibrary"
18803
lt_cv_dlopen="dlopen"
18808
# if libdl is installed we need to link against it
18809
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18810
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18811
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18812
echo $ECHO_N "(cached) $ECHO_C" >&6
18814
ac_check_lib_save_LIBS=$LIBS
18816
cat >conftest.$ac_ext <<_ACEOF
18819
cat confdefs.h >>conftest.$ac_ext
18820
cat >>conftest.$ac_ext <<_ACEOF
18821
/* end confdefs.h. */
18823
/* Override any GCC internal prototype to avoid an error.
18824
Use char because int might match the return type of a GCC
18825
builtin and then its argument prototype would still apply. */
18838
rm -f conftest.$ac_objext conftest$ac_exeext
18839
if { (ac_try="$ac_link"
18840
case "(($ac_try" in
18841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842
*) ac_try_echo=$ac_try;;
18844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845
(eval "$ac_link") 2>conftest.er1
18847
grep -v '^ *+' conftest.er1 >conftest.err
18849
cat conftest.err >&5
18850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851
(exit $ac_status); } && {
18852
test -z "$ac_c_werror_flag" ||
18853
test ! -s conftest.err
18854
} && test -s conftest$ac_exeext &&
18855
$as_test_x conftest$ac_exeext; then
18856
ac_cv_lib_dl_dlopen=yes
18858
echo "$as_me: failed program was:" >&5
18859
sed 's/^/| /' conftest.$ac_ext >&5
18861
ac_cv_lib_dl_dlopen=no
18864
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865
conftest$ac_exeext conftest.$ac_ext
18866
LIBS=$ac_check_lib_save_LIBS
18868
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18869
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18870
if test $ac_cv_lib_dl_dlopen = yes; then
18871
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18874
lt_cv_dlopen="dyld"
18876
lt_cv_dlopen_self=yes
18883
{ echo "$as_me:$LINENO: checking for shl_load" >&5
18884
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18885
if test "${ac_cv_func_shl_load+set}" = set; then
18886
echo $ECHO_N "(cached) $ECHO_C" >&6
18888
cat >conftest.$ac_ext <<_ACEOF
18891
cat confdefs.h >>conftest.$ac_ext
18892
cat >>conftest.$ac_ext <<_ACEOF
18893
/* end confdefs.h. */
18894
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18895
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18896
#define shl_load innocuous_shl_load
18898
/* System header to define __stub macros and hopefully few prototypes,
18899
which can conflict with char shl_load (); below.
18900
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18901
<limits.h> exists even on freestanding compilers. */
18904
# include <limits.h>
18906
# include <assert.h>
18911
/* Override any GCC internal prototype to avoid an error.
18912
Use char because int might match the return type of a GCC
18913
builtin and then its argument prototype would still apply. */
18918
/* The GNU C library defines this for functions which it implements
18919
to always fail with ENOSYS. Some functions are actually named
18920
something starting with __ and the normal name is an alias. */
18921
#if defined __stub_shl_load || defined __stub___shl_load
18928
return shl_load ();
18933
rm -f conftest.$ac_objext conftest$ac_exeext
18934
if { (ac_try="$ac_link"
18935
case "(($ac_try" in
18936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937
*) ac_try_echo=$ac_try;;
18939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940
(eval "$ac_link") 2>conftest.er1
18942
grep -v '^ *+' conftest.er1 >conftest.err
18944
cat conftest.err >&5
18945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946
(exit $ac_status); } && {
18947
test -z "$ac_c_werror_flag" ||
18948
test ! -s conftest.err
18949
} && test -s conftest$ac_exeext &&
18950
$as_test_x conftest$ac_exeext; then
18951
ac_cv_func_shl_load=yes
18953
echo "$as_me: failed program was:" >&5
18954
sed 's/^/| /' conftest.$ac_ext >&5
18956
ac_cv_func_shl_load=no
18959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960
conftest$ac_exeext conftest.$ac_ext
18962
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18963
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18964
if test $ac_cv_func_shl_load = yes; then
18965
lt_cv_dlopen="shl_load"
18967
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18968
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18969
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18970
echo $ECHO_N "(cached) $ECHO_C" >&6
18972
ac_check_lib_save_LIBS=$LIBS
18974
cat >conftest.$ac_ext <<_ACEOF
18977
cat confdefs.h >>conftest.$ac_ext
18978
cat >>conftest.$ac_ext <<_ACEOF
18979
/* end confdefs.h. */
18981
/* Override any GCC internal prototype to avoid an error.
18982
Use char because int might match the return type of a GCC
18983
builtin and then its argument prototype would still apply. */
18991
return shl_load ();
18996
rm -f conftest.$ac_objext conftest$ac_exeext
18997
if { (ac_try="$ac_link"
18998
case "(($ac_try" in
18999
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000
*) ac_try_echo=$ac_try;;
19002
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003
(eval "$ac_link") 2>conftest.er1
19005
grep -v '^ *+' conftest.er1 >conftest.err
19007
cat conftest.err >&5
19008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009
(exit $ac_status); } && {
19010
test -z "$ac_c_werror_flag" ||
19011
test ! -s conftest.err
19012
} && test -s conftest$ac_exeext &&
19013
$as_test_x conftest$ac_exeext; then
19014
ac_cv_lib_dld_shl_load=yes
19016
echo "$as_me: failed program was:" >&5
19017
sed 's/^/| /' conftest.$ac_ext >&5
19019
ac_cv_lib_dld_shl_load=no
19022
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023
conftest$ac_exeext conftest.$ac_ext
19024
LIBS=$ac_check_lib_save_LIBS
19026
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19027
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19028
if test $ac_cv_lib_dld_shl_load = yes; then
19029
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19031
{ echo "$as_me:$LINENO: checking for dlopen" >&5
19032
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
19033
if test "${ac_cv_func_dlopen+set}" = set; then
19034
echo $ECHO_N "(cached) $ECHO_C" >&6
19036
cat >conftest.$ac_ext <<_ACEOF
19039
cat confdefs.h >>conftest.$ac_ext
19040
cat >>conftest.$ac_ext <<_ACEOF
19041
/* end confdefs.h. */
19042
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19043
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044
#define dlopen innocuous_dlopen
19046
/* System header to define __stub macros and hopefully few prototypes,
19047
which can conflict with char dlopen (); below.
19048
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049
<limits.h> exists even on freestanding compilers. */
19052
# include <limits.h>
19054
# include <assert.h>
19059
/* Override any GCC internal prototype to avoid an error.
19060
Use char because int might match the return type of a GCC
19061
builtin and then its argument prototype would still apply. */
19066
/* The GNU C library defines this for functions which it implements
19067
to always fail with ENOSYS. Some functions are actually named
19068
something starting with __ and the normal name is an alias. */
19069
#if defined __stub_dlopen || defined __stub___dlopen
19081
rm -f conftest.$ac_objext conftest$ac_exeext
19082
if { (ac_try="$ac_link"
19083
case "(($ac_try" in
19084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085
*) ac_try_echo=$ac_try;;
19087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088
(eval "$ac_link") 2>conftest.er1
19090
grep -v '^ *+' conftest.er1 >conftest.err
19092
cat conftest.err >&5
19093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
(exit $ac_status); } && {
19095
test -z "$ac_c_werror_flag" ||
19096
test ! -s conftest.err
19097
} && test -s conftest$ac_exeext &&
19098
$as_test_x conftest$ac_exeext; then
19099
ac_cv_func_dlopen=yes
19101
echo "$as_me: failed program was:" >&5
19102
sed 's/^/| /' conftest.$ac_ext >&5
19104
ac_cv_func_dlopen=no
19107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108
conftest$ac_exeext conftest.$ac_ext
19110
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19111
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19112
if test $ac_cv_func_dlopen = yes; then
19113
lt_cv_dlopen="dlopen"
19115
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19116
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19117
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19118
echo $ECHO_N "(cached) $ECHO_C" >&6
19120
ac_check_lib_save_LIBS=$LIBS
19122
cat >conftest.$ac_ext <<_ACEOF
19125
cat confdefs.h >>conftest.$ac_ext
19126
cat >>conftest.$ac_ext <<_ACEOF
19127
/* end confdefs.h. */
19129
/* Override any GCC internal prototype to avoid an error.
19130
Use char because int might match the return type of a GCC
19131
builtin and then its argument prototype would still apply. */
19144
rm -f conftest.$ac_objext conftest$ac_exeext
19145
if { (ac_try="$ac_link"
19146
case "(($ac_try" in
19147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148
*) ac_try_echo=$ac_try;;
19150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151
(eval "$ac_link") 2>conftest.er1
19153
grep -v '^ *+' conftest.er1 >conftest.err
19155
cat conftest.err >&5
19156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
(exit $ac_status); } && {
19158
test -z "$ac_c_werror_flag" ||
19159
test ! -s conftest.err
19160
} && test -s conftest$ac_exeext &&
19161
$as_test_x conftest$ac_exeext; then
19162
ac_cv_lib_dl_dlopen=yes
19164
echo "$as_me: failed program was:" >&5
19165
sed 's/^/| /' conftest.$ac_ext >&5
19167
ac_cv_lib_dl_dlopen=no
19170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19171
conftest$ac_exeext conftest.$ac_ext
19172
LIBS=$ac_check_lib_save_LIBS
19174
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19175
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19176
if test $ac_cv_lib_dl_dlopen = yes; then
19177
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19179
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19180
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19181
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19182
echo $ECHO_N "(cached) $ECHO_C" >&6
19184
ac_check_lib_save_LIBS=$LIBS
19185
LIBS="-lsvld $LIBS"
19186
cat >conftest.$ac_ext <<_ACEOF
19189
cat confdefs.h >>conftest.$ac_ext
19190
cat >>conftest.$ac_ext <<_ACEOF
19191
/* end confdefs.h. */
19193
/* Override any GCC internal prototype to avoid an error.
19194
Use char because int might match the return type of a GCC
19195
builtin and then its argument prototype would still apply. */
19208
rm -f conftest.$ac_objext conftest$ac_exeext
19209
if { (ac_try="$ac_link"
19210
case "(($ac_try" in
19211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212
*) ac_try_echo=$ac_try;;
19214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215
(eval "$ac_link") 2>conftest.er1
19217
grep -v '^ *+' conftest.er1 >conftest.err
19219
cat conftest.err >&5
19220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221
(exit $ac_status); } && {
19222
test -z "$ac_c_werror_flag" ||
19223
test ! -s conftest.err
19224
} && test -s conftest$ac_exeext &&
19225
$as_test_x conftest$ac_exeext; then
19226
ac_cv_lib_svld_dlopen=yes
19228
echo "$as_me: failed program was:" >&5
19229
sed 's/^/| /' conftest.$ac_ext >&5
19231
ac_cv_lib_svld_dlopen=no
19234
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235
conftest$ac_exeext conftest.$ac_ext
19236
LIBS=$ac_check_lib_save_LIBS
19238
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19239
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19240
if test $ac_cv_lib_svld_dlopen = yes; then
19241
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19243
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19244
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19245
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19246
echo $ECHO_N "(cached) $ECHO_C" >&6
19248
ac_check_lib_save_LIBS=$LIBS
19250
cat >conftest.$ac_ext <<_ACEOF
19253
cat confdefs.h >>conftest.$ac_ext
19254
cat >>conftest.$ac_ext <<_ACEOF
19255
/* end confdefs.h. */
19257
/* Override any GCC internal prototype to avoid an error.
19258
Use char because int might match the return type of a GCC
19259
builtin and then its argument prototype would still apply. */
19267
return dld_link ();
19272
rm -f conftest.$ac_objext conftest$ac_exeext
19273
if { (ac_try="$ac_link"
19274
case "(($ac_try" in
19275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276
*) ac_try_echo=$ac_try;;
19278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279
(eval "$ac_link") 2>conftest.er1
19281
grep -v '^ *+' conftest.er1 >conftest.err
19283
cat conftest.err >&5
19284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285
(exit $ac_status); } && {
19286
test -z "$ac_c_werror_flag" ||
19287
test ! -s conftest.err
19288
} && test -s conftest$ac_exeext &&
19289
$as_test_x conftest$ac_exeext; then
19290
ac_cv_lib_dld_dld_link=yes
19292
echo "$as_me: failed program was:" >&5
19293
sed 's/^/| /' conftest.$ac_ext >&5
19295
ac_cv_lib_dld_dld_link=no
19298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19299
conftest$ac_exeext conftest.$ac_ext
19300
LIBS=$ac_check_lib_save_LIBS
19302
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19303
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19304
if test $ac_cv_lib_dld_dld_link = yes; then
19305
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19326
if test "x$lt_cv_dlopen" != xno; then
19332
case $lt_cv_dlopen in
19334
save_CPPFLAGS="$CPPFLAGS"
19335
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19337
save_LDFLAGS="$LDFLAGS"
19338
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19341
LIBS="$lt_cv_dlopen_libs $LIBS"
19343
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19344
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19345
if test "${lt_cv_dlopen_self+set}" = set; then
19346
echo $ECHO_N "(cached) $ECHO_C" >&6
19348
if test "$cross_compiling" = yes; then :
19349
lt_cv_dlopen_self=cross
19351
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19352
lt_status=$lt_dlunknown
19353
cat > conftest.$ac_ext <<EOF
19354
#line 19354 "configure"
19355
#include "confdefs.h"
19364
# define LT_DLGLOBAL RTLD_GLOBAL
19367
# define LT_DLGLOBAL DL_GLOBAL
19369
# define LT_DLGLOBAL 0
19373
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19374
find out it does not work in some platform. */
19375
#ifndef LT_DLLAZY_OR_NOW
19377
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19380
# define LT_DLLAZY_OR_NOW DL_LAZY
19383
# define LT_DLLAZY_OR_NOW RTLD_NOW
19386
# define LT_DLLAZY_OR_NOW DL_NOW
19388
# define LT_DLLAZY_OR_NOW 0
19396
extern "C" void exit (int);
19399
void fnord() { int i=42;}
19402
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19403
int status = $lt_dlunknown;
19407
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19408
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19409
/* dlclose (self); */
19415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416
(eval $ac_link) 2>&5
19418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19420
(./conftest; exit; ) 2>/dev/null
19422
case x$lt_status in
19423
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19424
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19425
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19428
# compilation failed
19429
lt_cv_dlopen_self=no
19436
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19437
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19439
if test "x$lt_cv_dlopen_self" = xyes; then
19440
LDFLAGS="$LDFLAGS $link_static_flag"
19441
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19442
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19443
if test "${lt_cv_dlopen_self_static+set}" = set; then
19444
echo $ECHO_N "(cached) $ECHO_C" >&6
19446
if test "$cross_compiling" = yes; then :
19447
lt_cv_dlopen_self_static=cross
19449
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19450
lt_status=$lt_dlunknown
19451
cat > conftest.$ac_ext <<EOF
19452
#line 19452 "configure"
19453
#include "confdefs.h"
19462
# define LT_DLGLOBAL RTLD_GLOBAL
19465
# define LT_DLGLOBAL DL_GLOBAL
19467
# define LT_DLGLOBAL 0
19471
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19472
find out it does not work in some platform. */
19473
#ifndef LT_DLLAZY_OR_NOW
19475
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19478
# define LT_DLLAZY_OR_NOW DL_LAZY
19481
# define LT_DLLAZY_OR_NOW RTLD_NOW
19484
# define LT_DLLAZY_OR_NOW DL_NOW
19486
# define LT_DLLAZY_OR_NOW 0
19494
extern "C" void exit (int);
19497
void fnord() { int i=42;}
19500
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19501
int status = $lt_dlunknown;
19505
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19506
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19507
/* dlclose (self); */
19513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514
(eval $ac_link) 2>&5
19516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19518
(./conftest; exit; ) 2>/dev/null
19520
case x$lt_status in
19521
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19522
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19523
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19526
# compilation failed
19527
lt_cv_dlopen_self_static=no
19534
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19535
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19538
CPPFLAGS="$save_CPPFLAGS"
19539
LDFLAGS="$save_LDFLAGS"
19544
case $lt_cv_dlopen_self in
19545
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19546
*) enable_dlopen_self=unknown ;;
19549
case $lt_cv_dlopen_self_static in
19550
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19551
*) enable_dlopen_self_static=unknown ;;
19556
# The else clause should only fire when bootstrapping the
19557
# libtool distribution, otherwise you forgot to ship ltmain.sh
19558
# with your package, and you will get complaints that there are
19559
# no rules to generate ltmain.sh.
19560
if test -f "$ltmain"; then
19561
# See if we are running on zsh, and set the options which allow our commands through
19562
# without removal of \ escapes.
19563
if test -n "${ZSH_VERSION+set}" ; then
19564
setopt NO_GLOB_SUBST
19566
# Now quote all the things that may contain metacharacters while being
19567
# careful not to overquote the AC_SUBSTed values. We take copies of the
19568
# variables and quote the copies for generation of the libtool script.
19569
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19571
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19572
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19573
deplibs_check_method reload_flag reload_cmds need_locks \
19574
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19575
lt_cv_sys_global_symbol_to_c_name_address \
19576
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19577
old_postinstall_cmds old_postuninstall_cmds \
19581
lt_prog_compiler_wl_GCJ \
19582
lt_prog_compiler_pic_GCJ \
19583
lt_prog_compiler_static_GCJ \
19584
lt_prog_compiler_no_builtin_flag_GCJ \
19585
export_dynamic_flag_spec_GCJ \
19586
thread_safe_flag_spec_GCJ \
19587
whole_archive_flag_spec_GCJ \
19588
enable_shared_with_static_runtimes_GCJ \
19589
old_archive_cmds_GCJ \
19590
old_archive_from_new_cmds_GCJ \
19591
predep_objects_GCJ \
19592
postdep_objects_GCJ \
19595
compiler_lib_search_path_GCJ \
19597
archive_expsym_cmds_GCJ \
19598
postinstall_cmds_GCJ \
19599
postuninstall_cmds_GCJ \
19600
old_archive_from_expsyms_cmds_GCJ \
19601
allow_undefined_flag_GCJ \
19602
no_undefined_flag_GCJ \
19603
export_symbols_cmds_GCJ \
19604
hardcode_libdir_flag_spec_GCJ \
19605
hardcode_libdir_flag_spec_ld_GCJ \
19606
hardcode_libdir_separator_GCJ \
19607
hardcode_automatic_GCJ \
19609
module_expsym_cmds_GCJ \
19610
lt_cv_prog_compiler_c_o_GCJ \
19611
exclude_expsyms_GCJ \
19612
include_expsyms_GCJ; do
19615
old_archive_cmds_GCJ | \
19616
old_archive_from_new_cmds_GCJ | \
19617
archive_cmds_GCJ | \
19618
archive_expsym_cmds_GCJ | \
19619
module_cmds_GCJ | \
19620
module_expsym_cmds_GCJ | \
19621
old_archive_from_expsyms_cmds_GCJ | \
19622
export_symbols_cmds_GCJ | \
19623
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19624
postinstall_cmds | postuninstall_cmds | \
19625
old_postinstall_cmds | old_postuninstall_cmds | \
19626
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19627
# Double-quote double-evaled strings.
19628
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19631
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19637
*'\$0 --fallback-echo"')
19638
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19644
cat <<__EOF__ >> "$cfgfile"
19645
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19647
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19649
# Shell to use when invoking shell scripts.
19652
# Whether or not to build shared libraries.
19653
build_libtool_libs=$enable_shared
19655
# Whether or not to build static libraries.
19656
build_old_libs=$enable_static
19658
# Whether or not to add -lc for building shared libraries.
19659
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19661
# Whether or not to disallow shared libs when runtime libs are static
19662
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19664
# Whether or not to optimize for fast installation.
19665
fast_install=$enable_fast_install
19668
host_alias=$host_alias
19671
# An echo program that does not interpret backslashes.
19676
AR_FLAGS=$lt_AR_FLAGS
19681
# A language-specific compiler.
19682
CC=$lt_compiler_GCJ
19684
# Is the compiler the GNU C compiler?
19690
# The linker used to build libraries.
19693
# Whether we need hard or soft links.
19696
# A BSD-compatible nm program.
19699
# A symbol stripping program
19702
# Used to examine libraries when file_magic_cmd begins "file"
19703
MAGIC_CMD=$MAGIC_CMD
19705
# Used on cygwin: DLL creation program.
19708
# Used on cygwin: object dumper.
19711
# Used on cygwin: assembler.
19714
# The name of the directory that contains temporary libtool files.
19717
# How to create reloadable object files.
19718
reload_flag=$lt_reload_flag
19719
reload_cmds=$lt_reload_cmds
19721
# How to pass a linker flag through the compiler.
19722
wl=$lt_lt_prog_compiler_wl_GCJ
19724
# Object file suffix (normally "o").
19725
objext="$ac_objext"
19727
# Old archive suffix (normally "a").
19730
# Shared library suffix (normally ".so").
19731
shrext_cmds='$shrext_cmds'
19733
# Executable file suffix (normally "").
19736
# Additional compiler flags for building library objects.
19737
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19740
# What is the maximum length of a command?
19741
max_cmd_len=$lt_cv_sys_max_cmd_len
19743
# Does compiler simultaneously support -c and -o options?
19744
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19746
# Must we lock files when doing compilation ?
19747
need_locks=$lt_need_locks
19749
# Do we need the lib prefix for modules?
19750
need_lib_prefix=$need_lib_prefix
19752
# Do we need a version for libraries?
19753
need_version=$need_version
19755
# Whether dlopen is supported.
19756
dlopen_support=$enable_dlopen
19758
# Whether dlopen of programs is supported.
19759
dlopen_self=$enable_dlopen_self
19761
# Whether dlopen of statically linked programs is supported.
19762
dlopen_self_static=$enable_dlopen_self_static
19764
# Compiler flag to prevent dynamic linking.
19765
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19767
# Compiler flag to turn off builtin functions.
19768
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19770
# Compiler flag to allow reflexive dlopens.
19771
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19773
# Compiler flag to generate shared objects directly from archives.
19774
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19776
# Compiler flag to generate thread-safe objects.
19777
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19779
# Library versioning type.
19780
version_type=$version_type
19782
# Format of library name prefix.
19783
libname_spec=$lt_libname_spec
19785
# List of archive names. First name is the real one, the rest are links.
19786
# The last name is the one that the linker finds with -lNAME.
19787
library_names_spec=$lt_library_names_spec
19789
# The coded name of the library, if different from the real name.
19790
soname_spec=$lt_soname_spec
19792
# Commands used to build and install an old-style archive.
19794
old_archive_cmds=$lt_old_archive_cmds_GCJ
19795
old_postinstall_cmds=$lt_old_postinstall_cmds
19796
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19798
# Create an old-style archive from a shared archive.
19799
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19801
# Create a temporary old-style archive to link instead of a shared archive.
19802
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19804
# Commands used to build and install a shared archive.
19805
archive_cmds=$lt_archive_cmds_GCJ
19806
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19807
postinstall_cmds=$lt_postinstall_cmds
19808
postuninstall_cmds=$lt_postuninstall_cmds
19810
# Commands used to build a loadable module (assumed same as above if empty)
19811
module_cmds=$lt_module_cmds_GCJ
19812
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19814
# Commands to strip libraries.
19815
old_striplib=$lt_old_striplib
19816
striplib=$lt_striplib
19818
# Dependencies to place before the objects being linked to create a
19820
predep_objects=$lt_predep_objects_GCJ
19822
# Dependencies to place after the objects being linked to create a
19824
postdep_objects=$lt_postdep_objects_GCJ
19826
# Dependencies to place before the objects being linked to create a
19828
predeps=$lt_predeps_GCJ
19830
# Dependencies to place after the objects being linked to create a
19832
postdeps=$lt_postdeps_GCJ
19834
# The library search path used internally by the compiler when linking
19835
# a shared library.
19836
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19838
# Method to check whether dependent libraries are shared objects.
19839
deplibs_check_method=$lt_deplibs_check_method
19841
# Command to use when deplibs_check_method == file_magic.
19842
file_magic_cmd=$lt_file_magic_cmd
19844
# Flag that allows shared libraries with undefined symbols to be built.
19845
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19847
# Flag that forces no undefined symbols.
19848
no_undefined_flag=$lt_no_undefined_flag_GCJ
19850
# Commands used to finish a libtool library installation in a directory.
19851
finish_cmds=$lt_finish_cmds
19853
# Same as above, but a single script fragment to be evaled but not shown.
19854
finish_eval=$lt_finish_eval
19856
# Take the output of nm and produce a listing of raw symbols and C names.
19857
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19859
# Transform the output of nm in a proper C declaration
19860
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19862
# Transform the output of nm in a C name address pair
19863
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19865
# This is the shared library runtime path variable.
19866
runpath_var=$runpath_var
19868
# This is the shared library path variable.
19869
shlibpath_var=$shlibpath_var
19871
# Is shlibpath searched before the hard-coded library search path?
19872
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19874
# How to hardcode a shared library path into an executable.
19875
hardcode_action=$hardcode_action_GCJ
19877
# Whether we should hardcode library paths into libraries.
19878
hardcode_into_libs=$hardcode_into_libs
19880
# Flag to hardcode \$libdir into a binary during linking.
19881
# This must work even if \$libdir does not exist.
19882
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19884
# If ld is used when linking, flag to hardcode \$libdir into
19885
# a binary during linking. This must work even if \$libdir does
19887
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19889
# Whether we need a single -rpath flag with a separated argument.
19890
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19892
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19893
# resulting binary.
19894
hardcode_direct=$hardcode_direct_GCJ
19896
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19897
# resulting binary.
19898
hardcode_minus_L=$hardcode_minus_L_GCJ
19900
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19901
# the resulting binary.
19902
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19904
# Set to yes if building a shared library automatically hardcodes DIR into the library
19905
# and all subsequent libraries and executables linked against it.
19906
hardcode_automatic=$hardcode_automatic_GCJ
19908
# Variables whose values should be saved in libtool wrapper scripts and
19909
# restored at relink time.
19910
variables_saved_for_relink="$variables_saved_for_relink"
19912
# Whether libtool must link a program against all its dependency libraries.
19913
link_all_deplibs=$link_all_deplibs_GCJ
19915
# Compile-time system search path for libraries
19916
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19918
# Run-time system search path for libraries
19919
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19921
# Fix the shell variable \$srcfile for the compiler.
19922
fix_srcfile_path="$fix_srcfile_path_GCJ"
19924
# Set to yes if exported symbols are required.
19925
always_export_symbols=$always_export_symbols_GCJ
19927
# The commands to list exported symbols.
19928
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19930
# The commands to extract the exported symbol list from a shared archive.
19931
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19933
# Symbols that should not be listed in the preloaded symbols.
19934
exclude_expsyms=$lt_exclude_expsyms_GCJ
19936
# Symbols that must always be exported.
19937
include_expsyms=$lt_include_expsyms_GCJ
19939
# ### END LIBTOOL TAG CONFIG: $tagname
19945
# If there is no Makefile yet, we rely on a make rule to execute
19946
# `config.status --recheck' to rerun these tests and create the
19947
# libtool script then.
19948
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19949
if test -f "$ltmain_in"; then
19950
test -f Makefile && make "$ltmain"
19956
ac_cpp='$CPP $CPPFLAGS'
19957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11062
if test -n "$RANLIB"; then
11063
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11064
postinstall_cmds='$RANLIB $lib'
11069
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11070
test "$enable_shared" = yes && enable_static=no
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11075
$as_echo "$enable_shared" >&6; }
11077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11078
$as_echo_n "checking whether to build static libraries... " >&6; }
11079
# Make sure either enable_shared or enable_static is yes.
11080
test "$enable_shared" = yes || enable_static=yes
11081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11082
$as_echo "$enable_static" >&6; }
11089
ac_cpp='$CPP $CPPFLAGS'
11090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
ac_config_commands="$ac_config_commands libtool"
11113
# Only expand once:
11116
if test -n "$ac_tool_prefix"; then
11117
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11118
set dummy ${ac_tool_prefix}windres; ac_word=$2
11119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120
$as_echo_n "checking for $ac_word... " >&6; }
11121
if test "${ac_cv_prog_RC+set}" = set; then :
11122
$as_echo_n "(cached) " >&6
11124
if test -n "$RC"; then
11125
ac_cv_prog_RC="$RC" # Let the user override the test.
11127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128
for as_dir in $PATH
11131
test -z "$as_dir" && as_dir=.
11132
for ac_exec_ext in '' $ac_executable_extensions; do
11133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134
ac_cv_prog_RC="${ac_tool_prefix}windres"
11135
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145
if test -n "$RC"; then
11146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11147
$as_echo "$RC" >&6; }
11149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150
$as_echo "no" >&6; }
11155
if test -z "$ac_cv_prog_RC"; then
11157
# Extract the first word of "windres", so it can be a program name with args.
11158
set dummy windres; ac_word=$2
11159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160
$as_echo_n "checking for $ac_word... " >&6; }
11161
if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
11162
$as_echo_n "(cached) " >&6
11164
if test -n "$ac_ct_RC"; then
11165
ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168
for as_dir in $PATH
11171
test -z "$as_dir" && as_dir=.
11172
for ac_exec_ext in '' $ac_executable_extensions; do
11173
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174
ac_cv_prog_ac_ct_RC="windres"
11175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184
ac_ct_RC=$ac_cv_prog_ac_ct_RC
11185
if test -n "$ac_ct_RC"; then
11186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11187
$as_echo "$ac_ct_RC" >&6; }
11189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190
$as_echo "no" >&6; }
11193
if test "x$ac_ct_RC" = x; then
11196
case $cross_compiling:$ac_tool_warned in
11198
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11199
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11200
ac_tool_warned=yes ;;
11205
RC="$ac_cv_prog_RC"
19971
11211
# Source file extension for RC test sources.