3498
3891
/* end confdefs.h. */
3499
3892
#include <stdarg.h>
3500
3893
#include <stdio.h>
3501
#include <sys/types.h>
3502
#include <sys/stat.h>
3503
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504
struct buf { int x; };
3505
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506
static char *e (p, i)
3512
static char *f (char * (*g) (char **, int), char **p, ...)
3517
s = g (p, va_arg (v,int));
3522
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523
function prototypes and stuff, but not '\xHH' hex character constants.
3524
These don't provoke an error unfortunately, instead are silently treated
3525
as 'x'. The following induces an error, until -std is added to get
3526
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527
array size at least. It's necessary to write '\x00'==0 to get something
3528
that's true only with -std. */
3529
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532
inside strings and character constants. */
3534
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536
int test (int i, double x);
3537
struct s1 {int (*f) (int a);};
3538
struct s2 {int (*f) (double a);};
3539
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3545
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553
CC="$ac_save_CC $ac_arg"
3554
if ac_fn_c_try_compile "$LINENO"; then :
3555
ac_cv_prog_cc_c89=$ac_arg
3557
rm -f core conftest.err conftest.$ac_objext
3558
test "x$ac_cv_prog_cc_c89" != "xno" && break
3560
rm -f conftest.$ac_ext
3565
case "x$ac_cv_prog_cc_c89" in
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568
$as_echo "none needed" >&6; } ;;
3570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571
$as_echo "unsupported" >&6; } ;;
3573
CC="$CC $ac_cv_prog_cc_c89"
3574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3575
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3577
if test "x$ac_cv_prog_cc_c89" != xno; then :
3582
ac_cpp='$CPP $CPPFLAGS'
3583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
DEPDIR="${am__leading_dot}deps"
3588
ac_config_commands="$ac_config_commands depfiles"
3591
am_make=${MAKE-make}
3592
cat > confinc << 'END'
3594
@echo this is the am__doit target
3597
# If we don't find an include directive, just comment out the code.
3598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3599
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3603
# First try GNU make style include.
3604
echo "include confinc" > confmf
3605
# Ignore all kinds of additional output from `make'.
3606
case `$am_make -s -f confmf 2> /dev/null` in #(
3607
*the\ am__doit\ target*)
3613
# Now try BSD make style include.
3614
if test "$am__include" = "#"; then
3615
echo '.include "confinc"' > confmf
3616
case `$am_make -s -f confmf 2> /dev/null` in #(
3617
*the\ am__doit\ target*)
3618
am__include=.include
3626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3627
$as_echo "$_am_result" >&6; }
3628
rm -f confinc confmf
3630
# Check whether --enable-dependency-tracking was given.
3631
if test "${enable_dependency_tracking+set}" = set; then :
3632
enableval=$enable_dependency_tracking;
3635
if test "x$enable_dependency_tracking" != xno; then
3636
am_depcomp="$ac_aux_dir/depcomp"
3640
if test "x$enable_dependency_tracking" != xno; then
3895
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3896
struct buf { int x; };
3897
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898
static char *e (p, i)
3904
static char *f (char * (*g) (char **, int), char **p, ...)
3909
s = g (p, va_arg (v,int));
3914
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3915
function prototypes and stuff, but not '\xHH' hex character constants.
3916
These don't provoke an error unfortunately, instead are silently treated
3917
as 'x'. The following induces an error, until -std is added to get
3918
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3919
array size at least. It's necessary to write '\x00'==0 to get something
3920
that's true only with -std. */
3921
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3923
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924
inside strings and character constants. */
3926
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3928
int test (int i, double x);
3929
struct s1 {int (*f) (int a);};
3930
struct s2 {int (*f) (double a);};
3931
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3937
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3942
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3945
CC="$ac_save_CC $ac_arg"
3946
if ac_fn_c_try_compile "$LINENO"; then :
3947
ac_cv_prog_cc_c89=$ac_arg
3949
rm -f core conftest.err conftest.$ac_objext
3950
test "x$ac_cv_prog_cc_c89" != "xno" && break
3952
rm -f conftest.$ac_ext
3957
case "x$ac_cv_prog_cc_c89" in
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960
$as_echo "none needed" >&6; } ;;
3962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963
$as_echo "unsupported" >&6; } ;;
3965
CC="$CC $ac_cv_prog_cc_c89"
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969
if test "x$ac_cv_prog_cc_c89" != xno; then :
3974
ac_cpp='$CPP $CPPFLAGS'
3975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
depcc="$CC" am_compiler_list=
3981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3982
$as_echo_n "checking dependency style of $depcc... " >&6; }
3983
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3984
$as_echo_n "(cached) " >&6
3986
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3987
# We make a subdir and do the tests there. Otherwise we can end up
3988
# making bogus files that we don't know about and never remove. For
3989
# instance it was reported that on HP-UX the gcc test will end up
3990
# making a dummy file named `D' -- because `-MD' means `put the output
3994
# Copy depcomp to subdir because otherwise we won't find it if we're
3995
# using a relative directory.
3996
cp "$am_depcomp" conftest.dir
3998
# We will build objects and dependencies in a subdirectory because
3999
# it helps to detect inapplicable dependency modes. For instance
4000
# both Tru64's cc and ICC support -MD to output dependencies as a
4001
# side effect of compilation, but ICC will put the dependencies in
4002
# the current directory while Tru64 will put them in the object
4006
am_cv_CC_dependencies_compiler_type=none
4007
if test "$am_compiler_list" = ""; then
4008
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4011
case " $depcc " in #(
4012
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4015
for depmode in $am_compiler_list; do
4016
# Setup a source with many dependencies, because some compilers
4017
# like to wrap large dependency lists on column 80 (with \), and
4018
# we should not choose a depcomp mode which is confused by this.
4020
# We need to recreate these files for each test, as the compiler may
4021
# overwrite some of them when testing with obscure command lines.
4022
# This happens at least with the AIX C compiler.
4024
for i in 1 2 3 4 5 6; do
4025
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4026
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4027
# Solaris 8's {/usr,}/bin/sh.
4028
touch sub/conftst$i.h
4030
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4033
# mode. It turns out that the SunPro C++ compiler does not properly
4034
# handle `-M -o', and we need to detect this. Also, some Intel
4035
# versions had trouble with output in subdirs
4036
am__obj=sub/conftest.${OBJEXT-o}
4037
am__minus_obj="-o $am__obj"
4040
# This depmode causes a compiler race in universal mode.
4041
test "$am__universal" = false || continue
4044
# after this tag, mechanisms are not by side-effect, so they'll
4045
# only be used when explicitly requested
4046
if test "x$enable_dependency_tracking" = xyes; then
4052
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4053
# This compiler won't grok `-c -o', but also, the minuso test has
4054
# not run yet. These depmodes are late enough in the game, and
4055
# so weak that their functioning should not be impacted.
4056
am__obj=conftest.${OBJEXT-o}
4061
if depmode=$depmode \
4062
source=sub/conftest.c object=$am__obj \
4063
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4064
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4065
>/dev/null 2>conftest.err &&
4066
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4067
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4068
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4069
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4070
# icc doesn't choke on unknown options, it will just issue warnings
4071
# or remarks (even with -Werror). So we grep stderr for any message
4072
# that says an option was ignored or not supported.
4073
# When given -MP, icc 7.0 and 7.1 complain thusly:
4074
# icc: Command line warning: ignoring option '-M'; no argument required
4075
# The diagnosis changed in icc 8.0:
4076
# icc: Command line remark: option '-MP' not supported
4077
if (grep 'ignoring option' conftest.err ||
4078
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4079
am_cv_CC_dependencies_compiler_type=$depmode
4088
am_cv_CC_dependencies_compiler_type=none
4092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4093
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4094
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4097
test "x$enable_dependency_tracking" != xno \
4098
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4100
am__fastdepCC_FALSE='#'
4102
am__fastdepCC_TRUE='#'
4103
am__fastdepCC_FALSE=
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4108
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4109
if ${ac_cv_path_SED+:} false; then :
4110
$as_echo_n "(cached) " >&6
4112
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4113
for ac_i in 1 2 3 4 5 6 7; do
4114
ac_script="$ac_script$as_nl$ac_script"
4116
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4117
{ ac_script=; unset ac_script;}
4118
if test -z "$SED"; then
4119
ac_path_SED_found=false
4120
# Loop through the user's path and test for each of PROGNAME-LIST
4121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125
test -z "$as_dir" && as_dir=.
4126
for ac_prog in sed gsed; do
4127
for ac_exec_ext in '' $ac_executable_extensions; do
4128
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4129
as_fn_executable_p "$ac_path_SED" || continue
4130
# Check for GNU ac_path_SED and select it if it is found.
4131
# Check for GNU $ac_path_SED
4132
case `"$ac_path_SED" --version 2>&1` in
4134
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4137
$as_echo_n 0123456789 >"conftest.in"
4140
cat "conftest.in" "conftest.in" >"conftest.tmp"
4141
mv "conftest.tmp" "conftest.in"
4142
cp "conftest.in" "conftest.nl"
4143
$as_echo '' >> "conftest.nl"
4144
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146
as_fn_arith $ac_count + 1 && ac_count=$as_val
4147
if test $ac_count -gt ${ac_path_SED_max-0}; then
4148
# Best one so far, save it but keep looking for a better one
4149
ac_cv_path_SED="$ac_path_SED"
4150
ac_path_SED_max=$ac_count
4152
# 10*(2^10) chars as input seems more than enough
4153
test $ac_count -gt 10 && break
4155
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158
$ac_path_SED_found && break 3
4163
if test -z "$ac_cv_path_SED"; then
4164
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4172
$as_echo "$ac_cv_path_SED" >&6; }
4173
SED="$ac_cv_path_SED"
4176
test -z "$SED" && SED=sed
4177
Xsed="$SED -e 1s/^X//"
4189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4190
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4191
if ${ac_cv_path_GREP+:} false; then :
4192
$as_echo_n "(cached) " >&6
4194
if test -z "$GREP"; then
4195
ac_path_GREP_found=false
4196
# Loop through the user's path and test for each of PROGNAME-LIST
4197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201
test -z "$as_dir" && as_dir=.
4202
for ac_prog in grep ggrep; do
4203
for ac_exec_ext in '' $ac_executable_extensions; do
4204
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4205
as_fn_executable_p "$ac_path_GREP" || continue
4206
# Check for GNU ac_path_GREP and select it if it is found.
4207
# Check for GNU $ac_path_GREP
4208
case `"$ac_path_GREP" --version 2>&1` in
4210
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213
$as_echo_n 0123456789 >"conftest.in"
4216
cat "conftest.in" "conftest.in" >"conftest.tmp"
4217
mv "conftest.tmp" "conftest.in"
4218
cp "conftest.in" "conftest.nl"
4219
$as_echo 'GREP' >> "conftest.nl"
4220
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222
as_fn_arith $ac_count + 1 && ac_count=$as_val
4223
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4224
# Best one so far, save it but keep looking for a better one
4225
ac_cv_path_GREP="$ac_path_GREP"
4226
ac_path_GREP_max=$ac_count
4228
# 10*(2^10) chars as input seems more than enough
4229
test $ac_count -gt 10 && break
4231
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234
$ac_path_GREP_found && break 3
4239
if test -z "$ac_cv_path_GREP"; then
4240
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243
ac_cv_path_GREP=$GREP
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4248
$as_echo "$ac_cv_path_GREP" >&6; }
4249
GREP="$ac_cv_path_GREP"
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4253
$as_echo_n "checking for egrep... " >&6; }
4254
if ${ac_cv_path_EGREP+:} false; then :
4255
$as_echo_n "(cached) " >&6
4257
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4258
then ac_cv_path_EGREP="$GREP -E"
4260
if test -z "$EGREP"; then
4261
ac_path_EGREP_found=false
4262
# Loop through the user's path and test for each of PROGNAME-LIST
4263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267
test -z "$as_dir" && as_dir=.
4268
for ac_prog in egrep; do
4269
for ac_exec_ext in '' $ac_executable_extensions; do
4270
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4271
as_fn_executable_p "$ac_path_EGREP" || continue
4272
# Check for GNU ac_path_EGREP and select it if it is found.
4273
# Check for GNU $ac_path_EGREP
4274
case `"$ac_path_EGREP" --version 2>&1` in
4276
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279
$as_echo_n 0123456789 >"conftest.in"
4282
cat "conftest.in" "conftest.in" >"conftest.tmp"
4283
mv "conftest.tmp" "conftest.in"
4284
cp "conftest.in" "conftest.nl"
4285
$as_echo 'EGREP' >> "conftest.nl"
4286
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4287
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4288
as_fn_arith $ac_count + 1 && ac_count=$as_val
4289
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4290
# Best one so far, save it but keep looking for a better one
4291
ac_cv_path_EGREP="$ac_path_EGREP"
4292
ac_path_EGREP_max=$ac_count
4294
# 10*(2^10) chars as input seems more than enough
4295
test $ac_count -gt 10 && break
4297
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300
$ac_path_EGREP_found && break 3
4305
if test -z "$ac_cv_path_EGREP"; then
4306
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309
ac_cv_path_EGREP=$EGREP
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4315
$as_echo "$ac_cv_path_EGREP" >&6; }
4316
EGREP="$ac_cv_path_EGREP"
4319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4320
$as_echo_n "checking for fgrep... " >&6; }
4321
if ${ac_cv_path_FGREP+:} false; then :
4322
$as_echo_n "(cached) " >&6
4324
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4325
then ac_cv_path_FGREP="$GREP -F"
4327
if test -z "$FGREP"; then
4328
ac_path_FGREP_found=false
4329
# Loop through the user's path and test for each of PROGNAME-LIST
4330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334
test -z "$as_dir" && as_dir=.
4335
for ac_prog in fgrep; do
4336
for ac_exec_ext in '' $ac_executable_extensions; do
4337
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4338
as_fn_executable_p "$ac_path_FGREP" || continue
4339
# Check for GNU ac_path_FGREP and select it if it is found.
4340
# Check for GNU $ac_path_FGREP
4341
case `"$ac_path_FGREP" --version 2>&1` in
4343
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4346
$as_echo_n 0123456789 >"conftest.in"
4349
cat "conftest.in" "conftest.in" >"conftest.tmp"
4350
mv "conftest.tmp" "conftest.in"
4351
cp "conftest.in" "conftest.nl"
4352
$as_echo 'FGREP' >> "conftest.nl"
4353
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355
as_fn_arith $ac_count + 1 && ac_count=$as_val
4356
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4357
# Best one so far, save it but keep looking for a better one
4358
ac_cv_path_FGREP="$ac_path_FGREP"
4359
ac_path_FGREP_max=$ac_count
4361
# 10*(2^10) chars as input seems more than enough
4362
test $ac_count -gt 10 && break
4364
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367
$ac_path_FGREP_found && break 3
4372
if test -z "$ac_cv_path_FGREP"; then
4373
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376
ac_cv_path_FGREP=$FGREP
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4382
$as_echo "$ac_cv_path_FGREP" >&6; }
4383
FGREP="$ac_cv_path_FGREP"
4386
test -z "$GREP" && GREP=grep
4406
# Check whether --with-gnu-ld was given.
4407
if test "${with_gnu_ld+set}" = set; then :
4408
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4414
if test "$GCC" = yes; then
4415
# Check if gcc -print-prog-name=ld gives a path.
4416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4417
$as_echo_n "checking for ld used by $CC... " >&6; }
4420
# gcc leaves a trailing carriage return which upsets mingw
4421
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4423
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4426
# Accept absolute paths.
4428
re_direlt='/[^/][^/]*/\.\./'
4429
# Canonicalize the pathname of ld
4430
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4431
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4432
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4434
test -z "$LD" && LD="$ac_prog"
4437
# If it fails, then pretend we aren't using GCC.
4441
# If it is relative, then search for the first ld in PATH.
4445
elif test "$with_gnu_ld" = yes; then
4446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4447
$as_echo_n "checking for GNU ld... " >&6; }
4449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4450
$as_echo_n "checking for non-GNU ld... " >&6; }
4452
if ${lt_cv_path_LD+:} false; then :
4453
$as_echo_n "(cached) " >&6
4455
if test -z "$LD"; then
4456
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4457
for ac_dir in $PATH; do
4459
test -z "$ac_dir" && ac_dir=.
4460
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4461
lt_cv_path_LD="$ac_dir/$ac_prog"
4462
# Check to see if the program is GNU ld. I'd rather use --version,
4463
# but apparently some variants of GNU ld only accept -v.
4464
# Break only if it was the GNU/non-GNU ld that we prefer.
4465
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4466
*GNU* | *'with BFD'*)
4467
test "$with_gnu_ld" != no && break
4470
test "$with_gnu_ld" != yes && break
4477
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4482
if test -n "$LD"; then
4483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4484
$as_echo "$LD" >&6; }
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487
$as_echo "no" >&6; }
4489
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4491
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4492
if ${lt_cv_prog_gnu_ld+:} false; then :
4493
$as_echo_n "(cached) " >&6
4495
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4496
case `$LD -v 2>&1 </dev/null` in
4497
*GNU* | *'with BFD'*)
4498
lt_cv_prog_gnu_ld=yes
4501
lt_cv_prog_gnu_ld=no
4505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4506
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4507
with_gnu_ld=$lt_cv_prog_gnu_ld
4517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4518
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4519
if ${lt_cv_path_NM+:} false; then :
4520
$as_echo_n "(cached) " >&6
4522
if test -n "$NM"; then
4523
# Let the user override the test.
4526
lt_nm_to_check="${ac_tool_prefix}nm"
4527
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4528
lt_nm_to_check="$lt_nm_to_check nm"
4530
for lt_tmp_nm in $lt_nm_to_check; do
4531
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4532
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4534
test -z "$ac_dir" && ac_dir=.
4535
tmp_nm="$ac_dir/$lt_tmp_nm"
4536
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4537
# Check to see if the nm accepts a BSD-compat flag.
4538
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4539
# nm: unknown option "B" ignored
4540
# Tru64's nm complains that /dev/null is an invalid object file
4541
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4542
*/dev/null* | *'Invalid file or object type'*)
4543
lt_cv_path_NM="$tmp_nm -B"
4547
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4549
lt_cv_path_NM="$tmp_nm -p"
4553
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4554
continue # so that we can try to find one that supports BSD flags
4563
: ${lt_cv_path_NM=no}
4566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4567
$as_echo "$lt_cv_path_NM" >&6; }
4568
if test "$lt_cv_path_NM" != "no"; then
4571
# Didn't find any BSD compatible name lister, look for dumpbin.
4572
if test -n "$DUMPBIN"; then :
4573
# Let the user override the test.
4575
if test -n "$ac_tool_prefix"; then
4576
for ac_prog in dumpbin "link -dump"
4578
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4579
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581
$as_echo_n "checking for $ac_word... " >&6; }
4582
if ${ac_cv_prog_DUMPBIN+:} false; then :
4583
$as_echo_n "(cached) " >&6
4585
if test -n "$DUMPBIN"; then
4586
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592
test -z "$as_dir" && as_dir=.
4593
for ac_exec_ext in '' $ac_executable_extensions; do
4594
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605
DUMPBIN=$ac_cv_prog_DUMPBIN
4606
if test -n "$DUMPBIN"; then
4607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4608
$as_echo "$DUMPBIN" >&6; }
4610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611
$as_echo "no" >&6; }
4615
test -n "$DUMPBIN" && break
4618
if test -z "$DUMPBIN"; then
4619
ac_ct_DUMPBIN=$DUMPBIN
4620
for ac_prog in dumpbin "link -dump"
4622
# Extract the first word of "$ac_prog", so it can be a program name with args.
4623
set dummy $ac_prog; ac_word=$2
4624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625
$as_echo_n "checking for $ac_word... " >&6; }
4626
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4627
$as_echo_n "(cached) " >&6
4629
if test -n "$ac_ct_DUMPBIN"; then
4630
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636
test -z "$as_dir" && as_dir=.
4637
for ac_exec_ext in '' $ac_executable_extensions; do
4638
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4640
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4650
if test -n "$ac_ct_DUMPBIN"; then
4651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4652
$as_echo "$ac_ct_DUMPBIN" >&6; }
4654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655
$as_echo "no" >&6; }
4659
test -n "$ac_ct_DUMPBIN" && break
4662
if test "x$ac_ct_DUMPBIN" = x; then
4665
case $cross_compiling:$ac_tool_warned in
4667
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4668
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4669
ac_tool_warned=yes ;;
4671
DUMPBIN=$ac_ct_DUMPBIN
4675
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4677
DUMPBIN="$DUMPBIN -symbols"
4685
if test "$DUMPBIN" != ":"; then
4689
test -z "$NM" && NM=nm
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4697
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4698
if ${lt_cv_nm_interface+:} false; then :
4699
$as_echo_n "(cached) " >&6
4701
lt_cv_nm_interface="BSD nm"
4702
echo "int some_variable = 0;" > conftest.$ac_ext
4703
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4704
(eval "$ac_compile" 2>conftest.err)
4705
cat conftest.err >&5
4706
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4707
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4708
cat conftest.err >&5
4709
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4710
cat conftest.out >&5
4711
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4712
lt_cv_nm_interface="MS dumpbin"
4716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4717
$as_echo "$lt_cv_nm_interface" >&6; }
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4720
$as_echo_n "checking whether ln -s works... " >&6; }
4722
if test "$LN_S" = "ln -s"; then
4723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4724
$as_echo "yes" >&6; }
4726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4727
$as_echo "no, using $LN_S" >&6; }
4730
# find the maximum length of command line arguments
4731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4732
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4733
if ${lt_cv_sys_max_cmd_len+:} false; then :
4734
$as_echo_n "(cached) " >&6
4741
# On DJGPP, this test can blow up pretty badly due to problems in libc
4742
# (any single argument exceeding 2000 bytes causes a buffer overrun
4743
# during glob expansion). Even if it were fixed, the result of this
4744
# check would be larger than it should be.
4745
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4749
# Under GNU Hurd, this test is not required because there is
4750
# no limit to the length of command line arguments.
4751
# Libtool will interpret -1 as no limit whatsoever
4752
lt_cv_sys_max_cmd_len=-1;
4755
cygwin* | mingw* | cegcc*)
4756
# On Win9x/ME, this test blows up -- it succeeds, but takes
4757
# about 5 minutes as the teststring grows exponentially.
4758
# Worse, since 9x/ME are not pre-emptively multitasking,
4759
# you end up with a "frozen" computer, even though with patience
4760
# the test eventually succeeds (with a max line length of 256k).
4761
# Instead, let's just punt: use the minimum linelength reported by
4762
# all of the supported platforms: 8192 (on NT/2K/XP).
4763
lt_cv_sys_max_cmd_len=8192;
4767
# On MiNT this can take a long time and run out of memory.
4768
lt_cv_sys_max_cmd_len=8192;
4772
# On AmigaOS with pdksh, this test takes hours, literally.
4773
# So we just punt and use a minimum line length of 8192.
4774
lt_cv_sys_max_cmd_len=8192;
4777
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4778
# This has been around since 386BSD, at least. Likely further.
4779
if test -x /sbin/sysctl; then
4780
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4781
elif test -x /usr/sbin/sysctl; then
4782
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4784
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4786
# And add a safety zone
4787
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4788
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4793
lt_cv_sys_max_cmd_len=196608
4797
# The test takes a long time on OS/2.
4798
lt_cv_sys_max_cmd_len=8192
4802
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4803
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4804
# nice to cause kernel panics so lets avoid the loop below.
4805
# First set a reasonable default.
4806
lt_cv_sys_max_cmd_len=16384
4808
if test -x /sbin/sysconfig; then
4809
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4810
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4815
lt_cv_sys_max_cmd_len=102400
4817
sysv5* | sco5v6* | sysv4.2uw2*)
4818
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4819
if test -n "$kargmax"; then
4820
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4822
lt_cv_sys_max_cmd_len=32768
4826
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4827
if test -n "$lt_cv_sys_max_cmd_len"; then
4828
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4829
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4831
# Make teststring a little bigger before we do anything with it.
4832
# a 1K string should be a reasonable start.
4833
for i in 1 2 3 4 5 6 7 8 ; do
4834
teststring=$teststring$teststring
4836
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4837
# If test is not a shell built-in, we'll probably end up computing a
4838
# maximum length that is only half of the actual maximum length, but
4840
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4841
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4842
test $i != 17 # 1/2 MB should be enough
4845
teststring=$teststring$teststring
4847
# Only check the string length outside the loop.
4848
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4850
# Add a significant safety factor because C++ compilers can tack on
4851
# massive amounts of additional arguments before passing them to the
4852
# linker. It appears as though 1/2 is a usable value.
4853
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4860
if test -n $lt_cv_sys_max_cmd_len ; then
4861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4862
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4865
$as_echo "none" >&6; }
4867
max_cmd_len=$lt_cv_sys_max_cmd_len
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4879
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4880
# Try some XSI features
4883
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4885
&& eval 'test $(( 1 + 1 )) -eq 2 \
4886
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4889
$as_echo "$xsi_shell" >&6; }
4892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4893
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4895
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4897
&& lt_shell_append=yes
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4899
$as_echo "$lt_shell_append" >&6; }
4902
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4912
# test EBCDIC or ASCII
4913
case `echo X|tr X '\101'` in
4914
A) # ASCII based system
4915
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4916
lt_SP2NL='tr \040 \012'
4917
lt_NL2SP='tr \015\012 \040\040'
4919
*) # EBCDIC based system
4920
lt_SP2NL='tr \100 \n'
4921
lt_NL2SP='tr \r\n \100\100'
4933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4934
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4935
if ${lt_cv_to_host_file_cmd+:} false; then :
4936
$as_echo_n "(cached) " >&6
4941
*-*-mingw* ) # actually msys
4942
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4945
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4947
* ) # otherwise, assume *nix
4948
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4954
*-*-mingw* ) # actually msys
4955
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4958
lt_cv_to_host_file_cmd=func_convert_file_noop
4960
* ) # otherwise, assume *nix
4961
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4965
* ) # unhandled hosts (and "normal" native builds)
4966
lt_cv_to_host_file_cmd=func_convert_file_noop
4972
to_host_file_cmd=$lt_cv_to_host_file_cmd
4973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4974
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4981
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4982
if ${lt_cv_to_tool_file_cmd+:} false; then :
4983
$as_echo_n "(cached) " >&6
4985
#assume ordinary cross tools, or native build.
4986
lt_cv_to_tool_file_cmd=func_convert_file_noop
4990
*-*-mingw* ) # actually msys
4991
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4999
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5001
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5008
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5009
if ${lt_cv_ld_reload_flag+:} false; then :
5010
$as_echo_n "(cached) " >&6
5012
lt_cv_ld_reload_flag='-r'
5014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5015
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5016
reload_flag=$lt_cv_ld_reload_flag
5017
case $reload_flag in
5019
*) reload_flag=" $reload_flag" ;;
5021
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023
cygwin* | mingw* | pw32* | cegcc*)
5024
if test "$GCC" != yes; then
5029
if test "$GCC" = yes; then
5030
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5032
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5045
if test -n "$ac_tool_prefix"; then
5046
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5047
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049
$as_echo_n "checking for $ac_word... " >&6; }
5050
if ${ac_cv_prog_OBJDUMP+:} false; then :
5051
$as_echo_n "(cached) " >&6
5053
if test -n "$OBJDUMP"; then
5054
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060
test -z "$as_dir" && as_dir=.
5061
for ac_exec_ext in '' $ac_executable_extensions; do
5062
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5064
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073
OBJDUMP=$ac_cv_prog_OBJDUMP
5074
if test -n "$OBJDUMP"; then
5075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5076
$as_echo "$OBJDUMP" >&6; }
5078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079
$as_echo "no" >&6; }
5084
if test -z "$ac_cv_prog_OBJDUMP"; then
5085
ac_ct_OBJDUMP=$OBJDUMP
5086
# Extract the first word of "objdump", so it can be a program name with args.
5087
set dummy objdump; ac_word=$2
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089
$as_echo_n "checking for $ac_word... " >&6; }
5090
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5091
$as_echo_n "(cached) " >&6
5093
if test -n "$ac_ct_OBJDUMP"; then
5094
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100
test -z "$as_dir" && as_dir=.
5101
for ac_exec_ext in '' $ac_executable_extensions; do
5102
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5104
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5114
if test -n "$ac_ct_OBJDUMP"; then
5115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5116
$as_echo "$ac_ct_OBJDUMP" >&6; }
5118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119
$as_echo "no" >&6; }
5122
if test "x$ac_ct_OBJDUMP" = x; then
5125
case $cross_compiling:$ac_tool_warned in
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129
ac_tool_warned=yes ;;
5131
OBJDUMP=$ac_ct_OBJDUMP
5134
OBJDUMP="$ac_cv_prog_OBJDUMP"
5137
test -z "$OBJDUMP" && OBJDUMP=objdump
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5148
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5149
if ${lt_cv_deplibs_check_method+:} false; then :
5150
$as_echo_n "(cached) " >&6
5152
lt_cv_file_magic_cmd='$MAGIC_CMD'
5153
lt_cv_file_magic_test_file=
5154
lt_cv_deplibs_check_method='unknown'
5155
# Need to set the preceding variable on all platforms that support
5156
# interlibrary dependencies.
5157
# 'none' -- dependencies not supported.
5158
# `unknown' -- same as none, but documents that we really don't know.
5159
# 'pass_all' -- all dependencies passed with no checks.
5160
# 'test_compile' -- check by making test program.
5161
# 'file_magic [[regex]]' -- check by looking for files in library path
5162
# which responds to the $file_magic_cmd with a given extended regex.
5163
# If you have `file' or equivalent on your system and you're not sure
5164
# whether `pass_all' will *always* work, you probably want this one.
5168
lt_cv_deplibs_check_method=pass_all
5172
lt_cv_deplibs_check_method=pass_all
5176
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5177
lt_cv_file_magic_cmd='/usr/bin/file -L'
5178
lt_cv_file_magic_test_file=/shlib/libc.so
5182
# func_win32_libid is a shell function defined in ltmain.sh
5183
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184
lt_cv_file_magic_cmd='func_win32_libid'
5188
# Base MSYS/MinGW do not provide the 'file' command needed by
5189
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5190
# unless we find 'file', for example because we are cross-compiling.
5191
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5192
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5193
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5194
lt_cv_file_magic_cmd='func_win32_libid'
5196
# Keep this pattern in sync with the one in func_win32_libid.
5197
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5198
lt_cv_file_magic_cmd='$OBJDUMP -f'
5203
# use the weaker test based on 'objdump'. See mingw*.
5204
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5205
lt_cv_file_magic_cmd='$OBJDUMP -f'
5208
darwin* | rhapsody*)
5209
lt_cv_deplibs_check_method=pass_all
5212
freebsd* | dragonfly*)
5213
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5216
# Not sure whether the presence of OpenBSD here was a mistake.
5217
# Let's accept both of them until this is cleared up.
5218
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5219
lt_cv_file_magic_cmd=/usr/bin/file
5220
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5224
lt_cv_deplibs_check_method=pass_all
5229
lt_cv_deplibs_check_method=pass_all
5232
hpux10.20* | hpux11*)
5233
lt_cv_file_magic_cmd=/usr/bin/file
5236
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5237
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5240
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5241
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5244
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5245
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5251
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5252
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5255
irix5* | irix6* | nonstopux*)
5257
*-32|*"-32 ") libmagic=32-bit;;
5258
*-n32|*"-n32 ") libmagic=N32;;
5259
*-64|*"-64 ") libmagic=64-bit;;
5260
*) libmagic=never-match;;
5262
lt_cv_deplibs_check_method=pass_all
5265
# This must be glibc/ELF.
5266
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5267
lt_cv_deplibs_check_method=pass_all
5270
netbsd* | netbsdelf*-gnu)
5271
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5272
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5274
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5279
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5280
lt_cv_file_magic_cmd=/usr/bin/file
5281
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5285
lt_cv_deplibs_check_method=pass_all
5289
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5290
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5292
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5296
osf3* | osf4* | osf5*)
5297
lt_cv_deplibs_check_method=pass_all
5301
lt_cv_deplibs_check_method=pass_all
5305
lt_cv_deplibs_check_method=pass_all
5308
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5309
lt_cv_deplibs_check_method=pass_all
5313
case $host_vendor in
5315
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5316
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5319
lt_cv_deplibs_check_method=pass_all
5322
lt_cv_file_magic_cmd='/bin/file'
5323
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5326
lt_cv_file_magic_cmd='/bin/file'
5327
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5328
lt_cv_file_magic_test_file=/lib/libc.so
5331
lt_cv_deplibs_check_method=pass_all
5334
lt_cv_deplibs_check_method=pass_all
5340
lt_cv_deplibs_check_method=pass_all
5345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5346
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5350
if test "$build" = "$host"; then
5353
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5356
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5362
file_magic_cmd=$lt_cv_file_magic_cmd
5363
deplibs_check_method=$lt_cv_deplibs_check_method
5364
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5387
if test -n "$ac_tool_prefix"; then
5388
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5389
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391
$as_echo_n "checking for $ac_word... " >&6; }
5392
if ${ac_cv_prog_DLLTOOL+:} false; then :
5393
$as_echo_n "(cached) " >&6
5395
if test -n "$DLLTOOL"; then
5396
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402
test -z "$as_dir" && as_dir=.
5403
for ac_exec_ext in '' $ac_executable_extensions; do
5404
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5406
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415
DLLTOOL=$ac_cv_prog_DLLTOOL
5416
if test -n "$DLLTOOL"; then
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5418
$as_echo "$DLLTOOL" >&6; }
5420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421
$as_echo "no" >&6; }
5426
if test -z "$ac_cv_prog_DLLTOOL"; then
5427
ac_ct_DLLTOOL=$DLLTOOL
5428
# Extract the first word of "dlltool", so it can be a program name with args.
5429
set dummy dlltool; ac_word=$2
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431
$as_echo_n "checking for $ac_word... " >&6; }
5432
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5433
$as_echo_n "(cached) " >&6
5435
if test -n "$ac_ct_DLLTOOL"; then
5436
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442
test -z "$as_dir" && as_dir=.
5443
for ac_exec_ext in '' $ac_executable_extensions; do
5444
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5446
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5456
if test -n "$ac_ct_DLLTOOL"; then
5457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5458
$as_echo "$ac_ct_DLLTOOL" >&6; }
5460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461
$as_echo "no" >&6; }
5464
if test "x$ac_ct_DLLTOOL" = x; then
5467
case $cross_compiling:$ac_tool_warned in
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5470
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5471
ac_tool_warned=yes ;;
5473
DLLTOOL=$ac_ct_DLLTOOL
5476
DLLTOOL="$ac_cv_prog_DLLTOOL"
5479
test -z "$DLLTOOL" && DLLTOOL=dlltool
5490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5491
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5492
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5493
$as_echo_n "(cached) " >&6
5495
lt_cv_sharedlib_from_linklib_cmd='unknown'
5498
cygwin* | mingw* | pw32* | cegcc*)
5499
# two different shell functions defined in ltmain.sh
5500
# decide which to use based on capabilities of $DLLTOOL
5501
case `$DLLTOOL --help 2>&1` in
5502
*--identify-strict*)
5503
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5506
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5511
# fallback: assume linklib IS sharedlib
5512
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5518
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5519
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5520
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5529
if test -n "$ac_tool_prefix"; then
5532
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535
$as_echo_n "checking for $ac_word... " >&6; }
5536
if ${ac_cv_prog_AR+:} false; then :
5537
$as_echo_n "(cached) " >&6
5539
if test -n "$AR"; then
5540
ac_cv_prog_AR="$AR" # Let the user override the test.
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546
test -z "$as_dir" && as_dir=.
5547
for ac_exec_ext in '' $ac_executable_extensions; do
5548
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5550
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560
if test -n "$AR"; then
5561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5562
$as_echo "$AR" >&6; }
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565
$as_echo "no" >&6; }
5569
test -n "$AR" && break
5572
if test -z "$AR"; then
5576
# Extract the first word of "$ac_prog", so it can be a program name with args.
5577
set dummy $ac_prog; ac_word=$2
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579
$as_echo_n "checking for $ac_word... " >&6; }
5580
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5581
$as_echo_n "(cached) " >&6
5583
if test -n "$ac_ct_AR"; then
5584
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590
test -z "$as_dir" && as_dir=.
5591
for ac_exec_ext in '' $ac_executable_extensions; do
5592
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593
ac_cv_prog_ac_ct_AR="$ac_prog"
5594
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5604
if test -n "$ac_ct_AR"; then
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5606
$as_echo "$ac_ct_AR" >&6; }
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609
$as_echo "no" >&6; }
5613
test -n "$ac_ct_AR" && break
5616
if test "x$ac_ct_AR" = x; then
5619
case $cross_compiling:$ac_tool_warned in
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623
ac_tool_warned=yes ;;
5642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5643
$as_echo_n "checking for archiver @FILE support... " >&6; }
5644
if ${lt_cv_ar_at_file+:} false; then :
5645
$as_echo_n "(cached) " >&6
5648
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649
/* end confdefs.h. */
5659
if ac_fn_c_try_compile "$LINENO"; then :
5660
echo conftest.$ac_objext > conftest.lst
5661
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5662
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5663
(eval $lt_ar_try) 2>&5
5665
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666
test $ac_status = 0; }
5667
if test "$ac_status" -eq 0; then
5668
# Ensure the archiver fails upon bogus file names.
5669
rm -f conftest.$ac_objext libconftest.a
5670
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5671
(eval $lt_ar_try) 2>&5
5673
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674
test $ac_status = 0; }
5675
if test "$ac_status" -ne 0; then
5679
rm -f conftest.* libconftest.a
5682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5686
$as_echo "$lt_cv_ar_at_file" >&6; }
5688
if test "x$lt_cv_ar_at_file" = xno; then
5691
archiver_list_spec=$lt_cv_ar_at_file
5700
if test -n "$ac_tool_prefix"; then
5701
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5702
set dummy ${ac_tool_prefix}strip; ac_word=$2
5703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704
$as_echo_n "checking for $ac_word... " >&6; }
5705
if ${ac_cv_prog_STRIP+:} false; then :
5706
$as_echo_n "(cached) " >&6
5708
if test -n "$STRIP"; then
5709
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715
test -z "$as_dir" && as_dir=.
5716
for ac_exec_ext in '' $ac_executable_extensions; do
5717
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5719
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728
STRIP=$ac_cv_prog_STRIP
5729
if test -n "$STRIP"; then
5730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5731
$as_echo "$STRIP" >&6; }
5733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734
$as_echo "no" >&6; }
5739
if test -z "$ac_cv_prog_STRIP"; then
5741
# Extract the first word of "strip", so it can be a program name with args.
5742
set dummy strip; ac_word=$2
5743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744
$as_echo_n "checking for $ac_word... " >&6; }
5745
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5746
$as_echo_n "(cached) " >&6
5748
if test -n "$ac_ct_STRIP"; then
5749
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755
test -z "$as_dir" && as_dir=.
5756
for ac_exec_ext in '' $ac_executable_extensions; do
5757
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758
ac_cv_prog_ac_ct_STRIP="strip"
5759
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5769
if test -n "$ac_ct_STRIP"; then
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5771
$as_echo "$ac_ct_STRIP" >&6; }
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774
$as_echo "no" >&6; }
5777
if test "x$ac_ct_STRIP" = x; then
5780
case $cross_compiling:$ac_tool_warned in
5782
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784
ac_tool_warned=yes ;;
5789
STRIP="$ac_cv_prog_STRIP"
5792
test -z "$STRIP" && STRIP=:
5799
if test -n "$ac_tool_prefix"; then
5800
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5801
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803
$as_echo_n "checking for $ac_word... " >&6; }
5804
if ${ac_cv_prog_RANLIB+:} false; then :
5805
$as_echo_n "(cached) " >&6
5807
if test -n "$RANLIB"; then
5808
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814
test -z "$as_dir" && as_dir=.
5815
for ac_exec_ext in '' $ac_executable_extensions; do
5816
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827
RANLIB=$ac_cv_prog_RANLIB
5828
if test -n "$RANLIB"; then
5829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5830
$as_echo "$RANLIB" >&6; }
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833
$as_echo "no" >&6; }
5838
if test -z "$ac_cv_prog_RANLIB"; then
5839
ac_ct_RANLIB=$RANLIB
5840
# Extract the first word of "ranlib", so it can be a program name with args.
5841
set dummy ranlib; ac_word=$2
5842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843
$as_echo_n "checking for $ac_word... " >&6; }
5844
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5845
$as_echo_n "(cached) " >&6
5847
if test -n "$ac_ct_RANLIB"; then
5848
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854
test -z "$as_dir" && as_dir=.
5855
for ac_exec_ext in '' $ac_executable_extensions; do
5856
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857
ac_cv_prog_ac_ct_RANLIB="ranlib"
5858
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868
if test -n "$ac_ct_RANLIB"; then
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5870
$as_echo "$ac_ct_RANLIB" >&6; }
5872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873
$as_echo "no" >&6; }
5876
if test "x$ac_ct_RANLIB" = x; then
5879
case $cross_compiling:$ac_tool_warned in
5881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883
ac_tool_warned=yes ;;
5885
RANLIB=$ac_ct_RANLIB
5888
RANLIB="$ac_cv_prog_RANLIB"
5891
test -z "$RANLIB" && RANLIB=:
5898
# Determine commands to create old-style static archives.
5899
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5900
old_postinstall_cmds='chmod 644 $oldlib'
5901
old_postuninstall_cmds=
5903
if test -n "$RANLIB"; then
5906
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5909
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5912
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5917
lock_old_archive_extraction=yes ;;
5919
lock_old_archive_extraction=no ;;
5960
# If no C compiler was specified, use CC.
5963
# If no C compiler flags were specified, use CFLAGS.
5964
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5966
# Allow CC to be a program name with arguments.
5970
# Check for command to grab the raw symbol name followed by C symbol from nm.
5971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5972
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5973
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5974
$as_echo_n "(cached) " >&6
5977
# These are sane defaults that work on at least a few old systems.
5978
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5980
# Character class describing NM global symbol codes.
5981
symcode='[BCDEGRST]'
5983
# Regexp to match symbols that can be accessed directly from C.
5984
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5986
# Define system-specific variables.
5991
cygwin* | mingw* | pw32* | cegcc*)
5992
symcode='[ABCDGISTW]'
5995
if test "$host_cpu" = ia64; then
5996
symcode='[ABCDEGRST]'
6000
symcode='[BCDEGRST]'
6003
symcode='[BCDEGQRST]'
6014
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022
# If we're using GNU nm, then use its standard symbol codes.
6023
case `$NM -V 2>&1` in
6024
*GNU* | *'with BFD'*)
6025
symcode='[ABCDGIRSTW]' ;;
6028
# Transform an extracted symbol line into a proper C declaration.
6029
# Some systems (esp. on ia64) link data and code symbols differently,
6030
# so use this general approach.
6031
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6033
# Transform an extracted symbol line into symbol name and symbol address
6034
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6035
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6037
# Handle CRLF in mingw tool chain
6041
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6045
# Try without a prefix underscore, then with it.
6046
for ac_symprfx in "" "_"; do
6048
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6049
symxfrm="\\1 $ac_symprfx\\2 \\2"
6051
# Write the raw and C identifiers.
6052
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6053
# Fake it for dumpbin and say T for any non-static function
6054
# and D for any global variable.
6055
# Also find C++ and __fastcall symbols from MSVC++,
6056
# which start with @ or ?.
6057
lt_cv_sys_global_symbol_pipe="$AWK '"\
6058
" {last_section=section; section=\$ 3};"\
6059
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6060
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6061
" \$ 0!~/External *\|/{next};"\
6062
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6063
" {if(hide[section]) next};"\
6064
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6065
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6066
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6067
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6068
" ' prfx=^$ac_symprfx"
6070
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6072
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6074
# Check to see that the pipe works correctly.
6078
cat > conftest.$ac_ext <<_LT_EOF
6083
void nm_test_func(void);
6084
void nm_test_func(void){}
6088
int main(){nm_test_var='a';nm_test_func();return(0);}
6091
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6092
(eval $ac_compile) 2>&5
6094
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6095
test $ac_status = 0; }; then
6096
# Now try to grab the symbols.
6098
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6099
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6101
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102
test $ac_status = 0; } && test -s "$nlist"; then
6103
# Try sorting and uniquifying the output.
6104
if sort "$nlist" | uniq > "$nlist"T; then
6105
mv -f "$nlist"T "$nlist"
6110
# Make sure that we snagged all the symbols we need.
6111
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6112
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6113
cat <<_LT_EOF > conftest.$ac_ext
6114
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6115
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6116
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6117
relocations are performed -- see ld's documentation on pseudo-relocs. */
6118
# define LT_DLSYM_CONST
6119
#elif defined(__osf__)
6120
/* This system does not cope well with relocations in const data. */
6121
# define LT_DLSYM_CONST
6123
# define LT_DLSYM_CONST const
6131
# Now generate the symbol file.
6132
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6134
cat <<_LT_EOF >> conftest.$ac_ext
6136
/* The mapping between symbol names and symbols. */
6137
LT_DLSYM_CONST struct {
6141
lt__PROGRAM__LTX_preloaded_symbols[] =
6143
{ "@PROGRAM@", (void *) 0 },
6145
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6146
cat <<\_LT_EOF >> conftest.$ac_ext
6150
/* This works around a problem in FreeBSD linker */
6151
#ifdef FREEBSD_WORKAROUND
6152
static const void *lt_preloaded_setup() {
6153
return lt__PROGRAM__LTX_preloaded_symbols;
6161
# Now try linking the two files.
6162
mv conftest.$ac_objext conftstm.$ac_objext
6163
lt_globsym_save_LIBS=$LIBS
6164
lt_globsym_save_CFLAGS=$CFLAGS
6165
LIBS="conftstm.$ac_objext"
6166
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6168
(eval $ac_link) 2>&5
6170
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6174
LIBS=$lt_globsym_save_LIBS
6175
CFLAGS=$lt_globsym_save_CFLAGS
6177
echo "cannot find nm_test_func in $nlist" >&5
6180
echo "cannot find nm_test_var in $nlist" >&5
6183
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186
echo "$progname: failed program was:" >&5
6187
cat conftest.$ac_ext >&5
6189
rm -rf conftest* conftst*
6191
# Do not use the global_symbol_pipe unless it works.
6192
if test "$pipe_works" = yes; then
6195
lt_cv_sys_global_symbol_pipe=
6201
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202
lt_cv_sys_global_symbol_to_cdecl=
6204
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6206
$as_echo "failed" >&6; }
6208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6209
$as_echo "ok" >&6; }
6212
# Response file support.
6213
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6214
nm_file_list_spec='@'
6215
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6216
nm_file_list_spec='@'
6245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6246
$as_echo_n "checking for sysroot... " >&6; }
6248
# Check whether --with-sysroot was given.
6249
if test "${with_sysroot+set}" = set; then :
6250
withval=$with_sysroot;
6257
case ${with_sysroot} in #(
6259
if test "$GCC" = yes; then
6260
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6264
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6270
$as_echo "${with_sysroot}" >&6; }
6271
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6276
$as_echo "${lt_sysroot:-no}" >&6; }
6282
# Check whether --enable-libtool-lock was given.
6283
if test "${enable_libtool_lock+set}" = set; then :
6284
enableval=$enable_libtool_lock;
6287
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6289
# Some flags need to be propagated to the compiler or linker for good
6293
# Find out which ABI we are using.
6294
echo 'int i;' > conftest.$ac_ext
6295
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6296
(eval $ac_compile) 2>&5
6298
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299
test $ac_status = 0; }; then
6300
case `/usr/bin/file conftest.$ac_objext` in
6312
# Find out which ABI we are using.
6313
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6314
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315
(eval $ac_compile) 2>&5
6317
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318
test $ac_status = 0; }; then
6319
if test "$lt_cv_prog_gnu_ld" = yes; then
6320
case `/usr/bin/file conftest.$ac_objext` in
6322
LD="${LD-ld} -melf32bsmip"
6325
LD="${LD-ld} -melf32bmipn32"
6328
LD="${LD-ld} -melf64bmip"
6332
case `/usr/bin/file conftest.$ac_objext` in
6348
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6349
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6350
# Find out which ABI we are using.
6351
echo 'int i;' > conftest.$ac_ext
6352
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353
(eval $ac_compile) 2>&5
6355
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356
test $ac_status = 0; }; then
6357
case `/usr/bin/file conftest.o` in
6360
x86_64-*kfreebsd*-gnu)
6361
LD="${LD-ld} -m elf_i386_fbsd"
6364
LD="${LD-ld} -m elf_i386"
6366
ppc64-*linux*|powerpc64-*linux*)
6367
LD="${LD-ld} -m elf32ppclinux"
6370
LD="${LD-ld} -m elf_s390"
6373
LD="${LD-ld} -m elf32_sparc"
6379
x86_64-*kfreebsd*-gnu)
6380
LD="${LD-ld} -m elf_x86_64_fbsd"
6383
LD="${LD-ld} -m elf_x86_64"
6385
ppc*-*linux*|powerpc*-*linux*)
6386
LD="${LD-ld} -m elf64ppc"
6388
s390*-*linux*|s390*-*tpf*)
6389
LD="${LD-ld} -m elf64_s390"
6392
LD="${LD-ld} -m elf64_sparc"
6402
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6403
SAVE_CFLAGS="$CFLAGS"
6404
CFLAGS="$CFLAGS -belf"
6405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6406
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6407
if ${lt_cv_cc_needs_belf+:} false; then :
6408
$as_echo_n "(cached) " >&6
6411
ac_cpp='$CPP $CPPFLAGS'
6412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417
/* end confdefs.h. */
6427
if ac_fn_c_try_link "$LINENO"; then :
6428
lt_cv_cc_needs_belf=yes
6430
lt_cv_cc_needs_belf=no
6432
rm -f core conftest.err conftest.$ac_objext \
6433
conftest$ac_exeext conftest.$ac_ext
6435
ac_cpp='$CPP $CPPFLAGS'
6436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6442
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6443
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6444
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6445
CFLAGS="$SAVE_CFLAGS"
6449
# Find out which ABI we are using.
6450
echo 'int i;' > conftest.$ac_ext
6451
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452
(eval $ac_compile) 2>&5
6454
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455
test $ac_status = 0; }; then
6456
case `/usr/bin/file conftest.o` in
6458
case $lt_cv_prog_gnu_ld in
6462
LD="${LD-ld} -m elf_x86_64"
6465
LD="${LD-ld} -m elf64_sparc"
6468
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6469
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6474
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486
need_locks="$enable_libtool_lock"
6488
if test -n "$ac_tool_prefix"; then
6489
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6490
set dummy ${ac_tool_prefix}mt; ac_word=$2
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492
$as_echo_n "checking for $ac_word... " >&6; }
6493
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6494
$as_echo_n "(cached) " >&6
6496
if test -n "$MANIFEST_TOOL"; then
6497
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503
test -z "$as_dir" && as_dir=.
6504
for ac_exec_ext in '' $ac_executable_extensions; do
6505
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6507
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6517
if test -n "$MANIFEST_TOOL"; then
6518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6519
$as_echo "$MANIFEST_TOOL" >&6; }
6521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522
$as_echo "no" >&6; }
6527
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6528
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6529
# Extract the first word of "mt", so it can be a program name with args.
6530
set dummy mt; ac_word=$2
6531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532
$as_echo_n "checking for $ac_word... " >&6; }
6533
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6534
$as_echo_n "(cached) " >&6
6536
if test -n "$ac_ct_MANIFEST_TOOL"; then
6537
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543
test -z "$as_dir" && as_dir=.
6544
for ac_exec_ext in '' $ac_executable_extensions; do
6545
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6547
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6557
if test -n "$ac_ct_MANIFEST_TOOL"; then
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6559
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562
$as_echo "no" >&6; }
6565
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6568
case $cross_compiling:$ac_tool_warned in
6570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6571
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572
ac_tool_warned=yes ;;
6574
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6577
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6580
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6582
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6583
if ${lt_cv_path_mainfest_tool+:} false; then :
6584
$as_echo_n "(cached) " >&6
6586
lt_cv_path_mainfest_tool=no
6587
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6588
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6589
cat conftest.err >&5
6590
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6591
lt_cv_path_mainfest_tool=yes
6595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6596
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6597
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6607
rhapsody* | darwin*)
6608
if test -n "$ac_tool_prefix"; then
6609
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6610
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612
$as_echo_n "checking for $ac_word... " >&6; }
6613
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6614
$as_echo_n "(cached) " >&6
6616
if test -n "$DSYMUTIL"; then
6617
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623
test -z "$as_dir" && as_dir=.
6624
for ac_exec_ext in '' $ac_executable_extensions; do
6625
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6627
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6637
if test -n "$DSYMUTIL"; then
6638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6639
$as_echo "$DSYMUTIL" >&6; }
6641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642
$as_echo "no" >&6; }
6647
if test -z "$ac_cv_prog_DSYMUTIL"; then
6648
ac_ct_DSYMUTIL=$DSYMUTIL
6649
# Extract the first word of "dsymutil", so it can be a program name with args.
6650
set dummy dsymutil; ac_word=$2
6651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652
$as_echo_n "checking for $ac_word... " >&6; }
6653
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6654
$as_echo_n "(cached) " >&6
6656
if test -n "$ac_ct_DSYMUTIL"; then
6657
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663
test -z "$as_dir" && as_dir=.
6664
for ac_exec_ext in '' $ac_executable_extensions; do
6665
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6667
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6677
if test -n "$ac_ct_DSYMUTIL"; then
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6679
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682
$as_echo "no" >&6; }
6685
if test "x$ac_ct_DSYMUTIL" = x; then
6688
case $cross_compiling:$ac_tool_warned in
6690
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692
ac_tool_warned=yes ;;
6694
DSYMUTIL=$ac_ct_DSYMUTIL
6697
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6700
if test -n "$ac_tool_prefix"; then
6701
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6702
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704
$as_echo_n "checking for $ac_word... " >&6; }
6705
if ${ac_cv_prog_NMEDIT+:} false; then :
6706
$as_echo_n "(cached) " >&6
6708
if test -n "$NMEDIT"; then
6709
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715
test -z "$as_dir" && as_dir=.
6716
for ac_exec_ext in '' $ac_executable_extensions; do
6717
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6719
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728
NMEDIT=$ac_cv_prog_NMEDIT
6729
if test -n "$NMEDIT"; then
6730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6731
$as_echo "$NMEDIT" >&6; }
6733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734
$as_echo "no" >&6; }
6739
if test -z "$ac_cv_prog_NMEDIT"; then
6740
ac_ct_NMEDIT=$NMEDIT
6741
# Extract the first word of "nmedit", so it can be a program name with args.
6742
set dummy nmedit; ac_word=$2
6743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744
$as_echo_n "checking for $ac_word... " >&6; }
6745
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6746
$as_echo_n "(cached) " >&6
6748
if test -n "$ac_ct_NMEDIT"; then
6749
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755
test -z "$as_dir" && as_dir=.
6756
for ac_exec_ext in '' $ac_executable_extensions; do
6757
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6759
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6769
if test -n "$ac_ct_NMEDIT"; then
6770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6771
$as_echo "$ac_ct_NMEDIT" >&6; }
6773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774
$as_echo "no" >&6; }
6777
if test "x$ac_ct_NMEDIT" = x; then
6780
case $cross_compiling:$ac_tool_warned in
6782
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784
ac_tool_warned=yes ;;
6786
NMEDIT=$ac_ct_NMEDIT
6789
NMEDIT="$ac_cv_prog_NMEDIT"
6792
if test -n "$ac_tool_prefix"; then
6793
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6794
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796
$as_echo_n "checking for $ac_word... " >&6; }
6797
if ${ac_cv_prog_LIPO+:} false; then :
6798
$as_echo_n "(cached) " >&6
6800
if test -n "$LIPO"; then
6801
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807
test -z "$as_dir" && as_dir=.
6808
for ac_exec_ext in '' $ac_executable_extensions; do
6809
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6811
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820
LIPO=$ac_cv_prog_LIPO
6821
if test -n "$LIPO"; then
6822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6823
$as_echo "$LIPO" >&6; }
6825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826
$as_echo "no" >&6; }
6831
if test -z "$ac_cv_prog_LIPO"; then
6833
# Extract the first word of "lipo", so it can be a program name with args.
6834
set dummy lipo; ac_word=$2
6835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836
$as_echo_n "checking for $ac_word... " >&6; }
6837
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6838
$as_echo_n "(cached) " >&6
6840
if test -n "$ac_ct_LIPO"; then
6841
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847
test -z "$as_dir" && as_dir=.
6848
for ac_exec_ext in '' $ac_executable_extensions; do
6849
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850
ac_cv_prog_ac_ct_LIPO="lipo"
6851
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6861
if test -n "$ac_ct_LIPO"; then
6862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6863
$as_echo "$ac_ct_LIPO" >&6; }
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866
$as_echo "no" >&6; }
6869
if test "x$ac_ct_LIPO" = x; then
6872
case $cross_compiling:$ac_tool_warned in
6874
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876
ac_tool_warned=yes ;;
6881
LIPO="$ac_cv_prog_LIPO"
6884
if test -n "$ac_tool_prefix"; then
6885
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6886
set dummy ${ac_tool_prefix}otool; ac_word=$2
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888
$as_echo_n "checking for $ac_word... " >&6; }
6889
if ${ac_cv_prog_OTOOL+:} false; then :
6890
$as_echo_n "(cached) " >&6
6892
if test -n "$OTOOL"; then
6893
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899
test -z "$as_dir" && as_dir=.
6900
for ac_exec_ext in '' $ac_executable_extensions; do
6901
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6903
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912
OTOOL=$ac_cv_prog_OTOOL
6913
if test -n "$OTOOL"; then
6914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6915
$as_echo "$OTOOL" >&6; }
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918
$as_echo "no" >&6; }
6923
if test -z "$ac_cv_prog_OTOOL"; then
6925
# Extract the first word of "otool", so it can be a program name with args.
6926
set dummy otool; ac_word=$2
6927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928
$as_echo_n "checking for $ac_word... " >&6; }
6929
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6930
$as_echo_n "(cached) " >&6
6932
if test -n "$ac_ct_OTOOL"; then
6933
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939
test -z "$as_dir" && as_dir=.
6940
for ac_exec_ext in '' $ac_executable_extensions; do
6941
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942
ac_cv_prog_ac_ct_OTOOL="otool"
6943
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6953
if test -n "$ac_ct_OTOOL"; then
6954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6955
$as_echo "$ac_ct_OTOOL" >&6; }
6957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958
$as_echo "no" >&6; }
6961
if test "x$ac_ct_OTOOL" = x; then
6964
case $cross_compiling:$ac_tool_warned in
6966
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968
ac_tool_warned=yes ;;
6973
OTOOL="$ac_cv_prog_OTOOL"
6976
if test -n "$ac_tool_prefix"; then
6977
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6978
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980
$as_echo_n "checking for $ac_word... " >&6; }
6981
if ${ac_cv_prog_OTOOL64+:} false; then :
6982
$as_echo_n "(cached) " >&6
6984
if test -n "$OTOOL64"; then
6985
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991
test -z "$as_dir" && as_dir=.
6992
for ac_exec_ext in '' $ac_executable_extensions; do
6993
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6995
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004
OTOOL64=$ac_cv_prog_OTOOL64
7005
if test -n "$OTOOL64"; then
7006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7007
$as_echo "$OTOOL64" >&6; }
7009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010
$as_echo "no" >&6; }
7015
if test -z "$ac_cv_prog_OTOOL64"; then
7016
ac_ct_OTOOL64=$OTOOL64
7017
# Extract the first word of "otool64", so it can be a program name with args.
7018
set dummy otool64; ac_word=$2
7019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020
$as_echo_n "checking for $ac_word... " >&6; }
7021
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7022
$as_echo_n "(cached) " >&6
7024
if test -n "$ac_ct_OTOOL64"; then
7025
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031
test -z "$as_dir" && as_dir=.
7032
for ac_exec_ext in '' $ac_executable_extensions; do
7033
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034
ac_cv_prog_ac_ct_OTOOL64="otool64"
7035
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7045
if test -n "$ac_ct_OTOOL64"; then
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7047
$as_echo "$ac_ct_OTOOL64" >&6; }
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050
$as_echo "no" >&6; }
7053
if test "x$ac_ct_OTOOL64" = x; then
7056
case $cross_compiling:$ac_tool_warned in
7058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060
ac_tool_warned=yes ;;
7062
OTOOL64=$ac_ct_OTOOL64
7065
OTOOL64="$ac_cv_prog_OTOOL64"
7094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7095
$as_echo_n "checking for -single_module linker flag... " >&6; }
7096
if ${lt_cv_apple_cc_single_mod+:} false; then :
7097
$as_echo_n "(cached) " >&6
7099
lt_cv_apple_cc_single_mod=no
7100
if test -z "${LT_MULTI_MODULE}"; then
7101
# By default we will add the -single_module flag. You can override
7102
# by either setting the environment variable LT_MULTI_MODULE
7103
# non-empty at configure time, or by adding -multi_module to the
7105
rm -rf libconftest.dylib*
7106
echo "int foo(void){return 1;}" > conftest.c
7107
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7108
-dynamiclib -Wl,-single_module conftest.c" >&5
7109
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7110
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7112
# If there is a non-empty error log, and "single_module"
7113
# appears in it, assume the flag caused a linker warning
7114
if test -s conftest.err && $GREP single_module conftest.err; then
7115
cat conftest.err >&5
7116
# Otherwise, if the output was created with a 0 exit code from
7117
# the compiler, it worked.
7118
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7119
lt_cv_apple_cc_single_mod=yes
7121
cat conftest.err >&5
7123
rm -rf libconftest.dylib*
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7128
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7131
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7132
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7133
$as_echo_n "(cached) " >&6
7135
lt_cv_ld_exported_symbols_list=no
7136
save_LDFLAGS=$LDFLAGS
7137
echo "_main" > conftest.sym
7138
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7139
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140
/* end confdefs.h. */
7150
if ac_fn_c_try_link "$LINENO"; then :
7151
lt_cv_ld_exported_symbols_list=yes
7153
lt_cv_ld_exported_symbols_list=no
7155
rm -f core conftest.err conftest.$ac_objext \
7156
conftest$ac_exeext conftest.$ac_ext
7157
LDFLAGS="$save_LDFLAGS"
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7161
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7164
$as_echo_n "checking for -force_load linker flag... " >&6; }
7165
if ${lt_cv_ld_force_load+:} false; then :
7166
$as_echo_n "(cached) " >&6
7168
lt_cv_ld_force_load=no
7169
cat > conftest.c << _LT_EOF
7170
int forced_loaded() { return 2;}
7172
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7173
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7174
echo "$AR cru libconftest.a conftest.o" >&5
7175
$AR cru libconftest.a conftest.o 2>&5
7176
echo "$RANLIB libconftest.a" >&5
7177
$RANLIB libconftest.a 2>&5
7178
cat > conftest.c << _LT_EOF
7179
int main() { return 0;}
7181
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7182
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7184
if test -s conftest.err && $GREP force_load conftest.err; then
7185
cat conftest.err >&5
7186
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7187
lt_cv_ld_force_load=yes
7189
cat conftest.err >&5
7191
rm -f conftest.err libconftest.a conftest conftest.c
7192
rm -rf conftest.dSYM
7195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7196
$as_echo "$lt_cv_ld_force_load" >&6; }
7198
rhapsody* | darwin1.[012])
7199
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7201
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7202
darwin*) # darwin 5.x on
7203
# if running on 10.5 or later, the deployment target defaults
7204
# to the OS version, if on x86, and 10.4, the deployment
7205
# target defaults to 10.4. Don't you love it?
7206
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7207
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7208
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7210
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7212
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7216
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7217
_lt_dar_single_mod='$single_module'
7219
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7220
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7222
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7224
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7225
_lt_dsymutil='~$DSYMUTIL $lib || :'
7233
ac_cpp='$CPP $CPPFLAGS'
7234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7238
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7239
# On Suns, sometimes $CPP names a directory.
7240
if test -n "$CPP" && test -d "$CPP"; then
7243
if test -z "$CPP"; then
7244
if ${ac_cv_prog_CPP+:} false; then :
7245
$as_echo_n "(cached) " >&6
7247
# Double quotes because CPP needs to be expanded
7248
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7251
for ac_c_preproc_warn_flag in '' yes
7253
# Use a header file that comes with gcc, so configuring glibc
7254
# with a fresh cross-compiler works.
7255
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7256
# <limits.h> exists even on freestanding compilers.
7257
# On the NeXT, cc -E runs the code through the compiler's parser,
7258
# not just through cpp. "Syntax error" is here to catch this case.
7259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260
/* end confdefs.h. */
7262
# include <limits.h>
7264
# include <assert.h>
7268
if ac_fn_c_try_cpp "$LINENO"; then :
7271
# Broken: fails on valid input.
7274
rm -f conftest.err conftest.i conftest.$ac_ext
7276
# OK, works on sane cases. Now check whether nonexistent headers
7277
# can be detected and how.
7278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279
/* end confdefs.h. */
7280
#include <ac_nonexistent.h>
7282
if ac_fn_c_try_cpp "$LINENO"; then :
7283
# Broken: success on invalid input.
7286
# Passes both tests.
7290
rm -f conftest.err conftest.i conftest.$ac_ext
7293
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7294
rm -f conftest.i conftest.err conftest.$ac_ext
7295
if $ac_preproc_ok; then :
7307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7308
$as_echo "$CPP" >&6; }
7310
for ac_c_preproc_warn_flag in '' yes
7312
# Use a header file that comes with gcc, so configuring glibc
7313
# with a fresh cross-compiler works.
7314
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7315
# <limits.h> exists even on freestanding compilers.
7316
# On the NeXT, cc -E runs the code through the compiler's parser,
7317
# not just through cpp. "Syntax error" is here to catch this case.
7318
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319
/* end confdefs.h. */
7321
# include <limits.h>
7323
# include <assert.h>
7327
if ac_fn_c_try_cpp "$LINENO"; then :
7330
# Broken: fails on valid input.
7333
rm -f conftest.err conftest.i conftest.$ac_ext
7335
# OK, works on sane cases. Now check whether nonexistent headers
7336
# can be detected and how.
7337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338
/* end confdefs.h. */
7339
#include <ac_nonexistent.h>
7341
if ac_fn_c_try_cpp "$LINENO"; then :
7342
# Broken: success on invalid input.
7345
# Passes both tests.
7349
rm -f conftest.err conftest.i conftest.$ac_ext
7352
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7353
rm -f conftest.i conftest.err conftest.$ac_ext
7354
if $ac_preproc_ok; then :
7357
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7358
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7359
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7360
See \`config.log' for more details" "$LINENO" 5; }
7364
ac_cpp='$CPP $CPPFLAGS'
7365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7371
$as_echo_n "checking for ANSI C header files... " >&6; }
7372
if ${ac_cv_header_stdc+:} false; then :
7373
$as_echo_n "(cached) " >&6
7375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376
/* end confdefs.h. */
7390
if ac_fn_c_try_compile "$LINENO"; then :
7391
ac_cv_header_stdc=yes
7393
ac_cv_header_stdc=no
7395
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397
if test $ac_cv_header_stdc = yes; then
7398
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400
/* end confdefs.h. */
7404
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405
$EGREP "memchr" >/dev/null 2>&1; then :
7408
ac_cv_header_stdc=no
7414
if test $ac_cv_header_stdc = yes; then
7415
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7416
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417
/* end confdefs.h. */
7421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7422
$EGREP "free" >/dev/null 2>&1; then :
7425
ac_cv_header_stdc=no
7431
if test $ac_cv_header_stdc = yes; then
7432
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7433
if test "$cross_compiling" = yes; then :
7436
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437
/* end confdefs.h. */
7440
#if ((' ' & 0x0FF) == 0x020)
7441
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7442
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7444
# define ISLOWER(c) \
7445
(('a' <= (c) && (c) <= 'i') \
7446
|| ('j' <= (c) && (c) <= 'r') \
7447
|| ('s' <= (c) && (c) <= 'z'))
7448
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7451
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7456
for (i = 0; i < 256; i++)
7457
if (XOR (islower (i), ISLOWER (i))
7458
|| toupper (i) != TOUPPER (i))
7463
if ac_fn_c_try_run "$LINENO"; then :
7466
ac_cv_header_stdc=no
7468
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7469
conftest.$ac_objext conftest.beam conftest.$ac_ext
7474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7475
$as_echo "$ac_cv_header_stdc" >&6; }
7476
if test $ac_cv_header_stdc = yes; then
7478
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7482
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7483
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7484
inttypes.h stdint.h unistd.h
7486
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7487
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7489
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7490
cat >>confdefs.h <<_ACEOF
7491
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7499
for ac_header in dlfcn.h
7501
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7503
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7504
cat >>confdefs.h <<_ACEOF
7505
#define HAVE_DLFCN_H 1
7517
# Check whether --enable-static was given.
7518
if test "${enable_static+set}" = set; then :
7519
enableval=$enable_static; p=${PACKAGE-default}
7521
yes) enable_static=yes ;;
7522
no) enable_static=no ;;
7525
# Look at the argument we got. We use all the common list separators.
7526
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527
for pkg in $enableval; do
7529
if test "X$pkg" = "X$p"; then
7555
# Check whether --enable-shared was given.
7556
if test "${enable_shared+set}" = set; then :
7557
enableval=$enable_shared; p=${PACKAGE-default}
7559
yes) enable_shared=yes ;;
7560
no) enable_shared=no ;;
7563
# Look at the argument we got. We use all the common list separators.
7564
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7565
for pkg in $enableval; do
7567
if test "X$pkg" = "X$p"; then
7588
# Check whether --with-pic was given.
7589
if test "${with_pic+set}" = set; then :
7590
withval=$with_pic; lt_p=${PACKAGE-default}
7592
yes|no) pic_mode=$withval ;;
7595
# Look at the argument we got. We use all the common list separators.
7596
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597
for lt_pkg in $withval; do
7599
if test "X$lt_pkg" = "X$lt_p"; then
7611
test -z "$pic_mode" && pic_mode=default
7619
# Check whether --enable-fast-install was given.
7620
if test "${enable_fast_install+set}" = set; then :
7621
enableval=$enable_fast_install; p=${PACKAGE-default}
7623
yes) enable_fast_install=yes ;;
7624
no) enable_fast_install=no ;;
7626
enable_fast_install=no
7627
# Look at the argument we got. We use all the common list separators.
7628
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629
for pkg in $enableval; do
7631
if test "X$pkg" = "X$p"; then
7632
enable_fast_install=yes
7639
enable_fast_install=yes
7652
# This can be used to rebuild libtool when needed
7653
LIBTOOL_DEPS="$ltmain"
7655
# Always use our own libtool.
7656
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7687
test -z "$LN_S" && LN_S="ln -s"
7702
if test -n "${ZSH_VERSION+set}" ; then
7703
setopt NO_GLOB_SUBST
7706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7707
$as_echo_n "checking for objdir... " >&6; }
7708
if ${lt_cv_objdir+:} false; then :
7709
$as_echo_n "(cached) " >&6
7711
rm -f .libs 2>/dev/null
7712
mkdir .libs 2>/dev/null
7713
if test -d .libs; then
7716
# MS-DOS does not allow filenames that begin with a dot.
7719
rmdir .libs 2>/dev/null
7721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7722
$as_echo "$lt_cv_objdir" >&6; }
7723
objdir=$lt_cv_objdir
7729
cat >>confdefs.h <<_ACEOF
7730
#define LT_OBJDIR "$lt_cv_objdir/"
7738
# AIX sometimes has problems with the GCC collect2 program. For some
7739
# reason, if we set the COLLECT_NAMES environment variable, the problems
7740
# vanish in a puff of smoke.
7741
if test "X${COLLECT_NAMES+set}" != Xset; then
7743
export COLLECT_NAMES
7750
can_build_shared=yes
7752
# All known linkers require a `.a' archive for static linking (except MSVC,
7753
# which needs '.lib').
7756
with_gnu_ld="$lt_cv_prog_gnu_ld"
7759
old_CFLAGS="$CFLAGS"
7761
# Set sane defaults for various variables
7762
test -z "$CC" && CC=cc
7763
test -z "$LTCC" && LTCC=$CC
7764
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7765
test -z "$LD" && LD=ld
7766
test -z "$ac_objext" && ac_objext=o
7768
for cc_temp in $compiler""; do
7770
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7771
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7776
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7779
# Only perform the check for file, if the check method requires it
7780
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7781
case $deplibs_check_method in
7783
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7785
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7786
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7787
$as_echo_n "(cached) " >&6
7791
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7794
lt_save_MAGIC_CMD="$MAGIC_CMD"
7795
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7797
for ac_dir in $ac_dummy; do
7799
test -z "$ac_dir" && ac_dir=.
7800
if test -f $ac_dir/${ac_tool_prefix}file; then
7801
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7802
if test -n "$file_magic_test_file"; then
7803
case $deplibs_check_method in
7805
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7806
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7807
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7808
$EGREP "$file_magic_regex" > /dev/null; then
7813
*** Warning: the command libtool uses to detect shared libraries,
7814
*** $file_magic_cmd, produces output that libtool cannot recognize.
7815
*** The result is that libtool may fail to recognize shared libraries
7816
*** as such. This will affect the creation of libtool libraries that
7817
*** depend on shared libraries, but programs linked with such libtool
7818
*** libraries will work regardless of this problem. Nevertheless, you
7819
*** may want to report the problem to your system manager and/or to
7820
*** bug-libtool@gnu.org
7830
MAGIC_CMD="$lt_save_MAGIC_CMD"
7835
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836
if test -n "$MAGIC_CMD"; then
7837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7838
$as_echo "$MAGIC_CMD" >&6; }
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841
$as_echo "no" >&6; }
7848
if test -z "$lt_cv_path_MAGIC_CMD"; then
7849
if test -n "$ac_tool_prefix"; then
7850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7851
$as_echo_n "checking for file... " >&6; }
7852
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7853
$as_echo_n "(cached) " >&6
7857
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7860
lt_save_MAGIC_CMD="$MAGIC_CMD"
7861
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7862
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7863
for ac_dir in $ac_dummy; do
7865
test -z "$ac_dir" && ac_dir=.
7866
if test -f $ac_dir/file; then
7867
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7868
if test -n "$file_magic_test_file"; then
7869
case $deplibs_check_method in
7871
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7872
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7873
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7874
$EGREP "$file_magic_regex" > /dev/null; then
7879
*** Warning: the command libtool uses to detect shared libraries,
7880
*** $file_magic_cmd, produces output that libtool cannot recognize.
7881
*** The result is that libtool may fail to recognize shared libraries
7882
*** as such. This will affect the creation of libtool libraries that
7883
*** depend on shared libraries, but programs linked with such libtool
7884
*** libraries will work regardless of this problem. Nevertheless, you
7885
*** may want to report the problem to your system manager and/or to
7886
*** bug-libtool@gnu.org
7896
MAGIC_CMD="$lt_save_MAGIC_CMD"
7901
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902
if test -n "$MAGIC_CMD"; then
7903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7904
$as_echo "$MAGIC_CMD" >&6; }
7906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907
$as_echo "no" >&6; }
7920
# Use C for the default configuration in the libtool script
7924
ac_cpp='$CPP $CPPFLAGS'
7925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930
# Source file extension for C test sources.
7933
# Object file extension for compiled C test sources.
7937
# Code to be used in simple compile tests
7938
lt_simple_compile_test_code="int some_variable = 0;"
7940
# Code to be used in simple link tests
7941
lt_simple_link_test_code='int main(){return(0);}'
7949
# If no C compiler was specified, use CC.
7952
# If no C compiler flags were specified, use CFLAGS.
7953
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7955
# Allow CC to be a program name with arguments.
7958
# Save the default compiler, since it gets overwritten when the other
7959
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7960
compiler_DEFAULT=$CC
7962
# save warnings/boilerplate of simple test code
7963
ac_outfile=conftest.$ac_objext
7964
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7965
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7966
_lt_compiler_boilerplate=`cat conftest.err`
7969
ac_outfile=conftest.$ac_objext
7970
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7971
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7972
_lt_linker_boilerplate=`cat conftest.err`
7976
if test -n "$compiler"; then
7978
lt_prog_compiler_no_builtin_flag=
7980
if test "$GCC" = yes; then
7981
case $cc_basename in
7983
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7985
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7989
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7990
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7991
$as_echo_n "(cached) " >&6
7993
lt_cv_prog_compiler_rtti_exceptions=no
7994
ac_outfile=conftest.$ac_objext
7995
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7996
lt_compiler_flag="-fno-rtti -fno-exceptions"
7997
# Insert the option either (1) after the last *FLAGS variable, or
7998
# (2) before a word containing "conftest.", or (3) at the end.
7999
# Note that $ac_compile itself does not contain backslashes and begins
8000
# with a dollar sign (not a hyphen), so the echo should work correctly.
8001
# The option is referenced via a variable to avoid confusing sed.
8002
lt_compile=`echo "$ac_compile" | $SED \
8003
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8004
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8005
-e 's:$: $lt_compiler_flag:'`
8006
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8007
(eval "$lt_compile" 2>conftest.err)
8009
cat conftest.err >&5
8010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011
if (exit $ac_status) && test -s "$ac_outfile"; then
8012
# The compiler can only warn and ignore the option if not recognized
8013
# So say no if there are warnings other than the usual output.
8014
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8015
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8016
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8017
lt_cv_prog_compiler_rtti_exceptions=yes
8023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8024
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8026
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8027
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8039
lt_prog_compiler_wl=
8040
lt_prog_compiler_pic=
8041
lt_prog_compiler_static=
8044
if test "$GCC" = yes; then
8045
lt_prog_compiler_wl='-Wl,'
8046
lt_prog_compiler_static='-static'
8050
# All AIX code is PIC.
8051
if test "$host_cpu" = ia64; then
8052
# AIX 5 now supports IA64 processor
8053
lt_prog_compiler_static='-Bstatic'
8060
# see comment about AmigaOS4 .so support
8061
lt_prog_compiler_pic='-fPIC'
8064
# FIXME: we need at least 68020 code to build shared libraries, but
8065
# adding the `-m68020' flag to GCC prevents building anything better,
8067
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8072
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8073
# PIC is the default for these OSes.
8076
mingw* | cygwin* | pw32* | os2* | cegcc*)
8077
# This hack is so that the source file can tell whether it is being
8078
# built for inclusion in a dll (and should export symbols for example).
8079
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8080
# (--disable-auto-import) libraries
8081
lt_prog_compiler_pic='-DDLL_EXPORT'
8084
darwin* | rhapsody*)
8085
# PIC is the default on this platform
8086
# Common symbols not allowed in MH_DYLIB files
8087
lt_prog_compiler_pic='-fno-common'
8091
# PIC is the default for Haiku.
8092
# The "-static" flag exists, but is broken.
8093
lt_prog_compiler_static=
8097
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8098
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8099
# sets the default TLS model and affects inlining.
8105
lt_prog_compiler_pic='-fPIC'
8111
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8112
# Instead, we relocate shared libraries at runtime.
8116
# Just because we use GCC doesn't mean we suddenly get shared libraries
8117
# on systems that don't support them.
8118
lt_prog_compiler_can_build_shared=no
8123
# QNX uses GNU C++, but need to define -shared option too, otherwise
8125
lt_prog_compiler_pic='-fPIC -shared'
8129
if test -d /usr/nec; then
8130
lt_prog_compiler_pic=-Kconform_pic
8135
lt_prog_compiler_pic='-fPIC'
8139
case $cc_basename in
8140
nvcc*) # Cuda Compiler Driver 2.2
8141
lt_prog_compiler_wl='-Xlinker '
8142
if test -n "$lt_prog_compiler_pic"; then
8143
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8148
# PORTME Check for flag to pass linker flags through the system compiler.
8151
lt_prog_compiler_wl='-Wl,'
8152
if test "$host_cpu" = ia64; then
8153
# AIX 5 now supports IA64 processor
8154
lt_prog_compiler_static='-Bstatic'
8156
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8160
mingw* | cygwin* | pw32* | os2* | cegcc*)
8161
# This hack is so that the source file can tell whether it is being
8162
# built for inclusion in a dll (and should export symbols for example).
8163
lt_prog_compiler_pic='-DDLL_EXPORT'
8166
hpux9* | hpux10* | hpux11*)
8167
lt_prog_compiler_wl='-Wl,'
8168
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8175
lt_prog_compiler_pic='+Z'
8178
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8179
lt_prog_compiler_static='${wl}-a ${wl}archive'
8182
irix5* | irix6* | nonstopux*)
8183
lt_prog_compiler_wl='-Wl,'
8184
# PIC (with -KPIC) is the default.
8185
lt_prog_compiler_static='-non_shared'
8188
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8189
case $cc_basename in
8190
# old Intel for x86_64 which still supported -KPIC.
8192
lt_prog_compiler_wl='-Wl,'
8193
lt_prog_compiler_pic='-KPIC'
8194
lt_prog_compiler_static='-static'
8196
# icc used to be incompatible with GCC.
8197
# ICC 10 doesn't accept -KPIC any more.
8199
lt_prog_compiler_wl='-Wl,'
8200
lt_prog_compiler_pic='-fPIC'
8201
lt_prog_compiler_static='-static'
8203
# Lahey Fortran 8.1.
8205
lt_prog_compiler_wl='-Wl,'
8206
lt_prog_compiler_pic='--shared'
8207
lt_prog_compiler_static='--static'
8210
# NAG Fortran compiler
8211
lt_prog_compiler_wl='-Wl,-Wl,,'
8212
lt_prog_compiler_pic='-PIC'
8213
lt_prog_compiler_static='-Bstatic'
8215
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8216
# Portland Group compilers (*not* the Pentium gcc compiler,
8217
# which looks to be a dead project)
8218
lt_prog_compiler_wl='-Wl,'
8219
lt_prog_compiler_pic='-fpic'
8220
lt_prog_compiler_static='-Bstatic'
8223
lt_prog_compiler_wl='-Wl,'
8224
# All Alpha code is PIC.
8225
lt_prog_compiler_static='-non_shared'
8227
xl* | bgxl* | bgf* | mpixl*)
8228
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8229
lt_prog_compiler_wl='-Wl,'
8230
lt_prog_compiler_pic='-qpic'
8231
lt_prog_compiler_static='-qstaticlink'
8234
case `$CC -V 2>&1 | sed 5q` in
8235
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8236
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8237
lt_prog_compiler_pic='-KPIC'
8238
lt_prog_compiler_static='-Bstatic'
8239
lt_prog_compiler_wl=''
8241
*Sun\ F* | *Sun*Fortran*)
8242
lt_prog_compiler_pic='-KPIC'
8243
lt_prog_compiler_static='-Bstatic'
8244
lt_prog_compiler_wl='-Qoption ld '
8248
lt_prog_compiler_pic='-KPIC'
8249
lt_prog_compiler_static='-Bstatic'
8250
lt_prog_compiler_wl='-Wl,'
8252
*Intel*\ [CF]*Compiler*)
8253
lt_prog_compiler_wl='-Wl,'
8254
lt_prog_compiler_pic='-fPIC'
8255
lt_prog_compiler_static='-static'
8258
lt_prog_compiler_wl='-Wl,'
8259
lt_prog_compiler_pic='-fpic'
8260
lt_prog_compiler_static='-Bstatic'
8268
lt_prog_compiler_pic='-KPIC'
8269
lt_prog_compiler_static='-Bstatic'
8273
# QNX uses GNU C++, but need to define -shared option too, otherwise
8275
lt_prog_compiler_pic='-fPIC -shared'
8278
osf3* | osf4* | osf5*)
8279
lt_prog_compiler_wl='-Wl,'
8280
# All OSF/1 code is PIC.
8281
lt_prog_compiler_static='-non_shared'
8285
lt_prog_compiler_static='-non_shared'
8289
lt_prog_compiler_pic='-KPIC'
8290
lt_prog_compiler_static='-Bstatic'
8291
case $cc_basename in
8292
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8293
lt_prog_compiler_wl='-Qoption ld ';;
8295
lt_prog_compiler_wl='-Wl,';;
8300
lt_prog_compiler_wl='-Qoption ld '
8301
lt_prog_compiler_pic='-PIC'
8302
lt_prog_compiler_static='-Bstatic'
8305
sysv4 | sysv4.2uw2* | sysv4.3*)
8306
lt_prog_compiler_wl='-Wl,'
8307
lt_prog_compiler_pic='-KPIC'
8308
lt_prog_compiler_static='-Bstatic'
8312
if test -d /usr/nec ;then
8313
lt_prog_compiler_pic='-Kconform_pic'
8314
lt_prog_compiler_static='-Bstatic'
8318
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8319
lt_prog_compiler_wl='-Wl,'
8320
lt_prog_compiler_pic='-KPIC'
8321
lt_prog_compiler_static='-Bstatic'
8325
lt_prog_compiler_wl='-Wl,'
8326
lt_prog_compiler_can_build_shared=no
8330
lt_prog_compiler_pic='-pic'
8331
lt_prog_compiler_static='-Bstatic'
8335
lt_prog_compiler_can_build_shared=no
8341
# For platforms which do not support PIC, -DPIC is meaningless:
8343
lt_prog_compiler_pic=
8346
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8351
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8352
if ${lt_cv_prog_compiler_pic+:} false; then :
8353
$as_echo_n "(cached) " >&6
8355
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8358
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8359
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8362
# Check to make sure the PIC flag actually works.
8364
if test -n "$lt_prog_compiler_pic"; then
8365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8366
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8367
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8368
$as_echo_n "(cached) " >&6
8370
lt_cv_prog_compiler_pic_works=no
8371
ac_outfile=conftest.$ac_objext
8372
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8374
# Insert the option either (1) after the last *FLAGS variable, or
8375
# (2) before a word containing "conftest.", or (3) at the end.
8376
# Note that $ac_compile itself does not contain backslashes and begins
8377
# with a dollar sign (not a hyphen), so the echo should work correctly.
8378
# The option is referenced via a variable to avoid confusing sed.
8379
lt_compile=`echo "$ac_compile" | $SED \
8380
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8381
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8382
-e 's:$: $lt_compiler_flag:'`
8383
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8384
(eval "$lt_compile" 2>conftest.err)
8386
cat conftest.err >&5
8387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388
if (exit $ac_status) && test -s "$ac_outfile"; then
8389
# The compiler can only warn and ignore the option if not recognized
8390
# So say no if there are warnings other than the usual output.
8391
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8392
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8393
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8394
lt_cv_prog_compiler_pic_works=yes
8400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8401
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8403
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8404
case $lt_prog_compiler_pic in
8406
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8409
lt_prog_compiler_pic=
8410
lt_prog_compiler_can_build_shared=no
8426
# Check to make sure the static flag actually works.
8428
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8430
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8431
if ${lt_cv_prog_compiler_static_works+:} false; then :
8432
$as_echo_n "(cached) " >&6
8434
lt_cv_prog_compiler_static_works=no
8435
save_LDFLAGS="$LDFLAGS"
8436
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8437
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8438
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8439
# The linker can only warn and ignore the option if not recognized
8440
# So say no if there are warnings
8441
if test -s conftest.err; then
8442
# Append any errors to the config.log.
8443
cat conftest.err 1>&5
8444
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8445
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8446
if diff conftest.exp conftest.er2 >/dev/null; then
8447
lt_cv_prog_compiler_static_works=yes
8450
lt_cv_prog_compiler_static_works=yes
8454
LDFLAGS="$save_LDFLAGS"
8457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8458
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8460
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8463
lt_prog_compiler_static=
8472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8473
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8474
if ${lt_cv_prog_compiler_c_o+:} false; then :
8475
$as_echo_n "(cached) " >&6
8477
lt_cv_prog_compiler_c_o=no
8478
$RM -r conftest 2>/dev/null
8482
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484
lt_compiler_flag="-o out/conftest2.$ac_objext"
8485
# Insert the option either (1) after the last *FLAGS variable, or
8486
# (2) before a word containing "conftest.", or (3) at the end.
8487
# Note that $ac_compile itself does not contain backslashes and begins
8488
# with a dollar sign (not a hyphen), so the echo should work correctly.
8489
lt_compile=`echo "$ac_compile" | $SED \
8490
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492
-e 's:$: $lt_compiler_flag:'`
8493
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494
(eval "$lt_compile" 2>out/conftest.err)
8496
cat out/conftest.err >&5
8497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8500
# The compiler can only warn and ignore the option if not recognized
8501
# So say no if there are warnings
8502
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8503
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8504
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8505
lt_cv_prog_compiler_c_o=yes
8510
# SGI C++ compiler will create directory out/ii_files/ for
8511
# template instantiation
8512
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8513
$RM out/* && rmdir out
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8520
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8528
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8529
if ${lt_cv_prog_compiler_c_o+:} false; then :
8530
$as_echo_n "(cached) " >&6
8532
lt_cv_prog_compiler_c_o=no
8533
$RM -r conftest 2>/dev/null
8537
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8539
lt_compiler_flag="-o out/conftest2.$ac_objext"
8540
# Insert the option either (1) after the last *FLAGS variable, or
8541
# (2) before a word containing "conftest.", or (3) at the end.
8542
# Note that $ac_compile itself does not contain backslashes and begins
8543
# with a dollar sign (not a hyphen), so the echo should work correctly.
8544
lt_compile=`echo "$ac_compile" | $SED \
8545
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8546
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8547
-e 's:$: $lt_compiler_flag:'`
8548
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8549
(eval "$lt_compile" 2>out/conftest.err)
8551
cat out/conftest.err >&5
8552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8555
# The compiler can only warn and ignore the option if not recognized
8556
# So say no if there are warnings
8557
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8558
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8559
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8560
lt_cv_prog_compiler_c_o=yes
8565
# SGI C++ compiler will create directory out/ii_files/ for
8566
# template instantiation
8567
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8568
$RM out/* && rmdir out
8574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8575
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8580
hard_links="nottested"
8581
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8582
# do not overwrite the value of need_locks provided by the user
8583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8584
$as_echo_n "checking if we can lock with hard links... " >&6; }
8587
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8589
ln conftest.a conftest.b 2>&5 || hard_links=no
8590
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8592
$as_echo "$hard_links" >&6; }
8593
if test "$hard_links" = no; then
8594
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8595
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8608
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8611
allow_undefined_flag=
8612
always_export_symbols=no
8614
archive_expsym_cmds=
8615
compiler_needs_object=no
8616
enable_shared_with_static_runtimes=no
8617
export_dynamic_flag_spec=
8618
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8619
hardcode_automatic=no
8621
hardcode_direct_absolute=no
8622
hardcode_libdir_flag_spec=
8623
hardcode_libdir_separator=
8625
hardcode_shlibpath_var=unsupported
8627
link_all_deplibs=unknown
8630
old_archive_from_new_cmds=
8631
old_archive_from_expsyms_cmds=
8632
thread_safe_flag_spec=
8633
whole_archive_flag_spec=
8634
# include_expsyms should be a list of space-separated symbols to be *always*
8635
# included in the symbol list
8637
# exclude_expsyms can be an extended regexp of symbols to exclude
8638
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8639
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8640
# as well as any symbol that contains `d'.
8641
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8642
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8643
# platforms (ab)use it in PIC code, but their linkers get confused if
8644
# the symbol is explicitly referenced. Since portable code cannot
8645
# rely on this symbol name, it's probably fine to never include it in
8646
# preloaded symbol tables.
8647
# Exclude shared library initialization/finalization symbols.
8648
extract_expsyms_cmds=
8651
cygwin* | mingw* | pw32* | cegcc*)
8652
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8653
# When not using gcc, we currently assume that we are using
8654
# Microsoft Visual C++.
8655
if test "$GCC" != yes; then
8660
# we just hope/assume this is gcc and not c89 (= MSVC++)
8666
linux* | k*bsd*-gnu | gnu*)
8673
# On some targets, GNU ld is compatible enough with the native linker
8674
# that we're better off using the native interface for both.
8675
lt_use_gnu_ld_interface=no
8676
if test "$with_gnu_ld" = yes; then
8679
# The AIX port of GNU ld has always aspired to compatibility
8680
# with the native linker. However, as the warning in the GNU ld
8681
# block says, versions before 2.19.5* couldn't really create working
8682
# shared libraries, regardless of the interface used.
8683
case `$LD -v 2>&1` in
8684
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8685
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8686
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8688
lt_use_gnu_ld_interface=yes
8693
lt_use_gnu_ld_interface=yes
8698
if test "$lt_use_gnu_ld_interface" = yes; then
8699
# If archive_cmds runs LD, not CC, wlarc should be empty
8702
# Set some defaults for GNU ld with shared library support. These
8703
# are reset later if shared libraries are not supported. Putting them
8704
# here allows them to be overridden if necessary.
8705
runpath_var=LD_RUN_PATH
8706
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707
export_dynamic_flag_spec='${wl}--export-dynamic'
8708
# ancient GNU ld didn't support --whole-archive et. al.
8709
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8710
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8712
whole_archive_flag_spec=
8714
supports_anon_versioning=no
8715
case `$LD -v 2>&1` in
8716
*GNU\ gold*) supports_anon_versioning=yes ;;
8717
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8718
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8719
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8720
*\ 2.11.*) ;; # other 2.11 versions
8721
*) supports_anon_versioning=yes ;;
8724
# See if GNU ld supports shared libraries.
8727
# On AIX/PPC, the GNU linker is very broken
8728
if test "$host_cpu" != ia64; then
8732
*** Warning: the GNU linker, at least up to release 2.19, is reported
8733
*** to be unable to reliably create shared libraries on AIX.
8734
*** Therefore, libtool is disabling shared libraries support. If you
8735
*** really care for shared libraries, you may want to install binutils
8736
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8737
*** You will then need to restart the configuration process.
8746
# see comment about AmigaOS4 .so support
8747
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748
archive_expsym_cmds=''
8751
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)'
8752
hardcode_libdir_flag_spec='-L$libdir'
8753
hardcode_minus_L=yes
8759
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760
allow_undefined_flag=unsupported
8761
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8762
# support --undefined. This deserves some investigation. FIXME
8763
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769
cygwin* | mingw* | pw32* | cegcc*)
8770
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8771
# as there is no search path for DLLs.
8772
hardcode_libdir_flag_spec='-L$libdir'
8773
export_dynamic_flag_spec='${wl}--export-all-symbols'
8774
allow_undefined_flag=unsupported
8775
always_export_symbols=no
8776
enable_shared_with_static_runtimes=yes
8777
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8778
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8780
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8781
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8782
# If the export-symbols file already is a .def file (1st line
8783
# is EXPORTS), use it as is; otherwise, prepend...
8784
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8785
cp $export_symbols $output_objdir/$soname.def;
8787
echo EXPORTS > $output_objdir/$soname.def;
8788
cat $export_symbols >> $output_objdir/$soname.def;
8790
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8797
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798
link_all_deplibs=yes
8803
hardcode_shlibpath_var=no
8804
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805
export_dynamic_flag_spec='${wl}-E'
8806
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8807
# Instead, shared libraries are loaded at an image base (0x10000000 by
8808
# default) and relocated if they conflict, which is a slow very memory
8809
# consuming and fragmenting process. To avoid this, we pick a random,
8810
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8811
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8812
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8813
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8816
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8818
if test "$host_os" = linux-dietlibc; then
8819
case $cc_basename in
8820
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8823
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8824
&& test "$tmp_diet" = no
8826
tmp_addflag=' $pic_flag'
8827
tmp_sharedflag='-shared'
8828
case $cc_basename,$host_cpu in
8829
pgcc*) # Portland Group C compiler
8830
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8831
tmp_addflag=' $pic_flag'
8833
pgf77* | pgf90* | pgf95* | pgfortran*)
8834
# Portland Group f77 and f90 compilers
8835
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8836
tmp_addflag=' $pic_flag -Mnomain' ;;
8837
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8838
tmp_addflag=' -i_dynamic' ;;
8839
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8840
tmp_addflag=' -i_dynamic -nofor_main' ;;
8841
ifc* | ifort*) # Intel Fortran compiler
8842
tmp_addflag=' -nofor_main' ;;
8843
lf95*) # Lahey Fortran 8.1
8844
whole_archive_flag_spec=
8845
tmp_sharedflag='--shared' ;;
8846
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8847
tmp_sharedflag='-qmkshrobj'
8849
nvcc*) # Cuda Compiler Driver 2.2
8850
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8851
compiler_needs_object=yes
8854
case `$CC -V 2>&1 | sed 5q` in
8855
*Sun\ C*) # Sun C 5.9
8856
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8857
compiler_needs_object=yes
8858
tmp_sharedflag='-G' ;;
8859
*Sun\ F*) # Sun Fortran 8.3
8860
tmp_sharedflag='-G' ;;
8862
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864
if test "x$supports_anon_versioning" = xyes; then
8865
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8866
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8867
echo "local: *; };" >> $output_objdir/$libname.ver~
8868
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8871
case $cc_basename in
8872
xlf* | bgf* | bgxlf* | mpixlf*)
8873
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8874
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8875
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8877
if test "x$supports_anon_versioning" = xyes; then
8878
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8879
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8880
echo "local: *; };" >> $output_objdir/$libname.ver~
8881
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8890
netbsd* | netbsdelf*-gnu)
8891
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8892
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8895
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8901
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8905
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8906
*** create shared libraries on Solaris systems. Therefore, libtool
8907
*** is disabling shared libraries support. We urge you to upgrade GNU
8908
*** binutils to release 2.9.1 or newer. Another option is to modify
8909
*** your PATH or compiler configuration so that the native linker is
8910
*** used, and then restart.
8913
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8921
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8922
case `$LD -v 2>&1` in
8923
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8927
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8928
*** reliably create shared libraries on SCO systems. Therefore, libtool
8929
*** is disabling shared libraries support. We urge you to upgrade GNU
8930
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8931
*** your PATH or compiler configuration so that the native linker is
8932
*** used, and then restart.
8937
# For security reasons, it is highly recommended that you always
8938
# use absolute paths for naming shared libraries, and exclude the
8939
# DT_RUNPATH tag from executables and libraries. But doing so
8940
# requires that you compile everything twice, which is a pain.
8941
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8942
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8953
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8956
hardcode_shlibpath_var=no
8960
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8962
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969
if test "$ld_shlibs" = no; then
8971
hardcode_libdir_flag_spec=
8972
export_dynamic_flag_spec=
8973
whole_archive_flag_spec=
8976
# PORTME fill in a description of your system's linker (not GNU ld)
8979
allow_undefined_flag=unsupported
8980
always_export_symbols=yes
8981
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'
8982
# Note: this linker hardcodes the directories in LIBPATH if there
8983
# are no directories specified by -L.
8984
hardcode_minus_L=yes
8985
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8986
# Neither direct hardcoding nor static linking is supported with a
8988
hardcode_direct=unsupported
8993
if test "$host_cpu" = ia64; then
8994
# On IA64, the linker does run time linking by default, so we don't
8995
# have to do anything special.
8996
aix_use_runtimelinking=no
8997
exp_sym_flag='-Bexport'
9000
# If we're using GNU nm, then we don't want the "-C" option.
9001
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9002
# Also, AIX nm treats weak defined symbols like other global
9003
# defined symbols, whereas GNU nm marks them as "W".
9004
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9005
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9007
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'
9009
aix_use_runtimelinking=no
9011
# Test if we are trying to use run time linking or normal
9012
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9013
# need to do runtime linking.
9014
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9015
for ld_flag in $LDFLAGS; do
9016
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9017
aix_use_runtimelinking=yes
9024
exp_sym_flag='-bexport'
9025
no_entry_flag='-bnoentry'
9028
# When large executables or shared objects are built, AIX ld can
9029
# have problems creating the table of contents. If linking a library
9030
# or program results in "error TOC overflow" add -mminimal-toc to
9031
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9032
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9036
hardcode_direct_absolute=yes
9037
hardcode_libdir_separator=':'
9038
link_all_deplibs=yes
9039
file_list_spec='${wl}-f,'
9041
if test "$GCC" = yes; then
9042
case $host_os in aix4.[012]|aix4.[012].*)
9043
# We only want to do this on AIX 4.2 and lower, the check
9044
# below for broken collect2 doesn't work under 4.3+
9045
collect2name=`${CC} -print-prog-name=collect2`
9046
if test -f "$collect2name" &&
9047
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9049
# We have reworked collect2
9052
# We have old collect2
9053
hardcode_direct=unsupported
9054
# It fails to find uninstalled libraries when the uninstalled
9055
# path is not listed in the libpath. Setting hardcode_minus_L
9056
# to unsupported forces relinking
9057
hardcode_minus_L=yes
9058
hardcode_libdir_flag_spec='-L$libdir'
9059
hardcode_libdir_separator=
9063
shared_flag='-shared'
9064
if test "$aix_use_runtimelinking" = yes; then
9065
shared_flag="$shared_flag "'${wl}-G'
9070
if test "$host_cpu" = ia64; then
9071
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9072
# chokes on -Wl,-G. The following line is correct:
9075
if test "$aix_use_runtimelinking" = yes; then
9076
shared_flag='${wl}-G'
9078
shared_flag='${wl}-bM:SRE'
9083
export_dynamic_flag_spec='${wl}-bexpall'
9084
# It seems that -bexpall does not export symbols beginning with
9085
# underscore (_), so it is better to generate a list of symbols to export.
9086
always_export_symbols=yes
9087
if test "$aix_use_runtimelinking" = yes; then
9088
# Warning - without using the other runtime loading flags (-brtl),
9089
# -berok will link without error, but may produce a broken library.
9090
allow_undefined_flag='-berok'
9091
# Determine the default libpath from the value encoded in an
9093
if test "${lt_cv_aix_libpath+set}" = set; then
9094
aix_libpath=$lt_cv_aix_libpath
9096
if ${lt_cv_aix_libpath_+:} false; then :
9097
$as_echo_n "(cached) " >&6
9099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100
/* end confdefs.h. */
9110
if ac_fn_c_try_link "$LINENO"; then :
9112
lt_aix_libpath_sed='
9113
/Import File Strings/,/^$/ {
9115
s/^0 *\([^ ]*\) *$/\1/
9119
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9120
# Check for a 64-bit object if we didn't find anything.
9121
if test -z "$lt_cv_aix_libpath_"; then
9122
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9125
rm -f core conftest.err conftest.$ac_objext \
9126
conftest$ac_exeext conftest.$ac_ext
9127
if test -z "$lt_cv_aix_libpath_"; then
9128
lt_cv_aix_libpath_="/usr/lib:/lib"
9133
aix_libpath=$lt_cv_aix_libpath_
9136
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9137
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9139
if test "$host_cpu" = ia64; then
9140
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9141
allow_undefined_flag="-z nodefs"
9142
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9144
# Determine the default libpath from the value encoded in an
9146
if test "${lt_cv_aix_libpath+set}" = set; then
9147
aix_libpath=$lt_cv_aix_libpath
9149
if ${lt_cv_aix_libpath_+:} false; then :
9150
$as_echo_n "(cached) " >&6
9152
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153
/* end confdefs.h. */
9163
if ac_fn_c_try_link "$LINENO"; then :
9165
lt_aix_libpath_sed='
9166
/Import File Strings/,/^$/ {
9168
s/^0 *\([^ ]*\) *$/\1/
9172
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173
# Check for a 64-bit object if we didn't find anything.
9174
if test -z "$lt_cv_aix_libpath_"; then
9175
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178
rm -f core conftest.err conftest.$ac_objext \
9179
conftest$ac_exeext conftest.$ac_ext
9180
if test -z "$lt_cv_aix_libpath_"; then
9181
lt_cv_aix_libpath_="/usr/lib:/lib"
9186
aix_libpath=$lt_cv_aix_libpath_
9189
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9190
# Warning - without using the other run time loading flags,
9191
# -berok will link without error, but may produce a broken library.
9192
no_undefined_flag=' ${wl}-bernotok'
9193
allow_undefined_flag=' ${wl}-berok'
9194
if test "$with_gnu_ld" = yes; then
9195
# We only use this code for GNU lds that support --whole-archive.
9196
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9198
# Exported symbols can be pulled into shared objects from archives
9199
whole_archive_flag_spec='$convenience'
9201
archive_cmds_need_lc=yes
9202
# This is similar to how AIX traditionally builds its shared libraries.
9203
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9211
# see comment about AmigaOS4 .so support
9212
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213
archive_expsym_cmds=''
9216
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)'
9217
hardcode_libdir_flag_spec='-L$libdir'
9218
hardcode_minus_L=yes
9224
export_dynamic_flag_spec=-rdynamic
9227
cygwin* | mingw* | pw32* | cegcc*)
9228
# When not using gcc, we currently assume that we are using
9229
# Microsoft Visual C++.
9230
# hardcode_libdir_flag_spec is actually meaningless, as there is
9231
# no search path for DLLs.
9232
case $cc_basename in
9235
hardcode_libdir_flag_spec=' '
9236
allow_undefined_flag=unsupported
9237
always_export_symbols=yes
9239
# Tell ltmain to make .lib files, not .a files.
9241
# Tell ltmain to make .dll files, not .so files.
9243
# FIXME: Setting linknames here is a bad hack.
9244
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9245
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9246
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9248
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9250
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9252
# The linker will not automatically build a static lib if we build a DLL.
9253
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9254
enable_shared_with_static_runtimes=yes
9255
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9256
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9258
old_postinstall_cmds='chmod 644 $oldlib'
9259
postlink_cmds='lt_outputfile="@OUTPUT@"~
9260
lt_tool_outputfile="@TOOL_OUTPUT@"~
9261
case $lt_outputfile in
9264
lt_outputfile="$lt_outputfile.exe"
9265
lt_tool_outputfile="$lt_tool_outputfile.exe"
9268
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9269
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9270
$RM "$lt_outputfile.manifest";
9274
# Assume MSVC wrapper
9275
hardcode_libdir_flag_spec=' '
9276
allow_undefined_flag=unsupported
9277
# Tell ltmain to make .lib files, not .a files.
9279
# Tell ltmain to make .dll files, not .so files.
9281
# FIXME: Setting linknames here is a bad hack.
9282
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9283
# The linker will automatically build a .lib file if we build a DLL.
9284
old_archive_from_new_cmds='true'
9285
# FIXME: Should let the user specify the lib program.
9286
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9287
enable_shared_with_static_runtimes=yes
9292
darwin* | rhapsody*)
9295
archive_cmds_need_lc=no
9297
hardcode_automatic=yes
9298
hardcode_shlibpath_var=unsupported
9299
if test "$lt_cv_ld_force_load" = "yes"; then
9300
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9303
whole_archive_flag_spec=''
9305
link_all_deplibs=yes
9306
allow_undefined_flag="$_lt_dar_allow_undefined"
9307
case $cc_basename in
9308
ifort*) _lt_dar_can_shared=yes ;;
9309
*) _lt_dar_can_shared=$GCC ;;
9311
if test "$_lt_dar_can_shared" = "yes"; then
9312
output_verbose_link_cmd=func_echo_all
9313
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9316
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9325
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326
hardcode_libdir_flag_spec='-L$libdir'
9327
hardcode_shlibpath_var=no
9330
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331
# support. Future versions do this automatically, but an explicit c++rt0.o
9332
# does not break anything, and helps significantly (at the cost of a little
9335
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336
hardcode_libdir_flag_spec='-R$libdir'
9338
hardcode_shlibpath_var=no
9341
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9343
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345
hardcode_minus_L=yes
9346
hardcode_shlibpath_var=no
9349
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350
freebsd* | dragonfly*)
9351
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9352
hardcode_libdir_flag_spec='-R$libdir'
9354
hardcode_shlibpath_var=no
9358
if test "$GCC" = yes; then
9359
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9361
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'
9363
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364
hardcode_libdir_separator=:
9367
# hardcode_minus_L: Not really in the search PATH,
9368
# but as the default location of the library.
9369
hardcode_minus_L=yes
9370
export_dynamic_flag_spec='${wl}-E'
9374
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9379
if test "$with_gnu_ld" = no; then
9380
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381
hardcode_libdir_separator=:
9383
hardcode_direct_absolute=yes
9384
export_dynamic_flag_spec='${wl}-E'
9385
# hardcode_minus_L: Not really in the search PATH,
9386
# but as the default location of the library.
9387
hardcode_minus_L=yes
9392
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414
# Older versions of the 11.00 compiler do not understand -b yet
9415
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9417
$as_echo_n "checking if $CC understands -b... " >&6; }
9418
if ${lt_cv_prog_compiler__b+:} false; then :
9419
$as_echo_n "(cached) " >&6
9421
lt_cv_prog_compiler__b=no
9422
save_LDFLAGS="$LDFLAGS"
9423
LDFLAGS="$LDFLAGS -b"
9424
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426
# The linker can only warn and ignore the option if not recognized
9427
# So say no if there are warnings
9428
if test -s conftest.err; then
9429
# Append any errors to the config.log.
9430
cat conftest.err 1>&5
9431
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433
if diff conftest.exp conftest.er2 >/dev/null; then
9434
lt_cv_prog_compiler__b=yes
9437
lt_cv_prog_compiler__b=yes
9441
LDFLAGS="$save_LDFLAGS"
9444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9445
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9447
if test x"$lt_cv_prog_compiler__b" = xyes; then
9448
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9456
if test "$with_gnu_ld" = no; then
9457
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458
hardcode_libdir_separator=:
9463
hardcode_shlibpath_var=no
9467
hardcode_direct_absolute=yes
9468
export_dynamic_flag_spec='${wl}-E'
9470
# hardcode_minus_L: Not really in the search PATH,
9471
# but as the default location of the library.
9472
hardcode_minus_L=yes
9478
irix5* | irix6* | nonstopux*)
9479
if test "$GCC" = yes; then
9480
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9481
# Try to use the -exported_symbol ld option, if it does not
9482
# work, assume that -exports_file does not work either and
9483
# implicitly export all symbols.
9484
# This should be the same for all languages, so no per-tag cache variable.
9485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9486
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9487
if ${lt_cv_irix_exported_symbol+:} false; then :
9488
$as_echo_n "(cached) " >&6
9490
save_LDFLAGS="$LDFLAGS"
9491
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9492
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493
/* end confdefs.h. */
9494
int foo (void) { return 0; }
9496
if ac_fn_c_try_link "$LINENO"; then :
9497
lt_cv_irix_exported_symbol=yes
9499
lt_cv_irix_exported_symbol=no
9501
rm -f core conftest.err conftest.$ac_objext \
9502
conftest$ac_exeext conftest.$ac_ext
9503
LDFLAGS="$save_LDFLAGS"
9505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9506
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9507
if test "$lt_cv_irix_exported_symbol" = yes; then
9508
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9511
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9512
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9514
archive_cmds_need_lc='no'
9515
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516
hardcode_libdir_separator=:
9518
link_all_deplibs=yes
9521
netbsd* | netbsdelf*-gnu)
9522
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9523
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9525
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9527
hardcode_libdir_flag_spec='-R$libdir'
9529
hardcode_shlibpath_var=no
9533
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536
hardcode_libdir_separator=:
9537
hardcode_shlibpath_var=no
9544
if test -f /usr/libexec/ld.so; then
9546
hardcode_shlibpath_var=no
9547
hardcode_direct_absolute=yes
9548
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9549
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9551
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9552
export_dynamic_flag_spec='${wl}-E'
9555
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9556
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9557
hardcode_libdir_flag_spec='-R$libdir'
9560
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571
hardcode_libdir_flag_spec='-L$libdir'
9572
hardcode_minus_L=yes
9573
allow_undefined_flag=unsupported
9574
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'
9575
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9579
if test "$GCC" = yes; then
9580
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9581
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9583
allow_undefined_flag=' -expect_unresolved \*'
9584
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9586
archive_cmds_need_lc='no'
9587
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588
hardcode_libdir_separator=:
9591
osf4* | osf5*) # as osf3* with the addition of -msym flag
9592
if test "$GCC" = yes; then
9593
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9595
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597
allow_undefined_flag=' -expect_unresolved \*'
9598
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9599
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9600
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9602
# Both c and cxx compiler support -rpath directly
9603
hardcode_libdir_flag_spec='-rpath $libdir'
9605
archive_cmds_need_lc='no'
9606
hardcode_libdir_separator=:
9610
no_undefined_flag=' -z defs'
9611
if test "$GCC" = yes; then
9613
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9615
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617
case `$CC -V 2>&1` in
9620
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9626
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9627
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632
hardcode_libdir_flag_spec='-R$libdir'
9633
hardcode_shlibpath_var=no
9635
solaris2.[0-5] | solaris2.[0-5].*) ;;
9637
# The compiler driver will combine and reorder linker options,
9638
# but understands `-z linker_flag'. GCC discards it without `$wl',
9639
# but is careful enough not to reorder.
9640
# Supported since Solaris 2.6 (maybe 2.5.1?)
9641
if test "$GCC" = yes; then
9642
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9644
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9648
link_all_deplibs=yes
9652
if test "x$host_vendor" = xsequent; then
9653
# Use $CC to link under sequent, because it throws in some extra .o
9654
# files that make .init and .fini sections work.
9655
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9659
hardcode_libdir_flag_spec='-L$libdir'
9661
hardcode_minus_L=yes
9662
hardcode_shlibpath_var=no
9666
case $host_vendor in
9668
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669
hardcode_direct=yes # is this really true???
9672
## LD is ld it makes a PLAMLIB
9673
## CC just makes a GrossModule.
9674
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9675
reload_cmds='$CC -r -o $output$reload_objs'
9679
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683
runpath_var='LD_RUN_PATH'
9684
hardcode_shlibpath_var=no
9688
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689
hardcode_shlibpath_var=no
9690
export_dynamic_flag_spec='-Bexport'
9694
if test -d /usr/nec; then
9695
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696
hardcode_shlibpath_var=no
9697
runpath_var=LD_RUN_PATH
9698
hardcode_runpath_var=yes
9703
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9704
no_undefined_flag='${wl}-z,text'
9705
archive_cmds_need_lc=no
9706
hardcode_shlibpath_var=no
9707
runpath_var='LD_RUN_PATH'
9709
if test "$GCC" = yes; then
9710
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718
sysv5* | sco3.2v5* | sco5v6*)
9719
# Note: We can NOT use -z defs as we might desire, because we do not
9720
# link with -lc, and that would cause any symbols used from libc to
9721
# always be unresolved, which means just about no library would
9722
# ever link correctly. If we're not using GNU ld we use -z text
9723
# though, which does catch some bad symbols but isn't as heavy-handed
9725
no_undefined_flag='${wl}-z,text'
9726
allow_undefined_flag='${wl}-z,nodefs'
9727
archive_cmds_need_lc=no
9728
hardcode_shlibpath_var=no
9729
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9730
hardcode_libdir_separator=':'
9731
link_all_deplibs=yes
9732
export_dynamic_flag_spec='${wl}-Bexport'
9733
runpath_var='LD_RUN_PATH'
9735
if test "$GCC" = yes; then
9736
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746
hardcode_libdir_flag_spec='-L$libdir'
9747
hardcode_shlibpath_var=no
9755
if test x$host_vendor = xsni; then
9757
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9758
export_dynamic_flag_spec='${wl}-Blargedynsym'
9764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9765
$as_echo "$ld_shlibs" >&6; }
9766
test "$ld_shlibs" = no && can_build_shared=no
9768
with_gnu_ld=$with_gnu_ld
9785
# Do we need to explicitly link libc?
9787
case "x$archive_cmds_need_lc" in
9789
# Assume -lc should be added
9790
archive_cmds_need_lc=yes
9792
if test "$enable_shared" = yes && test "$GCC" = yes; then
9793
case $archive_cmds in
9795
# FIXME: we may have to deal with multi-command sequences.
9798
# Test whether the compiler implicitly links with -lc since on some
9799
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9800
# to ld, don't add -lc before -lgcc.
9801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9802
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9803
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9804
$as_echo_n "(cached) " >&6
9807
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9810
(eval $ac_compile) 2>&5
9812
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9813
test $ac_status = 0; } 2>conftest.err; then
9816
libobjs=conftest.$ac_objext
9818
wl=$lt_prog_compiler_wl
9819
pic_flag=$lt_prog_compiler_pic
9825
lt_save_allow_undefined_flag=$allow_undefined_flag
9826
allow_undefined_flag=
9827
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9828
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9830
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9831
test $ac_status = 0; }
9833
lt_cv_archive_cmds_need_lc=no
9835
lt_cv_archive_cmds_need_lc=yes
9837
allow_undefined_flag=$lt_save_allow_undefined_flag
9839
cat conftest.err 1>&5
9844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9845
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9846
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10005
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10007
if test "$GCC" = yes; then
10009
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10010
*) lt_awk_arg="/^libraries:/" ;;
10013
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10014
*) lt_sed_strip_eq="s,=/,/,g" ;;
10016
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10017
case $lt_search_path_spec in
10019
# if the path contains ";" then we assume it to be the separator
10020
# otherwise default to the standard path separator (i.e. ":") - it is
10021
# assumed that no part of a normal pathname contains ";" but that should
10022
# okay in the real world where ";" in dirpaths is itself problematic.
10023
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10026
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10029
# Ok, now we have the path, separated by spaces, we can step through it
10030
# and add multilib dir if necessary.
10031
lt_tmp_lt_search_path_spec=
10032
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033
for lt_sys_path in $lt_search_path_spec; do
10034
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10037
test -d "$lt_sys_path" && \
10038
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10041
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10042
BEGIN {RS=" "; FS="/|\n";} {
10045
for (lt_i = NF; lt_i > 0; lt_i--) {
10046
if ($lt_i != "" && $lt_i != ".") {
10047
if ($lt_i == "..") {
10050
if (lt_count == 0) {
10051
lt_foo="/" $lt_i lt_foo;
10058
if (lt_foo != "") { lt_freq[lt_foo]++; }
10059
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10061
# AWK program above erroneously prepends '/' to C:/dos/paths
10064
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10065
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10067
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10069
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10071
library_names_spec=
10072
libname_spec='lib$name'
10076
postuninstall_cmds=
10080
shlibpath_overrides_runpath=unknown
10082
dynamic_linker="$host_os ld.so"
10083
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10084
need_lib_prefix=unknown
10085
hardcode_into_libs=no
10087
# when you set need_version to no, make sure it does not cause -set_version
10088
# flags to be left without arguments
10089
need_version=unknown
10093
version_type=linux # correct to gnu/linux during the next big refactor
10094
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10095
shlibpath_var=LIBPATH
10097
# AIX 3 has no versioning support, so we append a major version to the name.
10098
soname_spec='${libname}${release}${shared_ext}$major'
10102
version_type=linux # correct to gnu/linux during the next big refactor
10105
hardcode_into_libs=yes
10106
if test "$host_cpu" = ia64; then
10107
# AIX 5 supports IA64
10108
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10109
shlibpath_var=LD_LIBRARY_PATH
10111
# With GCC up to 2.95.x, collect2 would create an import file
10112
# for dependence libraries. The import file would start with
10113
# the line `#! .'. This would cause the generated library to
10114
# depend on `.', always an invalid library. This was fixed in
10115
# development snapshots of GCC prior to 3.0.
10117
aix4 | aix4.[01] | aix4.[01].*)
10118
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10120
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10123
can_build_shared=no
10127
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10128
# soname into executable. Probably we can add versioning support to
10129
# collect2, so additional links can be useful in future.
10130
if test "$aix_use_runtimelinking" = yes; then
10131
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10132
# instead of lib<name>.a to let people know that these are not
10133
# typical AIX shared libraries.
10134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136
# We preserve .a as extension for shared libraries through AIX4.2
10137
# and later when we are not doing run time linking.
10138
library_names_spec='${libname}${release}.a $libname.a'
10139
soname_spec='${libname}${release}${shared_ext}$major'
10141
shlibpath_var=LIBPATH
10148
# Since July 2007 AmigaOS4 officially supports .so libraries.
10149
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153
library_names_spec='$libname.ixlibrary $libname.a'
10154
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10155
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10161
library_names_spec='${libname}${shared_ext}'
10162
dynamic_linker="$host_os ld.so"
10163
shlibpath_var=LIBRARY_PATH
10167
version_type=linux # correct to gnu/linux during the next big refactor
10169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170
soname_spec='${libname}${release}${shared_ext}$major'
10171
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10172
shlibpath_var=LD_LIBRARY_PATH
10173
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10174
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10175
# the default ld.so.conf also contains /usr/contrib/lib and
10176
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10177
# libtool to hard-code these into programs
10180
cygwin* | mingw* | pw32* | cegcc*)
10181
version_type=windows
10186
case $GCC,$cc_basename in
10189
library_names_spec='$libname.dll.a'
10190
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10191
postinstall_cmds='base_file=`basename \${file}`~
10192
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10193
dldir=$destdir/`dirname \$dlpath`~
10194
test -d \$dldir || mkdir -p \$dldir~
10195
$install_prog $dir/$dlname \$dldir/$dlname~
10196
chmod a+x \$dldir/$dlname~
10197
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10198
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10200
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10201
dlpath=$dir/\$dldll~
10203
shlibpath_overrides_runpath=yes
10207
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10208
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10213
# MinGW DLLs use traditional 'lib' prefix
10214
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10217
# pw32 DLLs use 'pw' prefix rather than 'lib'
10218
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221
dynamic_linker='Win32 ld.exe'
10226
libname_spec='$name'
10227
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228
library_names_spec='${libname}.dll.lib'
10232
sys_lib_search_path_spec=
10235
for lt_path in $LIB
10238
# Let DOS variable expansion print the short 8.3 style file name.
10239
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10240
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10243
# Convert to MSYS style.
10244
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10247
# Convert to unix form, then to dos form, then back to unix form
10248
# but this time dos style (no spaces!) so that the unix form looks
10249
# like /cygdrive/c/PROGRA~1:/cygdr...
10250
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10251
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10252
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10255
sys_lib_search_path_spec="$LIB"
10256
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10257
# It is most probably a Windows format PATH.
10258
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10260
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10262
# FIXME: find the short name or the path components, as spaces are
10263
# common. (e.g. "Program Files" -> "PROGRA~1")
10267
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10268
postinstall_cmds='base_file=`basename \${file}`~
10269
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10270
dldir=$destdir/`dirname \$dlpath`~
10271
test -d \$dldir || mkdir -p \$dldir~
10272
$install_prog $dir/$dlname \$dldir/$dlname'
10273
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10274
dlpath=$dir/\$dldll~
10276
shlibpath_overrides_runpath=yes
10277
dynamic_linker='Win32 link.exe'
10281
# Assume MSVC wrapper
10282
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10283
dynamic_linker='Win32 ld.exe'
10286
# FIXME: first we should search . and the directory the executable is in
10290
darwin* | rhapsody*)
10291
dynamic_linker="$host_os dyld"
10292
version_type=darwin
10295
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10296
soname_spec='${libname}${release}${major}$shared_ext'
10297
shlibpath_overrides_runpath=yes
10298
shlibpath_var=DYLD_LIBRARY_PATH
10299
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10301
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10302
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10306
version_type=linux # correct to gnu/linux during the next big refactor
10309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10310
soname_spec='${libname}${release}${shared_ext}$major'
10311
shlibpath_var=LD_LIBRARY_PATH
10314
freebsd* | dragonfly*)
10315
# DragonFly does not have aout. When/if they implement a new
10316
# versioning mechanism, adjust this.
10317
if test -x /usr/bin/objformat; then
10318
objformat=`/usr/bin/objformat`
10321
freebsd[23].*) objformat=aout ;;
10322
*) objformat=elf ;;
10325
version_type=freebsd-$objformat
10326
case $version_type in
10328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10333
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10337
shlibpath_var=LD_LIBRARY_PATH
10340
shlibpath_overrides_runpath=yes
10342
freebsd3.[01]* | freebsdelf3.[01]*)
10343
shlibpath_overrides_runpath=yes
10344
hardcode_into_libs=yes
10346
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10347
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10348
shlibpath_overrides_runpath=no
10349
hardcode_into_libs=yes
10351
*) # from 4.6 on, and DragonFly
10352
shlibpath_overrides_runpath=yes
10353
hardcode_into_libs=yes
10359
version_type=linux # correct to gnu/linux during the next big refactor
10362
dynamic_linker="$host_os runtime_loader"
10363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10364
soname_spec='${libname}${release}${shared_ext}$major'
10365
shlibpath_var=LIBRARY_PATH
10366
shlibpath_overrides_runpath=yes
10367
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10368
hardcode_into_libs=yes
10371
hpux9* | hpux10* | hpux11*)
10372
# Give a soname corresponding to the major version so that dld.sl refuses to
10373
# link against other versions.
10380
hardcode_into_libs=yes
10381
dynamic_linker="$host_os dld.so"
10382
shlibpath_var=LD_LIBRARY_PATH
10383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385
soname_spec='${libname}${release}${shared_ext}$major'
10386
if test "X$HPUX_IA64_MODE" = X32; then
10387
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10389
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10391
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10395
hardcode_into_libs=yes
10396
dynamic_linker="$host_os dld.sl"
10397
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10398
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400
soname_spec='${libname}${release}${shared_ext}$major'
10401
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10402
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10406
dynamic_linker="$host_os dld.sl"
10407
shlibpath_var=SHLIB_PATH
10408
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410
soname_spec='${libname}${release}${shared_ext}$major'
10413
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10414
postinstall_cmds='chmod 555 $lib'
10415
# or fails outright, so override atomically:
10416
install_override_mode=555
10420
version_type=linux # correct to gnu/linux during the next big refactor
10423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424
soname_spec='${libname}${release}${shared_ext}$major'
10425
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10426
shlibpath_var=LD_LIBRARY_PATH
10427
shlibpath_overrides_runpath=no
10428
hardcode_into_libs=yes
10431
irix5* | irix6* | nonstopux*)
10433
nonstopux*) version_type=nonstopux ;;
10435
if test "$lt_cv_prog_gnu_ld" = yes; then
10436
version_type=linux # correct to gnu/linux during the next big refactor
10443
soname_spec='${libname}${release}${shared_ext}$major'
10444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10446
irix5* | nonstopux*)
10447
libsuff= shlibsuff=
10450
case $LD in # libtool.m4 will add one of these switches to LD
10451
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10452
libsuff= shlibsuff= libmagic=32-bit;;
10453
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10454
libsuff=32 shlibsuff=N32 libmagic=N32;;
10455
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10456
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10457
*) libsuff= shlibsuff= libmagic=never-match;;
10461
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10462
shlibpath_overrides_runpath=no
10463
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10464
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10465
hardcode_into_libs=yes
10468
# No shared lib support for Linux oldld, aout, or coff.
10469
linux*oldld* | linux*aout* | linux*coff*)
10473
# This must be glibc/ELF.
10474
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10475
version_type=linux # correct to gnu/linux during the next big refactor
10478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479
soname_spec='${libname}${release}${shared_ext}$major'
10480
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10481
shlibpath_var=LD_LIBRARY_PATH
10482
shlibpath_overrides_runpath=no
10484
# Some binutils ld are patched to set DT_RUNPATH
10485
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10486
$as_echo_n "(cached) " >&6
10488
lt_cv_shlibpath_overrides_runpath=no
10489
save_LDFLAGS=$LDFLAGS
10490
save_libdir=$libdir
10491
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10492
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10493
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494
/* end confdefs.h. */
10504
if ac_fn_c_try_link "$LINENO"; then :
10505
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10506
lt_cv_shlibpath_overrides_runpath=yes
10509
rm -f core conftest.err conftest.$ac_objext \
10510
conftest$ac_exeext conftest.$ac_ext
10511
LDFLAGS=$save_LDFLAGS
10512
libdir=$save_libdir
10516
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10518
# This implies no fast_install, which is unacceptable.
10519
# Some rework will be needed to allow for fast_install
10520
# before this can be enabled.
10521
hardcode_into_libs=yes
10523
# Append ld.so.conf contents to the search path
10524
if test -f /etc/ld.so.conf; then
10525
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10526
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10529
# We used to test for /lib/ld.so.1 and disable shared libraries on
10530
# powerpc, because MkLinux only supported shared libraries with the
10531
# GNU dynamic linker. Since this was broken with cross compilers,
10532
# most powerpc-linux boxes support dynamic linking these days and
10533
# people can always --disable-shared, the test was removed, and we
10534
# assume the GNU/Linux dynamic linker is in use.
10535
dynamic_linker='GNU/Linux ld.so'
10542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10543
soname_spec='${libname}${release}${shared_ext}$major'
10544
shlibpath_var=LD_LIBRARY_PATH
10545
shlibpath_overrides_runpath=no
10546
hardcode_into_libs=yes
10547
dynamic_linker='NetBSD ld.elf_so'
10554
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10556
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10557
dynamic_linker='NetBSD (a.out) ld.so'
10559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560
soname_spec='${libname}${release}${shared_ext}$major'
10561
dynamic_linker='NetBSD ld.elf_so'
10563
shlibpath_var=LD_LIBRARY_PATH
10564
shlibpath_overrides_runpath=yes
10565
hardcode_into_libs=yes
10569
version_type=linux # correct to gnu/linux during the next big refactor
10570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571
shlibpath_var=LD_LIBRARY_PATH
10572
shlibpath_overrides_runpath=yes
10579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580
soname_spec='${libname}${release}${shared_ext}$major'
10581
shlibpath_var=LD_LIBRARY_PATH
10582
shlibpath_overrides_runpath=no
10583
hardcode_into_libs=yes
10584
dynamic_linker='ldqnx.so'
10589
sys_lib_dlsearch_path_spec="/usr/lib"
10591
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10593
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10594
*) need_version=no ;;
10596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10598
shlibpath_var=LD_LIBRARY_PATH
10599
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10601
openbsd2.[89] | openbsd2.[89].*)
10602
shlibpath_overrides_runpath=no
10605
shlibpath_overrides_runpath=yes
10609
shlibpath_overrides_runpath=yes
10614
libname_spec='$name'
10617
library_names_spec='$libname${shared_ext} $libname.a'
10618
dynamic_linker='OS/2 ld.exe'
10619
shlibpath_var=LIBPATH
10622
osf3* | osf4* | osf5*)
10626
soname_spec='${libname}${release}${shared_ext}$major'
10627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628
shlibpath_var=LD_LIBRARY_PATH
10629
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10630
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10638
version_type=linux # correct to gnu/linux during the next big refactor
10641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642
soname_spec='${libname}${release}${shared_ext}$major'
10643
shlibpath_var=LD_LIBRARY_PATH
10644
shlibpath_overrides_runpath=yes
10645
hardcode_into_libs=yes
10646
# ldd complains unless libraries are executable
10647
postinstall_cmds='chmod +x $lib'
10652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10653
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10654
shlibpath_var=LD_LIBRARY_PATH
10655
shlibpath_overrides_runpath=yes
10656
if test "$with_gnu_ld" = yes; then
10663
version_type=linux # correct to gnu/linux during the next big refactor
10664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665
soname_spec='${libname}${release}${shared_ext}$major'
10666
shlibpath_var=LD_LIBRARY_PATH
10667
case $host_vendor in
10669
shlibpath_overrides_runpath=no
10671
runpath_var=LD_RUN_PATH
10679
shlibpath_overrides_runpath=no
10680
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10686
if test -d /usr/nec ;then
10687
version_type=linux # correct to gnu/linux during the next big refactor
10688
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10689
soname_spec='$libname${shared_ext}.$major'
10690
shlibpath_var=LD_LIBRARY_PATH
10694
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10695
version_type=freebsd-elf
10698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10699
soname_spec='${libname}${release}${shared_ext}$major'
10700
shlibpath_var=LD_LIBRARY_PATH
10701
shlibpath_overrides_runpath=yes
10702
hardcode_into_libs=yes
10703
if test "$with_gnu_ld" = yes; then
10704
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10706
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10709
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10713
sys_lib_dlsearch_path_spec='/usr/lib'
10717
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10718
version_type=linux # correct to gnu/linux during the next big refactor
10721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722
shlibpath_var=LD_LIBRARY_PATH
10723
shlibpath_overrides_runpath=no
10724
hardcode_into_libs=yes
10728
version_type=linux # correct to gnu/linux during the next big refactor
10729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730
soname_spec='${libname}${release}${shared_ext}$major'
10731
shlibpath_var=LD_LIBRARY_PATH
10738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10739
$as_echo "$dynamic_linker" >&6; }
10740
test "$dynamic_linker" = no && can_build_shared=no
10742
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10743
if test "$GCC" = yes; then
10744
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10747
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10748
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10750
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10751
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10846
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10848
if test -n "$hardcode_libdir_flag_spec" ||
10849
test -n "$runpath_var" ||
10850
test "X$hardcode_automatic" = "Xyes" ; then
10852
# We can hardcode non-existent directories.
10853
if test "$hardcode_direct" != no &&
10854
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10855
# have to relink, otherwise we might link with an installed library
10856
# when we should be linking with a yet-to-be-installed one
10857
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10858
test "$hardcode_minus_L" != no; then
10859
# Linking always hardcodes the temporary library directory.
10860
hardcode_action=relink
10862
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10863
hardcode_action=immediate
10866
# We cannot hardcode anything, or else we can only hardcode existing
10868
hardcode_action=unsupported
10870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10871
$as_echo "$hardcode_action" >&6; }
10873
if test "$hardcode_action" = relink ||
10874
test "$inherit_rpath" = yes; then
10875
# Fast installation is not supported
10876
enable_fast_install=no
10877
elif test "$shlibpath_overrides_runpath" = yes ||
10878
test "$enable_shared" = no; then
10879
# Fast installation is not necessary
10880
enable_fast_install=needless
10888
if test "x$enable_dlopen" != xyes; then
10889
enable_dlopen=unknown
10890
enable_dlopen_self=unknown
10891
enable_dlopen_self_static=unknown
10898
lt_cv_dlopen="load_add_on"
10900
lt_cv_dlopen_self=yes
10903
mingw* | pw32* | cegcc*)
10904
lt_cv_dlopen="LoadLibrary"
10909
lt_cv_dlopen="dlopen"
10914
# if libdl is installed we need to link against it
10915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10916
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10917
if ${ac_cv_lib_dl_dlopen+:} false; then :
10918
$as_echo_n "(cached) " >&6
10920
ac_check_lib_save_LIBS=$LIBS
10922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923
/* end confdefs.h. */
10925
/* Override any GCC internal prototype to avoid an error.
10926
Use char because int might match the return type of a GCC
10927
builtin and then its argument prototype would still apply. */
10940
if ac_fn_c_try_link "$LINENO"; then :
10941
ac_cv_lib_dl_dlopen=yes
10943
ac_cv_lib_dl_dlopen=no
10945
rm -f core conftest.err conftest.$ac_objext \
10946
conftest$ac_exeext conftest.$ac_ext
10947
LIBS=$ac_check_lib_save_LIBS
10949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10950
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10951
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10952
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10955
lt_cv_dlopen="dyld"
10957
lt_cv_dlopen_self=yes
10964
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10965
if test "x$ac_cv_func_shl_load" = xyes; then :
10966
lt_cv_dlopen="shl_load"
10968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10969
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10970
if ${ac_cv_lib_dld_shl_load+:} false; then :
10971
$as_echo_n "(cached) " >&6
10973
ac_check_lib_save_LIBS=$LIBS
10975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976
/* end confdefs.h. */
10978
/* Override any GCC internal prototype to avoid an error.
10979
Use char because int might match the return type of a GCC
10980
builtin and then its argument prototype would still apply. */
10988
return shl_load ();
10993
if ac_fn_c_try_link "$LINENO"; then :
10994
ac_cv_lib_dld_shl_load=yes
10996
ac_cv_lib_dld_shl_load=no
10998
rm -f core conftest.err conftest.$ac_objext \
10999
conftest$ac_exeext conftest.$ac_ext
11000
LIBS=$ac_check_lib_save_LIBS
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11003
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11004
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11005
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11007
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11008
if test "x$ac_cv_func_dlopen" = xyes; then :
11009
lt_cv_dlopen="dlopen"
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11012
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11013
if ${ac_cv_lib_dl_dlopen+:} false; then :
11014
$as_echo_n "(cached) " >&6
11016
ac_check_lib_save_LIBS=$LIBS
11018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019
/* end confdefs.h. */
11021
/* Override any GCC internal prototype to avoid an error.
11022
Use char because int might match the return type of a GCC
11023
builtin and then its argument prototype would still apply. */
11036
if ac_fn_c_try_link "$LINENO"; then :
11037
ac_cv_lib_dl_dlopen=yes
11039
ac_cv_lib_dl_dlopen=no
11041
rm -f core conftest.err conftest.$ac_objext \
11042
conftest$ac_exeext conftest.$ac_ext
11043
LIBS=$ac_check_lib_save_LIBS
11045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11046
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11047
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11048
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11051
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11052
if ${ac_cv_lib_svld_dlopen+:} false; then :
11053
$as_echo_n "(cached) " >&6
11055
ac_check_lib_save_LIBS=$LIBS
11056
LIBS="-lsvld $LIBS"
11057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058
/* end confdefs.h. */
11060
/* Override any GCC internal prototype to avoid an error.
11061
Use char because int might match the return type of a GCC
11062
builtin and then its argument prototype would still apply. */
11075
if ac_fn_c_try_link "$LINENO"; then :
11076
ac_cv_lib_svld_dlopen=yes
11078
ac_cv_lib_svld_dlopen=no
11080
rm -f core conftest.err conftest.$ac_objext \
11081
conftest$ac_exeext conftest.$ac_ext
11082
LIBS=$ac_check_lib_save_LIBS
11084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11085
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11086
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11087
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11090
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11091
if ${ac_cv_lib_dld_dld_link+:} false; then :
11092
$as_echo_n "(cached) " >&6
11094
ac_check_lib_save_LIBS=$LIBS
11096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097
/* end confdefs.h. */
11099
/* Override any GCC internal prototype to avoid an error.
11100
Use char because int might match the return type of a GCC
11101
builtin and then its argument prototype would still apply. */
11109
return dld_link ();
11114
if ac_fn_c_try_link "$LINENO"; then :
11115
ac_cv_lib_dld_dld_link=yes
11117
ac_cv_lib_dld_dld_link=no
11119
rm -f core conftest.err conftest.$ac_objext \
11120
conftest$ac_exeext conftest.$ac_ext
11121
LIBS=$ac_check_lib_save_LIBS
11123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11124
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11125
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11126
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11147
if test "x$lt_cv_dlopen" != xno; then
11153
case $lt_cv_dlopen in
11155
save_CPPFLAGS="$CPPFLAGS"
11156
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11158
save_LDFLAGS="$LDFLAGS"
11159
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11162
LIBS="$lt_cv_dlopen_libs $LIBS"
11164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11165
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11166
if ${lt_cv_dlopen_self+:} false; then :
11167
$as_echo_n "(cached) " >&6
11169
if test "$cross_compiling" = yes; then :
11170
lt_cv_dlopen_self=cross
11172
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11173
lt_status=$lt_dlunknown
11174
cat > conftest.$ac_ext <<_LT_EOF
11175
#line $LINENO "configure"
11176
#include "confdefs.h"
11185
# define LT_DLGLOBAL RTLD_GLOBAL
11188
# define LT_DLGLOBAL DL_GLOBAL
11190
# define LT_DLGLOBAL 0
11194
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11195
find out it does not work in some platform. */
11196
#ifndef LT_DLLAZY_OR_NOW
11198
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11201
# define LT_DLLAZY_OR_NOW DL_LAZY
11204
# define LT_DLLAZY_OR_NOW RTLD_NOW
11207
# define LT_DLLAZY_OR_NOW DL_NOW
11209
# define LT_DLLAZY_OR_NOW 0
11216
/* When -fvisbility=hidden is used, assume the code has been annotated
11217
correspondingly for the symbols needed. */
11218
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11219
int fnord () __attribute__((visibility("default")));
11222
int fnord () { return 42; }
11225
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11226
int status = $lt_dlunknown;
11230
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11233
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11234
else puts (dlerror ());
11236
/* dlclose (self); */
11244
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11245
(eval $ac_link) 2>&5
11247
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11248
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11249
(./conftest; exit; ) >&5 2>/dev/null
11251
case x$lt_status in
11252
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11253
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11254
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11257
# compilation failed
11258
lt_cv_dlopen_self=no
11265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11266
$as_echo "$lt_cv_dlopen_self" >&6; }
11268
if test "x$lt_cv_dlopen_self" = xyes; then
11269
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11271
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11272
if ${lt_cv_dlopen_self_static+:} false; then :
11273
$as_echo_n "(cached) " >&6
11275
if test "$cross_compiling" = yes; then :
11276
lt_cv_dlopen_self_static=cross
11278
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11279
lt_status=$lt_dlunknown
11280
cat > conftest.$ac_ext <<_LT_EOF
11281
#line $LINENO "configure"
11282
#include "confdefs.h"
11291
# define LT_DLGLOBAL RTLD_GLOBAL
11294
# define LT_DLGLOBAL DL_GLOBAL
11296
# define LT_DLGLOBAL 0
11300
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11301
find out it does not work in some platform. */
11302
#ifndef LT_DLLAZY_OR_NOW
11304
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11307
# define LT_DLLAZY_OR_NOW DL_LAZY
11310
# define LT_DLLAZY_OR_NOW RTLD_NOW
11313
# define LT_DLLAZY_OR_NOW DL_NOW
11315
# define LT_DLLAZY_OR_NOW 0
11322
/* When -fvisbility=hidden is used, assume the code has been annotated
11323
correspondingly for the symbols needed. */
11324
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11325
int fnord () __attribute__((visibility("default")));
11328
int fnord () { return 42; }
11331
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332
int status = $lt_dlunknown;
11336
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11339
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11340
else puts (dlerror ());
11342
/* dlclose (self); */
11350
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11351
(eval $ac_link) 2>&5
11353
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11355
(./conftest; exit; ) >&5 2>/dev/null
11357
case x$lt_status in
11358
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11359
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11360
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11363
# compilation failed
11364
lt_cv_dlopen_self_static=no
11371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11372
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11375
CPPFLAGS="$save_CPPFLAGS"
11376
LDFLAGS="$save_LDFLAGS"
11381
case $lt_cv_dlopen_self in
11382
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11383
*) enable_dlopen_self=unknown ;;
11386
case $lt_cv_dlopen_self_static in
11387
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11388
*) enable_dlopen_self_static=unknown ;;
11410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11411
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11412
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11413
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11414
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416
$as_echo "yes" >&6; }
11418
# FIXME - insert some real tests, host_os isn't really good enough
11421
if test -n "$STRIP" ; then
11422
striplib="$STRIP -x"
11423
old_striplib="$STRIP -S"
11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11425
$as_echo "yes" >&6; }
11427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428
$as_echo "no" >&6; }
11432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433
$as_echo "no" >&6; }
11449
# Report which library types will actually be built
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11451
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11453
$as_echo "$can_build_shared" >&6; }
11455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11456
$as_echo_n "checking whether to build shared libraries... " >&6; }
11457
test "$can_build_shared" = "no" && enable_shared=no
11459
# On AIX, shared libraries and static libraries use the same namespace, and
11460
# are all built from PIC.
11463
test "$enable_shared" = yes && enable_static=no
11464
if test -n "$RANLIB"; then
11465
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11466
postinstall_cmds='$RANLIB $lib'
11471
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11472
test "$enable_shared" = yes && enable_static=no
11476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11477
$as_echo "$enable_shared" >&6; }
11479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11480
$as_echo_n "checking whether to build static libraries... " >&6; }
11481
# Make sure either enable_shared or enable_static is yes.
11482
test "$enable_shared" = yes || enable_static=yes
11483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11484
$as_echo "$enable_static" >&6; }
11491
ac_cpp='$CPP $CPPFLAGS'
11492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
ac_config_commands="$ac_config_commands libtool"
11517
# Only expand once:
11522
ac_cpp='$CPP $CPPFLAGS'
11523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11526
if test -n "$ac_tool_prefix"; then
11527
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11528
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530
$as_echo_n "checking for $ac_word... " >&6; }
11531
if ${ac_cv_prog_CC+:} false; then :
11532
$as_echo_n "(cached) " >&6
11534
if test -n "$CC"; then
11535
ac_cv_prog_CC="$CC" # Let the user override the test.
11537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538
for as_dir in $PATH
11541
test -z "$as_dir" && as_dir=.
11542
for ac_exec_ext in '' $ac_executable_extensions; do
11543
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11544
ac_cv_prog_CC="${ac_tool_prefix}gcc"
11545
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555
if test -n "$CC"; then
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11557
$as_echo "$CC" >&6; }
11559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560
$as_echo "no" >&6; }
11565
if test -z "$ac_cv_prog_CC"; then
11567
# Extract the first word of "gcc", so it can be a program name with args.
11568
set dummy gcc; ac_word=$2
11569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570
$as_echo_n "checking for $ac_word... " >&6; }
11571
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11572
$as_echo_n "(cached) " >&6
11574
if test -n "$ac_ct_CC"; then
11575
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578
for as_dir in $PATH
11581
test -z "$as_dir" && as_dir=.
11582
for ac_exec_ext in '' $ac_executable_extensions; do
11583
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584
ac_cv_prog_ac_ct_CC="gcc"
11585
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11595
if test -n "$ac_ct_CC"; then
11596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11597
$as_echo "$ac_ct_CC" >&6; }
11599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600
$as_echo "no" >&6; }
11603
if test "x$ac_ct_CC" = x; then
11606
case $cross_compiling:$ac_tool_warned in
11608
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11609
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11610
ac_tool_warned=yes ;;
11615
CC="$ac_cv_prog_CC"
11618
if test -z "$CC"; then
11619
if test -n "$ac_tool_prefix"; then
11620
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11621
set dummy ${ac_tool_prefix}cc; ac_word=$2
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623
$as_echo_n "checking for $ac_word... " >&6; }
11624
if ${ac_cv_prog_CC+:} false; then :
11625
$as_echo_n "(cached) " >&6
11627
if test -n "$CC"; then
11628
ac_cv_prog_CC="$CC" # Let the user override the test.
11630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631
for as_dir in $PATH
11634
test -z "$as_dir" && as_dir=.
11635
for ac_exec_ext in '' $ac_executable_extensions; do
11636
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637
ac_cv_prog_CC="${ac_tool_prefix}cc"
11638
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648
if test -n "$CC"; then
11649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11650
$as_echo "$CC" >&6; }
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653
$as_echo "no" >&6; }
11659
if test -z "$CC"; then
11660
# Extract the first word of "cc", so it can be a program name with args.
11661
set dummy cc; ac_word=$2
11662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663
$as_echo_n "checking for $ac_word... " >&6; }
11664
if ${ac_cv_prog_CC+:} false; then :
11665
$as_echo_n "(cached) " >&6
11667
if test -n "$CC"; then
11668
ac_cv_prog_CC="$CC" # Let the user override the test.
11670
ac_prog_rejected=no
11671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672
for as_dir in $PATH
11675
test -z "$as_dir" && as_dir=.
11676
for ac_exec_ext in '' $ac_executable_extensions; do
11677
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11679
ac_prog_rejected=yes
11683
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690
if test $ac_prog_rejected = yes; then
11691
# We found a bogon in the path, so make sure we never use it.
11692
set dummy $ac_cv_prog_CC
11694
if test $# != 0; then
11695
# We chose a different compiler from the bogus one.
11696
# However, it has the same basename, so the bogon will be chosen
11697
# first if we set CC to just the basename; use the full file name.
11699
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11705
if test -n "$CC"; then
11706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11707
$as_echo "$CC" >&6; }
11709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710
$as_echo "no" >&6; }
11715
if test -z "$CC"; then
11716
if test -n "$ac_tool_prefix"; then
11717
for ac_prog in cl.exe
11719
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11720
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722
$as_echo_n "checking for $ac_word... " >&6; }
11723
if ${ac_cv_prog_CC+:} false; then :
11724
$as_echo_n "(cached) " >&6
11726
if test -n "$CC"; then
11727
ac_cv_prog_CC="$CC" # Let the user override the test.
11729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730
for as_dir in $PATH
11733
test -z "$as_dir" && as_dir=.
11734
for ac_exec_ext in '' $ac_executable_extensions; do
11735
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11737
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747
if test -n "$CC"; then
11748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11749
$as_echo "$CC" >&6; }
11751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752
$as_echo "no" >&6; }
11756
test -n "$CC" && break
11759
if test -z "$CC"; then
11761
for ac_prog in cl.exe
11763
# Extract the first word of "$ac_prog", so it can be a program name with args.
11764
set dummy $ac_prog; ac_word=$2
11765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766
$as_echo_n "checking for $ac_word... " >&6; }
11767
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11768
$as_echo_n "(cached) " >&6
11770
if test -n "$ac_ct_CC"; then
11771
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774
for as_dir in $PATH
11777
test -z "$as_dir" && as_dir=.
11778
for ac_exec_ext in '' $ac_executable_extensions; do
11779
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780
ac_cv_prog_ac_ct_CC="$ac_prog"
11781
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11791
if test -n "$ac_ct_CC"; then
11792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11793
$as_echo "$ac_ct_CC" >&6; }
11795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796
$as_echo "no" >&6; }
11800
test -n "$ac_ct_CC" && break
11803
if test "x$ac_ct_CC" = x; then
11806
case $cross_compiling:$ac_tool_warned in
11808
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11809
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11810
ac_tool_warned=yes ;;
11819
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11820
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11821
as_fn_error $? "no acceptable C compiler found in \$PATH
11822
See \`config.log' for more details" "$LINENO" 5; }
11824
# Provide some information about the compiler.
11825
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11828
for ac_option in --version -v -V -qversion; do
11829
{ { ac_try="$ac_compiler $ac_option >&5"
11830
case "(($ac_try" in
11831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832
*) ac_try_echo=$ac_try;;
11834
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11835
$as_echo "$ac_try_echo"; } >&5
11836
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11838
if test -s conftest.err; then
11840
... rest of stderr output deleted ...
11841
10q' conftest.err >conftest.er1
11842
cat conftest.er1 >&5
11844
rm -f conftest.er1 conftest.err
11845
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846
test $ac_status = 0; }
11849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11850
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11851
if ${ac_cv_c_compiler_gnu+:} false; then :
11852
$as_echo_n "(cached) " >&6
11854
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855
/* end confdefs.h. */
11868
if ac_fn_c_try_compile "$LINENO"; then :
11869
ac_compiler_gnu=yes
11873
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11878
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11879
if test $ac_compiler_gnu = yes; then
11884
ac_test_CFLAGS=${CFLAGS+set}
11885
ac_save_CFLAGS=$CFLAGS
11886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11887
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11888
if ${ac_cv_prog_cc_g+:} false; then :
11889
$as_echo_n "(cached) " >&6
11891
ac_save_c_werror_flag=$ac_c_werror_flag
11892
ac_c_werror_flag=yes
11895
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896
/* end confdefs.h. */
11906
if ac_fn_c_try_compile "$LINENO"; then :
11907
ac_cv_prog_cc_g=yes
11910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911
/* end confdefs.h. */
11921
if ac_fn_c_try_compile "$LINENO"; then :
11924
ac_c_werror_flag=$ac_save_c_werror_flag
11926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927
/* end confdefs.h. */
11937
if ac_fn_c_try_compile "$LINENO"; then :
11938
ac_cv_prog_cc_g=yes
11940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945
ac_c_werror_flag=$ac_save_c_werror_flag
11947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11948
$as_echo "$ac_cv_prog_cc_g" >&6; }
11949
if test "$ac_test_CFLAGS" = set; then
11950
CFLAGS=$ac_save_CFLAGS
11951
elif test $ac_cv_prog_cc_g = yes; then
11952
if test "$GCC" = yes; then
11958
if test "$GCC" = yes; then
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11965
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11966
if ${ac_cv_prog_cc_c89+:} false; then :
11967
$as_echo_n "(cached) " >&6
11969
ac_cv_prog_cc_c89=no
11971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972
/* end confdefs.h. */
11973
#include <stdarg.h>
11976
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11977
struct buf { int x; };
11978
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11979
static char *e (p, i)
11985
static char *f (char * (*g) (char **, int), char **p, ...)
11990
s = g (p, va_arg (v,int));
11995
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11996
function prototypes and stuff, but not '\xHH' hex character constants.
11997
These don't provoke an error unfortunately, instead are silently treated
11998
as 'x'. The following induces an error, until -std is added to get
11999
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12000
array size at least. It's necessary to write '\x00'==0 to get something
12001
that's true only with -std. */
12002
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12004
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12005
inside strings and character constants. */
12007
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12009
int test (int i, double x);
12010
struct s1 {int (*f) (int a);};
12011
struct s2 {int (*f) (double a);};
12012
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12018
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12023
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12024
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12026
CC="$ac_save_CC $ac_arg"
12027
if ac_fn_c_try_compile "$LINENO"; then :
12028
ac_cv_prog_cc_c89=$ac_arg
12030
rm -f core conftest.err conftest.$ac_objext
12031
test "x$ac_cv_prog_cc_c89" != "xno" && break
12033
rm -f conftest.$ac_ext
12038
case "x$ac_cv_prog_cc_c89" in
12040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12041
$as_echo "none needed" >&6; } ;;
12043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12044
$as_echo "unsupported" >&6; } ;;
12046
CC="$CC $ac_cv_prog_cc_c89"
12047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12048
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12050
if test "x$ac_cv_prog_cc_c89" != xno; then :
12055
ac_cpp='$CPP $CPPFLAGS'
12056
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12057
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12058
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
12060
depcc="$CC" am_compiler_list=