8727
10548
# directories.
8728
10549
hardcode_action=unsupported
8730
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8731
echo "${ECHO_T}$hardcode_action" >&6
8733
if test "$hardcode_action" = relink; then
8734
# Fast installation is not supported
8735
enable_fast_install=no
8736
elif test "$shlibpath_overrides_runpath" = yes ||
8737
test "$enable_shared" = no; then
8738
# Fast installation is not necessary
8739
enable_fast_install=needless
8744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8747
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8748
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8749
echo "$as_me:$LINENO: result: yes" >&5
8750
echo "${ECHO_T}yes" >&6
8752
# FIXME - insert some real tests, host_os isn't really good enough
8755
if test -n "$STRIP" ; then
8756
striplib="$STRIP -x"
8757
echo "$as_me:$LINENO: result: yes" >&5
8758
echo "${ECHO_T}yes" >&6
8760
echo "$as_me:$LINENO: result: no" >&5
8761
echo "${ECHO_T}no" >&6
8765
echo "$as_me:$LINENO: result: no" >&5
8766
echo "${ECHO_T}no" >&6
8771
if test "x$enable_dlopen" != xyes; then
8772
enable_dlopen=unknown
8773
enable_dlopen_self=unknown
8774
enable_dlopen_self_static=unknown
8781
lt_cv_dlopen="load_add_on"
8783
lt_cv_dlopen_self=yes
8787
lt_cv_dlopen="LoadLibrary"
8792
lt_cv_dlopen="dlopen"
8797
# if libdl is installed we need to link against it
8798
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8799
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8800
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8801
echo $ECHO_N "(cached) $ECHO_C" >&6
8803
ac_check_lib_save_LIBS=$LIBS
8805
cat >conftest.$ac_ext <<_ACEOF
8808
cat confdefs.h >>conftest.$ac_ext
8809
cat >>conftest.$ac_ext <<_ACEOF
8810
/* end confdefs.h. */
8812
/* Override any gcc2 internal prototype to avoid an error. */
8816
/* We use char because int might match the return type of a gcc2
8817
builtin and then its argument prototype would still apply. */
8827
rm -f conftest.$ac_objext conftest$ac_exeext
8828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829
(eval $ac_link) 2>conftest.er1
8831
grep -v '^ *+' conftest.er1 >conftest.err
8833
cat conftest.err >&5
8834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835
(exit $ac_status); } &&
8836
{ ac_try='test -z "$ac_c_werror_flag"
8837
|| test ! -s conftest.err'
8838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842
(exit $ac_status); }; } &&
8843
{ ac_try='test -s conftest$ac_exeext'
8844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848
(exit $ac_status); }; }; then
8849
ac_cv_lib_dl_dlopen=yes
8851
echo "$as_me: failed program was:" >&5
8852
sed 's/^/| /' conftest.$ac_ext >&5
8854
ac_cv_lib_dl_dlopen=no
8856
rm -f conftest.err conftest.$ac_objext \
8857
conftest$ac_exeext conftest.$ac_ext
8858
LIBS=$ac_check_lib_save_LIBS
8860
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8861
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8862
if test $ac_cv_lib_dl_dlopen = yes; then
8863
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8868
lt_cv_dlopen_self=yes
8875
echo "$as_me:$LINENO: checking for shl_load" >&5
8876
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8877
if test "${ac_cv_func_shl_load+set}" = set; then
8878
echo $ECHO_N "(cached) $ECHO_C" >&6
8880
cat >conftest.$ac_ext <<_ACEOF
8883
cat confdefs.h >>conftest.$ac_ext
8884
cat >>conftest.$ac_ext <<_ACEOF
8885
/* end confdefs.h. */
8886
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8887
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8888
#define shl_load innocuous_shl_load
8890
/* System header to define __stub macros and hopefully few prototypes,
8891
which can conflict with char shl_load (); below.
8892
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893
<limits.h> exists even on freestanding compilers. */
8896
# include <limits.h>
8898
# include <assert.h>
8903
/* Override any gcc2 internal prototype to avoid an error. */
8908
/* We use char because int might match the return type of a gcc2
8909
builtin and then its argument prototype would still apply. */
8911
/* The GNU C library defines this for functions which it implements
8912
to always fail with ENOSYS. Some functions are actually named
8913
something starting with __ and the normal name is an alias. */
8914
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8917
char (*f) () = shl_load;
8926
return f != shl_load;
8931
rm -f conftest.$ac_objext conftest$ac_exeext
8932
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933
(eval $ac_link) 2>conftest.er1
8935
grep -v '^ *+' conftest.er1 >conftest.err
8937
cat conftest.err >&5
8938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939
(exit $ac_status); } &&
8940
{ ac_try='test -z "$ac_c_werror_flag"
8941
|| test ! -s conftest.err'
8942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946
(exit $ac_status); }; } &&
8947
{ ac_try='test -s conftest$ac_exeext'
8948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
(exit $ac_status); }; }; then
8953
ac_cv_func_shl_load=yes
8955
echo "$as_me: failed program was:" >&5
8956
sed 's/^/| /' conftest.$ac_ext >&5
8958
ac_cv_func_shl_load=no
8960
rm -f conftest.err conftest.$ac_objext \
8961
conftest$ac_exeext conftest.$ac_ext
8963
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8964
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8965
if test $ac_cv_func_shl_load = yes; then
8966
lt_cv_dlopen="shl_load"
8968
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8969
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8970
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8971
echo $ECHO_N "(cached) $ECHO_C" >&6
8973
ac_check_lib_save_LIBS=$LIBS
8975
cat >conftest.$ac_ext <<_ACEOF
8978
cat confdefs.h >>conftest.$ac_ext
8979
cat >>conftest.$ac_ext <<_ACEOF
8980
/* end confdefs.h. */
8982
/* Override any gcc2 internal prototype to avoid an error. */
8986
/* We use char because int might match the return type of a gcc2
8987
builtin and then its argument prototype would still apply. */
8997
rm -f conftest.$ac_objext conftest$ac_exeext
8998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999
(eval $ac_link) 2>conftest.er1
9001
grep -v '^ *+' conftest.er1 >conftest.err
9003
cat conftest.err >&5
9004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
(exit $ac_status); } &&
9006
{ ac_try='test -z "$ac_c_werror_flag"
9007
|| test ! -s conftest.err'
9008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012
(exit $ac_status); }; } &&
9013
{ ac_try='test -s conftest$ac_exeext'
9014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018
(exit $ac_status); }; }; then
9019
ac_cv_lib_dld_shl_load=yes
9021
echo "$as_me: failed program was:" >&5
9022
sed 's/^/| /' conftest.$ac_ext >&5
9024
ac_cv_lib_dld_shl_load=no
9026
rm -f conftest.err conftest.$ac_objext \
9027
conftest$ac_exeext conftest.$ac_ext
9028
LIBS=$ac_check_lib_save_LIBS
9030
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9031
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9032
if test $ac_cv_lib_dld_shl_load = yes; then
9033
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9035
echo "$as_me:$LINENO: checking for dlopen" >&5
9036
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9037
if test "${ac_cv_func_dlopen+set}" = set; then
9038
echo $ECHO_N "(cached) $ECHO_C" >&6
9040
cat >conftest.$ac_ext <<_ACEOF
9043
cat confdefs.h >>conftest.$ac_ext
9044
cat >>conftest.$ac_ext <<_ACEOF
9045
/* end confdefs.h. */
9046
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9047
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9048
#define dlopen innocuous_dlopen
9050
/* System header to define __stub macros and hopefully few prototypes,
9051
which can conflict with char dlopen (); below.
9052
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9053
<limits.h> exists even on freestanding compilers. */
9056
# include <limits.h>
9058
# include <assert.h>
9063
/* Override any gcc2 internal prototype to avoid an error. */
9068
/* We use char because int might match the return type of a gcc2
9069
builtin and then its argument prototype would still apply. */
9071
/* The GNU C library defines this for functions which it implements
9072
to always fail with ENOSYS. Some functions are actually named
9073
something starting with __ and the normal name is an alias. */
9074
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9077
char (*f) () = dlopen;
9091
rm -f conftest.$ac_objext conftest$ac_exeext
9092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093
(eval $ac_link) 2>conftest.er1
9095
grep -v '^ *+' conftest.er1 >conftest.err
9097
cat conftest.err >&5
9098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
(exit $ac_status); } &&
9100
{ ac_try='test -z "$ac_c_werror_flag"
9101
|| test ! -s conftest.err'
9102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106
(exit $ac_status); }; } &&
9107
{ ac_try='test -s conftest$ac_exeext'
9108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112
(exit $ac_status); }; }; then
9113
ac_cv_func_dlopen=yes
9115
echo "$as_me: failed program was:" >&5
9116
sed 's/^/| /' conftest.$ac_ext >&5
9118
ac_cv_func_dlopen=no
9120
rm -f conftest.err conftest.$ac_objext \
9121
conftest$ac_exeext conftest.$ac_ext
9123
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9124
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9125
if test $ac_cv_func_dlopen = yes; then
9126
lt_cv_dlopen="dlopen"
9128
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9129
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9130
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9131
echo $ECHO_N "(cached) $ECHO_C" >&6
9133
ac_check_lib_save_LIBS=$LIBS
9135
cat >conftest.$ac_ext <<_ACEOF
9138
cat confdefs.h >>conftest.$ac_ext
9139
cat >>conftest.$ac_ext <<_ACEOF
9140
/* end confdefs.h. */
9142
/* Override any gcc2 internal prototype to avoid an error. */
9146
/* We use char because int might match the return type of a gcc2
9147
builtin and then its argument prototype would still apply. */
9157
rm -f conftest.$ac_objext conftest$ac_exeext
9158
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159
(eval $ac_link) 2>conftest.er1
9161
grep -v '^ *+' conftest.er1 >conftest.err
9163
cat conftest.err >&5
9164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
(exit $ac_status); } &&
9166
{ ac_try='test -z "$ac_c_werror_flag"
9167
|| test ! -s conftest.err'
9168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172
(exit $ac_status); }; } &&
9173
{ ac_try='test -s conftest$ac_exeext'
9174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178
(exit $ac_status); }; }; then
9179
ac_cv_lib_dl_dlopen=yes
9181
echo "$as_me: failed program was:" >&5
9182
sed 's/^/| /' conftest.$ac_ext >&5
9184
ac_cv_lib_dl_dlopen=no
9186
rm -f conftest.err conftest.$ac_objext \
9187
conftest$ac_exeext conftest.$ac_ext
9188
LIBS=$ac_check_lib_save_LIBS
9190
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9191
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9192
if test $ac_cv_lib_dl_dlopen = yes; then
9193
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9195
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9196
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9197
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9198
echo $ECHO_N "(cached) $ECHO_C" >&6
9200
ac_check_lib_save_LIBS=$LIBS
9202
cat >conftest.$ac_ext <<_ACEOF
9205
cat confdefs.h >>conftest.$ac_ext
9206
cat >>conftest.$ac_ext <<_ACEOF
9207
/* end confdefs.h. */
9209
/* Override any gcc2 internal prototype to avoid an error. */
9213
/* We use char because int might match the return type of a gcc2
9214
builtin and then its argument prototype would still apply. */
9224
rm -f conftest.$ac_objext conftest$ac_exeext
9225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226
(eval $ac_link) 2>conftest.er1
9228
grep -v '^ *+' conftest.er1 >conftest.err
9230
cat conftest.err >&5
9231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232
(exit $ac_status); } &&
9233
{ ac_try='test -z "$ac_c_werror_flag"
9234
|| test ! -s conftest.err'
9235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239
(exit $ac_status); }; } &&
9240
{ ac_try='test -s conftest$ac_exeext'
9241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245
(exit $ac_status); }; }; then
9246
ac_cv_lib_svld_dlopen=yes
9248
echo "$as_me: failed program was:" >&5
9249
sed 's/^/| /' conftest.$ac_ext >&5
9251
ac_cv_lib_svld_dlopen=no
9253
rm -f conftest.err conftest.$ac_objext \
9254
conftest$ac_exeext conftest.$ac_ext
9255
LIBS=$ac_check_lib_save_LIBS
9257
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9258
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9259
if test $ac_cv_lib_svld_dlopen = yes; then
9260
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9262
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9263
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9264
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9265
echo $ECHO_N "(cached) $ECHO_C" >&6
9267
ac_check_lib_save_LIBS=$LIBS
9269
cat >conftest.$ac_ext <<_ACEOF
9272
cat confdefs.h >>conftest.$ac_ext
9273
cat >>conftest.$ac_ext <<_ACEOF
9274
/* end confdefs.h. */
9276
/* Override any gcc2 internal prototype to avoid an error. */
9280
/* We use char because int might match the return type of a gcc2
9281
builtin and then its argument prototype would still apply. */
9291
rm -f conftest.$ac_objext conftest$ac_exeext
9292
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293
(eval $ac_link) 2>conftest.er1
9295
grep -v '^ *+' conftest.er1 >conftest.err
9297
cat conftest.err >&5
9298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299
(exit $ac_status); } &&
9300
{ ac_try='test -z "$ac_c_werror_flag"
9301
|| test ! -s conftest.err'
9302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306
(exit $ac_status); }; } &&
9307
{ ac_try='test -s conftest$ac_exeext'
9308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312
(exit $ac_status); }; }; then
9313
ac_cv_lib_dld_dld_link=yes
9315
echo "$as_me: failed program was:" >&5
9316
sed 's/^/| /' conftest.$ac_ext >&5
9318
ac_cv_lib_dld_dld_link=no
9320
rm -f conftest.err conftest.$ac_objext \
9321
conftest$ac_exeext conftest.$ac_ext
9322
LIBS=$ac_check_lib_save_LIBS
9324
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9325
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9326
if test $ac_cv_lib_dld_dld_link = yes; then
9327
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9348
if test "x$lt_cv_dlopen" != xno; then
9354
case $lt_cv_dlopen in
9356
save_CPPFLAGS="$CPPFLAGS"
9357
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9359
save_LDFLAGS="$LDFLAGS"
9360
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9363
LIBS="$lt_cv_dlopen_libs $LIBS"
9365
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9366
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9367
if test "${lt_cv_dlopen_self+set}" = set; then
9368
echo $ECHO_N "(cached) $ECHO_C" >&6
9370
if test "$cross_compiling" = yes; then :
9371
lt_cv_dlopen_self=cross
9373
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9374
lt_status=$lt_dlunknown
9375
cat > conftest.$ac_ext <<EOF
9376
#line 9376 "configure"
9377
#include "confdefs.h"
9386
# define LT_DLGLOBAL RTLD_GLOBAL
9389
# define LT_DLGLOBAL DL_GLOBAL
9391
# define LT_DLGLOBAL 0
9395
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9396
find out it does not work in some platform. */
9397
#ifndef LT_DLLAZY_OR_NOW
9399
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9402
# define LT_DLLAZY_OR_NOW DL_LAZY
9405
# define LT_DLLAZY_OR_NOW RTLD_NOW
9408
# define LT_DLLAZY_OR_NOW DL_NOW
9410
# define LT_DLLAZY_OR_NOW 0
9418
extern "C" void exit (int);
9421
void fnord() { int i=42;}
9424
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9425
int status = $lt_dlunknown;
9429
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9430
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9431
/* dlclose (self); */
9437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438
(eval $ac_link) 2>&5
9440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9442
(./conftest; exit; ) 2>/dev/null
9445
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9446
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9447
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9450
# compilation failed
9451
lt_cv_dlopen_self=no
9458
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9459
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9461
if test "x$lt_cv_dlopen_self" = xyes; then
9462
LDFLAGS="$LDFLAGS $link_static_flag"
9463
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9464
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9465
if test "${lt_cv_dlopen_self_static+set}" = set; then
9466
echo $ECHO_N "(cached) $ECHO_C" >&6
9468
if test "$cross_compiling" = yes; then :
9469
lt_cv_dlopen_self_static=cross
9471
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9472
lt_status=$lt_dlunknown
9473
cat > conftest.$ac_ext <<EOF
9474
#line 9474 "configure"
9475
#include "confdefs.h"
9484
# define LT_DLGLOBAL RTLD_GLOBAL
9487
# define LT_DLGLOBAL DL_GLOBAL
9489
# define LT_DLGLOBAL 0
9493
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9494
find out it does not work in some platform. */
9495
#ifndef LT_DLLAZY_OR_NOW
9497
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9500
# define LT_DLLAZY_OR_NOW DL_LAZY
9503
# define LT_DLLAZY_OR_NOW RTLD_NOW
9506
# define LT_DLLAZY_OR_NOW DL_NOW
9508
# define LT_DLLAZY_OR_NOW 0
9516
extern "C" void exit (int);
9519
void fnord() { int i=42;}
9522
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9523
int status = $lt_dlunknown;
9527
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9528
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9529
/* dlclose (self); */
9535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536
(eval $ac_link) 2>&5
9538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9540
(./conftest; exit; ) 2>/dev/null
9543
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9544
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9545
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9548
# compilation failed
9549
lt_cv_dlopen_self_static=no
9556
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9557
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9560
CPPFLAGS="$save_CPPFLAGS"
9561
LDFLAGS="$save_LDFLAGS"
9566
case $lt_cv_dlopen_self in
9567
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9568
*) enable_dlopen_self=unknown ;;
9571
case $lt_cv_dlopen_self_static in
9572
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9573
*) enable_dlopen_self_static=unknown ;;
9578
# Report which librarie types wil actually be built
9579
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9580
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9581
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9582
echo "${ECHO_T}$can_build_shared" >&6
9584
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9585
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9586
test "$can_build_shared" = "no" && enable_shared=no
9588
# On AIX, shared libraries and static libraries use the same namespace, and
9589
# are all built from PIC.
9592
test "$enable_shared" = yes && enable_static=no
9593
if test -n "$RANLIB"; then
9594
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9595
postinstall_cmds='$RANLIB $lib'
9600
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9601
test "$enable_shared" = yes && enable_static=no
9605
echo "$as_me:$LINENO: result: $enable_shared" >&5
9606
echo "${ECHO_T}$enable_shared" >&6
9608
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9609
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9610
# Make sure either enable_shared or enable_static is yes.
9611
test "$enable_shared" = yes || enable_static=yes
9612
echo "$as_me:$LINENO: result: $enable_static" >&5
9613
echo "${ECHO_T}$enable_static" >&6
9615
# The else clause should only fire when bootstrapping the
9616
# libtool distribution, otherwise you forgot to ship ltmain.sh
9617
# with your package, and you will get complaints that there are
9618
# no rules to generate ltmain.sh.
9619
if test -f "$ltmain"; then
9620
# See if we are running on zsh, and set the options which allow our commands through
9621
# without removal of \ escapes.
9622
if test -n "${ZSH_VERSION+set}" ; then
9623
setopt NO_GLOB_SUBST
9625
# Now quote all the things that may contain metacharacters while being
9626
# careful not to overquote the AC_SUBSTed values. We take copies of the
9627
# variables and quote the copies for generation of the libtool script.
9628
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9630
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9631
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9632
deplibs_check_method reload_flag reload_cmds need_locks \
9633
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9634
lt_cv_sys_global_symbol_to_c_name_address \
9635
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9636
old_postinstall_cmds old_postuninstall_cmds \
9640
lt_prog_compiler_wl \
9641
lt_prog_compiler_pic \
9642
lt_prog_compiler_static \
9643
lt_prog_compiler_no_builtin_flag \
9644
export_dynamic_flag_spec \
9645
thread_safe_flag_spec \
9646
whole_archive_flag_spec \
9647
enable_shared_with_static_runtimes \
9649
old_archive_from_new_cmds \
9654
compiler_lib_search_path \
9656
archive_expsym_cmds \
9658
postuninstall_cmds \
9659
old_archive_from_expsyms_cmds \
9660
allow_undefined_flag \
9662
export_symbols_cmds \
9663
hardcode_libdir_flag_spec \
9664
hardcode_libdir_flag_spec_ld \
9665
hardcode_libdir_separator \
9666
hardcode_automatic \
9668
module_expsym_cmds \
9669
lt_cv_prog_compiler_c_o \
9674
old_archive_cmds | \
9675
old_archive_from_new_cmds | \
9677
archive_expsym_cmds | \
9679
module_expsym_cmds | \
9680
old_archive_from_expsyms_cmds | \
9681
export_symbols_cmds | \
9682
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9683
postinstall_cmds | postuninstall_cmds | \
9684
old_postinstall_cmds | old_postuninstall_cmds | \
9685
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9686
# Double-quote double-evaled strings.
9687
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9690
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9696
*'\$0 --fallback-echo"')
9697
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9702
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9704
{ echo "$as_me:$LINENO: creating $ofile" >&5
9705
echo "$as_me: creating $ofile" >&6;}
9707
cat <<__EOF__ >> "$cfgfile"
9710
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9711
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9712
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9714
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9715
# Free Software Foundation, Inc.
9717
# This file is part of GNU Libtool:
9718
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9720
# This program is free software; you can redistribute it and/or modify
9721
# it under the terms of the GNU General Public License as published by
9722
# the Free Software Foundation; either version 2 of the License, or
9723
# (at your option) any later version.
9725
# This program is distributed in the hope that it will be useful, but
9726
# WITHOUT ANY WARRANTY; without even the implied warranty of
9727
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9728
# General Public License for more details.
9730
# You should have received a copy of the GNU General Public License
9731
# along with this program; if not, write to the Free Software
9732
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9734
# As a special exception to the GNU General Public License, if you
9735
# distribute this file as part of a program that contains a
9736
# configuration script generated by Autoconf, you may include it under
9737
# the same distribution terms that you use for the rest of that program.
9739
# A sed program that does not truncate output.
9742
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9743
Xsed="$SED -e 1s/^X//"
9745
# The HP-UX ksh and POSIX shell print the target directory to stdout
9747
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9749
# The names of the tagged configurations supported by this script.
9752
# ### BEGIN LIBTOOL CONFIG
9754
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9756
# Shell to use when invoking shell scripts.
9759
# Whether or not to build shared libraries.
9760
build_libtool_libs=$enable_shared
9762
# Whether or not to build static libraries.
9763
build_old_libs=$enable_static
9765
# Whether or not to add -lc for building shared libraries.
9766
build_libtool_need_lc=$archive_cmds_need_lc
9768
# Whether or not to disallow shared libs when runtime libs are static
9769
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9771
# Whether or not to optimize for fast installation.
9772
fast_install=$enable_fast_install
9775
host_alias=$host_alias
9780
build_alias=$build_alias
9784
# An echo program that does not interpret backslashes.
9789
AR_FLAGS=$lt_AR_FLAGS
9794
# A language-specific compiler.
9797
# Is the compiler the GNU C compiler?
9803
# The linker used to build libraries.
9806
# Whether we need hard or soft links.
9809
# A BSD-compatible nm program.
9812
# A symbol stripping program
9815
# Used to examine libraries when file_magic_cmd begins "file"
9816
MAGIC_CMD=$MAGIC_CMD
9818
# Used on cygwin: DLL creation program.
9821
# Used on cygwin: object dumper.
9824
# Used on cygwin: assembler.
9827
# The name of the directory that contains temporary libtool files.
9830
# How to create reloadable object files.
9831
reload_flag=$lt_reload_flag
9832
reload_cmds=$lt_reload_cmds
9834
# How to pass a linker flag through the compiler.
9835
wl=$lt_lt_prog_compiler_wl
9837
# Object file suffix (normally "o").
9840
# Old archive suffix (normally "a").
9843
# Shared library suffix (normally ".so").
9844
shrext_cmds='$shrext_cmds'
9846
# Executable file suffix (normally "").
9849
# Additional compiler flags for building library objects.
9850
pic_flag=$lt_lt_prog_compiler_pic
9853
# What is the maximum length of a command?
9854
max_cmd_len=$lt_cv_sys_max_cmd_len
9856
# Does compiler simultaneously support -c and -o options?
9857
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9859
# Must we lock files when doing compilation?
9860
need_locks=$lt_need_locks
9862
# Do we need the lib prefix for modules?
9863
need_lib_prefix=$need_lib_prefix
9865
# Do we need a version for libraries?
9866
need_version=$need_version
9868
# Whether dlopen is supported.
9869
dlopen_support=$enable_dlopen
9871
# Whether dlopen of programs is supported.
9872
dlopen_self=$enable_dlopen_self
9874
# Whether dlopen of statically linked programs is supported.
9875
dlopen_self_static=$enable_dlopen_self_static
9877
# Compiler flag to prevent dynamic linking.
9878
link_static_flag=$lt_lt_prog_compiler_static
9880
# Compiler flag to turn off builtin functions.
9881
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9883
# Compiler flag to allow reflexive dlopens.
9884
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9886
# Compiler flag to generate shared objects directly from archives.
9887
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9889
# Compiler flag to generate thread-safe objects.
9890
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9892
# Library versioning type.
9893
version_type=$version_type
9895
# Format of library name prefix.
9896
libname_spec=$lt_libname_spec
9898
# List of archive names. First name is the real one, the rest are links.
9899
# The last name is the one that the linker finds with -lNAME.
9900
library_names_spec=$lt_library_names_spec
9902
# The coded name of the library, if different from the real name.
9903
soname_spec=$lt_soname_spec
9905
# Commands used to build and install an old-style archive.
9907
old_archive_cmds=$lt_old_archive_cmds
9908
old_postinstall_cmds=$lt_old_postinstall_cmds
9909
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9911
# Create an old-style archive from a shared archive.
9912
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9914
# Create a temporary old-style archive to link instead of a shared archive.
9915
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9917
# Commands used to build and install a shared archive.
9918
archive_cmds=$lt_archive_cmds
9919
archive_expsym_cmds=$lt_archive_expsym_cmds
9920
postinstall_cmds=$lt_postinstall_cmds
9921
postuninstall_cmds=$lt_postuninstall_cmds
9923
# Commands used to build a loadable module (assumed same as above if empty)
9924
module_cmds=$lt_module_cmds
9925
module_expsym_cmds=$lt_module_expsym_cmds
9927
# Commands to strip libraries.
9928
old_striplib=$lt_old_striplib
9929
striplib=$lt_striplib
9931
# Dependencies to place before the objects being linked to create a
9933
predep_objects=$lt_predep_objects
9935
# Dependencies to place after the objects being linked to create a
9937
postdep_objects=$lt_postdep_objects
9939
# Dependencies to place before the objects being linked to create a
9943
# Dependencies to place after the objects being linked to create a
9945
postdeps=$lt_postdeps
9947
# The library search path used internally by the compiler when linking
9949
compiler_lib_search_path=$lt_compiler_lib_search_path
9951
# Method to check whether dependent libraries are shared objects.
9952
deplibs_check_method=$lt_deplibs_check_method
9954
# Command to use when deplibs_check_method == file_magic.
9955
file_magic_cmd=$lt_file_magic_cmd
9957
# Flag that allows shared libraries with undefined symbols to be built.
9958
allow_undefined_flag=$lt_allow_undefined_flag
9960
# Flag that forces no undefined symbols.
9961
no_undefined_flag=$lt_no_undefined_flag
9963
# Commands used to finish a libtool library installation in a directory.
9964
finish_cmds=$lt_finish_cmds
9966
# Same as above, but a single script fragment to be evaled but not shown.
9967
finish_eval=$lt_finish_eval
9969
# Take the output of nm and produce a listing of raw symbols and C names.
9970
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9972
# Transform the output of nm in a proper C declaration
9973
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9975
# Transform the output of nm in a C name address pair
9976
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9978
# This is the shared library runtime path variable.
9979
runpath_var=$runpath_var
9981
# This is the shared library path variable.
9982
shlibpath_var=$shlibpath_var
9984
# Is shlibpath searched before the hard-coded library search path?
9985
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9987
# How to hardcode a shared library path into an executable.
9988
hardcode_action=$hardcode_action
9990
# Whether we should hardcode library paths into libraries.
9991
hardcode_into_libs=$hardcode_into_libs
9993
# Flag to hardcode \$libdir into a binary during linking.
9994
# This must work even if \$libdir does not exist.
9995
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9997
# If ld is used when linking, flag to hardcode \$libdir into
9998
# a binary during linking. This must work even if \$libdir does
10000
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10002
# Whether we need a single -rpath flag with a separated argument.
10003
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10005
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10006
# resulting binary.
10007
hardcode_direct=$hardcode_direct
10009
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10010
# resulting binary.
10011
hardcode_minus_L=$hardcode_minus_L
10013
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10014
# the resulting binary.
10015
hardcode_shlibpath_var=$hardcode_shlibpath_var
10017
# Set to yes if building a shared library automatically hardcodes DIR into the library
10018
# and all subsequent libraries and executables linked against it.
10019
hardcode_automatic=$hardcode_automatic
10021
# Variables whose values should be saved in libtool wrapper scripts and
10022
# restored at relink time.
10023
variables_saved_for_relink="$variables_saved_for_relink"
10025
# Whether libtool must link a program against all its dependency libraries.
10026
link_all_deplibs=$link_all_deplibs
10028
# Compile-time system search path for libraries
10029
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10031
# Run-time system search path for libraries
10032
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10034
# Fix the shell variable \$srcfile for the compiler.
10035
fix_srcfile_path="$fix_srcfile_path"
10037
# Set to yes if exported symbols are required.
10038
always_export_symbols=$always_export_symbols
10040
# The commands to list exported symbols.
10041
export_symbols_cmds=$lt_export_symbols_cmds
10043
# The commands to extract the exported symbol list from a shared archive.
10044
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10046
# Symbols that should not be listed in the preloaded symbols.
10047
exclude_expsyms=$lt_exclude_expsyms
10049
# Symbols that must always be exported.
10050
include_expsyms=$lt_include_expsyms
10052
# ### END LIBTOOL CONFIG
10059
cat <<\EOF >> "$cfgfile"
10061
# AIX sometimes has problems with the GCC collect2 program. For some
10062
# reason, if we set the COLLECT_NAMES environment variable, the problems
10063
# vanish in a puff of smoke.
10064
if test "X${COLLECT_NAMES+set}" != Xset; then
10066
export COLLECT_NAMES
10072
# We use sed instead of cat because bash on DJGPP gets confused if
10073
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10074
# text mode, it properly converts lines to CR/LF. This bash problem
10075
# is reportedly fixed, but why not run on old versions too?
10076
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10078
mv -f "$cfgfile" "$ofile" || \
10079
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10083
# If there is no Makefile yet, we rely on a make rule to execute
10084
# `config.status --recheck' to rerun these tests and create the
10085
# libtool script then.
10086
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10087
if test -f "$ltmain_in"; then
10088
test -f Makefile && make "$ltmain"
10094
ac_cpp='$CPP $CPPFLAGS'
10095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10102
# Check whether --with-tags or --without-tags was given.
10103
if test "${with_tags+set}" = set; then
10104
withval="$with_tags"
10105
tagnames="$withval"
10108
if test -f "$ltmain" && test -n "$tagnames"; then
10109
if test ! -f "${ofile}"; then
10110
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10111
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10114
if test -z "$LTCC"; then
10115
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10116
if test -z "$LTCC"; then
10117
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10118
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10120
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10121
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10125
# Extract list of available tagged configurations in $ofile.
10126
# Note that this assumes the entire list is on one line.
10127
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10129
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10130
for tagname in $tagnames; do
10132
# Check whether tagname contains only valid characters
10133
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10135
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10136
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10137
{ (exit 1); exit 1; }; }
10141
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10143
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10144
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10145
{ (exit 1); exit 1; }; }
10148
# Update the list of available tags.
10149
if test -n "$tagname"; then
10150
echo appending configuration tag \"$tagname\" to $ofile
10154
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10155
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10156
(test "X$CXX" != "Xg++"))) ; then
10158
ac_cpp='$CXXCPP $CPPFLAGS'
10159
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10166
archive_cmds_need_lc_CXX=no
10167
allow_undefined_flag_CXX=
10168
always_export_symbols_CXX=no
10169
archive_expsym_cmds_CXX=
10170
export_dynamic_flag_spec_CXX=
10171
hardcode_direct_CXX=no
10172
hardcode_libdir_flag_spec_CXX=
10173
hardcode_libdir_flag_spec_ld_CXX=
10174
hardcode_libdir_separator_CXX=
10175
hardcode_minus_L_CXX=no
10176
hardcode_automatic_CXX=no
10178
module_expsym_cmds_CXX=
10179
link_all_deplibs_CXX=unknown
10180
old_archive_cmds_CXX=$old_archive_cmds
10181
no_undefined_flag_CXX=
10182
whole_archive_flag_spec_CXX=
10183
enable_shared_with_static_runtimes_CXX=no
10185
# Dependencies to place before and after the object being linked:
10186
predep_objects_CXX=
10187
postdep_objects_CXX=
10190
compiler_lib_search_path_CXX=
10192
# Source file extension for C++ test sources.
10195
# Object file extension for compiled C++ test sources.
10199
# Code to be used in simple compile tests
10200
lt_simple_compile_test_code="int some_variable = 0;\n"
10202
# Code to be used in simple link tests
10203
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10205
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10207
# If no C compiler was specified, use CC.
10210
# Allow CC to be a program name with arguments.
10214
# save warnings/boilerplate of simple test code
10215
ac_outfile=conftest.$ac_objext
10216
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10217
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10218
_lt_compiler_boilerplate=`cat conftest.err`
10221
ac_outfile=conftest.$ac_objext
10222
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10223
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10224
_lt_linker_boilerplate=`cat conftest.err`
10228
# Allow CC to be a program name with arguments.
10233
lt_save_with_gnu_ld=$with_gnu_ld
10234
lt_save_path_LD=$lt_cv_path_LD
10235
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10236
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10238
unset lt_cv_prog_gnu_ld
10240
if test -n "${lt_cv_path_LDCXX+set}"; then
10241
lt_cv_path_LD=$lt_cv_path_LDCXX
10243
unset lt_cv_path_LD
10245
test -z "${LDCXX+set}" || LD=$LDCXX
10249
for cc_temp in $compiler""; do
10251
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10252
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10257
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10260
# We don't want -fno-exception wen compiling C++ code, so set the
10261
# no_builtin_flag separately
10262
if test "$GXX" = yes; then
10263
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10265
lt_prog_compiler_no_builtin_flag_CXX=
10268
if test "$GXX" = yes; then
10269
# Set up default GNU C++ configuration
10272
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10273
if test "${with_gnu_ld+set}" = set; then
10274
withval="$with_gnu_ld"
10275
test "$withval" = no || with_gnu_ld=yes
10280
if test "$GCC" = yes; then
10281
# Check if gcc -print-prog-name=ld gives a path.
10282
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10283
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10286
# gcc leaves a trailing carriage return which upsets mingw
10287
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10289
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10292
# Accept absolute paths.
10294
re_direlt='/[^/][^/]*/\.\./'
10295
# Canonicalize the pathname of ld
10296
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10297
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10298
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10300
test -z "$LD" && LD="$ac_prog"
10303
# If it fails, then pretend we aren't using GCC.
10307
# If it is relative, then search for the first ld in PATH.
10308
with_gnu_ld=unknown
10311
elif test "$with_gnu_ld" = yes; then
10312
echo "$as_me:$LINENO: checking for GNU ld" >&5
10313
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10315
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10316
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10318
if test "${lt_cv_path_LD+set}" = set; then
10319
echo $ECHO_N "(cached) $ECHO_C" >&6
10321
if test -z "$LD"; then
10322
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10323
for ac_dir in $PATH; do
10325
test -z "$ac_dir" && ac_dir=.
10326
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10327
lt_cv_path_LD="$ac_dir/$ac_prog"
10328
# Check to see if the program is GNU ld. I'd rather use --version,
10329
# but apparently some GNU ld's only accept -v.
10330
# Break only if it was the GNU/non-GNU ld that we prefer.
10331
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10332
*GNU* | *'with BFD'*)
10333
test "$with_gnu_ld" != no && break
10336
test "$with_gnu_ld" != yes && break
10343
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10347
LD="$lt_cv_path_LD"
10348
if test -n "$LD"; then
10349
echo "$as_me:$LINENO: result: $LD" >&5
10350
echo "${ECHO_T}$LD" >&6
10352
echo "$as_me:$LINENO: result: no" >&5
10353
echo "${ECHO_T}no" >&6
10355
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10356
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10357
{ (exit 1); exit 1; }; }
10358
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10359
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10360
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10361
echo $ECHO_N "(cached) $ECHO_C" >&6
10363
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10364
case `$LD -v 2>&1 </dev/null` in
10365
*GNU* | *'with BFD'*)
10366
lt_cv_prog_gnu_ld=yes
10369
lt_cv_prog_gnu_ld=no
10373
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10374
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10375
with_gnu_ld=$lt_cv_prog_gnu_ld
10379
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10380
# archiving commands below assume that GNU ld is being used.
10381
if test "$with_gnu_ld" = yes; then
10382
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10383
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'
10385
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10386
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10388
# If archive_cmds runs LD, not CC, wlarc should be empty
10389
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10390
# investigate it a little bit more. (MM)
10393
# ancient GNU ld didn't support --whole-archive et. al.
10394
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10395
grep 'no-whole-archive' > /dev/null; then
10396
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10398
whole_archive_flag_spec_CXX=
10404
# A generic and very simple default shared library creation
10405
# command for GNU C++ for the case where it uses the native
10406
# linker, instead of GNU ld. If possible, this setting should
10407
# overridden to take advantage of the native linker features on
10408
# the platform it is being used on.
10409
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10412
# Commands to make compiler produce verbose output that lists
10413
# what "hidden" libraries, object files and flags are used when
10414
# linking a shared library.
10415
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10423
# PORTME: fill in a description of your system's C++ link characteristics
10424
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10425
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10429
# FIXME: insert proper C++ library support
10433
if test "$host_cpu" = ia64; then
10434
# On IA64, the linker does run time linking by default, so we don't
10435
# have to do anything special.
10436
aix_use_runtimelinking=no
10437
exp_sym_flag='-Bexport'
10440
aix_use_runtimelinking=no
10442
# Test if we are trying to use run time linking or normal
10443
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10444
# need to do runtime linking.
10445
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10446
for ld_flag in $LDFLAGS; do
10449
aix_use_runtimelinking=yes
10456
exp_sym_flag='-bexport'
10457
no_entry_flag='-bnoentry'
10460
# When large executables or shared objects are built, AIX ld can
10461
# have problems creating the table of contents. If linking a library
10462
# or program results in "error TOC overflow" add -mminimal-toc to
10463
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10464
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10466
archive_cmds_CXX=''
10467
hardcode_direct_CXX=yes
10468
hardcode_libdir_separator_CXX=':'
10469
link_all_deplibs_CXX=yes
10471
if test "$GXX" = yes; then
10472
case $host_os in aix4.[012]|aix4.[012].*)
10473
# We only want to do this on AIX 4.2 and lower, the check
10474
# below for broken collect2 doesn't work under 4.3+
10475
collect2name=`${CC} -print-prog-name=collect2`
10476
if test -f "$collect2name" && \
10477
strings "$collect2name" | grep resolve_lib_name >/dev/null
10479
# We have reworked collect2
10480
hardcode_direct_CXX=yes
10482
# We have old collect2
10483
hardcode_direct_CXX=unsupported
10484
# It fails to find uninstalled libraries when the uninstalled
10485
# path is not listed in the libpath. Setting hardcode_minus_L
10486
# to unsupported forces relinking
10487
hardcode_minus_L_CXX=yes
10488
hardcode_libdir_flag_spec_CXX='-L$libdir'
10489
hardcode_libdir_separator_CXX=
10492
shared_flag='-shared'
10493
if test "$aix_use_runtimelinking" = yes; then
10494
shared_flag="$shared_flag "'${wl}-G'
10498
if test "$host_cpu" = ia64; then
10499
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500
# chokes on -Wl,-G. The following line is correct:
10503
if test "$aix_use_runtimelinking" = yes; then
10504
shared_flag='${wl}-G'
10506
shared_flag='${wl}-bM:SRE'
10511
# It seems that -bexpall does not export symbols beginning with
10512
# underscore (_), so it is better to generate a list of symbols to export.
10513
always_export_symbols_CXX=yes
10514
if test "$aix_use_runtimelinking" = yes; then
10515
# Warning - without using the other runtime loading flags (-brtl),
10516
# -berok will link without error, but may produce a broken library.
10517
allow_undefined_flag_CXX='-berok'
10518
# Determine the default libpath from the value encoded in an empty executable.
10519
cat >conftest.$ac_ext <<_ACEOF
10522
cat confdefs.h >>conftest.$ac_ext
10523
cat >>conftest.$ac_ext <<_ACEOF
10524
/* end confdefs.h. */
10534
rm -f conftest.$ac_objext conftest$ac_exeext
10535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536
(eval $ac_link) 2>conftest.er1
10538
grep -v '^ *+' conftest.er1 >conftest.err
10540
cat conftest.err >&5
10541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542
(exit $ac_status); } &&
10543
{ ac_try='test -z "$ac_cxx_werror_flag"
10544
|| test ! -s conftest.err'
10545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546
(eval $ac_try) 2>&5
10548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549
(exit $ac_status); }; } &&
10550
{ ac_try='test -s conftest$ac_exeext'
10551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552
(eval $ac_try) 2>&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); }; }; then
10557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10559
# Check for a 64-bit object if we didn't find anything.
10560
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; }
10563
echo "$as_me: failed program was:" >&5
10564
sed 's/^/| /' conftest.$ac_ext >&5
10567
rm -f conftest.err conftest.$ac_objext \
10568
conftest$ac_exeext conftest.$ac_ext
10569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10571
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10573
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"
10575
if test "$host_cpu" = ia64; then
10576
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10577
allow_undefined_flag_CXX="-z nodefs"
10578
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"
10580
# Determine the default libpath from the value encoded in an empty executable.
10581
cat >conftest.$ac_ext <<_ACEOF
10584
cat confdefs.h >>conftest.$ac_ext
10585
cat >>conftest.$ac_ext <<_ACEOF
10586
/* end confdefs.h. */
10596
rm -f conftest.$ac_objext conftest$ac_exeext
10597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598
(eval $ac_link) 2>conftest.er1
10600
grep -v '^ *+' conftest.er1 >conftest.err
10602
cat conftest.err >&5
10603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604
(exit $ac_status); } &&
10605
{ ac_try='test -z "$ac_cxx_werror_flag"
10606
|| test ! -s conftest.err'
10607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608
(eval $ac_try) 2>&5
10610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
(exit $ac_status); }; } &&
10612
{ ac_try='test -s conftest$ac_exeext'
10613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
(eval $ac_try) 2>&5
10616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
(exit $ac_status); }; }; then
10619
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10621
# Check for a 64-bit object if we didn't find anything.
10622
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; }
10625
echo "$as_me: failed program was:" >&5
10626
sed 's/^/| /' conftest.$ac_ext >&5
10629
rm -f conftest.err conftest.$ac_objext \
10630
conftest$ac_exeext conftest.$ac_ext
10631
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10633
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10634
# Warning - without using the other run time loading flags,
10635
# -berok will link without error, but may produce a broken library.
10636
no_undefined_flag_CXX=' ${wl}-bernotok'
10637
allow_undefined_flag_CXX=' ${wl}-berok'
10638
# -bexpall does not export symbols beginning with underscore (_)
10639
always_export_symbols_CXX=yes
10640
# Exported symbols can be pulled into shared objects from archives
10641
whole_archive_flag_spec_CXX=' '
10642
archive_cmds_need_lc_CXX=yes
10643
# This is similar to how AIX traditionally builds it's shared libraries.
10644
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'
10649
case $cc_basename in
10651
# FIXME: insert proper C++ library support
10658
cygwin* | mingw* | pw32*)
10659
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10660
# as there is no search path for DLLs.
10661
hardcode_libdir_flag_spec_CXX='-L$libdir'
10662
allow_undefined_flag_CXX=unsupported
10663
always_export_symbols_CXX=no
10664
enable_shared_with_static_runtimes_CXX=yes
10666
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10667
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'
10668
# If the export-symbols file already is a .def file (1st line
10669
# is EXPORTS), use it as is; otherwise, prepend...
10670
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10671
cp $export_symbols $output_objdir/$soname.def;
10673
echo EXPORTS > $output_objdir/$soname.def;
10674
cat $export_symbols >> $output_objdir/$soname.def;
10676
$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'
10681
darwin* | rhapsody*)
10683
rhapsody* | darwin1.[012])
10684
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10687
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10688
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10690
case ${MACOSX_DEPLOYMENT_TARGET} in
10692
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10695
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10701
archive_cmds_need_lc_CXX=no
10702
hardcode_direct_CXX=no
10703
hardcode_automatic_CXX=yes
10704
hardcode_shlibpath_var_CXX=unsupported
10705
whole_archive_flag_spec_CXX=''
10706
link_all_deplibs_CXX=yes
10708
if test "$GXX" = yes ; then
10709
lt_int_apple_cc_single_mod=no
10710
output_verbose_link_cmd='echo'
10711
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10712
lt_int_apple_cc_single_mod=yes
10714
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10715
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10717
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10719
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10720
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10721
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10722
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}'
10724
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10726
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}'
10728
case $cc_basename in
10730
output_verbose_link_cmd='echo'
10731
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10732
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10733
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10734
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10735
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}'
10745
case $cc_basename in
10747
# FIXME: insert proper C++ library support
10751
# Green Hills C++ Compiler
10752
# FIXME: insert proper C++ library support
10756
# FIXME: insert proper C++ library support
10762
# C++ shared libraries reported to be fairly broken before switch to ELF
10766
archive_cmds_need_lc_CXX=no
10768
freebsd* | kfreebsd*-gnu | dragonfly*)
10769
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10776
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10777
hardcode_libdir_separator_CXX=:
10778
export_dynamic_flag_spec_CXX='${wl}-E'
10779
hardcode_direct_CXX=yes
10780
hardcode_minus_L_CXX=yes # Not in the search PATH,
10781
# but as the default
10782
# location of the library.
10784
case $cc_basename in
10786
# FIXME: insert proper C++ library support
10790
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'
10791
# Commands to make compiler produce verbose output that lists
10792
# what "hidden" libraries, object files and flags are used when
10793
# linking a shared library.
10795
# There doesn't appear to be a way to prevent this compiler from
10796
# explicitly linking system object files so we need to strip them
10797
# from the output so that they don't get included in the library
10799
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'
10802
if test "$GXX" = yes; then
10803
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'
10805
# FIXME: insert proper C++ library support
10812
if test $with_gnu_ld = no; then
10813
case "$host_cpu" in
10815
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10816
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10817
hardcode_libdir_separator_CXX=:
10820
hardcode_libdir_flag_spec_CXX='-L$libdir'
10823
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10824
hardcode_libdir_separator_CXX=:
10825
export_dynamic_flag_spec_CXX='${wl}-E'
10829
case "$host_cpu" in
10831
hardcode_direct_CXX=no
10832
hardcode_shlibpath_var_CXX=no
10835
hardcode_direct_CXX=no
10836
hardcode_shlibpath_var_CXX=no
10837
hardcode_minus_L_CXX=yes # Not in the search PATH,
10838
# but as the default
10839
# location of the library.
10842
hardcode_direct_CXX=yes
10843
hardcode_minus_L_CXX=yes # Not in the search PATH,
10844
# but as the default
10845
# location of the library.
10849
case $cc_basename in
10851
# FIXME: insert proper C++ library support
10855
case "$host_cpu" in
10857
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10860
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10863
# Commands to make compiler produce verbose output that lists
10864
# what "hidden" libraries, object files and flags are used when
10865
# linking a shared library.
10867
# There doesn't appear to be a way to prevent this compiler from
10868
# explicitly linking system object files so we need to strip them
10869
# from the output so that they don't get included in the library
10871
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'
10874
if test "$GXX" = yes; then
10875
if test $with_gnu_ld = no; then
10876
case "$host_cpu" in
10878
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10881
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'
10886
# FIXME: insert proper C++ library support
10893
case $cc_basename in
10896
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10898
# Archives containing C++ object files must be created using
10899
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10900
# necessary to make sure instantiated templates are included
10902
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10905
if test "$GXX" = yes; then
10906
if test "$with_gnu_ld" = no; then
10907
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10909
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'
10912
link_all_deplibs_CXX=yes
10915
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10916
hardcode_libdir_separator_CXX=:
10919
case $cc_basename in
10921
# Kuck and Associates, Inc. (KAI) C++ Compiler
10923
# KCC will only create a shared library if the output file
10924
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10925
# to its proper name (with version) after linking.
10926
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'
10927
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'
10928
# Commands to make compiler produce verbose output that lists
10929
# what "hidden" libraries, object files and flags are used when
10930
# linking a shared library.
10932
# There doesn't appear to be a way to prevent this compiler from
10933
# explicitly linking system object files so we need to strip them
10934
# from the output so that they don't get included in the library
10936
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'
10938
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10939
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10941
# Archives containing C++ object files must be created using
10942
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10943
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10948
# version 8.0 and above of icpc choke on multiply defined symbols
10949
# if we add $predep_objects and $postdep_objects, however 7.1 and
10950
# earlier do not add the objects themselves.
10951
case `$CC -V 2>&1` in
10953
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10954
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'
10956
*) # Version 8.0 or newer
10959
ia64*) tmp_idyn=' -i_dynamic';;
10961
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10962
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10965
archive_cmds_need_lc_CXX=no
10966
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10967
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10968
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10971
# Portland Group C++ compiler
10972
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10973
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10975
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10976
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10977
whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10981
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10982
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'
10984
runpath_var=LD_RUN_PATH
10985
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10986
hardcode_libdir_separator_CXX=:
10988
# Commands to make compiler produce verbose output that lists
10989
# what "hidden" libraries, object files and flags are used when
10990
# linking a shared library.
10992
# There doesn't appear to be a way to prevent this compiler from
10993
# explicitly linking system object files so we need to strip them
10994
# from the output so that they don't get included in the library
10996
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'
11001
# FIXME: insert proper C++ library support
11005
# FIXME: insert proper C++ library support
11009
case $cc_basename in
11011
# FIXME: insert proper C++ library support
11015
# FIXME: insert proper C++ library support
11021
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11022
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11024
hardcode_libdir_flag_spec_CXX='-R$libdir'
11025
hardcode_direct_CXX=yes
11026
hardcode_shlibpath_var_CXX=no
11028
# Workaround some broken pre-1.5 toolchains
11029
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11032
# C++ shared libraries are fairly broken
11036
hardcode_direct_CXX=yes
11037
hardcode_shlibpath_var_CXX=no
11038
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11039
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11040
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11041
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11042
export_dynamic_flag_spec_CXX='${wl}-E'
11043
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11045
output_verbose_link_cmd='echo'
11048
case $cc_basename in
11050
# Kuck and Associates, Inc. (KAI) C++ Compiler
11052
# KCC will only create a shared library if the output file
11053
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11054
# to its proper name (with version) after linking.
11055
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'
11057
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11058
hardcode_libdir_separator_CXX=:
11060
# Archives containing C++ object files must be created using
11061
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11062
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11066
# Rational C++ 2.4.1
11067
# FIXME: insert proper C++ library support
11071
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11072
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11074
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11075
hardcode_libdir_separator_CXX=:
11077
# Commands to make compiler produce verbose output that lists
11078
# what "hidden" libraries, object files and flags are used when
11079
# linking a shared library.
11081
# There doesn't appear to be a way to prevent this compiler from
11082
# explicitly linking system object files so we need to strip them
11083
# from the output so that they don't get included in the library
11085
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'
11088
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11089
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11090
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11092
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11093
hardcode_libdir_separator_CXX=:
11095
# Commands to make compiler produce verbose output that lists
11096
# what "hidden" libraries, object files and flags are used when
11097
# linking a shared library.
11098
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11101
# FIXME: insert proper C++ library support
11108
case $cc_basename in
11110
# Kuck and Associates, Inc. (KAI) C++ Compiler
11112
# KCC will only create a shared library if the output file
11113
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11114
# to its proper name (with version) after linking.
11115
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'
11117
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11118
hardcode_libdir_separator_CXX=:
11120
# Archives containing C++ object files must be created using
11121
# the KAI C++ compiler.
11122
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11125
# Rational C++ 2.4.1
11126
# FIXME: insert proper C++ library support
11130
allow_undefined_flag_CXX=' -expect_unresolved \*'
11131
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11132
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11133
echo "-hidden">> $lib.exp~
11134
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11137
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11138
hardcode_libdir_separator_CXX=:
11140
# Commands to make compiler produce verbose output that lists
11141
# what "hidden" libraries, object files and flags are used when
11142
# linking a shared library.
11144
# There doesn't appear to be a way to prevent this compiler from
11145
# explicitly linking system object files so we need to strip them
11146
# from the output so that they don't get included in the library
11148
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'
11151
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11152
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11153
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11155
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11156
hardcode_libdir_separator_CXX=:
11158
# Commands to make compiler produce verbose output that lists
11159
# what "hidden" libraries, object files and flags are used when
11160
# linking a shared library.
11161
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11164
# FIXME: insert proper C++ library support
11171
# FIXME: insert proper C++ library support
11175
archive_cmds_need_lc_CXX=no
11176
case $cc_basename in
11178
# FIXME: insert proper C++ library support
11182
# FIXME: insert proper C++ library support
11188
case $cc_basename in
11191
# FIXME: insert proper C++ library support
11196
# FIXME: insert proper C++ library support
11200
# FIXME: insert proper C++ library support
11206
case $cc_basename in
11208
# Sun C++ 4.2, 5.x and Centerline C++
11209
no_undefined_flag_CXX=' -zdefs'
11210
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11211
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11212
$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'
11214
hardcode_libdir_flag_spec_CXX='-R$libdir'
11215
hardcode_shlibpath_var_CXX=no
11217
solaris2.[0-5] | solaris2.[0-5].*) ;;
11219
# The C++ compiler is used as linker so we must use $wl
11220
# flag to pass the commands to the underlying system
11221
# linker. We must also pass each convience library through
11222
# to the system linker between allextract/defaultextract.
11223
# The C++ compiler will combine linker options so we
11224
# cannot just pass the convience library names through
11226
# Supported since Solaris 2.6 (maybe 2.5.1?)
11227
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11230
link_all_deplibs_CXX=yes
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.
11236
# There doesn't appear to be a way to prevent this compiler from
11237
# explicitly linking system object files so we need to strip them
11238
# from the output so that they don't get included in the library
11240
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'
11242
# Archives containing C++ object files must be created using
11243
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11244
# necessary to make sure instantiated templates are included
11246
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11249
# Green Hills C++ Compiler
11250
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11252
# The C++ compiler must be used to create the archive.
11253
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11256
# GNU C++ compiler with Solaris linker
11257
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11258
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11259
if $CC --version | grep -v '^2\.7' > /dev/null; then
11260
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11261
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11262
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11264
# Commands to make compiler produce verbose output that lists
11265
# what "hidden" libraries, object files and flags are used when
11266
# linking a shared library.
11267
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11269
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11271
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11272
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11273
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11275
# Commands to make compiler produce verbose output that lists
11276
# what "hidden" libraries, object files and flags are used when
11277
# linking a shared library.
11278
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11281
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11286
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11287
archive_cmds_need_lc_CXX=no
11290
case $cc_basename in
11292
# NonStop-UX NCC 3.20
11293
# FIXME: insert proper C++ library support
11297
# FIXME: insert proper C++ library support
11303
# FIXME: insert proper C++ library support
11307
# FIXME: insert proper C++ library support
11311
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11312
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11313
test "$ld_shlibs_CXX" = no && can_build_shared=no
11319
cat > conftest.$ac_ext <<EOF
11323
Foo (void) { a = 0; }
11329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330
(eval $ac_compile) 2>&5
11332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333
(exit $ac_status); }; then
11334
# Parse the compiler output and extract the necessary
11335
# objects, libraries and library flags.
11337
# Sentinel used to keep track of whether or not we are before
11338
# the conftest object file.
11339
pre_test_object_deps_done=no
11341
# The `*' in the case matches for architectures that use `case' in
11342
# $output_verbose_cmd can trigger glob expansion during the loop
11343
# eval without this substitution.
11344
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11346
for p in `eval $output_verbose_link_cmd`; do
11350
# Some compilers place space between "-{L,R}" and the path.
11351
# Remove the space.
11352
if test $p = "-L" \
11353
|| test $p = "-R"; then
11360
if test "$pre_test_object_deps_done" = no; then
11363
# Internal compiler library paths should come after those
11364
# provided the user. The postdeps already come after the
11365
# user supplied libs so there is no need to process them.
11366
if test -z "$compiler_lib_search_path_CXX"; then
11367
compiler_lib_search_path_CXX="${prev}${p}"
11369
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11372
# The "-l" case would never come before the object being
11373
# linked, so don't bother handling this case.
11376
if test -z "$postdeps_CXX"; then
11377
postdeps_CXX="${prev}${p}"
11379
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11385
# This assumes that the test object file only shows up
11386
# once in the compiler output.
11387
if test "$p" = "conftest.$objext"; then
11388
pre_test_object_deps_done=yes
11392
if test "$pre_test_object_deps_done" = no; then
11393
if test -z "$predep_objects_CXX"; then
11394
predep_objects_CXX="$p"
11396
predep_objects_CXX="$predep_objects_CXX $p"
11399
if test -z "$postdep_objects_CXX"; then
11400
postdep_objects_CXX="$p"
11402
postdep_objects_CXX="$postdep_objects_CXX $p"
11407
*) ;; # Ignore the rest.
11415
echo "libtool.m4: error: problem compiling CXX test program"
11418
$rm -f confest.$objext
11420
case " $postdeps_CXX " in
11421
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11424
lt_prog_compiler_wl_CXX=
11425
lt_prog_compiler_pic_CXX=
11426
lt_prog_compiler_static_CXX=
11428
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11429
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11431
# C++ specific cases for pic, static, wl, etc.
11432
if test "$GXX" = yes; then
11433
lt_prog_compiler_wl_CXX='-Wl,'
11434
lt_prog_compiler_static_CXX='-static'
11438
# All AIX code is PIC.
11439
if test "$host_cpu" = ia64; then
11440
# AIX 5 now supports IA64 processor
11441
lt_prog_compiler_static_CXX='-Bstatic'
11445
# FIXME: we need at least 68020 code to build shared libraries, but
11446
# adding the `-m68020' flag to GCC prevents building anything better,
11448
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11450
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11451
# PIC is the default for these OSes.
11453
mingw* | os2* | pw32*)
11454
# This hack is so that the source file can tell whether it is being
11455
# built for inclusion in a dll (and should export symbols for example).
11456
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11458
darwin* | rhapsody*)
11459
# PIC is the default on this platform
11460
# Common symbols not allowed in MH_DYLIB files
11461
lt_prog_compiler_pic_CXX='-fno-common'
11464
# DJGPP does not support shared libraries at all
11465
lt_prog_compiler_pic_CXX=
11468
if test -d /usr/nec; then
11469
lt_prog_compiler_pic_CXX=-Kconform_pic
11473
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11474
# not for PA HP-UX.
11475
case "$host_cpu" in
11479
lt_prog_compiler_pic_CXX='-fPIC'
11484
lt_prog_compiler_pic_CXX='-fPIC'
11490
# All AIX code is PIC.
11491
if test "$host_cpu" = ia64; then
11492
# AIX 5 now supports IA64 processor
11493
lt_prog_compiler_static_CXX='-Bstatic'
11495
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11499
case $cc_basename in
11501
# Green Hills C++ Compiler
11502
# _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"
11507
# PIC is the default on this platform
11508
# Common symbols not allowed in MH_DYLIB files
11509
case $cc_basename in
11511
lt_prog_compiler_pic_CXX='-qnocommon'
11512
lt_prog_compiler_wl_CXX='-Wl,'
11517
case $cc_basename in
11519
lt_prog_compiler_pic_CXX='-KPIC'
11522
# Green Hills C++ Compiler
11523
lt_prog_compiler_pic_CXX='-pic'
11529
freebsd* | kfreebsd*-gnu | dragonfly*)
11530
# FreeBSD uses GNU C++
11532
hpux9* | hpux10* | hpux11*)
11533
case $cc_basename in
11535
lt_prog_compiler_wl_CXX='-Wl,'
11536
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11537
if test "$host_cpu" != ia64; then
11538
lt_prog_compiler_pic_CXX='+Z'
11542
lt_prog_compiler_wl_CXX='-Wl,'
11543
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11544
case "$host_cpu" in
11549
lt_prog_compiler_pic_CXX='+Z'
11557
irix5* | irix6* | nonstopux*)
11558
case $cc_basename in
11560
lt_prog_compiler_wl_CXX='-Wl,'
11561
lt_prog_compiler_static_CXX='-non_shared'
11562
# CC pic flag -KPIC is the default.
11569
case $cc_basename in
11572
lt_prog_compiler_wl_CXX='--backend -Wl,'
11573
lt_prog_compiler_pic_CXX='-fPIC'
11577
lt_prog_compiler_wl_CXX='-Wl,'
11578
lt_prog_compiler_pic_CXX='-KPIC'
11579
lt_prog_compiler_static_CXX='-static'
11582
# Portland Group C++ compiler.
11583
lt_prog_compiler_wl_CXX='-Wl,'
11584
lt_prog_compiler_pic_CXX='-fpic'
11585
lt_prog_compiler_static_CXX='-static'
11589
# Make sure the PIC flag is empty. It appears that all Alpha
11590
# Linux and Compaq Tru64 Unix objects are PIC.
11591
lt_prog_compiler_pic_CXX=
11592
lt_prog_compiler_static_CXX='-non_shared'
11603
case $cc_basename in
11605
lt_prog_compiler_pic_CXX='-W c,exportall'
11613
osf3* | osf4* | osf5*)
11614
case $cc_basename in
11616
lt_prog_compiler_wl_CXX='--backend -Wl,'
11619
# Rational C++ 2.4.1
11620
lt_prog_compiler_pic_CXX='-pic'
11623
# Digital/Compaq C++
11624
lt_prog_compiler_wl_CXX='-Wl,'
11625
# Make sure the PIC flag is empty. It appears that all Alpha
11626
# Linux and Compaq Tru64 Unix objects are PIC.
11627
lt_prog_compiler_pic_CXX=
11628
lt_prog_compiler_static_CXX='-non_shared'
11637
case $cc_basename in
11639
lt_prog_compiler_pic_CXX='-fPIC'
11646
case $cc_basename in
11648
# Sun C++ 4.2, 5.x and Centerline C++
11649
lt_prog_compiler_pic_CXX='-KPIC'
11650
lt_prog_compiler_static_CXX='-Bstatic'
11651
lt_prog_compiler_wl_CXX='-Qoption ld '
11654
# Green Hills C++ Compiler
11655
lt_prog_compiler_pic_CXX='-PIC'
11662
case $cc_basename in
11665
lt_prog_compiler_pic_CXX='-pic'
11666
lt_prog_compiler_static_CXX='-Bstatic'
11670
lt_prog_compiler_pic_CXX='-pic'
11677
case $cc_basename in
11679
# NonStop-UX NCC 3.20
11680
lt_prog_compiler_pic_CXX='-KPIC'
11691
lt_prog_compiler_can_build_shared_CXX=no
11696
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11697
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11700
# Check to make sure the PIC flag actually works.
11702
if test -n "$lt_prog_compiler_pic_CXX"; then
11704
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11705
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11706
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11707
echo $ECHO_N "(cached) $ECHO_C" >&6
11709
lt_prog_compiler_pic_works_CXX=no
11710
ac_outfile=conftest.$ac_objext
11711
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11712
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11713
# Insert the option either (1) after the last *FLAGS variable, or
11714
# (2) before a word containing "conftest.", or (3) at the end.
11715
# Note that $ac_compile itself does not contain backslashes and begins
11716
# with a dollar sign (not a hyphen), so the echo should work correctly.
11717
# The option is referenced via a variable to avoid confusing sed.
11718
lt_compile=`echo "$ac_compile" | $SED \
11719
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11720
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11721
-e 's:$: $lt_compiler_flag:'`
11722
(eval echo "\"\$as_me:11722: $lt_compile\"" >&5)
11723
(eval "$lt_compile" 2>conftest.err)
11725
cat conftest.err >&5
11726
echo "$as_me:11726: \$? = $ac_status" >&5
11727
if (exit $ac_status) && test -s "$ac_outfile"; then
11728
# The compiler can only warn and ignore the option if not recognized
11729
# So say no if there are warnings other than the usual output.
11730
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11731
$SED '/^$/d' conftest.err >conftest.er2
11732
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11733
lt_prog_compiler_pic_works_CXX=yes
11739
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11740
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11742
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11743
case $lt_prog_compiler_pic_CXX in
11745
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11748
lt_prog_compiler_pic_CXX=
11749
lt_prog_compiler_can_build_shared_CXX=no
11754
# For platforms which do not support PIC, -DPIC is meaningless:
11756
lt_prog_compiler_pic_CXX=
11759
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11763
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11764
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11765
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11766
echo $ECHO_N "(cached) $ECHO_C" >&6
11768
lt_cv_prog_compiler_c_o_CXX=no
11769
$rm -r conftest 2>/dev/null
11773
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11775
lt_compiler_flag="-o out/conftest2.$ac_objext"
11776
# Insert the option either (1) after the last *FLAGS variable, or
11777
# (2) before a word containing "conftest.", or (3) at the end.
11778
# Note that $ac_compile itself does not contain backslashes and begins
11779
# with a dollar sign (not a hyphen), so the echo should work correctly.
11780
lt_compile=`echo "$ac_compile" | $SED \
11781
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11782
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11783
-e 's:$: $lt_compiler_flag:'`
11784
(eval echo "\"\$as_me:11784: $lt_compile\"" >&5)
11785
(eval "$lt_compile" 2>out/conftest.err)
11787
cat out/conftest.err >&5
11788
echo "$as_me:11788: \$? = $ac_status" >&5
11789
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11791
# The compiler can only warn and ignore the option if not recognized
11792
# So say no if there are warnings
11793
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11794
$SED '/^$/d' out/conftest.err >out/conftest.er2
11795
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11796
lt_cv_prog_compiler_c_o_CXX=yes
11801
# SGI C++ compiler will create directory out/ii_files/ for
11802
# template instantiation
11803
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11804
$rm out/* && rmdir out
11810
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11811
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11814
hard_links="nottested"
11815
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11816
# do not overwrite the value of need_locks provided by the user
11817
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11818
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11821
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11823
ln conftest.a conftest.b 2>&5 || hard_links=no
11824
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11825
echo "$as_me:$LINENO: result: $hard_links" >&5
11826
echo "${ECHO_T}$hard_links" >&6
11827
if test "$hard_links" = no; then
11828
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11829
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11836
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11837
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11839
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11842
# If we're using GNU nm, then we don't want the "-C" option.
11843
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11844
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11845
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'
11847
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'
11851
export_symbols_cmds_CXX="$ltdll_cmds"
11854
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11857
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11861
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11862
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11863
test "$ld_shlibs_CXX" = no && can_build_shared=no
11865
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11866
if test "$GCC" = yes; then
11867
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11871
# Do we need to explicitly link libc?
11873
case "x$archive_cmds_need_lc_CXX" in
11875
# Assume -lc should be added
11876
archive_cmds_need_lc_CXX=yes
11878
if test "$enable_shared" = yes && test "$GCC" = yes; then
11879
case $archive_cmds_CXX in
11881
# FIXME: we may have to deal with multi-command sequences.
11884
# Test whether the compiler implicitly links with -lc since on some
11885
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11886
# to ld, don't add -lc before -lgcc.
11887
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11888
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11890
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893
(eval $ac_compile) 2>&5
11895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896
(exit $ac_status); } 2>conftest.err; then
11899
libobjs=conftest.$ac_objext
11901
wl=$lt_prog_compiler_wl_CXX
11907
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11908
allow_undefined_flag_CXX=
11909
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11910
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
(exit $ac_status); }
11915
archive_cmds_need_lc_CXX=no
11917
archive_cmds_need_lc_CXX=yes
11919
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11921
cat conftest.err 1>&5
11924
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11925
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11932
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11933
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11934
library_names_spec=
11935
libname_spec='lib$name'
11939
postuninstall_cmds=
11943
shlibpath_overrides_runpath=unknown
11945
dynamic_linker="$host_os ld.so"
11946
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11947
if test "$GCC" = yes; then
11948
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11949
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11950
# if the path contains ";" then we assume it to be the separator
11951
# otherwise default to the standard path separator (i.e. ":") - it is
11952
# assumed that no part of a normal pathname contains ";" but that should
11953
# okay in the real world where ";" in dirpaths is itself problematic.
11954
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11956
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11959
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11961
need_lib_prefix=unknown
11962
hardcode_into_libs=no
11964
# when you set need_version to no, make sure it does not cause -set_version
11965
# flags to be left without arguments
11966
need_version=unknown
11971
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11972
shlibpath_var=LIBPATH
11974
# AIX 3 has no versioning support, so we append a major version to the name.
11975
soname_spec='${libname}${release}${shared_ext}$major'
11982
hardcode_into_libs=yes
11983
if test "$host_cpu" = ia64; then
11984
# AIX 5 supports IA64
11985
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11986
shlibpath_var=LD_LIBRARY_PATH
11988
# With GCC up to 2.95.x, collect2 would create an import file
11989
# for dependence libraries. The import file would start with
11990
# the line `#! .'. This would cause the generated library to
11991
# depend on `.', always an invalid library. This was fixed in
11992
# development snapshots of GCC prior to 3.0.
11994
aix4 | aix4.[01] | aix4.[01].*)
11995
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11997
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12000
can_build_shared=no
12004
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12005
# soname into executable. Probably we can add versioning support to
12006
# collect2, so additional links can be useful in future.
12007
if test "$aix_use_runtimelinking" = yes; then
12008
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12009
# instead of lib<name>.a to let people know that these are not
12010
# typical AIX shared libraries.
12011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013
# We preserve .a as extension for shared libraries through AIX4.2
12014
# and later when we are not doing run time linking.
12015
library_names_spec='${libname}${release}.a $libname.a'
12016
soname_spec='${libname}${release}${shared_ext}$major'
12018
shlibpath_var=LIBPATH
12023
library_names_spec='$libname.ixlibrary $libname.a'
12024
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12025
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'
12029
library_names_spec='${libname}${shared_ext}'
12030
dynamic_linker="$host_os ld.so"
12031
shlibpath_var=LIBRARY_PATH
12037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038
soname_spec='${libname}${release}${shared_ext}$major'
12039
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12040
shlibpath_var=LD_LIBRARY_PATH
12041
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12042
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12043
# the default ld.so.conf also contains /usr/contrib/lib and
12044
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12045
# libtool to hard-code these into programs
12048
cygwin* | mingw* | pw32*)
12049
version_type=windows
12054
case $GCC,$host_os in
12055
yes,cygwin* | yes,mingw* | yes,pw32*)
12056
library_names_spec='$libname.dll.a'
12057
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12058
postinstall_cmds='base_file=`basename \${file}`~
12059
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12060
dldir=$destdir/`dirname \$dlpath`~
12061
test -d \$dldir || mkdir -p \$dldir~
12062
$install_prog $dir/$dlname \$dldir/$dlname'
12063
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12064
dlpath=$dir/\$dldll~
12066
shlibpath_overrides_runpath=yes
12070
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12071
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12072
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12075
# MinGW DLLs use traditional 'lib' prefix
12076
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12077
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12078
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12079
# It is most probably a Windows format PATH printed by
12080
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12081
# path with ; separators, and with drive letters. We can handle the
12082
# drive letters (cygwin fileutils understands them), so leave them,
12083
# especially as we might pass files found there to a mingw objdump,
12084
# which wouldn't understand a cygwinified path. Ahh.
12085
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12087
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091
# pw32 DLLs use 'pw' prefix rather than 'lib'
12092
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12098
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12099
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100
supports_anon_versioning=no
12101
case `$LD -v 2>/dev/null` in
12102
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12103
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12104
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12105
*\ 2.11.*) ;; # other 2.11 versions
12106
*) supports_anon_versioning=yes ;;
12108
if test $supports_anon_versioning = yes; then
12109
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12110
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12111
$echo "local: *; };" >> $output_objdir/$libname.ver~
12112
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12114
$archive_expsym_cmds="$archive_cmds"
12122
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12125
dynamic_linker='Win32 ld.exe'
12126
# FIXME: first we should search . and the directory the executable is in
12130
darwin* | rhapsody*)
12131
dynamic_linker="$host_os dyld"
12132
version_type=darwin
12135
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12136
soname_spec='${libname}${release}${major}$shared_ext'
12137
shlibpath_overrides_runpath=yes
12138
shlibpath_var=DYLD_LIBRARY_PATH
12139
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12140
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12141
if test "$GCC" = yes; then
12142
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"`
12144
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12146
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12154
soname_spec='${libname}${release}${shared_ext}$major'
12155
shlibpath_var=LD_LIBRARY_PATH
12166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12167
soname_spec='${libname}${release}${shared_ext}$major'
12168
shlibpath_var=LD_LIBRARY_PATH
12169
shlibpath_overrides_runpath=no
12170
hardcode_into_libs=yes
12171
dynamic_linker='GNU ld.so'
12174
freebsd* | dragonfly*)
12175
# DragonFly does not have aout. When/if they implement a new
12176
# versioning mechanism, adjust this.
12177
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12178
version_type=freebsd-$objformat
12179
case $version_type in
12181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12186
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12190
shlibpath_var=LD_LIBRARY_PATH
12193
shlibpath_overrides_runpath=yes
12195
freebsd3.[01]* | freebsdelf3.[01]*)
12196
shlibpath_overrides_runpath=yes
12197
hardcode_into_libs=yes
12200
shlibpath_overrides_runpath=no
12201
hardcode_into_libs=yes
12210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12211
soname_spec='${libname}${release}${shared_ext}$major'
12212
shlibpath_var=LD_LIBRARY_PATH
12213
hardcode_into_libs=yes
12216
hpux9* | hpux10* | hpux11*)
12217
# Give a soname corresponding to the major version so that dld.sl refuses to
12218
# link against other versions.
12222
case "$host_cpu" in
12225
hardcode_into_libs=yes
12226
dynamic_linker="$host_os dld.so"
12227
shlibpath_var=LD_LIBRARY_PATH
12228
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230
soname_spec='${libname}${release}${shared_ext}$major'
12231
if test "X$HPUX_IA64_MODE" = X32; then
12232
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12234
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12236
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12240
hardcode_into_libs=yes
12241
dynamic_linker="$host_os dld.sl"
12242
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12243
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245
soname_spec='${libname}${release}${shared_ext}$major'
12246
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12247
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12251
dynamic_linker="$host_os dld.sl"
12252
shlibpath_var=SHLIB_PATH
12253
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255
soname_spec='${libname}${release}${shared_ext}$major'
12258
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12259
postinstall_cmds='chmod 555 $lib'
12262
irix5* | irix6* | nonstopux*)
12264
nonstopux*) version_type=nonstopux ;;
12266
if test "$lt_cv_prog_gnu_ld" = yes; then
12274
soname_spec='${libname}${release}${shared_ext}$major'
12275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12277
irix5* | nonstopux*)
12278
libsuff= shlibsuff=
12281
case $LD in # libtool.m4 will add one of these switches to LD
12282
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12283
libsuff= shlibsuff= libmagic=32-bit;;
12284
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12285
libsuff=32 shlibsuff=N32 libmagic=N32;;
12286
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12287
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12288
*) libsuff= shlibsuff= libmagic=never-match;;
12292
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12293
shlibpath_overrides_runpath=no
12294
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12295
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12296
hardcode_into_libs=yes
12299
# No shared lib support for Linux oldld, aout, or coff.
12300
linux*oldld* | linux*aout* | linux*coff*)
12304
# This must be Linux ELF.
12309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310
soname_spec='${libname}${release}${shared_ext}$major'
12311
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12312
shlibpath_var=LD_LIBRARY_PATH
12313
shlibpath_overrides_runpath=no
12314
# This implies no fast_install, which is unacceptable.
12315
# Some rework will be needed to allow for fast_install
12316
# before this can be enabled.
12317
hardcode_into_libs=yes
12319
# Append ld.so.conf contents to the search path
12320
if test -f /etc/ld.so.conf; then
12321
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12322
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12325
case $host_cpu:$lt_cv_cc_64bit_output in
12326
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
12327
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
12328
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12332
# We used to test for /lib/ld.so.1 and disable shared libraries on
12333
# powerpc, because MkLinux only supported shared libraries with the
12334
# GNU dynamic linker. Since this was broken with cross compilers,
12335
# most powerpc-linux boxes support dynamic linking these days and
12336
# people can always --disable-shared, the test was removed, and we
12337
# assume the GNU/Linux dynamic linker is in use.
12338
dynamic_linker='GNU/Linux ld.so'
12340
# Find out which ABI we are using (multilib Linux x86_64 hack).
12342
case "$host_cpu" in
12344
echo '#line 12344 "configure"' > conftest.$ac_ext
12345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346
(eval $ac_compile) 2>&5
12348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349
(exit $ac_status); }; then
12350
case `/usr/bin/file conftest.$ac_objext` in
12361
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12362
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12370
soname_spec='${libname}${release}${shared_ext}$major'
12371
shlibpath_var=LD_LIBRARY_PATH
12372
shlibpath_overrides_runpath=no
12373
hardcode_into_libs=yes
12374
dynamic_linker='GNU ld.so'
12381
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12383
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12384
dynamic_linker='NetBSD (a.out) ld.so'
12386
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12387
soname_spec='${libname}${release}${shared_ext}$major'
12388
dynamic_linker='NetBSD ld.elf_so'
12390
shlibpath_var=LD_LIBRARY_PATH
12391
shlibpath_overrides_runpath=yes
12392
hardcode_into_libs=yes
12397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12398
shlibpath_var=LD_LIBRARY_PATH
12399
shlibpath_overrides_runpath=yes
12406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407
soname_spec='${libname}${release}${shared_ext}$major'
12408
shlibpath_var=LD_LIBRARY_PATH
12409
shlibpath_overrides_runpath=yes
12415
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12417
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12418
*) need_version=no ;;
12420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12421
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12422
shlibpath_var=LD_LIBRARY_PATH
12423
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12425
openbsd2.[89] | openbsd2.[89].*)
12426
shlibpath_overrides_runpath=no
12429
shlibpath_overrides_runpath=yes
12433
shlibpath_overrides_runpath=yes
12438
libname_spec='$name'
12441
library_names_spec='$libname${shared_ext} $libname.a'
12442
dynamic_linker='OS/2 ld.exe'
12443
shlibpath_var=LIBPATH
12446
osf3* | osf4* | osf5*)
12450
soname_spec='${libname}${release}${shared_ext}$major'
12451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452
shlibpath_var=LD_LIBRARY_PATH
12453
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12454
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12459
soname_spec='${libname}${release}${shared_ext}$major'
12460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461
shlibpath_var=LD_LIBRARY_PATH
12468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469
soname_spec='${libname}${release}${shared_ext}$major'
12470
shlibpath_var=LD_LIBRARY_PATH
12471
shlibpath_overrides_runpath=yes
12472
hardcode_into_libs=yes
12473
# ldd complains unless libraries are executable
12474
postinstall_cmds='chmod +x $lib'
12479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12480
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12481
shlibpath_var=LD_LIBRARY_PATH
12482
shlibpath_overrides_runpath=yes
12483
if test "$with_gnu_ld" = yes; then
12489
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492
soname_spec='${libname}${release}${shared_ext}$major'
12493
shlibpath_var=LD_LIBRARY_PATH
12494
case $host_vendor in
12496
shlibpath_overrides_runpath=no
12498
export_dynamic_flag_spec='${wl}-Blargedynsym'
12499
runpath_var=LD_RUN_PATH
12507
shlibpath_overrides_runpath=no
12508
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12514
if test -d /usr/nec ;then
12516
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12517
soname_spec='$libname${shared_ext}.$major'
12518
shlibpath_var=LD_LIBRARY_PATH
12524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525
soname_spec='${libname}${release}${shared_ext}$major'
12526
shlibpath_var=LD_LIBRARY_PATH
12533
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12534
echo "${ECHO_T}$dynamic_linker" >&6
12535
test "$dynamic_linker" = no && can_build_shared=no
12537
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12538
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12539
hardcode_action_CXX=
12540
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12541
test -n "$runpath_var_CXX" || \
12542
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12544
# We can hardcode non-existant directories.
12545
if test "$hardcode_direct_CXX" != no &&
12546
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12547
# have to relink, otherwise we might link with an installed library
12548
# when we should be linking with a yet-to-be-installed one
12549
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12550
test "$hardcode_minus_L_CXX" != no; then
12551
# Linking always hardcodes the temporary library directory.
12552
hardcode_action_CXX=relink
12554
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12555
hardcode_action_CXX=immediate
12558
# We cannot hardcode anything, or else we can only hardcode existing
12560
hardcode_action_CXX=unsupported
12562
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12563
echo "${ECHO_T}$hardcode_action_CXX" >&6
12565
if test "$hardcode_action_CXX" = relink; then
12566
# Fast installation is not supported
12567
enable_fast_install=no
12568
elif test "$shlibpath_overrides_runpath" = yes ||
12569
test "$enable_shared" = no; then
12570
# Fast installation is not necessary
12571
enable_fast_install=needless
12576
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12577
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12578
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12579
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12580
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12581
echo "$as_me:$LINENO: result: yes" >&5
12582
echo "${ECHO_T}yes" >&6
12584
# FIXME - insert some real tests, host_os isn't really good enough
12587
if test -n "$STRIP" ; then
12588
striplib="$STRIP -x"
12589
echo "$as_me:$LINENO: result: yes" >&5
12590
echo "${ECHO_T}yes" >&6
12592
echo "$as_me:$LINENO: result: no" >&5
12593
echo "${ECHO_T}no" >&6
12597
echo "$as_me:$LINENO: result: no" >&5
12598
echo "${ECHO_T}no" >&6
12603
if test "x$enable_dlopen" != xyes; then
12604
enable_dlopen=unknown
12605
enable_dlopen_self=unknown
12606
enable_dlopen_self_static=unknown
12613
lt_cv_dlopen="load_add_on"
12615
lt_cv_dlopen_self=yes
12619
lt_cv_dlopen="LoadLibrary"
12624
lt_cv_dlopen="dlopen"
12629
# if libdl is installed we need to link against it
12630
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12631
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12632
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12633
echo $ECHO_N "(cached) $ECHO_C" >&6
12635
ac_check_lib_save_LIBS=$LIBS
12637
cat >conftest.$ac_ext <<_ACEOF
12640
cat confdefs.h >>conftest.$ac_ext
12641
cat >>conftest.$ac_ext <<_ACEOF
12642
/* end confdefs.h. */
12644
/* Override any gcc2 internal prototype to avoid an error. */
12648
/* We use char because int might match the return type of a gcc2
12649
builtin and then its argument prototype would still apply. */
12659
rm -f conftest.$ac_objext conftest$ac_exeext
12660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661
(eval $ac_link) 2>conftest.er1
12663
grep -v '^ *+' conftest.er1 >conftest.err
12665
cat conftest.err >&5
12666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667
(exit $ac_status); } &&
12668
{ ac_try='test -z "$ac_cxx_werror_flag"
12669
|| test ! -s conftest.err'
12670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671
(eval $ac_try) 2>&5
12673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674
(exit $ac_status); }; } &&
12675
{ ac_try='test -s conftest$ac_exeext'
12676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677
(eval $ac_try) 2>&5
12679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680
(exit $ac_status); }; }; then
12681
ac_cv_lib_dl_dlopen=yes
12683
echo "$as_me: failed program was:" >&5
12684
sed 's/^/| /' conftest.$ac_ext >&5
12686
ac_cv_lib_dl_dlopen=no
12688
rm -f conftest.err conftest.$ac_objext \
12689
conftest$ac_exeext conftest.$ac_ext
12690
LIBS=$ac_check_lib_save_LIBS
12692
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12693
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12694
if test $ac_cv_lib_dl_dlopen = yes; then
12695
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12698
lt_cv_dlopen="dyld"
12700
lt_cv_dlopen_self=yes
12707
echo "$as_me:$LINENO: checking for shl_load" >&5
12708
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12709
if test "${ac_cv_func_shl_load+set}" = set; then
12710
echo $ECHO_N "(cached) $ECHO_C" >&6
12712
cat >conftest.$ac_ext <<_ACEOF
12715
cat confdefs.h >>conftest.$ac_ext
12716
cat >>conftest.$ac_ext <<_ACEOF
12717
/* end confdefs.h. */
12718
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12719
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12720
#define shl_load innocuous_shl_load
12722
/* System header to define __stub macros and hopefully few prototypes,
12723
which can conflict with char shl_load (); below.
12724
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12725
<limits.h> exists even on freestanding compilers. */
12728
# include <limits.h>
12730
# include <assert.h>
12735
/* Override any gcc2 internal prototype to avoid an error. */
12740
/* We use char because int might match the return type of a gcc2
12741
builtin and then its argument prototype would still apply. */
12743
/* The GNU C library defines this for functions which it implements
12744
to always fail with ENOSYS. Some functions are actually named
12745
something starting with __ and the normal name is an alias. */
12746
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12749
char (*f) () = shl_load;
12758
return f != shl_load;
12763
rm -f conftest.$ac_objext conftest$ac_exeext
12764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12765
(eval $ac_link) 2>conftest.er1
12767
grep -v '^ *+' conftest.er1 >conftest.err
12769
cat conftest.err >&5
12770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771
(exit $ac_status); } &&
12772
{ ac_try='test -z "$ac_cxx_werror_flag"
12773
|| test ! -s conftest.err'
12774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775
(eval $ac_try) 2>&5
12777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778
(exit $ac_status); }; } &&
12779
{ ac_try='test -s conftest$ac_exeext'
12780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781
(eval $ac_try) 2>&5
12783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
(exit $ac_status); }; }; then
12785
ac_cv_func_shl_load=yes
12787
echo "$as_me: failed program was:" >&5
12788
sed 's/^/| /' conftest.$ac_ext >&5
12790
ac_cv_func_shl_load=no
12792
rm -f conftest.err conftest.$ac_objext \
12793
conftest$ac_exeext conftest.$ac_ext
12795
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12796
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12797
if test $ac_cv_func_shl_load = yes; then
12798
lt_cv_dlopen="shl_load"
12800
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12801
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12802
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12803
echo $ECHO_N "(cached) $ECHO_C" >&6
12805
ac_check_lib_save_LIBS=$LIBS
12807
cat >conftest.$ac_ext <<_ACEOF
12810
cat confdefs.h >>conftest.$ac_ext
12811
cat >>conftest.$ac_ext <<_ACEOF
12812
/* end confdefs.h. */
12814
/* Override any gcc2 internal prototype to avoid an error. */
12818
/* We use char because int might match the return type of a gcc2
12819
builtin and then its argument prototype would still apply. */
12829
rm -f conftest.$ac_objext conftest$ac_exeext
12830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12831
(eval $ac_link) 2>conftest.er1
12833
grep -v '^ *+' conftest.er1 >conftest.err
12835
cat conftest.err >&5
12836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837
(exit $ac_status); } &&
12838
{ ac_try='test -z "$ac_cxx_werror_flag"
12839
|| test ! -s conftest.err'
12840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841
(eval $ac_try) 2>&5
12843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844
(exit $ac_status); }; } &&
12845
{ ac_try='test -s conftest$ac_exeext'
12846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847
(eval $ac_try) 2>&5
12849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850
(exit $ac_status); }; }; then
12851
ac_cv_lib_dld_shl_load=yes
12853
echo "$as_me: failed program was:" >&5
12854
sed 's/^/| /' conftest.$ac_ext >&5
12856
ac_cv_lib_dld_shl_load=no
12858
rm -f conftest.err conftest.$ac_objext \
12859
conftest$ac_exeext conftest.$ac_ext
12860
LIBS=$ac_check_lib_save_LIBS
12862
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12863
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12864
if test $ac_cv_lib_dld_shl_load = yes; then
12865
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12867
echo "$as_me:$LINENO: checking for dlopen" >&5
12868
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12869
if test "${ac_cv_func_dlopen+set}" = set; then
12870
echo $ECHO_N "(cached) $ECHO_C" >&6
12872
cat >conftest.$ac_ext <<_ACEOF
12875
cat confdefs.h >>conftest.$ac_ext
12876
cat >>conftest.$ac_ext <<_ACEOF
12877
/* end confdefs.h. */
12878
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12879
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12880
#define dlopen innocuous_dlopen
12882
/* System header to define __stub macros and hopefully few prototypes,
12883
which can conflict with char dlopen (); below.
12884
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12885
<limits.h> exists even on freestanding compilers. */
12888
# include <limits.h>
12890
# include <assert.h>
12895
/* Override any gcc2 internal prototype to avoid an error. */
12900
/* We use char because int might match the return type of a gcc2
12901
builtin and then its argument prototype would still apply. */
12903
/* The GNU C library defines this for functions which it implements
12904
to always fail with ENOSYS. Some functions are actually named
12905
something starting with __ and the normal name is an alias. */
12906
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12909
char (*f) () = dlopen;
12918
return f != dlopen;
12923
rm -f conftest.$ac_objext conftest$ac_exeext
12924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12925
(eval $ac_link) 2>conftest.er1
12927
grep -v '^ *+' conftest.er1 >conftest.err
12929
cat conftest.err >&5
12930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
(exit $ac_status); } &&
12932
{ ac_try='test -z "$ac_cxx_werror_flag"
12933
|| test ! -s conftest.err'
12934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935
(eval $ac_try) 2>&5
12937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
(exit $ac_status); }; } &&
12939
{ ac_try='test -s conftest$ac_exeext'
12940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941
(eval $ac_try) 2>&5
12943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944
(exit $ac_status); }; }; then
12945
ac_cv_func_dlopen=yes
12947
echo "$as_me: failed program was:" >&5
12948
sed 's/^/| /' conftest.$ac_ext >&5
12950
ac_cv_func_dlopen=no
12952
rm -f conftest.err conftest.$ac_objext \
12953
conftest$ac_exeext conftest.$ac_ext
12955
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12956
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12957
if test $ac_cv_func_dlopen = yes; then
12958
lt_cv_dlopen="dlopen"
12960
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12961
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12962
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12963
echo $ECHO_N "(cached) $ECHO_C" >&6
12965
ac_check_lib_save_LIBS=$LIBS
12967
cat >conftest.$ac_ext <<_ACEOF
12970
cat confdefs.h >>conftest.$ac_ext
12971
cat >>conftest.$ac_ext <<_ACEOF
12972
/* end confdefs.h. */
12974
/* Override any gcc2 internal prototype to avoid an error. */
12978
/* We use char because int might match the return type of a gcc2
12979
builtin and then its argument prototype would still apply. */
12989
rm -f conftest.$ac_objext conftest$ac_exeext
12990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991
(eval $ac_link) 2>conftest.er1
12993
grep -v '^ *+' conftest.er1 >conftest.err
12995
cat conftest.err >&5
12996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997
(exit $ac_status); } &&
12998
{ ac_try='test -z "$ac_cxx_werror_flag"
12999
|| test ! -s conftest.err'
13000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001
(eval $ac_try) 2>&5
13003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004
(exit $ac_status); }; } &&
13005
{ ac_try='test -s conftest$ac_exeext'
13006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007
(eval $ac_try) 2>&5
13009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010
(exit $ac_status); }; }; then
13011
ac_cv_lib_dl_dlopen=yes
13013
echo "$as_me: failed program was:" >&5
13014
sed 's/^/| /' conftest.$ac_ext >&5
13016
ac_cv_lib_dl_dlopen=no
13018
rm -f conftest.err conftest.$ac_objext \
13019
conftest$ac_exeext conftest.$ac_ext
13020
LIBS=$ac_check_lib_save_LIBS
13022
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13023
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13024
if test $ac_cv_lib_dl_dlopen = yes; then
13025
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13027
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13028
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13029
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13030
echo $ECHO_N "(cached) $ECHO_C" >&6
13032
ac_check_lib_save_LIBS=$LIBS
13033
LIBS="-lsvld $LIBS"
13034
cat >conftest.$ac_ext <<_ACEOF
13037
cat confdefs.h >>conftest.$ac_ext
13038
cat >>conftest.$ac_ext <<_ACEOF
13039
/* end confdefs.h. */
13041
/* Override any gcc2 internal prototype to avoid an error. */
13045
/* We use char because int might match the return type of a gcc2
13046
builtin and then its argument prototype would still apply. */
13056
rm -f conftest.$ac_objext conftest$ac_exeext
13057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058
(eval $ac_link) 2>conftest.er1
13060
grep -v '^ *+' conftest.er1 >conftest.err
13062
cat conftest.err >&5
13063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064
(exit $ac_status); } &&
13065
{ ac_try='test -z "$ac_cxx_werror_flag"
13066
|| test ! -s conftest.err'
13067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068
(eval $ac_try) 2>&5
13070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071
(exit $ac_status); }; } &&
13072
{ ac_try='test -s conftest$ac_exeext'
13073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074
(eval $ac_try) 2>&5
13076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077
(exit $ac_status); }; }; then
13078
ac_cv_lib_svld_dlopen=yes
13080
echo "$as_me: failed program was:" >&5
13081
sed 's/^/| /' conftest.$ac_ext >&5
13083
ac_cv_lib_svld_dlopen=no
13085
rm -f conftest.err conftest.$ac_objext \
13086
conftest$ac_exeext conftest.$ac_ext
13087
LIBS=$ac_check_lib_save_LIBS
13089
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13090
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13091
if test $ac_cv_lib_svld_dlopen = yes; then
13092
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13094
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13095
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13096
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13097
echo $ECHO_N "(cached) $ECHO_C" >&6
13099
ac_check_lib_save_LIBS=$LIBS
13101
cat >conftest.$ac_ext <<_ACEOF
13104
cat confdefs.h >>conftest.$ac_ext
13105
cat >>conftest.$ac_ext <<_ACEOF
13106
/* end confdefs.h. */
13108
/* Override any gcc2 internal prototype to avoid an error. */
13112
/* We use char because int might match the return type of a gcc2
13113
builtin and then its argument prototype would still apply. */
13123
rm -f conftest.$ac_objext conftest$ac_exeext
13124
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125
(eval $ac_link) 2>conftest.er1
13127
grep -v '^ *+' conftest.er1 >conftest.err
13129
cat conftest.err >&5
13130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131
(exit $ac_status); } &&
13132
{ ac_try='test -z "$ac_cxx_werror_flag"
13133
|| test ! -s conftest.err'
13134
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135
(eval $ac_try) 2>&5
13137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138
(exit $ac_status); }; } &&
13139
{ ac_try='test -s conftest$ac_exeext'
13140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141
(eval $ac_try) 2>&5
13143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144
(exit $ac_status); }; }; then
13145
ac_cv_lib_dld_dld_link=yes
13147
echo "$as_me: failed program was:" >&5
13148
sed 's/^/| /' conftest.$ac_ext >&5
13150
ac_cv_lib_dld_dld_link=no
13152
rm -f conftest.err conftest.$ac_objext \
13153
conftest$ac_exeext conftest.$ac_ext
13154
LIBS=$ac_check_lib_save_LIBS
13156
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13157
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13158
if test $ac_cv_lib_dld_dld_link = yes; then
13159
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13180
if test "x$lt_cv_dlopen" != xno; then
13186
case $lt_cv_dlopen in
13188
save_CPPFLAGS="$CPPFLAGS"
13189
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13191
save_LDFLAGS="$LDFLAGS"
13192
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13195
LIBS="$lt_cv_dlopen_libs $LIBS"
13197
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13198
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13199
if test "${lt_cv_dlopen_self+set}" = set; then
13200
echo $ECHO_N "(cached) $ECHO_C" >&6
13202
if test "$cross_compiling" = yes; then :
13203
lt_cv_dlopen_self=cross
13205
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13206
lt_status=$lt_dlunknown
13207
cat > conftest.$ac_ext <<EOF
13208
#line 13208 "configure"
13209
#include "confdefs.h"
13218
# define LT_DLGLOBAL RTLD_GLOBAL
13221
# define LT_DLGLOBAL DL_GLOBAL
13223
# define LT_DLGLOBAL 0
13227
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13228
find out it does not work in some platform. */
13229
#ifndef LT_DLLAZY_OR_NOW
13231
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13234
# define LT_DLLAZY_OR_NOW DL_LAZY
13237
# define LT_DLLAZY_OR_NOW RTLD_NOW
13240
# define LT_DLLAZY_OR_NOW DL_NOW
13242
# define LT_DLLAZY_OR_NOW 0
13250
extern "C" void exit (int);
13253
void fnord() { int i=42;}
13256
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13257
int status = $lt_dlunknown;
13261
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13262
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13263
/* dlclose (self); */
13269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13270
(eval $ac_link) 2>&5
13272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13274
(./conftest; exit; ) 2>/dev/null
13276
case x$lt_status in
13277
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13278
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13279
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13282
# compilation failed
13283
lt_cv_dlopen_self=no
13290
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13291
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13293
if test "x$lt_cv_dlopen_self" = xyes; then
13294
LDFLAGS="$LDFLAGS $link_static_flag"
13295
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13296
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13297
if test "${lt_cv_dlopen_self_static+set}" = set; then
13298
echo $ECHO_N "(cached) $ECHO_C" >&6
13300
if test "$cross_compiling" = yes; then :
13301
lt_cv_dlopen_self_static=cross
13303
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13304
lt_status=$lt_dlunknown
13305
cat > conftest.$ac_ext <<EOF
13306
#line 13306 "configure"
13307
#include "confdefs.h"
13316
# define LT_DLGLOBAL RTLD_GLOBAL
13319
# define LT_DLGLOBAL DL_GLOBAL
13321
# define LT_DLGLOBAL 0
13325
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13326
find out it does not work in some platform. */
13327
#ifndef LT_DLLAZY_OR_NOW
13329
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13332
# define LT_DLLAZY_OR_NOW DL_LAZY
13335
# define LT_DLLAZY_OR_NOW RTLD_NOW
13338
# define LT_DLLAZY_OR_NOW DL_NOW
13340
# define LT_DLLAZY_OR_NOW 0
13348
extern "C" void exit (int);
13351
void fnord() { int i=42;}
13354
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13355
int status = $lt_dlunknown;
13359
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13360
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13361
/* dlclose (self); */
13367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368
(eval $ac_link) 2>&5
13370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13372
(./conftest; exit; ) 2>/dev/null
13374
case x$lt_status in
13375
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13376
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13377
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13380
# compilation failed
13381
lt_cv_dlopen_self_static=no
13388
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13389
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13392
CPPFLAGS="$save_CPPFLAGS"
13393
LDFLAGS="$save_LDFLAGS"
13398
case $lt_cv_dlopen_self in
13399
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13400
*) enable_dlopen_self=unknown ;;
13403
case $lt_cv_dlopen_self_static in
13404
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13405
*) enable_dlopen_self_static=unknown ;;
13410
# The else clause should only fire when bootstrapping the
13411
# libtool distribution, otherwise you forgot to ship ltmain.sh
13412
# with your package, and you will get complaints that there are
13413
# no rules to generate ltmain.sh.
13414
if test -f "$ltmain"; then
13415
# See if we are running on zsh, and set the options which allow our commands through
13416
# without removal of \ escapes.
13417
if test -n "${ZSH_VERSION+set}" ; then
13418
setopt NO_GLOB_SUBST
13420
# Now quote all the things that may contain metacharacters while being
13421
# careful not to overquote the AC_SUBSTed values. We take copies of the
13422
# variables and quote the copies for generation of the libtool script.
13423
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13425
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13426
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13427
deplibs_check_method reload_flag reload_cmds need_locks \
13428
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13429
lt_cv_sys_global_symbol_to_c_name_address \
13430
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13431
old_postinstall_cmds old_postuninstall_cmds \
13435
lt_prog_compiler_wl_CXX \
13436
lt_prog_compiler_pic_CXX \
13437
lt_prog_compiler_static_CXX \
13438
lt_prog_compiler_no_builtin_flag_CXX \
13439
export_dynamic_flag_spec_CXX \
13440
thread_safe_flag_spec_CXX \
13441
whole_archive_flag_spec_CXX \
13442
enable_shared_with_static_runtimes_CXX \
13443
old_archive_cmds_CXX \
13444
old_archive_from_new_cmds_CXX \
13445
predep_objects_CXX \
13446
postdep_objects_CXX \
13449
compiler_lib_search_path_CXX \
13451
archive_expsym_cmds_CXX \
13452
postinstall_cmds_CXX \
13453
postuninstall_cmds_CXX \
13454
old_archive_from_expsyms_cmds_CXX \
13455
allow_undefined_flag_CXX \
13456
no_undefined_flag_CXX \
13457
export_symbols_cmds_CXX \
13458
hardcode_libdir_flag_spec_CXX \
13459
hardcode_libdir_flag_spec_ld_CXX \
13460
hardcode_libdir_separator_CXX \
13461
hardcode_automatic_CXX \
13463
module_expsym_cmds_CXX \
13464
lt_cv_prog_compiler_c_o_CXX \
13465
exclude_expsyms_CXX \
13466
include_expsyms_CXX; do
13469
old_archive_cmds_CXX | \
13470
old_archive_from_new_cmds_CXX | \
13471
archive_cmds_CXX | \
13472
archive_expsym_cmds_CXX | \
13473
module_cmds_CXX | \
13474
module_expsym_cmds_CXX | \
13475
old_archive_from_expsyms_cmds_CXX | \
13476
export_symbols_cmds_CXX | \
13477
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13478
postinstall_cmds | postuninstall_cmds | \
13479
old_postinstall_cmds | old_postuninstall_cmds | \
13480
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13481
# Double-quote double-evaled strings.
13482
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13485
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13491
*'\$0 --fallback-echo"')
13492
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13498
cat <<__EOF__ >> "$cfgfile"
13499
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13501
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13503
# Shell to use when invoking shell scripts.
13506
# Whether or not to build shared libraries.
13507
build_libtool_libs=$enable_shared
13509
# Whether or not to build static libraries.
13510
build_old_libs=$enable_static
13512
# Whether or not to add -lc for building shared libraries.
13513
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13515
# Whether or not to disallow shared libs when runtime libs are static
13516
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13518
# Whether or not to optimize for fast installation.
13519
fast_install=$enable_fast_install
13522
host_alias=$host_alias
13526
# The build system.
13527
build_alias=$build_alias
13531
# An echo program that does not interpret backslashes.
13536
AR_FLAGS=$lt_AR_FLAGS
13541
# A language-specific compiler.
13542
CC=$lt_compiler_CXX
13544
# Is the compiler the GNU C compiler?
13550
# The linker used to build libraries.
13553
# Whether we need hard or soft links.
13556
# A BSD-compatible nm program.
13559
# A symbol stripping program
13562
# Used to examine libraries when file_magic_cmd begins "file"
13563
MAGIC_CMD=$MAGIC_CMD
13565
# Used on cygwin: DLL creation program.
13568
# Used on cygwin: object dumper.
13571
# Used on cygwin: assembler.
13574
# The name of the directory that contains temporary libtool files.
13577
# How to create reloadable object files.
13578
reload_flag=$lt_reload_flag
13579
reload_cmds=$lt_reload_cmds
13581
# How to pass a linker flag through the compiler.
13582
wl=$lt_lt_prog_compiler_wl_CXX
13584
# Object file suffix (normally "o").
13585
objext="$ac_objext"
13587
# Old archive suffix (normally "a").
13590
# Shared library suffix (normally ".so").
13591
shrext_cmds='$shrext_cmds'
13593
# Executable file suffix (normally "").
13596
# Additional compiler flags for building library objects.
13597
pic_flag=$lt_lt_prog_compiler_pic_CXX
13600
# What is the maximum length of a command?
13601
max_cmd_len=$lt_cv_sys_max_cmd_len
13603
# Does compiler simultaneously support -c and -o options?
13604
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13606
# Must we lock files when doing compilation?
13607
need_locks=$lt_need_locks
13609
# Do we need the lib prefix for modules?
13610
need_lib_prefix=$need_lib_prefix
13612
# Do we need a version for libraries?
13613
need_version=$need_version
13615
# Whether dlopen is supported.
13616
dlopen_support=$enable_dlopen
13618
# Whether dlopen of programs is supported.
13619
dlopen_self=$enable_dlopen_self
13621
# Whether dlopen of statically linked programs is supported.
13622
dlopen_self_static=$enable_dlopen_self_static
13624
# Compiler flag to prevent dynamic linking.
13625
link_static_flag=$lt_lt_prog_compiler_static_CXX
13627
# Compiler flag to turn off builtin functions.
13628
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13630
# Compiler flag to allow reflexive dlopens.
13631
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13633
# Compiler flag to generate shared objects directly from archives.
13634
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13636
# Compiler flag to generate thread-safe objects.
13637
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13639
# Library versioning type.
13640
version_type=$version_type
13642
# Format of library name prefix.
13643
libname_spec=$lt_libname_spec
13645
# List of archive names. First name is the real one, the rest are links.
13646
# The last name is the one that the linker finds with -lNAME.
13647
library_names_spec=$lt_library_names_spec
13649
# The coded name of the library, if different from the real name.
13650
soname_spec=$lt_soname_spec
13652
# Commands used to build and install an old-style archive.
13654
old_archive_cmds=$lt_old_archive_cmds_CXX
13655
old_postinstall_cmds=$lt_old_postinstall_cmds
13656
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13658
# Create an old-style archive from a shared archive.
13659
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13661
# Create a temporary old-style archive to link instead of a shared archive.
13662
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13664
# Commands used to build and install a shared archive.
13665
archive_cmds=$lt_archive_cmds_CXX
13666
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13667
postinstall_cmds=$lt_postinstall_cmds
13668
postuninstall_cmds=$lt_postuninstall_cmds
13670
# Commands used to build a loadable module (assumed same as above if empty)
13671
module_cmds=$lt_module_cmds_CXX
13672
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13674
# Commands to strip libraries.
13675
old_striplib=$lt_old_striplib
13676
striplib=$lt_striplib
13678
# Dependencies to place before the objects being linked to create a
13680
predep_objects=$lt_predep_objects_CXX
13682
# Dependencies to place after the objects being linked to create a
13684
postdep_objects=$lt_postdep_objects_CXX
13686
# Dependencies to place before the objects being linked to create a
13688
predeps=$lt_predeps_CXX
13690
# Dependencies to place after the objects being linked to create a
13692
postdeps=$lt_postdeps_CXX
13694
# The library search path used internally by the compiler when linking
13695
# a shared library.
13696
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13698
# Method to check whether dependent libraries are shared objects.
13699
deplibs_check_method=$lt_deplibs_check_method
13701
# Command to use when deplibs_check_method == file_magic.
13702
file_magic_cmd=$lt_file_magic_cmd
13704
# Flag that allows shared libraries with undefined symbols to be built.
13705
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13707
# Flag that forces no undefined symbols.
13708
no_undefined_flag=$lt_no_undefined_flag_CXX
13710
# Commands used to finish a libtool library installation in a directory.
13711
finish_cmds=$lt_finish_cmds
13713
# Same as above, but a single script fragment to be evaled but not shown.
13714
finish_eval=$lt_finish_eval
13716
# Take the output of nm and produce a listing of raw symbols and C names.
13717
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13719
# Transform the output of nm in a proper C declaration
13720
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13722
# Transform the output of nm in a C name address pair
13723
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13725
# This is the shared library runtime path variable.
13726
runpath_var=$runpath_var
13728
# This is the shared library path variable.
13729
shlibpath_var=$shlibpath_var
13731
# Is shlibpath searched before the hard-coded library search path?
13732
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13734
# How to hardcode a shared library path into an executable.
13735
hardcode_action=$hardcode_action_CXX
13737
# Whether we should hardcode library paths into libraries.
13738
hardcode_into_libs=$hardcode_into_libs
13740
# Flag to hardcode \$libdir into a binary during linking.
13741
# This must work even if \$libdir does not exist.
13742
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13744
# If ld is used when linking, flag to hardcode \$libdir into
13745
# a binary during linking. This must work even if \$libdir does
13747
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13749
# Whether we need a single -rpath flag with a separated argument.
13750
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13752
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13753
# resulting binary.
13754
hardcode_direct=$hardcode_direct_CXX
13756
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13757
# resulting binary.
13758
hardcode_minus_L=$hardcode_minus_L_CXX
13760
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13761
# the resulting binary.
13762
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13764
# Set to yes if building a shared library automatically hardcodes DIR into the library
13765
# and all subsequent libraries and executables linked against it.
13766
hardcode_automatic=$hardcode_automatic_CXX
13768
# Variables whose values should be saved in libtool wrapper scripts and
13769
# restored at relink time.
13770
variables_saved_for_relink="$variables_saved_for_relink"
13772
# Whether libtool must link a program against all its dependency libraries.
13773
link_all_deplibs=$link_all_deplibs_CXX
13775
# Compile-time system search path for libraries
13776
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13778
# Run-time system search path for libraries
13779
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13781
# Fix the shell variable \$srcfile for the compiler.
13782
fix_srcfile_path="$fix_srcfile_path_CXX"
13784
# Set to yes if exported symbols are required.
13785
always_export_symbols=$always_export_symbols_CXX
13787
# The commands to list exported symbols.
13788
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13790
# The commands to extract the exported symbol list from a shared archive.
13791
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13793
# Symbols that should not be listed in the preloaded symbols.
13794
exclude_expsyms=$lt_exclude_expsyms_CXX
13796
# Symbols that must always be exported.
13797
include_expsyms=$lt_include_expsyms_CXX
13799
# ### END LIBTOOL TAG CONFIG: $tagname
13805
# If there is no Makefile yet, we rely on a make rule to execute
13806
# `config.status --recheck' to rerun these tests and create the
13807
# libtool script then.
13808
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13809
if test -f "$ltmain_in"; then
13810
test -f Makefile && make "$ltmain"
13816
ac_cpp='$CPP $CPPFLAGS'
13817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13825
with_gnu_ldcxx=$with_gnu_ld
13826
with_gnu_ld=$lt_save_with_gnu_ld
13827
lt_cv_path_LDCXX=$lt_cv_path_LD
13828
lt_cv_path_LD=$lt_save_path_LD
13829
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13830
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13838
if test -n "$F77" && test "X$F77" != "Xno"; then
13841
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13842
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13846
archive_cmds_need_lc_F77=no
13847
allow_undefined_flag_F77=
13848
always_export_symbols_F77=no
13849
archive_expsym_cmds_F77=
13850
export_dynamic_flag_spec_F77=
13851
hardcode_direct_F77=no
13852
hardcode_libdir_flag_spec_F77=
13853
hardcode_libdir_flag_spec_ld_F77=
13854
hardcode_libdir_separator_F77=
13855
hardcode_minus_L_F77=no
13856
hardcode_automatic_F77=no
13858
module_expsym_cmds_F77=
13859
link_all_deplibs_F77=unknown
13860
old_archive_cmds_F77=$old_archive_cmds
13861
no_undefined_flag_F77=
13862
whole_archive_flag_spec_F77=
13863
enable_shared_with_static_runtimes_F77=no
13865
# Source file extension for f77 test sources.
13868
# Object file extension for compiled f77 test sources.
13872
# Code to be used in simple compile tests
13873
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13875
# Code to be used in simple link tests
13876
lt_simple_link_test_code=" program t\n end\n"
13878
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13880
# If no C compiler was specified, use CC.
13883
# Allow CC to be a program name with arguments.
13887
# save warnings/boilerplate of simple test code
13888
ac_outfile=conftest.$ac_objext
13889
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13890
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13891
_lt_compiler_boilerplate=`cat conftest.err`
13894
ac_outfile=conftest.$ac_objext
13895
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13896
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13897
_lt_linker_boilerplate=`cat conftest.err`
13901
# Allow CC to be a program name with arguments.
13906
for cc_temp in $compiler""; do
13908
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13909
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13914
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13917
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13918
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13919
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13920
echo "${ECHO_T}$can_build_shared" >&6
13922
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13923
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13924
test "$can_build_shared" = "no" && enable_shared=no
13926
# On AIX, shared libraries and static libraries use the same namespace, and
13927
# are all built from PIC.
13930
test "$enable_shared" = yes && enable_static=no
13931
if test -n "$RANLIB"; then
13932
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13933
postinstall_cmds='$RANLIB $lib'
13937
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13938
test "$enable_shared" = yes && enable_static=no
13942
echo "$as_me:$LINENO: result: $enable_shared" >&5
13943
echo "${ECHO_T}$enable_shared" >&6
13945
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13946
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13947
# Make sure either enable_shared or enable_static is yes.
13948
test "$enable_shared" = yes || enable_static=yes
13949
echo "$as_me:$LINENO: result: $enable_static" >&5
13950
echo "${ECHO_T}$enable_static" >&6
13952
test "$ld_shlibs_F77" = no && can_build_shared=no
13957
lt_prog_compiler_wl_F77=
13958
lt_prog_compiler_pic_F77=
13959
lt_prog_compiler_static_F77=
13961
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13962
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13964
if test "$GCC" = yes; then
13965
lt_prog_compiler_wl_F77='-Wl,'
13966
lt_prog_compiler_static_F77='-static'
13970
# All AIX code is PIC.
13971
if test "$host_cpu" = ia64; then
13972
# AIX 5 now supports IA64 processor
13973
lt_prog_compiler_static_F77='-Bstatic'
13978
# FIXME: we need at least 68020 code to build shared libraries, but
13979
# adding the `-m68020' flag to GCC prevents building anything better,
13981
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13984
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13985
# PIC is the default for these OSes.
13988
mingw* | pw32* | os2*)
13989
# This hack is so that the source file can tell whether it is being
13990
# built for inclusion in a dll (and should export symbols for example).
13991
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13994
darwin* | rhapsody*)
13995
# PIC is the default on this platform
13996
# Common symbols not allowed in MH_DYLIB files
13997
lt_prog_compiler_pic_F77='-fno-common'
14001
# Just because we use GCC doesn't mean we suddenly get shared libraries
14002
# on systems that don't support them.
14003
lt_prog_compiler_can_build_shared_F77=no
14008
if test -d /usr/nec; then
14009
lt_prog_compiler_pic_F77=-Kconform_pic
14014
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14015
# not for PA HP-UX.
14016
case "$host_cpu" in
14021
lt_prog_compiler_pic_F77='-fPIC'
14027
lt_prog_compiler_pic_F77='-fPIC'
14031
# PORTME Check for flag to pass linker flags through the system compiler.
14034
lt_prog_compiler_wl_F77='-Wl,'
14035
if test "$host_cpu" = ia64; then
14036
# AIX 5 now supports IA64 processor
14037
lt_prog_compiler_static_F77='-Bstatic'
14039
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14043
# PIC is the default on this platform
14044
# Common symbols not allowed in MH_DYLIB files
14045
case $cc_basename in
14047
lt_prog_compiler_pic_F77='-qnocommon'
14048
lt_prog_compiler_wl_F77='-Wl,'
14053
mingw* | pw32* | os2*)
14054
# This hack is so that the source file can tell whether it is being
14055
# built for inclusion in a dll (and should export symbols for example).
14056
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14059
hpux9* | hpux10* | hpux11*)
14060
lt_prog_compiler_wl_F77='-Wl,'
14061
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14062
# not for PA HP-UX.
14063
case "$host_cpu" in
14068
lt_prog_compiler_pic_F77='+Z'
14071
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14072
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14075
irix5* | irix6* | nonstopux*)
14076
lt_prog_compiler_wl_F77='-Wl,'
14077
# PIC (with -KPIC) is the default.
14078
lt_prog_compiler_static_F77='-non_shared'
14082
lt_prog_compiler_pic_F77='-KPIC'
14083
lt_prog_compiler_static_F77='-Bstatic'
14087
case $cc_basename in
14089
lt_prog_compiler_wl_F77='-Wl,'
14090
lt_prog_compiler_pic_F77='-KPIC'
14091
lt_prog_compiler_static_F77='-static'
14093
pgcc* | pgf77* | pgf90*)
14094
# Portland Group compilers (*not* the Pentium gcc compiler,
14095
# which looks to be a dead project)
14096
lt_prog_compiler_wl_F77='-Wl,'
14097
lt_prog_compiler_pic_F77='-fpic'
14098
lt_prog_compiler_static_F77='-static'
14101
lt_prog_compiler_wl_F77='-Wl,'
14102
# All Alpha code is PIC.
14103
lt_prog_compiler_static_F77='-non_shared'
14108
osf3* | osf4* | osf5*)
14109
lt_prog_compiler_wl_F77='-Wl,'
14110
# All OSF/1 code is PIC.
14111
lt_prog_compiler_static_F77='-non_shared'
14115
lt_prog_compiler_pic_F77='-Kpic'
14116
lt_prog_compiler_static_F77='-dn'
14120
lt_prog_compiler_pic_F77='-KPIC'
14121
lt_prog_compiler_static_F77='-Bstatic'
14122
case $cc_basename in
14123
f77* | f90* | f95*)
14124
lt_prog_compiler_wl_F77='-Qoption ld ';;
14126
lt_prog_compiler_wl_F77='-Wl,';;
14131
lt_prog_compiler_wl_F77='-Qoption ld '
14132
lt_prog_compiler_pic_F77='-PIC'
14133
lt_prog_compiler_static_F77='-Bstatic'
14136
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14137
lt_prog_compiler_wl_F77='-Wl,'
14138
lt_prog_compiler_pic_F77='-KPIC'
14139
lt_prog_compiler_static_F77='-Bstatic'
14143
if test -d /usr/nec ;then
14144
lt_prog_compiler_pic_F77='-Kconform_pic'
14145
lt_prog_compiler_static_F77='-Bstatic'
14150
lt_prog_compiler_wl_F77='-Wl,'
14151
lt_prog_compiler_can_build_shared_F77=no
14155
lt_prog_compiler_pic_F77='-pic'
14156
lt_prog_compiler_static_F77='-Bstatic'
14160
lt_prog_compiler_can_build_shared_F77=no
14165
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14166
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14169
# Check to make sure the PIC flag actually works.
14171
if test -n "$lt_prog_compiler_pic_F77"; then
14173
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14174
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14175
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14176
echo $ECHO_N "(cached) $ECHO_C" >&6
14178
lt_prog_compiler_pic_works_F77=no
14179
ac_outfile=conftest.$ac_objext
14180
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14181
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14182
# Insert the option either (1) after the last *FLAGS variable, or
14183
# (2) before a word containing "conftest.", or (3) at the end.
14184
# Note that $ac_compile itself does not contain backslashes and begins
14185
# with a dollar sign (not a hyphen), so the echo should work correctly.
14186
# The option is referenced via a variable to avoid confusing sed.
14187
lt_compile=`echo "$ac_compile" | $SED \
14188
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14189
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190
-e 's:$: $lt_compiler_flag:'`
14191
(eval echo "\"\$as_me:14191: $lt_compile\"" >&5)
14192
(eval "$lt_compile" 2>conftest.err)
14194
cat conftest.err >&5
14195
echo "$as_me:14195: \$? = $ac_status" >&5
14196
if (exit $ac_status) && test -s "$ac_outfile"; then
14197
# The compiler can only warn and ignore the option if not recognized
14198
# So say no if there are warnings other than the usual output.
14199
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14200
$SED '/^$/d' conftest.err >conftest.er2
14201
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14202
lt_prog_compiler_pic_works_F77=yes
14208
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14209
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14211
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14212
case $lt_prog_compiler_pic_F77 in
14214
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14217
lt_prog_compiler_pic_F77=
14218
lt_prog_compiler_can_build_shared_F77=no
14223
# For platforms which do not support PIC, -DPIC is meaningless:
14225
lt_prog_compiler_pic_F77=
14228
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14232
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14233
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14234
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14235
echo $ECHO_N "(cached) $ECHO_C" >&6
14237
lt_cv_prog_compiler_c_o_F77=no
14238
$rm -r conftest 2>/dev/null
14242
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14244
lt_compiler_flag="-o out/conftest2.$ac_objext"
14245
# Insert the option either (1) after the last *FLAGS variable, or
14246
# (2) before a word containing "conftest.", or (3) at the end.
14247
# Note that $ac_compile itself does not contain backslashes and begins
14248
# with a dollar sign (not a hyphen), so the echo should work correctly.
14249
lt_compile=`echo "$ac_compile" | $SED \
14250
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14251
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14252
-e 's:$: $lt_compiler_flag:'`
14253
(eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
14254
(eval "$lt_compile" 2>out/conftest.err)
14256
cat out/conftest.err >&5
14257
echo "$as_me:14257: \$? = $ac_status" >&5
14258
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14260
# The compiler can only warn and ignore the option if not recognized
14261
# So say no if there are warnings
14262
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14263
$SED '/^$/d' out/conftest.err >out/conftest.er2
14264
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14265
lt_cv_prog_compiler_c_o_F77=yes
14270
# SGI C++ compiler will create directory out/ii_files/ for
14271
# template instantiation
14272
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14273
$rm out/* && rmdir out
14279
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14280
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14283
hard_links="nottested"
14284
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14285
# do not overwrite the value of need_locks provided by the user
14286
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14287
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14290
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14292
ln conftest.a conftest.b 2>&5 || hard_links=no
14293
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14294
echo "$as_me:$LINENO: result: $hard_links" >&5
14295
echo "${ECHO_T}$hard_links" >&6
14296
if test "$hard_links" = no; then
14297
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14298
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14305
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14306
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14309
allow_undefined_flag_F77=
14310
enable_shared_with_static_runtimes_F77=no
14312
archive_expsym_cmds_F77=
14313
old_archive_From_new_cmds_F77=
14314
old_archive_from_expsyms_cmds_F77=
14315
export_dynamic_flag_spec_F77=
14316
whole_archive_flag_spec_F77=
14317
thread_safe_flag_spec_F77=
14318
hardcode_libdir_flag_spec_F77=
14319
hardcode_libdir_flag_spec_ld_F77=
14320
hardcode_libdir_separator_F77=
14321
hardcode_direct_F77=no
14322
hardcode_minus_L_F77=no
14323
hardcode_shlibpath_var_F77=unsupported
14324
link_all_deplibs_F77=unknown
14325
hardcode_automatic_F77=no
14327
module_expsym_cmds_F77=
14328
always_export_symbols_F77=no
14329
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14330
# include_expsyms should be a list of space-separated symbols to be *always*
14331
# included in the symbol list
14332
include_expsyms_F77=
14333
# exclude_expsyms can be an extended regexp of symbols to exclude
14334
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14335
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14336
# as well as any symbol that contains `d'.
14337
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14338
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14339
# platforms (ab)use it in PIC code, but their linkers get confused if
14340
# the symbol is explicitly referenced. Since portable code cannot
14341
# rely on this symbol name, it's probably fine to never include it in
14342
# preloaded symbol tables.
14343
extract_expsyms_cmds=
14344
# Just being paranoid about ensuring that cc_basename is set.
14345
for cc_temp in $compiler""; do
14347
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14348
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14353
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14356
cygwin* | mingw* | pw32*)
14357
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14358
# When not using gcc, we currently assume that we are using
14359
# Microsoft Visual C++.
14360
if test "$GCC" != yes; then
14370
if test "$with_gnu_ld" = yes; then
14371
# If archive_cmds runs LD, not CC, wlarc should be empty
14374
# Set some defaults for GNU ld with shared library support. These
14375
# are reset later if shared libraries are not supported. Putting them
14376
# here allows them to be overridden if necessary.
14377
runpath_var=LD_RUN_PATH
14378
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14379
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14380
# ancient GNU ld didn't support --whole-archive et. al.
14381
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14382
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14384
whole_archive_flag_spec_F77=
14386
supports_anon_versioning=no
14387
case `$LD -v 2>/dev/null` in
14388
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14389
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14390
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14391
*\ 2.11.*) ;; # other 2.11 versions
14392
*) supports_anon_versioning=yes ;;
14395
# See if GNU ld supports shared libraries.
14397
aix3* | aix4* | aix5*)
14398
# On AIX/PPC, the GNU linker is very broken
14399
if test "$host_cpu" != ia64; then
14403
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14404
*** to be unable to reliably create shared libraries on AIX.
14405
*** Therefore, libtool is disabling shared libraries support. If you
14406
*** really care for shared libraries, you may want to modify your PATH
14407
*** so that a non-GNU linker is found, and then restart.
14414
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)'
14415
hardcode_libdir_flag_spec_F77='-L$libdir'
14416
hardcode_minus_L_F77=yes
14418
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14419
# that the semantics of dynamic libraries on AmigaOS, at least up
14420
# to version 4, is to share data among multiple programs linked
14421
# with the same dynamic library. Since this doesn't match the
14422
# behavior of shared libraries on other platforms, we can't use
14428
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14429
allow_undefined_flag_F77=unsupported
14430
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14431
# support --undefined. This deserves some investigation. FIXME
14432
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438
cygwin* | mingw* | pw32*)
14439
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14440
# as there is no search path for DLLs.
14441
hardcode_libdir_flag_spec_F77='-L$libdir'
14442
allow_undefined_flag_F77=unsupported
14443
always_export_symbols_F77=no
14444
enable_shared_with_static_runtimes_F77=yes
14445
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14447
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14448
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14449
# If the export-symbols file already is a .def file (1st line
14450
# is EXPORTS), use it as is; otherwise, prepend...
14451
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14452
cp $export_symbols $output_objdir/$soname.def;
14454
echo EXPORTS > $output_objdir/$soname.def;
14455
cat $export_symbols >> $output_objdir/$soname.def;
14457
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14464
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14466
case $cc_basename,$host_cpu in
14467
pgcc*) # Portland Group C compiler
14468
whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14469
tmp_addflag=' $pic_flag'
14471
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14472
whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14473
tmp_addflag=' $pic_flag -Mnomain' ;;
14474
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14475
tmp_addflag=' -i_dynamic' ;;
14476
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14477
tmp_addflag=' -i_dynamic -nofor_main' ;;
14478
ifc* | ifort*) # Intel Fortran compiler
14479
tmp_addflag=' -nofor_main' ;;
14481
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14483
if test $supports_anon_versioning = yes; then
14484
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14485
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14486
$echo "local: *; };" >> $output_objdir/$libname.ver~
14487
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14495
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14496
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14499
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14505
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14509
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14510
*** create shared libraries on Solaris systems. Therefore, libtool
14511
*** is disabling shared libraries support. We urge you to upgrade GNU
14512
*** binutils to release 2.9.1 or newer. Another option is to modify
14513
*** your PATH or compiler configuration so that the native linker is
14514
*** used, and then restart.
14517
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14518
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14519
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14526
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14528
hardcode_direct_F77=yes
14529
hardcode_shlibpath_var_F77=no
14533
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14534
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14535
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14542
if test "$ld_shlibs_F77" = no; then
14544
hardcode_libdir_flag_spec_F77=
14545
export_dynamic_flag_spec_F77=
14546
whole_archive_flag_spec_F77=
14549
# PORTME fill in a description of your system's linker (not GNU ld)
14552
allow_undefined_flag_F77=unsupported
14553
always_export_symbols_F77=yes
14554
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'
14555
# Note: this linker hardcodes the directories in LIBPATH if there
14556
# are no directories specified by -L.
14557
hardcode_minus_L_F77=yes
14558
if test "$GCC" = yes && test -z "$link_static_flag"; then
14559
# Neither direct hardcoding nor static linking is supported with a
14561
hardcode_direct_F77=unsupported
14566
if test "$host_cpu" = ia64; then
14567
# On IA64, the linker does run time linking by default, so we don't
14568
# have to do anything special.
14569
aix_use_runtimelinking=no
14570
exp_sym_flag='-Bexport'
14573
# If we're using GNU nm, then we don't want the "-C" option.
14574
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14575
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14576
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'
14578
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'
14580
aix_use_runtimelinking=no
14582
# Test if we are trying to use run time linking or normal
14583
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14584
# need to do runtime linking.
14585
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14586
for ld_flag in $LDFLAGS; do
14587
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14588
aix_use_runtimelinking=yes
14594
exp_sym_flag='-bexport'
14595
no_entry_flag='-bnoentry'
14598
# When large executables or shared objects are built, AIX ld can
14599
# have problems creating the table of contents. If linking a library
14600
# or program results in "error TOC overflow" add -mminimal-toc to
14601
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14602
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14604
archive_cmds_F77=''
14605
hardcode_direct_F77=yes
14606
hardcode_libdir_separator_F77=':'
14607
link_all_deplibs_F77=yes
14609
if test "$GCC" = yes; then
14610
case $host_os in aix4.[012]|aix4.[012].*)
14611
# We only want to do this on AIX 4.2 and lower, the check
14612
# below for broken collect2 doesn't work under 4.3+
14613
collect2name=`${CC} -print-prog-name=collect2`
14614
if test -f "$collect2name" && \
14615
strings "$collect2name" | grep resolve_lib_name >/dev/null
14617
# We have reworked collect2
14618
hardcode_direct_F77=yes
14620
# We have old collect2
14621
hardcode_direct_F77=unsupported
14622
# It fails to find uninstalled libraries when the uninstalled
14623
# path is not listed in the libpath. Setting hardcode_minus_L
14624
# to unsupported forces relinking
14625
hardcode_minus_L_F77=yes
14626
hardcode_libdir_flag_spec_F77='-L$libdir'
14627
hardcode_libdir_separator_F77=
14630
shared_flag='-shared'
14631
if test "$aix_use_runtimelinking" = yes; then
14632
shared_flag="$shared_flag "'${wl}-G'
14636
if test "$host_cpu" = ia64; then
14637
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14638
# chokes on -Wl,-G. The following line is correct:
14641
if test "$aix_use_runtimelinking" = yes; then
14642
shared_flag='${wl}-G'
14644
shared_flag='${wl}-bM:SRE'
14649
# It seems that -bexpall does not export symbols beginning with
14650
# underscore (_), so it is better to generate a list of symbols to export.
14651
always_export_symbols_F77=yes
14652
if test "$aix_use_runtimelinking" = yes; then
14653
# Warning - without using the other runtime loading flags (-brtl),
14654
# -berok will link without error, but may produce a broken library.
14655
allow_undefined_flag_F77='-berok'
14656
# Determine the default libpath from the value encoded in an empty executable.
14657
cat >conftest.$ac_ext <<_ACEOF
14662
rm -f conftest.$ac_objext conftest$ac_exeext
14663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664
(eval $ac_link) 2>conftest.er1
14666
grep -v '^ *+' conftest.er1 >conftest.err
14668
cat conftest.err >&5
14669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670
(exit $ac_status); } &&
14671
{ ac_try='test -z "$ac_f77_werror_flag"
14672
|| test ! -s conftest.err'
14673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674
(eval $ac_try) 2>&5
14676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677
(exit $ac_status); }; } &&
14678
{ ac_try='test -s conftest$ac_exeext'
14679
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680
(eval $ac_try) 2>&5
14682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683
(exit $ac_status); }; }; then
14685
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14687
# Check for a 64-bit object if we didn't find anything.
14688
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; }
14691
echo "$as_me: failed program was:" >&5
14692
sed 's/^/| /' conftest.$ac_ext >&5
14695
rm -f conftest.err conftest.$ac_objext \
14696
conftest$ac_exeext conftest.$ac_ext
14697
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14699
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14700
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"
14702
if test "$host_cpu" = ia64; then
14703
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14704
allow_undefined_flag_F77="-z nodefs"
14705
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"
14707
# Determine the default libpath from the value encoded in an empty executable.
14708
cat >conftest.$ac_ext <<_ACEOF
14713
rm -f conftest.$ac_objext conftest$ac_exeext
14714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14715
(eval $ac_link) 2>conftest.er1
14717
grep -v '^ *+' conftest.er1 >conftest.err
14719
cat conftest.err >&5
14720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721
(exit $ac_status); } &&
14722
{ ac_try='test -z "$ac_f77_werror_flag"
14723
|| test ! -s conftest.err'
14724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725
(eval $ac_try) 2>&5
14727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728
(exit $ac_status); }; } &&
14729
{ ac_try='test -s conftest$ac_exeext'
14730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731
(eval $ac_try) 2>&5
14733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734
(exit $ac_status); }; }; then
14736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14738
# Check for a 64-bit object if we didn't find anything.
14739
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; }
14742
echo "$as_me: failed program was:" >&5
14743
sed 's/^/| /' conftest.$ac_ext >&5
14746
rm -f conftest.err conftest.$ac_objext \
14747
conftest$ac_exeext conftest.$ac_ext
14748
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14750
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14751
# Warning - without using the other run time loading flags,
14752
# -berok will link without error, but may produce a broken library.
14753
no_undefined_flag_F77=' ${wl}-bernotok'
14754
allow_undefined_flag_F77=' ${wl}-berok'
14755
# -bexpall does not export symbols beginning with underscore (_)
14756
always_export_symbols_F77=yes
14757
# Exported symbols can be pulled into shared objects from archives
14758
whole_archive_flag_spec_F77=' '
14759
archive_cmds_need_lc_F77=yes
14760
# This is similar to how AIX traditionally builds it's shared libraries.
14761
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'
14767
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)'
14768
hardcode_libdir_flag_spec_F77='-L$libdir'
14769
hardcode_minus_L_F77=yes
14770
# see comment about different semantics on the GNU ld section
14775
export_dynamic_flag_spec_F77=-rdynamic
14778
cygwin* | mingw* | pw32*)
14779
# When not using gcc, we currently assume that we are using
14780
# Microsoft Visual C++.
14781
# hardcode_libdir_flag_spec is actually meaningless, as there is
14782
# no search path for DLLs.
14783
hardcode_libdir_flag_spec_F77=' '
14784
allow_undefined_flag_F77=unsupported
14785
# Tell ltmain to make .lib files, not .a files.
14787
# Tell ltmain to make .dll files, not .so files.
14789
# FIXME: Setting linknames here is a bad hack.
14790
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14791
# The linker will automatically build a .lib file if we build a DLL.
14792
old_archive_From_new_cmds_F77='true'
14793
# FIXME: Should let the user specify the lib program.
14794
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14795
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14796
enable_shared_with_static_runtimes_F77=yes
14799
darwin* | rhapsody*)
14801
rhapsody* | darwin1.[012])
14802
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14805
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14806
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14808
case ${MACOSX_DEPLOYMENT_TARGET} in
14810
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14813
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14819
archive_cmds_need_lc_F77=no
14820
hardcode_direct_F77=no
14821
hardcode_automatic_F77=yes
14822
hardcode_shlibpath_var_F77=unsupported
14823
whole_archive_flag_spec_F77=''
14824
link_all_deplibs_F77=yes
14825
if test "$GCC" = yes ; then
14826
output_verbose_link_cmd='echo'
14827
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14828
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14829
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14830
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14831
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}'
14833
case $cc_basename in
14835
output_verbose_link_cmd='echo'
14836
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14837
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14838
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14839
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14840
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}'
14850
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851
hardcode_libdir_flag_spec_F77='-L$libdir'
14852
hardcode_shlibpath_var_F77=no
14859
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14860
# support. Future versions do this automatically, but an explicit c++rt0.o
14861
# does not break anything, and helps significantly (at the cost of a little
14864
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14865
hardcode_libdir_flag_spec_F77='-R$libdir'
14866
hardcode_direct_F77=yes
14867
hardcode_shlibpath_var_F77=no
14870
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14872
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14873
hardcode_direct_F77=yes
14874
hardcode_minus_L_F77=yes
14875
hardcode_shlibpath_var_F77=no
14878
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14879
freebsd* | kfreebsd*-gnu | dragonfly*)
14880
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14881
hardcode_libdir_flag_spec_F77='-R$libdir'
14882
hardcode_direct_F77=yes
14883
hardcode_shlibpath_var_F77=no
14887
if test "$GCC" = yes; then
14888
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'
14890
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'
14892
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14893
hardcode_libdir_separator_F77=:
14894
hardcode_direct_F77=yes
14896
# hardcode_minus_L: Not really in the search PATH,
14897
# but as the default location of the library.
14898
hardcode_minus_L_F77=yes
14899
export_dynamic_flag_spec_F77='${wl}-E'
14903
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14904
case "$host_cpu" in
14906
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14913
case "$host_cpu" in
14915
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14918
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14922
if test "$with_gnu_ld" = no; then
14923
case "$host_cpu" in
14925
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14926
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14927
hardcode_libdir_separator_F77=:
14928
hardcode_direct_F77=no
14929
hardcode_shlibpath_var_F77=no
14932
hardcode_libdir_flag_spec_F77='-L$libdir'
14933
hardcode_direct_F77=no
14934
hardcode_shlibpath_var_F77=no
14936
# hardcode_minus_L: Not really in the search PATH,
14937
# but as the default location of the library.
14938
hardcode_minus_L_F77=yes
14941
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14942
hardcode_libdir_separator_F77=:
14943
hardcode_direct_F77=yes
14944
export_dynamic_flag_spec_F77='${wl}-E'
14946
# hardcode_minus_L: Not really in the search PATH,
14947
# but as the default location of the library.
14948
hardcode_minus_L_F77=yes
14954
irix5* | irix6* | nonstopux*)
14955
if test "$GCC" = yes; then
14956
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'
14958
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'
14959
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14961
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14962
hardcode_libdir_separator_F77=:
14963
link_all_deplibs_F77=yes
14967
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14968
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14970
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14972
hardcode_libdir_flag_spec_F77='-R$libdir'
14973
hardcode_direct_F77=yes
14974
hardcode_shlibpath_var_F77=no
14978
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979
hardcode_direct_F77=yes
14980
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14981
hardcode_libdir_separator_F77=:
14982
hardcode_shlibpath_var_F77=no
14986
hardcode_direct_F77=yes
14987
hardcode_shlibpath_var_F77=no
14988
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14989
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14990
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14991
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14992
export_dynamic_flag_spec_F77='${wl}-E'
14995
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14996
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997
hardcode_libdir_flag_spec_F77='-R$libdir'
15000
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15001
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15008
hardcode_libdir_flag_spec_F77='-L$libdir'
15009
hardcode_minus_L_F77=yes
15010
allow_undefined_flag_F77=unsupported
15011
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'
15012
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15016
if test "$GCC" = yes; then
15017
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15018
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'
15020
allow_undefined_flag_F77=' -expect_unresolved \*'
15021
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'
15023
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15024
hardcode_libdir_separator_F77=:
15027
osf4* | osf5*) # as osf3* with the addition of -msym flag
15028
if test "$GCC" = yes; then
15029
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15030
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'
15031
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15033
allow_undefined_flag_F77=' -expect_unresolved \*'
15034
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'
15035
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~
15036
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15038
# Both c and cxx compiler support -rpath directly
15039
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15041
hardcode_libdir_separator_F77=:
15045
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046
hardcode_shlibpath_var_F77=no
15047
export_dynamic_flag_spec_F77='${wl}-Bexport'
15048
runpath_var=LD_RUN_PATH
15049
hardcode_runpath_var=yes
15053
no_undefined_flag_F77=' -z text'
15054
if test "$GCC" = yes; then
15056
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15057
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15058
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15061
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15063
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15065
hardcode_libdir_flag_spec_F77='-R$libdir'
15066
hardcode_shlibpath_var_F77=no
15068
solaris2.[0-5] | solaris2.[0-5].*) ;;
15070
# The compiler driver will combine linker options so we
15071
# cannot just pass the convience library names through
15072
# without $wl, iff we do not link with $LD.
15073
# Luckily, gcc supports the same syntax we need for Sun Studio.
15074
# Supported since Solaris 2.6 (maybe 2.5.1?)
15077
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15079
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15082
link_all_deplibs_F77=yes
15086
if test "x$host_vendor" = xsequent; then
15087
# Use $CC to link under sequent, because it throws in some extra .o
15088
# files that make .init and .fini sections work.
15089
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15091
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15093
hardcode_libdir_flag_spec_F77='-L$libdir'
15094
hardcode_direct_F77=yes
15095
hardcode_minus_L_F77=yes
15096
hardcode_shlibpath_var_F77=no
15100
case $host_vendor in
15102
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103
hardcode_direct_F77=yes # is this really true???
15106
## LD is ld it makes a PLAMLIB
15107
## CC just makes a GrossModule.
15108
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15109
reload_cmds_F77='$CC -r -o $output$reload_objs'
15110
hardcode_direct_F77=no
15113
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15117
runpath_var='LD_RUN_PATH'
15118
hardcode_shlibpath_var_F77=no
15122
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123
hardcode_shlibpath_var_F77=no
15124
export_dynamic_flag_spec_F77='-Bexport'
15128
if test -d /usr/nec; then
15129
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15130
hardcode_shlibpath_var_F77=no
15131
runpath_var=LD_RUN_PATH
15132
hardcode_runpath_var=yes
15138
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15139
hardcode_direct_F77=yes
15140
hardcode_minus_L_F77=no
15141
hardcode_shlibpath_var_F77=no
15142
hardcode_runpath_var=yes
15143
runpath_var=LD_RUN_PATH
15146
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15147
no_undefined_flag_F77='${wl}-z ${wl}text'
15148
if test "$GCC" = yes; then
15149
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153
runpath_var='LD_RUN_PATH'
15154
hardcode_shlibpath_var_F77=no
15158
no_undefined_flag_F77=' -z text'
15159
# $CC -shared without GNU ld will not create a library from C++
15160
# object files and a static libstdc++, better avoid it by now
15161
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15163
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15164
hardcode_libdir_flag_spec_F77=
15165
hardcode_shlibpath_var_F77=no
15166
runpath_var='LD_RUN_PATH'
15170
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15171
hardcode_libdir_flag_spec_F77='-L$libdir'
15172
hardcode_shlibpath_var_F77=no
15181
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15182
echo "${ECHO_T}$ld_shlibs_F77" >&6
15183
test "$ld_shlibs_F77" = no && can_build_shared=no
15185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15186
if test "$GCC" = yes; then
15187
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15191
# Do we need to explicitly link libc?
15193
case "x$archive_cmds_need_lc_F77" in
15195
# Assume -lc should be added
15196
archive_cmds_need_lc_F77=yes
15198
if test "$enable_shared" = yes && test "$GCC" = yes; then
15199
case $archive_cmds_F77 in
15201
# FIXME: we may have to deal with multi-command sequences.
15204
# Test whether the compiler implicitly links with -lc since on some
15205
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15206
# to ld, don't add -lc before -lgcc.
15207
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15208
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15210
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15212
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15213
(eval $ac_compile) 2>&5
15215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216
(exit $ac_status); } 2>conftest.err; then
15219
libobjs=conftest.$ac_objext
15221
wl=$lt_prog_compiler_wl_F77
15227
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15228
allow_undefined_flag_F77=
15229
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15230
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233
(exit $ac_status); }
15235
archive_cmds_need_lc_F77=no
15237
archive_cmds_need_lc_F77=yes
15239
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15241
cat conftest.err 1>&5
15244
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15245
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15252
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15253
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15254
library_names_spec=
15255
libname_spec='lib$name'
15259
postuninstall_cmds=
15263
shlibpath_overrides_runpath=unknown
15265
dynamic_linker="$host_os ld.so"
15266
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15267
if test "$GCC" = yes; then
15268
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15269
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15270
# if the path contains ";" then we assume it to be the separator
15271
# otherwise default to the standard path separator (i.e. ":") - it is
15272
# assumed that no part of a normal pathname contains ";" but that should
15273
# okay in the real world where ";" in dirpaths is itself problematic.
15274
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15276
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15279
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15281
need_lib_prefix=unknown
15282
hardcode_into_libs=no
15284
# when you set need_version to no, make sure it does not cause -set_version
15285
# flags to be left without arguments
15286
need_version=unknown
15291
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15292
shlibpath_var=LIBPATH
15294
# AIX 3 has no versioning support, so we append a major version to the name.
15295
soname_spec='${libname}${release}${shared_ext}$major'
15302
hardcode_into_libs=yes
15303
if test "$host_cpu" = ia64; then
15304
# AIX 5 supports IA64
15305
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15306
shlibpath_var=LD_LIBRARY_PATH
15308
# With GCC up to 2.95.x, collect2 would create an import file
15309
# for dependence libraries. The import file would start with
15310
# the line `#! .'. This would cause the generated library to
15311
# depend on `.', always an invalid library. This was fixed in
15312
# development snapshots of GCC prior to 3.0.
15314
aix4 | aix4.[01] | aix4.[01].*)
15315
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15317
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15320
can_build_shared=no
15324
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15325
# soname into executable. Probably we can add versioning support to
15326
# collect2, so additional links can be useful in future.
15327
if test "$aix_use_runtimelinking" = yes; then
15328
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15329
# instead of lib<name>.a to let people know that these are not
15330
# typical AIX shared libraries.
15331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333
# We preserve .a as extension for shared libraries through AIX4.2
15334
# and later when we are not doing run time linking.
15335
library_names_spec='${libname}${release}.a $libname.a'
15336
soname_spec='${libname}${release}${shared_ext}$major'
15338
shlibpath_var=LIBPATH
15343
library_names_spec='$libname.ixlibrary $libname.a'
15344
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15345
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'
15349
library_names_spec='${libname}${shared_ext}'
15350
dynamic_linker="$host_os ld.so"
15351
shlibpath_var=LIBRARY_PATH
15357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358
soname_spec='${libname}${release}${shared_ext}$major'
15359
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15360
shlibpath_var=LD_LIBRARY_PATH
15361
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15362
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15363
# the default ld.so.conf also contains /usr/contrib/lib and
15364
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15365
# libtool to hard-code these into programs
15368
cygwin* | mingw* | pw32*)
15369
version_type=windows
15374
case $GCC,$host_os in
15375
yes,cygwin* | yes,mingw* | yes,pw32*)
15376
library_names_spec='$libname.dll.a'
15377
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15378
postinstall_cmds='base_file=`basename \${file}`~
15379
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15380
dldir=$destdir/`dirname \$dlpath`~
15381
test -d \$dldir || mkdir -p \$dldir~
15382
$install_prog $dir/$dlname \$dldir/$dlname'
15383
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15384
dlpath=$dir/\$dldll~
15386
shlibpath_overrides_runpath=yes
15390
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15391
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15392
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15395
# MinGW DLLs use traditional 'lib' prefix
15396
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15397
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15398
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15399
# It is most probably a Windows format PATH printed by
15400
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15401
# path with ; separators, and with drive letters. We can handle the
15402
# drive letters (cygwin fileutils understands them), so leave them,
15403
# especially as we might pass files found there to a mingw objdump,
15404
# which wouldn't understand a cygwinified path. Ahh.
15405
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15407
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15411
# pw32 DLLs use 'pw' prefix rather than 'lib'
15412
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15418
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15419
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15420
supports_anon_versioning=no
15421
case `$LD -v 2>/dev/null` in
15422
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15423
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15424
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15425
*\ 2.11.*) ;; # other 2.11 versions
15426
*) supports_anon_versioning=yes ;;
15428
if test $supports_anon_versioning = yes; then
15429
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15430
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15431
$echo "local: *; };" >> $output_objdir/$libname.ver~
15432
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15434
$archive_expsym_cmds="$archive_cmds"
15442
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15445
dynamic_linker='Win32 ld.exe'
15446
# FIXME: first we should search . and the directory the executable is in
15450
darwin* | rhapsody*)
15451
dynamic_linker="$host_os dyld"
15452
version_type=darwin
15455
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15456
soname_spec='${libname}${release}${major}$shared_ext'
15457
shlibpath_overrides_runpath=yes
15458
shlibpath_var=DYLD_LIBRARY_PATH
15459
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15460
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15461
if test "$GCC" = yes; then
15462
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"`
15464
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15466
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15474
soname_spec='${libname}${release}${shared_ext}$major'
15475
shlibpath_var=LD_LIBRARY_PATH
15486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15487
soname_spec='${libname}${release}${shared_ext}$major'
15488
shlibpath_var=LD_LIBRARY_PATH
15489
shlibpath_overrides_runpath=no
15490
hardcode_into_libs=yes
15491
dynamic_linker='GNU ld.so'
15494
freebsd* | dragonfly*)
15495
# DragonFly does not have aout. When/if they implement a new
15496
# versioning mechanism, adjust this.
15497
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15498
version_type=freebsd-$objformat
15499
case $version_type in
15501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15506
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15510
shlibpath_var=LD_LIBRARY_PATH
15513
shlibpath_overrides_runpath=yes
15515
freebsd3.[01]* | freebsdelf3.[01]*)
15516
shlibpath_overrides_runpath=yes
15517
hardcode_into_libs=yes
15520
shlibpath_overrides_runpath=no
15521
hardcode_into_libs=yes
15530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15531
soname_spec='${libname}${release}${shared_ext}$major'
15532
shlibpath_var=LD_LIBRARY_PATH
15533
hardcode_into_libs=yes
15536
hpux9* | hpux10* | hpux11*)
15537
# Give a soname corresponding to the major version so that dld.sl refuses to
15538
# link against other versions.
15542
case "$host_cpu" in
15545
hardcode_into_libs=yes
15546
dynamic_linker="$host_os dld.so"
15547
shlibpath_var=LD_LIBRARY_PATH
15548
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550
soname_spec='${libname}${release}${shared_ext}$major'
15551
if test "X$HPUX_IA64_MODE" = X32; then
15552
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15554
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15556
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15560
hardcode_into_libs=yes
15561
dynamic_linker="$host_os dld.sl"
15562
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15563
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565
soname_spec='${libname}${release}${shared_ext}$major'
15566
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15567
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571
dynamic_linker="$host_os dld.sl"
15572
shlibpath_var=SHLIB_PATH
15573
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575
soname_spec='${libname}${release}${shared_ext}$major'
15578
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15579
postinstall_cmds='chmod 555 $lib'
15582
irix5* | irix6* | nonstopux*)
15584
nonstopux*) version_type=nonstopux ;;
15586
if test "$lt_cv_prog_gnu_ld" = yes; then
15594
soname_spec='${libname}${release}${shared_ext}$major'
15595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15597
irix5* | nonstopux*)
15598
libsuff= shlibsuff=
15601
case $LD in # libtool.m4 will add one of these switches to LD
15602
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15603
libsuff= shlibsuff= libmagic=32-bit;;
15604
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15605
libsuff=32 shlibsuff=N32 libmagic=N32;;
15606
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15607
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15608
*) libsuff= shlibsuff= libmagic=never-match;;
15612
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15613
shlibpath_overrides_runpath=no
15614
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15615
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15616
hardcode_into_libs=yes
15619
# No shared lib support for Linux oldld, aout, or coff.
15620
linux*oldld* | linux*aout* | linux*coff*)
15624
# This must be Linux ELF.
15629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630
soname_spec='${libname}${release}${shared_ext}$major'
15631
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15632
shlibpath_var=LD_LIBRARY_PATH
15633
shlibpath_overrides_runpath=no
15634
# This implies no fast_install, which is unacceptable.
15635
# Some rework will be needed to allow for fast_install
15636
# before this can be enabled.
15637
hardcode_into_libs=yes
15639
# Append ld.so.conf contents to the search path
15640
if test -f /etc/ld.so.conf; then
15641
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15642
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15645
case $host_cpu:$lt_cv_cc_64bit_output in
15646
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
15647
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
15648
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15652
# We used to test for /lib/ld.so.1 and disable shared libraries on
15653
# powerpc, because MkLinux only supported shared libraries with the
15654
# GNU dynamic linker. Since this was broken with cross compilers,
15655
# most powerpc-linux boxes support dynamic linking these days and
15656
# people can always --disable-shared, the test was removed, and we
15657
# assume the GNU/Linux dynamic linker is in use.
15658
dynamic_linker='GNU/Linux ld.so'
15660
# Find out which ABI we are using (multilib Linux x86_64 hack).
15662
case "$host_cpu" in
15664
echo '#line 15664 "configure"' > conftest.$ac_ext
15665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15666
(eval $ac_compile) 2>&5
15668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669
(exit $ac_status); }; then
15670
case `/usr/bin/file conftest.$ac_objext` in
15681
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15682
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15690
soname_spec='${libname}${release}${shared_ext}$major'
15691
shlibpath_var=LD_LIBRARY_PATH
15692
shlibpath_overrides_runpath=no
15693
hardcode_into_libs=yes
15694
dynamic_linker='GNU ld.so'
15701
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15704
dynamic_linker='NetBSD (a.out) ld.so'
15706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15707
soname_spec='${libname}${release}${shared_ext}$major'
15708
dynamic_linker='NetBSD ld.elf_so'
15710
shlibpath_var=LD_LIBRARY_PATH
15711
shlibpath_overrides_runpath=yes
15712
hardcode_into_libs=yes
15717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718
shlibpath_var=LD_LIBRARY_PATH
15719
shlibpath_overrides_runpath=yes
15726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727
soname_spec='${libname}${release}${shared_ext}$major'
15728
shlibpath_var=LD_LIBRARY_PATH
15729
shlibpath_overrides_runpath=yes
15735
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15737
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15738
*) need_version=no ;;
15740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15741
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15742
shlibpath_var=LD_LIBRARY_PATH
15743
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15745
openbsd2.[89] | openbsd2.[89].*)
15746
shlibpath_overrides_runpath=no
15749
shlibpath_overrides_runpath=yes
15753
shlibpath_overrides_runpath=yes
15758
libname_spec='$name'
15761
library_names_spec='$libname${shared_ext} $libname.a'
15762
dynamic_linker='OS/2 ld.exe'
15763
shlibpath_var=LIBPATH
15766
osf3* | osf4* | osf5*)
15770
soname_spec='${libname}${release}${shared_ext}$major'
15771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772
shlibpath_var=LD_LIBRARY_PATH
15773
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15774
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15779
soname_spec='${libname}${release}${shared_ext}$major'
15780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781
shlibpath_var=LD_LIBRARY_PATH
15788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789
soname_spec='${libname}${release}${shared_ext}$major'
15790
shlibpath_var=LD_LIBRARY_PATH
15791
shlibpath_overrides_runpath=yes
15792
hardcode_into_libs=yes
15793
# ldd complains unless libraries are executable
15794
postinstall_cmds='chmod +x $lib'
15799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15800
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15801
shlibpath_var=LD_LIBRARY_PATH
15802
shlibpath_overrides_runpath=yes
15803
if test "$with_gnu_ld" = yes; then
15809
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812
soname_spec='${libname}${release}${shared_ext}$major'
15813
shlibpath_var=LD_LIBRARY_PATH
15814
case $host_vendor in
15816
shlibpath_overrides_runpath=no
15818
export_dynamic_flag_spec='${wl}-Blargedynsym'
15819
runpath_var=LD_RUN_PATH
15827
shlibpath_overrides_runpath=no
15828
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15834
if test -d /usr/nec ;then
15836
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15837
soname_spec='$libname${shared_ext}.$major'
15838
shlibpath_var=LD_LIBRARY_PATH
15844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845
soname_spec='${libname}${release}${shared_ext}$major'
15846
shlibpath_var=LD_LIBRARY_PATH
15853
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15854
echo "${ECHO_T}$dynamic_linker" >&6
15855
test "$dynamic_linker" = no && can_build_shared=no
15857
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15858
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15859
hardcode_action_F77=
15860
if test -n "$hardcode_libdir_flag_spec_F77" || \
15861
test -n "$runpath_var_F77" || \
15862
test "X$hardcode_automatic_F77" = "Xyes" ; then
15864
# We can hardcode non-existant directories.
15865
if test "$hardcode_direct_F77" != no &&
15866
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15867
# have to relink, otherwise we might link with an installed library
15868
# when we should be linking with a yet-to-be-installed one
15869
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15870
test "$hardcode_minus_L_F77" != no; then
15871
# Linking always hardcodes the temporary library directory.
15872
hardcode_action_F77=relink
15874
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15875
hardcode_action_F77=immediate
15878
# We cannot hardcode anything, or else we can only hardcode existing
15880
hardcode_action_F77=unsupported
15882
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15883
echo "${ECHO_T}$hardcode_action_F77" >&6
15885
if test "$hardcode_action_F77" = relink; then
15886
# Fast installation is not supported
15887
enable_fast_install=no
15888
elif test "$shlibpath_overrides_runpath" = yes ||
15889
test "$enable_shared" = no; then
15890
# Fast installation is not necessary
15891
enable_fast_install=needless
15896
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15897
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15898
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15899
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15900
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15901
echo "$as_me:$LINENO: result: yes" >&5
15902
echo "${ECHO_T}yes" >&6
15904
# FIXME - insert some real tests, host_os isn't really good enough
15907
if test -n "$STRIP" ; then
15908
striplib="$STRIP -x"
15909
echo "$as_me:$LINENO: result: yes" >&5
15910
echo "${ECHO_T}yes" >&6
15912
echo "$as_me:$LINENO: result: no" >&5
15913
echo "${ECHO_T}no" >&6
15917
echo "$as_me:$LINENO: result: no" >&5
15918
echo "${ECHO_T}no" >&6
15925
# The else clause should only fire when bootstrapping the
15926
# libtool distribution, otherwise you forgot to ship ltmain.sh
15927
# with your package, and you will get complaints that there are
15928
# no rules to generate ltmain.sh.
15929
if test -f "$ltmain"; then
15930
# See if we are running on zsh, and set the options which allow our commands through
15931
# without removal of \ escapes.
15932
if test -n "${ZSH_VERSION+set}" ; then
15933
setopt NO_GLOB_SUBST
15935
# Now quote all the things that may contain metacharacters while being
15936
# careful not to overquote the AC_SUBSTed values. We take copies of the
15937
# variables and quote the copies for generation of the libtool script.
15938
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15940
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15941
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15942
deplibs_check_method reload_flag reload_cmds need_locks \
15943
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15944
lt_cv_sys_global_symbol_to_c_name_address \
15945
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15946
old_postinstall_cmds old_postuninstall_cmds \
15950
lt_prog_compiler_wl_F77 \
15951
lt_prog_compiler_pic_F77 \
15952
lt_prog_compiler_static_F77 \
15953
lt_prog_compiler_no_builtin_flag_F77 \
15954
export_dynamic_flag_spec_F77 \
15955
thread_safe_flag_spec_F77 \
15956
whole_archive_flag_spec_F77 \
15957
enable_shared_with_static_runtimes_F77 \
15958
old_archive_cmds_F77 \
15959
old_archive_from_new_cmds_F77 \
15960
predep_objects_F77 \
15961
postdep_objects_F77 \
15964
compiler_lib_search_path_F77 \
15966
archive_expsym_cmds_F77 \
15967
postinstall_cmds_F77 \
15968
postuninstall_cmds_F77 \
15969
old_archive_from_expsyms_cmds_F77 \
15970
allow_undefined_flag_F77 \
15971
no_undefined_flag_F77 \
15972
export_symbols_cmds_F77 \
15973
hardcode_libdir_flag_spec_F77 \
15974
hardcode_libdir_flag_spec_ld_F77 \
15975
hardcode_libdir_separator_F77 \
15976
hardcode_automatic_F77 \
15978
module_expsym_cmds_F77 \
15979
lt_cv_prog_compiler_c_o_F77 \
15980
exclude_expsyms_F77 \
15981
include_expsyms_F77; do
15984
old_archive_cmds_F77 | \
15985
old_archive_from_new_cmds_F77 | \
15986
archive_cmds_F77 | \
15987
archive_expsym_cmds_F77 | \
15988
module_cmds_F77 | \
15989
module_expsym_cmds_F77 | \
15990
old_archive_from_expsyms_cmds_F77 | \
15991
export_symbols_cmds_F77 | \
15992
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15993
postinstall_cmds | postuninstall_cmds | \
15994
old_postinstall_cmds | old_postuninstall_cmds | \
15995
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15996
# Double-quote double-evaled strings.
15997
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16000
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16006
*'\$0 --fallback-echo"')
16007
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16013
cat <<__EOF__ >> "$cfgfile"
16014
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16016
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16018
# Shell to use when invoking shell scripts.
16021
# Whether or not to build shared libraries.
16022
build_libtool_libs=$enable_shared
16024
# Whether or not to build static libraries.
16025
build_old_libs=$enable_static
16027
# Whether or not to add -lc for building shared libraries.
16028
build_libtool_need_lc=$archive_cmds_need_lc_F77
16030
# Whether or not to disallow shared libs when runtime libs are static
16031
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16033
# Whether or not to optimize for fast installation.
16034
fast_install=$enable_fast_install
16037
host_alias=$host_alias
16041
# The build system.
16042
build_alias=$build_alias
16046
# An echo program that does not interpret backslashes.
16051
AR_FLAGS=$lt_AR_FLAGS
16056
# A language-specific compiler.
16057
CC=$lt_compiler_F77
16059
# Is the compiler the GNU C compiler?
16065
# The linker used to build libraries.
16068
# Whether we need hard or soft links.
16071
# A BSD-compatible nm program.
16074
# A symbol stripping program
16077
# Used to examine libraries when file_magic_cmd begins "file"
16078
MAGIC_CMD=$MAGIC_CMD
16080
# Used on cygwin: DLL creation program.
16083
# Used on cygwin: object dumper.
16086
# Used on cygwin: assembler.
16089
# The name of the directory that contains temporary libtool files.
16092
# How to create reloadable object files.
16093
reload_flag=$lt_reload_flag
16094
reload_cmds=$lt_reload_cmds
16096
# How to pass a linker flag through the compiler.
16097
wl=$lt_lt_prog_compiler_wl_F77
16099
# Object file suffix (normally "o").
16100
objext="$ac_objext"
16102
# Old archive suffix (normally "a").
16105
# Shared library suffix (normally ".so").
16106
shrext_cmds='$shrext_cmds'
16108
# Executable file suffix (normally "").
16111
# Additional compiler flags for building library objects.
16112
pic_flag=$lt_lt_prog_compiler_pic_F77
16115
# What is the maximum length of a command?
16116
max_cmd_len=$lt_cv_sys_max_cmd_len
16118
# Does compiler simultaneously support -c and -o options?
16119
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16121
# Must we lock files when doing compilation?
16122
need_locks=$lt_need_locks
16124
# Do we need the lib prefix for modules?
16125
need_lib_prefix=$need_lib_prefix
16127
# Do we need a version for libraries?
16128
need_version=$need_version
16130
# Whether dlopen is supported.
16131
dlopen_support=$enable_dlopen
16133
# Whether dlopen of programs is supported.
16134
dlopen_self=$enable_dlopen_self
16136
# Whether dlopen of statically linked programs is supported.
16137
dlopen_self_static=$enable_dlopen_self_static
16139
# Compiler flag to prevent dynamic linking.
16140
link_static_flag=$lt_lt_prog_compiler_static_F77
16142
# Compiler flag to turn off builtin functions.
16143
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16145
# Compiler flag to allow reflexive dlopens.
16146
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16148
# Compiler flag to generate shared objects directly from archives.
16149
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16151
# Compiler flag to generate thread-safe objects.
16152
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16154
# Library versioning type.
16155
version_type=$version_type
16157
# Format of library name prefix.
16158
libname_spec=$lt_libname_spec
16160
# List of archive names. First name is the real one, the rest are links.
16161
# The last name is the one that the linker finds with -lNAME.
16162
library_names_spec=$lt_library_names_spec
16164
# The coded name of the library, if different from the real name.
16165
soname_spec=$lt_soname_spec
16167
# Commands used to build and install an old-style archive.
16169
old_archive_cmds=$lt_old_archive_cmds_F77
16170
old_postinstall_cmds=$lt_old_postinstall_cmds
16171
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16173
# Create an old-style archive from a shared archive.
16174
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16176
# Create a temporary old-style archive to link instead of a shared archive.
16177
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16179
# Commands used to build and install a shared archive.
16180
archive_cmds=$lt_archive_cmds_F77
16181
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16182
postinstall_cmds=$lt_postinstall_cmds
16183
postuninstall_cmds=$lt_postuninstall_cmds
16185
# Commands used to build a loadable module (assumed same as above if empty)
16186
module_cmds=$lt_module_cmds_F77
16187
module_expsym_cmds=$lt_module_expsym_cmds_F77
16189
# Commands to strip libraries.
16190
old_striplib=$lt_old_striplib
16191
striplib=$lt_striplib
16193
# Dependencies to place before the objects being linked to create a
16195
predep_objects=$lt_predep_objects_F77
16197
# Dependencies to place after the objects being linked to create a
16199
postdep_objects=$lt_postdep_objects_F77
16201
# Dependencies to place before the objects being linked to create a
16203
predeps=$lt_predeps_F77
16205
# Dependencies to place after the objects being linked to create a
16207
postdeps=$lt_postdeps_F77
16209
# The library search path used internally by the compiler when linking
16210
# a shared library.
16211
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16213
# Method to check whether dependent libraries are shared objects.
16214
deplibs_check_method=$lt_deplibs_check_method
16216
# Command to use when deplibs_check_method == file_magic.
16217
file_magic_cmd=$lt_file_magic_cmd
16219
# Flag that allows shared libraries with undefined symbols to be built.
16220
allow_undefined_flag=$lt_allow_undefined_flag_F77
16222
# Flag that forces no undefined symbols.
16223
no_undefined_flag=$lt_no_undefined_flag_F77
16225
# Commands used to finish a libtool library installation in a directory.
16226
finish_cmds=$lt_finish_cmds
16228
# Same as above, but a single script fragment to be evaled but not shown.
16229
finish_eval=$lt_finish_eval
16231
# Take the output of nm and produce a listing of raw symbols and C names.
16232
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16234
# Transform the output of nm in a proper C declaration
16235
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16237
# Transform the output of nm in a C name address pair
16238
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16240
# This is the shared library runtime path variable.
16241
runpath_var=$runpath_var
16243
# This is the shared library path variable.
16244
shlibpath_var=$shlibpath_var
16246
# Is shlibpath searched before the hard-coded library search path?
16247
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16249
# How to hardcode a shared library path into an executable.
16250
hardcode_action=$hardcode_action_F77
16252
# Whether we should hardcode library paths into libraries.
16253
hardcode_into_libs=$hardcode_into_libs
16255
# Flag to hardcode \$libdir into a binary during linking.
16256
# This must work even if \$libdir does not exist.
16257
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16259
# If ld is used when linking, flag to hardcode \$libdir into
16260
# a binary during linking. This must work even if \$libdir does
16262
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16264
# Whether we need a single -rpath flag with a separated argument.
16265
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16267
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16268
# resulting binary.
16269
hardcode_direct=$hardcode_direct_F77
16271
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16272
# resulting binary.
16273
hardcode_minus_L=$hardcode_minus_L_F77
16275
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16276
# the resulting binary.
16277
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16279
# Set to yes if building a shared library automatically hardcodes DIR into the library
16280
# and all subsequent libraries and executables linked against it.
16281
hardcode_automatic=$hardcode_automatic_F77
16283
# Variables whose values should be saved in libtool wrapper scripts and
16284
# restored at relink time.
16285
variables_saved_for_relink="$variables_saved_for_relink"
16287
# Whether libtool must link a program against all its dependency libraries.
16288
link_all_deplibs=$link_all_deplibs_F77
16290
# Compile-time system search path for libraries
16291
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16293
# Run-time system search path for libraries
16294
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16296
# Fix the shell variable \$srcfile for the compiler.
16297
fix_srcfile_path="$fix_srcfile_path_F77"
16299
# Set to yes if exported symbols are required.
16300
always_export_symbols=$always_export_symbols_F77
16302
# The commands to list exported symbols.
16303
export_symbols_cmds=$lt_export_symbols_cmds_F77
16305
# The commands to extract the exported symbol list from a shared archive.
16306
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16308
# Symbols that should not be listed in the preloaded symbols.
16309
exclude_expsyms=$lt_exclude_expsyms_F77
16311
# Symbols that must always be exported.
16312
include_expsyms=$lt_include_expsyms_F77
16314
# ### END LIBTOOL TAG CONFIG: $tagname
16320
# If there is no Makefile yet, we rely on a make rule to execute
16321
# `config.status --recheck' to rerun these tests and create the
16322
# libtool script then.
16323
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16324
if test -f "$ltmain_in"; then
16325
test -f Makefile && make "$ltmain"
16331
ac_cpp='$CPP $CPPFLAGS'
16332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16344
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16348
# Source file extension for Java test sources.
16351
# Object file extension for compiled Java test sources.
16355
# Code to be used in simple compile tests
16356
lt_simple_compile_test_code="class foo {}\n"
16358
# Code to be used in simple link tests
16359
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16361
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16363
# If no C compiler was specified, use CC.
16366
# Allow CC to be a program name with arguments.
16370
# save warnings/boilerplate of simple test code
16371
ac_outfile=conftest.$ac_objext
16372
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16373
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16374
_lt_compiler_boilerplate=`cat conftest.err`
16377
ac_outfile=conftest.$ac_objext
16378
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16379
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16380
_lt_linker_boilerplate=`cat conftest.err`
16384
# Allow CC to be a program name with arguments.
16389
for cc_temp in $compiler""; do
16391
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16392
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16397
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16400
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16401
archive_cmds_need_lc_GCJ=no
16403
old_archive_cmds_GCJ=$old_archive_cmds
16406
lt_prog_compiler_no_builtin_flag_GCJ=
16408
if test "$GCC" = yes; then
16409
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16412
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16413
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16414
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16415
echo $ECHO_N "(cached) $ECHO_C" >&6
16417
lt_cv_prog_compiler_rtti_exceptions=no
16418
ac_outfile=conftest.$ac_objext
16419
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16420
lt_compiler_flag="-fno-rtti -fno-exceptions"
16421
# Insert the option either (1) after the last *FLAGS variable, or
16422
# (2) before a word containing "conftest.", or (3) at the end.
16423
# Note that $ac_compile itself does not contain backslashes and begins
16424
# with a dollar sign (not a hyphen), so the echo should work correctly.
16425
# The option is referenced via a variable to avoid confusing sed.
16426
lt_compile=`echo "$ac_compile" | $SED \
16427
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16428
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16429
-e 's:$: $lt_compiler_flag:'`
16430
(eval echo "\"\$as_me:16430: $lt_compile\"" >&5)
16431
(eval "$lt_compile" 2>conftest.err)
16433
cat conftest.err >&5
16434
echo "$as_me:16434: \$? = $ac_status" >&5
16435
if (exit $ac_status) && test -s "$ac_outfile"; then
16436
# The compiler can only warn and ignore the option if not recognized
16437
# So say no if there are warnings other than the usual output.
16438
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16439
$SED '/^$/d' conftest.err >conftest.er2
16440
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16441
lt_cv_prog_compiler_rtti_exceptions=yes
16447
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16448
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16450
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16451
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16458
lt_prog_compiler_wl_GCJ=
16459
lt_prog_compiler_pic_GCJ=
16460
lt_prog_compiler_static_GCJ=
16462
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16463
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16465
if test "$GCC" = yes; then
16466
lt_prog_compiler_wl_GCJ='-Wl,'
16467
lt_prog_compiler_static_GCJ='-static'
16471
# All AIX code is PIC.
16472
if test "$host_cpu" = ia64; then
16473
# AIX 5 now supports IA64 processor
16474
lt_prog_compiler_static_GCJ='-Bstatic'
16479
# FIXME: we need at least 68020 code to build shared libraries, but
16480
# adding the `-m68020' flag to GCC prevents building anything better,
16482
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16485
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16486
# PIC is the default for these OSes.
16489
mingw* | pw32* | os2*)
16490
# This hack is so that the source file can tell whether it is being
16491
# built for inclusion in a dll (and should export symbols for example).
16492
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16495
darwin* | rhapsody*)
16496
# PIC is the default on this platform
16497
# Common symbols not allowed in MH_DYLIB files
16498
lt_prog_compiler_pic_GCJ='-fno-common'
16502
# Just because we use GCC doesn't mean we suddenly get shared libraries
16503
# on systems that don't support them.
16504
lt_prog_compiler_can_build_shared_GCJ=no
16509
if test -d /usr/nec; then
16510
lt_prog_compiler_pic_GCJ=-Kconform_pic
16515
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16516
# not for PA HP-UX.
16517
case "$host_cpu" in
16522
lt_prog_compiler_pic_GCJ='-fPIC'
16528
lt_prog_compiler_pic_GCJ='-fPIC'
16532
# PORTME Check for flag to pass linker flags through the system compiler.
16535
lt_prog_compiler_wl_GCJ='-Wl,'
16536
if test "$host_cpu" = ia64; then
16537
# AIX 5 now supports IA64 processor
16538
lt_prog_compiler_static_GCJ='-Bstatic'
16540
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16544
# PIC is the default on this platform
16545
# Common symbols not allowed in MH_DYLIB files
16546
case $cc_basename in
16548
lt_prog_compiler_pic_GCJ='-qnocommon'
16549
lt_prog_compiler_wl_GCJ='-Wl,'
16554
mingw* | pw32* | os2*)
16555
# This hack is so that the source file can tell whether it is being
16556
# built for inclusion in a dll (and should export symbols for example).
16557
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16560
hpux9* | hpux10* | hpux11*)
16561
lt_prog_compiler_wl_GCJ='-Wl,'
16562
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16563
# not for PA HP-UX.
16564
case "$host_cpu" in
16569
lt_prog_compiler_pic_GCJ='+Z'
16572
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16573
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16576
irix5* | irix6* | nonstopux*)
16577
lt_prog_compiler_wl_GCJ='-Wl,'
16578
# PIC (with -KPIC) is the default.
16579
lt_prog_compiler_static_GCJ='-non_shared'
16583
lt_prog_compiler_pic_GCJ='-KPIC'
16584
lt_prog_compiler_static_GCJ='-Bstatic'
16588
case $cc_basename in
16590
lt_prog_compiler_wl_GCJ='-Wl,'
16591
lt_prog_compiler_pic_GCJ='-KPIC'
16592
lt_prog_compiler_static_GCJ='-static'
16594
pgcc* | pgf77* | pgf90*)
16595
# Portland Group compilers (*not* the Pentium gcc compiler,
16596
# which looks to be a dead project)
16597
lt_prog_compiler_wl_GCJ='-Wl,'
16598
lt_prog_compiler_pic_GCJ='-fpic'
16599
lt_prog_compiler_static_GCJ='-static'
16602
lt_prog_compiler_wl_GCJ='-Wl,'
16603
# All Alpha code is PIC.
16604
lt_prog_compiler_static_GCJ='-non_shared'
16609
osf3* | osf4* | osf5*)
16610
lt_prog_compiler_wl_GCJ='-Wl,'
16611
# All OSF/1 code is PIC.
16612
lt_prog_compiler_static_GCJ='-non_shared'
16616
lt_prog_compiler_pic_GCJ='-Kpic'
16617
lt_prog_compiler_static_GCJ='-dn'
16621
lt_prog_compiler_pic_GCJ='-KPIC'
16622
lt_prog_compiler_static_GCJ='-Bstatic'
16623
case $cc_basename in
16624
f77* | f90* | f95*)
16625
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16627
lt_prog_compiler_wl_GCJ='-Wl,';;
16632
lt_prog_compiler_wl_GCJ='-Qoption ld '
16633
lt_prog_compiler_pic_GCJ='-PIC'
16634
lt_prog_compiler_static_GCJ='-Bstatic'
16637
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16638
lt_prog_compiler_wl_GCJ='-Wl,'
16639
lt_prog_compiler_pic_GCJ='-KPIC'
16640
lt_prog_compiler_static_GCJ='-Bstatic'
16644
if test -d /usr/nec ;then
16645
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16646
lt_prog_compiler_static_GCJ='-Bstatic'
16651
lt_prog_compiler_wl_GCJ='-Wl,'
16652
lt_prog_compiler_can_build_shared_GCJ=no
16656
lt_prog_compiler_pic_GCJ='-pic'
16657
lt_prog_compiler_static_GCJ='-Bstatic'
16661
lt_prog_compiler_can_build_shared_GCJ=no
16666
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16667
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16670
# Check to make sure the PIC flag actually works.
16672
if test -n "$lt_prog_compiler_pic_GCJ"; then
16674
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16675
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16676
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16677
echo $ECHO_N "(cached) $ECHO_C" >&6
16679
lt_prog_compiler_pic_works_GCJ=no
16680
ac_outfile=conftest.$ac_objext
16681
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16683
# Insert the option either (1) after the last *FLAGS variable, or
16684
# (2) before a word containing "conftest.", or (3) at the end.
16685
# Note that $ac_compile itself does not contain backslashes and begins
16686
# with a dollar sign (not a hyphen), so the echo should work correctly.
16687
# The option is referenced via a variable to avoid confusing sed.
16688
lt_compile=`echo "$ac_compile" | $SED \
16689
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691
-e 's:$: $lt_compiler_flag:'`
16692
(eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693
(eval "$lt_compile" 2>conftest.err)
16695
cat conftest.err >&5
16696
echo "$as_me:16696: \$? = $ac_status" >&5
16697
if (exit $ac_status) && test -s "$ac_outfile"; then
16698
# The compiler can only warn and ignore the option if not recognized
16699
# So say no if there are warnings other than the usual output.
16700
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16701
$SED '/^$/d' conftest.err >conftest.er2
16702
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16703
lt_prog_compiler_pic_works_GCJ=yes
16709
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16710
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16712
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16713
case $lt_prog_compiler_pic_GCJ in
16715
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16718
lt_prog_compiler_pic_GCJ=
16719
lt_prog_compiler_can_build_shared_GCJ=no
16724
# For platforms which do not support PIC, -DPIC is meaningless:
16726
lt_prog_compiler_pic_GCJ=
16729
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16733
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16734
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16735
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16736
echo $ECHO_N "(cached) $ECHO_C" >&6
16738
lt_cv_prog_compiler_c_o_GCJ=no
16739
$rm -r conftest 2>/dev/null
16743
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16745
lt_compiler_flag="-o out/conftest2.$ac_objext"
16746
# Insert the option either (1) after the last *FLAGS variable, or
16747
# (2) before a word containing "conftest.", or (3) at the end.
16748
# Note that $ac_compile itself does not contain backslashes and begins
16749
# with a dollar sign (not a hyphen), so the echo should work correctly.
16750
lt_compile=`echo "$ac_compile" | $SED \
16751
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753
-e 's:$: $lt_compiler_flag:'`
16754
(eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
16755
(eval "$lt_compile" 2>out/conftest.err)
16757
cat out/conftest.err >&5
16758
echo "$as_me:16758: \$? = $ac_status" >&5
16759
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16761
# The compiler can only warn and ignore the option if not recognized
16762
# So say no if there are warnings
16763
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16764
$SED '/^$/d' out/conftest.err >out/conftest.er2
16765
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16766
lt_cv_prog_compiler_c_o_GCJ=yes
16771
# SGI C++ compiler will create directory out/ii_files/ for
16772
# template instantiation
16773
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16774
$rm out/* && rmdir out
16780
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16781
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16784
hard_links="nottested"
16785
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16786
# do not overwrite the value of need_locks provided by the user
16787
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16788
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16791
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16793
ln conftest.a conftest.b 2>&5 || hard_links=no
16794
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16795
echo "$as_me:$LINENO: result: $hard_links" >&5
16796
echo "${ECHO_T}$hard_links" >&6
16797
if test "$hard_links" = no; then
16798
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16799
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16806
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16807
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16810
allow_undefined_flag_GCJ=
16811
enable_shared_with_static_runtimes_GCJ=no
16813
archive_expsym_cmds_GCJ=
16814
old_archive_From_new_cmds_GCJ=
16815
old_archive_from_expsyms_cmds_GCJ=
16816
export_dynamic_flag_spec_GCJ=
16817
whole_archive_flag_spec_GCJ=
16818
thread_safe_flag_spec_GCJ=
16819
hardcode_libdir_flag_spec_GCJ=
16820
hardcode_libdir_flag_spec_ld_GCJ=
16821
hardcode_libdir_separator_GCJ=
16822
hardcode_direct_GCJ=no
16823
hardcode_minus_L_GCJ=no
16824
hardcode_shlibpath_var_GCJ=unsupported
16825
link_all_deplibs_GCJ=unknown
16826
hardcode_automatic_GCJ=no
16828
module_expsym_cmds_GCJ=
16829
always_export_symbols_GCJ=no
16830
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16831
# include_expsyms should be a list of space-separated symbols to be *always*
16832
# included in the symbol list
16833
include_expsyms_GCJ=
16834
# exclude_expsyms can be an extended regexp of symbols to exclude
16835
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16836
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16837
# as well as any symbol that contains `d'.
16838
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16839
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16840
# platforms (ab)use it in PIC code, but their linkers get confused if
16841
# the symbol is explicitly referenced. Since portable code cannot
16842
# rely on this symbol name, it's probably fine to never include it in
16843
# preloaded symbol tables.
16844
extract_expsyms_cmds=
16845
# Just being paranoid about ensuring that cc_basename is set.
16846
for cc_temp in $compiler""; do
16848
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16849
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16854
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16857
cygwin* | mingw* | pw32*)
16858
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16859
# When not using gcc, we currently assume that we are using
16860
# Microsoft Visual C++.
16861
if test "$GCC" != yes; then
16871
if test "$with_gnu_ld" = yes; then
16872
# If archive_cmds runs LD, not CC, wlarc should be empty
16875
# Set some defaults for GNU ld with shared library support. These
16876
# are reset later if shared libraries are not supported. Putting them
16877
# here allows them to be overridden if necessary.
16878
runpath_var=LD_RUN_PATH
16879
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16880
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16881
# ancient GNU ld didn't support --whole-archive et. al.
16882
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16883
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16885
whole_archive_flag_spec_GCJ=
16887
supports_anon_versioning=no
16888
case `$LD -v 2>/dev/null` in
16889
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16890
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16891
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16892
*\ 2.11.*) ;; # other 2.11 versions
16893
*) supports_anon_versioning=yes ;;
16896
# See if GNU ld supports shared libraries.
16898
aix3* | aix4* | aix5*)
16899
# On AIX/PPC, the GNU linker is very broken
16900
if test "$host_cpu" != ia64; then
16904
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16905
*** to be unable to reliably create shared libraries on AIX.
16906
*** Therefore, libtool is disabling shared libraries support. If you
16907
*** really care for shared libraries, you may want to modify your PATH
16908
*** so that a non-GNU linker is found, and then restart.
16915
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)'
16916
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16917
hardcode_minus_L_GCJ=yes
16919
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16920
# that the semantics of dynamic libraries on AmigaOS, at least up
16921
# to version 4, is to share data among multiple programs linked
16922
# with the same dynamic library. Since this doesn't match the
16923
# behavior of shared libraries on other platforms, we can't use
16929
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16930
allow_undefined_flag_GCJ=unsupported
16931
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16932
# support --undefined. This deserves some investigation. FIXME
16933
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939
cygwin* | mingw* | pw32*)
16940
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16941
# as there is no search path for DLLs.
16942
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16943
allow_undefined_flag_GCJ=unsupported
16944
always_export_symbols_GCJ=no
16945
enable_shared_with_static_runtimes_GCJ=yes
16946
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16948
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16949
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16950
# If the export-symbols file already is a .def file (1st line
16951
# is EXPORTS), use it as is; otherwise, prepend...
16952
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16953
cp $export_symbols $output_objdir/$soname.def;
16955
echo EXPORTS > $output_objdir/$soname.def;
16956
cat $export_symbols >> $output_objdir/$soname.def;
16958
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16965
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16967
case $cc_basename,$host_cpu in
16968
pgcc*) # Portland Group C compiler
16969
whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16970
tmp_addflag=' $pic_flag'
16972
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16973
whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16974
tmp_addflag=' $pic_flag -Mnomain' ;;
16975
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16976
tmp_addflag=' -i_dynamic' ;;
16977
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16978
tmp_addflag=' -i_dynamic -nofor_main' ;;
16979
ifc* | ifort*) # Intel Fortran compiler
16980
tmp_addflag=' -nofor_main' ;;
16982
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984
if test $supports_anon_versioning = yes; then
16985
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16986
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16987
$echo "local: *; };" >> $output_objdir/$libname.ver~
16988
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16996
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16997
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17000
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17006
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17010
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17011
*** create shared libraries on Solaris systems. Therefore, libtool
17012
*** is disabling shared libraries support. We urge you to upgrade GNU
17013
*** binutils to release 2.9.1 or newer. Another option is to modify
17014
*** your PATH or compiler configuration so that the native linker is
17015
*** used, and then restart.
17018
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17019
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17020
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17027
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17029
hardcode_direct_GCJ=yes
17030
hardcode_shlibpath_var_GCJ=no
17034
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17035
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17036
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17043
if test "$ld_shlibs_GCJ" = no; then
17045
hardcode_libdir_flag_spec_GCJ=
17046
export_dynamic_flag_spec_GCJ=
17047
whole_archive_flag_spec_GCJ=
17050
# PORTME fill in a description of your system's linker (not GNU ld)
17053
allow_undefined_flag_GCJ=unsupported
17054
always_export_symbols_GCJ=yes
17055
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'
17056
# Note: this linker hardcodes the directories in LIBPATH if there
17057
# are no directories specified by -L.
17058
hardcode_minus_L_GCJ=yes
17059
if test "$GCC" = yes && test -z "$link_static_flag"; then
17060
# Neither direct hardcoding nor static linking is supported with a
17062
hardcode_direct_GCJ=unsupported
17067
if test "$host_cpu" = ia64; then
17068
# On IA64, the linker does run time linking by default, so we don't
17069
# have to do anything special.
17070
aix_use_runtimelinking=no
17071
exp_sym_flag='-Bexport'
17074
# If we're using GNU nm, then we don't want the "-C" option.
17075
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17076
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17077
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'
17079
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'
17081
aix_use_runtimelinking=no
17083
# Test if we are trying to use run time linking or normal
17084
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17085
# need to do runtime linking.
17086
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17087
for ld_flag in $LDFLAGS; do
17088
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17089
aix_use_runtimelinking=yes
17095
exp_sym_flag='-bexport'
17096
no_entry_flag='-bnoentry'
17099
# When large executables or shared objects are built, AIX ld can
17100
# have problems creating the table of contents. If linking a library
17101
# or program results in "error TOC overflow" add -mminimal-toc to
17102
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17103
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17105
archive_cmds_GCJ=''
17106
hardcode_direct_GCJ=yes
17107
hardcode_libdir_separator_GCJ=':'
17108
link_all_deplibs_GCJ=yes
17110
if test "$GCC" = yes; then
17111
case $host_os in aix4.[012]|aix4.[012].*)
17112
# We only want to do this on AIX 4.2 and lower, the check
17113
# below for broken collect2 doesn't work under 4.3+
17114
collect2name=`${CC} -print-prog-name=collect2`
17115
if test -f "$collect2name" && \
17116
strings "$collect2name" | grep resolve_lib_name >/dev/null
17118
# We have reworked collect2
17119
hardcode_direct_GCJ=yes
17121
# We have old collect2
17122
hardcode_direct_GCJ=unsupported
17123
# It fails to find uninstalled libraries when the uninstalled
17124
# path is not listed in the libpath. Setting hardcode_minus_L
17125
# to unsupported forces relinking
17126
hardcode_minus_L_GCJ=yes
17127
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17128
hardcode_libdir_separator_GCJ=
17131
shared_flag='-shared'
17132
if test "$aix_use_runtimelinking" = yes; then
17133
shared_flag="$shared_flag "'${wl}-G'
17137
if test "$host_cpu" = ia64; then
17138
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17139
# chokes on -Wl,-G. The following line is correct:
17142
if test "$aix_use_runtimelinking" = yes; then
17143
shared_flag='${wl}-G'
17145
shared_flag='${wl}-bM:SRE'
17150
# It seems that -bexpall does not export symbols beginning with
17151
# underscore (_), so it is better to generate a list of symbols to export.
17152
always_export_symbols_GCJ=yes
17153
if test "$aix_use_runtimelinking" = yes; then
17154
# Warning - without using the other runtime loading flags (-brtl),
17155
# -berok will link without error, but may produce a broken library.
17156
allow_undefined_flag_GCJ='-berok'
17157
# Determine the default libpath from the value encoded in an empty executable.
17158
cat >conftest.$ac_ext <<_ACEOF
17161
cat confdefs.h >>conftest.$ac_ext
17162
cat >>conftest.$ac_ext <<_ACEOF
17163
/* end confdefs.h. */
17173
rm -f conftest.$ac_objext conftest$ac_exeext
17174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175
(eval $ac_link) 2>conftest.er1
17177
grep -v '^ *+' conftest.er1 >conftest.err
17179
cat conftest.err >&5
17180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181
(exit $ac_status); } &&
17182
{ ac_try='test -z "$ac_c_werror_flag"
17183
|| test ! -s conftest.err'
17184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185
(eval $ac_try) 2>&5
17187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188
(exit $ac_status); }; } &&
17189
{ ac_try='test -s conftest$ac_exeext'
17190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191
(eval $ac_try) 2>&5
17193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194
(exit $ac_status); }; }; then
17196
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17198
# Check for a 64-bit object if we didn't find anything.
17199
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; }
17202
echo "$as_me: failed program was:" >&5
17203
sed 's/^/| /' conftest.$ac_ext >&5
17206
rm -f conftest.err conftest.$ac_objext \
17207
conftest$ac_exeext conftest.$ac_ext
17208
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17210
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17211
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"
17213
if test "$host_cpu" = ia64; then
17214
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17215
allow_undefined_flag_GCJ="-z nodefs"
17216
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"
17218
# Determine the default libpath from the value encoded in an empty executable.
17219
cat >conftest.$ac_ext <<_ACEOF
17222
cat confdefs.h >>conftest.$ac_ext
17223
cat >>conftest.$ac_ext <<_ACEOF
17224
/* end confdefs.h. */
17234
rm -f conftest.$ac_objext conftest$ac_exeext
17235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236
(eval $ac_link) 2>conftest.er1
17238
grep -v '^ *+' conftest.er1 >conftest.err
17240
cat conftest.err >&5
17241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242
(exit $ac_status); } &&
17243
{ ac_try='test -z "$ac_c_werror_flag"
17244
|| test ! -s conftest.err'
17245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246
(eval $ac_try) 2>&5
17248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249
(exit $ac_status); }; } &&
17250
{ ac_try='test -s conftest$ac_exeext'
17251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252
(eval $ac_try) 2>&5
17254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255
(exit $ac_status); }; }; then
17257
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17259
# Check for a 64-bit object if we didn't find anything.
17260
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; }
17263
echo "$as_me: failed program was:" >&5
17264
sed 's/^/| /' conftest.$ac_ext >&5
17267
rm -f conftest.err conftest.$ac_objext \
17268
conftest$ac_exeext conftest.$ac_ext
17269
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17271
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17272
# Warning - without using the other run time loading flags,
17273
# -berok will link without error, but may produce a broken library.
17274
no_undefined_flag_GCJ=' ${wl}-bernotok'
17275
allow_undefined_flag_GCJ=' ${wl}-berok'
17276
# -bexpall does not export symbols beginning with underscore (_)
17277
always_export_symbols_GCJ=yes
17278
# Exported symbols can be pulled into shared objects from archives
17279
whole_archive_flag_spec_GCJ=' '
17280
archive_cmds_need_lc_GCJ=yes
17281
# This is similar to how AIX traditionally builds it's shared libraries.
17282
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'
17288
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)'
17289
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290
hardcode_minus_L_GCJ=yes
17291
# see comment about different semantics on the GNU ld section
17296
export_dynamic_flag_spec_GCJ=-rdynamic
17299
cygwin* | mingw* | pw32*)
17300
# When not using gcc, we currently assume that we are using
17301
# Microsoft Visual C++.
17302
# hardcode_libdir_flag_spec is actually meaningless, as there is
17303
# no search path for DLLs.
17304
hardcode_libdir_flag_spec_GCJ=' '
17305
allow_undefined_flag_GCJ=unsupported
17306
# Tell ltmain to make .lib files, not .a files.
17308
# Tell ltmain to make .dll files, not .so files.
17310
# FIXME: Setting linknames here is a bad hack.
17311
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17312
# The linker will automatically build a .lib file if we build a DLL.
17313
old_archive_From_new_cmds_GCJ='true'
17314
# FIXME: Should let the user specify the lib program.
17315
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17316
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17317
enable_shared_with_static_runtimes_GCJ=yes
17320
darwin* | rhapsody*)
17322
rhapsody* | darwin1.[012])
17323
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17326
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17327
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17329
case ${MACOSX_DEPLOYMENT_TARGET} in
17331
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17334
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17340
archive_cmds_need_lc_GCJ=no
17341
hardcode_direct_GCJ=no
17342
hardcode_automatic_GCJ=yes
17343
hardcode_shlibpath_var_GCJ=unsupported
17344
whole_archive_flag_spec_GCJ=''
17345
link_all_deplibs_GCJ=yes
17346
if test "$GCC" = yes ; then
17347
output_verbose_link_cmd='echo'
17348
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17349
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17350
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17351
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17352
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}'
17354
case $cc_basename in
17356
output_verbose_link_cmd='echo'
17357
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17358
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17359
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17360
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17361
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}'
17371
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17372
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373
hardcode_shlibpath_var_GCJ=no
17380
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17381
# support. Future versions do this automatically, but an explicit c++rt0.o
17382
# does not break anything, and helps significantly (at the cost of a little
17385
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17386
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17387
hardcode_direct_GCJ=yes
17388
hardcode_shlibpath_var_GCJ=no
17391
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17393
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17394
hardcode_direct_GCJ=yes
17395
hardcode_minus_L_GCJ=yes
17396
hardcode_shlibpath_var_GCJ=no
17399
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17400
freebsd* | kfreebsd*-gnu | dragonfly*)
17401
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17402
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17403
hardcode_direct_GCJ=yes
17404
hardcode_shlibpath_var_GCJ=no
17408
if test "$GCC" = yes; then
17409
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'
17411
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'
17413
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17414
hardcode_libdir_separator_GCJ=:
17415
hardcode_direct_GCJ=yes
17417
# hardcode_minus_L: Not really in the search PATH,
17418
# but as the default location of the library.
17419
hardcode_minus_L_GCJ=yes
17420
export_dynamic_flag_spec_GCJ='${wl}-E'
17424
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17425
case "$host_cpu" in
17427
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17434
case "$host_cpu" in
17436
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17439
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17443
if test "$with_gnu_ld" = no; then
17444
case "$host_cpu" in
17446
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17447
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17448
hardcode_libdir_separator_GCJ=:
17449
hardcode_direct_GCJ=no
17450
hardcode_shlibpath_var_GCJ=no
17453
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454
hardcode_direct_GCJ=no
17455
hardcode_shlibpath_var_GCJ=no
17457
# hardcode_minus_L: Not really in the search PATH,
17458
# but as the default location of the library.
17459
hardcode_minus_L_GCJ=yes
17462
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17463
hardcode_libdir_separator_GCJ=:
17464
hardcode_direct_GCJ=yes
17465
export_dynamic_flag_spec_GCJ='${wl}-E'
17467
# hardcode_minus_L: Not really in the search PATH,
17468
# but as the default location of the library.
17469
hardcode_minus_L_GCJ=yes
17475
irix5* | irix6* | nonstopux*)
17476
if test "$GCC" = yes; then
17477
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'
17479
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'
17480
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17482
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17483
hardcode_libdir_separator_GCJ=:
17484
link_all_deplibs_GCJ=yes
17488
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17489
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17491
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17493
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17494
hardcode_direct_GCJ=yes
17495
hardcode_shlibpath_var_GCJ=no
17499
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500
hardcode_direct_GCJ=yes
17501
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17502
hardcode_libdir_separator_GCJ=:
17503
hardcode_shlibpath_var_GCJ=no
17507
hardcode_direct_GCJ=yes
17508
hardcode_shlibpath_var_GCJ=no
17509
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17510
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17511
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17512
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17513
export_dynamic_flag_spec_GCJ='${wl}-E'
17516
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17517
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17522
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17529
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17530
hardcode_minus_L_GCJ=yes
17531
allow_undefined_flag_GCJ=unsupported
17532
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'
17533
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17537
if test "$GCC" = yes; then
17538
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539
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'
17541
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17542
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'
17544
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17545
hardcode_libdir_separator_GCJ=:
17548
osf4* | osf5*) # as osf3* with the addition of -msym flag
17549
if test "$GCC" = yes; then
17550
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17551
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'
17552
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17554
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17555
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'
17556
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~
17557
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17559
# Both c and cxx compiler support -rpath directly
17560
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17562
hardcode_libdir_separator_GCJ=:
17566
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567
hardcode_shlibpath_var_GCJ=no
17568
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17569
runpath_var=LD_RUN_PATH
17570
hardcode_runpath_var=yes
17574
no_undefined_flag_GCJ=' -z text'
17575
if test "$GCC" = yes; then
17577
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17578
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17579
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17582
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17584
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17586
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17587
hardcode_shlibpath_var_GCJ=no
17589
solaris2.[0-5] | solaris2.[0-5].*) ;;
17591
# The compiler driver will combine linker options so we
17592
# cannot just pass the convience library names through
17593
# without $wl, iff we do not link with $LD.
17594
# Luckily, gcc supports the same syntax we need for Sun Studio.
17595
# Supported since Solaris 2.6 (maybe 2.5.1?)
17598
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17600
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17603
link_all_deplibs_GCJ=yes
17607
if test "x$host_vendor" = xsequent; then
17608
# Use $CC to link under sequent, because it throws in some extra .o
17609
# files that make .init and .fini sections work.
17610
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17612
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17614
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17615
hardcode_direct_GCJ=yes
17616
hardcode_minus_L_GCJ=yes
17617
hardcode_shlibpath_var_GCJ=no
17621
case $host_vendor in
17623
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624
hardcode_direct_GCJ=yes # is this really true???
17627
## LD is ld it makes a PLAMLIB
17628
## CC just makes a GrossModule.
17629
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17630
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17631
hardcode_direct_GCJ=no
17634
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17635
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17638
runpath_var='LD_RUN_PATH'
17639
hardcode_shlibpath_var_GCJ=no
17643
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17644
hardcode_shlibpath_var_GCJ=no
17645
export_dynamic_flag_spec_GCJ='-Bexport'
17649
if test -d /usr/nec; then
17650
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17651
hardcode_shlibpath_var_GCJ=no
17652
runpath_var=LD_RUN_PATH
17653
hardcode_runpath_var=yes
17659
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17660
hardcode_direct_GCJ=yes
17661
hardcode_minus_L_GCJ=no
17662
hardcode_shlibpath_var_GCJ=no
17663
hardcode_runpath_var=yes
17664
runpath_var=LD_RUN_PATH
17667
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17668
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17669
if test "$GCC" = yes; then
17670
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17674
runpath_var='LD_RUN_PATH'
17675
hardcode_shlibpath_var_GCJ=no
17679
no_undefined_flag_GCJ=' -z text'
17680
# $CC -shared without GNU ld will not create a library from C++
17681
# object files and a static libstdc++, better avoid it by now
17682
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17684
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17685
hardcode_libdir_flag_spec_GCJ=
17686
hardcode_shlibpath_var_GCJ=no
17687
runpath_var='LD_RUN_PATH'
17691
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693
hardcode_shlibpath_var_GCJ=no
17702
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17703
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17704
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17706
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17707
if test "$GCC" = yes; then
17708
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17712
# Do we need to explicitly link libc?
17714
case "x$archive_cmds_need_lc_GCJ" in
17716
# Assume -lc should be added
17717
archive_cmds_need_lc_GCJ=yes
17719
if test "$enable_shared" = yes && test "$GCC" = yes; then
17720
case $archive_cmds_GCJ in
17722
# FIXME: we may have to deal with multi-command sequences.
17725
# Test whether the compiler implicitly links with -lc since on some
17726
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17727
# to ld, don't add -lc before -lgcc.
17728
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17729
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17731
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17733
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17734
(eval $ac_compile) 2>&5
17736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737
(exit $ac_status); } 2>conftest.err; then
17740
libobjs=conftest.$ac_objext
17742
wl=$lt_prog_compiler_wl_GCJ
17748
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17749
allow_undefined_flag_GCJ=
17750
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17751
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754
(exit $ac_status); }
17756
archive_cmds_need_lc_GCJ=no
17758
archive_cmds_need_lc_GCJ=yes
17760
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17762
cat conftest.err 1>&5
17765
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17766
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17773
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17774
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17775
library_names_spec=
17776
libname_spec='lib$name'
17780
postuninstall_cmds=
17784
shlibpath_overrides_runpath=unknown
17786
dynamic_linker="$host_os ld.so"
17787
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17788
if test "$GCC" = yes; then
17789
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17790
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17791
# if the path contains ";" then we assume it to be the separator
17792
# otherwise default to the standard path separator (i.e. ":") - it is
17793
# assumed that no part of a normal pathname contains ";" but that should
17794
# okay in the real world where ";" in dirpaths is itself problematic.
17795
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17797
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17800
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17802
need_lib_prefix=unknown
17803
hardcode_into_libs=no
17805
# when you set need_version to no, make sure it does not cause -set_version
17806
# flags to be left without arguments
17807
need_version=unknown
17812
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17813
shlibpath_var=LIBPATH
17815
# AIX 3 has no versioning support, so we append a major version to the name.
17816
soname_spec='${libname}${release}${shared_ext}$major'
17823
hardcode_into_libs=yes
17824
if test "$host_cpu" = ia64; then
17825
# AIX 5 supports IA64
17826
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17827
shlibpath_var=LD_LIBRARY_PATH
17829
# With GCC up to 2.95.x, collect2 would create an import file
17830
# for dependence libraries. The import file would start with
17831
# the line `#! .'. This would cause the generated library to
17832
# depend on `.', always an invalid library. This was fixed in
17833
# development snapshots of GCC prior to 3.0.
17835
aix4 | aix4.[01] | aix4.[01].*)
17836
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17838
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17841
can_build_shared=no
17845
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17846
# soname into executable. Probably we can add versioning support to
17847
# collect2, so additional links can be useful in future.
17848
if test "$aix_use_runtimelinking" = yes; then
17849
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17850
# instead of lib<name>.a to let people know that these are not
17851
# typical AIX shared libraries.
17852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854
# We preserve .a as extension for shared libraries through AIX4.2
17855
# and later when we are not doing run time linking.
17856
library_names_spec='${libname}${release}.a $libname.a'
17857
soname_spec='${libname}${release}${shared_ext}$major'
17859
shlibpath_var=LIBPATH
17864
library_names_spec='$libname.ixlibrary $libname.a'
17865
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17866
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'
17870
library_names_spec='${libname}${shared_ext}'
17871
dynamic_linker="$host_os ld.so"
17872
shlibpath_var=LIBRARY_PATH
17878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879
soname_spec='${libname}${release}${shared_ext}$major'
17880
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17881
shlibpath_var=LD_LIBRARY_PATH
17882
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17883
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17884
# the default ld.so.conf also contains /usr/contrib/lib and
17885
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17886
# libtool to hard-code these into programs
17889
cygwin* | mingw* | pw32*)
17890
version_type=windows
17895
case $GCC,$host_os in
17896
yes,cygwin* | yes,mingw* | yes,pw32*)
17897
library_names_spec='$libname.dll.a'
17898
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17899
postinstall_cmds='base_file=`basename \${file}`~
17900
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17901
dldir=$destdir/`dirname \$dlpath`~
17902
test -d \$dldir || mkdir -p \$dldir~
17903
$install_prog $dir/$dlname \$dldir/$dlname'
17904
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17905
dlpath=$dir/\$dldll~
17907
shlibpath_overrides_runpath=yes
17911
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17912
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17916
# MinGW DLLs use traditional 'lib' prefix
17917
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17918
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17919
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17920
# It is most probably a Windows format PATH printed by
17921
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17922
# path with ; separators, and with drive letters. We can handle the
17923
# drive letters (cygwin fileutils understands them), so leave them,
17924
# especially as we might pass files found there to a mingw objdump,
17925
# which wouldn't understand a cygwinified path. Ahh.
17926
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17928
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17932
# pw32 DLLs use 'pw' prefix rather than 'lib'
17933
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17939
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17940
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17941
supports_anon_versioning=no
17942
case `$LD -v 2>/dev/null` in
17943
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17944
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17945
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17946
*\ 2.11.*) ;; # other 2.11 versions
17947
*) supports_anon_versioning=yes ;;
17949
if test $supports_anon_versioning = yes; then
17950
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17951
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17952
$echo "local: *; };" >> $output_objdir/$libname.ver~
17953
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17955
$archive_expsym_cmds="$archive_cmds"
17963
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17966
dynamic_linker='Win32 ld.exe'
17967
# FIXME: first we should search . and the directory the executable is in
17971
darwin* | rhapsody*)
17972
dynamic_linker="$host_os dyld"
17973
version_type=darwin
17976
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17977
soname_spec='${libname}${release}${major}$shared_ext'
17978
shlibpath_overrides_runpath=yes
17979
shlibpath_var=DYLD_LIBRARY_PATH
17980
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17981
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17982
if test "$GCC" = yes; then
17983
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"`
17985
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17987
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17995
soname_spec='${libname}${release}${shared_ext}$major'
17996
shlibpath_var=LD_LIBRARY_PATH
18007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18008
soname_spec='${libname}${release}${shared_ext}$major'
18009
shlibpath_var=LD_LIBRARY_PATH
18010
shlibpath_overrides_runpath=no
18011
hardcode_into_libs=yes
18012
dynamic_linker='GNU ld.so'
18015
freebsd* | dragonfly*)
18016
# DragonFly does not have aout. When/if they implement a new
18017
# versioning mechanism, adjust this.
18018
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18019
version_type=freebsd-$objformat
18020
case $version_type in
18022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18027
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18031
shlibpath_var=LD_LIBRARY_PATH
18034
shlibpath_overrides_runpath=yes
18036
freebsd3.[01]* | freebsdelf3.[01]*)
18037
shlibpath_overrides_runpath=yes
18038
hardcode_into_libs=yes
18041
shlibpath_overrides_runpath=no
18042
hardcode_into_libs=yes
18051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052
soname_spec='${libname}${release}${shared_ext}$major'
18053
shlibpath_var=LD_LIBRARY_PATH
18054
hardcode_into_libs=yes
18057
hpux9* | hpux10* | hpux11*)
18058
# Give a soname corresponding to the major version so that dld.sl refuses to
18059
# link against other versions.
18063
case "$host_cpu" in
18066
hardcode_into_libs=yes
18067
dynamic_linker="$host_os dld.so"
18068
shlibpath_var=LD_LIBRARY_PATH
18069
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071
soname_spec='${libname}${release}${shared_ext}$major'
18072
if test "X$HPUX_IA64_MODE" = X32; then
18073
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18075
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18077
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18081
hardcode_into_libs=yes
18082
dynamic_linker="$host_os dld.sl"
18083
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086
soname_spec='${libname}${release}${shared_ext}$major'
18087
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092
dynamic_linker="$host_os dld.sl"
18093
shlibpath_var=SHLIB_PATH
18094
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096
soname_spec='${libname}${release}${shared_ext}$major'
18099
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18100
postinstall_cmds='chmod 555 $lib'
18103
irix5* | irix6* | nonstopux*)
18105
nonstopux*) version_type=nonstopux ;;
18107
if test "$lt_cv_prog_gnu_ld" = yes; then
18115
soname_spec='${libname}${release}${shared_ext}$major'
18116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18118
irix5* | nonstopux*)
18119
libsuff= shlibsuff=
18122
case $LD in # libtool.m4 will add one of these switches to LD
18123
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18124
libsuff= shlibsuff= libmagic=32-bit;;
18125
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18126
libsuff=32 shlibsuff=N32 libmagic=N32;;
18127
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18128
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18129
*) libsuff= shlibsuff= libmagic=never-match;;
18133
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18134
shlibpath_overrides_runpath=no
18135
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18136
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18137
hardcode_into_libs=yes
18140
# No shared lib support for Linux oldld, aout, or coff.
18141
linux*oldld* | linux*aout* | linux*coff*)
18145
# This must be Linux ELF.
18150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151
soname_spec='${libname}${release}${shared_ext}$major'
18152
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18153
shlibpath_var=LD_LIBRARY_PATH
18154
shlibpath_overrides_runpath=no
18155
# This implies no fast_install, which is unacceptable.
18156
# Some rework will be needed to allow for fast_install
18157
# before this can be enabled.
18158
hardcode_into_libs=yes
18160
# Append ld.so.conf contents to the search path
18161
if test -f /etc/ld.so.conf; then
18162
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18163
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18166
case $host_cpu:$lt_cv_cc_64bit_output in
18167
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
18168
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
18169
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
18173
# We used to test for /lib/ld.so.1 and disable shared libraries on
18174
# powerpc, because MkLinux only supported shared libraries with the
18175
# GNU dynamic linker. Since this was broken with cross compilers,
18176
# most powerpc-linux boxes support dynamic linking these days and
18177
# people can always --disable-shared, the test was removed, and we
18178
# assume the GNU/Linux dynamic linker is in use.
18179
dynamic_linker='GNU/Linux ld.so'
18181
# Find out which ABI we are using (multilib Linux x86_64 hack).
18183
case "$host_cpu" in
18185
echo '#line 18185 "configure"' > conftest.$ac_ext
18186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187
(eval $ac_compile) 2>&5
18189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190
(exit $ac_status); }; then
18191
case `/usr/bin/file conftest.$ac_objext` in
18202
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18203
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18211
soname_spec='${libname}${release}${shared_ext}$major'
18212
shlibpath_var=LD_LIBRARY_PATH
18213
shlibpath_overrides_runpath=no
18214
hardcode_into_libs=yes
18215
dynamic_linker='GNU ld.so'
18222
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18224
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18225
dynamic_linker='NetBSD (a.out) ld.so'
18227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18228
soname_spec='${libname}${release}${shared_ext}$major'
18229
dynamic_linker='NetBSD ld.elf_so'
18231
shlibpath_var=LD_LIBRARY_PATH
18232
shlibpath_overrides_runpath=yes
18233
hardcode_into_libs=yes
18238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239
shlibpath_var=LD_LIBRARY_PATH
18240
shlibpath_overrides_runpath=yes
18247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248
soname_spec='${libname}${release}${shared_ext}$major'
18249
shlibpath_var=LD_LIBRARY_PATH
18250
shlibpath_overrides_runpath=yes
18256
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18258
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18259
*) need_version=no ;;
18261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18262
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18263
shlibpath_var=LD_LIBRARY_PATH
18264
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18266
openbsd2.[89] | openbsd2.[89].*)
18267
shlibpath_overrides_runpath=no
18270
shlibpath_overrides_runpath=yes
18274
shlibpath_overrides_runpath=yes
18279
libname_spec='$name'
18282
library_names_spec='$libname${shared_ext} $libname.a'
18283
dynamic_linker='OS/2 ld.exe'
18284
shlibpath_var=LIBPATH
18287
osf3* | osf4* | osf5*)
18291
soname_spec='${libname}${release}${shared_ext}$major'
18292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293
shlibpath_var=LD_LIBRARY_PATH
18294
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18295
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18300
soname_spec='${libname}${release}${shared_ext}$major'
18301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302
shlibpath_var=LD_LIBRARY_PATH
18309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310
soname_spec='${libname}${release}${shared_ext}$major'
18311
shlibpath_var=LD_LIBRARY_PATH
18312
shlibpath_overrides_runpath=yes
18313
hardcode_into_libs=yes
18314
# ldd complains unless libraries are executable
18315
postinstall_cmds='chmod +x $lib'
18320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18321
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18322
shlibpath_var=LD_LIBRARY_PATH
18323
shlibpath_overrides_runpath=yes
18324
if test "$with_gnu_ld" = yes; then
18330
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333
soname_spec='${libname}${release}${shared_ext}$major'
18334
shlibpath_var=LD_LIBRARY_PATH
18335
case $host_vendor in
18337
shlibpath_overrides_runpath=no
18339
export_dynamic_flag_spec='${wl}-Blargedynsym'
18340
runpath_var=LD_RUN_PATH
18348
shlibpath_overrides_runpath=no
18349
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18355
if test -d /usr/nec ;then
18357
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18358
soname_spec='$libname${shared_ext}.$major'
18359
shlibpath_var=LD_LIBRARY_PATH
18365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18366
soname_spec='${libname}${release}${shared_ext}$major'
18367
shlibpath_var=LD_LIBRARY_PATH
18374
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18375
echo "${ECHO_T}$dynamic_linker" >&6
18376
test "$dynamic_linker" = no && can_build_shared=no
18378
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18379
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18380
hardcode_action_GCJ=
18381
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18382
test -n "$runpath_var_GCJ" || \
18383
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18385
# We can hardcode non-existant directories.
18386
if test "$hardcode_direct_GCJ" != no &&
18387
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18388
# have to relink, otherwise we might link with an installed library
18389
# when we should be linking with a yet-to-be-installed one
18390
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18391
test "$hardcode_minus_L_GCJ" != no; then
18392
# Linking always hardcodes the temporary library directory.
18393
hardcode_action_GCJ=relink
18395
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18396
hardcode_action_GCJ=immediate
18399
# We cannot hardcode anything, or else we can only hardcode existing
18401
hardcode_action_GCJ=unsupported
18403
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18404
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18406
if test "$hardcode_action_GCJ" = relink; then
18407
# Fast installation is not supported
18408
enable_fast_install=no
18409
elif test "$shlibpath_overrides_runpath" = yes ||
18410
test "$enable_shared" = no; then
18411
# Fast installation is not necessary
18412
enable_fast_install=needless
18417
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18418
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18419
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18420
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18421
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18422
echo "$as_me:$LINENO: result: yes" >&5
18423
echo "${ECHO_T}yes" >&6
18425
# FIXME - insert some real tests, host_os isn't really good enough
18428
if test -n "$STRIP" ; then
18429
striplib="$STRIP -x"
18430
echo "$as_me:$LINENO: result: yes" >&5
18431
echo "${ECHO_T}yes" >&6
18433
echo "$as_me:$LINENO: result: no" >&5
18434
echo "${ECHO_T}no" >&6
18438
echo "$as_me:$LINENO: result: no" >&5
18439
echo "${ECHO_T}no" >&6
18444
if test "x$enable_dlopen" != xyes; then
18445
enable_dlopen=unknown
18446
enable_dlopen_self=unknown
18447
enable_dlopen_self_static=unknown
18454
lt_cv_dlopen="load_add_on"
18456
lt_cv_dlopen_self=yes
18460
lt_cv_dlopen="LoadLibrary"
18465
lt_cv_dlopen="dlopen"
18470
# if libdl is installed we need to link against it
18471
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18472
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18473
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18474
echo $ECHO_N "(cached) $ECHO_C" >&6
18476
ac_check_lib_save_LIBS=$LIBS
18478
cat >conftest.$ac_ext <<_ACEOF
18481
cat confdefs.h >>conftest.$ac_ext
18482
cat >>conftest.$ac_ext <<_ACEOF
18483
/* end confdefs.h. */
18485
/* Override any gcc2 internal prototype to avoid an error. */
18489
/* We use char because int might match the return type of a gcc2
18490
builtin and then its argument prototype would still apply. */
18500
rm -f conftest.$ac_objext conftest$ac_exeext
18501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18502
(eval $ac_link) 2>conftest.er1
18504
grep -v '^ *+' conftest.er1 >conftest.err
18506
cat conftest.err >&5
18507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508
(exit $ac_status); } &&
18509
{ ac_try='test -z "$ac_c_werror_flag"
18510
|| test ! -s conftest.err'
18511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512
(eval $ac_try) 2>&5
18514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515
(exit $ac_status); }; } &&
18516
{ ac_try='test -s conftest$ac_exeext'
18517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518
(eval $ac_try) 2>&5
18520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521
(exit $ac_status); }; }; then
18522
ac_cv_lib_dl_dlopen=yes
18524
echo "$as_me: failed program was:" >&5
18525
sed 's/^/| /' conftest.$ac_ext >&5
18527
ac_cv_lib_dl_dlopen=no
18529
rm -f conftest.err conftest.$ac_objext \
18530
conftest$ac_exeext conftest.$ac_ext
18531
LIBS=$ac_check_lib_save_LIBS
18533
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18534
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18535
if test $ac_cv_lib_dl_dlopen = yes; then
18536
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18539
lt_cv_dlopen="dyld"
18541
lt_cv_dlopen_self=yes
18548
echo "$as_me:$LINENO: checking for shl_load" >&5
18549
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18550
if test "${ac_cv_func_shl_load+set}" = set; then
18551
echo $ECHO_N "(cached) $ECHO_C" >&6
18553
cat >conftest.$ac_ext <<_ACEOF
18556
cat confdefs.h >>conftest.$ac_ext
18557
cat >>conftest.$ac_ext <<_ACEOF
18558
/* end confdefs.h. */
18559
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18560
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18561
#define shl_load innocuous_shl_load
18563
/* System header to define __stub macros and hopefully few prototypes,
18564
which can conflict with char shl_load (); below.
18565
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18566
<limits.h> exists even on freestanding compilers. */
18569
# include <limits.h>
18571
# include <assert.h>
18576
/* Override any gcc2 internal prototype to avoid an error. */
18581
/* We use char because int might match the return type of a gcc2
18582
builtin and then its argument prototype would still apply. */
18584
/* The GNU C library defines this for functions which it implements
18585
to always fail with ENOSYS. Some functions are actually named
18586
something starting with __ and the normal name is an alias. */
18587
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18590
char (*f) () = shl_load;
18599
return f != shl_load;
18604
rm -f conftest.$ac_objext conftest$ac_exeext
18605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18606
(eval $ac_link) 2>conftest.er1
18608
grep -v '^ *+' conftest.er1 >conftest.err
18610
cat conftest.err >&5
18611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612
(exit $ac_status); } &&
18613
{ ac_try='test -z "$ac_c_werror_flag"
18614
|| test ! -s conftest.err'
18615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616
(eval $ac_try) 2>&5
18618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619
(exit $ac_status); }; } &&
18620
{ ac_try='test -s conftest$ac_exeext'
18621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622
(eval $ac_try) 2>&5
18624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625
(exit $ac_status); }; }; then
18626
ac_cv_func_shl_load=yes
18628
echo "$as_me: failed program was:" >&5
18629
sed 's/^/| /' conftest.$ac_ext >&5
18631
ac_cv_func_shl_load=no
18633
rm -f conftest.err conftest.$ac_objext \
18634
conftest$ac_exeext conftest.$ac_ext
18636
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18637
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18638
if test $ac_cv_func_shl_load = yes; then
18639
lt_cv_dlopen="shl_load"
18641
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18642
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18643
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18644
echo $ECHO_N "(cached) $ECHO_C" >&6
18646
ac_check_lib_save_LIBS=$LIBS
18648
cat >conftest.$ac_ext <<_ACEOF
18651
cat confdefs.h >>conftest.$ac_ext
18652
cat >>conftest.$ac_ext <<_ACEOF
18653
/* end confdefs.h. */
18655
/* Override any gcc2 internal prototype to avoid an error. */
18659
/* We use char because int might match the return type of a gcc2
18660
builtin and then its argument prototype would still apply. */
18670
rm -f conftest.$ac_objext conftest$ac_exeext
18671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18672
(eval $ac_link) 2>conftest.er1
18674
grep -v '^ *+' conftest.er1 >conftest.err
18676
cat conftest.err >&5
18677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678
(exit $ac_status); } &&
18679
{ ac_try='test -z "$ac_c_werror_flag"
18680
|| test ! -s conftest.err'
18681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682
(eval $ac_try) 2>&5
18684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685
(exit $ac_status); }; } &&
18686
{ ac_try='test -s conftest$ac_exeext'
18687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688
(eval $ac_try) 2>&5
18690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691
(exit $ac_status); }; }; then
18692
ac_cv_lib_dld_shl_load=yes
18694
echo "$as_me: failed program was:" >&5
18695
sed 's/^/| /' conftest.$ac_ext >&5
18697
ac_cv_lib_dld_shl_load=no
18699
rm -f conftest.err conftest.$ac_objext \
18700
conftest$ac_exeext conftest.$ac_ext
18701
LIBS=$ac_check_lib_save_LIBS
18703
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18704
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18705
if test $ac_cv_lib_dld_shl_load = yes; then
18706
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18708
echo "$as_me:$LINENO: checking for dlopen" >&5
18709
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18710
if test "${ac_cv_func_dlopen+set}" = set; then
18711
echo $ECHO_N "(cached) $ECHO_C" >&6
18713
cat >conftest.$ac_ext <<_ACEOF
18716
cat confdefs.h >>conftest.$ac_ext
18717
cat >>conftest.$ac_ext <<_ACEOF
18718
/* end confdefs.h. */
18719
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18720
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721
#define dlopen innocuous_dlopen
18723
/* System header to define __stub macros and hopefully few prototypes,
18724
which can conflict with char dlopen (); below.
18725
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726
<limits.h> exists even on freestanding compilers. */
18729
# include <limits.h>
18731
# include <assert.h>
18736
/* Override any gcc2 internal prototype to avoid an error. */
18741
/* We use char because int might match the return type of a gcc2
18742
builtin and then its argument prototype would still apply. */
18744
/* The GNU C library defines this for functions which it implements
18745
to always fail with ENOSYS. Some functions are actually named
18746
something starting with __ and the normal name is an alias. */
18747
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18750
char (*f) () = dlopen;
18759
return f != dlopen;
18764
rm -f conftest.$ac_objext conftest$ac_exeext
18765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766
(eval $ac_link) 2>conftest.er1
18768
grep -v '^ *+' conftest.er1 >conftest.err
18770
cat conftest.err >&5
18771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772
(exit $ac_status); } &&
18773
{ ac_try='test -z "$ac_c_werror_flag"
18774
|| test ! -s conftest.err'
18775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776
(eval $ac_try) 2>&5
18778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779
(exit $ac_status); }; } &&
18780
{ ac_try='test -s conftest$ac_exeext'
18781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782
(eval $ac_try) 2>&5
18784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785
(exit $ac_status); }; }; then
18786
ac_cv_func_dlopen=yes
18788
echo "$as_me: failed program was:" >&5
18789
sed 's/^/| /' conftest.$ac_ext >&5
18791
ac_cv_func_dlopen=no
18793
rm -f conftest.err conftest.$ac_objext \
18794
conftest$ac_exeext conftest.$ac_ext
18796
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18797
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18798
if test $ac_cv_func_dlopen = yes; then
18799
lt_cv_dlopen="dlopen"
18801
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18802
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18804
echo $ECHO_N "(cached) $ECHO_C" >&6
18806
ac_check_lib_save_LIBS=$LIBS
18808
cat >conftest.$ac_ext <<_ACEOF
18811
cat confdefs.h >>conftest.$ac_ext
18812
cat >>conftest.$ac_ext <<_ACEOF
18813
/* end confdefs.h. */
18815
/* Override any gcc2 internal prototype to avoid an error. */
18819
/* We use char because int might match the return type of a gcc2
18820
builtin and then its argument prototype would still apply. */
18830
rm -f conftest.$ac_objext conftest$ac_exeext
18831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18832
(eval $ac_link) 2>conftest.er1
18834
grep -v '^ *+' conftest.er1 >conftest.err
18836
cat conftest.err >&5
18837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838
(exit $ac_status); } &&
18839
{ ac_try='test -z "$ac_c_werror_flag"
18840
|| test ! -s conftest.err'
18841
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842
(eval $ac_try) 2>&5
18844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845
(exit $ac_status); }; } &&
18846
{ ac_try='test -s conftest$ac_exeext'
18847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848
(eval $ac_try) 2>&5
18850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851
(exit $ac_status); }; }; then
18852
ac_cv_lib_dl_dlopen=yes
18854
echo "$as_me: failed program was:" >&5
18855
sed 's/^/| /' conftest.$ac_ext >&5
18857
ac_cv_lib_dl_dlopen=no
18859
rm -f conftest.err conftest.$ac_objext \
18860
conftest$ac_exeext conftest.$ac_ext
18861
LIBS=$ac_check_lib_save_LIBS
18863
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18864
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18865
if test $ac_cv_lib_dl_dlopen = yes; then
18866
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18868
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18869
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18870
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18871
echo $ECHO_N "(cached) $ECHO_C" >&6
18873
ac_check_lib_save_LIBS=$LIBS
18874
LIBS="-lsvld $LIBS"
18875
cat >conftest.$ac_ext <<_ACEOF
18878
cat confdefs.h >>conftest.$ac_ext
18879
cat >>conftest.$ac_ext <<_ACEOF
18880
/* end confdefs.h. */
18882
/* Override any gcc2 internal prototype to avoid an error. */
18886
/* We use char because int might match the return type of a gcc2
18887
builtin and then its argument prototype would still apply. */
18897
rm -f conftest.$ac_objext conftest$ac_exeext
18898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899
(eval $ac_link) 2>conftest.er1
18901
grep -v '^ *+' conftest.er1 >conftest.err
18903
cat conftest.err >&5
18904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905
(exit $ac_status); } &&
18906
{ ac_try='test -z "$ac_c_werror_flag"
18907
|| test ! -s conftest.err'
18908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909
(eval $ac_try) 2>&5
18911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912
(exit $ac_status); }; } &&
18913
{ ac_try='test -s conftest$ac_exeext'
18914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915
(eval $ac_try) 2>&5
18917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918
(exit $ac_status); }; }; then
18919
ac_cv_lib_svld_dlopen=yes
18921
echo "$as_me: failed program was:" >&5
18922
sed 's/^/| /' conftest.$ac_ext >&5
18924
ac_cv_lib_svld_dlopen=no
18926
rm -f conftest.err conftest.$ac_objext \
18927
conftest$ac_exeext conftest.$ac_ext
18928
LIBS=$ac_check_lib_save_LIBS
18930
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18931
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18932
if test $ac_cv_lib_svld_dlopen = yes; then
18933
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18935
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18936
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18937
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18938
echo $ECHO_N "(cached) $ECHO_C" >&6
18940
ac_check_lib_save_LIBS=$LIBS
18942
cat >conftest.$ac_ext <<_ACEOF
18945
cat confdefs.h >>conftest.$ac_ext
18946
cat >>conftest.$ac_ext <<_ACEOF
18947
/* end confdefs.h. */
18949
/* Override any gcc2 internal prototype to avoid an error. */
18953
/* We use char because int might match the return type of a gcc2
18954
builtin and then its argument prototype would still apply. */
18964
rm -f conftest.$ac_objext conftest$ac_exeext
18965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966
(eval $ac_link) 2>conftest.er1
18968
grep -v '^ *+' conftest.er1 >conftest.err
18970
cat conftest.err >&5
18971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972
(exit $ac_status); } &&
18973
{ ac_try='test -z "$ac_c_werror_flag"
18974
|| test ! -s conftest.err'
18975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976
(eval $ac_try) 2>&5
18978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979
(exit $ac_status); }; } &&
18980
{ ac_try='test -s conftest$ac_exeext'
18981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982
(eval $ac_try) 2>&5
18984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985
(exit $ac_status); }; }; then
18986
ac_cv_lib_dld_dld_link=yes
18988
echo "$as_me: failed program was:" >&5
18989
sed 's/^/| /' conftest.$ac_ext >&5
18991
ac_cv_lib_dld_dld_link=no
18993
rm -f conftest.err conftest.$ac_objext \
18994
conftest$ac_exeext conftest.$ac_ext
18995
LIBS=$ac_check_lib_save_LIBS
18997
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18998
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18999
if test $ac_cv_lib_dld_dld_link = yes; then
19000
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19021
if test "x$lt_cv_dlopen" != xno; then
19027
case $lt_cv_dlopen in
19029
save_CPPFLAGS="$CPPFLAGS"
19030
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19032
save_LDFLAGS="$LDFLAGS"
19033
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19036
LIBS="$lt_cv_dlopen_libs $LIBS"
19038
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19039
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19040
if test "${lt_cv_dlopen_self+set}" = set; then
19041
echo $ECHO_N "(cached) $ECHO_C" >&6
19043
if test "$cross_compiling" = yes; then :
19044
lt_cv_dlopen_self=cross
19046
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19047
lt_status=$lt_dlunknown
19048
cat > conftest.$ac_ext <<EOF
19049
#line 19049 "configure"
19050
#include "confdefs.h"
19059
# define LT_DLGLOBAL RTLD_GLOBAL
19062
# define LT_DLGLOBAL DL_GLOBAL
19064
# define LT_DLGLOBAL 0
19068
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19069
find out it does not work in some platform. */
19070
#ifndef LT_DLLAZY_OR_NOW
19072
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19075
# define LT_DLLAZY_OR_NOW DL_LAZY
19078
# define LT_DLLAZY_OR_NOW RTLD_NOW
19081
# define LT_DLLAZY_OR_NOW DL_NOW
19083
# define LT_DLLAZY_OR_NOW 0
19091
extern "C" void exit (int);
19094
void fnord() { int i=42;}
19097
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19098
int status = $lt_dlunknown;
19102
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19103
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19104
/* dlclose (self); */
19110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111
(eval $ac_link) 2>&5
19113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19115
(./conftest; exit; ) 2>/dev/null
19117
case x$lt_status in
19118
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19119
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19120
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19123
# compilation failed
19124
lt_cv_dlopen_self=no
19131
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19132
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19134
if test "x$lt_cv_dlopen_self" = xyes; then
19135
LDFLAGS="$LDFLAGS $link_static_flag"
19136
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19137
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19138
if test "${lt_cv_dlopen_self_static+set}" = set; then
19139
echo $ECHO_N "(cached) $ECHO_C" >&6
19141
if test "$cross_compiling" = yes; then :
19142
lt_cv_dlopen_self_static=cross
19144
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19145
lt_status=$lt_dlunknown
19146
cat > conftest.$ac_ext <<EOF
19147
#line 19147 "configure"
19148
#include "confdefs.h"
19157
# define LT_DLGLOBAL RTLD_GLOBAL
19160
# define LT_DLGLOBAL DL_GLOBAL
19162
# define LT_DLGLOBAL 0
19166
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19167
find out it does not work in some platform. */
19168
#ifndef LT_DLLAZY_OR_NOW
19170
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19173
# define LT_DLLAZY_OR_NOW DL_LAZY
19176
# define LT_DLLAZY_OR_NOW RTLD_NOW
19179
# define LT_DLLAZY_OR_NOW DL_NOW
19181
# define LT_DLLAZY_OR_NOW 0
19189
extern "C" void exit (int);
19192
void fnord() { int i=42;}
19195
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19196
int status = $lt_dlunknown;
19200
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19201
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19202
/* dlclose (self); */
19208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209
(eval $ac_link) 2>&5
19211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19213
(./conftest; exit; ) 2>/dev/null
19215
case x$lt_status in
19216
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19217
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19218
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19221
# compilation failed
19222
lt_cv_dlopen_self_static=no
19229
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19230
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19233
CPPFLAGS="$save_CPPFLAGS"
19234
LDFLAGS="$save_LDFLAGS"
19239
case $lt_cv_dlopen_self in
19240
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19241
*) enable_dlopen_self=unknown ;;
19244
case $lt_cv_dlopen_self_static in
19245
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19246
*) enable_dlopen_self_static=unknown ;;
19251
# The else clause should only fire when bootstrapping the
19252
# libtool distribution, otherwise you forgot to ship ltmain.sh
19253
# with your package, and you will get complaints that there are
19254
# no rules to generate ltmain.sh.
19255
if test -f "$ltmain"; then
19256
# See if we are running on zsh, and set the options which allow our commands through
19257
# without removal of \ escapes.
19258
if test -n "${ZSH_VERSION+set}" ; then
19259
setopt NO_GLOB_SUBST
19261
# Now quote all the things that may contain metacharacters while being
19262
# careful not to overquote the AC_SUBSTed values. We take copies of the
19263
# variables and quote the copies for generation of the libtool script.
19264
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19266
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19267
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19268
deplibs_check_method reload_flag reload_cmds need_locks \
19269
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19270
lt_cv_sys_global_symbol_to_c_name_address \
19271
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19272
old_postinstall_cmds old_postuninstall_cmds \
19276
lt_prog_compiler_wl_GCJ \
19277
lt_prog_compiler_pic_GCJ \
19278
lt_prog_compiler_static_GCJ \
19279
lt_prog_compiler_no_builtin_flag_GCJ \
19280
export_dynamic_flag_spec_GCJ \
19281
thread_safe_flag_spec_GCJ \
19282
whole_archive_flag_spec_GCJ \
19283
enable_shared_with_static_runtimes_GCJ \
19284
old_archive_cmds_GCJ \
19285
old_archive_from_new_cmds_GCJ \
19286
predep_objects_GCJ \
19287
postdep_objects_GCJ \
19290
compiler_lib_search_path_GCJ \
19292
archive_expsym_cmds_GCJ \
19293
postinstall_cmds_GCJ \
19294
postuninstall_cmds_GCJ \
19295
old_archive_from_expsyms_cmds_GCJ \
19296
allow_undefined_flag_GCJ \
19297
no_undefined_flag_GCJ \
19298
export_symbols_cmds_GCJ \
19299
hardcode_libdir_flag_spec_GCJ \
19300
hardcode_libdir_flag_spec_ld_GCJ \
19301
hardcode_libdir_separator_GCJ \
19302
hardcode_automatic_GCJ \
19304
module_expsym_cmds_GCJ \
19305
lt_cv_prog_compiler_c_o_GCJ \
19306
exclude_expsyms_GCJ \
19307
include_expsyms_GCJ; do
19310
old_archive_cmds_GCJ | \
19311
old_archive_from_new_cmds_GCJ | \
19312
archive_cmds_GCJ | \
19313
archive_expsym_cmds_GCJ | \
19314
module_cmds_GCJ | \
19315
module_expsym_cmds_GCJ | \
19316
old_archive_from_expsyms_cmds_GCJ | \
19317
export_symbols_cmds_GCJ | \
19318
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19319
postinstall_cmds | postuninstall_cmds | \
19320
old_postinstall_cmds | old_postuninstall_cmds | \
19321
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19322
# Double-quote double-evaled strings.
19323
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19326
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19332
*'\$0 --fallback-echo"')
19333
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19339
cat <<__EOF__ >> "$cfgfile"
19340
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19342
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19344
# Shell to use when invoking shell scripts.
19347
# Whether or not to build shared libraries.
19348
build_libtool_libs=$enable_shared
19350
# Whether or not to build static libraries.
19351
build_old_libs=$enable_static
19353
# Whether or not to add -lc for building shared libraries.
19354
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19356
# Whether or not to disallow shared libs when runtime libs are static
19357
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19359
# Whether or not to optimize for fast installation.
19360
fast_install=$enable_fast_install
19363
host_alias=$host_alias
19367
# The build system.
19368
build_alias=$build_alias
19372
# An echo program that does not interpret backslashes.
19377
AR_FLAGS=$lt_AR_FLAGS
19382
# A language-specific compiler.
19383
CC=$lt_compiler_GCJ
19385
# Is the compiler the GNU C compiler?
19391
# The linker used to build libraries.
19394
# Whether we need hard or soft links.
19397
# A BSD-compatible nm program.
19400
# A symbol stripping program
19403
# Used to examine libraries when file_magic_cmd begins "file"
19404
MAGIC_CMD=$MAGIC_CMD
19406
# Used on cygwin: DLL creation program.
19409
# Used on cygwin: object dumper.
19412
# Used on cygwin: assembler.
19415
# The name of the directory that contains temporary libtool files.
19418
# How to create reloadable object files.
19419
reload_flag=$lt_reload_flag
19420
reload_cmds=$lt_reload_cmds
19422
# How to pass a linker flag through the compiler.
19423
wl=$lt_lt_prog_compiler_wl_GCJ
19425
# Object file suffix (normally "o").
19426
objext="$ac_objext"
19428
# Old archive suffix (normally "a").
19431
# Shared library suffix (normally ".so").
19432
shrext_cmds='$shrext_cmds'
19434
# Executable file suffix (normally "").
19437
# Additional compiler flags for building library objects.
19438
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19441
# What is the maximum length of a command?
19442
max_cmd_len=$lt_cv_sys_max_cmd_len
19444
# Does compiler simultaneously support -c and -o options?
19445
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19447
# Must we lock files when doing compilation?
19448
need_locks=$lt_need_locks
19450
# Do we need the lib prefix for modules?
19451
need_lib_prefix=$need_lib_prefix
19453
# Do we need a version for libraries?
19454
need_version=$need_version
19456
# Whether dlopen is supported.
19457
dlopen_support=$enable_dlopen
19459
# Whether dlopen of programs is supported.
19460
dlopen_self=$enable_dlopen_self
19462
# Whether dlopen of statically linked programs is supported.
19463
dlopen_self_static=$enable_dlopen_self_static
19465
# Compiler flag to prevent dynamic linking.
19466
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19468
# Compiler flag to turn off builtin functions.
19469
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19471
# Compiler flag to allow reflexive dlopens.
19472
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19474
# Compiler flag to generate shared objects directly from archives.
19475
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19477
# Compiler flag to generate thread-safe objects.
19478
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19480
# Library versioning type.
19481
version_type=$version_type
19483
# Format of library name prefix.
19484
libname_spec=$lt_libname_spec
19486
# List of archive names. First name is the real one, the rest are links.
19487
# The last name is the one that the linker finds with -lNAME.
19488
library_names_spec=$lt_library_names_spec
19490
# The coded name of the library, if different from the real name.
19491
soname_spec=$lt_soname_spec
19493
# Commands used to build and install an old-style archive.
19495
old_archive_cmds=$lt_old_archive_cmds_GCJ
19496
old_postinstall_cmds=$lt_old_postinstall_cmds
19497
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19499
# Create an old-style archive from a shared archive.
19500
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19502
# Create a temporary old-style archive to link instead of a shared archive.
19503
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19505
# Commands used to build and install a shared archive.
19506
archive_cmds=$lt_archive_cmds_GCJ
19507
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19508
postinstall_cmds=$lt_postinstall_cmds
19509
postuninstall_cmds=$lt_postuninstall_cmds
19511
# Commands used to build a loadable module (assumed same as above if empty)
19512
module_cmds=$lt_module_cmds_GCJ
19513
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19515
# Commands to strip libraries.
19516
old_striplib=$lt_old_striplib
19517
striplib=$lt_striplib
19519
# Dependencies to place before the objects being linked to create a
19521
predep_objects=$lt_predep_objects_GCJ
19523
# Dependencies to place after the objects being linked to create a
19525
postdep_objects=$lt_postdep_objects_GCJ
19527
# Dependencies to place before the objects being linked to create a
19529
predeps=$lt_predeps_GCJ
19531
# Dependencies to place after the objects being linked to create a
19533
postdeps=$lt_postdeps_GCJ
19535
# The library search path used internally by the compiler when linking
19536
# a shared library.
19537
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19539
# Method to check whether dependent libraries are shared objects.
19540
deplibs_check_method=$lt_deplibs_check_method
19542
# Command to use when deplibs_check_method == file_magic.
19543
file_magic_cmd=$lt_file_magic_cmd
19545
# Flag that allows shared libraries with undefined symbols to be built.
19546
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19548
# Flag that forces no undefined symbols.
19549
no_undefined_flag=$lt_no_undefined_flag_GCJ
19551
# Commands used to finish a libtool library installation in a directory.
19552
finish_cmds=$lt_finish_cmds
19554
# Same as above, but a single script fragment to be evaled but not shown.
19555
finish_eval=$lt_finish_eval
19557
# Take the output of nm and produce a listing of raw symbols and C names.
19558
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19560
# Transform the output of nm in a proper C declaration
19561
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19563
# Transform the output of nm in a C name address pair
19564
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19566
# This is the shared library runtime path variable.
19567
runpath_var=$runpath_var
19569
# This is the shared library path variable.
19570
shlibpath_var=$shlibpath_var
19572
# Is shlibpath searched before the hard-coded library search path?
19573
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19575
# How to hardcode a shared library path into an executable.
19576
hardcode_action=$hardcode_action_GCJ
19578
# Whether we should hardcode library paths into libraries.
19579
hardcode_into_libs=$hardcode_into_libs
19581
# Flag to hardcode \$libdir into a binary during linking.
19582
# This must work even if \$libdir does not exist.
19583
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19585
# If ld is used when linking, flag to hardcode \$libdir into
19586
# a binary during linking. This must work even if \$libdir does
19588
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19590
# Whether we need a single -rpath flag with a separated argument.
19591
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19593
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19594
# resulting binary.
19595
hardcode_direct=$hardcode_direct_GCJ
19597
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19598
# resulting binary.
19599
hardcode_minus_L=$hardcode_minus_L_GCJ
19601
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19602
# the resulting binary.
19603
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19605
# Set to yes if building a shared library automatically hardcodes DIR into the library
19606
# and all subsequent libraries and executables linked against it.
19607
hardcode_automatic=$hardcode_automatic_GCJ
19609
# Variables whose values should be saved in libtool wrapper scripts and
19610
# restored at relink time.
19611
variables_saved_for_relink="$variables_saved_for_relink"
19613
# Whether libtool must link a program against all its dependency libraries.
19614
link_all_deplibs=$link_all_deplibs_GCJ
19616
# Compile-time system search path for libraries
19617
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19619
# Run-time system search path for libraries
19620
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19622
# Fix the shell variable \$srcfile for the compiler.
19623
fix_srcfile_path="$fix_srcfile_path_GCJ"
19625
# Set to yes if exported symbols are required.
19626
always_export_symbols=$always_export_symbols_GCJ
19628
# The commands to list exported symbols.
19629
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19631
# The commands to extract the exported symbol list from a shared archive.
19632
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19634
# Symbols that should not be listed in the preloaded symbols.
19635
exclude_expsyms=$lt_exclude_expsyms_GCJ
19637
# Symbols that must always be exported.
19638
include_expsyms=$lt_include_expsyms_GCJ
19640
# ### END LIBTOOL TAG CONFIG: $tagname
19646
# If there is no Makefile yet, we rely on a make rule to execute
19647
# `config.status --recheck' to rerun these tests and create the
19648
# libtool script then.
19649
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19650
if test -f "$ltmain_in"; then
19651
test -f Makefile && make "$ltmain"
19657
ac_cpp='$CPP $CPPFLAGS'
19658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
# Source file extension for RC test sources.
19676
# Object file extension for compiled RC test sources.
19680
# Code to be used in simple compile tests
19681
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19683
# Code to be used in simple link tests
19684
lt_simple_link_test_code="$lt_simple_compile_test_code"
19686
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19688
# If no C compiler was specified, use CC.
19691
# Allow CC to be a program name with arguments.
19695
# save warnings/boilerplate of simple test code
19696
ac_outfile=conftest.$ac_objext
19697
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19698
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19699
_lt_compiler_boilerplate=`cat conftest.err`
19702
ac_outfile=conftest.$ac_objext
19703
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19704
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19705
_lt_linker_boilerplate=`cat conftest.err`
19709
# Allow CC to be a program name with arguments.
19714
for cc_temp in $compiler""; do
19716
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19717
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19722
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19724
lt_cv_prog_compiler_c_o_RC=yes
19726
# The else clause should only fire when bootstrapping the
19727
# libtool distribution, otherwise you forgot to ship ltmain.sh
19728
# with your package, and you will get complaints that there are
19729
# no rules to generate ltmain.sh.
19730
if test -f "$ltmain"; then
19731
# See if we are running on zsh, and set the options which allow our commands through
19732
# without removal of \ escapes.
19733
if test -n "${ZSH_VERSION+set}" ; then
19734
setopt NO_GLOB_SUBST
19736
# Now quote all the things that may contain metacharacters while being
19737
# careful not to overquote the AC_SUBSTed values. We take copies of the
19738
# variables and quote the copies for generation of the libtool script.
19739
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19741
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19742
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19743
deplibs_check_method reload_flag reload_cmds need_locks \
19744
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19745
lt_cv_sys_global_symbol_to_c_name_address \
19746
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19747
old_postinstall_cmds old_postuninstall_cmds \
19751
lt_prog_compiler_wl_RC \
19752
lt_prog_compiler_pic_RC \
19753
lt_prog_compiler_static_RC \
19754
lt_prog_compiler_no_builtin_flag_RC \
19755
export_dynamic_flag_spec_RC \
19756
thread_safe_flag_spec_RC \
19757
whole_archive_flag_spec_RC \
19758
enable_shared_with_static_runtimes_RC \
19759
old_archive_cmds_RC \
19760
old_archive_from_new_cmds_RC \
19761
predep_objects_RC \
19762
postdep_objects_RC \
19765
compiler_lib_search_path_RC \
19767
archive_expsym_cmds_RC \
19768
postinstall_cmds_RC \
19769
postuninstall_cmds_RC \
19770
old_archive_from_expsyms_cmds_RC \
19771
allow_undefined_flag_RC \
19772
no_undefined_flag_RC \
19773
export_symbols_cmds_RC \
19774
hardcode_libdir_flag_spec_RC \
19775
hardcode_libdir_flag_spec_ld_RC \
19776
hardcode_libdir_separator_RC \
19777
hardcode_automatic_RC \
19779
module_expsym_cmds_RC \
19780
lt_cv_prog_compiler_c_o_RC \
19781
exclude_expsyms_RC \
19782
include_expsyms_RC; do
19785
old_archive_cmds_RC | \
19786
old_archive_from_new_cmds_RC | \
19787
archive_cmds_RC | \
19788
archive_expsym_cmds_RC | \
19790
module_expsym_cmds_RC | \
19791
old_archive_from_expsyms_cmds_RC | \
19792
export_symbols_cmds_RC | \
19793
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19794
postinstall_cmds | postuninstall_cmds | \
19795
old_postinstall_cmds | old_postuninstall_cmds | \
19796
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19797
# Double-quote double-evaled strings.
19798
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19801
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19807
*'\$0 --fallback-echo"')
19808
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19814
cat <<__EOF__ >> "$cfgfile"
19815
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19817
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19819
# Shell to use when invoking shell scripts.
19822
# Whether or not to build shared libraries.
19823
build_libtool_libs=$enable_shared
19825
# Whether or not to build static libraries.
19826
build_old_libs=$enable_static
19828
# Whether or not to add -lc for building shared libraries.
19829
build_libtool_need_lc=$archive_cmds_need_lc_RC
19831
# Whether or not to disallow shared libs when runtime libs are static
19832
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19834
# Whether or not to optimize for fast installation.
19835
fast_install=$enable_fast_install
19838
host_alias=$host_alias
19842
# The build system.
19843
build_alias=$build_alias
19847
# An echo program that does not interpret backslashes.
19852
AR_FLAGS=$lt_AR_FLAGS
19857
# A language-specific compiler.
19860
# Is the compiler the GNU C compiler?
19866
# The linker used to build libraries.
19869
# Whether we need hard or soft links.
19872
# A BSD-compatible nm program.
19875
# A symbol stripping program
19878
# Used to examine libraries when file_magic_cmd begins "file"
19879
MAGIC_CMD=$MAGIC_CMD
19881
# Used on cygwin: DLL creation program.
19884
# Used on cygwin: object dumper.
19887
# Used on cygwin: assembler.
19890
# The name of the directory that contains temporary libtool files.
19893
# How to create reloadable object files.
19894
reload_flag=$lt_reload_flag
19895
reload_cmds=$lt_reload_cmds
19897
# How to pass a linker flag through the compiler.
19898
wl=$lt_lt_prog_compiler_wl_RC
19900
# Object file suffix (normally "o").
19901
objext="$ac_objext"
19903
# Old archive suffix (normally "a").
19906
# Shared library suffix (normally ".so").
19907
shrext_cmds='$shrext_cmds'
19909
# Executable file suffix (normally "").
19912
# Additional compiler flags for building library objects.
19913
pic_flag=$lt_lt_prog_compiler_pic_RC
19916
# What is the maximum length of a command?
19917
max_cmd_len=$lt_cv_sys_max_cmd_len
19919
# Does compiler simultaneously support -c and -o options?
19920
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19922
# Must we lock files when doing compilation?
19923
need_locks=$lt_need_locks
19925
# Do we need the lib prefix for modules?
19926
need_lib_prefix=$need_lib_prefix
19928
# Do we need a version for libraries?
19929
need_version=$need_version
19931
# Whether dlopen is supported.
19932
dlopen_support=$enable_dlopen
19934
# Whether dlopen of programs is supported.
19935
dlopen_self=$enable_dlopen_self
19937
# Whether dlopen of statically linked programs is supported.
19938
dlopen_self_static=$enable_dlopen_self_static
19940
# Compiler flag to prevent dynamic linking.
19941
link_static_flag=$lt_lt_prog_compiler_static_RC
19943
# Compiler flag to turn off builtin functions.
19944
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19946
# Compiler flag to allow reflexive dlopens.
19947
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19949
# Compiler flag to generate shared objects directly from archives.
19950
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19952
# Compiler flag to generate thread-safe objects.
19953
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19955
# Library versioning type.
19956
version_type=$version_type
19958
# Format of library name prefix.
19959
libname_spec=$lt_libname_spec
19961
# List of archive names. First name is the real one, the rest are links.
19962
# The last name is the one that the linker finds with -lNAME.
19963
library_names_spec=$lt_library_names_spec
19965
# The coded name of the library, if different from the real name.
19966
soname_spec=$lt_soname_spec
19968
# Commands used to build and install an old-style archive.
19970
old_archive_cmds=$lt_old_archive_cmds_RC
19971
old_postinstall_cmds=$lt_old_postinstall_cmds
19972
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19974
# Create an old-style archive from a shared archive.
19975
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19977
# Create a temporary old-style archive to link instead of a shared archive.
19978
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19980
# Commands used to build and install a shared archive.
19981
archive_cmds=$lt_archive_cmds_RC
19982
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19983
postinstall_cmds=$lt_postinstall_cmds
19984
postuninstall_cmds=$lt_postuninstall_cmds
19986
# Commands used to build a loadable module (assumed same as above if empty)
19987
module_cmds=$lt_module_cmds_RC
19988
module_expsym_cmds=$lt_module_expsym_cmds_RC
19990
# Commands to strip libraries.
19991
old_striplib=$lt_old_striplib
19992
striplib=$lt_striplib
19994
# Dependencies to place before the objects being linked to create a
19996
predep_objects=$lt_predep_objects_RC
19998
# Dependencies to place after the objects being linked to create a
20000
postdep_objects=$lt_postdep_objects_RC
20002
# Dependencies to place before the objects being linked to create a
20004
predeps=$lt_predeps_RC
20006
# Dependencies to place after the objects being linked to create a
20008
postdeps=$lt_postdeps_RC
20010
# The library search path used internally by the compiler when linking
20011
# a shared library.
20012
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20014
# Method to check whether dependent libraries are shared objects.
20015
deplibs_check_method=$lt_deplibs_check_method
20017
# Command to use when deplibs_check_method == file_magic.
20018
file_magic_cmd=$lt_file_magic_cmd
20020
# Flag that allows shared libraries with undefined symbols to be built.
20021
allow_undefined_flag=$lt_allow_undefined_flag_RC
20023
# Flag that forces no undefined symbols.
20024
no_undefined_flag=$lt_no_undefined_flag_RC
20026
# Commands used to finish a libtool library installation in a directory.
20027
finish_cmds=$lt_finish_cmds
20029
# Same as above, but a single script fragment to be evaled but not shown.
20030
finish_eval=$lt_finish_eval
20032
# Take the output of nm and produce a listing of raw symbols and C names.
20033
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20035
# Transform the output of nm in a proper C declaration
20036
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20038
# Transform the output of nm in a C name address pair
20039
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20041
# This is the shared library runtime path variable.
20042
runpath_var=$runpath_var
20044
# This is the shared library path variable.
20045
shlibpath_var=$shlibpath_var
20047
# Is shlibpath searched before the hard-coded library search path?
20048
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20050
# How to hardcode a shared library path into an executable.
20051
hardcode_action=$hardcode_action_RC
20053
# Whether we should hardcode library paths into libraries.
20054
hardcode_into_libs=$hardcode_into_libs
20056
# Flag to hardcode \$libdir into a binary during linking.
20057
# This must work even if \$libdir does not exist.
20058
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20060
# If ld is used when linking, flag to hardcode \$libdir into
20061
# a binary during linking. This must work even if \$libdir does
20063
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20065
# Whether we need a single -rpath flag with a separated argument.
20066
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20068
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20069
# resulting binary.
20070
hardcode_direct=$hardcode_direct_RC
20072
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20073
# resulting binary.
20074
hardcode_minus_L=$hardcode_minus_L_RC
20076
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20077
# the resulting binary.
20078
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20080
# Set to yes if building a shared library automatically hardcodes DIR into the library
20081
# and all subsequent libraries and executables linked against it.
20082
hardcode_automatic=$hardcode_automatic_RC
20084
# Variables whose values should be saved in libtool wrapper scripts and
20085
# restored at relink time.
20086
variables_saved_for_relink="$variables_saved_for_relink"
20088
# Whether libtool must link a program against all its dependency libraries.
20089
link_all_deplibs=$link_all_deplibs_RC
20091
# Compile-time system search path for libraries
20092
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20094
# Run-time system search path for libraries
20095
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20097
# Fix the shell variable \$srcfile for the compiler.
20098
fix_srcfile_path="$fix_srcfile_path_RC"
20100
# Set to yes if exported symbols are required.
20101
always_export_symbols=$always_export_symbols_RC
20103
# The commands to list exported symbols.
20104
export_symbols_cmds=$lt_export_symbols_cmds_RC
20106
# The commands to extract the exported symbol list from a shared archive.
20107
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20109
# Symbols that should not be listed in the preloaded symbols.
20110
exclude_expsyms=$lt_exclude_expsyms_RC
20112
# Symbols that must always be exported.
20113
include_expsyms=$lt_include_expsyms_RC
20115
# ### END LIBTOOL TAG CONFIG: $tagname
20121
# If there is no Makefile yet, we rely on a make rule to execute
20122
# `config.status --recheck' to rerun these tests and create the
20123
# libtool script then.
20124
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20125
if test -f "$ltmain_in"; then
20126
test -f Makefile && make "$ltmain"
20132
ac_cpp='$CPP $CPPFLAGS'
20133
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20142
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20143
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20144
{ (exit 1); exit 1; }; }
20148
# Append the new tag name to the list of available tags.
20149
if test -n "$tagname" ; then
20150
available_tags="$available_tags $tagname"
20156
# Now substitute the updated list of available tags.
20157
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20158
mv "${ofile}T" "$ofile"
20162
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20163
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20164
{ (exit 1); exit 1; }; }
20170
# This can be used to rebuild libtool when needed
20171
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20173
# Always use our own libtool.
20174
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20176
# Prevent multiple expansion
10551
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10552
$as_echo "$hardcode_action" >&6; }
10554
if test "$hardcode_action" = relink ||
10555
test "$inherit_rpath" = yes; then
10556
# Fast installation is not supported
10557
enable_fast_install=no
10558
elif test "$shlibpath_overrides_runpath" = yes ||
10559
test "$enable_shared" = no; then
10560
# Fast installation is not necessary
10561
enable_fast_install=needless
10569
if test "x$enable_dlopen" != xyes; then
10570
enable_dlopen=unknown
10571
enable_dlopen_self=unknown
10572
enable_dlopen_self_static=unknown
10579
lt_cv_dlopen="load_add_on"
10581
lt_cv_dlopen_self=yes
10584
mingw* | pw32* | cegcc*)
10585
lt_cv_dlopen="LoadLibrary"
10590
lt_cv_dlopen="dlopen"
10595
# if libdl is installed we need to link against it
10596
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10597
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10598
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10599
$as_echo_n "(cached) " >&6
10601
ac_check_lib_save_LIBS=$LIBS
10603
cat >conftest.$ac_ext <<_ACEOF
10606
cat confdefs.h >>conftest.$ac_ext
10607
cat >>conftest.$ac_ext <<_ACEOF
10608
/* end confdefs.h. */
10610
/* Override any GCC internal prototype to avoid an error.
10611
Use char because int might match the return type of a GCC
10612
builtin and then its argument prototype would still apply. */
10625
rm -f conftest.$ac_objext conftest$ac_exeext
10626
if { (ac_try="$ac_link"
10627
case "(($ac_try" in
10628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629
*) ac_try_echo=$ac_try;;
10631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10632
$as_echo "$ac_try_echo") >&5
10633
(eval "$ac_link") 2>conftest.er1
10635
grep -v '^ *+' conftest.er1 >conftest.err
10637
cat conftest.err >&5
10638
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639
(exit $ac_status); } && {
10640
test -z "$ac_c_werror_flag" ||
10641
test ! -s conftest.err
10642
} && test -s conftest$ac_exeext && {
10643
test "$cross_compiling" = yes ||
10644
$as_test_x conftest$ac_exeext
10646
ac_cv_lib_dl_dlopen=yes
10648
$as_echo "$as_me: failed program was:" >&5
10649
sed 's/^/| /' conftest.$ac_ext >&5
10651
ac_cv_lib_dl_dlopen=no
10654
rm -rf conftest.dSYM
10655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10656
conftest$ac_exeext conftest.$ac_ext
10657
LIBS=$ac_check_lib_save_LIBS
10659
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10660
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10661
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10662
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665
lt_cv_dlopen="dyld"
10667
lt_cv_dlopen_self=yes
10674
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10675
$as_echo_n "checking for shl_load... " >&6; }
10676
if test "${ac_cv_func_shl_load+set}" = set; then
10677
$as_echo_n "(cached) " >&6
10679
cat >conftest.$ac_ext <<_ACEOF
10682
cat confdefs.h >>conftest.$ac_ext
10683
cat >>conftest.$ac_ext <<_ACEOF
10684
/* end confdefs.h. */
10685
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10686
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10687
#define shl_load innocuous_shl_load
10689
/* System header to define __stub macros and hopefully few prototypes,
10690
which can conflict with char shl_load (); below.
10691
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10692
<limits.h> exists even on freestanding compilers. */
10695
# include <limits.h>
10697
# include <assert.h>
10702
/* Override any GCC internal prototype to avoid an error.
10703
Use char because int might match the return type of a GCC
10704
builtin and then its argument prototype would still apply. */
10709
/* The GNU C library defines this for functions which it implements
10710
to always fail with ENOSYS. Some functions are actually named
10711
something starting with __ and the normal name is an alias. */
10712
#if defined __stub_shl_load || defined __stub___shl_load
10719
return shl_load ();
10724
rm -f conftest.$ac_objext conftest$ac_exeext
10725
if { (ac_try="$ac_link"
10726
case "(($ac_try" in
10727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728
*) ac_try_echo=$ac_try;;
10730
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10731
$as_echo "$ac_try_echo") >&5
10732
(eval "$ac_link") 2>conftest.er1
10734
grep -v '^ *+' conftest.er1 >conftest.err
10736
cat conftest.err >&5
10737
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738
(exit $ac_status); } && {
10739
test -z "$ac_c_werror_flag" ||
10740
test ! -s conftest.err
10741
} && test -s conftest$ac_exeext && {
10742
test "$cross_compiling" = yes ||
10743
$as_test_x conftest$ac_exeext
10745
ac_cv_func_shl_load=yes
10747
$as_echo "$as_me: failed program was:" >&5
10748
sed 's/^/| /' conftest.$ac_ext >&5
10750
ac_cv_func_shl_load=no
10753
rm -rf conftest.dSYM
10754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755
conftest$ac_exeext conftest.$ac_ext
10757
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10758
$as_echo "$ac_cv_func_shl_load" >&6; }
10759
if test "x$ac_cv_func_shl_load" = x""yes; then
10760
lt_cv_dlopen="shl_load"
10762
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10763
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10764
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10765
$as_echo_n "(cached) " >&6
10767
ac_check_lib_save_LIBS=$LIBS
10769
cat >conftest.$ac_ext <<_ACEOF
10772
cat confdefs.h >>conftest.$ac_ext
10773
cat >>conftest.$ac_ext <<_ACEOF
10774
/* end confdefs.h. */
10776
/* Override any GCC internal prototype to avoid an error.
10777
Use char because int might match the return type of a GCC
10778
builtin and then its argument prototype would still apply. */
10786
return shl_load ();
10791
rm -f conftest.$ac_objext conftest$ac_exeext
10792
if { (ac_try="$ac_link"
10793
case "(($ac_try" in
10794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795
*) ac_try_echo=$ac_try;;
10797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798
$as_echo "$ac_try_echo") >&5
10799
(eval "$ac_link") 2>conftest.er1
10801
grep -v '^ *+' conftest.er1 >conftest.err
10803
cat conftest.err >&5
10804
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805
(exit $ac_status); } && {
10806
test -z "$ac_c_werror_flag" ||
10807
test ! -s conftest.err
10808
} && test -s conftest$ac_exeext && {
10809
test "$cross_compiling" = yes ||
10810
$as_test_x conftest$ac_exeext
10812
ac_cv_lib_dld_shl_load=yes
10814
$as_echo "$as_me: failed program was:" >&5
10815
sed 's/^/| /' conftest.$ac_ext >&5
10817
ac_cv_lib_dld_shl_load=no
10820
rm -rf conftest.dSYM
10821
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822
conftest$ac_exeext conftest.$ac_ext
10823
LIBS=$ac_check_lib_save_LIBS
10825
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10826
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10827
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10828
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10830
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10831
$as_echo_n "checking for dlopen... " >&6; }
10832
if test "${ac_cv_func_dlopen+set}" = set; then
10833
$as_echo_n "(cached) " >&6
10835
cat >conftest.$ac_ext <<_ACEOF
10838
cat confdefs.h >>conftest.$ac_ext
10839
cat >>conftest.$ac_ext <<_ACEOF
10840
/* end confdefs.h. */
10841
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10842
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10843
#define dlopen innocuous_dlopen
10845
/* System header to define __stub macros and hopefully few prototypes,
10846
which can conflict with char dlopen (); below.
10847
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10848
<limits.h> exists even on freestanding compilers. */
10851
# include <limits.h>
10853
# include <assert.h>
10858
/* Override any GCC internal prototype to avoid an error.
10859
Use char because int might match the return type of a GCC
10860
builtin and then its argument prototype would still apply. */
10865
/* The GNU C library defines this for functions which it implements
10866
to always fail with ENOSYS. Some functions are actually named
10867
something starting with __ and the normal name is an alias. */
10868
#if defined __stub_dlopen || defined __stub___dlopen
10880
rm -f conftest.$ac_objext conftest$ac_exeext
10881
if { (ac_try="$ac_link"
10882
case "(($ac_try" in
10883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884
*) ac_try_echo=$ac_try;;
10886
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10887
$as_echo "$ac_try_echo") >&5
10888
(eval "$ac_link") 2>conftest.er1
10890
grep -v '^ *+' conftest.er1 >conftest.err
10892
cat conftest.err >&5
10893
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894
(exit $ac_status); } && {
10895
test -z "$ac_c_werror_flag" ||
10896
test ! -s conftest.err
10897
} && test -s conftest$ac_exeext && {
10898
test "$cross_compiling" = yes ||
10899
$as_test_x conftest$ac_exeext
10901
ac_cv_func_dlopen=yes
10903
$as_echo "$as_me: failed program was:" >&5
10904
sed 's/^/| /' conftest.$ac_ext >&5
10906
ac_cv_func_dlopen=no
10909
rm -rf conftest.dSYM
10910
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10911
conftest$ac_exeext conftest.$ac_ext
10913
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10914
$as_echo "$ac_cv_func_dlopen" >&6; }
10915
if test "x$ac_cv_func_dlopen" = x""yes; then
10916
lt_cv_dlopen="dlopen"
10918
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10919
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10920
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10921
$as_echo_n "(cached) " >&6
10923
ac_check_lib_save_LIBS=$LIBS
10925
cat >conftest.$ac_ext <<_ACEOF
10928
cat confdefs.h >>conftest.$ac_ext
10929
cat >>conftest.$ac_ext <<_ACEOF
10930
/* end confdefs.h. */
10932
/* Override any GCC internal prototype to avoid an error.
10933
Use char because int might match the return type of a GCC
10934
builtin and then its argument prototype would still apply. */
10947
rm -f conftest.$ac_objext conftest$ac_exeext
10948
if { (ac_try="$ac_link"
10949
case "(($ac_try" in
10950
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951
*) ac_try_echo=$ac_try;;
10953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10954
$as_echo "$ac_try_echo") >&5
10955
(eval "$ac_link") 2>conftest.er1
10957
grep -v '^ *+' conftest.er1 >conftest.err
10959
cat conftest.err >&5
10960
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961
(exit $ac_status); } && {
10962
test -z "$ac_c_werror_flag" ||
10963
test ! -s conftest.err
10964
} && test -s conftest$ac_exeext && {
10965
test "$cross_compiling" = yes ||
10966
$as_test_x conftest$ac_exeext
10968
ac_cv_lib_dl_dlopen=yes
10970
$as_echo "$as_me: failed program was:" >&5
10971
sed 's/^/| /' conftest.$ac_ext >&5
10973
ac_cv_lib_dl_dlopen=no
10976
rm -rf conftest.dSYM
10977
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10978
conftest$ac_exeext conftest.$ac_ext
10979
LIBS=$ac_check_lib_save_LIBS
10981
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10982
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10983
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10984
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10986
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10987
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10988
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10989
$as_echo_n "(cached) " >&6
10991
ac_check_lib_save_LIBS=$LIBS
10992
LIBS="-lsvld $LIBS"
10993
cat >conftest.$ac_ext <<_ACEOF
10996
cat confdefs.h >>conftest.$ac_ext
10997
cat >>conftest.$ac_ext <<_ACEOF
10998
/* end confdefs.h. */
11000
/* Override any GCC internal prototype to avoid an error.
11001
Use char because int might match the return type of a GCC
11002
builtin and then its argument prototype would still apply. */
11015
rm -f conftest.$ac_objext conftest$ac_exeext
11016
if { (ac_try="$ac_link"
11017
case "(($ac_try" in
11018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019
*) ac_try_echo=$ac_try;;
11021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022
$as_echo "$ac_try_echo") >&5
11023
(eval "$ac_link") 2>conftest.er1
11025
grep -v '^ *+' conftest.er1 >conftest.err
11027
cat conftest.err >&5
11028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029
(exit $ac_status); } && {
11030
test -z "$ac_c_werror_flag" ||
11031
test ! -s conftest.err
11032
} && test -s conftest$ac_exeext && {
11033
test "$cross_compiling" = yes ||
11034
$as_test_x conftest$ac_exeext
11036
ac_cv_lib_svld_dlopen=yes
11038
$as_echo "$as_me: failed program was:" >&5
11039
sed 's/^/| /' conftest.$ac_ext >&5
11041
ac_cv_lib_svld_dlopen=no
11044
rm -rf conftest.dSYM
11045
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11046
conftest$ac_exeext conftest.$ac_ext
11047
LIBS=$ac_check_lib_save_LIBS
11049
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11050
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11051
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11052
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11054
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11055
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11056
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11057
$as_echo_n "(cached) " >&6
11059
ac_check_lib_save_LIBS=$LIBS
11061
cat >conftest.$ac_ext <<_ACEOF
11064
cat confdefs.h >>conftest.$ac_ext
11065
cat >>conftest.$ac_ext <<_ACEOF
11066
/* end confdefs.h. */
11068
/* Override any GCC internal prototype to avoid an error.
11069
Use char because int might match the return type of a GCC
11070
builtin and then its argument prototype would still apply. */
11078
return dld_link ();
11083
rm -f conftest.$ac_objext conftest$ac_exeext
11084
if { (ac_try="$ac_link"
11085
case "(($ac_try" in
11086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087
*) ac_try_echo=$ac_try;;
11089
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11090
$as_echo "$ac_try_echo") >&5
11091
(eval "$ac_link") 2>conftest.er1
11093
grep -v '^ *+' conftest.er1 >conftest.err
11095
cat conftest.err >&5
11096
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097
(exit $ac_status); } && {
11098
test -z "$ac_c_werror_flag" ||
11099
test ! -s conftest.err
11100
} && test -s conftest$ac_exeext && {
11101
test "$cross_compiling" = yes ||
11102
$as_test_x conftest$ac_exeext
11104
ac_cv_lib_dld_dld_link=yes
11106
$as_echo "$as_me: failed program was:" >&5
11107
sed 's/^/| /' conftest.$ac_ext >&5
11109
ac_cv_lib_dld_dld_link=no
11112
rm -rf conftest.dSYM
11113
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114
conftest$ac_exeext conftest.$ac_ext
11115
LIBS=$ac_check_lib_save_LIBS
11117
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11118
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11119
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11120
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11141
if test "x$lt_cv_dlopen" != xno; then
11147
case $lt_cv_dlopen in
11149
save_CPPFLAGS="$CPPFLAGS"
11150
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11152
save_LDFLAGS="$LDFLAGS"
11153
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11156
LIBS="$lt_cv_dlopen_libs $LIBS"
11158
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11159
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11160
if test "${lt_cv_dlopen_self+set}" = set; then
11161
$as_echo_n "(cached) " >&6
11163
if test "$cross_compiling" = yes; then :
11164
lt_cv_dlopen_self=cross
11166
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167
lt_status=$lt_dlunknown
11168
cat > conftest.$ac_ext <<_LT_EOF
11169
#line 11169 "configure"
11170
#include "confdefs.h"
11179
# define LT_DLGLOBAL RTLD_GLOBAL
11182
# define LT_DLGLOBAL DL_GLOBAL
11184
# define LT_DLGLOBAL 0
11188
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189
find out it does not work in some platform. */
11190
#ifndef LT_DLLAZY_OR_NOW
11192
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11195
# define LT_DLLAZY_OR_NOW DL_LAZY
11198
# define LT_DLLAZY_OR_NOW RTLD_NOW
11201
# define LT_DLLAZY_OR_NOW DL_NOW
11203
# define LT_DLLAZY_OR_NOW 0
11210
void fnord() { int i=42;}
11213
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11214
int status = $lt_dlunknown;
11218
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11219
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11220
/* dlclose (self); */
11228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229
(eval $ac_link) 2>&5
11231
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11233
(./conftest; exit; ) >&5 2>/dev/null
11235
case x$lt_status in
11236
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11237
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11238
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11241
# compilation failed
11242
lt_cv_dlopen_self=no
11249
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11250
$as_echo "$lt_cv_dlopen_self" >&6; }
11252
if test "x$lt_cv_dlopen_self" = xyes; then
11253
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11254
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11255
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11256
if test "${lt_cv_dlopen_self_static+set}" = set; then
11257
$as_echo_n "(cached) " >&6
11259
if test "$cross_compiling" = yes; then :
11260
lt_cv_dlopen_self_static=cross
11262
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11263
lt_status=$lt_dlunknown
11264
cat > conftest.$ac_ext <<_LT_EOF
11265
#line 11265 "configure"
11266
#include "confdefs.h"
11275
# define LT_DLGLOBAL RTLD_GLOBAL
11278
# define LT_DLGLOBAL DL_GLOBAL
11280
# define LT_DLGLOBAL 0
11284
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11285
find out it does not work in some platform. */
11286
#ifndef LT_DLLAZY_OR_NOW
11288
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11291
# define LT_DLLAZY_OR_NOW DL_LAZY
11294
# define LT_DLLAZY_OR_NOW RTLD_NOW
11297
# define LT_DLLAZY_OR_NOW DL_NOW
11299
# define LT_DLLAZY_OR_NOW 0
11306
void fnord() { int i=42;}
11309
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11310
int status = $lt_dlunknown;
11314
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11315
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11316
/* dlclose (self); */
11324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325
(eval $ac_link) 2>&5
11327
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11329
(./conftest; exit; ) >&5 2>/dev/null
11331
case x$lt_status in
11332
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11333
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11334
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11337
# compilation failed
11338
lt_cv_dlopen_self_static=no
11345
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11346
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11349
CPPFLAGS="$save_CPPFLAGS"
11350
LDFLAGS="$save_LDFLAGS"
11355
case $lt_cv_dlopen_self in
11356
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11357
*) enable_dlopen_self=unknown ;;
11360
case $lt_cv_dlopen_self_static in
11361
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11362
*) enable_dlopen_self_static=unknown ;;
11384
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11385
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11386
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11387
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11388
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11389
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11390
$as_echo "yes" >&6; }
11392
# FIXME - insert some real tests, host_os isn't really good enough
11395
if test -n "$STRIP" ; then
11396
striplib="$STRIP -x"
11397
old_striplib="$STRIP -S"
11398
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11399
$as_echo "yes" >&6; }
11401
{ $as_echo "$as_me:$LINENO: result: no" >&5
11402
$as_echo "no" >&6; }
11406
{ $as_echo "$as_me:$LINENO: result: no" >&5
11407
$as_echo "no" >&6; }
11423
# Report which library types will actually be built
11424
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11425
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11426
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11427
$as_echo "$can_build_shared" >&6; }
11429
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11430
$as_echo_n "checking whether to build shared libraries... " >&6; }
11431
test "$can_build_shared" = "no" && enable_shared=no
11433
# On AIX, shared libraries and static libraries use the same namespace, and
11434
# are all built from PIC.
11437
test "$enable_shared" = yes && enable_static=no
11438
if test -n "$RANLIB"; then
11439
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11440
postinstall_cmds='$RANLIB $lib'
11445
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11446
test "$enable_shared" = yes && enable_static=no
11450
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11451
$as_echo "$enable_shared" >&6; }
11453
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11454
$as_echo_n "checking whether to build static libraries... " >&6; }
11455
# Make sure either enable_shared or enable_static is yes.
11456
test "$enable_shared" = yes || enable_static=yes
11457
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11458
$as_echo "$enable_static" >&6; }
11465
ac_cpp='$CPP $CPPFLAGS'
11466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11484
ac_config_commands="$ac_config_commands libtool"
11489
# Only expand once:
20197
11492
# Find a good install program. We prefer a C program (faster),