2354
5860
RANLIB="$ac_cv_prog_RANLIB"
5863
if test -n "$ac_tool_prefix"; then
5864
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5865
set dummy ${ac_tool_prefix}strip; ac_word=$2
5866
echo "$as_me:$LINENO: checking for $ac_word" >&5
5867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868
if test "${ac_cv_prog_STRIP+set}" = set; then
5869
echo $ECHO_N "(cached) $ECHO_C" >&6
5871
if test -n "$STRIP"; then
5872
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878
test -z "$as_dir" && as_dir=.
5879
for ac_exec_ext in '' $ac_executable_extensions; do
5880
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5882
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890
STRIP=$ac_cv_prog_STRIP
5891
if test -n "$STRIP"; then
5892
echo "$as_me:$LINENO: result: $STRIP" >&5
5893
echo "${ECHO_T}$STRIP" >&6
5895
echo "$as_me:$LINENO: result: no" >&5
5896
echo "${ECHO_T}no" >&6
5900
if test -z "$ac_cv_prog_STRIP"; then
5902
# Extract the first word of "strip", so it can be a program name with args.
5903
set dummy strip; ac_word=$2
5904
echo "$as_me:$LINENO: checking for $ac_word" >&5
5905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5907
echo $ECHO_N "(cached) $ECHO_C" >&6
5909
if test -n "$ac_ct_STRIP"; then
5910
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916
test -z "$as_dir" && as_dir=.
5917
for ac_exec_ext in '' $ac_executable_extensions; do
5918
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919
ac_cv_prog_ac_ct_STRIP="strip"
5920
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5929
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5930
if test -n "$ac_ct_STRIP"; then
5931
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5932
echo "${ECHO_T}$ac_ct_STRIP" >&6
5934
echo "$as_me:$LINENO: result: no" >&5
5935
echo "${ECHO_T}no" >&6
5940
STRIP="$ac_cv_prog_STRIP"
5945
old_CFLAGS="$CFLAGS"
5947
# Set sane defaults for various variables
5948
test -z "$AR" && AR=ar
5949
test -z "$AR_FLAGS" && AR_FLAGS=cru
5950
test -z "$AS" && AS=as
5951
test -z "$CC" && CC=cc
5952
test -z "$LTCC" && LTCC=$CC
5953
test -z "$DLLTOOL" && DLLTOOL=dlltool
5954
test -z "$LD" && LD=ld
5955
test -z "$LN_S" && LN_S="ln -s"
5956
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5957
test -z "$NM" && NM=nm
5958
test -z "$SED" && SED=sed
5959
test -z "$OBJDUMP" && OBJDUMP=objdump
5960
test -z "$RANLIB" && RANLIB=:
5961
test -z "$STRIP" && STRIP=:
5962
test -z "$ac_objext" && ac_objext=o
5964
# Determine commands to create old-style static archives.
5965
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5966
old_postinstall_cmds='chmod 644 $oldlib'
5967
old_postuninstall_cmds=
5969
if test -n "$RANLIB"; then
5972
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5975
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5978
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5981
# Only perform the check for file, if the check method requires it
5982
case $deplibs_check_method in
5984
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5985
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5986
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5987
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5988
echo $ECHO_N "(cached) $ECHO_C" >&6
5992
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5995
lt_save_MAGIC_CMD="$MAGIC_CMD"
5996
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5997
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5998
for ac_dir in $ac_dummy; do
6000
test -z "$ac_dir" && ac_dir=.
6001
if test -f $ac_dir/${ac_tool_prefix}file; then
6002
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6003
if test -n "$file_magic_test_file"; then
6004
case $deplibs_check_method in
6006
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6007
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6008
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6009
$EGREP "$file_magic_regex" > /dev/null; then
6014
*** Warning: the command libtool uses to detect shared libraries,
6015
*** $file_magic_cmd, produces output that libtool cannot recognize.
6016
*** The result is that libtool may fail to recognize shared libraries
6017
*** as such. This will affect the creation of libtool libraries that
6018
*** depend on shared libraries, but programs linked with such libtool
6019
*** libraries will work regardless of this problem. Nevertheless, you
6020
*** may want to report the problem to your system manager and/or to
6021
*** bug-libtool@gnu.org
6031
MAGIC_CMD="$lt_save_MAGIC_CMD"
6036
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6037
if test -n "$MAGIC_CMD"; then
6038
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6039
echo "${ECHO_T}$MAGIC_CMD" >&6
6041
echo "$as_me:$LINENO: result: no" >&5
6042
echo "${ECHO_T}no" >&6
6045
if test -z "$lt_cv_path_MAGIC_CMD"; then
6046
if test -n "$ac_tool_prefix"; then
6047
echo "$as_me:$LINENO: checking for file" >&5
6048
echo $ECHO_N "checking for file... $ECHO_C" >&6
6049
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6050
echo $ECHO_N "(cached) $ECHO_C" >&6
6054
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057
lt_save_MAGIC_CMD="$MAGIC_CMD"
6058
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6059
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6060
for ac_dir in $ac_dummy; do
6062
test -z "$ac_dir" && ac_dir=.
6063
if test -f $ac_dir/file; then
6064
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6065
if test -n "$file_magic_test_file"; then
6066
case $deplibs_check_method in
6068
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6069
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6070
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6071
$EGREP "$file_magic_regex" > /dev/null; then
6076
*** Warning: the command libtool uses to detect shared libraries,
6077
*** $file_magic_cmd, produces output that libtool cannot recognize.
6078
*** The result is that libtool may fail to recognize shared libraries
6079
*** as such. This will affect the creation of libtool libraries that
6080
*** depend on shared libraries, but programs linked with such libtool
6081
*** libraries will work regardless of this problem. Nevertheless, you
6082
*** may want to report the problem to your system manager and/or to
6083
*** bug-libtool@gnu.org
6093
MAGIC_CMD="$lt_save_MAGIC_CMD"
6098
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6099
if test -n "$MAGIC_CMD"; then
6100
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6101
echo "${ECHO_T}$MAGIC_CMD" >&6
6103
echo "$as_me:$LINENO: result: no" >&5
6104
echo "${ECHO_T}no" >&6
6119
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6120
if test "${enable_libtool_lock+set}" = set; then
6121
enableval="$enable_libtool_lock"
6124
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6127
# Check whether --with-pic or --without-pic was given.
6128
if test "${with_pic+set}" = set; then
6134
test -z "$pic_mode" && pic_mode=default
6136
# Use C for the default configuration in the libtool script
6140
ac_cpp='$CPP $CPPFLAGS'
6141
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
# Source file extension for C test sources.
6149
# Object file extension for compiled C test sources.
6153
# Code to be used in simple compile tests
6154
lt_simple_compile_test_code="int some_variable = 0;\n"
6156
# Code to be used in simple link tests
6157
lt_simple_link_test_code='int main(){return(0);}\n'
6160
# If no C compiler was specified, use CC.
6163
# Allow CC to be a program name with arguments.
6168
# Check for any special shared library compilation flags.
6171
if test "$GCC" = no; then
6174
lt_prog_cc_shlib='-belf'
6178
if test -n "$lt_prog_cc_shlib"; then
6179
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6180
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6181
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6183
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6184
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6185
lt_cv_prog_cc_can_build_shared=no
6191
# Check to make sure the static flag actually works.
6193
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6194
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6195
if test "${lt_prog_compiler_static_works+set}" = set; then
6196
echo $ECHO_N "(cached) $ECHO_C" >&6
6198
lt_prog_compiler_static_works=no
6199
save_LDFLAGS="$LDFLAGS"
6200
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6201
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6202
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6203
# The compiler can only warn and ignore the option if not recognized
6204
# So say no if there are warnings
6205
if test -s conftest.err; then
6206
# Append any errors to the config.log.
6207
cat conftest.err 1>&5
6209
lt_prog_compiler_static_works=yes
6213
LDFLAGS="$save_LDFLAGS"
6216
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6217
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6219
if test x"$lt_prog_compiler_static_works" = xyes; then
6222
lt_prog_compiler_static=
6228
lt_prog_compiler_no_builtin_flag=
6230
if test "$GCC" = yes; then
6231
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6234
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6235
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6236
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6237
echo $ECHO_N "(cached) $ECHO_C" >&6
6239
lt_cv_prog_compiler_rtti_exceptions=no
6240
ac_outfile=conftest.$ac_objext
6241
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6242
lt_compiler_flag="-fno-rtti -fno-exceptions"
6243
# Insert the option either (1) after the last *FLAGS variable, or
6244
# (2) before a word containing "conftest.", or (3) at the end.
6245
# Note that $ac_compile itself does not contain backslashes and begins
6246
# with a dollar sign (not a hyphen), so the echo should work correctly.
6247
# The option is referenced via a variable to avoid confusing sed.
6248
lt_compile=`echo "$ac_compile" | $SED \
6249
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6250
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6251
-e 's:$: $lt_compiler_flag:'`
6252
(eval echo "\"\$as_me:6252: $lt_compile\"" >&5)
6253
(eval "$lt_compile" 2>conftest.err)
6255
cat conftest.err >&5
6256
echo "$as_me:6256: \$? = $ac_status" >&5
6257
if (exit $ac_status) && test -s "$ac_outfile"; then
6258
# The compiler can only warn and ignore the option if not recognized
6259
# So say no if there are warnings
6260
if test ! -s conftest.err; then
6261
lt_cv_prog_compiler_rtti_exceptions=yes
6267
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6268
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6270
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6271
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6278
lt_prog_compiler_wl=
6279
lt_prog_compiler_pic=
6280
lt_prog_compiler_static=
6282
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6283
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6285
if test "$GCC" = yes; then
6286
lt_prog_compiler_wl='-Wl,'
6287
lt_prog_compiler_static='-static'
6291
# All AIX code is PIC.
6292
if test "$host_cpu" = ia64; then
6293
# AIX 5 now supports IA64 processor
6294
lt_prog_compiler_static='-Bstatic'
6299
# FIXME: we need at least 68020 code to build shared libraries, but
6300
# adding the `-m68020' flag to GCC prevents building anything better,
6302
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6305
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6306
# PIC is the default for these OSes.
6309
mingw* | pw32* | os2*)
6310
# This hack is so that the source file can tell whether it is being
6311
# built for inclusion in a dll (and should export symbols for example).
6312
lt_prog_compiler_pic='-DDLL_EXPORT'
6315
darwin* | rhapsody*)
6316
# PIC is the default on this platform
6317
# Common symbols not allowed in MH_DYLIB files
6318
lt_prog_compiler_pic='-fno-common'
6322
# Just because we use GCC doesn't mean we suddenly get shared libraries
6323
# on systems that don't support them.
6324
lt_prog_compiler_can_build_shared=no
6329
if test -d /usr/nec; then
6330
lt_prog_compiler_pic=-Kconform_pic
6335
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6342
lt_prog_compiler_pic='-fPIC'
6348
lt_prog_compiler_pic='-fPIC'
6352
# PORTME Check for flag to pass linker flags through the system compiler.
6355
lt_prog_compiler_wl='-Wl,'
6356
if test "$host_cpu" = ia64; then
6357
# AIX 5 now supports IA64 processor
6358
lt_prog_compiler_static='-Bstatic'
6360
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6364
mingw* | pw32* | os2*)
6365
# This hack is so that the source file can tell whether it is being
6366
# built for inclusion in a dll (and should export symbols for example).
6367
lt_prog_compiler_pic='-DDLL_EXPORT'
6370
hpux9* | hpux10* | hpux11*)
6371
lt_prog_compiler_wl='-Wl,'
6372
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6379
lt_prog_compiler_pic='+Z'
6382
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6383
lt_prog_compiler_static='${wl}-a ${wl}archive'
6386
irix5* | irix6* | nonstopux*)
6387
lt_prog_compiler_wl='-Wl,'
6388
# PIC (with -KPIC) is the default.
6389
lt_prog_compiler_static='-non_shared'
6393
lt_prog_compiler_pic='-KPIC'
6394
lt_prog_compiler_static='-Bstatic'
6400
lt_prog_compiler_wl='-Wl,'
6401
lt_prog_compiler_pic='-KPIC'
6402
lt_prog_compiler_static='-static'
6405
lt_prog_compiler_wl='-Wl,'
6406
# All Alpha code is PIC.
6407
lt_prog_compiler_static='-non_shared'
6412
osf3* | osf4* | osf5*)
6413
lt_prog_compiler_wl='-Wl,'
6414
# All OSF/1 code is PIC.
6415
lt_prog_compiler_static='-non_shared'
6419
lt_prog_compiler_pic='-Kpic'
6420
lt_prog_compiler_static='-dn'
6424
lt_prog_compiler_wl='-Wl,'
6425
lt_prog_compiler_pic='-KPIC'
6426
lt_prog_compiler_static='-Bstatic'
6430
lt_prog_compiler_wl='-Qoption ld '
6431
lt_prog_compiler_pic='-PIC'
6432
lt_prog_compiler_static='-Bstatic'
6435
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6436
lt_prog_compiler_wl='-Wl,'
6437
lt_prog_compiler_pic='-KPIC'
6438
lt_prog_compiler_static='-Bstatic'
6442
if test -d /usr/nec ;then
6443
lt_prog_compiler_pic='-Kconform_pic'
6444
lt_prog_compiler_static='-Bstatic'
6449
lt_prog_compiler_pic='-pic'
6450
lt_prog_compiler_static='-Bstatic'
6454
lt_prog_compiler_can_build_shared=no
6459
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6460
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6463
# Check to make sure the PIC flag actually works.
6465
if test -n "$lt_prog_compiler_pic"; then
6467
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6468
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6469
if test "${lt_prog_compiler_pic_works+set}" = set; then
6470
echo $ECHO_N "(cached) $ECHO_C" >&6
6472
lt_prog_compiler_pic_works=no
6473
ac_outfile=conftest.$ac_objext
6474
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6475
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6476
# Insert the option either (1) after the last *FLAGS variable, or
6477
# (2) before a word containing "conftest.", or (3) at the end.
6478
# Note that $ac_compile itself does not contain backslashes and begins
6479
# with a dollar sign (not a hyphen), so the echo should work correctly.
6480
# The option is referenced via a variable to avoid confusing sed.
6481
lt_compile=`echo "$ac_compile" | $SED \
6482
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6483
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6484
-e 's:$: $lt_compiler_flag:'`
6485
(eval echo "\"\$as_me:6485: $lt_compile\"" >&5)
6486
(eval "$lt_compile" 2>conftest.err)
6488
cat conftest.err >&5
6489
echo "$as_me:6489: \$? = $ac_status" >&5
6490
if (exit $ac_status) && test -s "$ac_outfile"; then
6491
# The compiler can only warn and ignore the option if not recognized
6492
# So say no if there are warnings
6493
if test ! -s conftest.err; then
6494
lt_prog_compiler_pic_works=yes
6500
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6501
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6503
if test x"$lt_prog_compiler_pic_works" = xyes; then
6504
case $lt_prog_compiler_pic in
6506
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6509
lt_prog_compiler_pic=
6510
lt_prog_compiler_can_build_shared=no
6515
# For platforms which do not support PIC, -DPIC is meaningless:
6517
lt_prog_compiler_pic=
6520
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6524
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6525
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6526
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6527
echo $ECHO_N "(cached) $ECHO_C" >&6
6529
lt_cv_prog_compiler_c_o=no
6530
$rm -r conftest 2>/dev/null
6534
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6536
lt_compiler_flag="-o out/conftest2.$ac_objext"
6537
# Insert the option either (1) after the last *FLAGS variable, or
6538
# (2) before a word containing "conftest.", or (3) at the end.
6539
# Note that $ac_compile itself does not contain backslashes and begins
6540
# with a dollar sign (not a hyphen), so the echo should work correctly.
6541
lt_compile=`echo "$ac_compile" | $SED \
6542
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544
-e 's:$: $lt_compiler_flag:'`
6545
(eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546
(eval "$lt_compile" 2>out/conftest.err)
6548
cat out/conftest.err >&5
6549
echo "$as_me:6549: \$? = $ac_status" >&5
6550
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6552
# The compiler can only warn and ignore the option if not recognized
6553
# So say no if there are warnings
6554
if test ! -s out/conftest.err; then
6555
lt_cv_prog_compiler_c_o=yes
6560
# SGI C++ compiler will create directory out/ii_files/ for
6561
# template instantiation
6562
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6563
$rm out/* && rmdir out
6569
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6570
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6573
hard_links="nottested"
6574
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6575
# do not overwrite the value of need_locks provided by the user
6576
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6577
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6580
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582
ln conftest.a conftest.b 2>&5 || hard_links=no
6583
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6584
echo "$as_me:$LINENO: result: $hard_links" >&5
6585
echo "${ECHO_T}$hard_links" >&6
6586
if test "$hard_links" = no; then
6587
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6588
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6595
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6596
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6599
allow_undefined_flag=
6600
enable_shared_with_static_runtimes=no
6602
archive_expsym_cmds=
6603
old_archive_From_new_cmds=
6604
old_archive_from_expsyms_cmds=
6605
export_dynamic_flag_spec=
6606
whole_archive_flag_spec=
6607
thread_safe_flag_spec=
6608
hardcode_libdir_flag_spec=
6609
hardcode_libdir_flag_spec_ld=
6610
hardcode_libdir_separator=
6613
hardcode_shlibpath_var=unsupported
6614
link_all_deplibs=unknown
6615
hardcode_automatic=no
6618
always_export_symbols=no
6619
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6620
# include_expsyms should be a list of space-separated symbols to be *always*
6621
# included in the symbol list
6623
# exclude_expsyms can be an extended regexp of symbols to exclude
6624
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6625
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6626
# as well as any symbol that contains `d'.
6627
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6628
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6629
# platforms (ab)use it in PIC code, but their linkers get confused if
6630
# the symbol is explicitly referenced. Since portable code cannot
6631
# rely on this symbol name, it's probably fine to never include it in
6632
# preloaded symbol tables.
6633
extract_expsyms_cmds=
6636
cygwin* | mingw* | pw32*)
6637
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6638
# When not using gcc, we currently assume that we are using
6639
# Microsoft Visual C++.
6640
if test "$GCC" != yes; then
6650
if test "$with_gnu_ld" = yes; then
6651
# If archive_cmds runs LD, not CC, wlarc should be empty
6654
# See if GNU ld supports shared libraries.
6656
aix3* | aix4* | aix5*)
6657
# On AIX/PPC, the GNU linker is very broken
6658
if test "$host_cpu" != ia64; then
6662
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6663
*** to be unable to reliably create shared libraries on AIX.
6664
*** Therefore, libtool is disabling shared libraries support. If you
6665
*** really care for shared libraries, you may want to modify your PATH
6666
*** so that a non-GNU linker is found, and then restart.
6673
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6674
hardcode_libdir_flag_spec='-L$libdir'
6675
hardcode_minus_L=yes
6677
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6678
# that the semantics of dynamic libraries on AmigaOS, at least up
6679
# to version 4, is to share data among multiple programs linked
6680
# with the same dynamic library. Since this doesn't match the
6681
# behavior of shared libraries on other platforms, we can't use
6687
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6688
allow_undefined_flag=unsupported
6689
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6690
# support --undefined. This deserves some investigation. FIXME
6691
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6697
cygwin* | mingw* | pw32*)
6698
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6699
# as there is no search path for DLLs.
6700
hardcode_libdir_flag_spec='-L$libdir'
6701
allow_undefined_flag=unsupported
6702
always_export_symbols=no
6703
enable_shared_with_static_runtimes=yes
6704
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6706
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6707
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6708
# If the export-symbols file already is a .def file (1st line
6709
# is EXPORTS), use it as is; otherwise, prepend...
6710
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6711
cp $export_symbols $output_objdir/$soname.def;
6713
echo EXPORTS > $output_objdir/$soname.def;
6714
cat $export_symbols >> $output_objdir/$soname.def;
6716
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6723
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6724
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6727
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6733
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6737
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6738
*** create shared libraries on Solaris systems. Therefore, libtool
6739
*** is disabling shared libraries support. We urge you to upgrade GNU
6740
*** binutils to release 2.9.1 or newer. Another option is to modify
6741
*** your PATH or compiler configuration so that the native linker is
6742
*** used, and then restart.
6745
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6746
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6754
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6757
hardcode_shlibpath_var=no
6761
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6762
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763
archive_cmds="$tmp_archive_cmds"
6764
supports_anon_versioning=no
6765
case `$LD -v 2>/dev/null` in
6766
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6767
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6768
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6769
*\ 2.11.*) ;; # other 2.11 versions
6770
*) supports_anon_versioning=yes ;;
6772
if test $supports_anon_versioning = yes; then
6773
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6774
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6775
$echo "local: *; };" >> $output_objdir/$libname.ver~
6776
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6778
archive_expsym_cmds="$tmp_archive_cmds"
6787
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6788
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6796
if test "$ld_shlibs" = yes; then
6797
runpath_var=LD_RUN_PATH
6798
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6799
export_dynamic_flag_spec='${wl}--export-dynamic'
6800
# ancient GNU ld didn't support --whole-archive et. al.
6801
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6802
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6804
whole_archive_flag_spec=
6808
# PORTME fill in a description of your system's linker (not GNU ld)
6811
allow_undefined_flag=unsupported
6812
always_export_symbols=yes
6813
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6814
# Note: this linker hardcodes the directories in LIBPATH if there
6815
# are no directories specified by -L.
6816
hardcode_minus_L=yes
6817
if test "$GCC" = yes && test -z "$link_static_flag"; then
6818
# Neither direct hardcoding nor static linking is supported with a
6820
hardcode_direct=unsupported
6825
if test "$host_cpu" = ia64; then
6826
# On IA64, the linker does run time linking by default, so we don't
6827
# have to do anything special.
6828
aix_use_runtimelinking=no
6829
exp_sym_flag='-Bexport'
6832
# If we're using GNU nm, then we don't want the "-C" option.
6833
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6834
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6835
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6837
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6839
aix_use_runtimelinking=no
6841
# Test if we are trying to use run time linking or normal
6842
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6843
# need to do runtime linking.
6844
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6845
for ld_flag in $LDFLAGS; do
6846
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6847
aix_use_runtimelinking=yes
6853
exp_sym_flag='-bexport'
6854
no_entry_flag='-bnoentry'
6857
# When large executables or shared objects are built, AIX ld can
6858
# have problems creating the table of contents. If linking a library
6859
# or program results in "error TOC overflow" add -mminimal-toc to
6860
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6861
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6865
hardcode_libdir_separator=':'
6866
link_all_deplibs=yes
6868
if test "$GCC" = yes; then
6869
case $host_os in aix4.012|aix4.012.*)
6870
# We only want to do this on AIX 4.2 and lower, the check
6871
# below for broken collect2 doesn't work under 4.3+
6872
collect2name=`${CC} -print-prog-name=collect2`
6873
if test -f "$collect2name" && \
6874
strings "$collect2name" | grep resolve_lib_name >/dev/null
6876
# We have reworked collect2
6879
# We have old collect2
6880
hardcode_direct=unsupported
6881
# It fails to find uninstalled libraries when the uninstalled
6882
# path is not listed in the libpath. Setting hardcode_minus_L
6883
# to unsupported forces relinking
6884
hardcode_minus_L=yes
6885
hardcode_libdir_flag_spec='-L$libdir'
6886
hardcode_libdir_separator=
6889
shared_flag='-shared'
6892
if test "$host_cpu" = ia64; then
6893
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6894
# chokes on -Wl,-G. The following line is correct:
6897
if test "$aix_use_runtimelinking" = yes; then
6898
shared_flag='${wl}-G'
6900
shared_flag='${wl}-bM:SRE'
6905
# It seems that -bexpall does not export symbols beginning with
6906
# underscore (_), so it is better to generate a list of symbols to export.
6907
always_export_symbols=yes
6908
if test "$aix_use_runtimelinking" = yes; then
6909
# Warning - without using the other runtime loading flags (-brtl),
6910
# -berok will link without error, but may produce a broken library.
6911
allow_undefined_flag='-berok'
6912
# Determine the default libpath from the value encoded in an empty executable.
6913
cat >conftest.$ac_ext <<_ACEOF
6916
cat confdefs.h >>conftest.$ac_ext
6917
cat >>conftest.$ac_ext <<_ACEOF
6918
/* end confdefs.h. */
6928
rm -f conftest.$ac_objext conftest$ac_exeext
6929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930
(eval $ac_link) 2>conftest.er1
6932
grep -v '^ *+' conftest.er1 >conftest.err
6934
cat conftest.err >&5
6935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936
(exit $ac_status); } &&
6937
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942
(exit $ac_status); }; } &&
6943
{ ac_try='test -s conftest$ac_exeext'
6944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
(exit $ac_status); }; }; then
6950
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6952
# Check for a 64-bit object if we didn't find anything.
6953
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; }
6956
echo "$as_me: failed program was:" >&5
6957
sed 's/^/| /' conftest.$ac_ext >&5
6960
rm -f conftest.err conftest.$ac_objext \
6961
conftest$ac_exeext conftest.$ac_ext
6962
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6964
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6965
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6967
if test "$host_cpu" = ia64; then
6968
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6969
allow_undefined_flag="-z nodefs"
6970
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6972
# Determine the default libpath from the value encoded in an empty executable.
6973
cat >conftest.$ac_ext <<_ACEOF
6976
cat confdefs.h >>conftest.$ac_ext
6977
cat >>conftest.$ac_ext <<_ACEOF
6978
/* end confdefs.h. */
6988
rm -f conftest.$ac_objext conftest$ac_exeext
6989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990
(eval $ac_link) 2>conftest.er1
6992
grep -v '^ *+' conftest.er1 >conftest.err
6994
cat conftest.err >&5
6995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996
(exit $ac_status); } &&
6997
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002
(exit $ac_status); }; } &&
7003
{ ac_try='test -s conftest$ac_exeext'
7004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008
(exit $ac_status); }; }; then
7010
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7012
# Check for a 64-bit object if we didn't find anything.
7013
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; }
7016
echo "$as_me: failed program was:" >&5
7017
sed 's/^/| /' conftest.$ac_ext >&5
7020
rm -f conftest.err conftest.$ac_objext \
7021
conftest$ac_exeext conftest.$ac_ext
7022
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7024
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7025
# Warning - without using the other run time loading flags,
7026
# -berok will link without error, but may produce a broken library.
7027
no_undefined_flag=' ${wl}-bernotok'
7028
allow_undefined_flag=' ${wl}-berok'
7029
# -bexpall does not export symbols beginning with underscore (_)
7030
always_export_symbols=yes
7031
# Exported symbols can be pulled into shared objects from archives
7032
whole_archive_flag_spec=' '
7033
archive_cmds_need_lc=yes
7034
# This is similar to how AIX traditionally builds it's shared libraries.
7035
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7041
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7042
hardcode_libdir_flag_spec='-L$libdir'
7043
hardcode_minus_L=yes
7044
# see comment about different semantics on the GNU ld section
7049
export_dynamic_flag_spec=-rdynamic
7052
cygwin* | mingw* | pw32*)
7053
# When not using gcc, we currently assume that we are using
7054
# Microsoft Visual C++.
7055
# hardcode_libdir_flag_spec is actually meaningless, as there is
7056
# no search path for DLLs.
7057
hardcode_libdir_flag_spec=' '
7058
allow_undefined_flag=unsupported
7059
# Tell ltmain to make .lib files, not .a files.
7061
# Tell ltmain to make .dll files, not .so files.
7063
# FIXME: Setting linknames here is a bad hack.
7064
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7065
# The linker will automatically build a .lib file if we build a DLL.
7066
old_archive_From_new_cmds='true'
7067
# FIXME: Should let the user specify the lib program.
7068
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7069
fix_srcfile_path='`cygpath -w "$srcfile"`'
7070
enable_shared_with_static_runtimes=yes
7073
darwin* | rhapsody*)
7074
if test "$GXX" = yes ; then
7075
archive_cmds_need_lc=no
7077
rhapsody* | darwin1.[012])
7078
allow_undefined_flag='-undefined suppress'
7081
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7082
allow_undefined_flag='-flat_namespace -undefined suppress'
7084
case ${MACOSX_DEPLOYMENT_TARGET} in
7086
allow_undefined_flag='-flat_namespace -undefined suppress'
7089
allow_undefined_flag='-undefined dynamic_lookup'
7095
lt_int_apple_cc_single_mod=no
7096
output_verbose_link_cmd='echo'
7097
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7098
lt_int_apple_cc_single_mod=yes
7100
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7101
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7103
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7105
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7106
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7107
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7108
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7110
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7112
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7114
hardcode_automatic=yes
7115
hardcode_shlibpath_var=unsupported
7116
whole_archive_flag_spec='-all_load $convenience'
7117
link_all_deplibs=yes
7124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7125
hardcode_libdir_flag_spec='-L$libdir'
7126
hardcode_shlibpath_var=no
7133
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7134
# support. Future versions do this automatically, but an explicit c++rt0.o
7135
# does not break anything, and helps significantly (at the cost of a little
7138
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7139
hardcode_libdir_flag_spec='-R$libdir'
7141
hardcode_shlibpath_var=no
7144
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7146
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7148
hardcode_minus_L=yes
7149
hardcode_shlibpath_var=no
7152
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7153
freebsd* | kfreebsd*-gnu)
7154
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7155
hardcode_libdir_flag_spec='-R$libdir'
7157
hardcode_shlibpath_var=no
7161
if test "$GCC" = yes; then
7162
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7164
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7166
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7167
hardcode_libdir_separator=:
7170
# hardcode_minus_L: Not really in the search PATH,
7171
# but as the default location of the library.
7172
hardcode_minus_L=yes
7173
export_dynamic_flag_spec='${wl}-E'
7177
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7180
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7183
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7189
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7192
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7196
if test "$with_gnu_ld" = no; then
7199
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7200
hardcode_libdir_flag_spec_ld='+b $libdir'
7201
hardcode_libdir_separator=:
7203
hardcode_shlibpath_var=no
7206
hardcode_libdir_flag_spec='-L$libdir'
7208
hardcode_shlibpath_var=no
7210
# hardcode_minus_L: Not really in the search PATH,
7211
# but as the default location of the library.
7212
hardcode_minus_L=yes
7215
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7216
hardcode_libdir_separator=:
7218
export_dynamic_flag_spec='${wl}-E'
7220
# hardcode_minus_L: Not really in the search PATH,
7221
# but as the default location of the library.
7222
hardcode_minus_L=yes
7228
irix5* | irix6* | nonstopux*)
7229
if test "$GCC" = yes; then
7230
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7232
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7233
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7235
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7236
hardcode_libdir_separator=:
7237
link_all_deplibs=yes
7240
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7241
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7242
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7244
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7246
hardcode_libdir_flag_spec='-R$libdir'
7248
hardcode_shlibpath_var=no
7252
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255
hardcode_libdir_separator=:
7256
hardcode_shlibpath_var=no
7261
hardcode_shlibpath_var=no
7262
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7263
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7264
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7265
export_dynamic_flag_spec='${wl}-E'
7268
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7269
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7270
hardcode_libdir_flag_spec='-R$libdir'
7273
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7274
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7281
hardcode_libdir_flag_spec='-L$libdir'
7282
hardcode_minus_L=yes
7283
allow_undefined_flag=unsupported
7284
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7285
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7289
if test "$GCC" = yes; then
7290
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7291
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7293
allow_undefined_flag=' -expect_unresolved \*'
7294
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7296
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7297
hardcode_libdir_separator=:
7300
osf4* | osf5*) # as osf3* with the addition of -msym flag
7301
if test "$GCC" = yes; then
7302
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7303
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7304
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7306
allow_undefined_flag=' -expect_unresolved \*'
7307
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7308
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7309
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7311
# Both c and cxx compiler support -rpath directly
7312
hardcode_libdir_flag_spec='-rpath $libdir'
7314
hardcode_libdir_separator=:
7318
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319
hardcode_shlibpath_var=no
7320
export_dynamic_flag_spec='${wl}-Bexport'
7321
runpath_var=LD_RUN_PATH
7322
hardcode_runpath_var=yes
7326
no_undefined_flag=' -z text'
7327
if test "$GCC" = yes; then
7328
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7329
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7330
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7332
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7334
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7336
hardcode_libdir_flag_spec='-R$libdir'
7337
hardcode_shlibpath_var=no
7339
solaris2.[0-5] | solaris2.[0-5].*) ;;
7340
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7341
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7343
link_all_deplibs=yes
7347
if test "x$host_vendor" = xsequent; then
7348
# Use $CC to link under sequent, because it throws in some extra .o
7349
# files that make .init and .fini sections work.
7350
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7352
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7354
hardcode_libdir_flag_spec='-L$libdir'
7356
hardcode_minus_L=yes
7357
hardcode_shlibpath_var=no
7361
case $host_vendor in
7363
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364
hardcode_direct=yes # is this really true???
7367
## LD is ld it makes a PLAMLIB
7368
## CC just makes a GrossModule.
7369
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7370
reload_cmds='$CC -r -o $output$reload_objs'
7374
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7378
runpath_var='LD_RUN_PATH'
7379
hardcode_shlibpath_var=no
7383
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384
hardcode_shlibpath_var=no
7385
export_dynamic_flag_spec='-Bexport'
7389
if test -d /usr/nec; then
7390
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391
hardcode_shlibpath_var=no
7392
runpath_var=LD_RUN_PATH
7393
hardcode_runpath_var=yes
7399
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7402
hardcode_shlibpath_var=no
7403
hardcode_runpath_var=yes
7404
runpath_var=LD_RUN_PATH
7407
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7408
no_undefined_flag='${wl}-z ${wl}text'
7409
if test "$GCC" = yes; then
7410
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7412
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414
runpath_var='LD_RUN_PATH'
7415
hardcode_shlibpath_var=no
7419
no_undefined_flag=' -z text'
7420
# $CC -shared without GNU ld will not create a library from C++
7421
# object files and a static libstdc++, better avoid it by now
7422
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7424
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7425
hardcode_libdir_flag_spec=
7426
hardcode_shlibpath_var=no
7427
runpath_var='LD_RUN_PATH'
7431
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7432
hardcode_libdir_flag_spec='-L$libdir'
7433
hardcode_shlibpath_var=no
7442
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7443
echo "${ECHO_T}$ld_shlibs" >&6
7444
test "$ld_shlibs" = no && can_build_shared=no
7446
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7447
if test "$GCC" = yes; then
7448
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7452
# Do we need to explicitly link libc?
7454
case "x$archive_cmds_need_lc" in
7456
# Assume -lc should be added
7457
archive_cmds_need_lc=yes
7459
if test "$enable_shared" = yes && test "$GCC" = yes; then
7460
case $archive_cmds in
7462
# FIXME: we may have to deal with multi-command sequences.
7465
# Test whether the compiler implicitly links with -lc since on some
7466
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7467
# to ld, don't add -lc before -lgcc.
7468
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7469
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7471
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474
(eval $ac_compile) 2>&5
7476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477
(exit $ac_status); } 2>conftest.err; then
7480
libobjs=conftest.$ac_objext
7482
wl=$lt_prog_compiler_wl
7488
lt_save_allow_undefined_flag=$allow_undefined_flag
7489
allow_undefined_flag=
7490
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7491
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494
(exit $ac_status); }
7496
archive_cmds_need_lc=no
7498
archive_cmds_need_lc=yes
7500
allow_undefined_flag=$lt_save_allow_undefined_flag
7502
cat conftest.err 1>&5
7505
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7506
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7513
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7514
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7516
libname_spec='lib$name'
7524
shlibpath_overrides_runpath=unknown
7526
dynamic_linker="$host_os ld.so"
7527
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7528
if test "$GCC" = yes; then
7529
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7530
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7531
# if the path contains ";" then we assume it to be the separator
7532
# otherwise default to the standard path separator (i.e. ":") - it is
7533
# assumed that no part of a normal pathname contains ";" but that should
7534
# okay in the real world where ";" in dirpaths is itself problematic.
7535
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7537
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7540
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7542
need_lib_prefix=unknown
7543
hardcode_into_libs=no
7545
# when you set need_version to no, make sure it does not cause -set_version
7546
# flags to be left without arguments
7547
need_version=unknown
7552
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7553
shlibpath_var=LIBPATH
7555
# AIX 3 has no versioning support, so we append a major version to the name.
7556
soname_spec='${libname}${release}${shared_ext}$major'
7563
hardcode_into_libs=yes
7564
if test "$host_cpu" = ia64; then
7565
# AIX 5 supports IA64
7566
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7567
shlibpath_var=LD_LIBRARY_PATH
7569
# With GCC up to 2.95.x, collect2 would create an import file
7570
# for dependence libraries. The import file would start with
7571
# the line `#! .'. This would cause the generated library to
7572
# depend on `.', always an invalid library. This was fixed in
7573
# development snapshots of GCC prior to 3.0.
7575
aix4 | aix4.[01] | aix4.[01].*)
7576
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7578
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7585
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7586
# soname into executable. Probably we can add versioning support to
7587
# collect2, so additional links can be useful in future.
7588
if test "$aix_use_runtimelinking" = yes; then
7589
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7590
# instead of lib<name>.a to let people know that these are not
7591
# typical AIX shared libraries.
7592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7594
# We preserve .a as extension for shared libraries through AIX4.2
7595
# and later when we are not doing run time linking.
7596
library_names_spec='${libname}${release}.a $libname.a'
7597
soname_spec='${libname}${release}${shared_ext}$major'
7599
shlibpath_var=LIBPATH
7604
library_names_spec='$libname.ixlibrary $libname.a'
7605
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7606
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'
7610
library_names_spec='${libname}${shared_ext}'
7611
dynamic_linker="$host_os ld.so"
7612
shlibpath_var=LIBRARY_PATH
7618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619
soname_spec='${libname}${release}${shared_ext}$major'
7620
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7621
shlibpath_var=LD_LIBRARY_PATH
7622
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7623
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7624
# the default ld.so.conf also contains /usr/contrib/lib and
7625
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7626
# libtool to hard-code these into programs
7629
cygwin* | mingw* | pw32*)
7630
version_type=windows
7635
case $GCC,$host_os in
7636
yes,cygwin* | yes,mingw* | yes,pw32*)
7637
library_names_spec='$libname.dll.a'
7638
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7639
postinstall_cmds='base_file=`basename \${file}`~
7640
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7641
dldir=$destdir/`dirname \$dlpath`~
7642
test -d \$dldir || mkdir -p \$dldir~
7643
$install_prog $dir/$dlname \$dldir/$dlname'
7644
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7645
dlpath=$dir/\$dldll~
7647
shlibpath_overrides_runpath=yes
7651
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7652
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7653
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7656
# MinGW DLLs use traditional 'lib' prefix
7657
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7658
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7659
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7660
# It is most probably a Windows format PATH printed by
7661
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7662
# path with ; separators, and with drive letters. We can handle the
7663
# drive letters (cygwin fileutils understands them), so leave them,
7664
# especially as we might pass files found there to a mingw objdump,
7665
# which wouldn't understand a cygwinified path. Ahh.
7666
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7668
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7672
# pw32 DLLs use 'pw' prefix rather than 'lib'
7673
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7679
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7682
dynamic_linker='Win32 ld.exe'
7683
# FIXME: first we should search . and the directory the executable is in
7687
darwin* | rhapsody*)
7688
dynamic_linker="$host_os dyld"
7692
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7693
soname_spec='${libname}${release}${major}$shared_ext'
7694
shlibpath_overrides_runpath=yes
7695
shlibpath_var=DYLD_LIBRARY_PATH
7696
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7697
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7698
if test "$GCC" = yes; then
7699
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"`
7701
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7703
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7711
soname_spec='${libname}${release}${shared_ext}$major'
7712
shlibpath_var=LD_LIBRARY_PATH
7723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7724
soname_spec='${libname}${release}${shared_ext}$major'
7725
shlibpath_var=LD_LIBRARY_PATH
7726
shlibpath_overrides_runpath=no
7727
hardcode_into_libs=yes
7728
dynamic_linker='GNU ld.so'
7732
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7733
version_type=freebsd-$objformat
7734
case $version_type in
7736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7741
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7745
shlibpath_var=LD_LIBRARY_PATH
7748
shlibpath_overrides_runpath=yes
7750
freebsd3.01* | freebsdelf3.01*)
7751
shlibpath_overrides_runpath=yes
7752
hardcode_into_libs=yes
7755
shlibpath_overrides_runpath=no
7756
hardcode_into_libs=yes
7765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7766
soname_spec='${libname}${release}${shared_ext}$major'
7767
shlibpath_var=LD_LIBRARY_PATH
7768
hardcode_into_libs=yes
7771
hpux9* | hpux10* | hpux11*)
7772
# Give a soname corresponding to the major version so that dld.sl refuses to
7773
# link against other versions.
7780
hardcode_into_libs=yes
7781
dynamic_linker="$host_os dld.so"
7782
shlibpath_var=LD_LIBRARY_PATH
7783
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785
soname_spec='${libname}${release}${shared_ext}$major'
7786
if test "X$HPUX_IA64_MODE" = X32; then
7787
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7789
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7791
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7795
hardcode_into_libs=yes
7796
dynamic_linker="$host_os dld.sl"
7797
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7798
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800
soname_spec='${libname}${release}${shared_ext}$major'
7801
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7802
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7806
dynamic_linker="$host_os dld.sl"
7807
shlibpath_var=SHLIB_PATH
7808
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810
soname_spec='${libname}${release}${shared_ext}$major'
7813
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7814
postinstall_cmds='chmod 555 $lib'
7817
irix5* | irix6* | nonstopux*)
7819
nonstopux*) version_type=nonstopux ;;
7821
if test "$lt_cv_prog_gnu_ld" = yes; then
7829
soname_spec='${libname}${release}${shared_ext}$major'
7830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7832
irix5* | nonstopux*)
7836
case $LD in # libtool.m4 will add one of these switches to LD
7837
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7838
libsuff= shlibsuff= libmagic=32-bit;;
7839
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7840
libsuff=32 shlibsuff=N32 libmagic=N32;;
7841
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7842
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7843
*) libsuff= shlibsuff= libmagic=never-match;;
7847
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7848
shlibpath_overrides_runpath=no
7849
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7850
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7851
hardcode_into_libs=yes
7854
# No shared lib support for Linux oldld, aout, or coff.
7855
linux*oldld* | linux*aout* | linux*coff*)
7859
# This must be Linux ELF.
7864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865
soname_spec='${libname}${release}${shared_ext}$major'
7866
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7867
shlibpath_var=LD_LIBRARY_PATH
7868
shlibpath_overrides_runpath=no
7869
# This implies no fast_install, which is unacceptable.
7870
# Some rework will be needed to allow for fast_install
7871
# before this can be enabled.
7872
hardcode_into_libs=yes
7874
# Append ld.so.conf contents to the search path
7875
if test -f /etc/ld.so.conf; then
7876
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7877
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7880
# We used to test for /lib/ld.so.1 and disable shared libraries on
7881
# powerpc, because MkLinux only supported shared libraries with the
7882
# GNU dynamic linker. Since this was broken with cross compilers,
7883
# most powerpc-linux boxes support dynamic linking these days and
7884
# people can always --disable-shared, the test was removed, and we
7885
# assume the GNU/Linux dynamic linker is in use.
7886
dynamic_linker='GNU/Linux ld.so'
7893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7894
soname_spec='${libname}${release}${shared_ext}$major'
7895
shlibpath_var=LD_LIBRARY_PATH
7896
shlibpath_overrides_runpath=no
7897
hardcode_into_libs=yes
7898
dynamic_linker='NetBSD ld.elf_so'
7905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7906
soname_spec='${libname}${release}${shared_ext}$major'
7907
shlibpath_var=LD_LIBRARY_PATH
7908
shlibpath_overrides_runpath=no
7909
hardcode_into_libs=yes
7910
dynamic_linker='GNU ld.so'
7917
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7919
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7920
dynamic_linker='NetBSD (a.out) ld.so'
7922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7923
soname_spec='${libname}${release}${shared_ext}$major'
7924
dynamic_linker='NetBSD ld.elf_so'
7926
shlibpath_var=LD_LIBRARY_PATH
7927
shlibpath_overrides_runpath=yes
7928
hardcode_into_libs=yes
7933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934
shlibpath_var=LD_LIBRARY_PATH
7935
shlibpath_overrides_runpath=yes
7942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7943
soname_spec='${libname}${release}${shared_ext}$major'
7944
shlibpath_var=LD_LIBRARY_PATH
7945
shlibpath_overrides_runpath=yes
7952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7953
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7954
shlibpath_var=LD_LIBRARY_PATH
7955
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7957
openbsd2.[89] | openbsd2.[89].*)
7958
shlibpath_overrides_runpath=no
7961
shlibpath_overrides_runpath=yes
7965
shlibpath_overrides_runpath=yes
7970
libname_spec='$name'
7973
library_names_spec='$libname${shared_ext} $libname.a'
7974
dynamic_linker='OS/2 ld.exe'
7975
shlibpath_var=LIBPATH
7978
osf3* | osf4* | osf5*)
7982
soname_spec='${libname}${release}${shared_ext}$major'
7983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7984
shlibpath_var=LD_LIBRARY_PATH
7985
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7986
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7991
soname_spec='${libname}${release}${shared_ext}$major'
7992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7993
shlibpath_var=LD_LIBRARY_PATH
8000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001
soname_spec='${libname}${release}${shared_ext}$major'
8002
shlibpath_var=LD_LIBRARY_PATH
8003
shlibpath_overrides_runpath=yes
8004
hardcode_into_libs=yes
8005
# ldd complains unless libraries are executable
8006
postinstall_cmds='chmod +x $lib'
8011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8012
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8013
shlibpath_var=LD_LIBRARY_PATH
8014
shlibpath_overrides_runpath=yes
8015
if test "$with_gnu_ld" = yes; then
8021
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024
soname_spec='${libname}${release}${shared_ext}$major'
8025
shlibpath_var=LD_LIBRARY_PATH
8026
case $host_vendor in
8028
shlibpath_overrides_runpath=no
8030
export_dynamic_flag_spec='${wl}-Blargedynsym'
8031
runpath_var=LD_RUN_PATH
8039
shlibpath_overrides_runpath=no
8040
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8046
if test -d /usr/nec ;then
8048
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8049
soname_spec='$libname${shared_ext}.$major'
8050
shlibpath_var=LD_LIBRARY_PATH
8056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057
soname_spec='${libname}${release}${shared_ext}$major'
8058
shlibpath_var=LD_LIBRARY_PATH
8065
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8066
echo "${ECHO_T}$dynamic_linker" >&6
8067
test "$dynamic_linker" = no && can_build_shared=no
8069
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8070
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8072
if test -n "$hardcode_libdir_flag_spec" || \
8073
test -n "$runpath_var " || \
8074
test "X$hardcode_automatic"="Xyes" ; then
8076
# We can hardcode non-existant directories.
8077
if test "$hardcode_direct" != no &&
8078
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8079
# have to relink, otherwise we might link with an installed library
8080
# when we should be linking with a yet-to-be-installed one
8081
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8082
test "$hardcode_minus_L" != no; then
8083
# Linking always hardcodes the temporary library directory.
8084
hardcode_action=relink
8086
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8087
hardcode_action=immediate
8090
# We cannot hardcode anything, or else we can only hardcode existing
8092
hardcode_action=unsupported
8094
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8095
echo "${ECHO_T}$hardcode_action" >&6
8097
if test "$hardcode_action" = relink; then
8098
# Fast installation is not supported
8099
enable_fast_install=no
8100
elif test "$shlibpath_overrides_runpath" = yes ||
8101
test "$enable_shared" = no; then
8102
# Fast installation is not necessary
8103
enable_fast_install=needless
8108
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8109
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8110
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8111
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8112
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8113
echo "$as_me:$LINENO: result: yes" >&5
8114
echo "${ECHO_T}yes" >&6
8116
# FIXME - insert some real tests, host_os isn't really good enough
8119
if test -n "$STRIP" ; then
8120
striplib="$STRIP -x"
8121
echo "$as_me:$LINENO: result: yes" >&5
8122
echo "${ECHO_T}yes" >&6
8124
echo "$as_me:$LINENO: result: no" >&5
8125
echo "${ECHO_T}no" >&6
8129
echo "$as_me:$LINENO: result: no" >&5
8130
echo "${ECHO_T}no" >&6
8135
if test "x$enable_dlopen" != xyes; then
8136
enable_dlopen=unknown
8137
enable_dlopen_self=unknown
8138
enable_dlopen_self_static=unknown
8145
lt_cv_dlopen="load_add_on"
8147
lt_cv_dlopen_self=yes
8151
lt_cv_dlopen="LoadLibrary"
8156
lt_cv_dlopen="dlopen"
8161
# if libdl is installed we need to link against it
8162
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8163
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8164
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8165
echo $ECHO_N "(cached) $ECHO_C" >&6
8167
ac_check_lib_save_LIBS=$LIBS
8169
cat >conftest.$ac_ext <<_ACEOF
8172
cat confdefs.h >>conftest.$ac_ext
8173
cat >>conftest.$ac_ext <<_ACEOF
8174
/* end confdefs.h. */
8176
/* Override any gcc2 internal prototype to avoid an error. */
8180
/* We use char because int might match the return type of a gcc2
8181
builtin and then its argument prototype would still apply. */
8191
rm -f conftest.$ac_objext conftest$ac_exeext
8192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8193
(eval $ac_link) 2>conftest.er1
8195
grep -v '^ *+' conftest.er1 >conftest.err
8197
cat conftest.err >&5
8198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199
(exit $ac_status); } &&
8200
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205
(exit $ac_status); }; } &&
8206
{ ac_try='test -s conftest$ac_exeext'
8207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211
(exit $ac_status); }; }; then
8212
ac_cv_lib_dl_dlopen=yes
8214
echo "$as_me: failed program was:" >&5
8215
sed 's/^/| /' conftest.$ac_ext >&5
8217
ac_cv_lib_dl_dlopen=no
8219
rm -f conftest.err conftest.$ac_objext \
8220
conftest$ac_exeext conftest.$ac_ext
8221
LIBS=$ac_check_lib_save_LIBS
8223
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8224
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8225
if test $ac_cv_lib_dl_dlopen = yes; then
8226
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8231
lt_cv_dlopen_self=yes
8238
echo "$as_me:$LINENO: checking for shl_load" >&5
8239
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8240
if test "${ac_cv_func_shl_load+set}" = set; then
8241
echo $ECHO_N "(cached) $ECHO_C" >&6
8243
cat >conftest.$ac_ext <<_ACEOF
8246
cat confdefs.h >>conftest.$ac_ext
8247
cat >>conftest.$ac_ext <<_ACEOF
8248
/* end confdefs.h. */
8249
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8250
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8251
#define shl_load innocuous_shl_load
8253
/* System header to define __stub macros and hopefully few prototypes,
8254
which can conflict with char shl_load (); below.
8255
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8256
<limits.h> exists even on freestanding compilers. */
8259
# include <limits.h>
8261
# include <assert.h>
8266
/* Override any gcc2 internal prototype to avoid an error. */
8271
/* We use char because int might match the return type of a gcc2
8272
builtin and then its argument prototype would still apply. */
8274
/* The GNU C library defines this for functions which it implements
8275
to always fail with ENOSYS. Some functions are actually named
8276
something starting with __ and the normal name is an alias. */
8277
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8280
char (*f) () = shl_load;
8289
return f != shl_load;
8294
rm -f conftest.$ac_objext conftest$ac_exeext
8295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296
(eval $ac_link) 2>conftest.er1
8298
grep -v '^ *+' conftest.er1 >conftest.err
8300
cat conftest.err >&5
8301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302
(exit $ac_status); } &&
8303
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308
(exit $ac_status); }; } &&
8309
{ ac_try='test -s conftest$ac_exeext'
8310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314
(exit $ac_status); }; }; then
8315
ac_cv_func_shl_load=yes
8317
echo "$as_me: failed program was:" >&5
8318
sed 's/^/| /' conftest.$ac_ext >&5
8320
ac_cv_func_shl_load=no
8322
rm -f conftest.err conftest.$ac_objext \
8323
conftest$ac_exeext conftest.$ac_ext
8325
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8326
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8327
if test $ac_cv_func_shl_load = yes; then
8328
lt_cv_dlopen="shl_load"
8330
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8331
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8332
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8333
echo $ECHO_N "(cached) $ECHO_C" >&6
8335
ac_check_lib_save_LIBS=$LIBS
8337
cat >conftest.$ac_ext <<_ACEOF
8340
cat confdefs.h >>conftest.$ac_ext
8341
cat >>conftest.$ac_ext <<_ACEOF
8342
/* end confdefs.h. */
8344
/* Override any gcc2 internal prototype to avoid an error. */
8348
/* We use char because int might match the return type of a gcc2
8349
builtin and then its argument prototype would still apply. */
8359
rm -f conftest.$ac_objext conftest$ac_exeext
8360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361
(eval $ac_link) 2>conftest.er1
8363
grep -v '^ *+' conftest.er1 >conftest.err
8365
cat conftest.err >&5
8366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367
(exit $ac_status); } &&
8368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373
(exit $ac_status); }; } &&
8374
{ ac_try='test -s conftest$ac_exeext'
8375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379
(exit $ac_status); }; }; then
8380
ac_cv_lib_dld_shl_load=yes
8382
echo "$as_me: failed program was:" >&5
8383
sed 's/^/| /' conftest.$ac_ext >&5
8385
ac_cv_lib_dld_shl_load=no
8387
rm -f conftest.err conftest.$ac_objext \
8388
conftest$ac_exeext conftest.$ac_ext
8389
LIBS=$ac_check_lib_save_LIBS
8391
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8392
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8393
if test $ac_cv_lib_dld_shl_load = yes; then
8394
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8396
echo "$as_me:$LINENO: checking for dlopen" >&5
8397
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8398
if test "${ac_cv_func_dlopen+set}" = set; then
8399
echo $ECHO_N "(cached) $ECHO_C" >&6
8401
cat >conftest.$ac_ext <<_ACEOF
8404
cat confdefs.h >>conftest.$ac_ext
8405
cat >>conftest.$ac_ext <<_ACEOF
8406
/* end confdefs.h. */
8407
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8408
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8409
#define dlopen innocuous_dlopen
8411
/* System header to define __stub macros and hopefully few prototypes,
8412
which can conflict with char dlopen (); below.
8413
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8414
<limits.h> exists even on freestanding compilers. */
8417
# include <limits.h>
8419
# include <assert.h>
8424
/* Override any gcc2 internal prototype to avoid an error. */
8429
/* We use char because int might match the return type of a gcc2
8430
builtin and then its argument prototype would still apply. */
8432
/* The GNU C library defines this for functions which it implements
8433
to always fail with ENOSYS. Some functions are actually named
8434
something starting with __ and the normal name is an alias. */
8435
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8438
char (*f) () = dlopen;
8452
rm -f conftest.$ac_objext conftest$ac_exeext
8453
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454
(eval $ac_link) 2>conftest.er1
8456
grep -v '^ *+' conftest.er1 >conftest.err
8458
cat conftest.err >&5
8459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460
(exit $ac_status); } &&
8461
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466
(exit $ac_status); }; } &&
8467
{ ac_try='test -s conftest$ac_exeext'
8468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472
(exit $ac_status); }; }; then
8473
ac_cv_func_dlopen=yes
8475
echo "$as_me: failed program was:" >&5
8476
sed 's/^/| /' conftest.$ac_ext >&5
8478
ac_cv_func_dlopen=no
8480
rm -f conftest.err conftest.$ac_objext \
8481
conftest$ac_exeext conftest.$ac_ext
8483
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8484
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8485
if test $ac_cv_func_dlopen = yes; then
8486
lt_cv_dlopen="dlopen"
8488
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8489
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8490
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8491
echo $ECHO_N "(cached) $ECHO_C" >&6
8493
ac_check_lib_save_LIBS=$LIBS
8495
cat >conftest.$ac_ext <<_ACEOF
8498
cat confdefs.h >>conftest.$ac_ext
8499
cat >>conftest.$ac_ext <<_ACEOF
8500
/* end confdefs.h. */
8502
/* Override any gcc2 internal prototype to avoid an error. */
8506
/* We use char because int might match the return type of a gcc2
8507
builtin and then its argument prototype would still apply. */
8517
rm -f conftest.$ac_objext conftest$ac_exeext
8518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519
(eval $ac_link) 2>conftest.er1
8521
grep -v '^ *+' conftest.er1 >conftest.err
8523
cat conftest.err >&5
8524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
(exit $ac_status); } &&
8526
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531
(exit $ac_status); }; } &&
8532
{ ac_try='test -s conftest$ac_exeext'
8533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537
(exit $ac_status); }; }; then
8538
ac_cv_lib_dl_dlopen=yes
8540
echo "$as_me: failed program was:" >&5
8541
sed 's/^/| /' conftest.$ac_ext >&5
8543
ac_cv_lib_dl_dlopen=no
8545
rm -f conftest.err conftest.$ac_objext \
8546
conftest$ac_exeext conftest.$ac_ext
8547
LIBS=$ac_check_lib_save_LIBS
8549
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8550
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8551
if test $ac_cv_lib_dl_dlopen = yes; then
8552
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8554
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8555
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8556
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8557
echo $ECHO_N "(cached) $ECHO_C" >&6
8559
ac_check_lib_save_LIBS=$LIBS
8561
cat >conftest.$ac_ext <<_ACEOF
8564
cat confdefs.h >>conftest.$ac_ext
8565
cat >>conftest.$ac_ext <<_ACEOF
8566
/* end confdefs.h. */
8568
/* Override any gcc2 internal prototype to avoid an error. */
8572
/* We use char because int might match the return type of a gcc2
8573
builtin and then its argument prototype would still apply. */
8583
rm -f conftest.$ac_objext conftest$ac_exeext
8584
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585
(eval $ac_link) 2>conftest.er1
8587
grep -v '^ *+' conftest.er1 >conftest.err
8589
cat conftest.err >&5
8590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591
(exit $ac_status); } &&
8592
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597
(exit $ac_status); }; } &&
8598
{ ac_try='test -s conftest$ac_exeext'
8599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603
(exit $ac_status); }; }; then
8604
ac_cv_lib_svld_dlopen=yes
8606
echo "$as_me: failed program was:" >&5
8607
sed 's/^/| /' conftest.$ac_ext >&5
8609
ac_cv_lib_svld_dlopen=no
8611
rm -f conftest.err conftest.$ac_objext \
8612
conftest$ac_exeext conftest.$ac_ext
8613
LIBS=$ac_check_lib_save_LIBS
8615
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8616
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8617
if test $ac_cv_lib_svld_dlopen = yes; then
8618
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8620
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8621
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8622
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8623
echo $ECHO_N "(cached) $ECHO_C" >&6
8625
ac_check_lib_save_LIBS=$LIBS
8627
cat >conftest.$ac_ext <<_ACEOF
8630
cat confdefs.h >>conftest.$ac_ext
8631
cat >>conftest.$ac_ext <<_ACEOF
8632
/* end confdefs.h. */
8634
/* Override any gcc2 internal prototype to avoid an error. */
8638
/* We use char because int might match the return type of a gcc2
8639
builtin and then its argument prototype would still apply. */
8649
rm -f conftest.$ac_objext conftest$ac_exeext
8650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651
(eval $ac_link) 2>conftest.er1
8653
grep -v '^ *+' conftest.er1 >conftest.err
8655
cat conftest.err >&5
8656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
(exit $ac_status); } &&
8658
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663
(exit $ac_status); }; } &&
8664
{ ac_try='test -s conftest$ac_exeext'
8665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669
(exit $ac_status); }; }; then
8670
ac_cv_lib_dld_dld_link=yes
8672
echo "$as_me: failed program was:" >&5
8673
sed 's/^/| /' conftest.$ac_ext >&5
8675
ac_cv_lib_dld_dld_link=no
8677
rm -f conftest.err conftest.$ac_objext \
8678
conftest$ac_exeext conftest.$ac_ext
8679
LIBS=$ac_check_lib_save_LIBS
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8682
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8683
if test $ac_cv_lib_dld_dld_link = yes; then
8684
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8705
if test "x$lt_cv_dlopen" != xno; then
8711
case $lt_cv_dlopen in
8713
save_CPPFLAGS="$CPPFLAGS"
8714
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8716
save_LDFLAGS="$LDFLAGS"
8717
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8720
LIBS="$lt_cv_dlopen_libs $LIBS"
8722
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8723
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8724
if test "${lt_cv_dlopen_self+set}" = set; then
8725
echo $ECHO_N "(cached) $ECHO_C" >&6
8727
if test "$cross_compiling" = yes; then :
8728
lt_cv_dlopen_self=cross
8730
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8731
lt_status=$lt_dlunknown
8732
cat > conftest.$ac_ext <<EOF
8733
#line 8733 "configure"
8734
#include "confdefs.h"
8743
# define LT_DLGLOBAL RTLD_GLOBAL
8746
# define LT_DLGLOBAL DL_GLOBAL
8748
# define LT_DLGLOBAL 0
8752
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8753
find out it does not work in some platform. */
8754
#ifndef LT_DLLAZY_OR_NOW
8756
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8759
# define LT_DLLAZY_OR_NOW DL_LAZY
8762
# define LT_DLLAZY_OR_NOW RTLD_NOW
8765
# define LT_DLLAZY_OR_NOW DL_NOW
8767
# define LT_DLLAZY_OR_NOW 0
8775
extern "C" void exit (int);
8778
void fnord() { int i=42;}
8781
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8782
int status = $lt_dlunknown;
8786
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8787
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8788
/* dlclose (self); */
8794
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795
(eval $ac_link) 2>&5
8797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8799
(./conftest; exit; ) 2>/dev/null
8802
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8803
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8804
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8807
# compilation failed
8808
lt_cv_dlopen_self=no
8815
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8816
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8818
if test "x$lt_cv_dlopen_self" = xyes; then
8819
LDFLAGS="$LDFLAGS $link_static_flag"
8820
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8821
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8822
if test "${lt_cv_dlopen_self_static+set}" = set; then
8823
echo $ECHO_N "(cached) $ECHO_C" >&6
8825
if test "$cross_compiling" = yes; then :
8826
lt_cv_dlopen_self_static=cross
8828
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8829
lt_status=$lt_dlunknown
8830
cat > conftest.$ac_ext <<EOF
8831
#line 8831 "configure"
8832
#include "confdefs.h"
8841
# define LT_DLGLOBAL RTLD_GLOBAL
8844
# define LT_DLGLOBAL DL_GLOBAL
8846
# define LT_DLGLOBAL 0
8850
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8851
find out it does not work in some platform. */
8852
#ifndef LT_DLLAZY_OR_NOW
8854
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8857
# define LT_DLLAZY_OR_NOW DL_LAZY
8860
# define LT_DLLAZY_OR_NOW RTLD_NOW
8863
# define LT_DLLAZY_OR_NOW DL_NOW
8865
# define LT_DLLAZY_OR_NOW 0
8873
extern "C" void exit (int);
8876
void fnord() { int i=42;}
8879
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8880
int status = $lt_dlunknown;
8884
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8885
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8886
/* dlclose (self); */
8892
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893
(eval $ac_link) 2>&5
8895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8897
(./conftest; exit; ) 2>/dev/null
8900
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8901
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8902
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8905
# compilation failed
8906
lt_cv_dlopen_self_static=no
8913
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8914
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8917
CPPFLAGS="$save_CPPFLAGS"
8918
LDFLAGS="$save_LDFLAGS"
8923
case $lt_cv_dlopen_self in
8924
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8925
*) enable_dlopen_self=unknown ;;
8928
case $lt_cv_dlopen_self_static in
8929
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8930
*) enable_dlopen_self_static=unknown ;;
8935
# Report which librarie types wil actually be built
8936
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8937
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8938
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8939
echo "${ECHO_T}$can_build_shared" >&6
8941
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8942
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8943
test "$can_build_shared" = "no" && enable_shared=no
8945
# On AIX, shared libraries and static libraries use the same namespace, and
8946
# are all built from PIC.
8949
test "$enable_shared" = yes && enable_static=no
8950
if test -n "$RANLIB"; then
8951
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8952
postinstall_cmds='$RANLIB $lib'
8957
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8958
test "$enable_shared" = yes && enable_static=no
8961
darwin* | rhapsody*)
8962
if test "$GCC" = yes; then
8963
archive_cmds_need_lc=no
8965
rhapsody* | darwin1.[012])
8966
allow_undefined_flag='-undefined suppress'
8969
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8970
allow_undefined_flag='-flat_namespace -undefined suppress'
8972
case ${MACOSX_DEPLOYMENT_TARGET} in
8974
allow_undefined_flag='-flat_namespace -undefined suppress'
8977
allow_undefined_flag='-undefined dynamic_lookup'
8983
output_verbose_link_cmd='echo'
8984
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8985
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8986
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8987
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8988
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8990
hardcode_automatic=yes
8991
hardcode_shlibpath_var=unsupported
8992
whole_archive_flag_spec='-all_load $convenience'
8993
link_all_deplibs=yes
8999
echo "$as_me:$LINENO: result: $enable_shared" >&5
9000
echo "${ECHO_T}$enable_shared" >&6
9002
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9003
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9004
# Make sure either enable_shared or enable_static is yes.
9005
test "$enable_shared" = yes || enable_static=yes
9006
echo "$as_me:$LINENO: result: $enable_static" >&5
9007
echo "${ECHO_T}$enable_static" >&6
9009
# The else clause should only fire when bootstrapping the
9010
# libtool distribution, otherwise you forgot to ship ltmain.sh
9011
# with your package, and you will get complaints that there are
9012
# no rules to generate ltmain.sh.
9013
if test -f "$ltmain"; then
9014
# See if we are running on zsh, and set the options which allow our commands through
9015
# without removal of \ escapes.
9016
if test -n "${ZSH_VERSION+set}" ; then
9017
setopt NO_GLOB_SUBST
9019
# Now quote all the things that may contain metacharacters while being
9020
# careful not to overquote the AC_SUBSTed values. We take copies of the
9021
# variables and quote the copies for generation of the libtool script.
9022
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9024
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9025
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9026
deplibs_check_method reload_flag reload_cmds need_locks \
9027
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9028
lt_cv_sys_global_symbol_to_c_name_address \
9029
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9030
old_postinstall_cmds old_postuninstall_cmds \
9034
lt_prog_compiler_wl \
9035
lt_prog_compiler_pic \
9036
lt_prog_compiler_static \
9037
lt_prog_compiler_no_builtin_flag \
9038
export_dynamic_flag_spec \
9039
thread_safe_flag_spec \
9040
whole_archive_flag_spec \
9041
enable_shared_with_static_runtimes \
9043
old_archive_from_new_cmds \
9048
compiler_lib_search_path \
9050
archive_expsym_cmds \
9052
postuninstall_cmds \
9053
old_archive_from_expsyms_cmds \
9054
allow_undefined_flag \
9056
export_symbols_cmds \
9057
hardcode_libdir_flag_spec \
9058
hardcode_libdir_flag_spec_ld \
9059
hardcode_libdir_separator \
9060
hardcode_automatic \
9062
module_expsym_cmds \
9063
lt_cv_prog_compiler_c_o \
9068
old_archive_cmds | \
9069
old_archive_from_new_cmds | \
9071
archive_expsym_cmds | \
9073
module_expsym_cmds | \
9074
old_archive_from_expsyms_cmds | \
9075
export_symbols_cmds | \
9076
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9077
postinstall_cmds | postuninstall_cmds | \
9078
old_postinstall_cmds | old_postuninstall_cmds | \
9079
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9080
# Double-quote double-evaled strings.
9081
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9084
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9090
*'\$0 --fallback-echo"')
9091
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9096
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9098
{ echo "$as_me:$LINENO: creating $ofile" >&5
9099
echo "$as_me: creating $ofile" >&6;}
9101
cat <<__EOF__ >> "$cfgfile"
9104
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9105
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9106
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9108
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9109
# Free Software Foundation, Inc.
9111
# This file is part of GNU Libtool:
9112
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9114
# This program is free software; you can redistribute it and/or modify
9115
# it under the terms of the GNU General Public License as published by
9116
# the Free Software Foundation; either version 2 of the License, or
9117
# (at your option) any later version.
9119
# This program is distributed in the hope that it will be useful, but
9120
# WITHOUT ANY WARRANTY; without even the implied warranty of
9121
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9122
# General Public License for more details.
9124
# You should have received a copy of the GNU General Public License
9125
# along with this program; if not, write to the Free Software
9126
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9128
# As a special exception to the GNU General Public License, if you
9129
# distribute this file as part of a program that contains a
9130
# configuration script generated by Autoconf, you may include it under
9131
# the same distribution terms that you use for the rest of that program.
9133
# A sed program that does not truncate output.
9136
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9137
Xsed="$SED -e s/^X//"
9139
# The HP-UX ksh and POSIX shell print the target directory to stdout
9141
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9143
# The names of the tagged configurations supported by this script.
9146
# ### BEGIN LIBTOOL CONFIG
9148
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9150
# Shell to use when invoking shell scripts.
9153
# Whether or not to build shared libraries.
9154
build_libtool_libs=$enable_shared
9156
# Whether or not to build static libraries.
9157
build_old_libs=$enable_static
9159
# Whether or not to add -lc for building shared libraries.
9160
build_libtool_need_lc=$archive_cmds_need_lc
9162
# Whether or not to disallow shared libs when runtime libs are static
9163
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9165
# Whether or not to optimize for fast installation.
9166
fast_install=$enable_fast_install
9169
host_alias=$host_alias
9172
# An echo program that does not interpret backslashes.
9177
AR_FLAGS=$lt_AR_FLAGS
9182
# A language-specific compiler.
9185
# Is the compiler the GNU C compiler?
9191
# The linker used to build libraries.
9194
# Whether we need hard or soft links.
9197
# A BSD-compatible nm program.
9200
# A symbol stripping program
9203
# Used to examine libraries when file_magic_cmd begins "file"
9204
MAGIC_CMD=$MAGIC_CMD
9206
# Used on cygwin: DLL creation program.
9209
# Used on cygwin: object dumper.
9212
# Used on cygwin: assembler.
9215
# The name of the directory that contains temporary libtool files.
9218
# How to create reloadable object files.
9219
reload_flag=$lt_reload_flag
9220
reload_cmds=$lt_reload_cmds
9222
# How to pass a linker flag through the compiler.
9223
wl=$lt_lt_prog_compiler_wl
9225
# Object file suffix (normally "o").
9228
# Old archive suffix (normally "a").
9231
# Shared library suffix (normally ".so").
9232
shrext_cmds='$shrext_cmds'
9234
# Executable file suffix (normally "").
9237
# Additional compiler flags for building library objects.
9238
pic_flag=$lt_lt_prog_compiler_pic
9241
# What is the maximum length of a command?
9242
max_cmd_len=$lt_cv_sys_max_cmd_len
9244
# Does compiler simultaneously support -c and -o options?
9245
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9247
# Must we lock files when doing compilation ?
9248
need_locks=$lt_need_locks
9250
# Do we need the lib prefix for modules?
9251
need_lib_prefix=$need_lib_prefix
9253
# Do we need a version for libraries?
9254
need_version=$need_version
9256
# Whether dlopen is supported.
9257
dlopen_support=$enable_dlopen
9259
# Whether dlopen of programs is supported.
9260
dlopen_self=$enable_dlopen_self
9262
# Whether dlopen of statically linked programs is supported.
9263
dlopen_self_static=$enable_dlopen_self_static
9265
# Compiler flag to prevent dynamic linking.
9266
link_static_flag=$lt_lt_prog_compiler_static
9268
# Compiler flag to turn off builtin functions.
9269
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9271
# Compiler flag to allow reflexive dlopens.
9272
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9274
# Compiler flag to generate shared objects directly from archives.
9275
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9277
# Compiler flag to generate thread-safe objects.
9278
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9280
# Library versioning type.
9281
version_type=$version_type
9283
# Format of library name prefix.
9284
libname_spec=$lt_libname_spec
9286
# List of archive names. First name is the real one, the rest are links.
9287
# The last name is the one that the linker finds with -lNAME.
9288
library_names_spec=$lt_library_names_spec
9290
# The coded name of the library, if different from the real name.
9291
soname_spec=$lt_soname_spec
9293
# Commands used to build and install an old-style archive.
9295
old_archive_cmds=$lt_old_archive_cmds
9296
old_postinstall_cmds=$lt_old_postinstall_cmds
9297
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9299
# Create an old-style archive from a shared archive.
9300
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9302
# Create a temporary old-style archive to link instead of a shared archive.
9303
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9305
# Commands used to build and install a shared archive.
9306
archive_cmds=$lt_archive_cmds
9307
archive_expsym_cmds=$lt_archive_expsym_cmds
9308
postinstall_cmds=$lt_postinstall_cmds
9309
postuninstall_cmds=$lt_postuninstall_cmds
9311
# Commands used to build a loadable module (assumed same as above if empty)
9312
module_cmds=$lt_module_cmds
9313
module_expsym_cmds=$lt_module_expsym_cmds
9315
# Commands to strip libraries.
9316
old_striplib=$lt_old_striplib
9317
striplib=$lt_striplib
9319
# Dependencies to place before the objects being linked to create a
9321
predep_objects=$lt_predep_objects
9323
# Dependencies to place after the objects being linked to create a
9325
postdep_objects=$lt_postdep_objects
9327
# Dependencies to place before the objects being linked to create a
9331
# Dependencies to place after the objects being linked to create a
9333
postdeps=$lt_postdeps
9335
# The library search path used internally by the compiler when linking
9337
compiler_lib_search_path=$lt_compiler_lib_search_path
9339
# Method to check whether dependent libraries are shared objects.
9340
deplibs_check_method=$lt_deplibs_check_method
9342
# Command to use when deplibs_check_method == file_magic.
9343
file_magic_cmd=$lt_file_magic_cmd
9345
# Flag that allows shared libraries with undefined symbols to be built.
9346
allow_undefined_flag=$lt_allow_undefined_flag
9348
# Flag that forces no undefined symbols.
9349
no_undefined_flag=$lt_no_undefined_flag
9351
# Commands used to finish a libtool library installation in a directory.
9352
finish_cmds=$lt_finish_cmds
9354
# Same as above, but a single script fragment to be evaled but not shown.
9355
finish_eval=$lt_finish_eval
9357
# Take the output of nm and produce a listing of raw symbols and C names.
9358
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9360
# Transform the output of nm in a proper C declaration
9361
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9363
# Transform the output of nm in a C name address pair
9364
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9366
# This is the shared library runtime path variable.
9367
runpath_var=$runpath_var
9369
# This is the shared library path variable.
9370
shlibpath_var=$shlibpath_var
9372
# Is shlibpath searched before the hard-coded library search path?
9373
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9375
# How to hardcode a shared library path into an executable.
9376
hardcode_action=$hardcode_action
9378
# Whether we should hardcode library paths into libraries.
9379
hardcode_into_libs=$hardcode_into_libs
9381
# Flag to hardcode \$libdir into a binary during linking.
9382
# This must work even if \$libdir does not exist.
9383
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9385
# If ld is used when linking, flag to hardcode \$libdir into
9386
# a binary during linking. This must work even if \$libdir does
9388
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9390
# Whether we need a single -rpath flag with a separated argument.
9391
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9393
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9395
hardcode_direct=$hardcode_direct
9397
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9399
hardcode_minus_L=$hardcode_minus_L
9401
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9402
# the resulting binary.
9403
hardcode_shlibpath_var=$hardcode_shlibpath_var
9405
# Set to yes if building a shared library automatically hardcodes DIR into the library
9406
# and all subsequent libraries and executables linked against it.
9407
hardcode_automatic=$hardcode_automatic
9409
# Variables whose values should be saved in libtool wrapper scripts and
9410
# restored at relink time.
9411
variables_saved_for_relink="$variables_saved_for_relink"
9413
# Whether libtool must link a program against all its dependency libraries.
9414
link_all_deplibs=$link_all_deplibs
9416
# Compile-time system search path for libraries
9417
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9419
# Run-time system search path for libraries
9420
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9422
# Fix the shell variable \$srcfile for the compiler.
9423
fix_srcfile_path="$fix_srcfile_path"
9425
# Set to yes if exported symbols are required.
9426
always_export_symbols=$always_export_symbols
9428
# The commands to list exported symbols.
9429
export_symbols_cmds=$lt_export_symbols_cmds
9431
# The commands to extract the exported symbol list from a shared archive.
9432
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9434
# Symbols that should not be listed in the preloaded symbols.
9435
exclude_expsyms=$lt_exclude_expsyms
9437
# Symbols that must always be exported.
9438
include_expsyms=$lt_include_expsyms
9440
# ### END LIBTOOL CONFIG
9447
cat <<\EOF >> "$cfgfile"
9449
# AIX sometimes has problems with the GCC collect2 program. For some
9450
# reason, if we set the COLLECT_NAMES environment variable, the problems
9451
# vanish in a puff of smoke.
9452
if test "X${COLLECT_NAMES+set}" != Xset; then
9454
export COLLECT_NAMES
9460
# We use sed instead of cat because bash on DJGPP gets confused if
9461
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9462
# text mode, it properly converts lines to CR/LF. This bash problem
9463
# is reportedly fixed, but why not run on old versions too?
9464
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9466
mv -f "$cfgfile" "$ofile" || \
9467
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9471
# If there is no Makefile yet, we rely on a make rule to execute
9472
# `config.status --recheck' to rerun these tests and create the
9473
# libtool script then.
9474
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9475
if test -f "$ltmain_in"; then
9476
test -f Makefile && make "$ltmain"
9482
ac_cpp='$CPP $CPPFLAGS'
9483
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9484
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9485
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9490
# Check whether --with-tags or --without-tags was given.
9491
if test "${with_tags+set}" = set; then
9492
withval="$with_tags"
9496
if test -f "$ltmain" && test -n "$tagnames"; then
9497
if test ! -f "${ofile}"; then
9498
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9499
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9502
if test -z "$LTCC"; then
9503
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9504
if test -z "$LTCC"; then
9505
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9506
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9508
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9509
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9513
# Extract list of available tagged configurations in $ofile.
9514
# Note that this assumes the entire list is on one line.
9515
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9517
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9518
for tagname in $tagnames; do
9520
# Check whether tagname contains only valid characters
9521
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9523
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9524
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9525
{ (exit 1); exit 1; }; }
9529
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9531
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9532
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9533
{ (exit 1); exit 1; }; }
9536
# Update the list of available tags.
9537
if test -n "$tagname"; then
9538
echo appending configuration tag \"$tagname\" to $ofile
9542
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9544
ac_cpp='$CXXCPP $CPPFLAGS'
9545
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9552
archive_cmds_need_lc_CXX=no
9553
allow_undefined_flag_CXX=
9554
always_export_symbols_CXX=no
9555
archive_expsym_cmds_CXX=
9556
export_dynamic_flag_spec_CXX=
9557
hardcode_direct_CXX=no
9558
hardcode_libdir_flag_spec_CXX=
9559
hardcode_libdir_flag_spec_ld_CXX=
9560
hardcode_libdir_separator_CXX=
9561
hardcode_minus_L_CXX=no
9562
hardcode_automatic_CXX=no
9564
module_expsym_cmds_CXX=
9565
link_all_deplibs_CXX=unknown
9566
old_archive_cmds_CXX=$old_archive_cmds
9567
no_undefined_flag_CXX=
9568
whole_archive_flag_spec_CXX=
9569
enable_shared_with_static_runtimes_CXX=no
9571
# Dependencies to place before and after the object being linked:
9573
postdep_objects_CXX=
9576
compiler_lib_search_path_CXX=
9578
# Source file extension for C++ test sources.
9581
# Object file extension for compiled C++ test sources.
9585
# Code to be used in simple compile tests
9586
lt_simple_compile_test_code="int some_variable = 0;\n"
9588
# Code to be used in simple link tests
9589
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9591
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9593
# If no C compiler was specified, use CC.
9596
# Allow CC to be a program name with arguments.
9600
# Allow CC to be a program name with arguments.
9605
lt_save_with_gnu_ld=$with_gnu_ld
9606
lt_save_path_LD=$lt_cv_path_LD
9607
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9608
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9610
unset lt_cv_prog_gnu_ld
9612
if test -n "${lt_cv_path_LDCXX+set}"; then
9613
lt_cv_path_LD=$lt_cv_path_LDCXX
9617
test -z "${LDCXX+set}" || LD=$LDCXX
9621
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9623
# We don't want -fno-exception wen compiling C++ code, so set the
9624
# no_builtin_flag separately
9625
if test "$GXX" = yes; then
9626
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9628
lt_prog_compiler_no_builtin_flag_CXX=
9631
if test "$GXX" = yes; then
9632
# Set up default GNU C++ configuration
9635
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9636
if test "${with_gnu_ld+set}" = set; then
9637
withval="$with_gnu_ld"
9638
test "$withval" = no || with_gnu_ld=yes
9643
if test "$GCC" = yes; then
9644
# Check if gcc -print-prog-name=ld gives a path.
9645
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9646
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9649
# gcc leaves a trailing carriage return which upsets mingw
9650
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9652
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9655
# Accept absolute paths.
9657
re_direlt='/[^/][^/]*/\.\./'
9658
# Canonicalize the pathname of ld
9659
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9660
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9661
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9663
test -z "$LD" && LD="$ac_prog"
9666
# If it fails, then pretend we aren't using GCC.
9670
# If it is relative, then search for the first ld in PATH.
9674
elif test "$with_gnu_ld" = yes; then
9675
echo "$as_me:$LINENO: checking for GNU ld" >&5
9676
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9678
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9679
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9681
if test "${lt_cv_path_LD+set}" = set; then
9682
echo $ECHO_N "(cached) $ECHO_C" >&6
9684
if test -z "$LD"; then
9685
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9686
for ac_dir in $PATH; do
9688
test -z "$ac_dir" && ac_dir=.
9689
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9690
lt_cv_path_LD="$ac_dir/$ac_prog"
9691
# Check to see if the program is GNU ld. I'd rather use --version,
9692
# but apparently some GNU ld's only accept -v.
9693
# Break only if it was the GNU/non-GNU ld that we prefer.
9694
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9695
*GNU* | *'with BFD'*)
9696
test "$with_gnu_ld" != no && break
9699
test "$with_gnu_ld" != yes && break
9706
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9711
if test -n "$LD"; then
9712
echo "$as_me:$LINENO: result: $LD" >&5
9713
echo "${ECHO_T}$LD" >&6
9715
echo "$as_me:$LINENO: result: no" >&5
9716
echo "${ECHO_T}no" >&6
9718
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9719
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9720
{ (exit 1); exit 1; }; }
9721
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9722
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9723
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9724
echo $ECHO_N "(cached) $ECHO_C" >&6
9726
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9727
case `$LD -v 2>&1 </dev/null` in
9728
*GNU* | *'with BFD'*)
9729
lt_cv_prog_gnu_ld=yes
9732
lt_cv_prog_gnu_ld=no
9736
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9737
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9738
with_gnu_ld=$lt_cv_prog_gnu_ld
9742
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9743
# archiving commands below assume that GNU ld is being used.
9744
if test "$with_gnu_ld" = yes; then
9745
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9746
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'
9748
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9749
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9751
# If archive_cmds runs LD, not CC, wlarc should be empty
9752
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9753
# investigate it a little bit more. (MM)
9756
# ancient GNU ld didn't support --whole-archive et. al.
9757
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9758
grep 'no-whole-archive' > /dev/null; then
9759
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9761
whole_archive_flag_spec_CXX=
9767
# A generic and very simple default shared library creation
9768
# command for GNU C++ for the case where it uses the native
9769
# linker, instead of GNU ld. If possible, this setting should
9770
# overridden to take advantage of the native linker features on
9771
# the platform it is being used on.
9772
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9775
# Commands to make compiler produce verbose output that lists
9776
# what "hidden" libraries, object files and flags are used when
9777
# linking a shared library.
9778
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9786
# PORTME: fill in a description of your system's C++ link characteristics
9787
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9788
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9792
# FIXME: insert proper C++ library support
9796
if test "$host_cpu" = ia64; then
9797
# On IA64, the linker does run time linking by default, so we don't
9798
# have to do anything special.
9799
aix_use_runtimelinking=no
9800
exp_sym_flag='-Bexport'
9803
aix_use_runtimelinking=no
9805
# Test if we are trying to use run time linking or normal
9806
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9807
# need to do runtime linking.
9808
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9809
for ld_flag in $LDFLAGS; do
9812
aix_use_runtimelinking=yes
9819
exp_sym_flag='-bexport'
9820
no_entry_flag='-bnoentry'
9823
# When large executables or shared objects are built, AIX ld can
9824
# have problems creating the table of contents. If linking a library
9825
# or program results in "error TOC overflow" add -mminimal-toc to
9826
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9827
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9830
hardcode_direct_CXX=yes
9831
hardcode_libdir_separator_CXX=':'
9832
link_all_deplibs_CXX=yes
9834
if test "$GXX" = yes; then
9835
case $host_os in aix4.012|aix4.012.*)
9836
# We only want to do this on AIX 4.2 and lower, the check
9837
# below for broken collect2 doesn't work under 4.3+
9838
collect2name=`${CC} -print-prog-name=collect2`
9839
if test -f "$collect2name" && \
9840
strings "$collect2name" | grep resolve_lib_name >/dev/null
9842
# We have reworked collect2
9843
hardcode_direct_CXX=yes
9845
# We have old collect2
9846
hardcode_direct_CXX=unsupported
9847
# It fails to find uninstalled libraries when the uninstalled
9848
# path is not listed in the libpath. Setting hardcode_minus_L
9849
# to unsupported forces relinking
9850
hardcode_minus_L_CXX=yes
9851
hardcode_libdir_flag_spec_CXX='-L$libdir'
9852
hardcode_libdir_separator_CXX=
9855
shared_flag='-shared'
9858
if test "$host_cpu" = ia64; then
9859
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9860
# chokes on -Wl,-G. The following line is correct:
9863
if test "$aix_use_runtimelinking" = yes; then
9864
shared_flag='${wl}-G'
9866
shared_flag='${wl}-bM:SRE'
9871
# It seems that -bexpall does not export symbols beginning with
9872
# underscore (_), so it is better to generate a list of symbols to export.
9873
always_export_symbols_CXX=yes
9874
if test "$aix_use_runtimelinking" = yes; then
9875
# Warning - without using the other runtime loading flags (-brtl),
9876
# -berok will link without error, but may produce a broken library.
9877
allow_undefined_flag_CXX='-berok'
9878
# Determine the default libpath from the value encoded in an empty executable.
9879
cat >conftest.$ac_ext <<_ACEOF
9882
cat confdefs.h >>conftest.$ac_ext
9883
cat >>conftest.$ac_ext <<_ACEOF
9884
/* end confdefs.h. */
9894
rm -f conftest.$ac_objext conftest$ac_exeext
9895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896
(eval $ac_link) 2>conftest.er1
9898
grep -v '^ *+' conftest.er1 >conftest.err
9900
cat conftest.err >&5
9901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902
(exit $ac_status); } &&
9903
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908
(exit $ac_status); }; } &&
9909
{ ac_try='test -s conftest$ac_exeext'
9910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914
(exit $ac_status); }; }; then
9916
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9918
# Check for a 64-bit object if we didn't find anything.
9919
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; }
9922
echo "$as_me: failed program was:" >&5
9923
sed 's/^/| /' conftest.$ac_ext >&5
9926
rm -f conftest.err conftest.$ac_objext \
9927
conftest$ac_exeext conftest.$ac_ext
9928
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9930
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9932
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"
9934
if test "$host_cpu" = ia64; then
9935
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9936
allow_undefined_flag_CXX="-z nodefs"
9937
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"
9939
# Determine the default libpath from the value encoded in an empty executable.
9940
cat >conftest.$ac_ext <<_ACEOF
9943
cat confdefs.h >>conftest.$ac_ext
9944
cat >>conftest.$ac_ext <<_ACEOF
9945
/* end confdefs.h. */
9955
rm -f conftest.$ac_objext conftest$ac_exeext
9956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957
(eval $ac_link) 2>conftest.er1
9959
grep -v '^ *+' conftest.er1 >conftest.err
9961
cat conftest.err >&5
9962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963
(exit $ac_status); } &&
9964
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969
(exit $ac_status); }; } &&
9970
{ ac_try='test -s conftest$ac_exeext'
9971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975
(exit $ac_status); }; }; then
9977
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9979
# Check for a 64-bit object if we didn't find anything.
9980
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; }
9983
echo "$as_me: failed program was:" >&5
9984
sed 's/^/| /' conftest.$ac_ext >&5
9987
rm -f conftest.err conftest.$ac_objext \
9988
conftest$ac_exeext conftest.$ac_ext
9989
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9991
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9992
# Warning - without using the other run time loading flags,
9993
# -berok will link without error, but may produce a broken library.
9994
no_undefined_flag_CXX=' ${wl}-bernotok'
9995
allow_undefined_flag_CXX=' ${wl}-berok'
9996
# -bexpall does not export symbols beginning with underscore (_)
9997
always_export_symbols_CXX=yes
9998
# Exported symbols can be pulled into shared objects from archives
9999
whole_archive_flag_spec_CXX=' '
10000
archive_cmds_need_lc_CXX=yes
10001
# This is similar to how AIX traditionally builds it's shared libraries.
10002
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'
10007
case $cc_basename in
10009
# FIXME: insert proper C++ library support
10015
cygwin* | mingw* | pw32*)
10016
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10017
# as there is no search path for DLLs.
10018
hardcode_libdir_flag_spec_CXX='-L$libdir'
10019
allow_undefined_flag_CXX=unsupported
10020
always_export_symbols_CXX=no
10021
enable_shared_with_static_runtimes_CXX=yes
10023
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10024
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'
10025
# If the export-symbols file already is a .def file (1st line
10026
# is EXPORTS), use it as is; otherwise, prepend...
10027
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028
cp $export_symbols $output_objdir/$soname.def;
10030
echo EXPORTS > $output_objdir/$soname.def;
10031
cat $export_symbols >> $output_objdir/$soname.def;
10033
$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'
10039
darwin* | rhapsody*)
10040
if test "$GXX" = yes; then
10041
archive_cmds_need_lc_CXX=no
10043
rhapsody* | darwin1.[012])
10044
allow_undefined_flag_CXX='-undefined suppress'
10047
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10048
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10050
case ${MACOSX_DEPLOYMENT_TARGET} in
10052
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10055
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10061
lt_int_apple_cc_single_mod=no
10062
output_verbose_link_cmd='echo'
10063
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10064
lt_int_apple_cc_single_mod=yes
10066
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10067
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10069
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10071
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10073
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10074
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10075
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}'
10077
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10079
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}'
10080
hardcode_direct_CXX=no
10081
hardcode_automatic_CXX=yes
10082
hardcode_shlibpath_var_CXX=unsupported
10083
whole_archive_flag_spec_CXX='-all_load $convenience'
10084
link_all_deplibs_CXX=yes
10091
case $cc_basename in
10093
# FIXME: insert proper C++ library support
10097
# Green Hills C++ Compiler
10098
# FIXME: insert proper C++ library support
10102
# FIXME: insert proper C++ library support
10108
# C++ shared libraries reported to be fairly broken before switch to ELF
10112
archive_cmds_need_lc_CXX=no
10114
freebsd* | kfreebsd*-gnu)
10115
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10122
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10123
hardcode_libdir_separator_CXX=:
10124
export_dynamic_flag_spec_CXX='${wl}-E'
10125
hardcode_direct_CXX=yes
10126
hardcode_minus_L_CXX=yes # Not in the search PATH,
10127
# but as the default
10128
# location of the library.
10130
case $cc_basename in
10132
# FIXME: insert proper C++ library support
10136
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'
10137
# Commands to make compiler produce verbose output that lists
10138
# what "hidden" libraries, object files and flags are used when
10139
# linking a shared library.
10141
# There doesn't appear to be a way to prevent this compiler from
10142
# explicitly linking system object files so we need to strip them
10143
# from the output so that they don't get included in the library
10145
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'
10148
if test "$GXX" = yes; then
10149
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'
10151
# FIXME: insert proper C++ library support
10158
if test $with_gnu_ld = no; then
10159
case "$host_cpu" in
10161
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10162
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10163
hardcode_libdir_separator_CXX=:
10166
hardcode_libdir_flag_spec_CXX='-L$libdir'
10169
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10170
hardcode_libdir_separator_CXX=:
10171
export_dynamic_flag_spec_CXX='${wl}-E'
10175
case "$host_cpu" in
10177
hardcode_direct_CXX=no
10178
hardcode_shlibpath_var_CXX=no
10181
hardcode_direct_CXX=no
10182
hardcode_shlibpath_var_CXX=no
10183
hardcode_minus_L_CXX=yes # Not in the search PATH,
10184
# but as the default
10185
# location of the library.
10188
hardcode_direct_CXX=yes
10189
hardcode_minus_L_CXX=yes # Not in the search PATH,
10190
# but as the default
10191
# location of the library.
10195
case $cc_basename in
10197
# FIXME: insert proper C++ library support
10201
case "$host_cpu" in
10203
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10206
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10209
# Commands to make compiler produce verbose output that lists
10210
# what "hidden" libraries, object files and flags are used when
10211
# linking a shared library.
10213
# There doesn't appear to be a way to prevent this compiler from
10214
# explicitly linking system object files so we need to strip them
10215
# from the output so that they don't get included in the library
10217
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'
10220
if test "$GXX" = yes; then
10221
if test $with_gnu_ld = no; then
10222
case "$host_cpu" in
10224
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10227
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'
10232
# FIXME: insert proper C++ library support
10239
case $cc_basename in
10242
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10244
# Archives containing C++ object files must be created using
10245
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10246
# necessary to make sure instantiated templates are included
10248
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10251
if test "$GXX" = yes; then
10252
if test "$with_gnu_ld" = no; then
10253
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10255
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'
10258
link_all_deplibs_CXX=yes
10261
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262
hardcode_libdir_separator_CXX=:
10265
case $cc_basename in
10267
# Kuck and Associates, Inc. (KAI) C++ Compiler
10269
# KCC will only create a shared library if the output file
10270
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10271
# to its proper name (with version) after linking.
10272
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'
10273
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'
10274
# Commands to make compiler produce verbose output that lists
10275
# what "hidden" libraries, object files and flags are used when
10276
# linking a shared library.
10278
# There doesn't appear to be a way to prevent this compiler from
10279
# explicitly linking system object files so we need to strip them
10280
# from the output so that they don't get included in the library
10282
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'
10284
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10285
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10287
# Archives containing C++ object files must be created using
10288
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10289
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10294
archive_cmds_need_lc_CXX=no
10295
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10296
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'
10297
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10298
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10299
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10303
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10304
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'
10306
runpath_var=LD_RUN_PATH
10307
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10308
hardcode_libdir_separator_CXX=:
10310
# Commands to make compiler produce verbose output that lists
10311
# what "hidden" libraries, object files and flags are used when
10312
# linking a shared library.
10314
# There doesn't appear to be a way to prevent this compiler from
10315
# explicitly linking system object files so we need to strip them
10316
# from the output so that they don't get included in the library
10318
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'
10323
# FIXME: insert proper C++ library support
10327
# FIXME: insert proper C++ library support
10331
case $cc_basename in
10333
# FIXME: insert proper C++ library support
10337
# FIXME: insert proper C++ library support
10342
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10343
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10344
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10346
hardcode_libdir_flag_spec_CXX='-R$libdir'
10347
hardcode_direct_CXX=yes
10348
hardcode_shlibpath_var_CXX=no
10350
# Workaround some broken pre-1.5 toolchains
10351
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10354
case $cc_basename in
10356
# Kuck and Associates, Inc. (KAI) C++ Compiler
10358
# KCC will only create a shared library if the output file
10359
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10360
# to its proper name (with version) after linking.
10361
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'
10363
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10364
hardcode_libdir_separator_CXX=:
10366
# Archives containing C++ object files must be created using
10367
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10368
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10372
# Rational C++ 2.4.1
10373
# FIXME: insert proper C++ library support
10377
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10378
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10380
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10381
hardcode_libdir_separator_CXX=:
10383
# Commands to make compiler produce verbose output that lists
10384
# what "hidden" libraries, object files and flags are used when
10385
# linking a shared library.
10387
# There doesn't appear to be a way to prevent this compiler from
10388
# explicitly linking system object files so we need to strip them
10389
# from the output so that they don't get included in the library
10391
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'
10394
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10395
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10396
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10398
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10399
hardcode_libdir_separator_CXX=:
10401
# Commands to make compiler produce verbose output that lists
10402
# what "hidden" libraries, object files and flags are used when
10403
# linking a shared library.
10404
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10407
# FIXME: insert proper C++ library support
10414
case $cc_basename in
10416
# Kuck and Associates, Inc. (KAI) C++ Compiler
10418
# KCC will only create a shared library if the output file
10419
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10420
# to its proper name (with version) after linking.
10421
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'
10423
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10424
hardcode_libdir_separator_CXX=:
10426
# Archives containing C++ object files must be created using
10427
# the KAI C++ compiler.
10428
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10431
# Rational C++ 2.4.1
10432
# FIXME: insert proper C++ library support
10436
allow_undefined_flag_CXX=' -expect_unresolved \*'
10437
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10438
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10439
echo "-hidden">> $lib.exp~
10440
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10443
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10444
hardcode_libdir_separator_CXX=:
10446
# Commands to make compiler produce verbose output that lists
10447
# what "hidden" libraries, object files and flags are used when
10448
# linking a shared library.
10450
# There doesn't appear to be a way to prevent this compiler from
10451
# explicitly linking system object files so we need to strip them
10452
# from the output so that they don't get included in the library
10454
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'
10457
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10461
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462
hardcode_libdir_separator_CXX=:
10464
# Commands to make compiler produce verbose output that lists
10465
# what "hidden" libraries, object files and flags are used when
10466
# linking a shared library.
10467
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10470
# FIXME: insert proper C++ library support
10477
# FIXME: insert proper C++ library support
10481
archive_cmds_need_lc_CXX=no
10482
case $cc_basename in
10484
# FIXME: insert proper C++ library support
10488
# FIXME: insert proper C++ library support
10494
case $cc_basename in
10497
# FIXME: insert proper C++ library support
10502
# FIXME: insert proper C++ library support
10506
# FIXME: insert proper C++ library support
10512
case $cc_basename in
10514
# Sun C++ 4.2, 5.x and Centerline C++
10515
no_undefined_flag_CXX=' -zdefs'
10516
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10517
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10518
$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'
10520
hardcode_libdir_flag_spec_CXX='-R$libdir'
10521
hardcode_shlibpath_var_CXX=no
10523
solaris2.0-5 | solaris2.0-5.*) ;;
10525
# The C++ compiler is used as linker so we must use $wl
10526
# flag to pass the commands to the underlying system
10528
# Supported since Solaris 2.6 (maybe 2.5.1?)
10529
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10532
link_all_deplibs_CXX=yes
10534
# Commands to make compiler produce verbose output that lists
10535
# what "hidden" libraries, object files and flags are used when
10536
# linking a shared library.
10538
# There doesn't appear to be a way to prevent this compiler from
10539
# explicitly linking system object files so we need to strip them
10540
# from the output so that they don't get included in the library
10542
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'
10544
# Archives containing C++ object files must be created using
10545
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10546
# necessary to make sure instantiated templates are included
10548
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10551
# Green Hills C++ Compiler
10552
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10554
# The C++ compiler must be used to create the archive.
10555
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10558
# GNU C++ compiler with Solaris linker
10559
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10560
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10561
if $CC --version | grep -v '^2\.7' > /dev/null; then
10562
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10563
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10564
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10566
# Commands to make compiler produce verbose output that lists
10567
# what "hidden" libraries, object files and flags are used when
10568
# linking a shared library.
10569
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10571
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10573
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10574
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10575
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10577
# Commands to make compiler produce verbose output that lists
10578
# what "hidden" libraries, object files and flags are used when
10579
# linking a shared library.
10580
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10583
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10588
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10589
archive_cmds_need_lc_CXX=no
10592
case $cc_basename in
10594
# NonStop-UX NCC 3.20
10595
# FIXME: insert proper C++ library support
10599
# FIXME: insert proper C++ library support
10605
# FIXME: insert proper C++ library support
10609
# FIXME: insert proper C++ library support
10613
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10614
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10615
test "$ld_shlibs_CXX" = no && can_build_shared=no
10621
cat > conftest.$ac_ext <<EOF
10625
Foo (void) { a = 0; }
10631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632
(eval $ac_compile) 2>&5
10634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635
(exit $ac_status); }; then
10636
# Parse the compiler output and extract the necessary
10637
# objects, libraries and library flags.
10639
# Sentinel used to keep track of whether or not we are before
10640
# the conftest object file.
10641
pre_test_object_deps_done=no
10643
# The `*' in the case matches for architectures that use `case' in
10644
# $output_verbose_cmd can trigger glob expansion during the loop
10645
# eval without this substitution.
10646
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10648
for p in `eval $output_verbose_link_cmd`; do
10652
# Some compilers place space between "-{L,R}" and the path.
10653
# Remove the space.
10654
if test $p = "-L" \
10655
|| test $p = "-R"; then
10662
if test "$pre_test_object_deps_done" = no; then
10665
# Internal compiler library paths should come after those
10666
# provided the user. The postdeps already come after the
10667
# user supplied libs so there is no need to process them.
10668
if test -z "$compiler_lib_search_path_CXX"; then
10669
compiler_lib_search_path_CXX="${prev}${p}"
10671
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10674
# The "-l" case would never come before the object being
10675
# linked, so don't bother handling this case.
10678
if test -z "$postdeps_CXX"; then
10679
postdeps_CXX="${prev}${p}"
10681
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10687
# This assumes that the test object file only shows up
10688
# once in the compiler output.
10689
if test "$p" = "conftest.$objext"; then
10690
pre_test_object_deps_done=yes
10694
if test "$pre_test_object_deps_done" = no; then
10695
if test -z "$predep_objects_CXX"; then
10696
predep_objects_CXX="$p"
10698
predep_objects_CXX="$predep_objects_CXX $p"
10701
if test -z "$postdep_objects_CXX"; then
10702
postdep_objects_CXX="$p"
10704
postdep_objects_CXX="$postdep_objects_CXX $p"
10709
*) ;; # Ignore the rest.
10717
echo "libtool.m4: error: problem compiling CXX test program"
10720
$rm -f confest.$objext
10722
case " $postdeps_CXX " in
10723
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10726
lt_prog_compiler_wl_CXX=
10727
lt_prog_compiler_pic_CXX=
10728
lt_prog_compiler_static_CXX=
10730
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10731
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10733
# C++ specific cases for pic, static, wl, etc.
10734
if test "$GXX" = yes; then
10735
lt_prog_compiler_wl_CXX='-Wl,'
10736
lt_prog_compiler_static_CXX='-static'
10740
# All AIX code is PIC.
10741
if test "$host_cpu" = ia64; then
10742
# AIX 5 now supports IA64 processor
10743
lt_prog_compiler_static_CXX='-Bstatic'
10747
# FIXME: we need at least 68020 code to build shared libraries, but
10748
# adding the `-m68020' flag to GCC prevents building anything better,
10750
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10752
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10753
# PIC is the default for these OSes.
10755
mingw* | os2* | pw32*)
10756
# This hack is so that the source file can tell whether it is being
10757
# built for inclusion in a dll (and should export symbols for example).
10758
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10760
darwin* | rhapsody*)
10761
# PIC is the default on this platform
10762
# Common symbols not allowed in MH_DYLIB files
10763
lt_prog_compiler_pic_CXX='-fno-common'
10766
# DJGPP does not support shared libraries at all
10767
lt_prog_compiler_pic_CXX=
10770
if test -d /usr/nec; then
10771
lt_prog_compiler_pic_CXX=-Kconform_pic
10775
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10776
# not for PA HP-UX.
10777
case "$host_cpu" in
10781
lt_prog_compiler_pic_CXX='-fPIC'
10786
lt_prog_compiler_pic_CXX='-fPIC'
10792
# All AIX code is PIC.
10793
if test "$host_cpu" = ia64; then
10794
# AIX 5 now supports IA64 processor
10795
lt_prog_compiler_static_CXX='-Bstatic'
10797
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10801
case $cc_basename in
10803
# Green Hills C++ Compiler
10804
# _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"
10809
case $cc_basename in
10811
lt_prog_compiler_pic_CXX='-KPIC'
10814
# Green Hills C++ Compiler
10815
lt_prog_compiler_pic_CXX='-pic'
10821
freebsd* | kfreebsd*-gnu)
10822
# FreeBSD uses GNU C++
10824
hpux9* | hpux10* | hpux11*)
10825
case $cc_basename in
10827
lt_prog_compiler_wl_CXX='-Wl,'
10828
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10829
if test "$host_cpu" != ia64; then
10830
lt_prog_compiler_pic_CXX='+Z'
10834
lt_prog_compiler_wl_CXX='-Wl,'
10835
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10836
case "$host_cpu" in
10841
lt_prog_compiler_pic_CXX='+Z'
10849
irix5* | irix6* | nonstopux*)
10850
case $cc_basename in
10852
lt_prog_compiler_wl_CXX='-Wl,'
10853
lt_prog_compiler_static_CXX='-non_shared'
10854
# CC pic flag -KPIC is the default.
10861
case $cc_basename in
10864
lt_prog_compiler_wl_CXX='--backend -Wl,'
10865
lt_prog_compiler_pic_CXX='-fPIC'
10869
lt_prog_compiler_wl_CXX='-Wl,'
10870
lt_prog_compiler_pic_CXX='-KPIC'
10871
lt_prog_compiler_static_CXX='-static'
10875
# Make sure the PIC flag is empty. It appears that all Alpha
10876
# Linux and Compaq Tru64 Unix objects are PIC.
10877
lt_prog_compiler_pic_CXX=
10878
lt_prog_compiler_static_CXX='-non_shared'
10889
case $cc_basename in
10891
lt_prog_compiler_pic_CXX='-W c,exportall'
10897
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10899
osf3* | osf4* | osf5*)
10900
case $cc_basename in
10902
lt_prog_compiler_wl_CXX='--backend -Wl,'
10905
# Rational C++ 2.4.1
10906
lt_prog_compiler_pic_CXX='-pic'
10909
# Digital/Compaq C++
10910
lt_prog_compiler_wl_CXX='-Wl,'
10911
# Make sure the PIC flag is empty. It appears that all Alpha
10912
# Linux and Compaq Tru64 Unix objects are PIC.
10913
lt_prog_compiler_pic_CXX=
10914
lt_prog_compiler_static_CXX='-non_shared'
10923
case $cc_basename in
10925
lt_prog_compiler_pic_CXX='-fPIC'
10932
case $cc_basename in
10934
# Sun C++ 4.2, 5.x and Centerline C++
10935
lt_prog_compiler_pic_CXX='-KPIC'
10936
lt_prog_compiler_static_CXX='-Bstatic'
10937
lt_prog_compiler_wl_CXX='-Qoption ld '
10940
# Green Hills C++ Compiler
10941
lt_prog_compiler_pic_CXX='-PIC'
10948
case $cc_basename in
10951
lt_prog_compiler_pic_CXX='-pic'
10952
lt_prog_compiler_static_CXX='-Bstatic'
10956
lt_prog_compiler_pic_CXX='-pic'
10963
case $cc_basename in
10965
# NonStop-UX NCC 3.20
10966
lt_prog_compiler_pic_CXX='-KPIC'
10977
lt_prog_compiler_can_build_shared_CXX=no
10982
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10983
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10986
# Check to make sure the PIC flag actually works.
10988
if test -n "$lt_prog_compiler_pic_CXX"; then
10990
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10991
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10992
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10993
echo $ECHO_N "(cached) $ECHO_C" >&6
10995
lt_prog_compiler_pic_works_CXX=no
10996
ac_outfile=conftest.$ac_objext
10997
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10998
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10999
# Insert the option either (1) after the last *FLAGS variable, or
11000
# (2) before a word containing "conftest.", or (3) at the end.
11001
# Note that $ac_compile itself does not contain backslashes and begins
11002
# with a dollar sign (not a hyphen), so the echo should work correctly.
11003
# The option is referenced via a variable to avoid confusing sed.
11004
lt_compile=`echo "$ac_compile" | $SED \
11005
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11006
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11007
-e 's:$: $lt_compiler_flag:'`
11008
(eval echo "\"\$as_me:11008: $lt_compile\"" >&5)
11009
(eval "$lt_compile" 2>conftest.err)
11011
cat conftest.err >&5
11012
echo "$as_me:11012: \$? = $ac_status" >&5
11013
if (exit $ac_status) && test -s "$ac_outfile"; then
11014
# The compiler can only warn and ignore the option if not recognized
11015
# So say no if there are warnings
11016
if test ! -s conftest.err; then
11017
lt_prog_compiler_pic_works_CXX=yes
11023
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11024
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11026
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11027
case $lt_prog_compiler_pic_CXX in
11029
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11032
lt_prog_compiler_pic_CXX=
11033
lt_prog_compiler_can_build_shared_CXX=no
11038
# For platforms which do not support PIC, -DPIC is meaningless:
11040
lt_prog_compiler_pic_CXX=
11043
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11047
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11048
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11049
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11050
echo $ECHO_N "(cached) $ECHO_C" >&6
11052
lt_cv_prog_compiler_c_o_CXX=no
11053
$rm -r conftest 2>/dev/null
11057
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11059
lt_compiler_flag="-o out/conftest2.$ac_objext"
11060
# Insert the option either (1) after the last *FLAGS variable, or
11061
# (2) before a word containing "conftest.", or (3) at the end.
11062
# Note that $ac_compile itself does not contain backslashes and begins
11063
# with a dollar sign (not a hyphen), so the echo should work correctly.
11064
lt_compile=`echo "$ac_compile" | $SED \
11065
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11066
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11067
-e 's:$: $lt_compiler_flag:'`
11068
(eval echo "\"\$as_me:11068: $lt_compile\"" >&5)
11069
(eval "$lt_compile" 2>out/conftest.err)
11071
cat out/conftest.err >&5
11072
echo "$as_me:11072: \$? = $ac_status" >&5
11073
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11075
# The compiler can only warn and ignore the option if not recognized
11076
# So say no if there are warnings
11077
if test ! -s out/conftest.err; then
11078
lt_cv_prog_compiler_c_o_CXX=yes
11083
# SGI C++ compiler will create directory out/ii_files/ for
11084
# template instantiation
11085
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11086
$rm out/* && rmdir out
11092
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11093
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11096
hard_links="nottested"
11097
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11098
# do not overwrite the value of need_locks provided by the user
11099
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11100
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11103
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11105
ln conftest.a conftest.b 2>&5 || hard_links=no
11106
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11107
echo "$as_me:$LINENO: result: $hard_links" >&5
11108
echo "${ECHO_T}$hard_links" >&6
11109
if test "$hard_links" = no; then
11110
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11111
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11118
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11119
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11121
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11124
# If we're using GNU nm, then we don't want the "-C" option.
11125
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11126
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11127
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'
11129
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'
11133
export_symbols_cmds_CXX="$ltdll_cmds"
11136
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11139
link_all_deplibs_CXX=no
11142
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11146
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11147
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11148
test "$ld_shlibs_CXX" = no && can_build_shared=no
11150
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11151
if test "$GCC" = yes; then
11152
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11156
# Do we need to explicitly link libc?
11158
case "x$archive_cmds_need_lc_CXX" in
11160
# Assume -lc should be added
11161
archive_cmds_need_lc_CXX=yes
11163
if test "$enable_shared" = yes && test "$GCC" = yes; then
11164
case $archive_cmds_CXX in
11166
# FIXME: we may have to deal with multi-command sequences.
11169
# Test whether the compiler implicitly links with -lc since on some
11170
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11171
# to ld, don't add -lc before -lgcc.
11172
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11173
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11175
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178
(eval $ac_compile) 2>&5
11180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181
(exit $ac_status); } 2>conftest.err; then
11184
libobjs=conftest.$ac_objext
11186
wl=$lt_prog_compiler_wl_CXX
11192
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11193
allow_undefined_flag_CXX=
11194
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11195
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198
(exit $ac_status); }
11200
archive_cmds_need_lc_CXX=no
11202
archive_cmds_need_lc_CXX=yes
11204
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11206
cat conftest.err 1>&5
11209
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11210
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11217
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11218
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11219
library_names_spec=
11220
libname_spec='lib$name'
11224
postuninstall_cmds=
11228
shlibpath_overrides_runpath=unknown
11230
dynamic_linker="$host_os ld.so"
11231
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11232
if test "$GCC" = yes; then
11233
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11234
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11235
# if the path contains ";" then we assume it to be the separator
11236
# otherwise default to the standard path separator (i.e. ":") - it is
11237
# assumed that no part of a normal pathname contains ";" but that should
11238
# okay in the real world where ";" in dirpaths is itself problematic.
11239
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246
need_lib_prefix=unknown
11247
hardcode_into_libs=no
11249
# when you set need_version to no, make sure it does not cause -set_version
11250
# flags to be left without arguments
11251
need_version=unknown
11256
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11257
shlibpath_var=LIBPATH
11259
# AIX 3 has no versioning support, so we append a major version to the name.
11260
soname_spec='${libname}${release}${shared_ext}$major'
11267
hardcode_into_libs=yes
11268
if test "$host_cpu" = ia64; then
11269
# AIX 5 supports IA64
11270
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11271
shlibpath_var=LD_LIBRARY_PATH
11273
# With GCC up to 2.95.x, collect2 would create an import file
11274
# for dependence libraries. The import file would start with
11275
# the line `#! .'. This would cause the generated library to
11276
# depend on `.', always an invalid library. This was fixed in
11277
# development snapshots of GCC prior to 3.0.
11279
aix4 | aix4.[01] | aix4.[01].*)
11280
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11282
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11285
can_build_shared=no
11289
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11290
# soname into executable. Probably we can add versioning support to
11291
# collect2, so additional links can be useful in future.
11292
if test "$aix_use_runtimelinking" = yes; then
11293
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11294
# instead of lib<name>.a to let people know that these are not
11295
# typical AIX shared libraries.
11296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298
# We preserve .a as extension for shared libraries through AIX4.2
11299
# and later when we are not doing run time linking.
11300
library_names_spec='${libname}${release}.a $libname.a'
11301
soname_spec='${libname}${release}${shared_ext}$major'
11303
shlibpath_var=LIBPATH
11308
library_names_spec='$libname.ixlibrary $libname.a'
11309
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11310
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'
11314
library_names_spec='${libname}${shared_ext}'
11315
dynamic_linker="$host_os ld.so"
11316
shlibpath_var=LIBRARY_PATH
11322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323
soname_spec='${libname}${release}${shared_ext}$major'
11324
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11325
shlibpath_var=LD_LIBRARY_PATH
11326
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11327
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11328
# the default ld.so.conf also contains /usr/contrib/lib and
11329
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11330
# libtool to hard-code these into programs
11333
cygwin* | mingw* | pw32*)
11334
version_type=windows
11339
case $GCC,$host_os in
11340
yes,cygwin* | yes,mingw* | yes,pw32*)
11341
library_names_spec='$libname.dll.a'
11342
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11343
postinstall_cmds='base_file=`basename \${file}`~
11344
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11345
dldir=$destdir/`dirname \$dlpath`~
11346
test -d \$dldir || mkdir -p \$dldir~
11347
$install_prog $dir/$dlname \$dldir/$dlname'
11348
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11349
dlpath=$dir/\$dldll~
11351
shlibpath_overrides_runpath=yes
11355
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11356
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11357
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11360
# MinGW DLLs use traditional 'lib' prefix
11361
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11362
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11363
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11364
# It is most probably a Windows format PATH printed by
11365
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11366
# path with ; separators, and with drive letters. We can handle the
11367
# drive letters (cygwin fileutils understands them), so leave them,
11368
# especially as we might pass files found there to a mingw objdump,
11369
# which wouldn't understand a cygwinified path. Ahh.
11370
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11372
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11376
# pw32 DLLs use 'pw' prefix rather than 'lib'
11377
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11383
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11386
dynamic_linker='Win32 ld.exe'
11387
# FIXME: first we should search . and the directory the executable is in
11391
darwin* | rhapsody*)
11392
dynamic_linker="$host_os dyld"
11393
version_type=darwin
11396
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11397
soname_spec='${libname}${release}${major}$shared_ext'
11398
shlibpath_overrides_runpath=yes
11399
shlibpath_var=DYLD_LIBRARY_PATH
11400
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11401
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11402
if test "$GCC" = yes; then
11403
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"`
11405
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11407
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11415
soname_spec='${libname}${release}${shared_ext}$major'
11416
shlibpath_var=LD_LIBRARY_PATH
11427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11428
soname_spec='${libname}${release}${shared_ext}$major'
11429
shlibpath_var=LD_LIBRARY_PATH
11430
shlibpath_overrides_runpath=no
11431
hardcode_into_libs=yes
11432
dynamic_linker='GNU ld.so'
11436
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11437
version_type=freebsd-$objformat
11438
case $version_type in
11440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11445
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11449
shlibpath_var=LD_LIBRARY_PATH
11452
shlibpath_overrides_runpath=yes
11454
freebsd3.01* | freebsdelf3.01*)
11455
shlibpath_overrides_runpath=yes
11456
hardcode_into_libs=yes
11459
shlibpath_overrides_runpath=no
11460
hardcode_into_libs=yes
11469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11470
soname_spec='${libname}${release}${shared_ext}$major'
11471
shlibpath_var=LD_LIBRARY_PATH
11472
hardcode_into_libs=yes
11475
hpux9* | hpux10* | hpux11*)
11476
# Give a soname corresponding to the major version so that dld.sl refuses to
11477
# link against other versions.
11481
case "$host_cpu" in
11484
hardcode_into_libs=yes
11485
dynamic_linker="$host_os dld.so"
11486
shlibpath_var=LD_LIBRARY_PATH
11487
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489
soname_spec='${libname}${release}${shared_ext}$major'
11490
if test "X$HPUX_IA64_MODE" = X32; then
11491
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11495
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11499
hardcode_into_libs=yes
11500
dynamic_linker="$host_os dld.sl"
11501
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11502
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504
soname_spec='${libname}${release}${shared_ext}$major'
11505
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11506
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11510
dynamic_linker="$host_os dld.sl"
11511
shlibpath_var=SHLIB_PATH
11512
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514
soname_spec='${libname}${release}${shared_ext}$major'
11517
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11518
postinstall_cmds='chmod 555 $lib'
11521
irix5* | irix6* | nonstopux*)
11523
nonstopux*) version_type=nonstopux ;;
11525
if test "$lt_cv_prog_gnu_ld" = yes; then
11533
soname_spec='${libname}${release}${shared_ext}$major'
11534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11536
irix5* | nonstopux*)
11537
libsuff= shlibsuff=
11540
case $LD in # libtool.m4 will add one of these switches to LD
11541
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11542
libsuff= shlibsuff= libmagic=32-bit;;
11543
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11544
libsuff=32 shlibsuff=N32 libmagic=N32;;
11545
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11546
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11547
*) libsuff= shlibsuff= libmagic=never-match;;
11551
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11552
shlibpath_overrides_runpath=no
11553
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11554
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11555
hardcode_into_libs=yes
11558
# No shared lib support for Linux oldld, aout, or coff.
11559
linux*oldld* | linux*aout* | linux*coff*)
11563
# This must be Linux ELF.
11568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569
soname_spec='${libname}${release}${shared_ext}$major'
11570
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11571
shlibpath_var=LD_LIBRARY_PATH
11572
shlibpath_overrides_runpath=no
11573
# This implies no fast_install, which is unacceptable.
11574
# Some rework will be needed to allow for fast_install
11575
# before this can be enabled.
11576
hardcode_into_libs=yes
11578
# Append ld.so.conf contents to the search path
11579
if test -f /etc/ld.so.conf; then
11580
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11581
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11584
# We used to test for /lib/ld.so.1 and disable shared libraries on
11585
# powerpc, because MkLinux only supported shared libraries with the
11586
# GNU dynamic linker. Since this was broken with cross compilers,
11587
# most powerpc-linux boxes support dynamic linking these days and
11588
# people can always --disable-shared, the test was removed, and we
11589
# assume the GNU/Linux dynamic linker is in use.
11590
dynamic_linker='GNU/Linux ld.so'
11597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11598
soname_spec='${libname}${release}${shared_ext}$major'
11599
shlibpath_var=LD_LIBRARY_PATH
11600
shlibpath_overrides_runpath=no
11601
hardcode_into_libs=yes
11602
dynamic_linker='NetBSD ld.elf_so'
11609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11610
soname_spec='${libname}${release}${shared_ext}$major'
11611
shlibpath_var=LD_LIBRARY_PATH
11612
shlibpath_overrides_runpath=no
11613
hardcode_into_libs=yes
11614
dynamic_linker='GNU ld.so'
11621
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11623
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11624
dynamic_linker='NetBSD (a.out) ld.so'
11626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11627
soname_spec='${libname}${release}${shared_ext}$major'
11628
dynamic_linker='NetBSD ld.elf_so'
11630
shlibpath_var=LD_LIBRARY_PATH
11631
shlibpath_overrides_runpath=yes
11632
hardcode_into_libs=yes
11637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638
shlibpath_var=LD_LIBRARY_PATH
11639
shlibpath_overrides_runpath=yes
11646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647
soname_spec='${libname}${release}${shared_ext}$major'
11648
shlibpath_var=LD_LIBRARY_PATH
11649
shlibpath_overrides_runpath=yes
11656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658
shlibpath_var=LD_LIBRARY_PATH
11659
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11661
openbsd2.[89] | openbsd2.[89].*)
11662
shlibpath_overrides_runpath=no
11665
shlibpath_overrides_runpath=yes
11669
shlibpath_overrides_runpath=yes
11674
libname_spec='$name'
11677
library_names_spec='$libname${shared_ext} $libname.a'
11678
dynamic_linker='OS/2 ld.exe'
11679
shlibpath_var=LIBPATH
11682
osf3* | osf4* | osf5*)
11686
soname_spec='${libname}${release}${shared_ext}$major'
11687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688
shlibpath_var=LD_LIBRARY_PATH
11689
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11690
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11695
soname_spec='${libname}${release}${shared_ext}$major'
11696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11697
shlibpath_var=LD_LIBRARY_PATH
11704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705
soname_spec='${libname}${release}${shared_ext}$major'
11706
shlibpath_var=LD_LIBRARY_PATH
11707
shlibpath_overrides_runpath=yes
11708
hardcode_into_libs=yes
11709
# ldd complains unless libraries are executable
11710
postinstall_cmds='chmod +x $lib'
11715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11716
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11717
shlibpath_var=LD_LIBRARY_PATH
11718
shlibpath_overrides_runpath=yes
11719
if test "$with_gnu_ld" = yes; then
11725
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728
soname_spec='${libname}${release}${shared_ext}$major'
11729
shlibpath_var=LD_LIBRARY_PATH
11730
case $host_vendor in
11732
shlibpath_overrides_runpath=no
11734
export_dynamic_flag_spec='${wl}-Blargedynsym'
11735
runpath_var=LD_RUN_PATH
11743
shlibpath_overrides_runpath=no
11744
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11750
if test -d /usr/nec ;then
11752
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11753
soname_spec='$libname${shared_ext}.$major'
11754
shlibpath_var=LD_LIBRARY_PATH
11760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761
soname_spec='${libname}${release}${shared_ext}$major'
11762
shlibpath_var=LD_LIBRARY_PATH
11769
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11770
echo "${ECHO_T}$dynamic_linker" >&6
11771
test "$dynamic_linker" = no && can_build_shared=no
11773
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11774
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11775
hardcode_action_CXX=
11776
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11777
test -n "$runpath_var CXX" || \
11778
test "X$hardcode_automatic_CXX"="Xyes" ; then
11780
# We can hardcode non-existant directories.
11781
if test "$hardcode_direct_CXX" != no &&
11782
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11783
# have to relink, otherwise we might link with an installed library
11784
# when we should be linking with a yet-to-be-installed one
11785
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11786
test "$hardcode_minus_L_CXX" != no; then
11787
# Linking always hardcodes the temporary library directory.
11788
hardcode_action_CXX=relink
11790
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11791
hardcode_action_CXX=immediate
11794
# We cannot hardcode anything, or else we can only hardcode existing
11796
hardcode_action_CXX=unsupported
11798
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11799
echo "${ECHO_T}$hardcode_action_CXX" >&6
11801
if test "$hardcode_action_CXX" = relink; then
11802
# Fast installation is not supported
11803
enable_fast_install=no
11804
elif test "$shlibpath_overrides_runpath" = yes ||
11805
test "$enable_shared" = no; then
11806
# Fast installation is not necessary
11807
enable_fast_install=needless
11812
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11813
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11814
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11815
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11816
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11817
echo "$as_me:$LINENO: result: yes" >&5
11818
echo "${ECHO_T}yes" >&6
11820
# FIXME - insert some real tests, host_os isn't really good enough
11823
if test -n "$STRIP" ; then
11824
striplib="$STRIP -x"
11825
echo "$as_me:$LINENO: result: yes" >&5
11826
echo "${ECHO_T}yes" >&6
11828
echo "$as_me:$LINENO: result: no" >&5
11829
echo "${ECHO_T}no" >&6
11833
echo "$as_me:$LINENO: result: no" >&5
11834
echo "${ECHO_T}no" >&6
11839
if test "x$enable_dlopen" != xyes; then
11840
enable_dlopen=unknown
11841
enable_dlopen_self=unknown
11842
enable_dlopen_self_static=unknown
11849
lt_cv_dlopen="load_add_on"
11851
lt_cv_dlopen_self=yes
11855
lt_cv_dlopen="LoadLibrary"
11860
lt_cv_dlopen="dlopen"
11865
# if libdl is installed we need to link against it
11866
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11867
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11868
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11869
echo $ECHO_N "(cached) $ECHO_C" >&6
11871
ac_check_lib_save_LIBS=$LIBS
11873
cat >conftest.$ac_ext <<_ACEOF
11876
cat confdefs.h >>conftest.$ac_ext
11877
cat >>conftest.$ac_ext <<_ACEOF
11878
/* end confdefs.h. */
11880
/* Override any gcc2 internal prototype to avoid an error. */
11884
/* We use char because int might match the return type of a gcc2
11885
builtin and then its argument prototype would still apply. */
11895
rm -f conftest.$ac_objext conftest$ac_exeext
11896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897
(eval $ac_link) 2>conftest.er1
11899
grep -v '^ *+' conftest.er1 >conftest.err
11901
cat conftest.err >&5
11902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
(exit $ac_status); } &&
11904
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906
(eval $ac_try) 2>&5
11908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909
(exit $ac_status); }; } &&
11910
{ ac_try='test -s conftest$ac_exeext'
11911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912
(eval $ac_try) 2>&5
11914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915
(exit $ac_status); }; }; then
11916
ac_cv_lib_dl_dlopen=yes
11918
echo "$as_me: failed program was:" >&5
11919
sed 's/^/| /' conftest.$ac_ext >&5
11921
ac_cv_lib_dl_dlopen=no
11923
rm -f conftest.err conftest.$ac_objext \
11924
conftest$ac_exeext conftest.$ac_ext
11925
LIBS=$ac_check_lib_save_LIBS
11927
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11928
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11929
if test $ac_cv_lib_dl_dlopen = yes; then
11930
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933
lt_cv_dlopen="dyld"
11935
lt_cv_dlopen_self=yes
11942
echo "$as_me:$LINENO: checking for shl_load" >&5
11943
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11944
if test "${ac_cv_func_shl_load+set}" = set; then
11945
echo $ECHO_N "(cached) $ECHO_C" >&6
11947
cat >conftest.$ac_ext <<_ACEOF
11950
cat confdefs.h >>conftest.$ac_ext
11951
cat >>conftest.$ac_ext <<_ACEOF
11952
/* end confdefs.h. */
11953
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11954
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955
#define shl_load innocuous_shl_load
11957
/* System header to define __stub macros and hopefully few prototypes,
11958
which can conflict with char shl_load (); below.
11959
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960
<limits.h> exists even on freestanding compilers. */
11963
# include <limits.h>
11965
# include <assert.h>
11970
/* Override any gcc2 internal prototype to avoid an error. */
11975
/* We use char because int might match the return type of a gcc2
11976
builtin and then its argument prototype would still apply. */
11978
/* The GNU C library defines this for functions which it implements
11979
to always fail with ENOSYS. Some functions are actually named
11980
something starting with __ and the normal name is an alias. */
11981
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11984
char (*f) () = shl_load;
11993
return f != shl_load;
11998
rm -f conftest.$ac_objext conftest$ac_exeext
11999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000
(eval $ac_link) 2>conftest.er1
12002
grep -v '^ *+' conftest.er1 >conftest.err
12004
cat conftest.err >&5
12005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006
(exit $ac_status); } &&
12007
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009
(eval $ac_try) 2>&5
12011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
(exit $ac_status); }; } &&
12013
{ ac_try='test -s conftest$ac_exeext'
12014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015
(eval $ac_try) 2>&5
12017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018
(exit $ac_status); }; }; then
12019
ac_cv_func_shl_load=yes
12021
echo "$as_me: failed program was:" >&5
12022
sed 's/^/| /' conftest.$ac_ext >&5
12024
ac_cv_func_shl_load=no
12026
rm -f conftest.err conftest.$ac_objext \
12027
conftest$ac_exeext conftest.$ac_ext
12029
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12030
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12031
if test $ac_cv_func_shl_load = yes; then
12032
lt_cv_dlopen="shl_load"
12034
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12035
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12036
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12037
echo $ECHO_N "(cached) $ECHO_C" >&6
12039
ac_check_lib_save_LIBS=$LIBS
12041
cat >conftest.$ac_ext <<_ACEOF
12044
cat confdefs.h >>conftest.$ac_ext
12045
cat >>conftest.$ac_ext <<_ACEOF
12046
/* end confdefs.h. */
12048
/* Override any gcc2 internal prototype to avoid an error. */
12052
/* We use char because int might match the return type of a gcc2
12053
builtin and then its argument prototype would still apply. */
12063
rm -f conftest.$ac_objext conftest$ac_exeext
12064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065
(eval $ac_link) 2>conftest.er1
12067
grep -v '^ *+' conftest.er1 >conftest.err
12069
cat conftest.err >&5
12070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071
(exit $ac_status); } &&
12072
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074
(eval $ac_try) 2>&5
12076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077
(exit $ac_status); }; } &&
12078
{ ac_try='test -s conftest$ac_exeext'
12079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080
(eval $ac_try) 2>&5
12082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083
(exit $ac_status); }; }; then
12084
ac_cv_lib_dld_shl_load=yes
12086
echo "$as_me: failed program was:" >&5
12087
sed 's/^/| /' conftest.$ac_ext >&5
12089
ac_cv_lib_dld_shl_load=no
12091
rm -f conftest.err conftest.$ac_objext \
12092
conftest$ac_exeext conftest.$ac_ext
12093
LIBS=$ac_check_lib_save_LIBS
12095
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12096
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12097
if test $ac_cv_lib_dld_shl_load = yes; then
12098
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12100
echo "$as_me:$LINENO: checking for dlopen" >&5
12101
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12102
if test "${ac_cv_func_dlopen+set}" = set; then
12103
echo $ECHO_N "(cached) $ECHO_C" >&6
12105
cat >conftest.$ac_ext <<_ACEOF
12108
cat confdefs.h >>conftest.$ac_ext
12109
cat >>conftest.$ac_ext <<_ACEOF
12110
/* end confdefs.h. */
12111
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12112
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113
#define dlopen innocuous_dlopen
12115
/* System header to define __stub macros and hopefully few prototypes,
12116
which can conflict with char dlopen (); below.
12117
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118
<limits.h> exists even on freestanding compilers. */
12121
# include <limits.h>
12123
# include <assert.h>
12128
/* Override any gcc2 internal prototype to avoid an error. */
12133
/* We use char because int might match the return type of a gcc2
12134
builtin and then its argument prototype would still apply. */
12136
/* The GNU C library defines this for functions which it implements
12137
to always fail with ENOSYS. Some functions are actually named
12138
something starting with __ and the normal name is an alias. */
12139
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12142
char (*f) () = dlopen;
12151
return f != dlopen;
12156
rm -f conftest.$ac_objext conftest$ac_exeext
12157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158
(eval $ac_link) 2>conftest.er1
12160
grep -v '^ *+' conftest.er1 >conftest.err
12162
cat conftest.err >&5
12163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164
(exit $ac_status); } &&
12165
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167
(eval $ac_try) 2>&5
12169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170
(exit $ac_status); }; } &&
12171
{ ac_try='test -s conftest$ac_exeext'
12172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173
(eval $ac_try) 2>&5
12175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176
(exit $ac_status); }; }; then
12177
ac_cv_func_dlopen=yes
12179
echo "$as_me: failed program was:" >&5
12180
sed 's/^/| /' conftest.$ac_ext >&5
12182
ac_cv_func_dlopen=no
12184
rm -f conftest.err conftest.$ac_objext \
12185
conftest$ac_exeext conftest.$ac_ext
12187
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12188
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12189
if test $ac_cv_func_dlopen = yes; then
12190
lt_cv_dlopen="dlopen"
12192
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12193
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12194
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12195
echo $ECHO_N "(cached) $ECHO_C" >&6
12197
ac_check_lib_save_LIBS=$LIBS
12199
cat >conftest.$ac_ext <<_ACEOF
12202
cat confdefs.h >>conftest.$ac_ext
12203
cat >>conftest.$ac_ext <<_ACEOF
12204
/* end confdefs.h. */
12206
/* Override any gcc2 internal prototype to avoid an error. */
12210
/* We use char because int might match the return type of a gcc2
12211
builtin and then its argument prototype would still apply. */
12221
rm -f conftest.$ac_objext conftest$ac_exeext
12222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223
(eval $ac_link) 2>conftest.er1
12225
grep -v '^ *+' conftest.er1 >conftest.err
12227
cat conftest.err >&5
12228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229
(exit $ac_status); } &&
12230
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232
(eval $ac_try) 2>&5
12234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235
(exit $ac_status); }; } &&
12236
{ ac_try='test -s conftest$ac_exeext'
12237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238
(eval $ac_try) 2>&5
12240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241
(exit $ac_status); }; }; then
12242
ac_cv_lib_dl_dlopen=yes
12244
echo "$as_me: failed program was:" >&5
12245
sed 's/^/| /' conftest.$ac_ext >&5
12247
ac_cv_lib_dl_dlopen=no
12249
rm -f conftest.err conftest.$ac_objext \
12250
conftest$ac_exeext conftest.$ac_ext
12251
LIBS=$ac_check_lib_save_LIBS
12253
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12254
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12255
if test $ac_cv_lib_dl_dlopen = yes; then
12256
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12258
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12259
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12260
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12261
echo $ECHO_N "(cached) $ECHO_C" >&6
12263
ac_check_lib_save_LIBS=$LIBS
12264
LIBS="-lsvld $LIBS"
12265
cat >conftest.$ac_ext <<_ACEOF
12268
cat confdefs.h >>conftest.$ac_ext
12269
cat >>conftest.$ac_ext <<_ACEOF
12270
/* end confdefs.h. */
12272
/* Override any gcc2 internal prototype to avoid an error. */
12276
/* We use char because int might match the return type of a gcc2
12277
builtin and then its argument prototype would still apply. */
12287
rm -f conftest.$ac_objext conftest$ac_exeext
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289
(eval $ac_link) 2>conftest.er1
12291
grep -v '^ *+' conftest.er1 >conftest.err
12293
cat conftest.err >&5
12294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
(exit $ac_status); } &&
12296
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298
(eval $ac_try) 2>&5
12300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301
(exit $ac_status); }; } &&
12302
{ ac_try='test -s conftest$ac_exeext'
12303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304
(eval $ac_try) 2>&5
12306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307
(exit $ac_status); }; }; then
12308
ac_cv_lib_svld_dlopen=yes
12310
echo "$as_me: failed program was:" >&5
12311
sed 's/^/| /' conftest.$ac_ext >&5
12313
ac_cv_lib_svld_dlopen=no
12315
rm -f conftest.err conftest.$ac_objext \
12316
conftest$ac_exeext conftest.$ac_ext
12317
LIBS=$ac_check_lib_save_LIBS
12319
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12320
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12321
if test $ac_cv_lib_svld_dlopen = yes; then
12322
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12324
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12325
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12326
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12327
echo $ECHO_N "(cached) $ECHO_C" >&6
12329
ac_check_lib_save_LIBS=$LIBS
12331
cat >conftest.$ac_ext <<_ACEOF
12334
cat confdefs.h >>conftest.$ac_ext
12335
cat >>conftest.$ac_ext <<_ACEOF
12336
/* end confdefs.h. */
12338
/* Override any gcc2 internal prototype to avoid an error. */
12342
/* We use char because int might match the return type of a gcc2
12343
builtin and then its argument prototype would still apply. */
12353
rm -f conftest.$ac_objext conftest$ac_exeext
12354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355
(eval $ac_link) 2>conftest.er1
12357
grep -v '^ *+' conftest.er1 >conftest.err
12359
cat conftest.err >&5
12360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361
(exit $ac_status); } &&
12362
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364
(eval $ac_try) 2>&5
12366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367
(exit $ac_status); }; } &&
12368
{ ac_try='test -s conftest$ac_exeext'
12369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370
(eval $ac_try) 2>&5
12372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373
(exit $ac_status); }; }; then
12374
ac_cv_lib_dld_dld_link=yes
12376
echo "$as_me: failed program was:" >&5
12377
sed 's/^/| /' conftest.$ac_ext >&5
12379
ac_cv_lib_dld_dld_link=no
12381
rm -f conftest.err conftest.$ac_objext \
12382
conftest$ac_exeext conftest.$ac_ext
12383
LIBS=$ac_check_lib_save_LIBS
12385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12386
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12387
if test $ac_cv_lib_dld_dld_link = yes; then
12388
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12409
if test "x$lt_cv_dlopen" != xno; then
12415
case $lt_cv_dlopen in
12417
save_CPPFLAGS="$CPPFLAGS"
12418
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12420
save_LDFLAGS="$LDFLAGS"
12421
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12424
LIBS="$lt_cv_dlopen_libs $LIBS"
12426
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12427
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12428
if test "${lt_cv_dlopen_self+set}" = set; then
12429
echo $ECHO_N "(cached) $ECHO_C" >&6
12431
if test "$cross_compiling" = yes; then :
12432
lt_cv_dlopen_self=cross
12434
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12435
lt_status=$lt_dlunknown
12436
cat > conftest.$ac_ext <<EOF
12437
#line 12437 "configure"
12438
#include "confdefs.h"
12447
# define LT_DLGLOBAL RTLD_GLOBAL
12450
# define LT_DLGLOBAL DL_GLOBAL
12452
# define LT_DLGLOBAL 0
12456
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12457
find out it does not work in some platform. */
12458
#ifndef LT_DLLAZY_OR_NOW
12460
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12463
# define LT_DLLAZY_OR_NOW DL_LAZY
12466
# define LT_DLLAZY_OR_NOW RTLD_NOW
12469
# define LT_DLLAZY_OR_NOW DL_NOW
12471
# define LT_DLLAZY_OR_NOW 0
12479
extern "C" void exit (int);
12482
void fnord() { int i=42;}
12485
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12486
int status = $lt_dlunknown;
12490
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12491
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12492
/* dlclose (self); */
12498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499
(eval $ac_link) 2>&5
12501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12503
(./conftest; exit; ) 2>/dev/null
12505
case x$lt_status in
12506
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12507
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12508
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12511
# compilation failed
12512
lt_cv_dlopen_self=no
12519
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12520
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12522
if test "x$lt_cv_dlopen_self" = xyes; then
12523
LDFLAGS="$LDFLAGS $link_static_flag"
12524
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12525
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12526
if test "${lt_cv_dlopen_self_static+set}" = set; then
12527
echo $ECHO_N "(cached) $ECHO_C" >&6
12529
if test "$cross_compiling" = yes; then :
12530
lt_cv_dlopen_self_static=cross
12532
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12533
lt_status=$lt_dlunknown
12534
cat > conftest.$ac_ext <<EOF
12535
#line 12535 "configure"
12536
#include "confdefs.h"
12545
# define LT_DLGLOBAL RTLD_GLOBAL
12548
# define LT_DLGLOBAL DL_GLOBAL
12550
# define LT_DLGLOBAL 0
12554
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12555
find out it does not work in some platform. */
12556
#ifndef LT_DLLAZY_OR_NOW
12558
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12561
# define LT_DLLAZY_OR_NOW DL_LAZY
12564
# define LT_DLLAZY_OR_NOW RTLD_NOW
12567
# define LT_DLLAZY_OR_NOW DL_NOW
12569
# define LT_DLLAZY_OR_NOW 0
12577
extern "C" void exit (int);
12580
void fnord() { int i=42;}
12583
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12584
int status = $lt_dlunknown;
12588
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12589
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12590
/* dlclose (self); */
12596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597
(eval $ac_link) 2>&5
12599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12601
(./conftest; exit; ) 2>/dev/null
12603
case x$lt_status in
12604
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12605
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12606
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12609
# compilation failed
12610
lt_cv_dlopen_self_static=no
12617
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12618
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12621
CPPFLAGS="$save_CPPFLAGS"
12622
LDFLAGS="$save_LDFLAGS"
12627
case $lt_cv_dlopen_self in
12628
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12629
*) enable_dlopen_self=unknown ;;
12632
case $lt_cv_dlopen_self_static in
12633
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12634
*) enable_dlopen_self_static=unknown ;;
12639
# The else clause should only fire when bootstrapping the
12640
# libtool distribution, otherwise you forgot to ship ltmain.sh
12641
# with your package, and you will get complaints that there are
12642
# no rules to generate ltmain.sh.
12643
if test -f "$ltmain"; then
12644
# See if we are running on zsh, and set the options which allow our commands through
12645
# without removal of \ escapes.
12646
if test -n "${ZSH_VERSION+set}" ; then
12647
setopt NO_GLOB_SUBST
12649
# Now quote all the things that may contain metacharacters while being
12650
# careful not to overquote the AC_SUBSTed values. We take copies of the
12651
# variables and quote the copies for generation of the libtool script.
12652
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12654
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12655
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12656
deplibs_check_method reload_flag reload_cmds need_locks \
12657
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12658
lt_cv_sys_global_symbol_to_c_name_address \
12659
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12660
old_postinstall_cmds old_postuninstall_cmds \
12664
lt_prog_compiler_wl_CXX \
12665
lt_prog_compiler_pic_CXX \
12666
lt_prog_compiler_static_CXX \
12667
lt_prog_compiler_no_builtin_flag_CXX \
12668
export_dynamic_flag_spec_CXX \
12669
thread_safe_flag_spec_CXX \
12670
whole_archive_flag_spec_CXX \
12671
enable_shared_with_static_runtimes_CXX \
12672
old_archive_cmds_CXX \
12673
old_archive_from_new_cmds_CXX \
12674
predep_objects_CXX \
12675
postdep_objects_CXX \
12678
compiler_lib_search_path_CXX \
12680
archive_expsym_cmds_CXX \
12681
postinstall_cmds_CXX \
12682
postuninstall_cmds_CXX \
12683
old_archive_from_expsyms_cmds_CXX \
12684
allow_undefined_flag_CXX \
12685
no_undefined_flag_CXX \
12686
export_symbols_cmds_CXX \
12687
hardcode_libdir_flag_spec_CXX \
12688
hardcode_libdir_flag_spec_ld_CXX \
12689
hardcode_libdir_separator_CXX \
12690
hardcode_automatic_CXX \
12692
module_expsym_cmds_CXX \
12693
lt_cv_prog_compiler_c_o_CXX \
12694
exclude_expsyms_CXX \
12695
include_expsyms_CXX; do
12698
old_archive_cmds_CXX | \
12699
old_archive_from_new_cmds_CXX | \
12700
archive_cmds_CXX | \
12701
archive_expsym_cmds_CXX | \
12702
module_cmds_CXX | \
12703
module_expsym_cmds_CXX | \
12704
old_archive_from_expsyms_cmds_CXX | \
12705
export_symbols_cmds_CXX | \
12706
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12707
postinstall_cmds | postuninstall_cmds | \
12708
old_postinstall_cmds | old_postuninstall_cmds | \
12709
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12710
# Double-quote double-evaled strings.
12711
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12714
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12720
*'\$0 --fallback-echo"')
12721
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12727
cat <<__EOF__ >> "$cfgfile"
12728
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12730
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12732
# Shell to use when invoking shell scripts.
12735
# Whether or not to build shared libraries.
12736
build_libtool_libs=$enable_shared
12738
# Whether or not to build static libraries.
12739
build_old_libs=$enable_static
12741
# Whether or not to add -lc for building shared libraries.
12742
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12744
# Whether or not to disallow shared libs when runtime libs are static
12745
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12747
# Whether or not to optimize for fast installation.
12748
fast_install=$enable_fast_install
12751
host_alias=$host_alias
12754
# An echo program that does not interpret backslashes.
12759
AR_FLAGS=$lt_AR_FLAGS
12764
# A language-specific compiler.
12765
CC=$lt_compiler_CXX
12767
# Is the compiler the GNU C compiler?
12773
# The linker used to build libraries.
12776
# Whether we need hard or soft links.
12779
# A BSD-compatible nm program.
12782
# A symbol stripping program
12785
# Used to examine libraries when file_magic_cmd begins "file"
12786
MAGIC_CMD=$MAGIC_CMD
12788
# Used on cygwin: DLL creation program.
12791
# Used on cygwin: object dumper.
12794
# Used on cygwin: assembler.
12797
# The name of the directory that contains temporary libtool files.
12800
# How to create reloadable object files.
12801
reload_flag=$lt_reload_flag
12802
reload_cmds=$lt_reload_cmds
12804
# How to pass a linker flag through the compiler.
12805
wl=$lt_lt_prog_compiler_wl_CXX
12807
# Object file suffix (normally "o").
12808
objext="$ac_objext"
12810
# Old archive suffix (normally "a").
12813
# Shared library suffix (normally ".so").
12814
shrext_cmds='$shrext_cmds'
12816
# Executable file suffix (normally "").
12819
# Additional compiler flags for building library objects.
12820
pic_flag=$lt_lt_prog_compiler_pic_CXX
12823
# What is the maximum length of a command?
12824
max_cmd_len=$lt_cv_sys_max_cmd_len
12826
# Does compiler simultaneously support -c and -o options?
12827
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12829
# Must we lock files when doing compilation ?
12830
need_locks=$lt_need_locks
12832
# Do we need the lib prefix for modules?
12833
need_lib_prefix=$need_lib_prefix
12835
# Do we need a version for libraries?
12836
need_version=$need_version
12838
# Whether dlopen is supported.
12839
dlopen_support=$enable_dlopen
12841
# Whether dlopen of programs is supported.
12842
dlopen_self=$enable_dlopen_self
12844
# Whether dlopen of statically linked programs is supported.
12845
dlopen_self_static=$enable_dlopen_self_static
12847
# Compiler flag to prevent dynamic linking.
12848
link_static_flag=$lt_lt_prog_compiler_static_CXX
12850
# Compiler flag to turn off builtin functions.
12851
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12853
# Compiler flag to allow reflexive dlopens.
12854
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12856
# Compiler flag to generate shared objects directly from archives.
12857
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12859
# Compiler flag to generate thread-safe objects.
12860
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12862
# Library versioning type.
12863
version_type=$version_type
12865
# Format of library name prefix.
12866
libname_spec=$lt_libname_spec
12868
# List of archive names. First name is the real one, the rest are links.
12869
# The last name is the one that the linker finds with -lNAME.
12870
library_names_spec=$lt_library_names_spec
12872
# The coded name of the library, if different from the real name.
12873
soname_spec=$lt_soname_spec
12875
# Commands used to build and install an old-style archive.
12877
old_archive_cmds=$lt_old_archive_cmds_CXX
12878
old_postinstall_cmds=$lt_old_postinstall_cmds
12879
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12881
# Create an old-style archive from a shared archive.
12882
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12884
# Create a temporary old-style archive to link instead of a shared archive.
12885
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12887
# Commands used to build and install a shared archive.
12888
archive_cmds=$lt_archive_cmds_CXX
12889
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12890
postinstall_cmds=$lt_postinstall_cmds
12891
postuninstall_cmds=$lt_postuninstall_cmds
12893
# Commands used to build a loadable module (assumed same as above if empty)
12894
module_cmds=$lt_module_cmds_CXX
12895
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12897
# Commands to strip libraries.
12898
old_striplib=$lt_old_striplib
12899
striplib=$lt_striplib
12901
# Dependencies to place before the objects being linked to create a
12903
predep_objects=$lt_predep_objects_CXX
12905
# Dependencies to place after the objects being linked to create a
12907
postdep_objects=$lt_postdep_objects_CXX
12909
# Dependencies to place before the objects being linked to create a
12911
predeps=$lt_predeps_CXX
12913
# Dependencies to place after the objects being linked to create a
12915
postdeps=$lt_postdeps_CXX
12917
# The library search path used internally by the compiler when linking
12918
# a shared library.
12919
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12921
# Method to check whether dependent libraries are shared objects.
12922
deplibs_check_method=$lt_deplibs_check_method
12924
# Command to use when deplibs_check_method == file_magic.
12925
file_magic_cmd=$lt_file_magic_cmd
12927
# Flag that allows shared libraries with undefined symbols to be built.
12928
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12930
# Flag that forces no undefined symbols.
12931
no_undefined_flag=$lt_no_undefined_flag_CXX
12933
# Commands used to finish a libtool library installation in a directory.
12934
finish_cmds=$lt_finish_cmds
12936
# Same as above, but a single script fragment to be evaled but not shown.
12937
finish_eval=$lt_finish_eval
12939
# Take the output of nm and produce a listing of raw symbols and C names.
12940
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12942
# Transform the output of nm in a proper C declaration
12943
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12945
# Transform the output of nm in a C name address pair
12946
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12948
# This is the shared library runtime path variable.
12949
runpath_var=$runpath_var
12951
# This is the shared library path variable.
12952
shlibpath_var=$shlibpath_var
12954
# Is shlibpath searched before the hard-coded library search path?
12955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12957
# How to hardcode a shared library path into an executable.
12958
hardcode_action=$hardcode_action_CXX
12960
# Whether we should hardcode library paths into libraries.
12961
hardcode_into_libs=$hardcode_into_libs
12963
# Flag to hardcode \$libdir into a binary during linking.
12964
# This must work even if \$libdir does not exist.
12965
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12967
# If ld is used when linking, flag to hardcode \$libdir into
12968
# a binary during linking. This must work even if \$libdir does
12970
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12972
# Whether we need a single -rpath flag with a separated argument.
12973
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12975
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12976
# resulting binary.
12977
hardcode_direct=$hardcode_direct_CXX
12979
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12980
# resulting binary.
12981
hardcode_minus_L=$hardcode_minus_L_CXX
12983
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12984
# the resulting binary.
12985
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12987
# Set to yes if building a shared library automatically hardcodes DIR into the library
12988
# and all subsequent libraries and executables linked against it.
12989
hardcode_automatic=$hardcode_automatic_CXX
12991
# Variables whose values should be saved in libtool wrapper scripts and
12992
# restored at relink time.
12993
variables_saved_for_relink="$variables_saved_for_relink"
12995
# Whether libtool must link a program against all its dependency libraries.
12996
link_all_deplibs=$link_all_deplibs_CXX
12998
# Compile-time system search path for libraries
12999
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13001
# Run-time system search path for libraries
13002
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13004
# Fix the shell variable \$srcfile for the compiler.
13005
fix_srcfile_path="$fix_srcfile_path_CXX"
13007
# Set to yes if exported symbols are required.
13008
always_export_symbols=$always_export_symbols_CXX
13010
# The commands to list exported symbols.
13011
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13013
# The commands to extract the exported symbol list from a shared archive.
13014
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13016
# Symbols that should not be listed in the preloaded symbols.
13017
exclude_expsyms=$lt_exclude_expsyms_CXX
13019
# Symbols that must always be exported.
13020
include_expsyms=$lt_include_expsyms_CXX
13022
# ### END LIBTOOL TAG CONFIG: $tagname
13028
# If there is no Makefile yet, we rely on a make rule to execute
13029
# `config.status --recheck' to rerun these tests and create the
13030
# libtool script then.
13031
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13032
if test -f "$ltmain_in"; then
13033
test -f Makefile && make "$ltmain"
13039
ac_cpp='$CPP $CPPFLAGS'
13040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13048
with_gnu_ldcxx=$with_gnu_ld
13049
with_gnu_ld=$lt_save_with_gnu_ld
13050
lt_cv_path_LDCXX=$lt_cv_path_LD
13051
lt_cv_path_LD=$lt_save_path_LD
13052
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13053
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13061
if test -n "$F77" && test "X$F77" != "Xno"; then
13064
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13065
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13066
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13069
archive_cmds_need_lc_F77=no
13070
allow_undefined_flag_F77=
13071
always_export_symbols_F77=no
13072
archive_expsym_cmds_F77=
13073
export_dynamic_flag_spec_F77=
13074
hardcode_direct_F77=no
13075
hardcode_libdir_flag_spec_F77=
13076
hardcode_libdir_flag_spec_ld_F77=
13077
hardcode_libdir_separator_F77=
13078
hardcode_minus_L_F77=no
13079
hardcode_automatic_F77=no
13081
module_expsym_cmds_F77=
13082
link_all_deplibs_F77=unknown
13083
old_archive_cmds_F77=$old_archive_cmds
13084
no_undefined_flag_F77=
13085
whole_archive_flag_spec_F77=
13086
enable_shared_with_static_runtimes_F77=no
13088
# Source file extension for f77 test sources.
13091
# Object file extension for compiled f77 test sources.
13095
# Code to be used in simple compile tests
13096
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13098
# Code to be used in simple link tests
13099
lt_simple_link_test_code=" program t\n end\n"
13101
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13103
# If no C compiler was specified, use CC.
13106
# Allow CC to be a program name with arguments.
13110
# Allow CC to be a program name with arguments.
13115
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13117
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13118
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13119
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13120
echo "${ECHO_T}$can_build_shared" >&6
13122
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13123
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13124
test "$can_build_shared" = "no" && enable_shared=no
13126
# On AIX, shared libraries and static libraries use the same namespace, and
13127
# are all built from PIC.
13130
test "$enable_shared" = yes && enable_static=no
13131
if test -n "$RANLIB"; then
13132
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13133
postinstall_cmds='$RANLIB $lib'
13137
test "$enable_shared" = yes && enable_static=no
13140
echo "$as_me:$LINENO: result: $enable_shared" >&5
13141
echo "${ECHO_T}$enable_shared" >&6
13143
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13144
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13145
# Make sure either enable_shared or enable_static is yes.
13146
test "$enable_shared" = yes || enable_static=yes
13147
echo "$as_me:$LINENO: result: $enable_static" >&5
13148
echo "${ECHO_T}$enable_static" >&6
13150
test "$ld_shlibs_F77" = no && can_build_shared=no
13155
lt_prog_compiler_wl_F77=
13156
lt_prog_compiler_pic_F77=
13157
lt_prog_compiler_static_F77=
13159
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13160
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13162
if test "$GCC" = yes; then
13163
lt_prog_compiler_wl_F77='-Wl,'
13164
lt_prog_compiler_static_F77='-static'
13168
# All AIX code is PIC.
13169
if test "$host_cpu" = ia64; then
13170
# AIX 5 now supports IA64 processor
13171
lt_prog_compiler_static_F77='-Bstatic'
13176
# FIXME: we need at least 68020 code to build shared libraries, but
13177
# adding the `-m68020' flag to GCC prevents building anything better,
13179
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13182
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13183
# PIC is the default for these OSes.
13186
mingw* | pw32* | os2*)
13187
# This hack is so that the source file can tell whether it is being
13188
# built for inclusion in a dll (and should export symbols for example).
13189
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13192
darwin* | rhapsody*)
13193
# PIC is the default on this platform
13194
# Common symbols not allowed in MH_DYLIB files
13195
lt_prog_compiler_pic_F77='-fno-common'
13199
# Just because we use GCC doesn't mean we suddenly get shared libraries
13200
# on systems that don't support them.
13201
lt_prog_compiler_can_build_shared_F77=no
13206
if test -d /usr/nec; then
13207
lt_prog_compiler_pic_F77=-Kconform_pic
13212
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13213
# not for PA HP-UX.
13214
case "$host_cpu" in
13219
lt_prog_compiler_pic_F77='-fPIC'
13225
lt_prog_compiler_pic_F77='-fPIC'
13229
# PORTME Check for flag to pass linker flags through the system compiler.
13232
lt_prog_compiler_wl_F77='-Wl,'
13233
if test "$host_cpu" = ia64; then
13234
# AIX 5 now supports IA64 processor
13235
lt_prog_compiler_static_F77='-Bstatic'
13237
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13241
mingw* | pw32* | os2*)
13242
# This hack is so that the source file can tell whether it is being
13243
# built for inclusion in a dll (and should export symbols for example).
13244
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13247
hpux9* | hpux10* | hpux11*)
13248
lt_prog_compiler_wl_F77='-Wl,'
13249
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13250
# not for PA HP-UX.
13251
case "$host_cpu" in
13256
lt_prog_compiler_pic_F77='+Z'
13259
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13260
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13263
irix5* | irix6* | nonstopux*)
13264
lt_prog_compiler_wl_F77='-Wl,'
13265
# PIC (with -KPIC) is the default.
13266
lt_prog_compiler_static_F77='-non_shared'
13270
lt_prog_compiler_pic_F77='-KPIC'
13271
lt_prog_compiler_static_F77='-Bstatic'
13277
lt_prog_compiler_wl_F77='-Wl,'
13278
lt_prog_compiler_pic_F77='-KPIC'
13279
lt_prog_compiler_static_F77='-static'
13282
lt_prog_compiler_wl_F77='-Wl,'
13283
# All Alpha code is PIC.
13284
lt_prog_compiler_static_F77='-non_shared'
13289
osf3* | osf4* | osf5*)
13290
lt_prog_compiler_wl_F77='-Wl,'
13291
# All OSF/1 code is PIC.
13292
lt_prog_compiler_static_F77='-non_shared'
13296
lt_prog_compiler_pic_F77='-Kpic'
13297
lt_prog_compiler_static_F77='-dn'
13301
lt_prog_compiler_wl_F77='-Wl,'
13302
lt_prog_compiler_pic_F77='-KPIC'
13303
lt_prog_compiler_static_F77='-Bstatic'
13307
lt_prog_compiler_wl_F77='-Qoption ld '
13308
lt_prog_compiler_pic_F77='-PIC'
13309
lt_prog_compiler_static_F77='-Bstatic'
13312
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13313
lt_prog_compiler_wl_F77='-Wl,'
13314
lt_prog_compiler_pic_F77='-KPIC'
13315
lt_prog_compiler_static_F77='-Bstatic'
13319
if test -d /usr/nec ;then
13320
lt_prog_compiler_pic_F77='-Kconform_pic'
13321
lt_prog_compiler_static_F77='-Bstatic'
13326
lt_prog_compiler_pic_F77='-pic'
13327
lt_prog_compiler_static_F77='-Bstatic'
13331
lt_prog_compiler_can_build_shared_F77=no
13336
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13337
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13340
# Check to make sure the PIC flag actually works.
13342
if test -n "$lt_prog_compiler_pic_F77"; then
13344
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13345
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13346
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13347
echo $ECHO_N "(cached) $ECHO_C" >&6
13349
lt_prog_compiler_pic_works_F77=no
13350
ac_outfile=conftest.$ac_objext
13351
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13352
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13353
# Insert the option either (1) after the last *FLAGS variable, or
13354
# (2) before a word containing "conftest.", or (3) at the end.
13355
# Note that $ac_compile itself does not contain backslashes and begins
13356
# with a dollar sign (not a hyphen), so the echo should work correctly.
13357
# The option is referenced via a variable to avoid confusing sed.
13358
lt_compile=`echo "$ac_compile" | $SED \
13359
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13360
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13361
-e 's:$: $lt_compiler_flag:'`
13362
(eval echo "\"\$as_me:13362: $lt_compile\"" >&5)
13363
(eval "$lt_compile" 2>conftest.err)
13365
cat conftest.err >&5
13366
echo "$as_me:13366: \$? = $ac_status" >&5
13367
if (exit $ac_status) && test -s "$ac_outfile"; then
13368
# The compiler can only warn and ignore the option if not recognized
13369
# So say no if there are warnings
13370
if test ! -s conftest.err; then
13371
lt_prog_compiler_pic_works_F77=yes
13377
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13378
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13380
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13381
case $lt_prog_compiler_pic_F77 in
13383
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13386
lt_prog_compiler_pic_F77=
13387
lt_prog_compiler_can_build_shared_F77=no
13392
# For platforms which do not support PIC, -DPIC is meaningless:
13394
lt_prog_compiler_pic_F77=
13397
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13401
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13402
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13403
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13404
echo $ECHO_N "(cached) $ECHO_C" >&6
13406
lt_cv_prog_compiler_c_o_F77=no
13407
$rm -r conftest 2>/dev/null
13411
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13413
lt_compiler_flag="-o out/conftest2.$ac_objext"
13414
# Insert the option either (1) after the last *FLAGS variable, or
13415
# (2) before a word containing "conftest.", or (3) at the end.
13416
# Note that $ac_compile itself does not contain backslashes and begins
13417
# with a dollar sign (not a hyphen), so the echo should work correctly.
13418
lt_compile=`echo "$ac_compile" | $SED \
13419
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13420
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13421
-e 's:$: $lt_compiler_flag:'`
13422
(eval echo "\"\$as_me:13422: $lt_compile\"" >&5)
13423
(eval "$lt_compile" 2>out/conftest.err)
13425
cat out/conftest.err >&5
13426
echo "$as_me:13426: \$? = $ac_status" >&5
13427
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13429
# The compiler can only warn and ignore the option if not recognized
13430
# So say no if there are warnings
13431
if test ! -s out/conftest.err; then
13432
lt_cv_prog_compiler_c_o_F77=yes
13437
# SGI C++ compiler will create directory out/ii_files/ for
13438
# template instantiation
13439
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13440
$rm out/* && rmdir out
13446
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13447
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13450
hard_links="nottested"
13451
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13452
# do not overwrite the value of need_locks provided by the user
13453
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13454
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13457
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13459
ln conftest.a conftest.b 2>&5 || hard_links=no
13460
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13461
echo "$as_me:$LINENO: result: $hard_links" >&5
13462
echo "${ECHO_T}$hard_links" >&6
13463
if test "$hard_links" = no; then
13464
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13465
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13472
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13473
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13476
allow_undefined_flag_F77=
13477
enable_shared_with_static_runtimes_F77=no
13479
archive_expsym_cmds_F77=
13480
old_archive_From_new_cmds_F77=
13481
old_archive_from_expsyms_cmds_F77=
13482
export_dynamic_flag_spec_F77=
13483
whole_archive_flag_spec_F77=
13484
thread_safe_flag_spec_F77=
13485
hardcode_libdir_flag_spec_F77=
13486
hardcode_libdir_flag_spec_ld_F77=
13487
hardcode_libdir_separator_F77=
13488
hardcode_direct_F77=no
13489
hardcode_minus_L_F77=no
13490
hardcode_shlibpath_var_F77=unsupported
13491
link_all_deplibs_F77=unknown
13492
hardcode_automatic_F77=no
13494
module_expsym_cmds_F77=
13495
always_export_symbols_F77=no
13496
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13497
# include_expsyms should be a list of space-separated symbols to be *always*
13498
# included in the symbol list
13499
include_expsyms_F77=
13500
# exclude_expsyms can be an extended regexp of symbols to exclude
13501
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13502
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13503
# as well as any symbol that contains `d'.
13504
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13505
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13506
# platforms (ab)use it in PIC code, but their linkers get confused if
13507
# the symbol is explicitly referenced. Since portable code cannot
13508
# rely on this symbol name, it's probably fine to never include it in
13509
# preloaded symbol tables.
13510
extract_expsyms_cmds=
13513
cygwin* | mingw* | pw32*)
13514
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13515
# When not using gcc, we currently assume that we are using
13516
# Microsoft Visual C++.
13517
if test "$GCC" != yes; then
13527
if test "$with_gnu_ld" = yes; then
13528
# If archive_cmds runs LD, not CC, wlarc should be empty
13531
# See if GNU ld supports shared libraries.
13533
aix3* | aix4* | aix5*)
13534
# On AIX/PPC, the GNU linker is very broken
13535
if test "$host_cpu" != ia64; then
13539
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13540
*** to be unable to reliably create shared libraries on AIX.
13541
*** Therefore, libtool is disabling shared libraries support. If you
13542
*** really care for shared libraries, you may want to modify your PATH
13543
*** so that a non-GNU linker is found, and then restart.
13550
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)'
13551
hardcode_libdir_flag_spec_F77='-L$libdir'
13552
hardcode_minus_L_F77=yes
13554
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13555
# that the semantics of dynamic libraries on AmigaOS, at least up
13556
# to version 4, is to share data among multiple programs linked
13557
# with the same dynamic library. Since this doesn't match the
13558
# behavior of shared libraries on other platforms, we can't use
13564
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13565
allow_undefined_flag_F77=unsupported
13566
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13567
# support --undefined. This deserves some investigation. FIXME
13568
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13574
cygwin* | mingw* | pw32*)
13575
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13576
# as there is no search path for DLLs.
13577
hardcode_libdir_flag_spec_F77='-L$libdir'
13578
allow_undefined_flag_F77=unsupported
13579
always_export_symbols_F77=no
13580
enable_shared_with_static_runtimes_F77=yes
13581
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13583
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13584
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13585
# If the export-symbols file already is a .def file (1st line
13586
# is EXPORTS), use it as is; otherwise, prepend...
13587
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13588
cp $export_symbols $output_objdir/$soname.def;
13590
echo EXPORTS > $output_objdir/$soname.def;
13591
cat $export_symbols >> $output_objdir/$soname.def;
13593
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13599
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13600
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13601
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13604
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13610
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13614
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13615
*** create shared libraries on Solaris systems. Therefore, libtool
13616
*** is disabling shared libraries support. We urge you to upgrade GNU
13617
*** binutils to release 2.9.1 or newer. Another option is to modify
13618
*** your PATH or compiler configuration so that the native linker is
13619
*** used, and then restart.
13622
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13623
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13624
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13631
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13633
hardcode_direct_F77=yes
13634
hardcode_shlibpath_var_F77=no
13638
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13639
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13640
archive_cmds_F77="$tmp_archive_cmds"
13641
supports_anon_versioning=no
13642
case `$LD -v 2>/dev/null` in
13643
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13644
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13645
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13646
*\ 2.11.*) ;; # other 2.11 versions
13647
*) supports_anon_versioning=yes ;;
13649
if test $supports_anon_versioning = yes; then
13650
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13651
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13652
$echo "local: *; };" >> $output_objdir/$libname.ver~
13653
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13655
archive_expsym_cmds_F77="$tmp_archive_cmds"
13657
link_all_deplibs_F77=no
13664
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13665
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673
if test "$ld_shlibs_F77" = yes; then
13674
runpath_var=LD_RUN_PATH
13675
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13676
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13677
# ancient GNU ld didn't support --whole-archive et. al.
13678
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13679
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13681
whole_archive_flag_spec_F77=
13685
# PORTME fill in a description of your system's linker (not GNU ld)
13688
allow_undefined_flag_F77=unsupported
13689
always_export_symbols_F77=yes
13690
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'
13691
# Note: this linker hardcodes the directories in LIBPATH if there
13692
# are no directories specified by -L.
13693
hardcode_minus_L_F77=yes
13694
if test "$GCC" = yes && test -z "$link_static_flag"; then
13695
# Neither direct hardcoding nor static linking is supported with a
13697
hardcode_direct_F77=unsupported
13702
if test "$host_cpu" = ia64; then
13703
# On IA64, the linker does run time linking by default, so we don't
13704
# have to do anything special.
13705
aix_use_runtimelinking=no
13706
exp_sym_flag='-Bexport'
13709
# If we're using GNU nm, then we don't want the "-C" option.
13710
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13711
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13712
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'
13714
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'
13716
aix_use_runtimelinking=no
13718
# Test if we are trying to use run time linking or normal
13719
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13720
# need to do runtime linking.
13721
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13722
for ld_flag in $LDFLAGS; do
13723
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13724
aix_use_runtimelinking=yes
13730
exp_sym_flag='-bexport'
13731
no_entry_flag='-bnoentry'
13734
# When large executables or shared objects are built, AIX ld can
13735
# have problems creating the table of contents. If linking a library
13736
# or program results in "error TOC overflow" add -mminimal-toc to
13737
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13738
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13740
archive_cmds_F77=''
13741
hardcode_direct_F77=yes
13742
hardcode_libdir_separator_F77=':'
13743
link_all_deplibs_F77=yes
13745
if test "$GCC" = yes; then
13746
case $host_os in aix4.012|aix4.012.*)
13747
# We only want to do this on AIX 4.2 and lower, the check
13748
# below for broken collect2 doesn't work under 4.3+
13749
collect2name=`${CC} -print-prog-name=collect2`
13750
if test -f "$collect2name" && \
13751
strings "$collect2name" | grep resolve_lib_name >/dev/null
13753
# We have reworked collect2
13754
hardcode_direct_F77=yes
13756
# We have old collect2
13757
hardcode_direct_F77=unsupported
13758
# It fails to find uninstalled libraries when the uninstalled
13759
# path is not listed in the libpath. Setting hardcode_minus_L
13760
# to unsupported forces relinking
13761
hardcode_minus_L_F77=yes
13762
hardcode_libdir_flag_spec_F77='-L$libdir'
13763
hardcode_libdir_separator_F77=
13766
shared_flag='-shared'
13769
if test "$host_cpu" = ia64; then
13770
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13771
# chokes on -Wl,-G. The following line is correct:
13774
if test "$aix_use_runtimelinking" = yes; then
13775
shared_flag='${wl}-G'
13777
shared_flag='${wl}-bM:SRE'
13782
# It seems that -bexpall does not export symbols beginning with
13783
# underscore (_), so it is better to generate a list of symbols to export.
13784
always_export_symbols_F77=yes
13785
if test "$aix_use_runtimelinking" = yes; then
13786
# Warning - without using the other runtime loading flags (-brtl),
13787
# -berok will link without error, but may produce a broken library.
13788
allow_undefined_flag_F77='-berok'
13789
# Determine the default libpath from the value encoded in an empty executable.
13790
cat >conftest.$ac_ext <<_ACEOF
13795
rm -f conftest.$ac_objext conftest$ac_exeext
13796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797
(eval $ac_link) 2>conftest.er1
13799
grep -v '^ *+' conftest.er1 >conftest.err
13801
cat conftest.err >&5
13802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803
(exit $ac_status); } &&
13804
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806
(eval $ac_try) 2>&5
13808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809
(exit $ac_status); }; } &&
13810
{ ac_try='test -s conftest$ac_exeext'
13811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812
(eval $ac_try) 2>&5
13814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815
(exit $ac_status); }; }; then
13817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13819
# Check for a 64-bit object if we didn't find anything.
13820
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; }
13823
echo "$as_me: failed program was:" >&5
13824
sed 's/^/| /' conftest.$ac_ext >&5
13827
rm -f conftest.err conftest.$ac_objext \
13828
conftest$ac_exeext conftest.$ac_ext
13829
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13831
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13832
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"
13834
if test "$host_cpu" = ia64; then
13835
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13836
allow_undefined_flag_F77="-z nodefs"
13837
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"
13839
# Determine the default libpath from the value encoded in an empty executable.
13840
cat >conftest.$ac_ext <<_ACEOF
13845
rm -f conftest.$ac_objext conftest$ac_exeext
13846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13847
(eval $ac_link) 2>conftest.er1
13849
grep -v '^ *+' conftest.er1 >conftest.err
13851
cat conftest.err >&5
13852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853
(exit $ac_status); } &&
13854
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856
(eval $ac_try) 2>&5
13858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859
(exit $ac_status); }; } &&
13860
{ ac_try='test -s conftest$ac_exeext'
13861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862
(eval $ac_try) 2>&5
13864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865
(exit $ac_status); }; }; then
13867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13869
# Check for a 64-bit object if we didn't find anything.
13870
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; }
13873
echo "$as_me: failed program was:" >&5
13874
sed 's/^/| /' conftest.$ac_ext >&5
13877
rm -f conftest.err conftest.$ac_objext \
13878
conftest$ac_exeext conftest.$ac_ext
13879
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13881
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882
# Warning - without using the other run time loading flags,
13883
# -berok will link without error, but may produce a broken library.
13884
no_undefined_flag_F77=' ${wl}-bernotok'
13885
allow_undefined_flag_F77=' ${wl}-berok'
13886
# -bexpall does not export symbols beginning with underscore (_)
13887
always_export_symbols_F77=yes
13888
# Exported symbols can be pulled into shared objects from archives
13889
whole_archive_flag_spec_F77=' '
13890
archive_cmds_need_lc_F77=yes
13891
# This is similar to how AIX traditionally builds it's shared libraries.
13892
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'
13898
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)'
13899
hardcode_libdir_flag_spec_F77='-L$libdir'
13900
hardcode_minus_L_F77=yes
13901
# see comment about different semantics on the GNU ld section
13906
export_dynamic_flag_spec_F77=-rdynamic
13909
cygwin* | mingw* | pw32*)
13910
# When not using gcc, we currently assume that we are using
13911
# Microsoft Visual C++.
13912
# hardcode_libdir_flag_spec is actually meaningless, as there is
13913
# no search path for DLLs.
13914
hardcode_libdir_flag_spec_F77=' '
13915
allow_undefined_flag_F77=unsupported
13916
# Tell ltmain to make .lib files, not .a files.
13918
# Tell ltmain to make .dll files, not .so files.
13920
# FIXME: Setting linknames here is a bad hack.
13921
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13922
# The linker will automatically build a .lib file if we build a DLL.
13923
old_archive_From_new_cmds_F77='true'
13924
# FIXME: Should let the user specify the lib program.
13925
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13926
fix_srcfile_path='`cygpath -w "$srcfile"`'
13927
enable_shared_with_static_runtimes_F77=yes
13930
darwin* | rhapsody*)
13931
if test "$GXX" = yes ; then
13932
archive_cmds_need_lc_F77=no
13934
rhapsody* | darwin1.[012])
13935
allow_undefined_flag_F77='-undefined suppress'
13938
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13939
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13941
case ${MACOSX_DEPLOYMENT_TARGET} in
13943
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13946
allow_undefined_flag_F77='-undefined dynamic_lookup'
13952
lt_int_apple_cc_single_mod=no
13953
output_verbose_link_cmd='echo'
13954
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13955
lt_int_apple_cc_single_mod=yes
13957
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13958
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13960
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13962
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13963
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13964
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13965
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13967
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13969
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}'
13970
hardcode_direct_F77=no
13971
hardcode_automatic_F77=yes
13972
hardcode_shlibpath_var_F77=unsupported
13973
whole_archive_flag_spec_F77='-all_load $convenience'
13974
link_all_deplibs_F77=yes
13981
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982
hardcode_libdir_flag_spec_F77='-L$libdir'
13983
hardcode_shlibpath_var_F77=no
13990
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13991
# support. Future versions do this automatically, but an explicit c++rt0.o
13992
# does not break anything, and helps significantly (at the cost of a little
13995
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13996
hardcode_libdir_flag_spec_F77='-R$libdir'
13997
hardcode_direct_F77=yes
13998
hardcode_shlibpath_var_F77=no
14001
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14003
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14004
hardcode_direct_F77=yes
14005
hardcode_minus_L_F77=yes
14006
hardcode_shlibpath_var_F77=no
14009
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14010
freebsd* | kfreebsd*-gnu)
14011
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14012
hardcode_libdir_flag_spec_F77='-R$libdir'
14013
hardcode_direct_F77=yes
14014
hardcode_shlibpath_var_F77=no
14018
if test "$GCC" = yes; then
14019
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'
14021
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'
14023
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14024
hardcode_libdir_separator_F77=:
14025
hardcode_direct_F77=yes
14027
# hardcode_minus_L: Not really in the search PATH,
14028
# but as the default location of the library.
14029
hardcode_minus_L_F77=yes
14030
export_dynamic_flag_spec_F77='${wl}-E'
14034
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14035
case "$host_cpu" in
14037
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14040
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14044
case "$host_cpu" in
14046
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14049
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14053
if test "$with_gnu_ld" = no; then
14054
case "$host_cpu" in
14056
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14057
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14058
hardcode_libdir_separator_F77=:
14059
hardcode_direct_F77=no
14060
hardcode_shlibpath_var_F77=no
14063
hardcode_libdir_flag_spec_F77='-L$libdir'
14064
hardcode_direct_F77=no
14065
hardcode_shlibpath_var_F77=no
14067
# hardcode_minus_L: Not really in the search PATH,
14068
# but as the default location of the library.
14069
hardcode_minus_L_F77=yes
14072
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14073
hardcode_libdir_separator_F77=:
14074
hardcode_direct_F77=yes
14075
export_dynamic_flag_spec_F77='${wl}-E'
14077
# hardcode_minus_L: Not really in the search PATH,
14078
# but as the default location of the library.
14079
hardcode_minus_L_F77=yes
14085
irix5* | irix6* | nonstopux*)
14086
if test "$GCC" = yes; then
14087
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'
14089
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'
14090
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14092
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14093
hardcode_libdir_separator_F77=:
14094
link_all_deplibs_F77=yes
14097
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14098
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14099
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14101
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14103
hardcode_libdir_flag_spec_F77='-R$libdir'
14104
hardcode_direct_F77=yes
14105
hardcode_shlibpath_var_F77=no
14109
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14110
hardcode_direct_F77=yes
14111
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14112
hardcode_libdir_separator_F77=:
14113
hardcode_shlibpath_var_F77=no
14117
hardcode_direct_F77=yes
14118
hardcode_shlibpath_var_F77=no
14119
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14120
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14121
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14122
export_dynamic_flag_spec_F77='${wl}-E'
14125
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14126
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14127
hardcode_libdir_flag_spec_F77='-R$libdir'
14130
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14131
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14138
hardcode_libdir_flag_spec_F77='-L$libdir'
14139
hardcode_minus_L_F77=yes
14140
allow_undefined_flag_F77=unsupported
14141
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'
14142
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14146
if test "$GCC" = yes; then
14147
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14148
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'
14150
allow_undefined_flag_F77=' -expect_unresolved \*'
14151
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'
14153
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14154
hardcode_libdir_separator_F77=:
14157
osf4* | osf5*) # as osf3* with the addition of -msym flag
14158
if test "$GCC" = yes; then
14159
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14160
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'
14161
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14163
allow_undefined_flag_F77=' -expect_unresolved \*'
14164
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'
14165
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~
14166
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14168
# Both c and cxx compiler support -rpath directly
14169
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14171
hardcode_libdir_separator_F77=:
14175
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14176
hardcode_shlibpath_var_F77=no
14177
export_dynamic_flag_spec_F77='${wl}-Bexport'
14178
runpath_var=LD_RUN_PATH
14179
hardcode_runpath_var=yes
14183
no_undefined_flag_F77=' -z text'
14184
if test "$GCC" = yes; then
14185
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14186
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14187
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14189
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14190
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14191
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14193
hardcode_libdir_flag_spec_F77='-R$libdir'
14194
hardcode_shlibpath_var_F77=no
14196
solaris2.[0-5] | solaris2.[0-5].*) ;;
14197
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14198
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14200
link_all_deplibs_F77=yes
14204
if test "x$host_vendor" = xsequent; then
14205
# Use $CC to link under sequent, because it throws in some extra .o
14206
# files that make .init and .fini sections work.
14207
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14209
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14211
hardcode_libdir_flag_spec_F77='-L$libdir'
14212
hardcode_direct_F77=yes
14213
hardcode_minus_L_F77=yes
14214
hardcode_shlibpath_var_F77=no
14218
case $host_vendor in
14220
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221
hardcode_direct_F77=yes # is this really true???
14224
## LD is ld it makes a PLAMLIB
14225
## CC just makes a GrossModule.
14226
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14227
reload_cmds_F77='$CC -r -o $output$reload_objs'
14228
hardcode_direct_F77=no
14231
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14235
runpath_var='LD_RUN_PATH'
14236
hardcode_shlibpath_var_F77=no
14240
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14241
hardcode_shlibpath_var_F77=no
14242
export_dynamic_flag_spec_F77='-Bexport'
14246
if test -d /usr/nec; then
14247
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248
hardcode_shlibpath_var_F77=no
14249
runpath_var=LD_RUN_PATH
14250
hardcode_runpath_var=yes
14256
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14257
hardcode_direct_F77=yes
14258
hardcode_minus_L_F77=no
14259
hardcode_shlibpath_var_F77=no
14260
hardcode_runpath_var=yes
14261
runpath_var=LD_RUN_PATH
14264
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14265
no_undefined_flag_F77='${wl}-z ${wl}text'
14266
if test "$GCC" = yes; then
14267
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271
runpath_var='LD_RUN_PATH'
14272
hardcode_shlibpath_var_F77=no
14276
no_undefined_flag_F77=' -z text'
14277
# $CC -shared without GNU ld will not create a library from C++
14278
# object files and a static libstdc++, better avoid it by now
14279
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14280
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14281
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14282
hardcode_libdir_flag_spec_F77=
14283
hardcode_shlibpath_var_F77=no
14284
runpath_var='LD_RUN_PATH'
14288
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289
hardcode_libdir_flag_spec_F77='-L$libdir'
14290
hardcode_shlibpath_var_F77=no
14299
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14300
echo "${ECHO_T}$ld_shlibs_F77" >&6
14301
test "$ld_shlibs_F77" = no && can_build_shared=no
14303
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14304
if test "$GCC" = yes; then
14305
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14309
# Do we need to explicitly link libc?
14311
case "x$archive_cmds_need_lc_F77" in
14313
# Assume -lc should be added
14314
archive_cmds_need_lc_F77=yes
14316
if test "$enable_shared" = yes && test "$GCC" = yes; then
14317
case $archive_cmds_F77 in
14319
# FIXME: we may have to deal with multi-command sequences.
14322
# Test whether the compiler implicitly links with -lc since on some
14323
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14324
# to ld, don't add -lc before -lgcc.
14325
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14326
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14328
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331
(eval $ac_compile) 2>&5
14333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334
(exit $ac_status); } 2>conftest.err; then
14337
libobjs=conftest.$ac_objext
14339
wl=$lt_prog_compiler_wl_F77
14345
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14346
allow_undefined_flag_F77=
14347
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14348
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351
(exit $ac_status); }
14353
archive_cmds_need_lc_F77=no
14355
archive_cmds_need_lc_F77=yes
14357
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14359
cat conftest.err 1>&5
14362
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14363
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14370
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14371
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14372
library_names_spec=
14373
libname_spec='lib$name'
14377
postuninstall_cmds=
14381
shlibpath_overrides_runpath=unknown
14383
dynamic_linker="$host_os ld.so"
14384
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14385
if test "$GCC" = yes; then
14386
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14387
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14388
# if the path contains ";" then we assume it to be the separator
14389
# otherwise default to the standard path separator (i.e. ":") - it is
14390
# assumed that no part of a normal pathname contains ";" but that should
14391
# okay in the real world where ";" in dirpaths is itself problematic.
14392
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14394
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14397
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14399
need_lib_prefix=unknown
14400
hardcode_into_libs=no
14402
# when you set need_version to no, make sure it does not cause -set_version
14403
# flags to be left without arguments
14404
need_version=unknown
14409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14410
shlibpath_var=LIBPATH
14412
# AIX 3 has no versioning support, so we append a major version to the name.
14413
soname_spec='${libname}${release}${shared_ext}$major'
14420
hardcode_into_libs=yes
14421
if test "$host_cpu" = ia64; then
14422
# AIX 5 supports IA64
14423
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14424
shlibpath_var=LD_LIBRARY_PATH
14426
# With GCC up to 2.95.x, collect2 would create an import file
14427
# for dependence libraries. The import file would start with
14428
# the line `#! .'. This would cause the generated library to
14429
# depend on `.', always an invalid library. This was fixed in
14430
# development snapshots of GCC prior to 3.0.
14432
aix4 | aix4.[01] | aix4.[01].*)
14433
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14435
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14438
can_build_shared=no
14442
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14443
# soname into executable. Probably we can add versioning support to
14444
# collect2, so additional links can be useful in future.
14445
if test "$aix_use_runtimelinking" = yes; then
14446
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14447
# instead of lib<name>.a to let people know that these are not
14448
# typical AIX shared libraries.
14449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451
# We preserve .a as extension for shared libraries through AIX4.2
14452
# and later when we are not doing run time linking.
14453
library_names_spec='${libname}${release}.a $libname.a'
14454
soname_spec='${libname}${release}${shared_ext}$major'
14456
shlibpath_var=LIBPATH
14461
library_names_spec='$libname.ixlibrary $libname.a'
14462
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14463
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'
14467
library_names_spec='${libname}${shared_ext}'
14468
dynamic_linker="$host_os ld.so"
14469
shlibpath_var=LIBRARY_PATH
14475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476
soname_spec='${libname}${release}${shared_ext}$major'
14477
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14478
shlibpath_var=LD_LIBRARY_PATH
14479
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14480
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14481
# the default ld.so.conf also contains /usr/contrib/lib and
14482
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14483
# libtool to hard-code these into programs
14486
cygwin* | mingw* | pw32*)
14487
version_type=windows
14492
case $GCC,$host_os in
14493
yes,cygwin* | yes,mingw* | yes,pw32*)
14494
library_names_spec='$libname.dll.a'
14495
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14496
postinstall_cmds='base_file=`basename \${file}`~
14497
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14498
dldir=$destdir/`dirname \$dlpath`~
14499
test -d \$dldir || mkdir -p \$dldir~
14500
$install_prog $dir/$dlname \$dldir/$dlname'
14501
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14502
dlpath=$dir/\$dldll~
14504
shlibpath_overrides_runpath=yes
14508
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14509
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14510
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14513
# MinGW DLLs use traditional 'lib' prefix
14514
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14515
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14516
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14517
# It is most probably a Windows format PATH printed by
14518
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14519
# path with ; separators, and with drive letters. We can handle the
14520
# drive letters (cygwin fileutils understands them), so leave them,
14521
# especially as we might pass files found there to a mingw objdump,
14522
# which wouldn't understand a cygwinified path. Ahh.
14523
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14525
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14529
# pw32 DLLs use 'pw' prefix rather than 'lib'
14530
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14536
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14539
dynamic_linker='Win32 ld.exe'
14540
# FIXME: first we should search . and the directory the executable is in
14544
darwin* | rhapsody*)
14545
dynamic_linker="$host_os dyld"
14546
version_type=darwin
14549
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14550
soname_spec='${libname}${release}${major}$shared_ext'
14551
shlibpath_overrides_runpath=yes
14552
shlibpath_var=DYLD_LIBRARY_PATH
14553
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14554
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14555
if test "$GCC" = yes; then
14556
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"`
14558
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14560
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14568
soname_spec='${libname}${release}${shared_ext}$major'
14569
shlibpath_var=LD_LIBRARY_PATH
14580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14581
soname_spec='${libname}${release}${shared_ext}$major'
14582
shlibpath_var=LD_LIBRARY_PATH
14583
shlibpath_overrides_runpath=no
14584
hardcode_into_libs=yes
14585
dynamic_linker='GNU ld.so'
14589
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14590
version_type=freebsd-$objformat
14591
case $version_type in
14593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14598
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14602
shlibpath_var=LD_LIBRARY_PATH
14605
shlibpath_overrides_runpath=yes
14607
freebsd3.01* | freebsdelf3.01*)
14608
shlibpath_overrides_runpath=yes
14609
hardcode_into_libs=yes
14612
shlibpath_overrides_runpath=no
14613
hardcode_into_libs=yes
14622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14623
soname_spec='${libname}${release}${shared_ext}$major'
14624
shlibpath_var=LD_LIBRARY_PATH
14625
hardcode_into_libs=yes
14628
hpux9* | hpux10* | hpux11*)
14629
# Give a soname corresponding to the major version so that dld.sl refuses to
14630
# link against other versions.
14634
case "$host_cpu" in
14637
hardcode_into_libs=yes
14638
dynamic_linker="$host_os dld.so"
14639
shlibpath_var=LD_LIBRARY_PATH
14640
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642
soname_spec='${libname}${release}${shared_ext}$major'
14643
if test "X$HPUX_IA64_MODE" = X32; then
14644
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14646
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14648
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14652
hardcode_into_libs=yes
14653
dynamic_linker="$host_os dld.sl"
14654
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14655
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657
soname_spec='${libname}${release}${shared_ext}$major'
14658
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14659
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14663
dynamic_linker="$host_os dld.sl"
14664
shlibpath_var=SHLIB_PATH
14665
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667
soname_spec='${libname}${release}${shared_ext}$major'
14670
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14671
postinstall_cmds='chmod 555 $lib'
14674
irix5* | irix6* | nonstopux*)
14676
nonstopux*) version_type=nonstopux ;;
14678
if test "$lt_cv_prog_gnu_ld" = yes; then
14686
soname_spec='${libname}${release}${shared_ext}$major'
14687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14689
irix5* | nonstopux*)
14690
libsuff= shlibsuff=
14693
case $LD in # libtool.m4 will add one of these switches to LD
14694
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14695
libsuff= shlibsuff= libmagic=32-bit;;
14696
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14697
libsuff=32 shlibsuff=N32 libmagic=N32;;
14698
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14699
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14700
*) libsuff= shlibsuff= libmagic=never-match;;
14704
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14705
shlibpath_overrides_runpath=no
14706
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14707
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14708
hardcode_into_libs=yes
14711
# No shared lib support for Linux oldld, aout, or coff.
14712
linux*oldld* | linux*aout* | linux*coff*)
14716
# This must be Linux ELF.
14721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722
soname_spec='${libname}${release}${shared_ext}$major'
14723
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14724
shlibpath_var=LD_LIBRARY_PATH
14725
shlibpath_overrides_runpath=no
14726
# This implies no fast_install, which is unacceptable.
14727
# Some rework will be needed to allow for fast_install
14728
# before this can be enabled.
14729
hardcode_into_libs=yes
14731
# Append ld.so.conf contents to the search path
14732
if test -f /etc/ld.so.conf; then
14733
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14734
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14737
# We used to test for /lib/ld.so.1 and disable shared libraries on
14738
# powerpc, because MkLinux only supported shared libraries with the
14739
# GNU dynamic linker. Since this was broken with cross compilers,
14740
# most powerpc-linux boxes support dynamic linking these days and
14741
# people can always --disable-shared, the test was removed, and we
14742
# assume the GNU/Linux dynamic linker is in use.
14743
dynamic_linker='GNU/Linux ld.so'
14750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14751
soname_spec='${libname}${release}${shared_ext}$major'
14752
shlibpath_var=LD_LIBRARY_PATH
14753
shlibpath_overrides_runpath=no
14754
hardcode_into_libs=yes
14755
dynamic_linker='NetBSD ld.elf_so'
14762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763
soname_spec='${libname}${release}${shared_ext}$major'
14764
shlibpath_var=LD_LIBRARY_PATH
14765
shlibpath_overrides_runpath=no
14766
hardcode_into_libs=yes
14767
dynamic_linker='GNU ld.so'
14774
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777
dynamic_linker='NetBSD (a.out) ld.so'
14779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780
soname_spec='${libname}${release}${shared_ext}$major'
14781
dynamic_linker='NetBSD ld.elf_so'
14783
shlibpath_var=LD_LIBRARY_PATH
14784
shlibpath_overrides_runpath=yes
14785
hardcode_into_libs=yes
14790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791
shlibpath_var=LD_LIBRARY_PATH
14792
shlibpath_overrides_runpath=yes
14799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800
soname_spec='${libname}${release}${shared_ext}$major'
14801
shlibpath_var=LD_LIBRARY_PATH
14802
shlibpath_overrides_runpath=yes
14809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811
shlibpath_var=LD_LIBRARY_PATH
14812
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14814
openbsd2.[89] | openbsd2.[89].*)
14815
shlibpath_overrides_runpath=no
14818
shlibpath_overrides_runpath=yes
14822
shlibpath_overrides_runpath=yes
14827
libname_spec='$name'
14830
library_names_spec='$libname${shared_ext} $libname.a'
14831
dynamic_linker='OS/2 ld.exe'
14832
shlibpath_var=LIBPATH
14835
osf3* | osf4* | osf5*)
14839
soname_spec='${libname}${release}${shared_ext}$major'
14840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841
shlibpath_var=LD_LIBRARY_PATH
14842
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14843
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14848
soname_spec='${libname}${release}${shared_ext}$major'
14849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850
shlibpath_var=LD_LIBRARY_PATH
14857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858
soname_spec='${libname}${release}${shared_ext}$major'
14859
shlibpath_var=LD_LIBRARY_PATH
14860
shlibpath_overrides_runpath=yes
14861
hardcode_into_libs=yes
14862
# ldd complains unless libraries are executable
14863
postinstall_cmds='chmod +x $lib'
14868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14869
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14870
shlibpath_var=LD_LIBRARY_PATH
14871
shlibpath_overrides_runpath=yes
14872
if test "$with_gnu_ld" = yes; then
14878
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881
soname_spec='${libname}${release}${shared_ext}$major'
14882
shlibpath_var=LD_LIBRARY_PATH
14883
case $host_vendor in
14885
shlibpath_overrides_runpath=no
14887
export_dynamic_flag_spec='${wl}-Blargedynsym'
14888
runpath_var=LD_RUN_PATH
14896
shlibpath_overrides_runpath=no
14897
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14903
if test -d /usr/nec ;then
14905
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14906
soname_spec='$libname${shared_ext}.$major'
14907
shlibpath_var=LD_LIBRARY_PATH
14913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914
soname_spec='${libname}${release}${shared_ext}$major'
14915
shlibpath_var=LD_LIBRARY_PATH
14922
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14923
echo "${ECHO_T}$dynamic_linker" >&6
14924
test "$dynamic_linker" = no && can_build_shared=no
14926
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14927
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14928
hardcode_action_F77=
14929
if test -n "$hardcode_libdir_flag_spec_F77" || \
14930
test -n "$runpath_var F77" || \
14931
test "X$hardcode_automatic_F77"="Xyes" ; then
14933
# We can hardcode non-existant directories.
14934
if test "$hardcode_direct_F77" != no &&
14935
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14936
# have to relink, otherwise we might link with an installed library
14937
# when we should be linking with a yet-to-be-installed one
14938
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14939
test "$hardcode_minus_L_F77" != no; then
14940
# Linking always hardcodes the temporary library directory.
14941
hardcode_action_F77=relink
14943
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14944
hardcode_action_F77=immediate
14947
# We cannot hardcode anything, or else we can only hardcode existing
14949
hardcode_action_F77=unsupported
14951
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14952
echo "${ECHO_T}$hardcode_action_F77" >&6
14954
if test "$hardcode_action_F77" = relink; then
14955
# Fast installation is not supported
14956
enable_fast_install=no
14957
elif test "$shlibpath_overrides_runpath" = yes ||
14958
test "$enable_shared" = no; then
14959
# Fast installation is not necessary
14960
enable_fast_install=needless
14965
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14966
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14967
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14968
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14969
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14970
echo "$as_me:$LINENO: result: yes" >&5
14971
echo "${ECHO_T}yes" >&6
14973
# FIXME - insert some real tests, host_os isn't really good enough
14976
if test -n "$STRIP" ; then
14977
striplib="$STRIP -x"
14978
echo "$as_me:$LINENO: result: yes" >&5
14979
echo "${ECHO_T}yes" >&6
14981
echo "$as_me:$LINENO: result: no" >&5
14982
echo "${ECHO_T}no" >&6
14986
echo "$as_me:$LINENO: result: no" >&5
14987
echo "${ECHO_T}no" >&6
14994
# The else clause should only fire when bootstrapping the
14995
# libtool distribution, otherwise you forgot to ship ltmain.sh
14996
# with your package, and you will get complaints that there are
14997
# no rules to generate ltmain.sh.
14998
if test -f "$ltmain"; then
14999
# See if we are running on zsh, and set the options which allow our commands through
15000
# without removal of \ escapes.
15001
if test -n "${ZSH_VERSION+set}" ; then
15002
setopt NO_GLOB_SUBST
15004
# Now quote all the things that may contain metacharacters while being
15005
# careful not to overquote the AC_SUBSTed values. We take copies of the
15006
# variables and quote the copies for generation of the libtool script.
15007
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15009
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15010
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15011
deplibs_check_method reload_flag reload_cmds need_locks \
15012
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15013
lt_cv_sys_global_symbol_to_c_name_address \
15014
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15015
old_postinstall_cmds old_postuninstall_cmds \
15019
lt_prog_compiler_wl_F77 \
15020
lt_prog_compiler_pic_F77 \
15021
lt_prog_compiler_static_F77 \
15022
lt_prog_compiler_no_builtin_flag_F77 \
15023
export_dynamic_flag_spec_F77 \
15024
thread_safe_flag_spec_F77 \
15025
whole_archive_flag_spec_F77 \
15026
enable_shared_with_static_runtimes_F77 \
15027
old_archive_cmds_F77 \
15028
old_archive_from_new_cmds_F77 \
15029
predep_objects_F77 \
15030
postdep_objects_F77 \
15033
compiler_lib_search_path_F77 \
15035
archive_expsym_cmds_F77 \
15036
postinstall_cmds_F77 \
15037
postuninstall_cmds_F77 \
15038
old_archive_from_expsyms_cmds_F77 \
15039
allow_undefined_flag_F77 \
15040
no_undefined_flag_F77 \
15041
export_symbols_cmds_F77 \
15042
hardcode_libdir_flag_spec_F77 \
15043
hardcode_libdir_flag_spec_ld_F77 \
15044
hardcode_libdir_separator_F77 \
15045
hardcode_automatic_F77 \
15047
module_expsym_cmds_F77 \
15048
lt_cv_prog_compiler_c_o_F77 \
15049
exclude_expsyms_F77 \
15050
include_expsyms_F77; do
15053
old_archive_cmds_F77 | \
15054
old_archive_from_new_cmds_F77 | \
15055
archive_cmds_F77 | \
15056
archive_expsym_cmds_F77 | \
15057
module_cmds_F77 | \
15058
module_expsym_cmds_F77 | \
15059
old_archive_from_expsyms_cmds_F77 | \
15060
export_symbols_cmds_F77 | \
15061
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15062
postinstall_cmds | postuninstall_cmds | \
15063
old_postinstall_cmds | old_postuninstall_cmds | \
15064
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15065
# Double-quote double-evaled strings.
15066
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15069
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15075
*'\$0 --fallback-echo"')
15076
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15082
cat <<__EOF__ >> "$cfgfile"
15083
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15085
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15087
# Shell to use when invoking shell scripts.
15090
# Whether or not to build shared libraries.
15091
build_libtool_libs=$enable_shared
15093
# Whether or not to build static libraries.
15094
build_old_libs=$enable_static
15096
# Whether or not to add -lc for building shared libraries.
15097
build_libtool_need_lc=$archive_cmds_need_lc_F77
15099
# Whether or not to disallow shared libs when runtime libs are static
15100
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15102
# Whether or not to optimize for fast installation.
15103
fast_install=$enable_fast_install
15106
host_alias=$host_alias
15109
# An echo program that does not interpret backslashes.
15114
AR_FLAGS=$lt_AR_FLAGS
15119
# A language-specific compiler.
15120
CC=$lt_compiler_F77
15122
# Is the compiler the GNU C compiler?
15128
# The linker used to build libraries.
15131
# Whether we need hard or soft links.
15134
# A BSD-compatible nm program.
15137
# A symbol stripping program
15140
# Used to examine libraries when file_magic_cmd begins "file"
15141
MAGIC_CMD=$MAGIC_CMD
15143
# Used on cygwin: DLL creation program.
15146
# Used on cygwin: object dumper.
15149
# Used on cygwin: assembler.
15152
# The name of the directory that contains temporary libtool files.
15155
# How to create reloadable object files.
15156
reload_flag=$lt_reload_flag
15157
reload_cmds=$lt_reload_cmds
15159
# How to pass a linker flag through the compiler.
15160
wl=$lt_lt_prog_compiler_wl_F77
15162
# Object file suffix (normally "o").
15163
objext="$ac_objext"
15165
# Old archive suffix (normally "a").
15168
# Shared library suffix (normally ".so").
15169
shrext_cmds='$shrext_cmds'
15171
# Executable file suffix (normally "").
15174
# Additional compiler flags for building library objects.
15175
pic_flag=$lt_lt_prog_compiler_pic_F77
15178
# What is the maximum length of a command?
15179
max_cmd_len=$lt_cv_sys_max_cmd_len
15181
# Does compiler simultaneously support -c and -o options?
15182
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15184
# Must we lock files when doing compilation ?
15185
need_locks=$lt_need_locks
15187
# Do we need the lib prefix for modules?
15188
need_lib_prefix=$need_lib_prefix
15190
# Do we need a version for libraries?
15191
need_version=$need_version
15193
# Whether dlopen is supported.
15194
dlopen_support=$enable_dlopen
15196
# Whether dlopen of programs is supported.
15197
dlopen_self=$enable_dlopen_self
15199
# Whether dlopen of statically linked programs is supported.
15200
dlopen_self_static=$enable_dlopen_self_static
15202
# Compiler flag to prevent dynamic linking.
15203
link_static_flag=$lt_lt_prog_compiler_static_F77
15205
# Compiler flag to turn off builtin functions.
15206
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15208
# Compiler flag to allow reflexive dlopens.
15209
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15211
# Compiler flag to generate shared objects directly from archives.
15212
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15214
# Compiler flag to generate thread-safe objects.
15215
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15217
# Library versioning type.
15218
version_type=$version_type
15220
# Format of library name prefix.
15221
libname_spec=$lt_libname_spec
15223
# List of archive names. First name is the real one, the rest are links.
15224
# The last name is the one that the linker finds with -lNAME.
15225
library_names_spec=$lt_library_names_spec
15227
# The coded name of the library, if different from the real name.
15228
soname_spec=$lt_soname_spec
15230
# Commands used to build and install an old-style archive.
15232
old_archive_cmds=$lt_old_archive_cmds_F77
15233
old_postinstall_cmds=$lt_old_postinstall_cmds
15234
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15236
# Create an old-style archive from a shared archive.
15237
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15239
# Create a temporary old-style archive to link instead of a shared archive.
15240
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15242
# Commands used to build and install a shared archive.
15243
archive_cmds=$lt_archive_cmds_F77
15244
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15245
postinstall_cmds=$lt_postinstall_cmds
15246
postuninstall_cmds=$lt_postuninstall_cmds
15248
# Commands used to build a loadable module (assumed same as above if empty)
15249
module_cmds=$lt_module_cmds_F77
15250
module_expsym_cmds=$lt_module_expsym_cmds_F77
15252
# Commands to strip libraries.
15253
old_striplib=$lt_old_striplib
15254
striplib=$lt_striplib
15256
# Dependencies to place before the objects being linked to create a
15258
predep_objects=$lt_predep_objects_F77
15260
# Dependencies to place after the objects being linked to create a
15262
postdep_objects=$lt_postdep_objects_F77
15264
# Dependencies to place before the objects being linked to create a
15266
predeps=$lt_predeps_F77
15268
# Dependencies to place after the objects being linked to create a
15270
postdeps=$lt_postdeps_F77
15272
# The library search path used internally by the compiler when linking
15273
# a shared library.
15274
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15276
# Method to check whether dependent libraries are shared objects.
15277
deplibs_check_method=$lt_deplibs_check_method
15279
# Command to use when deplibs_check_method == file_magic.
15280
file_magic_cmd=$lt_file_magic_cmd
15282
# Flag that allows shared libraries with undefined symbols to be built.
15283
allow_undefined_flag=$lt_allow_undefined_flag_F77
15285
# Flag that forces no undefined symbols.
15286
no_undefined_flag=$lt_no_undefined_flag_F77
15288
# Commands used to finish a libtool library installation in a directory.
15289
finish_cmds=$lt_finish_cmds
15291
# Same as above, but a single script fragment to be evaled but not shown.
15292
finish_eval=$lt_finish_eval
15294
# Take the output of nm and produce a listing of raw symbols and C names.
15295
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15297
# Transform the output of nm in a proper C declaration
15298
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15300
# Transform the output of nm in a C name address pair
15301
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15303
# This is the shared library runtime path variable.
15304
runpath_var=$runpath_var
15306
# This is the shared library path variable.
15307
shlibpath_var=$shlibpath_var
15309
# Is shlibpath searched before the hard-coded library search path?
15310
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15312
# How to hardcode a shared library path into an executable.
15313
hardcode_action=$hardcode_action_F77
15315
# Whether we should hardcode library paths into libraries.
15316
hardcode_into_libs=$hardcode_into_libs
15318
# Flag to hardcode \$libdir into a binary during linking.
15319
# This must work even if \$libdir does not exist.
15320
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15322
# If ld is used when linking, flag to hardcode \$libdir into
15323
# a binary during linking. This must work even if \$libdir does
15325
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15327
# Whether we need a single -rpath flag with a separated argument.
15328
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15330
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15331
# resulting binary.
15332
hardcode_direct=$hardcode_direct_F77
15334
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15335
# resulting binary.
15336
hardcode_minus_L=$hardcode_minus_L_F77
15338
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15339
# the resulting binary.
15340
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15342
# Set to yes if building a shared library automatically hardcodes DIR into the library
15343
# and all subsequent libraries and executables linked against it.
15344
hardcode_automatic=$hardcode_automatic_F77
15346
# Variables whose values should be saved in libtool wrapper scripts and
15347
# restored at relink time.
15348
variables_saved_for_relink="$variables_saved_for_relink"
15350
# Whether libtool must link a program against all its dependency libraries.
15351
link_all_deplibs=$link_all_deplibs_F77
15353
# Compile-time system search path for libraries
15354
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15356
# Run-time system search path for libraries
15357
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15359
# Fix the shell variable \$srcfile for the compiler.
15360
fix_srcfile_path="$fix_srcfile_path_F77"
15362
# Set to yes if exported symbols are required.
15363
always_export_symbols=$always_export_symbols_F77
15365
# The commands to list exported symbols.
15366
export_symbols_cmds=$lt_export_symbols_cmds_F77
15368
# The commands to extract the exported symbol list from a shared archive.
15369
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15371
# Symbols that should not be listed in the preloaded symbols.
15372
exclude_expsyms=$lt_exclude_expsyms_F77
15374
# Symbols that must always be exported.
15375
include_expsyms=$lt_include_expsyms_F77
15377
# ### END LIBTOOL TAG CONFIG: $tagname
15383
# If there is no Makefile yet, we rely on a make rule to execute
15384
# `config.status --recheck' to rerun these tests and create the
15385
# libtool script then.
15386
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15387
if test -f "$ltmain_in"; then
15388
test -f Makefile && make "$ltmain"
15394
ac_cpp='$CPP $CPPFLAGS'
15395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15407
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15411
# Source file extension for Java test sources.
15414
# Object file extension for compiled Java test sources.
15418
# Code to be used in simple compile tests
15419
lt_simple_compile_test_code="class foo {}\n"
15421
# Code to be used in simple link tests
15422
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15424
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15426
# If no C compiler was specified, use CC.
15429
# Allow CC to be a program name with arguments.
15433
# Allow CC to be a program name with arguments.
15439
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15440
archive_cmds_need_lc_GCJ=no
15443
lt_prog_compiler_no_builtin_flag_GCJ=
15445
if test "$GCC" = yes; then
15446
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15449
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15450
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15451
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15452
echo $ECHO_N "(cached) $ECHO_C" >&6
15454
lt_cv_prog_compiler_rtti_exceptions=no
15455
ac_outfile=conftest.$ac_objext
15456
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15457
lt_compiler_flag="-fno-rtti -fno-exceptions"
15458
# Insert the option either (1) after the last *FLAGS variable, or
15459
# (2) before a word containing "conftest.", or (3) at the end.
15460
# Note that $ac_compile itself does not contain backslashes and begins
15461
# with a dollar sign (not a hyphen), so the echo should work correctly.
15462
# The option is referenced via a variable to avoid confusing sed.
15463
lt_compile=`echo "$ac_compile" | $SED \
15464
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15465
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466
-e 's:$: $lt_compiler_flag:'`
15467
(eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
15468
(eval "$lt_compile" 2>conftest.err)
15470
cat conftest.err >&5
15471
echo "$as_me:15471: \$? = $ac_status" >&5
15472
if (exit $ac_status) && test -s "$ac_outfile"; then
15473
# The compiler can only warn and ignore the option if not recognized
15474
# So say no if there are warnings
15475
if test ! -s conftest.err; then
15476
lt_cv_prog_compiler_rtti_exceptions=yes
15482
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15485
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15493
lt_prog_compiler_wl_GCJ=
15494
lt_prog_compiler_pic_GCJ=
15495
lt_prog_compiler_static_GCJ=
15497
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15498
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15500
if test "$GCC" = yes; then
15501
lt_prog_compiler_wl_GCJ='-Wl,'
15502
lt_prog_compiler_static_GCJ='-static'
15506
# All AIX code is PIC.
15507
if test "$host_cpu" = ia64; then
15508
# AIX 5 now supports IA64 processor
15509
lt_prog_compiler_static_GCJ='-Bstatic'
15514
# FIXME: we need at least 68020 code to build shared libraries, but
15515
# adding the `-m68020' flag to GCC prevents building anything better,
15517
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15520
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15521
# PIC is the default for these OSes.
15524
mingw* | pw32* | os2*)
15525
# This hack is so that the source file can tell whether it is being
15526
# built for inclusion in a dll (and should export symbols for example).
15527
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15530
darwin* | rhapsody*)
15531
# PIC is the default on this platform
15532
# Common symbols not allowed in MH_DYLIB files
15533
lt_prog_compiler_pic_GCJ='-fno-common'
15537
# Just because we use GCC doesn't mean we suddenly get shared libraries
15538
# on systems that don't support them.
15539
lt_prog_compiler_can_build_shared_GCJ=no
15544
if test -d /usr/nec; then
15545
lt_prog_compiler_pic_GCJ=-Kconform_pic
15550
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15551
# not for PA HP-UX.
15552
case "$host_cpu" in
15557
lt_prog_compiler_pic_GCJ='-fPIC'
15563
lt_prog_compiler_pic_GCJ='-fPIC'
15567
# PORTME Check for flag to pass linker flags through the system compiler.
15570
lt_prog_compiler_wl_GCJ='-Wl,'
15571
if test "$host_cpu" = ia64; then
15572
# AIX 5 now supports IA64 processor
15573
lt_prog_compiler_static_GCJ='-Bstatic'
15575
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15579
mingw* | pw32* | os2*)
15580
# This hack is so that the source file can tell whether it is being
15581
# built for inclusion in a dll (and should export symbols for example).
15582
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15585
hpux9* | hpux10* | hpux11*)
15586
lt_prog_compiler_wl_GCJ='-Wl,'
15587
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15588
# not for PA HP-UX.
15589
case "$host_cpu" in
15594
lt_prog_compiler_pic_GCJ='+Z'
15597
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15598
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15601
irix5* | irix6* | nonstopux*)
15602
lt_prog_compiler_wl_GCJ='-Wl,'
15603
# PIC (with -KPIC) is the default.
15604
lt_prog_compiler_static_GCJ='-non_shared'
15608
lt_prog_compiler_pic_GCJ='-KPIC'
15609
lt_prog_compiler_static_GCJ='-Bstatic'
15615
lt_prog_compiler_wl_GCJ='-Wl,'
15616
lt_prog_compiler_pic_GCJ='-KPIC'
15617
lt_prog_compiler_static_GCJ='-static'
15620
lt_prog_compiler_wl_GCJ='-Wl,'
15621
# All Alpha code is PIC.
15622
lt_prog_compiler_static_GCJ='-non_shared'
15627
osf3* | osf4* | osf5*)
15628
lt_prog_compiler_wl_GCJ='-Wl,'
15629
# All OSF/1 code is PIC.
15630
lt_prog_compiler_static_GCJ='-non_shared'
15634
lt_prog_compiler_pic_GCJ='-Kpic'
15635
lt_prog_compiler_static_GCJ='-dn'
15639
lt_prog_compiler_wl_GCJ='-Wl,'
15640
lt_prog_compiler_pic_GCJ='-KPIC'
15641
lt_prog_compiler_static_GCJ='-Bstatic'
15645
lt_prog_compiler_wl_GCJ='-Qoption ld '
15646
lt_prog_compiler_pic_GCJ='-PIC'
15647
lt_prog_compiler_static_GCJ='-Bstatic'
15650
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15651
lt_prog_compiler_wl_GCJ='-Wl,'
15652
lt_prog_compiler_pic_GCJ='-KPIC'
15653
lt_prog_compiler_static_GCJ='-Bstatic'
15657
if test -d /usr/nec ;then
15658
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15659
lt_prog_compiler_static_GCJ='-Bstatic'
15664
lt_prog_compiler_pic_GCJ='-pic'
15665
lt_prog_compiler_static_GCJ='-Bstatic'
15669
lt_prog_compiler_can_build_shared_GCJ=no
15674
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15675
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15678
# Check to make sure the PIC flag actually works.
15680
if test -n "$lt_prog_compiler_pic_GCJ"; then
15682
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15683
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15684
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15685
echo $ECHO_N "(cached) $ECHO_C" >&6
15687
lt_prog_compiler_pic_works_GCJ=no
15688
ac_outfile=conftest.$ac_objext
15689
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15690
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15691
# Insert the option either (1) after the last *FLAGS variable, or
15692
# (2) before a word containing "conftest.", or (3) at the end.
15693
# Note that $ac_compile itself does not contain backslashes and begins
15694
# with a dollar sign (not a hyphen), so the echo should work correctly.
15695
# The option is referenced via a variable to avoid confusing sed.
15696
lt_compile=`echo "$ac_compile" | $SED \
15697
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15698
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15699
-e 's:$: $lt_compiler_flag:'`
15700
(eval echo "\"\$as_me:15700: $lt_compile\"" >&5)
15701
(eval "$lt_compile" 2>conftest.err)
15703
cat conftest.err >&5
15704
echo "$as_me:15704: \$? = $ac_status" >&5
15705
if (exit $ac_status) && test -s "$ac_outfile"; then
15706
# The compiler can only warn and ignore the option if not recognized
15707
# So say no if there are warnings
15708
if test ! -s conftest.err; then
15709
lt_prog_compiler_pic_works_GCJ=yes
15715
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15716
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15718
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15719
case $lt_prog_compiler_pic_GCJ in
15721
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15724
lt_prog_compiler_pic_GCJ=
15725
lt_prog_compiler_can_build_shared_GCJ=no
15730
# For platforms which do not support PIC, -DPIC is meaningless:
15732
lt_prog_compiler_pic_GCJ=
15735
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15739
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15740
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15741
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15742
echo $ECHO_N "(cached) $ECHO_C" >&6
15744
lt_cv_prog_compiler_c_o_GCJ=no
15745
$rm -r conftest 2>/dev/null
15749
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751
lt_compiler_flag="-o out/conftest2.$ac_objext"
15752
# Insert the option either (1) after the last *FLAGS variable, or
15753
# (2) before a word containing "conftest.", or (3) at the end.
15754
# Note that $ac_compile itself does not contain backslashes and begins
15755
# with a dollar sign (not a hyphen), so the echo should work correctly.
15756
lt_compile=`echo "$ac_compile" | $SED \
15757
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15758
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15759
-e 's:$: $lt_compiler_flag:'`
15760
(eval echo "\"\$as_me:15760: $lt_compile\"" >&5)
15761
(eval "$lt_compile" 2>out/conftest.err)
15763
cat out/conftest.err >&5
15764
echo "$as_me:15764: \$? = $ac_status" >&5
15765
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15767
# The compiler can only warn and ignore the option if not recognized
15768
# So say no if there are warnings
15769
if test ! -s out/conftest.err; then
15770
lt_cv_prog_compiler_c_o_GCJ=yes
15775
# SGI C++ compiler will create directory out/ii_files/ for
15776
# template instantiation
15777
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15778
$rm out/* && rmdir out
15784
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15785
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15788
hard_links="nottested"
15789
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15790
# do not overwrite the value of need_locks provided by the user
15791
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15792
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15795
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15797
ln conftest.a conftest.b 2>&5 || hard_links=no
15798
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15799
echo "$as_me:$LINENO: result: $hard_links" >&5
15800
echo "${ECHO_T}$hard_links" >&6
15801
if test "$hard_links" = no; then
15802
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15803
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15810
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15811
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15814
allow_undefined_flag_GCJ=
15815
enable_shared_with_static_runtimes_GCJ=no
15817
archive_expsym_cmds_GCJ=
15818
old_archive_From_new_cmds_GCJ=
15819
old_archive_from_expsyms_cmds_GCJ=
15820
export_dynamic_flag_spec_GCJ=
15821
whole_archive_flag_spec_GCJ=
15822
thread_safe_flag_spec_GCJ=
15823
hardcode_libdir_flag_spec_GCJ=
15824
hardcode_libdir_flag_spec_ld_GCJ=
15825
hardcode_libdir_separator_GCJ=
15826
hardcode_direct_GCJ=no
15827
hardcode_minus_L_GCJ=no
15828
hardcode_shlibpath_var_GCJ=unsupported
15829
link_all_deplibs_GCJ=unknown
15830
hardcode_automatic_GCJ=no
15832
module_expsym_cmds_GCJ=
15833
always_export_symbols_GCJ=no
15834
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15835
# include_expsyms should be a list of space-separated symbols to be *always*
15836
# included in the symbol list
15837
include_expsyms_GCJ=
15838
# exclude_expsyms can be an extended regexp of symbols to exclude
15839
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15840
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15841
# as well as any symbol that contains `d'.
15842
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15843
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15844
# platforms (ab)use it in PIC code, but their linkers get confused if
15845
# the symbol is explicitly referenced. Since portable code cannot
15846
# rely on this symbol name, it's probably fine to never include it in
15847
# preloaded symbol tables.
15848
extract_expsyms_cmds=
15851
cygwin* | mingw* | pw32*)
15852
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15853
# When not using gcc, we currently assume that we are using
15854
# Microsoft Visual C++.
15855
if test "$GCC" != yes; then
15865
if test "$with_gnu_ld" = yes; then
15866
# If archive_cmds runs LD, not CC, wlarc should be empty
15869
# See if GNU ld supports shared libraries.
15871
aix3* | aix4* | aix5*)
15872
# On AIX/PPC, the GNU linker is very broken
15873
if test "$host_cpu" != ia64; then
15877
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15878
*** to be unable to reliably create shared libraries on AIX.
15879
*** Therefore, libtool is disabling shared libraries support. If you
15880
*** really care for shared libraries, you may want to modify your PATH
15881
*** so that a non-GNU linker is found, and then restart.
15888
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)'
15889
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15890
hardcode_minus_L_GCJ=yes
15892
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15893
# that the semantics of dynamic libraries on AmigaOS, at least up
15894
# to version 4, is to share data among multiple programs linked
15895
# with the same dynamic library. Since this doesn't match the
15896
# behavior of shared libraries on other platforms, we can't use
15902
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903
allow_undefined_flag_GCJ=unsupported
15904
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15905
# support --undefined. This deserves some investigation. FIXME
15906
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15912
cygwin* | mingw* | pw32*)
15913
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15914
# as there is no search path for DLLs.
15915
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15916
allow_undefined_flag_GCJ=unsupported
15917
always_export_symbols_GCJ=no
15918
enable_shared_with_static_runtimes_GCJ=yes
15919
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15921
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15922
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15923
# If the export-symbols file already is a .def file (1st line
15924
# is EXPORTS), use it as is; otherwise, prepend...
15925
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15926
cp $export_symbols $output_objdir/$soname.def;
15928
echo EXPORTS > $output_objdir/$soname.def;
15929
cat $export_symbols >> $output_objdir/$soname.def;
15931
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15937
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15938
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15939
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15942
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15952
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15953
*** create shared libraries on Solaris systems. Therefore, libtool
15954
*** is disabling shared libraries support. We urge you to upgrade GNU
15955
*** binutils to release 2.9.1 or newer. Another option is to modify
15956
*** your PATH or compiler configuration so that the native linker is
15957
*** used, and then restart.
15960
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15961
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15969
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15971
hardcode_direct_GCJ=yes
15972
hardcode_shlibpath_var_GCJ=no
15976
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15977
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978
archive_cmds_GCJ="$tmp_archive_cmds"
15979
supports_anon_versioning=no
15980
case `$LD -v 2>/dev/null` in
15981
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15982
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15983
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15984
*\ 2.11.*) ;; # other 2.11 versions
15985
*) supports_anon_versioning=yes ;;
15987
if test $supports_anon_versioning = yes; then
15988
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15989
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15990
$echo "local: *; };" >> $output_objdir/$libname.ver~
15991
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15993
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15995
link_all_deplibs_GCJ=no
16002
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16003
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16004
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16011
if test "$ld_shlibs_GCJ" = yes; then
16012
runpath_var=LD_RUN_PATH
16013
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015
# ancient GNU ld didn't support --whole-archive et. al.
16016
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16019
whole_archive_flag_spec_GCJ=
16023
# PORTME fill in a description of your system's linker (not GNU ld)
16026
allow_undefined_flag_GCJ=unsupported
16027
always_export_symbols_GCJ=yes
16028
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'
16029
# Note: this linker hardcodes the directories in LIBPATH if there
16030
# are no directories specified by -L.
16031
hardcode_minus_L_GCJ=yes
16032
if test "$GCC" = yes && test -z "$link_static_flag"; then
16033
# Neither direct hardcoding nor static linking is supported with a
16035
hardcode_direct_GCJ=unsupported
16040
if test "$host_cpu" = ia64; then
16041
# On IA64, the linker does run time linking by default, so we don't
16042
# have to do anything special.
16043
aix_use_runtimelinking=no
16044
exp_sym_flag='-Bexport'
16047
# If we're using GNU nm, then we don't want the "-C" option.
16048
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16049
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16050
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'
16052
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'
16054
aix_use_runtimelinking=no
16056
# Test if we are trying to use run time linking or normal
16057
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16058
# need to do runtime linking.
16059
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16060
for ld_flag in $LDFLAGS; do
16061
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16062
aix_use_runtimelinking=yes
16068
exp_sym_flag='-bexport'
16069
no_entry_flag='-bnoentry'
16072
# When large executables or shared objects are built, AIX ld can
16073
# have problems creating the table of contents. If linking a library
16074
# or program results in "error TOC overflow" add -mminimal-toc to
16075
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16076
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16078
archive_cmds_GCJ=''
16079
hardcode_direct_GCJ=yes
16080
hardcode_libdir_separator_GCJ=':'
16081
link_all_deplibs_GCJ=yes
16083
if test "$GCC" = yes; then
16084
case $host_os in aix4.012|aix4.012.*)
16085
# We only want to do this on AIX 4.2 and lower, the check
16086
# below for broken collect2 doesn't work under 4.3+
16087
collect2name=`${CC} -print-prog-name=collect2`
16088
if test -f "$collect2name" && \
16089
strings "$collect2name" | grep resolve_lib_name >/dev/null
16091
# We have reworked collect2
16092
hardcode_direct_GCJ=yes
16094
# We have old collect2
16095
hardcode_direct_GCJ=unsupported
16096
# It fails to find uninstalled libraries when the uninstalled
16097
# path is not listed in the libpath. Setting hardcode_minus_L
16098
# to unsupported forces relinking
16099
hardcode_minus_L_GCJ=yes
16100
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101
hardcode_libdir_separator_GCJ=
16104
shared_flag='-shared'
16107
if test "$host_cpu" = ia64; then
16108
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16109
# chokes on -Wl,-G. The following line is correct:
16112
if test "$aix_use_runtimelinking" = yes; then
16113
shared_flag='${wl}-G'
16115
shared_flag='${wl}-bM:SRE'
16120
# It seems that -bexpall does not export symbols beginning with
16121
# underscore (_), so it is better to generate a list of symbols to export.
16122
always_export_symbols_GCJ=yes
16123
if test "$aix_use_runtimelinking" = yes; then
16124
# Warning - without using the other runtime loading flags (-brtl),
16125
# -berok will link without error, but may produce a broken library.
16126
allow_undefined_flag_GCJ='-berok'
16127
# Determine the default libpath from the value encoded in an empty executable.
16128
cat >conftest.$ac_ext <<_ACEOF
16131
cat confdefs.h >>conftest.$ac_ext
16132
cat >>conftest.$ac_ext <<_ACEOF
16133
/* end confdefs.h. */
16143
rm -f conftest.$ac_objext conftest$ac_exeext
16144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145
(eval $ac_link) 2>conftest.er1
16147
grep -v '^ *+' conftest.er1 >conftest.err
16149
cat conftest.err >&5
16150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151
(exit $ac_status); } &&
16152
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154
(eval $ac_try) 2>&5
16156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157
(exit $ac_status); }; } &&
16158
{ ac_try='test -s conftest$ac_exeext'
16159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160
(eval $ac_try) 2>&5
16162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163
(exit $ac_status); }; }; then
16165
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16167
# Check for a 64-bit object if we didn't find anything.
16168
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; }
16171
echo "$as_me: failed program was:" >&5
16172
sed 's/^/| /' conftest.$ac_ext >&5
16175
rm -f conftest.err conftest.$ac_objext \
16176
conftest$ac_exeext conftest.$ac_ext
16177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16179
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16180
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"
16182
if test "$host_cpu" = ia64; then
16183
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16184
allow_undefined_flag_GCJ="-z nodefs"
16185
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"
16187
# Determine the default libpath from the value encoded in an empty executable.
16188
cat >conftest.$ac_ext <<_ACEOF
16191
cat confdefs.h >>conftest.$ac_ext
16192
cat >>conftest.$ac_ext <<_ACEOF
16193
/* end confdefs.h. */
16203
rm -f conftest.$ac_objext conftest$ac_exeext
16204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205
(eval $ac_link) 2>conftest.er1
16207
grep -v '^ *+' conftest.er1 >conftest.err
16209
cat conftest.err >&5
16210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211
(exit $ac_status); } &&
16212
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214
(eval $ac_try) 2>&5
16216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217
(exit $ac_status); }; } &&
16218
{ ac_try='test -s conftest$ac_exeext'
16219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220
(eval $ac_try) 2>&5
16222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223
(exit $ac_status); }; }; then
16225
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16227
# Check for a 64-bit object if we didn't find anything.
16228
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; }
16231
echo "$as_me: failed program was:" >&5
16232
sed 's/^/| /' conftest.$ac_ext >&5
16235
rm -f conftest.err conftest.$ac_objext \
16236
conftest$ac_exeext conftest.$ac_ext
16237
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16239
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16240
# Warning - without using the other run time loading flags,
16241
# -berok will link without error, but may produce a broken library.
16242
no_undefined_flag_GCJ=' ${wl}-bernotok'
16243
allow_undefined_flag_GCJ=' ${wl}-berok'
16244
# -bexpall does not export symbols beginning with underscore (_)
16245
always_export_symbols_GCJ=yes
16246
# Exported symbols can be pulled into shared objects from archives
16247
whole_archive_flag_spec_GCJ=' '
16248
archive_cmds_need_lc_GCJ=yes
16249
# This is similar to how AIX traditionally builds it's shared libraries.
16250
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'
16256
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)'
16257
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16258
hardcode_minus_L_GCJ=yes
16259
# see comment about different semantics on the GNU ld section
16264
export_dynamic_flag_spec_GCJ=-rdynamic
16267
cygwin* | mingw* | pw32*)
16268
# When not using gcc, we currently assume that we are using
16269
# Microsoft Visual C++.
16270
# hardcode_libdir_flag_spec is actually meaningless, as there is
16271
# no search path for DLLs.
16272
hardcode_libdir_flag_spec_GCJ=' '
16273
allow_undefined_flag_GCJ=unsupported
16274
# Tell ltmain to make .lib files, not .a files.
16276
# Tell ltmain to make .dll files, not .so files.
16278
# FIXME: Setting linknames here is a bad hack.
16279
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16280
# The linker will automatically build a .lib file if we build a DLL.
16281
old_archive_From_new_cmds_GCJ='true'
16282
# FIXME: Should let the user specify the lib program.
16283
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16284
fix_srcfile_path='`cygpath -w "$srcfile"`'
16285
enable_shared_with_static_runtimes_GCJ=yes
16288
darwin* | rhapsody*)
16289
if test "$GXX" = yes ; then
16290
archive_cmds_need_lc_GCJ=no
16292
rhapsody* | darwin1.[012])
16293
allow_undefined_flag_GCJ='-undefined suppress'
16296
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16297
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16299
case ${MACOSX_DEPLOYMENT_TARGET} in
16301
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16304
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16310
lt_int_apple_cc_single_mod=no
16311
output_verbose_link_cmd='echo'
16312
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16313
lt_int_apple_cc_single_mod=yes
16315
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16316
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16318
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16320
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16321
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16322
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16323
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16325
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16327
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}'
16328
hardcode_direct_GCJ=no
16329
hardcode_automatic_GCJ=yes
16330
hardcode_shlibpath_var_GCJ=unsupported
16331
whole_archive_flag_spec_GCJ='-all_load $convenience'
16332
link_all_deplibs_GCJ=yes
16339
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16340
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16341
hardcode_shlibpath_var_GCJ=no
16348
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16349
# support. Future versions do this automatically, but an explicit c++rt0.o
16350
# does not break anything, and helps significantly (at the cost of a little
16353
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16354
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16355
hardcode_direct_GCJ=yes
16356
hardcode_shlibpath_var_GCJ=no
16359
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16361
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362
hardcode_direct_GCJ=yes
16363
hardcode_minus_L_GCJ=yes
16364
hardcode_shlibpath_var_GCJ=no
16367
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16368
freebsd* | kfreebsd*-gnu)
16369
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16370
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16371
hardcode_direct_GCJ=yes
16372
hardcode_shlibpath_var_GCJ=no
16376
if test "$GCC" = yes; then
16377
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'
16379
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'
16381
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16382
hardcode_libdir_separator_GCJ=:
16383
hardcode_direct_GCJ=yes
16385
# hardcode_minus_L: Not really in the search PATH,
16386
# but as the default location of the library.
16387
hardcode_minus_L_GCJ=yes
16388
export_dynamic_flag_spec_GCJ='${wl}-E'
16392
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16393
case "$host_cpu" in
16395
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16398
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16402
case "$host_cpu" in
16404
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16407
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16411
if test "$with_gnu_ld" = no; then
16412
case "$host_cpu" in
16414
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16416
hardcode_libdir_separator_GCJ=:
16417
hardcode_direct_GCJ=no
16418
hardcode_shlibpath_var_GCJ=no
16421
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16422
hardcode_direct_GCJ=no
16423
hardcode_shlibpath_var_GCJ=no
16425
# hardcode_minus_L: Not really in the search PATH,
16426
# but as the default location of the library.
16427
hardcode_minus_L_GCJ=yes
16430
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431
hardcode_libdir_separator_GCJ=:
16432
hardcode_direct_GCJ=yes
16433
export_dynamic_flag_spec_GCJ='${wl}-E'
16435
# hardcode_minus_L: Not really in the search PATH,
16436
# but as the default location of the library.
16437
hardcode_minus_L_GCJ=yes
16443
irix5* | irix6* | nonstopux*)
16444
if test "$GCC" = yes; then
16445
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'
16447
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'
16448
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16450
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16451
hardcode_libdir_separator_GCJ=:
16452
link_all_deplibs_GCJ=yes
16455
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16456
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16457
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16459
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16461
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16462
hardcode_direct_GCJ=yes
16463
hardcode_shlibpath_var_GCJ=no
16467
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468
hardcode_direct_GCJ=yes
16469
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16470
hardcode_libdir_separator_GCJ=:
16471
hardcode_shlibpath_var_GCJ=no
16475
hardcode_direct_GCJ=yes
16476
hardcode_shlibpath_var_GCJ=no
16477
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16478
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16479
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16480
export_dynamic_flag_spec_GCJ='${wl}-E'
16483
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16484
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16488
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16489
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16496
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497
hardcode_minus_L_GCJ=yes
16498
allow_undefined_flag_GCJ=unsupported
16499
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'
16500
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16504
if test "$GCC" = yes; then
16505
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16506
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'
16508
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16509
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'
16511
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16512
hardcode_libdir_separator_GCJ=:
16515
osf4* | osf5*) # as osf3* with the addition of -msym flag
16516
if test "$GCC" = yes; then
16517
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16518
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'
16519
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16521
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16522
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'
16523
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~
16524
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16526
# Both c and cxx compiler support -rpath directly
16527
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16529
hardcode_libdir_separator_GCJ=:
16533
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534
hardcode_shlibpath_var_GCJ=no
16535
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16536
runpath_var=LD_RUN_PATH
16537
hardcode_runpath_var=yes
16541
no_undefined_flag_GCJ=' -z text'
16542
if test "$GCC" = yes; then
16543
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16545
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16547
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16549
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16551
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16552
hardcode_shlibpath_var_GCJ=no
16554
solaris2.[0-5] | solaris2.[0-5].*) ;;
16555
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16556
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16558
link_all_deplibs_GCJ=yes
16562
if test "x$host_vendor" = xsequent; then
16563
# Use $CC to link under sequent, because it throws in some extra .o
16564
# files that make .init and .fini sections work.
16565
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16567
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16569
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16570
hardcode_direct_GCJ=yes
16571
hardcode_minus_L_GCJ=yes
16572
hardcode_shlibpath_var_GCJ=no
16576
case $host_vendor in
16578
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579
hardcode_direct_GCJ=yes # is this really true???
16582
## LD is ld it makes a PLAMLIB
16583
## CC just makes a GrossModule.
16584
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16585
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16586
hardcode_direct_GCJ=no
16589
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16593
runpath_var='LD_RUN_PATH'
16594
hardcode_shlibpath_var_GCJ=no
16598
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599
hardcode_shlibpath_var_GCJ=no
16600
export_dynamic_flag_spec_GCJ='-Bexport'
16604
if test -d /usr/nec; then
16605
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606
hardcode_shlibpath_var_GCJ=no
16607
runpath_var=LD_RUN_PATH
16608
hardcode_runpath_var=yes
16614
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16615
hardcode_direct_GCJ=yes
16616
hardcode_minus_L_GCJ=no
16617
hardcode_shlibpath_var_GCJ=no
16618
hardcode_runpath_var=yes
16619
runpath_var=LD_RUN_PATH
16622
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16623
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16624
if test "$GCC" = yes; then
16625
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16627
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16629
runpath_var='LD_RUN_PATH'
16630
hardcode_shlibpath_var_GCJ=no
16634
no_undefined_flag_GCJ=' -z text'
16635
# $CC -shared without GNU ld will not create a library from C++
16636
# object files and a static libstdc++, better avoid it by now
16637
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16639
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640
hardcode_libdir_flag_spec_GCJ=
16641
hardcode_shlibpath_var_GCJ=no
16642
runpath_var='LD_RUN_PATH'
16646
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648
hardcode_shlibpath_var_GCJ=no
16657
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16658
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16659
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16661
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16662
if test "$GCC" = yes; then
16663
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16667
# Do we need to explicitly link libc?
16669
case "x$archive_cmds_need_lc_GCJ" in
16671
# Assume -lc should be added
16672
archive_cmds_need_lc_GCJ=yes
16674
if test "$enable_shared" = yes && test "$GCC" = yes; then
16675
case $archive_cmds_GCJ in
16677
# FIXME: we may have to deal with multi-command sequences.
16680
# Test whether the compiler implicitly links with -lc since on some
16681
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16682
# to ld, don't add -lc before -lgcc.
16683
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16684
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16686
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689
(eval $ac_compile) 2>&5
16691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692
(exit $ac_status); } 2>conftest.err; then
16695
libobjs=conftest.$ac_objext
16697
wl=$lt_prog_compiler_wl_GCJ
16703
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16704
allow_undefined_flag_GCJ=
16705
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16706
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709
(exit $ac_status); }
16711
archive_cmds_need_lc_GCJ=no
16713
archive_cmds_need_lc_GCJ=yes
16715
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16717
cat conftest.err 1>&5
16720
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16721
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16728
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16729
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16730
library_names_spec=
16731
libname_spec='lib$name'
16735
postuninstall_cmds=
16739
shlibpath_overrides_runpath=unknown
16741
dynamic_linker="$host_os ld.so"
16742
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16743
if test "$GCC" = yes; then
16744
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16745
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16746
# if the path contains ";" then we assume it to be the separator
16747
# otherwise default to the standard path separator (i.e. ":") - it is
16748
# assumed that no part of a normal pathname contains ";" but that should
16749
# okay in the real world where ";" in dirpaths is itself problematic.
16750
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16752
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16755
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16757
need_lib_prefix=unknown
16758
hardcode_into_libs=no
16760
# when you set need_version to no, make sure it does not cause -set_version
16761
# flags to be left without arguments
16762
need_version=unknown
16767
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16768
shlibpath_var=LIBPATH
16770
# AIX 3 has no versioning support, so we append a major version to the name.
16771
soname_spec='${libname}${release}${shared_ext}$major'
16778
hardcode_into_libs=yes
16779
if test "$host_cpu" = ia64; then
16780
# AIX 5 supports IA64
16781
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16782
shlibpath_var=LD_LIBRARY_PATH
16784
# With GCC up to 2.95.x, collect2 would create an import file
16785
# for dependence libraries. The import file would start with
16786
# the line `#! .'. This would cause the generated library to
16787
# depend on `.', always an invalid library. This was fixed in
16788
# development snapshots of GCC prior to 3.0.
16790
aix4 | aix4.[01] | aix4.[01].*)
16791
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16793
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16796
can_build_shared=no
16800
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16801
# soname into executable. Probably we can add versioning support to
16802
# collect2, so additional links can be useful in future.
16803
if test "$aix_use_runtimelinking" = yes; then
16804
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16805
# instead of lib<name>.a to let people know that these are not
16806
# typical AIX shared libraries.
16807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809
# We preserve .a as extension for shared libraries through AIX4.2
16810
# and later when we are not doing run time linking.
16811
library_names_spec='${libname}${release}.a $libname.a'
16812
soname_spec='${libname}${release}${shared_ext}$major'
16814
shlibpath_var=LIBPATH
16819
library_names_spec='$libname.ixlibrary $libname.a'
16820
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16821
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'
16825
library_names_spec='${libname}${shared_ext}'
16826
dynamic_linker="$host_os ld.so"
16827
shlibpath_var=LIBRARY_PATH
16833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834
soname_spec='${libname}${release}${shared_ext}$major'
16835
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16836
shlibpath_var=LD_LIBRARY_PATH
16837
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16838
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16839
# the default ld.so.conf also contains /usr/contrib/lib and
16840
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16841
# libtool to hard-code these into programs
16844
cygwin* | mingw* | pw32*)
16845
version_type=windows
16850
case $GCC,$host_os in
16851
yes,cygwin* | yes,mingw* | yes,pw32*)
16852
library_names_spec='$libname.dll.a'
16853
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16854
postinstall_cmds='base_file=`basename \${file}`~
16855
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16856
dldir=$destdir/`dirname \$dlpath`~
16857
test -d \$dldir || mkdir -p \$dldir~
16858
$install_prog $dir/$dlname \$dldir/$dlname'
16859
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16860
dlpath=$dir/\$dldll~
16862
shlibpath_overrides_runpath=yes
16866
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16867
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16868
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16871
# MinGW DLLs use traditional 'lib' prefix
16872
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16873
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16874
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16875
# It is most probably a Windows format PATH printed by
16876
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16877
# path with ; separators, and with drive letters. We can handle the
16878
# drive letters (cygwin fileutils understands them), so leave them,
16879
# especially as we might pass files found there to a mingw objdump,
16880
# which wouldn't understand a cygwinified path. Ahh.
16881
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16887
# pw32 DLLs use 'pw' prefix rather than 'lib'
16888
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16894
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16897
dynamic_linker='Win32 ld.exe'
16898
# FIXME: first we should search . and the directory the executable is in
16902
darwin* | rhapsody*)
16903
dynamic_linker="$host_os dyld"
16904
version_type=darwin
16907
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16908
soname_spec='${libname}${release}${major}$shared_ext'
16909
shlibpath_overrides_runpath=yes
16910
shlibpath_var=DYLD_LIBRARY_PATH
16911
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16912
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16913
if test "$GCC" = yes; then
16914
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"`
16916
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16918
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16926
soname_spec='${libname}${release}${shared_ext}$major'
16927
shlibpath_var=LD_LIBRARY_PATH
16938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939
soname_spec='${libname}${release}${shared_ext}$major'
16940
shlibpath_var=LD_LIBRARY_PATH
16941
shlibpath_overrides_runpath=no
16942
hardcode_into_libs=yes
16943
dynamic_linker='GNU ld.so'
16947
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16948
version_type=freebsd-$objformat
16949
case $version_type in
16951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16956
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16960
shlibpath_var=LD_LIBRARY_PATH
16963
shlibpath_overrides_runpath=yes
16965
freebsd3.01* | freebsdelf3.01*)
16966
shlibpath_overrides_runpath=yes
16967
hardcode_into_libs=yes
16970
shlibpath_overrides_runpath=no
16971
hardcode_into_libs=yes
16980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16981
soname_spec='${libname}${release}${shared_ext}$major'
16982
shlibpath_var=LD_LIBRARY_PATH
16983
hardcode_into_libs=yes
16986
hpux9* | hpux10* | hpux11*)
16987
# Give a soname corresponding to the major version so that dld.sl refuses to
16988
# link against other versions.
16992
case "$host_cpu" in
16995
hardcode_into_libs=yes
16996
dynamic_linker="$host_os dld.so"
16997
shlibpath_var=LD_LIBRARY_PATH
16998
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000
soname_spec='${libname}${release}${shared_ext}$major'
17001
if test "X$HPUX_IA64_MODE" = X32; then
17002
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17004
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17006
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17010
hardcode_into_libs=yes
17011
dynamic_linker="$host_os dld.sl"
17012
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17013
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015
soname_spec='${libname}${release}${shared_ext}$major'
17016
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17017
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17021
dynamic_linker="$host_os dld.sl"
17022
shlibpath_var=SHLIB_PATH
17023
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025
soname_spec='${libname}${release}${shared_ext}$major'
17028
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17029
postinstall_cmds='chmod 555 $lib'
17032
irix5* | irix6* | nonstopux*)
17034
nonstopux*) version_type=nonstopux ;;
17036
if test "$lt_cv_prog_gnu_ld" = yes; then
17044
soname_spec='${libname}${release}${shared_ext}$major'
17045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17047
irix5* | nonstopux*)
17048
libsuff= shlibsuff=
17051
case $LD in # libtool.m4 will add one of these switches to LD
17052
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17053
libsuff= shlibsuff= libmagic=32-bit;;
17054
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17055
libsuff=32 shlibsuff=N32 libmagic=N32;;
17056
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17057
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17058
*) libsuff= shlibsuff= libmagic=never-match;;
17062
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17063
shlibpath_overrides_runpath=no
17064
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17065
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17066
hardcode_into_libs=yes
17069
# No shared lib support for Linux oldld, aout, or coff.
17070
linux*oldld* | linux*aout* | linux*coff*)
17074
# This must be Linux ELF.
17079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080
soname_spec='${libname}${release}${shared_ext}$major'
17081
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17082
shlibpath_var=LD_LIBRARY_PATH
17083
shlibpath_overrides_runpath=no
17084
# This implies no fast_install, which is unacceptable.
17085
# Some rework will be needed to allow for fast_install
17086
# before this can be enabled.
17087
hardcode_into_libs=yes
17089
# Append ld.so.conf contents to the search path
17090
if test -f /etc/ld.so.conf; then
17091
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17092
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17095
# We used to test for /lib/ld.so.1 and disable shared libraries on
17096
# powerpc, because MkLinux only supported shared libraries with the
17097
# GNU dynamic linker. Since this was broken with cross compilers,
17098
# most powerpc-linux boxes support dynamic linking these days and
17099
# people can always --disable-shared, the test was removed, and we
17100
# assume the GNU/Linux dynamic linker is in use.
17101
dynamic_linker='GNU/Linux ld.so'
17108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109
soname_spec='${libname}${release}${shared_ext}$major'
17110
shlibpath_var=LD_LIBRARY_PATH
17111
shlibpath_overrides_runpath=no
17112
hardcode_into_libs=yes
17113
dynamic_linker='NetBSD ld.elf_so'
17120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17121
soname_spec='${libname}${release}${shared_ext}$major'
17122
shlibpath_var=LD_LIBRARY_PATH
17123
shlibpath_overrides_runpath=no
17124
hardcode_into_libs=yes
17125
dynamic_linker='GNU ld.so'
17132
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17134
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17135
dynamic_linker='NetBSD (a.out) ld.so'
17137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17138
soname_spec='${libname}${release}${shared_ext}$major'
17139
dynamic_linker='NetBSD ld.elf_so'
17141
shlibpath_var=LD_LIBRARY_PATH
17142
shlibpath_overrides_runpath=yes
17143
hardcode_into_libs=yes
17148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149
shlibpath_var=LD_LIBRARY_PATH
17150
shlibpath_overrides_runpath=yes
17157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158
soname_spec='${libname}${release}${shared_ext}$major'
17159
shlibpath_var=LD_LIBRARY_PATH
17160
shlibpath_overrides_runpath=yes
17167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17168
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17169
shlibpath_var=LD_LIBRARY_PATH
17170
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17172
openbsd2.[89] | openbsd2.[89].*)
17173
shlibpath_overrides_runpath=no
17176
shlibpath_overrides_runpath=yes
17180
shlibpath_overrides_runpath=yes
17185
libname_spec='$name'
17188
library_names_spec='$libname${shared_ext} $libname.a'
17189
dynamic_linker='OS/2 ld.exe'
17190
shlibpath_var=LIBPATH
17193
osf3* | osf4* | osf5*)
17197
soname_spec='${libname}${release}${shared_ext}$major'
17198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17199
shlibpath_var=LD_LIBRARY_PATH
17200
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17201
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17206
soname_spec='${libname}${release}${shared_ext}$major'
17207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17208
shlibpath_var=LD_LIBRARY_PATH
17215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216
soname_spec='${libname}${release}${shared_ext}$major'
17217
shlibpath_var=LD_LIBRARY_PATH
17218
shlibpath_overrides_runpath=yes
17219
hardcode_into_libs=yes
17220
# ldd complains unless libraries are executable
17221
postinstall_cmds='chmod +x $lib'
17226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17227
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17228
shlibpath_var=LD_LIBRARY_PATH
17229
shlibpath_overrides_runpath=yes
17230
if test "$with_gnu_ld" = yes; then
17236
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239
soname_spec='${libname}${release}${shared_ext}$major'
17240
shlibpath_var=LD_LIBRARY_PATH
17241
case $host_vendor in
17243
shlibpath_overrides_runpath=no
17245
export_dynamic_flag_spec='${wl}-Blargedynsym'
17246
runpath_var=LD_RUN_PATH
17254
shlibpath_overrides_runpath=no
17255
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17261
if test -d /usr/nec ;then
17263
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17264
soname_spec='$libname${shared_ext}.$major'
17265
shlibpath_var=LD_LIBRARY_PATH
17271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272
soname_spec='${libname}${release}${shared_ext}$major'
17273
shlibpath_var=LD_LIBRARY_PATH
17280
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17281
echo "${ECHO_T}$dynamic_linker" >&6
17282
test "$dynamic_linker" = no && can_build_shared=no
17284
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17285
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17286
hardcode_action_GCJ=
17287
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17288
test -n "$runpath_var GCJ" || \
17289
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17291
# We can hardcode non-existant directories.
17292
if test "$hardcode_direct_GCJ" != no &&
17293
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17294
# have to relink, otherwise we might link with an installed library
17295
# when we should be linking with a yet-to-be-installed one
17296
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17297
test "$hardcode_minus_L_GCJ" != no; then
17298
# Linking always hardcodes the temporary library directory.
17299
hardcode_action_GCJ=relink
17301
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17302
hardcode_action_GCJ=immediate
17305
# We cannot hardcode anything, or else we can only hardcode existing
17307
hardcode_action_GCJ=unsupported
17309
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17310
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17312
if test "$hardcode_action_GCJ" = relink; then
17313
# Fast installation is not supported
17314
enable_fast_install=no
17315
elif test "$shlibpath_overrides_runpath" = yes ||
17316
test "$enable_shared" = no; then
17317
# Fast installation is not necessary
17318
enable_fast_install=needless
17323
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17324
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17325
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17326
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17327
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17328
echo "$as_me:$LINENO: result: yes" >&5
17329
echo "${ECHO_T}yes" >&6
17331
# FIXME - insert some real tests, host_os isn't really good enough
17334
if test -n "$STRIP" ; then
17335
striplib="$STRIP -x"
17336
echo "$as_me:$LINENO: result: yes" >&5
17337
echo "${ECHO_T}yes" >&6
17339
echo "$as_me:$LINENO: result: no" >&5
17340
echo "${ECHO_T}no" >&6
17344
echo "$as_me:$LINENO: result: no" >&5
17345
echo "${ECHO_T}no" >&6
17350
if test "x$enable_dlopen" != xyes; then
17351
enable_dlopen=unknown
17352
enable_dlopen_self=unknown
17353
enable_dlopen_self_static=unknown
17360
lt_cv_dlopen="load_add_on"
17362
lt_cv_dlopen_self=yes
17366
lt_cv_dlopen="LoadLibrary"
17371
lt_cv_dlopen="dlopen"
17376
# if libdl is installed we need to link against it
17377
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17380
echo $ECHO_N "(cached) $ECHO_C" >&6
17382
ac_check_lib_save_LIBS=$LIBS
17384
cat >conftest.$ac_ext <<_ACEOF
17387
cat confdefs.h >>conftest.$ac_ext
17388
cat >>conftest.$ac_ext <<_ACEOF
17389
/* end confdefs.h. */
17391
/* Override any gcc2 internal prototype to avoid an error. */
17395
/* We use char because int might match the return type of a gcc2
17396
builtin and then its argument prototype would still apply. */
17406
rm -f conftest.$ac_objext conftest$ac_exeext
17407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17408
(eval $ac_link) 2>conftest.er1
17410
grep -v '^ *+' conftest.er1 >conftest.err
17412
cat conftest.err >&5
17413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414
(exit $ac_status); } &&
17415
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417
(eval $ac_try) 2>&5
17419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420
(exit $ac_status); }; } &&
17421
{ ac_try='test -s conftest$ac_exeext'
17422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423
(eval $ac_try) 2>&5
17425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426
(exit $ac_status); }; }; then
17427
ac_cv_lib_dl_dlopen=yes
17429
echo "$as_me: failed program was:" >&5
17430
sed 's/^/| /' conftest.$ac_ext >&5
17432
ac_cv_lib_dl_dlopen=no
17434
rm -f conftest.err conftest.$ac_objext \
17435
conftest$ac_exeext conftest.$ac_ext
17436
LIBS=$ac_check_lib_save_LIBS
17438
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17439
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17440
if test $ac_cv_lib_dl_dlopen = yes; then
17441
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17444
lt_cv_dlopen="dyld"
17446
lt_cv_dlopen_self=yes
17453
echo "$as_me:$LINENO: checking for shl_load" >&5
17454
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17455
if test "${ac_cv_func_shl_load+set}" = set; then
17456
echo $ECHO_N "(cached) $ECHO_C" >&6
17458
cat >conftest.$ac_ext <<_ACEOF
17461
cat confdefs.h >>conftest.$ac_ext
17462
cat >>conftest.$ac_ext <<_ACEOF
17463
/* end confdefs.h. */
17464
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17465
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17466
#define shl_load innocuous_shl_load
17468
/* System header to define __stub macros and hopefully few prototypes,
17469
which can conflict with char shl_load (); below.
17470
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471
<limits.h> exists even on freestanding compilers. */
17474
# include <limits.h>
17476
# include <assert.h>
17481
/* Override any gcc2 internal prototype to avoid an error. */
17486
/* We use char because int might match the return type of a gcc2
17487
builtin and then its argument prototype would still apply. */
17489
/* The GNU C library defines this for functions which it implements
17490
to always fail with ENOSYS. Some functions are actually named
17491
something starting with __ and the normal name is an alias. */
17492
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17495
char (*f) () = shl_load;
17504
return f != shl_load;
17509
rm -f conftest.$ac_objext conftest$ac_exeext
17510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511
(eval $ac_link) 2>conftest.er1
17513
grep -v '^ *+' conftest.er1 >conftest.err
17515
cat conftest.err >&5
17516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517
(exit $ac_status); } &&
17518
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520
(eval $ac_try) 2>&5
17522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523
(exit $ac_status); }; } &&
17524
{ ac_try='test -s conftest$ac_exeext'
17525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526
(eval $ac_try) 2>&5
17528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529
(exit $ac_status); }; }; then
17530
ac_cv_func_shl_load=yes
17532
echo "$as_me: failed program was:" >&5
17533
sed 's/^/| /' conftest.$ac_ext >&5
17535
ac_cv_func_shl_load=no
17537
rm -f conftest.err conftest.$ac_objext \
17538
conftest$ac_exeext conftest.$ac_ext
17540
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17541
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17542
if test $ac_cv_func_shl_load = yes; then
17543
lt_cv_dlopen="shl_load"
17545
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17546
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17547
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17548
echo $ECHO_N "(cached) $ECHO_C" >&6
17550
ac_check_lib_save_LIBS=$LIBS
17552
cat >conftest.$ac_ext <<_ACEOF
17555
cat confdefs.h >>conftest.$ac_ext
17556
cat >>conftest.$ac_ext <<_ACEOF
17557
/* end confdefs.h. */
17559
/* Override any gcc2 internal prototype to avoid an error. */
17563
/* We use char because int might match the return type of a gcc2
17564
builtin and then its argument prototype would still apply. */
17574
rm -f conftest.$ac_objext conftest$ac_exeext
17575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17576
(eval $ac_link) 2>conftest.er1
17578
grep -v '^ *+' conftest.er1 >conftest.err
17580
cat conftest.err >&5
17581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582
(exit $ac_status); } &&
17583
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585
(eval $ac_try) 2>&5
17587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588
(exit $ac_status); }; } &&
17589
{ ac_try='test -s conftest$ac_exeext'
17590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591
(eval $ac_try) 2>&5
17593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594
(exit $ac_status); }; }; then
17595
ac_cv_lib_dld_shl_load=yes
17597
echo "$as_me: failed program was:" >&5
17598
sed 's/^/| /' conftest.$ac_ext >&5
17600
ac_cv_lib_dld_shl_load=no
17602
rm -f conftest.err conftest.$ac_objext \
17603
conftest$ac_exeext conftest.$ac_ext
17604
LIBS=$ac_check_lib_save_LIBS
17606
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17607
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17608
if test $ac_cv_lib_dld_shl_load = yes; then
17609
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17611
echo "$as_me:$LINENO: checking for dlopen" >&5
17612
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17613
if test "${ac_cv_func_dlopen+set}" = set; then
17614
echo $ECHO_N "(cached) $ECHO_C" >&6
17616
cat >conftest.$ac_ext <<_ACEOF
17619
cat confdefs.h >>conftest.$ac_ext
17620
cat >>conftest.$ac_ext <<_ACEOF
17621
/* end confdefs.h. */
17622
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17623
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17624
#define dlopen innocuous_dlopen
17626
/* System header to define __stub macros and hopefully few prototypes,
17627
which can conflict with char dlopen (); below.
17628
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629
<limits.h> exists even on freestanding compilers. */
17632
# include <limits.h>
17634
# include <assert.h>
17639
/* Override any gcc2 internal prototype to avoid an error. */
17644
/* We use char because int might match the return type of a gcc2
17645
builtin and then its argument prototype would still apply. */
17647
/* The GNU C library defines this for functions which it implements
17648
to always fail with ENOSYS. Some functions are actually named
17649
something starting with __ and the normal name is an alias. */
17650
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17653
char (*f) () = dlopen;
17662
return f != dlopen;
17667
rm -f conftest.$ac_objext conftest$ac_exeext
17668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17669
(eval $ac_link) 2>conftest.er1
17671
grep -v '^ *+' conftest.er1 >conftest.err
17673
cat conftest.err >&5
17674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675
(exit $ac_status); } &&
17676
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678
(eval $ac_try) 2>&5
17680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681
(exit $ac_status); }; } &&
17682
{ ac_try='test -s conftest$ac_exeext'
17683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684
(eval $ac_try) 2>&5
17686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687
(exit $ac_status); }; }; then
17688
ac_cv_func_dlopen=yes
17690
echo "$as_me: failed program was:" >&5
17691
sed 's/^/| /' conftest.$ac_ext >&5
17693
ac_cv_func_dlopen=no
17695
rm -f conftest.err conftest.$ac_objext \
17696
conftest$ac_exeext conftest.$ac_ext
17698
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17699
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17700
if test $ac_cv_func_dlopen = yes; then
17701
lt_cv_dlopen="dlopen"
17703
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17704
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17705
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17706
echo $ECHO_N "(cached) $ECHO_C" >&6
17708
ac_check_lib_save_LIBS=$LIBS
17710
cat >conftest.$ac_ext <<_ACEOF
17713
cat confdefs.h >>conftest.$ac_ext
17714
cat >>conftest.$ac_ext <<_ACEOF
17715
/* end confdefs.h. */
17717
/* Override any gcc2 internal prototype to avoid an error. */
17721
/* We use char because int might match the return type of a gcc2
17722
builtin and then its argument prototype would still apply. */
17732
rm -f conftest.$ac_objext conftest$ac_exeext
17733
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734
(eval $ac_link) 2>conftest.er1
17736
grep -v '^ *+' conftest.er1 >conftest.err
17738
cat conftest.err >&5
17739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740
(exit $ac_status); } &&
17741
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743
(eval $ac_try) 2>&5
17745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746
(exit $ac_status); }; } &&
17747
{ ac_try='test -s conftest$ac_exeext'
17748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749
(eval $ac_try) 2>&5
17751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752
(exit $ac_status); }; }; then
17753
ac_cv_lib_dl_dlopen=yes
17755
echo "$as_me: failed program was:" >&5
17756
sed 's/^/| /' conftest.$ac_ext >&5
17758
ac_cv_lib_dl_dlopen=no
17760
rm -f conftest.err conftest.$ac_objext \
17761
conftest$ac_exeext conftest.$ac_ext
17762
LIBS=$ac_check_lib_save_LIBS
17764
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17765
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17766
if test $ac_cv_lib_dl_dlopen = yes; then
17767
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17769
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17770
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17771
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17772
echo $ECHO_N "(cached) $ECHO_C" >&6
17774
ac_check_lib_save_LIBS=$LIBS
17775
LIBS="-lsvld $LIBS"
17776
cat >conftest.$ac_ext <<_ACEOF
17779
cat confdefs.h >>conftest.$ac_ext
17780
cat >>conftest.$ac_ext <<_ACEOF
17781
/* end confdefs.h. */
17783
/* Override any gcc2 internal prototype to avoid an error. */
17787
/* We use char because int might match the return type of a gcc2
17788
builtin and then its argument prototype would still apply. */
17798
rm -f conftest.$ac_objext conftest$ac_exeext
17799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17800
(eval $ac_link) 2>conftest.er1
17802
grep -v '^ *+' conftest.er1 >conftest.err
17804
cat conftest.err >&5
17805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806
(exit $ac_status); } &&
17807
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809
(eval $ac_try) 2>&5
17811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812
(exit $ac_status); }; } &&
17813
{ ac_try='test -s conftest$ac_exeext'
17814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815
(eval $ac_try) 2>&5
17817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818
(exit $ac_status); }; }; then
17819
ac_cv_lib_svld_dlopen=yes
17821
echo "$as_me: failed program was:" >&5
17822
sed 's/^/| /' conftest.$ac_ext >&5
17824
ac_cv_lib_svld_dlopen=no
17826
rm -f conftest.err conftest.$ac_objext \
17827
conftest$ac_exeext conftest.$ac_ext
17828
LIBS=$ac_check_lib_save_LIBS
17830
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17831
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17832
if test $ac_cv_lib_svld_dlopen = yes; then
17833
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17835
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17836
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17837
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17838
echo $ECHO_N "(cached) $ECHO_C" >&6
17840
ac_check_lib_save_LIBS=$LIBS
17842
cat >conftest.$ac_ext <<_ACEOF
17845
cat confdefs.h >>conftest.$ac_ext
17846
cat >>conftest.$ac_ext <<_ACEOF
17847
/* end confdefs.h. */
17849
/* Override any gcc2 internal prototype to avoid an error. */
17853
/* We use char because int might match the return type of a gcc2
17854
builtin and then its argument prototype would still apply. */
17864
rm -f conftest.$ac_objext conftest$ac_exeext
17865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866
(eval $ac_link) 2>conftest.er1
17868
grep -v '^ *+' conftest.er1 >conftest.err
17870
cat conftest.err >&5
17871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872
(exit $ac_status); } &&
17873
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875
(eval $ac_try) 2>&5
17877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878
(exit $ac_status); }; } &&
17879
{ ac_try='test -s conftest$ac_exeext'
17880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881
(eval $ac_try) 2>&5
17883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884
(exit $ac_status); }; }; then
17885
ac_cv_lib_dld_dld_link=yes
17887
echo "$as_me: failed program was:" >&5
17888
sed 's/^/| /' conftest.$ac_ext >&5
17890
ac_cv_lib_dld_dld_link=no
17892
rm -f conftest.err conftest.$ac_objext \
17893
conftest$ac_exeext conftest.$ac_ext
17894
LIBS=$ac_check_lib_save_LIBS
17896
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17897
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17898
if test $ac_cv_lib_dld_dld_link = yes; then
17899
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17920
if test "x$lt_cv_dlopen" != xno; then
17926
case $lt_cv_dlopen in
17928
save_CPPFLAGS="$CPPFLAGS"
17929
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17931
save_LDFLAGS="$LDFLAGS"
17932
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17935
LIBS="$lt_cv_dlopen_libs $LIBS"
17937
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17938
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17939
if test "${lt_cv_dlopen_self+set}" = set; then
17940
echo $ECHO_N "(cached) $ECHO_C" >&6
17942
if test "$cross_compiling" = yes; then :
17943
lt_cv_dlopen_self=cross
17945
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17946
lt_status=$lt_dlunknown
17947
cat > conftest.$ac_ext <<EOF
17948
#line 17948 "configure"
17949
#include "confdefs.h"
17958
# define LT_DLGLOBAL RTLD_GLOBAL
17961
# define LT_DLGLOBAL DL_GLOBAL
17963
# define LT_DLGLOBAL 0
17967
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17968
find out it does not work in some platform. */
17969
#ifndef LT_DLLAZY_OR_NOW
17971
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17974
# define LT_DLLAZY_OR_NOW DL_LAZY
17977
# define LT_DLLAZY_OR_NOW RTLD_NOW
17980
# define LT_DLLAZY_OR_NOW DL_NOW
17982
# define LT_DLLAZY_OR_NOW 0
17990
extern "C" void exit (int);
17993
void fnord() { int i=42;}
17996
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17997
int status = $lt_dlunknown;
18001
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18002
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18003
/* dlclose (self); */
18009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010
(eval $ac_link) 2>&5
18012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18014
(./conftest; exit; ) 2>/dev/null
18016
case x$lt_status in
18017
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18018
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18019
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18022
# compilation failed
18023
lt_cv_dlopen_self=no
18030
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18031
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18033
if test "x$lt_cv_dlopen_self" = xyes; then
18034
LDFLAGS="$LDFLAGS $link_static_flag"
18035
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18036
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18037
if test "${lt_cv_dlopen_self_static+set}" = set; then
18038
echo $ECHO_N "(cached) $ECHO_C" >&6
18040
if test "$cross_compiling" = yes; then :
18041
lt_cv_dlopen_self_static=cross
18043
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18044
lt_status=$lt_dlunknown
18045
cat > conftest.$ac_ext <<EOF
18046
#line 18046 "configure"
18047
#include "confdefs.h"
18056
# define LT_DLGLOBAL RTLD_GLOBAL
18059
# define LT_DLGLOBAL DL_GLOBAL
18061
# define LT_DLGLOBAL 0
18065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18066
find out it does not work in some platform. */
18067
#ifndef LT_DLLAZY_OR_NOW
18069
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18072
# define LT_DLLAZY_OR_NOW DL_LAZY
18075
# define LT_DLLAZY_OR_NOW RTLD_NOW
18078
# define LT_DLLAZY_OR_NOW DL_NOW
18080
# define LT_DLLAZY_OR_NOW 0
18088
extern "C" void exit (int);
18091
void fnord() { int i=42;}
18094
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18095
int status = $lt_dlunknown;
18099
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18100
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18101
/* dlclose (self); */
18107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108
(eval $ac_link) 2>&5
18110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18112
(./conftest; exit; ) 2>/dev/null
18114
case x$lt_status in
18115
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18116
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18117
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18120
# compilation failed
18121
lt_cv_dlopen_self_static=no
18128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18129
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18132
CPPFLAGS="$save_CPPFLAGS"
18133
LDFLAGS="$save_LDFLAGS"
18138
case $lt_cv_dlopen_self in
18139
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18140
*) enable_dlopen_self=unknown ;;
18143
case $lt_cv_dlopen_self_static in
18144
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18145
*) enable_dlopen_self_static=unknown ;;
18150
# The else clause should only fire when bootstrapping the
18151
# libtool distribution, otherwise you forgot to ship ltmain.sh
18152
# with your package, and you will get complaints that there are
18153
# no rules to generate ltmain.sh.
18154
if test -f "$ltmain"; then
18155
# See if we are running on zsh, and set the options which allow our commands through
18156
# without removal of \ escapes.
18157
if test -n "${ZSH_VERSION+set}" ; then
18158
setopt NO_GLOB_SUBST
18160
# Now quote all the things that may contain metacharacters while being
18161
# careful not to overquote the AC_SUBSTed values. We take copies of the
18162
# variables and quote the copies for generation of the libtool script.
18163
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18165
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18166
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18167
deplibs_check_method reload_flag reload_cmds need_locks \
18168
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18169
lt_cv_sys_global_symbol_to_c_name_address \
18170
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18171
old_postinstall_cmds old_postuninstall_cmds \
18175
lt_prog_compiler_wl_GCJ \
18176
lt_prog_compiler_pic_GCJ \
18177
lt_prog_compiler_static_GCJ \
18178
lt_prog_compiler_no_builtin_flag_GCJ \
18179
export_dynamic_flag_spec_GCJ \
18180
thread_safe_flag_spec_GCJ \
18181
whole_archive_flag_spec_GCJ \
18182
enable_shared_with_static_runtimes_GCJ \
18183
old_archive_cmds_GCJ \
18184
old_archive_from_new_cmds_GCJ \
18185
predep_objects_GCJ \
18186
postdep_objects_GCJ \
18189
compiler_lib_search_path_GCJ \
18191
archive_expsym_cmds_GCJ \
18192
postinstall_cmds_GCJ \
18193
postuninstall_cmds_GCJ \
18194
old_archive_from_expsyms_cmds_GCJ \
18195
allow_undefined_flag_GCJ \
18196
no_undefined_flag_GCJ \
18197
export_symbols_cmds_GCJ \
18198
hardcode_libdir_flag_spec_GCJ \
18199
hardcode_libdir_flag_spec_ld_GCJ \
18200
hardcode_libdir_separator_GCJ \
18201
hardcode_automatic_GCJ \
18203
module_expsym_cmds_GCJ \
18204
lt_cv_prog_compiler_c_o_GCJ \
18205
exclude_expsyms_GCJ \
18206
include_expsyms_GCJ; do
18209
old_archive_cmds_GCJ | \
18210
old_archive_from_new_cmds_GCJ | \
18211
archive_cmds_GCJ | \
18212
archive_expsym_cmds_GCJ | \
18213
module_cmds_GCJ | \
18214
module_expsym_cmds_GCJ | \
18215
old_archive_from_expsyms_cmds_GCJ | \
18216
export_symbols_cmds_GCJ | \
18217
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18218
postinstall_cmds | postuninstall_cmds | \
18219
old_postinstall_cmds | old_postuninstall_cmds | \
18220
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18221
# Double-quote double-evaled strings.
18222
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18225
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18231
*'\$0 --fallback-echo"')
18232
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18238
cat <<__EOF__ >> "$cfgfile"
18239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18243
# Shell to use when invoking shell scripts.
18246
# Whether or not to build shared libraries.
18247
build_libtool_libs=$enable_shared
18249
# Whether or not to build static libraries.
18250
build_old_libs=$enable_static
18252
# Whether or not to add -lc for building shared libraries.
18253
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18255
# Whether or not to disallow shared libs when runtime libs are static
18256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18258
# Whether or not to optimize for fast installation.
18259
fast_install=$enable_fast_install
18262
host_alias=$host_alias
18265
# An echo program that does not interpret backslashes.
18270
AR_FLAGS=$lt_AR_FLAGS
18275
# A language-specific compiler.
18276
CC=$lt_compiler_GCJ
18278
# Is the compiler the GNU C compiler?
18284
# The linker used to build libraries.
18287
# Whether we need hard or soft links.
18290
# A BSD-compatible nm program.
18293
# A symbol stripping program
18296
# Used to examine libraries when file_magic_cmd begins "file"
18297
MAGIC_CMD=$MAGIC_CMD
18299
# Used on cygwin: DLL creation program.
18302
# Used on cygwin: object dumper.
18305
# Used on cygwin: assembler.
18308
# The name of the directory that contains temporary libtool files.
18311
# How to create reloadable object files.
18312
reload_flag=$lt_reload_flag
18313
reload_cmds=$lt_reload_cmds
18315
# How to pass a linker flag through the compiler.
18316
wl=$lt_lt_prog_compiler_wl_GCJ
18318
# Object file suffix (normally "o").
18319
objext="$ac_objext"
18321
# Old archive suffix (normally "a").
18324
# Shared library suffix (normally ".so").
18325
shrext_cmds='$shrext_cmds'
18327
# Executable file suffix (normally "").
18330
# Additional compiler flags for building library objects.
18331
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18334
# What is the maximum length of a command?
18335
max_cmd_len=$lt_cv_sys_max_cmd_len
18337
# Does compiler simultaneously support -c and -o options?
18338
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18340
# Must we lock files when doing compilation ?
18341
need_locks=$lt_need_locks
18343
# Do we need the lib prefix for modules?
18344
need_lib_prefix=$need_lib_prefix
18346
# Do we need a version for libraries?
18347
need_version=$need_version
18349
# Whether dlopen is supported.
18350
dlopen_support=$enable_dlopen
18352
# Whether dlopen of programs is supported.
18353
dlopen_self=$enable_dlopen_self
18355
# Whether dlopen of statically linked programs is supported.
18356
dlopen_self_static=$enable_dlopen_self_static
18358
# Compiler flag to prevent dynamic linking.
18359
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18361
# Compiler flag to turn off builtin functions.
18362
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18364
# Compiler flag to allow reflexive dlopens.
18365
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18367
# Compiler flag to generate shared objects directly from archives.
18368
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18370
# Compiler flag to generate thread-safe objects.
18371
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18373
# Library versioning type.
18374
version_type=$version_type
18376
# Format of library name prefix.
18377
libname_spec=$lt_libname_spec
18379
# List of archive names. First name is the real one, the rest are links.
18380
# The last name is the one that the linker finds with -lNAME.
18381
library_names_spec=$lt_library_names_spec
18383
# The coded name of the library, if different from the real name.
18384
soname_spec=$lt_soname_spec
18386
# Commands used to build and install an old-style archive.
18388
old_archive_cmds=$lt_old_archive_cmds_GCJ
18389
old_postinstall_cmds=$lt_old_postinstall_cmds
18390
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18392
# Create an old-style archive from a shared archive.
18393
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18395
# Create a temporary old-style archive to link instead of a shared archive.
18396
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18398
# Commands used to build and install a shared archive.
18399
archive_cmds=$lt_archive_cmds_GCJ
18400
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18401
postinstall_cmds=$lt_postinstall_cmds
18402
postuninstall_cmds=$lt_postuninstall_cmds
18404
# Commands used to build a loadable module (assumed same as above if empty)
18405
module_cmds=$lt_module_cmds_GCJ
18406
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18408
# Commands to strip libraries.
18409
old_striplib=$lt_old_striplib
18410
striplib=$lt_striplib
18412
# Dependencies to place before the objects being linked to create a
18414
predep_objects=$lt_predep_objects_GCJ
18416
# Dependencies to place after the objects being linked to create a
18418
postdep_objects=$lt_postdep_objects_GCJ
18420
# Dependencies to place before the objects being linked to create a
18422
predeps=$lt_predeps_GCJ
18424
# Dependencies to place after the objects being linked to create a
18426
postdeps=$lt_postdeps_GCJ
18428
# The library search path used internally by the compiler when linking
18429
# a shared library.
18430
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18432
# Method to check whether dependent libraries are shared objects.
18433
deplibs_check_method=$lt_deplibs_check_method
18435
# Command to use when deplibs_check_method == file_magic.
18436
file_magic_cmd=$lt_file_magic_cmd
18438
# Flag that allows shared libraries with undefined symbols to be built.
18439
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18441
# Flag that forces no undefined symbols.
18442
no_undefined_flag=$lt_no_undefined_flag_GCJ
18444
# Commands used to finish a libtool library installation in a directory.
18445
finish_cmds=$lt_finish_cmds
18447
# Same as above, but a single script fragment to be evaled but not shown.
18448
finish_eval=$lt_finish_eval
18450
# Take the output of nm and produce a listing of raw symbols and C names.
18451
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18453
# Transform the output of nm in a proper C declaration
18454
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18456
# Transform the output of nm in a C name address pair
18457
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18459
# This is the shared library runtime path variable.
18460
runpath_var=$runpath_var
18462
# This is the shared library path variable.
18463
shlibpath_var=$shlibpath_var
18465
# Is shlibpath searched before the hard-coded library search path?
18466
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18468
# How to hardcode a shared library path into an executable.
18469
hardcode_action=$hardcode_action_GCJ
18471
# Whether we should hardcode library paths into libraries.
18472
hardcode_into_libs=$hardcode_into_libs
18474
# Flag to hardcode \$libdir into a binary during linking.
18475
# This must work even if \$libdir does not exist.
18476
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18478
# If ld is used when linking, flag to hardcode \$libdir into
18479
# a binary during linking. This must work even if \$libdir does
18481
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18483
# Whether we need a single -rpath flag with a separated argument.
18484
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18486
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18487
# resulting binary.
18488
hardcode_direct=$hardcode_direct_GCJ
18490
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18491
# resulting binary.
18492
hardcode_minus_L=$hardcode_minus_L_GCJ
18494
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18495
# the resulting binary.
18496
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18498
# Set to yes if building a shared library automatically hardcodes DIR into the library
18499
# and all subsequent libraries and executables linked against it.
18500
hardcode_automatic=$hardcode_automatic_GCJ
18502
# Variables whose values should be saved in libtool wrapper scripts and
18503
# restored at relink time.
18504
variables_saved_for_relink="$variables_saved_for_relink"
18506
# Whether libtool must link a program against all its dependency libraries.
18507
link_all_deplibs=$link_all_deplibs_GCJ
18509
# Compile-time system search path for libraries
18510
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18512
# Run-time system search path for libraries
18513
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18515
# Fix the shell variable \$srcfile for the compiler.
18516
fix_srcfile_path="$fix_srcfile_path_GCJ"
18518
# Set to yes if exported symbols are required.
18519
always_export_symbols=$always_export_symbols_GCJ
18521
# The commands to list exported symbols.
18522
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18524
# The commands to extract the exported symbol list from a shared archive.
18525
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18527
# Symbols that should not be listed in the preloaded symbols.
18528
exclude_expsyms=$lt_exclude_expsyms_GCJ
18530
# Symbols that must always be exported.
18531
include_expsyms=$lt_include_expsyms_GCJ
18533
# ### END LIBTOOL TAG CONFIG: $tagname
18539
# If there is no Makefile yet, we rely on a make rule to execute
18540
# `config.status --recheck' to rerun these tests and create the
18541
# libtool script then.
18542
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18543
if test -f "$ltmain_in"; then
18544
test -f Makefile && make "$ltmain"
18550
ac_cpp='$CPP $CPPFLAGS'
18551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18566
# Source file extension for RC test sources.
18569
# Object file extension for compiled RC test sources.
18573
# Code to be used in simple compile tests
18574
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18576
# Code to be used in simple link tests
18577
lt_simple_link_test_code="$lt_simple_compile_test_code"
18579
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18581
# If no C compiler was specified, use CC.
18584
# Allow CC to be a program name with arguments.
18588
# Allow CC to be a program name with arguments.
18593
lt_cv_prog_compiler_c_o_RC=yes
18595
# The else clause should only fire when bootstrapping the
18596
# libtool distribution, otherwise you forgot to ship ltmain.sh
18597
# with your package, and you will get complaints that there are
18598
# no rules to generate ltmain.sh.
18599
if test -f "$ltmain"; then
18600
# See if we are running on zsh, and set the options which allow our commands through
18601
# without removal of \ escapes.
18602
if test -n "${ZSH_VERSION+set}" ; then
18603
setopt NO_GLOB_SUBST
18605
# Now quote all the things that may contain metacharacters while being
18606
# careful not to overquote the AC_SUBSTed values. We take copies of the
18607
# variables and quote the copies for generation of the libtool script.
18608
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18610
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18611
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18612
deplibs_check_method reload_flag reload_cmds need_locks \
18613
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18614
lt_cv_sys_global_symbol_to_c_name_address \
18615
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18616
old_postinstall_cmds old_postuninstall_cmds \
18620
lt_prog_compiler_wl_RC \
18621
lt_prog_compiler_pic_RC \
18622
lt_prog_compiler_static_RC \
18623
lt_prog_compiler_no_builtin_flag_RC \
18624
export_dynamic_flag_spec_RC \
18625
thread_safe_flag_spec_RC \
18626
whole_archive_flag_spec_RC \
18627
enable_shared_with_static_runtimes_RC \
18628
old_archive_cmds_RC \
18629
old_archive_from_new_cmds_RC \
18630
predep_objects_RC \
18631
postdep_objects_RC \
18634
compiler_lib_search_path_RC \
18636
archive_expsym_cmds_RC \
18637
postinstall_cmds_RC \
18638
postuninstall_cmds_RC \
18639
old_archive_from_expsyms_cmds_RC \
18640
allow_undefined_flag_RC \
18641
no_undefined_flag_RC \
18642
export_symbols_cmds_RC \
18643
hardcode_libdir_flag_spec_RC \
18644
hardcode_libdir_flag_spec_ld_RC \
18645
hardcode_libdir_separator_RC \
18646
hardcode_automatic_RC \
18648
module_expsym_cmds_RC \
18649
lt_cv_prog_compiler_c_o_RC \
18650
exclude_expsyms_RC \
18651
include_expsyms_RC; do
18654
old_archive_cmds_RC | \
18655
old_archive_from_new_cmds_RC | \
18656
archive_cmds_RC | \
18657
archive_expsym_cmds_RC | \
18659
module_expsym_cmds_RC | \
18660
old_archive_from_expsyms_cmds_RC | \
18661
export_symbols_cmds_RC | \
18662
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18663
postinstall_cmds | postuninstall_cmds | \
18664
old_postinstall_cmds | old_postuninstall_cmds | \
18665
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18666
# Double-quote double-evaled strings.
18667
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18670
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18676
*'\$0 --fallback-echo"')
18677
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18683
cat <<__EOF__ >> "$cfgfile"
18684
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18686
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18688
# Shell to use when invoking shell scripts.
18691
# Whether or not to build shared libraries.
18692
build_libtool_libs=$enable_shared
18694
# Whether or not to build static libraries.
18695
build_old_libs=$enable_static
18697
# Whether or not to add -lc for building shared libraries.
18698
build_libtool_need_lc=$archive_cmds_need_lc_RC
18700
# Whether or not to disallow shared libs when runtime libs are static
18701
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18703
# Whether or not to optimize for fast installation.
18704
fast_install=$enable_fast_install
18707
host_alias=$host_alias
18710
# An echo program that does not interpret backslashes.
18715
AR_FLAGS=$lt_AR_FLAGS
18720
# A language-specific compiler.
18723
# Is the compiler the GNU C compiler?
18729
# The linker used to build libraries.
18732
# Whether we need hard or soft links.
18735
# A BSD-compatible nm program.
18738
# A symbol stripping program
18741
# Used to examine libraries when file_magic_cmd begins "file"
18742
MAGIC_CMD=$MAGIC_CMD
18744
# Used on cygwin: DLL creation program.
18747
# Used on cygwin: object dumper.
18750
# Used on cygwin: assembler.
18753
# The name of the directory that contains temporary libtool files.
18756
# How to create reloadable object files.
18757
reload_flag=$lt_reload_flag
18758
reload_cmds=$lt_reload_cmds
18760
# How to pass a linker flag through the compiler.
18761
wl=$lt_lt_prog_compiler_wl_RC
18763
# Object file suffix (normally "o").
18764
objext="$ac_objext"
18766
# Old archive suffix (normally "a").
18769
# Shared library suffix (normally ".so").
18770
shrext_cmds='$shrext_cmds'
18772
# Executable file suffix (normally "").
18775
# Additional compiler flags for building library objects.
18776
pic_flag=$lt_lt_prog_compiler_pic_RC
18779
# What is the maximum length of a command?
18780
max_cmd_len=$lt_cv_sys_max_cmd_len
18782
# Does compiler simultaneously support -c and -o options?
18783
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18785
# Must we lock files when doing compilation ?
18786
need_locks=$lt_need_locks
18788
# Do we need the lib prefix for modules?
18789
need_lib_prefix=$need_lib_prefix
18791
# Do we need a version for libraries?
18792
need_version=$need_version
18794
# Whether dlopen is supported.
18795
dlopen_support=$enable_dlopen
18797
# Whether dlopen of programs is supported.
18798
dlopen_self=$enable_dlopen_self
18800
# Whether dlopen of statically linked programs is supported.
18801
dlopen_self_static=$enable_dlopen_self_static
18803
# Compiler flag to prevent dynamic linking.
18804
link_static_flag=$lt_lt_prog_compiler_static_RC
18806
# Compiler flag to turn off builtin functions.
18807
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18809
# Compiler flag to allow reflexive dlopens.
18810
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18812
# Compiler flag to generate shared objects directly from archives.
18813
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18815
# Compiler flag to generate thread-safe objects.
18816
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18818
# Library versioning type.
18819
version_type=$version_type
18821
# Format of library name prefix.
18822
libname_spec=$lt_libname_spec
18824
# List of archive names. First name is the real one, the rest are links.
18825
# The last name is the one that the linker finds with -lNAME.
18826
library_names_spec=$lt_library_names_spec
18828
# The coded name of the library, if different from the real name.
18829
soname_spec=$lt_soname_spec
18831
# Commands used to build and install an old-style archive.
18833
old_archive_cmds=$lt_old_archive_cmds_RC
18834
old_postinstall_cmds=$lt_old_postinstall_cmds
18835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18837
# Create an old-style archive from a shared archive.
18838
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18840
# Create a temporary old-style archive to link instead of a shared archive.
18841
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18843
# Commands used to build and install a shared archive.
18844
archive_cmds=$lt_archive_cmds_RC
18845
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18846
postinstall_cmds=$lt_postinstall_cmds
18847
postuninstall_cmds=$lt_postuninstall_cmds
18849
# Commands used to build a loadable module (assumed same as above if empty)
18850
module_cmds=$lt_module_cmds_RC
18851
module_expsym_cmds=$lt_module_expsym_cmds_RC
18853
# Commands to strip libraries.
18854
old_striplib=$lt_old_striplib
18855
striplib=$lt_striplib
18857
# Dependencies to place before the objects being linked to create a
18859
predep_objects=$lt_predep_objects_RC
18861
# Dependencies to place after the objects being linked to create a
18863
postdep_objects=$lt_postdep_objects_RC
18865
# Dependencies to place before the objects being linked to create a
18867
predeps=$lt_predeps_RC
18869
# Dependencies to place after the objects being linked to create a
18871
postdeps=$lt_postdeps_RC
18873
# The library search path used internally by the compiler when linking
18874
# a shared library.
18875
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18877
# Method to check whether dependent libraries are shared objects.
18878
deplibs_check_method=$lt_deplibs_check_method
18880
# Command to use when deplibs_check_method == file_magic.
18881
file_magic_cmd=$lt_file_magic_cmd
18883
# Flag that allows shared libraries with undefined symbols to be built.
18884
allow_undefined_flag=$lt_allow_undefined_flag_RC
18886
# Flag that forces no undefined symbols.
18887
no_undefined_flag=$lt_no_undefined_flag_RC
18889
# Commands used to finish a libtool library installation in a directory.
18890
finish_cmds=$lt_finish_cmds
18892
# Same as above, but a single script fragment to be evaled but not shown.
18893
finish_eval=$lt_finish_eval
18895
# Take the output of nm and produce a listing of raw symbols and C names.
18896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18898
# Transform the output of nm in a proper C declaration
18899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18901
# Transform the output of nm in a C name address pair
18902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18904
# This is the shared library runtime path variable.
18905
runpath_var=$runpath_var
18907
# This is the shared library path variable.
18908
shlibpath_var=$shlibpath_var
18910
# Is shlibpath searched before the hard-coded library search path?
18911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18913
# How to hardcode a shared library path into an executable.
18914
hardcode_action=$hardcode_action_RC
18916
# Whether we should hardcode library paths into libraries.
18917
hardcode_into_libs=$hardcode_into_libs
18919
# Flag to hardcode \$libdir into a binary during linking.
18920
# This must work even if \$libdir does not exist.
18921
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18923
# If ld is used when linking, flag to hardcode \$libdir into
18924
# a binary during linking. This must work even if \$libdir does
18926
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18928
# Whether we need a single -rpath flag with a separated argument.
18929
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18932
# resulting binary.
18933
hardcode_direct=$hardcode_direct_RC
18935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18936
# resulting binary.
18937
hardcode_minus_L=$hardcode_minus_L_RC
18939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18940
# the resulting binary.
18941
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18943
# Set to yes if building a shared library automatically hardcodes DIR into the library
18944
# and all subsequent libraries and executables linked against it.
18945
hardcode_automatic=$hardcode_automatic_RC
18947
# Variables whose values should be saved in libtool wrapper scripts and
18948
# restored at relink time.
18949
variables_saved_for_relink="$variables_saved_for_relink"
18951
# Whether libtool must link a program against all its dependency libraries.
18952
link_all_deplibs=$link_all_deplibs_RC
18954
# Compile-time system search path for libraries
18955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18957
# Run-time system search path for libraries
18958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18960
# Fix the shell variable \$srcfile for the compiler.
18961
fix_srcfile_path="$fix_srcfile_path_RC"
18963
# Set to yes if exported symbols are required.
18964
always_export_symbols=$always_export_symbols_RC
18966
# The commands to list exported symbols.
18967
export_symbols_cmds=$lt_export_symbols_cmds_RC
18969
# The commands to extract the exported symbol list from a shared archive.
18970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18972
# Symbols that should not be listed in the preloaded symbols.
18973
exclude_expsyms=$lt_exclude_expsyms_RC
18975
# Symbols that must always be exported.
18976
include_expsyms=$lt_include_expsyms_RC
18978
# ### END LIBTOOL TAG CONFIG: $tagname
18984
# If there is no Makefile yet, we rely on a make rule to execute
18985
# `config.status --recheck' to rerun these tests and create the
18986
# libtool script then.
18987
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18988
if test -f "$ltmain_in"; then
18989
test -f Makefile && make "$ltmain"
18995
ac_cpp='$CPP $CPPFLAGS'
18996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19006
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19007
{ (exit 1); exit 1; }; }
19011
# Append the new tag name to the list of available tags.
19012
if test -n "$tagname" ; then
19013
available_tags="$available_tags $tagname"
19019
# Now substitute the updated list of available tags.
19020
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19021
mv "${ofile}T" "$ofile"
19025
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19026
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19027
{ (exit 1); exit 1; }; }
19033
# This can be used to rebuild libtool when needed
19034
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19036
# Always use our own libtool.
19037
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19039
# Prevent multiple expansion
19061
###########################################################################
19063
LIBCTL_VERSION=$PACKAGE_VERSION
19065
cat >>confdefs.h <<_ACEOF
19066
#define LIBCTL_VERSION "$LIBCTL_VERSION"
19071
LIBCTL_MAJOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f1`
19072
LIBCTL_MINOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f2`
19073
LIBCTL_BUGFIX_VERSION=`echo $LIBCTL_VERSION |cut -d. -f3`
19074
test "x$LIBCTL_BUGFIX_VERSION" = x && LIBCTL_BUGFIX_VERSION=0
19076
cat >>confdefs.h <<_ACEOF
19077
#define LIBCTL_MAJOR_VERSION $LIBCTL_MAJOR_VERSION
19081
cat >>confdefs.h <<_ACEOF
19082
#define LIBCTL_MINOR_VERSION $LIBCTL_MINOR_VERSION
19086
cat >>confdefs.h <<_ACEOF
19087
#define LIBCTL_BUGFIX_VERSION $LIBCTL_BUGFIX_VERSION
19091
###########################################################################
19093
# Checks for programs.
19095
ac_cpp='$CPP $CPPFLAGS'
19096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19099
if test -n "$ac_tool_prefix"; then
19100
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19101
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19102
echo "$as_me:$LINENO: checking for $ac_word" >&5
19103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19104
if test "${ac_cv_prog_CC+set}" = set; then
19105
echo $ECHO_N "(cached) $ECHO_C" >&6
19107
if test -n "$CC"; then
19108
ac_cv_prog_CC="$CC" # Let the user override the test.
19110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19111
for as_dir in $PATH
19114
test -z "$as_dir" && as_dir=.
19115
for ac_exec_ext in '' $ac_executable_extensions; do
19116
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19117
ac_cv_prog_CC="${ac_tool_prefix}gcc"
19118
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19127
if test -n "$CC"; then
19128
echo "$as_me:$LINENO: result: $CC" >&5
19129
echo "${ECHO_T}$CC" >&6
19131
echo "$as_me:$LINENO: result: no" >&5
19132
echo "${ECHO_T}no" >&6
19136
if test -z "$ac_cv_prog_CC"; then
19138
# Extract the first word of "gcc", so it can be a program name with args.
19139
set dummy gcc; ac_word=$2
19140
echo "$as_me:$LINENO: checking for $ac_word" >&5
19141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19142
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19143
echo $ECHO_N "(cached) $ECHO_C" >&6
19145
if test -n "$ac_ct_CC"; then
19146
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19149
for as_dir in $PATH
19152
test -z "$as_dir" && as_dir=.
19153
for ac_exec_ext in '' $ac_executable_extensions; do
19154
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19155
ac_cv_prog_ac_ct_CC="gcc"
19156
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19164
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19165
if test -n "$ac_ct_CC"; then
19166
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19167
echo "${ECHO_T}$ac_ct_CC" >&6
19169
echo "$as_me:$LINENO: result: no" >&5
19170
echo "${ECHO_T}no" >&6
19175
CC="$ac_cv_prog_CC"
19178
if test -z "$CC"; then
19179
if test -n "$ac_tool_prefix"; then
19180
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19181
set dummy ${ac_tool_prefix}cc; ac_word=$2
19182
echo "$as_me:$LINENO: checking for $ac_word" >&5
19183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19184
if test "${ac_cv_prog_CC+set}" = set; then
19185
echo $ECHO_N "(cached) $ECHO_C" >&6
19187
if test -n "$CC"; then
19188
ac_cv_prog_CC="$CC" # Let the user override the test.
19190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191
for as_dir in $PATH
19194
test -z "$as_dir" && as_dir=.
19195
for ac_exec_ext in '' $ac_executable_extensions; do
19196
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19197
ac_cv_prog_CC="${ac_tool_prefix}cc"
19198
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19207
if test -n "$CC"; then
19208
echo "$as_me:$LINENO: result: $CC" >&5
19209
echo "${ECHO_T}$CC" >&6
19211
echo "$as_me:$LINENO: result: no" >&5
19212
echo "${ECHO_T}no" >&6
19216
if test -z "$ac_cv_prog_CC"; then
19218
# Extract the first word of "cc", so it can be a program name with args.
19219
set dummy cc; ac_word=$2
19220
echo "$as_me:$LINENO: checking for $ac_word" >&5
19221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19222
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19223
echo $ECHO_N "(cached) $ECHO_C" >&6
19225
if test -n "$ac_ct_CC"; then
19226
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19229
for as_dir in $PATH
19232
test -z "$as_dir" && as_dir=.
19233
for ac_exec_ext in '' $ac_executable_extensions; do
19234
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19235
ac_cv_prog_ac_ct_CC="cc"
19236
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19244
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19245
if test -n "$ac_ct_CC"; then
19246
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19247
echo "${ECHO_T}$ac_ct_CC" >&6
19249
echo "$as_me:$LINENO: result: no" >&5
19250
echo "${ECHO_T}no" >&6
19255
CC="$ac_cv_prog_CC"
19259
if test -z "$CC"; then
19260
# Extract the first word of "cc", so it can be a program name with args.
19261
set dummy cc; ac_word=$2
19262
echo "$as_me:$LINENO: checking for $ac_word" >&5
19263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19264
if test "${ac_cv_prog_CC+set}" = set; then
19265
echo $ECHO_N "(cached) $ECHO_C" >&6
19267
if test -n "$CC"; then
19268
ac_cv_prog_CC="$CC" # Let the user override the test.
19270
ac_prog_rejected=no
19271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19272
for as_dir in $PATH
19275
test -z "$as_dir" && as_dir=.
19276
for ac_exec_ext in '' $ac_executable_extensions; do
19277
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19278
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19279
ac_prog_rejected=yes
19283
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19289
if test $ac_prog_rejected = yes; then
19290
# We found a bogon in the path, so make sure we never use it.
19291
set dummy $ac_cv_prog_CC
19293
if test $# != 0; then
19294
# We chose a different compiler from the bogus one.
19295
# However, it has the same basename, so the bogon will be chosen
19296
# first if we set CC to just the basename; use the full file name.
19298
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19304
if test -n "$CC"; then
19305
echo "$as_me:$LINENO: result: $CC" >&5
19306
echo "${ECHO_T}$CC" >&6
19308
echo "$as_me:$LINENO: result: no" >&5
19309
echo "${ECHO_T}no" >&6
19313
if test -z "$CC"; then
19314
if test -n "$ac_tool_prefix"; then
19317
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19318
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19319
echo "$as_me:$LINENO: checking for $ac_word" >&5
19320
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19321
if test "${ac_cv_prog_CC+set}" = set; then
19322
echo $ECHO_N "(cached) $ECHO_C" >&6
19324
if test -n "$CC"; then
19325
ac_cv_prog_CC="$CC" # Let the user override the test.
19327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328
for as_dir in $PATH
19331
test -z "$as_dir" && as_dir=.
19332
for ac_exec_ext in '' $ac_executable_extensions; do
19333
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19334
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19335
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19344
if test -n "$CC"; then
19345
echo "$as_me:$LINENO: result: $CC" >&5
19346
echo "${ECHO_T}$CC" >&6
19348
echo "$as_me:$LINENO: result: no" >&5
19349
echo "${ECHO_T}no" >&6
19352
test -n "$CC" && break
19355
if test -z "$CC"; then
19359
# Extract the first word of "$ac_prog", so it can be a program name with args.
19360
set dummy $ac_prog; ac_word=$2
19361
echo "$as_me:$LINENO: checking for $ac_word" >&5
19362
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19363
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19364
echo $ECHO_N "(cached) $ECHO_C" >&6
19366
if test -n "$ac_ct_CC"; then
19367
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19370
for as_dir in $PATH
19373
test -z "$as_dir" && as_dir=.
19374
for ac_exec_ext in '' $ac_executable_extensions; do
19375
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19376
ac_cv_prog_ac_ct_CC="$ac_prog"
19377
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19385
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19386
if test -n "$ac_ct_CC"; then
19387
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19388
echo "${ECHO_T}$ac_ct_CC" >&6
19390
echo "$as_me:$LINENO: result: no" >&5
19391
echo "${ECHO_T}no" >&6
19394
test -n "$ac_ct_CC" && break
19403
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19404
See \`config.log' for more details." >&5
19405
echo "$as_me: error: no acceptable C compiler found in \$PATH
19406
See \`config.log' for more details." >&2;}
19407
{ (exit 1); exit 1; }; }
19409
# Provide some information about the compiler.
19410
echo "$as_me:$LINENO:" \
19411
"checking for C compiler version" >&5
19412
ac_compiler=`set X $ac_compile; echo $2`
19413
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19414
(eval $ac_compiler --version </dev/null >&5) 2>&5
19416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417
(exit $ac_status); }
19418
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19419
(eval $ac_compiler -v </dev/null >&5) 2>&5
19421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422
(exit $ac_status); }
19423
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19424
(eval $ac_compiler -V </dev/null >&5) 2>&5
19426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427
(exit $ac_status); }
19429
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19430
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19431
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19432
echo $ECHO_N "(cached) $ECHO_C" >&6
19434
cat >conftest.$ac_ext <<_ACEOF
19437
cat confdefs.h >>conftest.$ac_ext
19438
cat >>conftest.$ac_ext <<_ACEOF
19439
/* end confdefs.h. */
19452
rm -f conftest.$ac_objext
19453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454
(eval $ac_compile) 2>conftest.er1
19456
grep -v '^ *+' conftest.er1 >conftest.err
19458
cat conftest.err >&5
19459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460
(exit $ac_status); } &&
19461
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463
(eval $ac_try) 2>&5
19465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466
(exit $ac_status); }; } &&
19467
{ ac_try='test -s conftest.$ac_objext'
19468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469
(eval $ac_try) 2>&5
19471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472
(exit $ac_status); }; }; then
19473
ac_compiler_gnu=yes
19475
echo "$as_me: failed program was:" >&5
19476
sed 's/^/| /' conftest.$ac_ext >&5
19480
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19481
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19484
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19485
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19486
GCC=`test $ac_compiler_gnu = yes && echo yes`
19487
ac_test_CFLAGS=${CFLAGS+set}
19488
ac_save_CFLAGS=$CFLAGS
19490
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19491
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19492
if test "${ac_cv_prog_cc_g+set}" = set; then
19493
echo $ECHO_N "(cached) $ECHO_C" >&6
19495
cat >conftest.$ac_ext <<_ACEOF
19498
cat confdefs.h >>conftest.$ac_ext
19499
cat >>conftest.$ac_ext <<_ACEOF
19500
/* end confdefs.h. */
19510
rm -f conftest.$ac_objext
19511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512
(eval $ac_compile) 2>conftest.er1
19514
grep -v '^ *+' conftest.er1 >conftest.err
19516
cat conftest.err >&5
19517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518
(exit $ac_status); } &&
19519
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521
(eval $ac_try) 2>&5
19523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524
(exit $ac_status); }; } &&
19525
{ ac_try='test -s conftest.$ac_objext'
19526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527
(eval $ac_try) 2>&5
19529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530
(exit $ac_status); }; }; then
19531
ac_cv_prog_cc_g=yes
19533
echo "$as_me: failed program was:" >&5
19534
sed 's/^/| /' conftest.$ac_ext >&5
19538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19541
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19542
if test "$ac_test_CFLAGS" = set; then
19543
CFLAGS=$ac_save_CFLAGS
19544
elif test $ac_cv_prog_cc_g = yes; then
19545
if test "$GCC" = yes; then
19551
if test "$GCC" = yes; then
19557
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19558
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19559
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19560
echo $ECHO_N "(cached) $ECHO_C" >&6
19562
ac_cv_prog_cc_stdc=no
19564
cat >conftest.$ac_ext <<_ACEOF
19567
cat confdefs.h >>conftest.$ac_ext
19568
cat >>conftest.$ac_ext <<_ACEOF
19569
/* end confdefs.h. */
19570
#include <stdarg.h>
19572
#include <sys/types.h>
19573
#include <sys/stat.h>
19574
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19575
struct buf { int x; };
19576
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19577
static char *e (p, i)
19583
static char *f (char * (*g) (char **, int), char **p, ...)
19588
s = g (p, va_arg (v,int));
19593
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19594
function prototypes and stuff, but not '\xHH' hex character constants.
19595
These don't provoke an error unfortunately, instead are silently treated
19596
as 'x'. The following induces an error, until -std1 is added to get
19597
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19598
array size at least. It's necessary to write '\x00'==0 to get something
19599
that's true only with -std1. */
19600
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19602
int test (int i, double x);
19603
struct s1 {int (*f) (int a);};
19604
struct s2 {int (*f) (double a);};
19605
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19611
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19616
# Don't try gcc -ansi; that turns off useful extensions and
19617
# breaks some systems' header files.
19618
# AIX -qlanglvl=ansi
19619
# Ultrix and OSF/1 -std1
19620
# HP-UX 10.20 and later -Ae
19621
# HP-UX older versions -Aa -D_HPUX_SOURCE
19622
# SVR4 -Xc -D__EXTENSIONS__
19623
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19625
CC="$ac_save_CC $ac_arg"
19626
rm -f conftest.$ac_objext
19627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628
(eval $ac_compile) 2>conftest.er1
19630
grep -v '^ *+' conftest.er1 >conftest.err
19632
cat conftest.err >&5
19633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634
(exit $ac_status); } &&
19635
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637
(eval $ac_try) 2>&5
19639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640
(exit $ac_status); }; } &&
19641
{ ac_try='test -s conftest.$ac_objext'
19642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643
(eval $ac_try) 2>&5
19645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646
(exit $ac_status); }; }; then
19647
ac_cv_prog_cc_stdc=$ac_arg
19650
echo "$as_me: failed program was:" >&5
19651
sed 's/^/| /' conftest.$ac_ext >&5
19654
rm -f conftest.err conftest.$ac_objext
19656
rm -f conftest.$ac_ext conftest.$ac_objext
19661
case "x$ac_cv_prog_cc_stdc" in
19663
echo "$as_me:$LINENO: result: none needed" >&5
19664
echo "${ECHO_T}none needed" >&6 ;;
19666
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19667
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19668
CC="$CC $ac_cv_prog_cc_stdc" ;;
19671
# Some people use a C++ compiler to compile C. Since we use `exit',
19672
# in C++ we need to declare it. In case someone uses the same compiler
19673
# for both compiling C and C++ we need to have the C++ compiler decide
19674
# the declaration of exit, since it's the most demanding environment.
19675
cat >conftest.$ac_ext <<_ACEOF
19676
#ifndef __cplusplus
19680
rm -f conftest.$ac_objext
19681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682
(eval $ac_compile) 2>conftest.er1
19684
grep -v '^ *+' conftest.er1 >conftest.err
19686
cat conftest.err >&5
19687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688
(exit $ac_status); } &&
19689
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691
(eval $ac_try) 2>&5
19693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694
(exit $ac_status); }; } &&
19695
{ ac_try='test -s conftest.$ac_objext'
19696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697
(eval $ac_try) 2>&5
19699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700
(exit $ac_status); }; }; then
19701
for ac_declaration in \
19703
'extern "C" void std::exit (int) throw (); using std::exit;' \
19704
'extern "C" void std::exit (int); using std::exit;' \
19705
'extern "C" void exit (int) throw ();' \
19706
'extern "C" void exit (int);' \
19709
cat >conftest.$ac_ext <<_ACEOF
19712
cat confdefs.h >>conftest.$ac_ext
19713
cat >>conftest.$ac_ext <<_ACEOF
19714
/* end confdefs.h. */
19716
#include <stdlib.h>
19725
rm -f conftest.$ac_objext
19726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727
(eval $ac_compile) 2>conftest.er1
19729
grep -v '^ *+' conftest.er1 >conftest.err
19731
cat conftest.err >&5
19732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
(exit $ac_status); } &&
19734
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736
(eval $ac_try) 2>&5
19738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739
(exit $ac_status); }; } &&
19740
{ ac_try='test -s conftest.$ac_objext'
19741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742
(eval $ac_try) 2>&5
19744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745
(exit $ac_status); }; }; then
19748
echo "$as_me: failed program was:" >&5
19749
sed 's/^/| /' conftest.$ac_ext >&5
19753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19754
cat >conftest.$ac_ext <<_ACEOF
19757
cat confdefs.h >>conftest.$ac_ext
19758
cat >>conftest.$ac_ext <<_ACEOF
19759
/* end confdefs.h. */
19769
rm -f conftest.$ac_objext
19770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771
(eval $ac_compile) 2>conftest.er1
19773
grep -v '^ *+' conftest.er1 >conftest.err
19775
cat conftest.err >&5
19776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777
(exit $ac_status); } &&
19778
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780
(eval $ac_try) 2>&5
19782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783
(exit $ac_status); }; } &&
19784
{ ac_try='test -s conftest.$ac_objext'
19785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786
(eval $ac_try) 2>&5
19788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789
(exit $ac_status); }; }; then
19792
echo "$as_me: failed program was:" >&5
19793
sed 's/^/| /' conftest.$ac_ext >&5
19796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19799
if test -n "$ac_declaration"; then
19800
echo '#ifdef __cplusplus' >>confdefs.h
19801
echo $ac_declaration >>confdefs.h
19802
echo '#endif' >>confdefs.h
19806
echo "$as_me: failed program was:" >&5
19807
sed 's/^/| /' conftest.$ac_ext >&5
19810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19812
ac_cpp='$CPP $CPPFLAGS'
19813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19817
depcc="$CC" am_compiler_list=
19819
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19820
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19821
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19822
echo $ECHO_N "(cached) $ECHO_C" >&6
19824
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19825
# We make a subdir and do the tests there. Otherwise we can end up
19826
# making bogus files that we don't know about and never remove. For
19827
# instance it was reported that on HP-UX the gcc test will end up
19828
# making a dummy file named `D' -- because `-MD' means `put the output
19831
# Copy depcomp to subdir because otherwise we won't find it if we're
19832
# using a relative directory.
19833
cp "$am_depcomp" conftest.dir
19835
# We will build objects and dependencies in a subdirectory because
19836
# it helps to detect inapplicable dependency modes. For instance
19837
# both Tru64's cc and ICC support -MD to output dependencies as a
19838
# side effect of compilation, but ICC will put the dependencies in
19839
# the current directory while Tru64 will put them in the object
19843
am_cv_CC_dependencies_compiler_type=none
19844
if test "$am_compiler_list" = ""; then
19845
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19847
for depmode in $am_compiler_list; do
19848
# Setup a source with many dependencies, because some compilers
19849
# like to wrap large dependency lists on column 80 (with \), and
19850
# we should not choose a depcomp mode which is confused by this.
19852
# We need to recreate these files for each test, as the compiler may
19853
# overwrite some of them when testing with obscure command lines.
19854
# This happens at least with the AIX C compiler.
19856
for i in 1 2 3 4 5 6; do
19857
echo '#include "conftst'$i'.h"' >> sub/conftest.c
19858
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19859
# Solaris 8's {/usr,}/bin/sh.
19860
touch sub/conftst$i.h
19862
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19866
# after this tag, mechanisms are not by side-effect, so they'll
19867
# only be used when explicitly requested
19868
if test "x$enable_dependency_tracking" = xyes; then
19876
# We check with `-c' and `-o' for the sake of the "dashmstdout"
19877
# mode. It turns out that the SunPro C++ compiler does not properly
19878
# handle `-M -o', and we need to detect this.
19879
if depmode=$depmode \
19880
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19881
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19882
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19883
>/dev/null 2>conftest.err &&
19884
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19885
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19886
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19887
# icc doesn't choke on unknown options, it will just issue warnings
19888
# or remarks (even with -Werror). So we grep stderr for any message
19889
# that says an option was ignored or not supported.
19890
# When given -MP, icc 7.0 and 7.1 complain thusly:
19891
# icc: Command line warning: ignoring option '-M'; no argument required
19892
# The diagnosis changed in icc 8.0:
19893
# icc: Command line remark: option '-MP' not supported
19894
if (grep 'ignoring option' conftest.err ||
19895
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19896
am_cv_CC_dependencies_compiler_type=$depmode
19903
rm -rf conftest.dir
19905
am_cv_CC_dependencies_compiler_type=none
19909
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19910
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19911
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19916
test "x$enable_dependency_tracking" != xno \
19917
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19918
am__fastdepCC_TRUE=
19919
am__fastdepCC_FALSE='#'
19921
am__fastdepCC_TRUE='#'
19922
am__fastdepCC_FALSE=
2358
19927
for ac_prog in indent gindent