7951
8173
is in your PATH or set the PKG_CONFIG environment variable to the full
7952
8174
path to pkg-config.
7954
Alternatively, you may set the environment variables gtk_CFLAGS
7955
and gtk_LIBS to avoid the need to call pkg-config.
8176
Alternatively, you may set the environment variables BAOBAB_CFLAGS
8177
and BAOBAB_LIBS to avoid the need to call pkg-config.
7956
8178
See the pkg-config man page for more details.
7958
8180
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7959
8181
See \`config.log' for more details" "$LINENO" 5; }
7962
gtk_CFLAGS=$pkg_cv_gtk_CFLAGS
7963
gtk_LIBS=$pkg_cv_gtk_LIBS
8184
BAOBAB_CFLAGS=$pkg_cv_BAOBAB_CFLAGS
8185
BAOBAB_LIBS=$pkg_cv_BAOBAB_LIBS
7964
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965
8187
$as_echo "yes" >&6; }
8193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8194
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8199
macro_version='2.4.2'
8200
macro_revision='1.3337'
8214
ltmain="$ac_aux_dir/ltmain.sh"
8216
# Backslashify metacharacters that are still active within
8217
# double-quoted strings.
8218
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8220
# Same as above, but do not quote variable references.
8221
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8223
# Sed substitution to delay expansion of an escaped shell variable in a
8224
# double_quote_subst'ed string.
8225
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8227
# Sed substitution to delay expansion of an escaped single quote.
8228
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8230
# Sed substitution to avoid accidental globbing in evaled expressions
8231
no_glob_subst='s/\*/\\\*/g'
8233
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8234
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8235
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8238
$as_echo_n "checking how to print strings... " >&6; }
8239
# Test print first, because it will be a builtin if present.
8240
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8241
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8243
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8246
# Use this function as a fallback that always works.
8247
func_fallback_echo ()
8249
eval 'cat <<_LTECHO_EOF
8253
ECHO='func_fallback_echo'
8256
# func_echo_all arg...
8257
# Invoke $ECHO with all args, space-separated.
8264
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8265
$as_echo "printf" >&6; } ;;
8266
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8267
$as_echo "print -r" >&6; } ;;
8268
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8269
$as_echo "cat" >&6; } ;;
8285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8286
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8287
if ${ac_cv_path_SED+:} false; then :
8288
$as_echo_n "(cached) " >&6
8290
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8291
for ac_i in 1 2 3 4 5 6 7; do
8292
ac_script="$ac_script$as_nl$ac_script"
8294
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8295
{ ac_script=; unset ac_script;}
8296
if test -z "$SED"; then
8297
ac_path_SED_found=false
8298
# Loop through the user's path and test for each of PROGNAME-LIST
8299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303
test -z "$as_dir" && as_dir=.
8304
for ac_prog in sed gsed; do
8305
for ac_exec_ext in '' $ac_executable_extensions; do
8306
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8307
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8308
# Check for GNU ac_path_SED and select it if it is found.
8309
# Check for GNU $ac_path_SED
8310
case `"$ac_path_SED" --version 2>&1` in
8312
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8315
$as_echo_n 0123456789 >"conftest.in"
8318
cat "conftest.in" "conftest.in" >"conftest.tmp"
8319
mv "conftest.tmp" "conftest.in"
8320
cp "conftest.in" "conftest.nl"
8321
$as_echo '' >> "conftest.nl"
8322
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8323
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8324
as_fn_arith $ac_count + 1 && ac_count=$as_val
8325
if test $ac_count -gt ${ac_path_SED_max-0}; then
8326
# Best one so far, save it but keep looking for a better one
8327
ac_cv_path_SED="$ac_path_SED"
8328
ac_path_SED_max=$ac_count
8330
# 10*(2^10) chars as input seems more than enough
8331
test $ac_count -gt 10 && break
8333
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8336
$ac_path_SED_found && break 3
8341
if test -z "$ac_cv_path_SED"; then
8342
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8350
$as_echo "$ac_cv_path_SED" >&6; }
8351
SED="$ac_cv_path_SED"
8354
test -z "$SED" && SED=sed
8355
Xsed="$SED -e 1s/^X//"
8367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8368
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8369
if ${ac_cv_path_GREP+:} false; then :
8370
$as_echo_n "(cached) " >&6
8372
if test -z "$GREP"; then
8373
ac_path_GREP_found=false
8374
# Loop through the user's path and test for each of PROGNAME-LIST
8375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8379
test -z "$as_dir" && as_dir=.
8380
for ac_prog in grep ggrep; do
8381
for ac_exec_ext in '' $ac_executable_extensions; do
8382
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8383
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8384
# Check for GNU ac_path_GREP and select it if it is found.
8385
# Check for GNU $ac_path_GREP
8386
case `"$ac_path_GREP" --version 2>&1` in
8388
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8391
$as_echo_n 0123456789 >"conftest.in"
8394
cat "conftest.in" "conftest.in" >"conftest.tmp"
8395
mv "conftest.tmp" "conftest.in"
8396
cp "conftest.in" "conftest.nl"
8397
$as_echo 'GREP' >> "conftest.nl"
8398
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8399
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8400
as_fn_arith $ac_count + 1 && ac_count=$as_val
8401
if test $ac_count -gt ${ac_path_GREP_max-0}; then
8402
# Best one so far, save it but keep looking for a better one
8403
ac_cv_path_GREP="$ac_path_GREP"
8404
ac_path_GREP_max=$ac_count
8406
# 10*(2^10) chars as input seems more than enough
8407
test $ac_count -gt 10 && break
8409
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8412
$ac_path_GREP_found && break 3
8417
if test -z "$ac_cv_path_GREP"; then
8418
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8421
ac_cv_path_GREP=$GREP
8425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8426
$as_echo "$ac_cv_path_GREP" >&6; }
8427
GREP="$ac_cv_path_GREP"
8430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8431
$as_echo_n "checking for egrep... " >&6; }
8432
if ${ac_cv_path_EGREP+:} false; then :
8433
$as_echo_n "(cached) " >&6
8435
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8436
then ac_cv_path_EGREP="$GREP -E"
8438
if test -z "$EGREP"; then
8439
ac_path_EGREP_found=false
8440
# Loop through the user's path and test for each of PROGNAME-LIST
8441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8445
test -z "$as_dir" && as_dir=.
8446
for ac_prog in egrep; do
8447
for ac_exec_ext in '' $ac_executable_extensions; do
8448
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8449
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8450
# Check for GNU ac_path_EGREP and select it if it is found.
8451
# Check for GNU $ac_path_EGREP
8452
case `"$ac_path_EGREP" --version 2>&1` in
8454
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8457
$as_echo_n 0123456789 >"conftest.in"
8460
cat "conftest.in" "conftest.in" >"conftest.tmp"
8461
mv "conftest.tmp" "conftest.in"
8462
cp "conftest.in" "conftest.nl"
8463
$as_echo 'EGREP' >> "conftest.nl"
8464
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8465
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8466
as_fn_arith $ac_count + 1 && ac_count=$as_val
8467
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8468
# Best one so far, save it but keep looking for a better one
8469
ac_cv_path_EGREP="$ac_path_EGREP"
8470
ac_path_EGREP_max=$ac_count
8472
# 10*(2^10) chars as input seems more than enough
8473
test $ac_count -gt 10 && break
8475
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8478
$ac_path_EGREP_found && break 3
8483
if test -z "$ac_cv_path_EGREP"; then
8484
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8487
ac_cv_path_EGREP=$EGREP
8492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8493
$as_echo "$ac_cv_path_EGREP" >&6; }
8494
EGREP="$ac_cv_path_EGREP"
8497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8498
$as_echo_n "checking for fgrep... " >&6; }
8499
if ${ac_cv_path_FGREP+:} false; then :
8500
$as_echo_n "(cached) " >&6
8502
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8503
then ac_cv_path_FGREP="$GREP -F"
8505
if test -z "$FGREP"; then
8506
ac_path_FGREP_found=false
8507
# Loop through the user's path and test for each of PROGNAME-LIST
8508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8512
test -z "$as_dir" && as_dir=.
8513
for ac_prog in fgrep; do
8514
for ac_exec_ext in '' $ac_executable_extensions; do
8515
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8516
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8517
# Check for GNU ac_path_FGREP and select it if it is found.
8518
# Check for GNU $ac_path_FGREP
8519
case `"$ac_path_FGREP" --version 2>&1` in
8521
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8524
$as_echo_n 0123456789 >"conftest.in"
8527
cat "conftest.in" "conftest.in" >"conftest.tmp"
8528
mv "conftest.tmp" "conftest.in"
8529
cp "conftest.in" "conftest.nl"
8530
$as_echo 'FGREP' >> "conftest.nl"
8531
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8532
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8533
as_fn_arith $ac_count + 1 && ac_count=$as_val
8534
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8535
# Best one so far, save it but keep looking for a better one
8536
ac_cv_path_FGREP="$ac_path_FGREP"
8537
ac_path_FGREP_max=$ac_count
8539
# 10*(2^10) chars as input seems more than enough
8540
test $ac_count -gt 10 && break
8542
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8545
$ac_path_FGREP_found && break 3
8550
if test -z "$ac_cv_path_FGREP"; then
8551
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8554
ac_cv_path_FGREP=$FGREP
8559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8560
$as_echo "$ac_cv_path_FGREP" >&6; }
8561
FGREP="$ac_cv_path_FGREP"
8564
test -z "$GREP" && GREP=grep
8584
# Check whether --with-gnu-ld was given.
8585
if test "${with_gnu_ld+set}" = set; then :
8586
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8592
if test "$GCC" = yes; then
8593
# Check if gcc -print-prog-name=ld gives a path.
8594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8595
$as_echo_n "checking for ld used by $CC... " >&6; }
8598
# gcc leaves a trailing carriage return which upsets mingw
8599
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8601
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8604
# Accept absolute paths.
8606
re_direlt='/[^/][^/]*/\.\./'
8607
# Canonicalize the pathname of ld
8608
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8609
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8610
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8612
test -z "$LD" && LD="$ac_prog"
8615
# If it fails, then pretend we aren't using GCC.
8619
# If it is relative, then search for the first ld in PATH.
8623
elif test "$with_gnu_ld" = yes; then
8624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8625
$as_echo_n "checking for GNU ld... " >&6; }
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8628
$as_echo_n "checking for non-GNU ld... " >&6; }
8630
if ${lt_cv_path_LD+:} false; then :
8631
$as_echo_n "(cached) " >&6
8633
if test -z "$LD"; then
8634
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635
for ac_dir in $PATH; do
8637
test -z "$ac_dir" && ac_dir=.
8638
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8639
lt_cv_path_LD="$ac_dir/$ac_prog"
8640
# Check to see if the program is GNU ld. I'd rather use --version,
8641
# but apparently some variants of GNU ld only accept -v.
8642
# Break only if it was the GNU/non-GNU ld that we prefer.
8643
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8644
*GNU* | *'with BFD'*)
8645
test "$with_gnu_ld" != no && break
8648
test "$with_gnu_ld" != yes && break
8655
lt_cv_path_LD="$LD" # Let the user override the test with a path.
8660
if test -n "$LD"; then
8661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8662
$as_echo "$LD" >&6; }
8664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665
$as_echo "no" >&6; }
8667
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8669
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8670
if ${lt_cv_prog_gnu_ld+:} false; then :
8671
$as_echo_n "(cached) " >&6
8673
# I'd rather use --version here, but apparently some GNU lds only accept -v.
8674
case `$LD -v 2>&1 </dev/null` in
8675
*GNU* | *'with BFD'*)
8676
lt_cv_prog_gnu_ld=yes
8679
lt_cv_prog_gnu_ld=no
8683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8684
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8685
with_gnu_ld=$lt_cv_prog_gnu_ld
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8696
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8697
if ${lt_cv_path_NM+:} false; then :
8698
$as_echo_n "(cached) " >&6
8700
if test -n "$NM"; then
8701
# Let the user override the test.
8704
lt_nm_to_check="${ac_tool_prefix}nm"
8705
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8706
lt_nm_to_check="$lt_nm_to_check nm"
8708
for lt_tmp_nm in $lt_nm_to_check; do
8709
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8710
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8712
test -z "$ac_dir" && ac_dir=.
8713
tmp_nm="$ac_dir/$lt_tmp_nm"
8714
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8715
# Check to see if the nm accepts a BSD-compat flag.
8716
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8717
# nm: unknown option "B" ignored
8718
# Tru64's nm complains that /dev/null is an invalid object file
8719
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8720
*/dev/null* | *'Invalid file or object type'*)
8721
lt_cv_path_NM="$tmp_nm -B"
8725
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8727
lt_cv_path_NM="$tmp_nm -p"
8731
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8732
continue # so that we can try to find one that supports BSD flags
8741
: ${lt_cv_path_NM=no}
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8745
$as_echo "$lt_cv_path_NM" >&6; }
8746
if test "$lt_cv_path_NM" != "no"; then
8749
# Didn't find any BSD compatible name lister, look for dumpbin.
8750
if test -n "$DUMPBIN"; then :
8751
# Let the user override the test.
8753
if test -n "$ac_tool_prefix"; then
8754
for ac_prog in dumpbin "link -dump"
8756
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8757
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759
$as_echo_n "checking for $ac_word... " >&6; }
8760
if ${ac_cv_prog_DUMPBIN+:} false; then :
8761
$as_echo_n "(cached) " >&6
8763
if test -n "$DUMPBIN"; then
8764
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770
test -z "$as_dir" && as_dir=.
8771
for ac_exec_ext in '' $ac_executable_extensions; do
8772
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8774
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783
DUMPBIN=$ac_cv_prog_DUMPBIN
8784
if test -n "$DUMPBIN"; then
8785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8786
$as_echo "$DUMPBIN" >&6; }
8788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789
$as_echo "no" >&6; }
8793
test -n "$DUMPBIN" && break
8796
if test -z "$DUMPBIN"; then
8797
ac_ct_DUMPBIN=$DUMPBIN
8798
for ac_prog in dumpbin "link -dump"
8800
# Extract the first word of "$ac_prog", so it can be a program name with args.
8801
set dummy $ac_prog; ac_word=$2
8802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803
$as_echo_n "checking for $ac_word... " >&6; }
8804
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8805
$as_echo_n "(cached) " >&6
8807
if test -n "$ac_ct_DUMPBIN"; then
8808
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814
test -z "$as_dir" && as_dir=.
8815
for ac_exec_ext in '' $ac_executable_extensions; do
8816
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8828
if test -n "$ac_ct_DUMPBIN"; then
8829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8830
$as_echo "$ac_ct_DUMPBIN" >&6; }
8832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833
$as_echo "no" >&6; }
8837
test -n "$ac_ct_DUMPBIN" && break
8840
if test "x$ac_ct_DUMPBIN" = x; then
8843
case $cross_compiling:$ac_tool_warned in
8845
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8847
ac_tool_warned=yes ;;
8849
DUMPBIN=$ac_ct_DUMPBIN
8853
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8855
DUMPBIN="$DUMPBIN -symbols"
8863
if test "$DUMPBIN" != ":"; then
8867
test -z "$NM" && NM=nm
8874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8875
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8876
if ${lt_cv_nm_interface+:} false; then :
8877
$as_echo_n "(cached) " >&6
8879
lt_cv_nm_interface="BSD nm"
8880
echo "int some_variable = 0;" > conftest.$ac_ext
8881
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8882
(eval "$ac_compile" 2>conftest.err)
8883
cat conftest.err >&5
8884
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8885
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8886
cat conftest.err >&5
8887
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
8888
cat conftest.out >&5
8889
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8890
lt_cv_nm_interface="MS dumpbin"
8894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8895
$as_echo "$lt_cv_nm_interface" >&6; }
8897
# find the maximum length of command line arguments
8898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8899
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8900
if ${lt_cv_sys_max_cmd_len+:} false; then :
8901
$as_echo_n "(cached) " >&6
8908
# On DJGPP, this test can blow up pretty badly due to problems in libc
8909
# (any single argument exceeding 2000 bytes causes a buffer overrun
8910
# during glob expansion). Even if it were fixed, the result of this
8911
# check would be larger than it should be.
8912
lt_cv_sys_max_cmd_len=12288; # 12K is about right
8916
# Under GNU Hurd, this test is not required because there is
8917
# no limit to the length of command line arguments.
8918
# Libtool will interpret -1 as no limit whatsoever
8919
lt_cv_sys_max_cmd_len=-1;
8922
cygwin* | mingw* | cegcc*)
8923
# On Win9x/ME, this test blows up -- it succeeds, but takes
8924
# about 5 minutes as the teststring grows exponentially.
8925
# Worse, since 9x/ME are not pre-emptively multitasking,
8926
# you end up with a "frozen" computer, even though with patience
8927
# the test eventually succeeds (with a max line length of 256k).
8928
# Instead, let's just punt: use the minimum linelength reported by
8929
# all of the supported platforms: 8192 (on NT/2K/XP).
8930
lt_cv_sys_max_cmd_len=8192;
8934
# On MiNT this can take a long time and run out of memory.
8935
lt_cv_sys_max_cmd_len=8192;
8939
# On AmigaOS with pdksh, this test takes hours, literally.
8940
# So we just punt and use a minimum line length of 8192.
8941
lt_cv_sys_max_cmd_len=8192;
8944
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8945
# This has been around since 386BSD, at least. Likely further.
8946
if test -x /sbin/sysctl; then
8947
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8948
elif test -x /usr/sbin/sysctl; then
8949
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8951
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8953
# And add a safety zone
8954
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8955
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8959
# We know the value 262144 and hardcode it with a safety zone (like BSD)
8960
lt_cv_sys_max_cmd_len=196608
8964
# The test takes a long time on OS/2.
8965
lt_cv_sys_max_cmd_len=8192
8969
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8970
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8971
# nice to cause kernel panics so lets avoid the loop below.
8972
# First set a reasonable default.
8973
lt_cv_sys_max_cmd_len=16384
8975
if test -x /sbin/sysconfig; then
8976
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8977
*1*) lt_cv_sys_max_cmd_len=-1 ;;
8982
lt_cv_sys_max_cmd_len=102400
8984
sysv5* | sco5v6* | sysv4.2uw2*)
8985
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8986
if test -n "$kargmax"; then
8987
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8989
lt_cv_sys_max_cmd_len=32768
8993
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8994
if test -n "$lt_cv_sys_max_cmd_len"; then
8995
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8996
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8998
# Make teststring a little bigger before we do anything with it.
8999
# a 1K string should be a reasonable start.
9000
for i in 1 2 3 4 5 6 7 8 ; do
9001
teststring=$teststring$teststring
9003
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9004
# If test is not a shell built-in, we'll probably end up computing a
9005
# maximum length that is only half of the actual maximum length, but
9007
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9008
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
9009
test $i != 17 # 1/2 MB should be enough
9012
teststring=$teststring$teststring
9014
# Only check the string length outside the loop.
9015
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9017
# Add a significant safety factor because C++ compilers can tack on
9018
# massive amounts of additional arguments before passing them to the
9019
# linker. It appears as though 1/2 is a usable value.
9020
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9027
if test -n $lt_cv_sys_max_cmd_len ; then
9028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9029
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9032
$as_echo "none" >&6; }
9034
max_cmd_len=$lt_cv_sys_max_cmd_len
9045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9046
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9047
# Try some XSI features
9050
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9052
&& eval 'test $(( 1 + 1 )) -eq 2 \
9053
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9056
$as_echo "$xsi_shell" >&6; }
9059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9060
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9062
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9064
&& lt_shell_append=yes
9065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9066
$as_echo "$lt_shell_append" >&6; }
9069
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9079
# test EBCDIC or ASCII
9080
case `echo X|tr X '\101'` in
9081
A) # ASCII based system
9082
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9083
lt_SP2NL='tr \040 \012'
9084
lt_NL2SP='tr \015\012 \040\040'
9086
*) # EBCDIC based system
9087
lt_SP2NL='tr \100 \n'
9088
lt_NL2SP='tr \r\n \100\100'
9100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9101
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9102
if ${lt_cv_to_host_file_cmd+:} false; then :
9103
$as_echo_n "(cached) " >&6
9108
*-*-mingw* ) # actually msys
9109
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9112
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9114
* ) # otherwise, assume *nix
9115
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9121
*-*-mingw* ) # actually msys
9122
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9125
lt_cv_to_host_file_cmd=func_convert_file_noop
9127
* ) # otherwise, assume *nix
9128
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9132
* ) # unhandled hosts (and "normal" native builds)
9133
lt_cv_to_host_file_cmd=func_convert_file_noop
9139
to_host_file_cmd=$lt_cv_to_host_file_cmd
9140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9141
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9148
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9149
if ${lt_cv_to_tool_file_cmd+:} false; then :
9150
$as_echo_n "(cached) " >&6
9152
#assume ordinary cross tools, or native build.
9153
lt_cv_to_tool_file_cmd=func_convert_file_noop
9157
*-*-mingw* ) # actually msys
9158
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9166
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9168
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9175
$as_echo_n "checking for $LD option to reload object files... " >&6; }
9176
if ${lt_cv_ld_reload_flag+:} false; then :
9177
$as_echo_n "(cached) " >&6
9179
lt_cv_ld_reload_flag='-r'
9181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9182
$as_echo "$lt_cv_ld_reload_flag" >&6; }
9183
reload_flag=$lt_cv_ld_reload_flag
9184
case $reload_flag in
9186
*) reload_flag=" $reload_flag" ;;
9188
reload_cmds='$LD$reload_flag -o $output$reload_objs'
9190
cygwin* | mingw* | pw32* | cegcc*)
9191
if test "$GCC" != yes; then
9196
if test "$GCC" = yes; then
9197
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9199
reload_cmds='$LD$reload_flag -o $output$reload_objs'
9212
if test -n "$ac_tool_prefix"; then
9213
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9214
set dummy ${ac_tool_prefix}objdump; ac_word=$2
9215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216
$as_echo_n "checking for $ac_word... " >&6; }
9217
if ${ac_cv_prog_OBJDUMP+:} false; then :
9218
$as_echo_n "(cached) " >&6
9220
if test -n "$OBJDUMP"; then
9221
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227
test -z "$as_dir" && as_dir=.
9228
for ac_exec_ext in '' $ac_executable_extensions; do
9229
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9231
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240
OBJDUMP=$ac_cv_prog_OBJDUMP
9241
if test -n "$OBJDUMP"; then
9242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9243
$as_echo "$OBJDUMP" >&6; }
9245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246
$as_echo "no" >&6; }
9251
if test -z "$ac_cv_prog_OBJDUMP"; then
9252
ac_ct_OBJDUMP=$OBJDUMP
9253
# Extract the first word of "objdump", so it can be a program name with args.
9254
set dummy objdump; ac_word=$2
9255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256
$as_echo_n "checking for $ac_word... " >&6; }
9257
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9258
$as_echo_n "(cached) " >&6
9260
if test -n "$ac_ct_OBJDUMP"; then
9261
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267
test -z "$as_dir" && as_dir=.
9268
for ac_exec_ext in '' $ac_executable_extensions; do
9269
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9270
ac_cv_prog_ac_ct_OBJDUMP="objdump"
9271
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9281
if test -n "$ac_ct_OBJDUMP"; then
9282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9283
$as_echo "$ac_ct_OBJDUMP" >&6; }
9285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286
$as_echo "no" >&6; }
9289
if test "x$ac_ct_OBJDUMP" = x; then
9292
case $cross_compiling:$ac_tool_warned in
9294
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296
ac_tool_warned=yes ;;
9298
OBJDUMP=$ac_ct_OBJDUMP
9301
OBJDUMP="$ac_cv_prog_OBJDUMP"
9304
test -z "$OBJDUMP" && OBJDUMP=objdump
9314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9315
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9316
if ${lt_cv_deplibs_check_method+:} false; then :
9317
$as_echo_n "(cached) " >&6
9319
lt_cv_file_magic_cmd='$MAGIC_CMD'
9320
lt_cv_file_magic_test_file=
9321
lt_cv_deplibs_check_method='unknown'
9322
# Need to set the preceding variable on all platforms that support
9323
# interlibrary dependencies.
9324
# 'none' -- dependencies not supported.
9325
# `unknown' -- same as none, but documents that we really don't know.
9326
# 'pass_all' -- all dependencies passed with no checks.
9327
# 'test_compile' -- check by making test program.
9328
# 'file_magic [[regex]]' -- check by looking for files in library path
9329
# which responds to the $file_magic_cmd with a given extended regex.
9330
# If you have `file' or equivalent on your system and you're not sure
9331
# whether `pass_all' will *always* work, you probably want this one.
9335
lt_cv_deplibs_check_method=pass_all
9339
lt_cv_deplibs_check_method=pass_all
9343
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9344
lt_cv_file_magic_cmd='/usr/bin/file -L'
9345
lt_cv_file_magic_test_file=/shlib/libc.so
9349
# func_win32_libid is a shell function defined in ltmain.sh
9350
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9351
lt_cv_file_magic_cmd='func_win32_libid'
9355
# Base MSYS/MinGW do not provide the 'file' command needed by
9356
# func_win32_libid shell function, so use a weaker test based on 'objdump',
9357
# unless we find 'file', for example because we are cross-compiling.
9358
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9359
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9360
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9361
lt_cv_file_magic_cmd='func_win32_libid'
9363
# Keep this pattern in sync with the one in func_win32_libid.
9364
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9365
lt_cv_file_magic_cmd='$OBJDUMP -f'
9370
# use the weaker test based on 'objdump'. See mingw*.
9371
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9372
lt_cv_file_magic_cmd='$OBJDUMP -f'
9375
darwin* | rhapsody*)
9376
lt_cv_deplibs_check_method=pass_all
9379
freebsd* | dragonfly*)
9380
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9383
# Not sure whether the presence of OpenBSD here was a mistake.
9384
# Let's accept both of them until this is cleared up.
9385
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9386
lt_cv_file_magic_cmd=/usr/bin/file
9387
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9391
lt_cv_deplibs_check_method=pass_all
9396
lt_cv_deplibs_check_method=pass_all
9400
lt_cv_deplibs_check_method=pass_all
9403
hpux10.20* | hpux11*)
9404
lt_cv_file_magic_cmd=/usr/bin/file
9407
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9408
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9411
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]'
9412
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9415
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9416
lt_cv_file_magic_test_file=/usr/lib/libc.sl
9422
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9423
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9426
irix5* | irix6* | nonstopux*)
9428
*-32|*"-32 ") libmagic=32-bit;;
9429
*-n32|*"-n32 ") libmagic=N32;;
9430
*-64|*"-64 ") libmagic=64-bit;;
9431
*) libmagic=never-match;;
9433
lt_cv_deplibs_check_method=pass_all
9436
# This must be glibc/ELF.
9437
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9438
lt_cv_deplibs_check_method=pass_all
9442
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9443
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9445
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9450
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9451
lt_cv_file_magic_cmd=/usr/bin/file
9452
lt_cv_file_magic_test_file=/usr/lib/libnls.so
9456
lt_cv_deplibs_check_method=pass_all
9460
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9463
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9467
osf3* | osf4* | osf5*)
9468
lt_cv_deplibs_check_method=pass_all
9472
lt_cv_deplibs_check_method=pass_all
9476
lt_cv_deplibs_check_method=pass_all
9479
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9480
lt_cv_deplibs_check_method=pass_all
9484
case $host_vendor in
9486
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]'
9487
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9490
lt_cv_deplibs_check_method=pass_all
9493
lt_cv_file_magic_cmd='/bin/file'
9494
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9497
lt_cv_file_magic_cmd='/bin/file'
9498
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9499
lt_cv_file_magic_test_file=/lib/libc.so
9502
lt_cv_deplibs_check_method=pass_all
9505
lt_cv_deplibs_check_method=pass_all
9511
lt_cv_deplibs_check_method=pass_all
9516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9517
$as_echo "$lt_cv_deplibs_check_method" >&6; }
9521
if test "$build" = "$host"; then
9524
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9527
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9533
file_magic_cmd=$lt_cv_file_magic_cmd
9534
deplibs_check_method=$lt_cv_deplibs_check_method
9535
test -z "$deplibs_check_method" && deplibs_check_method=unknown
9558
if test -n "$ac_tool_prefix"; then
9559
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9560
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562
$as_echo_n "checking for $ac_word... " >&6; }
9563
if ${ac_cv_prog_DLLTOOL+:} false; then :
9564
$as_echo_n "(cached) " >&6
9566
if test -n "$DLLTOOL"; then
9567
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573
test -z "$as_dir" && as_dir=.
9574
for ac_exec_ext in '' $ac_executable_extensions; do
9575
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9577
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586
DLLTOOL=$ac_cv_prog_DLLTOOL
9587
if test -n "$DLLTOOL"; then
9588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9589
$as_echo "$DLLTOOL" >&6; }
9591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592
$as_echo "no" >&6; }
9597
if test -z "$ac_cv_prog_DLLTOOL"; then
9598
ac_ct_DLLTOOL=$DLLTOOL
9599
# Extract the first word of "dlltool", so it can be a program name with args.
9600
set dummy dlltool; ac_word=$2
9601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602
$as_echo_n "checking for $ac_word... " >&6; }
9603
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9604
$as_echo_n "(cached) " >&6
9606
if test -n "$ac_ct_DLLTOOL"; then
9607
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613
test -z "$as_dir" && as_dir=.
9614
for ac_exec_ext in '' $ac_executable_extensions; do
9615
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9617
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9627
if test -n "$ac_ct_DLLTOOL"; then
9628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9629
$as_echo "$ac_ct_DLLTOOL" >&6; }
9631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632
$as_echo "no" >&6; }
9635
if test "x$ac_ct_DLLTOOL" = x; then
9638
case $cross_compiling:$ac_tool_warned in
9640
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9641
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9642
ac_tool_warned=yes ;;
9644
DLLTOOL=$ac_ct_DLLTOOL
9647
DLLTOOL="$ac_cv_prog_DLLTOOL"
9650
test -z "$DLLTOOL" && DLLTOOL=dlltool
9661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9662
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9663
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9664
$as_echo_n "(cached) " >&6
9666
lt_cv_sharedlib_from_linklib_cmd='unknown'
9669
cygwin* | mingw* | pw32* | cegcc*)
9670
# two different shell functions defined in ltmain.sh
9671
# decide which to use based on capabilities of $DLLTOOL
9672
case `$DLLTOOL --help 2>&1` in
9673
*--identify-strict*)
9674
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9677
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9682
# fallback: assume linklib IS sharedlib
9683
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9689
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9690
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9691
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9699
if test -n "$ac_tool_prefix"; then
9702
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9703
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705
$as_echo_n "checking for $ac_word... " >&6; }
9706
if ${ac_cv_prog_AR+:} false; then :
9707
$as_echo_n "(cached) " >&6
9709
if test -n "$AR"; then
9710
ac_cv_prog_AR="$AR" # Let the user override the test.
9712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716
test -z "$as_dir" && as_dir=.
9717
for ac_exec_ext in '' $ac_executable_extensions; do
9718
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9720
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730
if test -n "$AR"; then
9731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9732
$as_echo "$AR" >&6; }
9734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735
$as_echo "no" >&6; }
9739
test -n "$AR" && break
9742
if test -z "$AR"; then
9746
# Extract the first word of "$ac_prog", so it can be a program name with args.
9747
set dummy $ac_prog; ac_word=$2
9748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749
$as_echo_n "checking for $ac_word... " >&6; }
9750
if ${ac_cv_prog_ac_ct_AR+:} false; then :
9751
$as_echo_n "(cached) " >&6
9753
if test -n "$ac_ct_AR"; then
9754
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760
test -z "$as_dir" && as_dir=.
9761
for ac_exec_ext in '' $ac_executable_extensions; do
9762
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9763
ac_cv_prog_ac_ct_AR="$ac_prog"
9764
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9774
if test -n "$ac_ct_AR"; then
9775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9776
$as_echo "$ac_ct_AR" >&6; }
9778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779
$as_echo "no" >&6; }
9783
test -n "$ac_ct_AR" && break
9786
if test "x$ac_ct_AR" = x; then
9789
case $cross_compiling:$ac_tool_warned in
9791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9793
ac_tool_warned=yes ;;
9812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9813
$as_echo_n "checking for archiver @FILE support... " >&6; }
9814
if ${lt_cv_ar_at_file+:} false; then :
9815
$as_echo_n "(cached) " >&6
9818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819
/* end confdefs.h. */
9829
if ac_fn_c_try_compile "$LINENO"; then :
9830
echo conftest.$ac_objext > conftest.lst
9831
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9832
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9833
(eval $lt_ar_try) 2>&5
9835
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9836
test $ac_status = 0; }
9837
if test "$ac_status" -eq 0; then
9838
# Ensure the archiver fails upon bogus file names.
9839
rm -f conftest.$ac_objext libconftest.a
9840
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9841
(eval $lt_ar_try) 2>&5
9843
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844
test $ac_status = 0; }
9845
if test "$ac_status" -ne 0; then
9849
rm -f conftest.* libconftest.a
9852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9856
$as_echo "$lt_cv_ar_at_file" >&6; }
9858
if test "x$lt_cv_ar_at_file" = xno; then
9861
archiver_list_spec=$lt_cv_ar_at_file
9870
if test -n "$ac_tool_prefix"; then
9871
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9872
set dummy ${ac_tool_prefix}strip; ac_word=$2
9873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874
$as_echo_n "checking for $ac_word... " >&6; }
9875
if ${ac_cv_prog_STRIP+:} false; then :
9876
$as_echo_n "(cached) " >&6
9878
if test -n "$STRIP"; then
9879
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885
test -z "$as_dir" && as_dir=.
9886
for ac_exec_ext in '' $ac_executable_extensions; do
9887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9889
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898
STRIP=$ac_cv_prog_STRIP
9899
if test -n "$STRIP"; then
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9901
$as_echo "$STRIP" >&6; }
9903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904
$as_echo "no" >&6; }
9909
if test -z "$ac_cv_prog_STRIP"; then
9911
# Extract the first word of "strip", so it can be a program name with args.
9912
set dummy strip; ac_word=$2
9913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914
$as_echo_n "checking for $ac_word... " >&6; }
9915
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9916
$as_echo_n "(cached) " >&6
9918
if test -n "$ac_ct_STRIP"; then
9919
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925
test -z "$as_dir" && as_dir=.
9926
for ac_exec_ext in '' $ac_executable_extensions; do
9927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928
ac_cv_prog_ac_ct_STRIP="strip"
9929
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9939
if test -n "$ac_ct_STRIP"; then
9940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9941
$as_echo "$ac_ct_STRIP" >&6; }
9943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944
$as_echo "no" >&6; }
9947
if test "x$ac_ct_STRIP" = x; then
9950
case $cross_compiling:$ac_tool_warned in
9952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9953
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9954
ac_tool_warned=yes ;;
9959
STRIP="$ac_cv_prog_STRIP"
9962
test -z "$STRIP" && STRIP=:
9969
if test -n "$ac_tool_prefix"; then
9970
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9971
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973
$as_echo_n "checking for $ac_word... " >&6; }
9974
if ${ac_cv_prog_RANLIB+:} false; then :
9975
$as_echo_n "(cached) " >&6
9977
if test -n "$RANLIB"; then
9978
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984
test -z "$as_dir" && as_dir=.
9985
for ac_exec_ext in '' $ac_executable_extensions; do
9986
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9988
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997
RANLIB=$ac_cv_prog_RANLIB
9998
if test -n "$RANLIB"; then
9999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10000
$as_echo "$RANLIB" >&6; }
10002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003
$as_echo "no" >&6; }
10008
if test -z "$ac_cv_prog_RANLIB"; then
10009
ac_ct_RANLIB=$RANLIB
10010
# Extract the first word of "ranlib", so it can be a program name with args.
10011
set dummy ranlib; ac_word=$2
10012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013
$as_echo_n "checking for $ac_word... " >&6; }
10014
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10015
$as_echo_n "(cached) " >&6
10017
if test -n "$ac_ct_RANLIB"; then
10018
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021
for as_dir in $PATH
10024
test -z "$as_dir" && as_dir=.
10025
for ac_exec_ext in '' $ac_executable_extensions; do
10026
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027
ac_cv_prog_ac_ct_RANLIB="ranlib"
10028
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10038
if test -n "$ac_ct_RANLIB"; then
10039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10040
$as_echo "$ac_ct_RANLIB" >&6; }
10042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043
$as_echo "no" >&6; }
10046
if test "x$ac_ct_RANLIB" = x; then
10049
case $cross_compiling:$ac_tool_warned in
10051
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10052
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10053
ac_tool_warned=yes ;;
10055
RANLIB=$ac_ct_RANLIB
10058
RANLIB="$ac_cv_prog_RANLIB"
10061
test -z "$RANLIB" && RANLIB=:
10068
# Determine commands to create old-style static archives.
10069
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10070
old_postinstall_cmds='chmod 644 $oldlib'
10071
old_postuninstall_cmds=
10073
if test -n "$RANLIB"; then
10076
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10079
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10082
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10087
lock_old_archive_extraction=yes ;;
10089
lock_old_archive_extraction=no ;;
10130
# If no C compiler was specified, use CC.
10133
# If no C compiler flags were specified, use CFLAGS.
10134
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10136
# Allow CC to be a program name with arguments.
10140
# Check for command to grab the raw symbol name followed by C symbol from nm.
10141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10142
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10143
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10144
$as_echo_n "(cached) " >&6
10147
# These are sane defaults that work on at least a few old systems.
10148
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10150
# Character class describing NM global symbol codes.
10151
symcode='[BCDEGRST]'
10153
# Regexp to match symbols that can be accessed directly from C.
10154
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10156
# Define system-specific variables.
10161
cygwin* | mingw* | pw32* | cegcc*)
10162
symcode='[ABCDGISTW]'
10165
if test "$host_cpu" = ia64; then
10166
symcode='[ABCDEGRST]'
10169
irix* | nonstopux*)
10170
symcode='[BCDEGRST]'
10173
symcode='[BCDEGQRST]'
10184
sysv5* | sco5v6* | unixware* | OpenUNIX*)
10192
# If we're using GNU nm, then use its standard symbol codes.
10193
case `$NM -V 2>&1` in
10194
*GNU* | *'with BFD'*)
10195
symcode='[ABCDGIRSTW]' ;;
10198
# Transform an extracted symbol line into a proper C declaration.
10199
# Some systems (esp. on ia64) link data and code symbols differently,
10200
# so use this general approach.
10201
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10203
# Transform an extracted symbol line into symbol name and symbol address
10204
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10205
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'"
10207
# Handle CRLF in mingw tool chain
10211
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10215
# Try without a prefix underscore, then with it.
10216
for ac_symprfx in "" "_"; do
10218
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10219
symxfrm="\\1 $ac_symprfx\\2 \\2"
10221
# Write the raw and C identifiers.
10222
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10223
# Fake it for dumpbin and say T for any non-static function
10224
# and D for any global variable.
10225
# Also find C++ and __fastcall symbols from MSVC++,
10226
# which start with @ or ?.
10227
lt_cv_sys_global_symbol_pipe="$AWK '"\
10228
" {last_section=section; section=\$ 3};"\
10229
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10230
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10231
" \$ 0!~/External *\|/{next};"\
10232
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10233
" {if(hide[section]) next};"\
10234
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10235
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10236
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10237
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10238
" ' prfx=^$ac_symprfx"
10240
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10242
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10244
# Check to see that the pipe works correctly.
10248
cat > conftest.$ac_ext <<_LT_EOF
10253
void nm_test_func(void);
10254
void nm_test_func(void){}
10258
int main(){nm_test_var='a';nm_test_func();return(0);}
10261
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10262
(eval $ac_compile) 2>&5
10264
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265
test $ac_status = 0; }; then
10266
# Now try to grab the symbols.
10268
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10269
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10271
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10272
test $ac_status = 0; } && test -s "$nlist"; then
10273
# Try sorting and uniquifying the output.
10274
if sort "$nlist" | uniq > "$nlist"T; then
10275
mv -f "$nlist"T "$nlist"
10280
# Make sure that we snagged all the symbols we need.
10281
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10282
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10283
cat <<_LT_EOF > conftest.$ac_ext
10284
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10285
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10286
/* DATA imports from DLLs on WIN32 con't be const, because runtime
10287
relocations are performed -- see ld's documentation on pseudo-relocs. */
10288
# define LT_DLSYM_CONST
10289
#elif defined(__osf__)
10290
/* This system does not cope well with relocations in const data. */
10291
# define LT_DLSYM_CONST
10293
# define LT_DLSYM_CONST const
10301
# Now generate the symbol file.
10302
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10304
cat <<_LT_EOF >> conftest.$ac_ext
10306
/* The mapping between symbol names and symbols. */
10307
LT_DLSYM_CONST struct {
10311
lt__PROGRAM__LTX_preloaded_symbols[] =
10313
{ "@PROGRAM@", (void *) 0 },
10315
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10316
cat <<\_LT_EOF >> conftest.$ac_ext
10320
/* This works around a problem in FreeBSD linker */
10321
#ifdef FREEBSD_WORKAROUND
10322
static const void *lt_preloaded_setup() {
10323
return lt__PROGRAM__LTX_preloaded_symbols;
10331
# Now try linking the two files.
10332
mv conftest.$ac_objext conftstm.$ac_objext
10333
lt_globsym_save_LIBS=$LIBS
10334
lt_globsym_save_CFLAGS=$CFLAGS
10335
LIBS="conftstm.$ac_objext"
10336
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10337
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10338
(eval $ac_link) 2>&5
10340
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10344
LIBS=$lt_globsym_save_LIBS
10345
CFLAGS=$lt_globsym_save_CFLAGS
10347
echo "cannot find nm_test_func in $nlist" >&5
10350
echo "cannot find nm_test_var in $nlist" >&5
10353
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10356
echo "$progname: failed program was:" >&5
10357
cat conftest.$ac_ext >&5
10359
rm -rf conftest* conftst*
10361
# Do not use the global_symbol_pipe unless it works.
10362
if test "$pipe_works" = yes; then
10365
lt_cv_sys_global_symbol_pipe=
10371
if test -z "$lt_cv_sys_global_symbol_pipe"; then
10372
lt_cv_sys_global_symbol_to_cdecl=
10374
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10376
$as_echo "failed" >&6; }
10378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10379
$as_echo "ok" >&6; }
10382
# Response file support.
10383
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10384
nm_file_list_spec='@'
10385
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10386
nm_file_list_spec='@'
10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10416
$as_echo_n "checking for sysroot... " >&6; }
10418
# Check whether --with-sysroot was given.
10419
if test "${with_sysroot+set}" = set; then :
10420
withval=$with_sysroot;
10427
case ${with_sysroot} in #(
10429
if test "$GCC" = yes; then
10430
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10434
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
10440
$as_echo "${with_sysroot}" >&6; }
10441
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10446
$as_echo "${lt_sysroot:-no}" >&6; }
10452
# Check whether --enable-libtool-lock was given.
10453
if test "${enable_libtool_lock+set}" = set; then :
10454
enableval=$enable_libtool_lock;
10457
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10459
# Some flags need to be propagated to the compiler or linker for good
10463
# Find out which ABI we are using.
10464
echo 'int i;' > conftest.$ac_ext
10465
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10466
(eval $ac_compile) 2>&5
10468
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10469
test $ac_status = 0; }; then
10470
case `/usr/bin/file conftest.$ac_objext` in
10472
HPUX_IA64_MODE="32"
10475
HPUX_IA64_MODE="64"
10482
# Find out which ABI we are using.
10483
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10484
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10485
(eval $ac_compile) 2>&5
10487
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488
test $ac_status = 0; }; then
10489
if test "$lt_cv_prog_gnu_ld" = yes; then
10490
case `/usr/bin/file conftest.$ac_objext` in
10492
LD="${LD-ld} -melf32bsmip"
10495
LD="${LD-ld} -melf32bmipn32"
10498
LD="${LD-ld} -melf64bmip"
10502
case `/usr/bin/file conftest.$ac_objext` in
10518
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10519
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10520
# Find out which ABI we are using.
10521
echo 'int i;' > conftest.$ac_ext
10522
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10523
(eval $ac_compile) 2>&5
10525
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526
test $ac_status = 0; }; then
10527
case `/usr/bin/file conftest.o` in
10530
x86_64-*kfreebsd*-gnu)
10531
LD="${LD-ld} -m elf_i386_fbsd"
10534
LD="${LD-ld} -m elf_i386"
10536
ppc64-*linux*|powerpc64-*linux*)
10537
LD="${LD-ld} -m elf32ppclinux"
10540
LD="${LD-ld} -m elf_s390"
10543
LD="${LD-ld} -m elf32_sparc"
10549
x86_64-*kfreebsd*-gnu)
10550
LD="${LD-ld} -m elf_x86_64_fbsd"
10553
LD="${LD-ld} -m elf_x86_64"
10555
ppc*-*linux*|powerpc*-*linux*)
10556
LD="${LD-ld} -m elf64ppc"
10558
s390*-*linux*|s390*-*tpf*)
10559
LD="${LD-ld} -m elf64_s390"
10562
LD="${LD-ld} -m elf64_sparc"
10572
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
10573
SAVE_CFLAGS="$CFLAGS"
10574
CFLAGS="$CFLAGS -belf"
10575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10576
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10577
if ${lt_cv_cc_needs_belf+:} false; then :
10578
$as_echo_n "(cached) " >&6
10581
ac_cpp='$CPP $CPPFLAGS'
10582
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587
/* end confdefs.h. */
10597
if ac_fn_c_try_link "$LINENO"; then :
10598
lt_cv_cc_needs_belf=yes
10600
lt_cv_cc_needs_belf=no
10602
rm -f core conftest.err conftest.$ac_objext \
10603
conftest$ac_exeext conftest.$ac_ext
10605
ac_cpp='$CPP $CPPFLAGS'
10606
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10612
$as_echo "$lt_cv_cc_needs_belf" >&6; }
10613
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10614
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10615
CFLAGS="$SAVE_CFLAGS"
10619
# Find out which ABI we are using.
10620
echo 'int i;' > conftest.$ac_ext
10621
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10622
(eval $ac_compile) 2>&5
10624
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10625
test $ac_status = 0; }; then
10626
case `/usr/bin/file conftest.o` in
10628
case $lt_cv_prog_gnu_ld in
10632
LD="${LD-ld} -m elf_x86_64"
10635
LD="${LD-ld} -m elf64_sparc"
10638
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10639
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10644
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10656
need_locks="$enable_libtool_lock"
10658
if test -n "$ac_tool_prefix"; then
10659
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10660
set dummy ${ac_tool_prefix}mt; ac_word=$2
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662
$as_echo_n "checking for $ac_word... " >&6; }
10663
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10664
$as_echo_n "(cached) " >&6
10666
if test -n "$MANIFEST_TOOL"; then
10667
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670
for as_dir in $PATH
10673
test -z "$as_dir" && as_dir=.
10674
for ac_exec_ext in '' $ac_executable_extensions; do
10675
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10677
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10687
if test -n "$MANIFEST_TOOL"; then
10688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10689
$as_echo "$MANIFEST_TOOL" >&6; }
10691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692
$as_echo "no" >&6; }
10697
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10698
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10699
# Extract the first word of "mt", so it can be a program name with args.
10700
set dummy mt; ac_word=$2
10701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10702
$as_echo_n "checking for $ac_word... " >&6; }
10703
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10704
$as_echo_n "(cached) " >&6
10706
if test -n "$ac_ct_MANIFEST_TOOL"; then
10707
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710
for as_dir in $PATH
10713
test -z "$as_dir" && as_dir=.
10714
for ac_exec_ext in '' $ac_executable_extensions; do
10715
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10716
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10717
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10727
if test -n "$ac_ct_MANIFEST_TOOL"; then
10728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10729
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732
$as_echo "no" >&6; }
10735
if test "x$ac_ct_MANIFEST_TOOL" = x; then
10738
case $cross_compiling:$ac_tool_warned in
10740
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10741
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10742
ac_tool_warned=yes ;;
10744
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10747
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10750
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10752
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10753
if ${lt_cv_path_mainfest_tool+:} false; then :
10754
$as_echo_n "(cached) " >&6
10756
lt_cv_path_mainfest_tool=no
10757
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10758
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10759
cat conftest.err >&5
10760
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10761
lt_cv_path_mainfest_tool=yes
10765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10766
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10767
if test "x$lt_cv_path_mainfest_tool" != xyes; then
10777
rhapsody* | darwin*)
10778
if test -n "$ac_tool_prefix"; then
10779
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10780
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782
$as_echo_n "checking for $ac_word... " >&6; }
10783
if ${ac_cv_prog_DSYMUTIL+:} false; then :
10784
$as_echo_n "(cached) " >&6
10786
if test -n "$DSYMUTIL"; then
10787
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790
for as_dir in $PATH
10793
test -z "$as_dir" && as_dir=.
10794
for ac_exec_ext in '' $ac_executable_extensions; do
10795
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10796
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10797
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806
DSYMUTIL=$ac_cv_prog_DSYMUTIL
10807
if test -n "$DSYMUTIL"; then
10808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10809
$as_echo "$DSYMUTIL" >&6; }
10811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812
$as_echo "no" >&6; }
10817
if test -z "$ac_cv_prog_DSYMUTIL"; then
10818
ac_ct_DSYMUTIL=$DSYMUTIL
10819
# Extract the first word of "dsymutil", so it can be a program name with args.
10820
set dummy dsymutil; ac_word=$2
10821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822
$as_echo_n "checking for $ac_word... " >&6; }
10823
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10824
$as_echo_n "(cached) " >&6
10826
if test -n "$ac_ct_DSYMUTIL"; then
10827
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830
for as_dir in $PATH
10833
test -z "$as_dir" && as_dir=.
10834
for ac_exec_ext in '' $ac_executable_extensions; do
10835
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10836
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10837
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10847
if test -n "$ac_ct_DSYMUTIL"; then
10848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10849
$as_echo "$ac_ct_DSYMUTIL" >&6; }
10851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852
$as_echo "no" >&6; }
10855
if test "x$ac_ct_DSYMUTIL" = x; then
10858
case $cross_compiling:$ac_tool_warned in
10860
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10861
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10862
ac_tool_warned=yes ;;
10864
DSYMUTIL=$ac_ct_DSYMUTIL
10867
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10870
if test -n "$ac_tool_prefix"; then
10871
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10872
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874
$as_echo_n "checking for $ac_word... " >&6; }
10875
if ${ac_cv_prog_NMEDIT+:} false; then :
10876
$as_echo_n "(cached) " >&6
10878
if test -n "$NMEDIT"; then
10879
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882
for as_dir in $PATH
10885
test -z "$as_dir" && as_dir=.
10886
for ac_exec_ext in '' $ac_executable_extensions; do
10887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10889
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898
NMEDIT=$ac_cv_prog_NMEDIT
10899
if test -n "$NMEDIT"; then
10900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10901
$as_echo "$NMEDIT" >&6; }
10903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904
$as_echo "no" >&6; }
10909
if test -z "$ac_cv_prog_NMEDIT"; then
10910
ac_ct_NMEDIT=$NMEDIT
10911
# Extract the first word of "nmedit", so it can be a program name with args.
10912
set dummy nmedit; ac_word=$2
10913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914
$as_echo_n "checking for $ac_word... " >&6; }
10915
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10916
$as_echo_n "(cached) " >&6
10918
if test -n "$ac_ct_NMEDIT"; then
10919
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922
for as_dir in $PATH
10925
test -z "$as_dir" && as_dir=.
10926
for ac_exec_ext in '' $ac_executable_extensions; do
10927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928
ac_cv_prog_ac_ct_NMEDIT="nmedit"
10929
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10939
if test -n "$ac_ct_NMEDIT"; then
10940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10941
$as_echo "$ac_ct_NMEDIT" >&6; }
10943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944
$as_echo "no" >&6; }
10947
if test "x$ac_ct_NMEDIT" = x; then
10950
case $cross_compiling:$ac_tool_warned in
10952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10953
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10954
ac_tool_warned=yes ;;
10956
NMEDIT=$ac_ct_NMEDIT
10959
NMEDIT="$ac_cv_prog_NMEDIT"
10962
if test -n "$ac_tool_prefix"; then
10963
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10964
set dummy ${ac_tool_prefix}lipo; ac_word=$2
10965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10966
$as_echo_n "checking for $ac_word... " >&6; }
10967
if ${ac_cv_prog_LIPO+:} false; then :
10968
$as_echo_n "(cached) " >&6
10970
if test -n "$LIPO"; then
10971
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974
for as_dir in $PATH
10977
test -z "$as_dir" && as_dir=.
10978
for ac_exec_ext in '' $ac_executable_extensions; do
10979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10981
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990
LIPO=$ac_cv_prog_LIPO
10991
if test -n "$LIPO"; then
10992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10993
$as_echo "$LIPO" >&6; }
10995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996
$as_echo "no" >&6; }
11001
if test -z "$ac_cv_prog_LIPO"; then
11003
# Extract the first word of "lipo", so it can be a program name with args.
11004
set dummy lipo; ac_word=$2
11005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006
$as_echo_n "checking for $ac_word... " >&6; }
11007
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11008
$as_echo_n "(cached) " >&6
11010
if test -n "$ac_ct_LIPO"; then
11011
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014
for as_dir in $PATH
11017
test -z "$as_dir" && as_dir=.
11018
for ac_exec_ext in '' $ac_executable_extensions; do
11019
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11020
ac_cv_prog_ac_ct_LIPO="lipo"
11021
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11031
if test -n "$ac_ct_LIPO"; then
11032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11033
$as_echo "$ac_ct_LIPO" >&6; }
11035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036
$as_echo "no" >&6; }
11039
if test "x$ac_ct_LIPO" = x; then
11042
case $cross_compiling:$ac_tool_warned in
11044
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11045
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11046
ac_tool_warned=yes ;;
11051
LIPO="$ac_cv_prog_LIPO"
11054
if test -n "$ac_tool_prefix"; then
11055
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11056
set dummy ${ac_tool_prefix}otool; ac_word=$2
11057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058
$as_echo_n "checking for $ac_word... " >&6; }
11059
if ${ac_cv_prog_OTOOL+:} false; then :
11060
$as_echo_n "(cached) " >&6
11062
if test -n "$OTOOL"; then
11063
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066
for as_dir in $PATH
11069
test -z "$as_dir" && as_dir=.
11070
for ac_exec_ext in '' $ac_executable_extensions; do
11071
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11073
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082
OTOOL=$ac_cv_prog_OTOOL
11083
if test -n "$OTOOL"; then
11084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11085
$as_echo "$OTOOL" >&6; }
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088
$as_echo "no" >&6; }
11093
if test -z "$ac_cv_prog_OTOOL"; then
11095
# Extract the first word of "otool", so it can be a program name with args.
11096
set dummy otool; ac_word=$2
11097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098
$as_echo_n "checking for $ac_word... " >&6; }
11099
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11100
$as_echo_n "(cached) " >&6
11102
if test -n "$ac_ct_OTOOL"; then
11103
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106
for as_dir in $PATH
11109
test -z "$as_dir" && as_dir=.
11110
for ac_exec_ext in '' $ac_executable_extensions; do
11111
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112
ac_cv_prog_ac_ct_OTOOL="otool"
11113
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11123
if test -n "$ac_ct_OTOOL"; then
11124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11125
$as_echo "$ac_ct_OTOOL" >&6; }
11127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128
$as_echo "no" >&6; }
11131
if test "x$ac_ct_OTOOL" = x; then
11134
case $cross_compiling:$ac_tool_warned in
11136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11138
ac_tool_warned=yes ;;
11143
OTOOL="$ac_cv_prog_OTOOL"
11146
if test -n "$ac_tool_prefix"; then
11147
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11148
set dummy ${ac_tool_prefix}otool64; ac_word=$2
11149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150
$as_echo_n "checking for $ac_word... " >&6; }
11151
if ${ac_cv_prog_OTOOL64+:} false; then :
11152
$as_echo_n "(cached) " >&6
11154
if test -n "$OTOOL64"; then
11155
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158
for as_dir in $PATH
11161
test -z "$as_dir" && as_dir=.
11162
for ac_exec_ext in '' $ac_executable_extensions; do
11163
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11165
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11174
OTOOL64=$ac_cv_prog_OTOOL64
11175
if test -n "$OTOOL64"; then
11176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11177
$as_echo "$OTOOL64" >&6; }
11179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180
$as_echo "no" >&6; }
11185
if test -z "$ac_cv_prog_OTOOL64"; then
11186
ac_ct_OTOOL64=$OTOOL64
11187
# Extract the first word of "otool64", so it can be a program name with args.
11188
set dummy otool64; ac_word=$2
11189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190
$as_echo_n "checking for $ac_word... " >&6; }
11191
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11192
$as_echo_n "(cached) " >&6
11194
if test -n "$ac_ct_OTOOL64"; then
11195
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198
for as_dir in $PATH
11201
test -z "$as_dir" && as_dir=.
11202
for ac_exec_ext in '' $ac_executable_extensions; do
11203
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204
ac_cv_prog_ac_ct_OTOOL64="otool64"
11205
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11215
if test -n "$ac_ct_OTOOL64"; then
11216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11217
$as_echo "$ac_ct_OTOOL64" >&6; }
11219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220
$as_echo "no" >&6; }
11223
if test "x$ac_ct_OTOOL64" = x; then
11226
case $cross_compiling:$ac_tool_warned in
11228
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11229
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11230
ac_tool_warned=yes ;;
11232
OTOOL64=$ac_ct_OTOOL64
11235
OTOOL64="$ac_cv_prog_OTOOL64"
11264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11265
$as_echo_n "checking for -single_module linker flag... " >&6; }
11266
if ${lt_cv_apple_cc_single_mod+:} false; then :
11267
$as_echo_n "(cached) " >&6
11269
lt_cv_apple_cc_single_mod=no
11270
if test -z "${LT_MULTI_MODULE}"; then
11271
# By default we will add the -single_module flag. You can override
11272
# by either setting the environment variable LT_MULTI_MODULE
11273
# non-empty at configure time, or by adding -multi_module to the
11275
rm -rf libconftest.dylib*
11276
echo "int foo(void){return 1;}" > conftest.c
11277
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11278
-dynamiclib -Wl,-single_module conftest.c" >&5
11279
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11280
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11282
# If there is a non-empty error log, and "single_module"
11283
# appears in it, assume the flag caused a linker warning
11284
if test -s conftest.err && $GREP single_module conftest.err; then
11285
cat conftest.err >&5
11286
# Otherwise, if the output was created with a 0 exit code from
11287
# the compiler, it worked.
11288
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11289
lt_cv_apple_cc_single_mod=yes
11291
cat conftest.err >&5
11293
rm -rf libconftest.dylib*
11297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11298
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11301
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11302
if ${lt_cv_ld_exported_symbols_list+:} false; then :
11303
$as_echo_n "(cached) " >&6
11305
lt_cv_ld_exported_symbols_list=no
11306
save_LDFLAGS=$LDFLAGS
11307
echo "_main" > conftest.sym
11308
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310
/* end confdefs.h. */
11320
if ac_fn_c_try_link "$LINENO"; then :
11321
lt_cv_ld_exported_symbols_list=yes
11323
lt_cv_ld_exported_symbols_list=no
11325
rm -f core conftest.err conftest.$ac_objext \
11326
conftest$ac_exeext conftest.$ac_ext
11327
LDFLAGS="$save_LDFLAGS"
11330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11331
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11334
$as_echo_n "checking for -force_load linker flag... " >&6; }
11335
if ${lt_cv_ld_force_load+:} false; then :
11336
$as_echo_n "(cached) " >&6
11338
lt_cv_ld_force_load=no
11339
cat > conftest.c << _LT_EOF
11340
int forced_loaded() { return 2;}
11342
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11343
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11344
echo "$AR cru libconftest.a conftest.o" >&5
11345
$AR cru libconftest.a conftest.o 2>&5
11346
echo "$RANLIB libconftest.a" >&5
11347
$RANLIB libconftest.a 2>&5
11348
cat > conftest.c << _LT_EOF
11349
int main() { return 0;}
11351
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11352
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11354
if test -s conftest.err && $GREP force_load conftest.err; then
11355
cat conftest.err >&5
11356
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
11357
lt_cv_ld_force_load=yes
11359
cat conftest.err >&5
11361
rm -f conftest.err libconftest.a conftest conftest.c
11362
rm -rf conftest.dSYM
11365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11366
$as_echo "$lt_cv_ld_force_load" >&6; }
11368
rhapsody* | darwin1.[012])
11369
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11371
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11372
darwin*) # darwin 5.x on
11373
# if running on 10.5 or later, the deployment target defaults
11374
# to the OS version, if on x86, and 10.4, the deployment
11375
# target defaults to 10.4. Don't you love it?
11376
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11377
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11378
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11380
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11382
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11386
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11387
_lt_dar_single_mod='$single_module'
11389
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11390
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11392
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11394
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11395
_lt_dsymutil='~$DSYMUTIL $lib || :'
11403
ac_cpp='$CPP $CPPFLAGS'
11404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11408
$as_echo_n "checking how to run the C preprocessor... " >&6; }
11409
# On Suns, sometimes $CPP names a directory.
11410
if test -n "$CPP" && test -d "$CPP"; then
11413
if test -z "$CPP"; then
11414
if ${ac_cv_prog_CPP+:} false; then :
11415
$as_echo_n "(cached) " >&6
11417
# Double quotes because CPP needs to be expanded
11418
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11420
ac_preproc_ok=false
11421
for ac_c_preproc_warn_flag in '' yes
11423
# Use a header file that comes with gcc, so configuring glibc
11424
# with a fresh cross-compiler works.
11425
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426
# <limits.h> exists even on freestanding compilers.
11427
# On the NeXT, cc -E runs the code through the compiler's parser,
11428
# not just through cpp. "Syntax error" is here to catch this case.
11429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430
/* end confdefs.h. */
11432
# include <limits.h>
11434
# include <assert.h>
11438
if ac_fn_c_try_cpp "$LINENO"; then :
11441
# Broken: fails on valid input.
11444
rm -f conftest.err conftest.i conftest.$ac_ext
11446
# OK, works on sane cases. Now check whether nonexistent headers
11447
# can be detected and how.
11448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449
/* end confdefs.h. */
11450
#include <ac_nonexistent.h>
11452
if ac_fn_c_try_cpp "$LINENO"; then :
11453
# Broken: success on invalid input.
11456
# Passes both tests.
11460
rm -f conftest.err conftest.i conftest.$ac_ext
11463
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11464
rm -f conftest.i conftest.err conftest.$ac_ext
11465
if $ac_preproc_ok; then :
11470
ac_cv_prog_CPP=$CPP
11473
CPP=$ac_cv_prog_CPP
11475
ac_cv_prog_CPP=$CPP
11477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11478
$as_echo "$CPP" >&6; }
11479
ac_preproc_ok=false
11480
for ac_c_preproc_warn_flag in '' yes
11482
# Use a header file that comes with gcc, so configuring glibc
11483
# with a fresh cross-compiler works.
11484
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11485
# <limits.h> exists even on freestanding compilers.
11486
# On the NeXT, cc -E runs the code through the compiler's parser,
11487
# not just through cpp. "Syntax error" is here to catch this case.
11488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489
/* end confdefs.h. */
11491
# include <limits.h>
11493
# include <assert.h>
11497
if ac_fn_c_try_cpp "$LINENO"; then :
11500
# Broken: fails on valid input.
11503
rm -f conftest.err conftest.i conftest.$ac_ext
11505
# OK, works on sane cases. Now check whether nonexistent headers
11506
# can be detected and how.
11507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508
/* end confdefs.h. */
11509
#include <ac_nonexistent.h>
11511
if ac_fn_c_try_cpp "$LINENO"; then :
11512
# Broken: success on invalid input.
11515
# Passes both tests.
11519
rm -f conftest.err conftest.i conftest.$ac_ext
11522
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11523
rm -f conftest.i conftest.err conftest.$ac_ext
11524
if $ac_preproc_ok; then :
11527
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11528
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11529
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11530
See \`config.log' for more details" "$LINENO" 5; }
11534
ac_cpp='$CPP $CPPFLAGS'
11535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11541
$as_echo_n "checking for ANSI C header files... " >&6; }
11542
if ${ac_cv_header_stdc+:} false; then :
11543
$as_echo_n "(cached) " >&6
11545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546
/* end confdefs.h. */
11547
#include <stdlib.h>
11548
#include <stdarg.h>
11549
#include <string.h>
11560
if ac_fn_c_try_compile "$LINENO"; then :
11561
ac_cv_header_stdc=yes
11563
ac_cv_header_stdc=no
11565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567
if test $ac_cv_header_stdc = yes; then
11568
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570
/* end confdefs.h. */
11571
#include <string.h>
11574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11575
$EGREP "memchr" >/dev/null 2>&1; then :
11578
ac_cv_header_stdc=no
11584
if test $ac_cv_header_stdc = yes; then
11585
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587
/* end confdefs.h. */
11588
#include <stdlib.h>
11591
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11592
$EGREP "free" >/dev/null 2>&1; then :
11595
ac_cv_header_stdc=no
11601
if test $ac_cv_header_stdc = yes; then
11602
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11603
if test "$cross_compiling" = yes; then :
11606
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607
/* end confdefs.h. */
11609
#include <stdlib.h>
11610
#if ((' ' & 0x0FF) == 0x020)
11611
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11612
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11614
# define ISLOWER(c) \
11615
(('a' <= (c) && (c) <= 'i') \
11616
|| ('j' <= (c) && (c) <= 'r') \
11617
|| ('s' <= (c) && (c) <= 'z'))
11618
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11621
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11626
for (i = 0; i < 256; i++)
11627
if (XOR (islower (i), ISLOWER (i))
11628
|| toupper (i) != TOUPPER (i))
11633
if ac_fn_c_try_run "$LINENO"; then :
11636
ac_cv_header_stdc=no
11638
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11639
conftest.$ac_objext conftest.beam conftest.$ac_ext
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11645
$as_echo "$ac_cv_header_stdc" >&6; }
11646
if test $ac_cv_header_stdc = yes; then
11648
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11652
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11653
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11654
inttypes.h stdint.h unistd.h
11656
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11657
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11659
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11660
cat >>confdefs.h <<_ACEOF
11661
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11669
for ac_header in dlfcn.h
11671
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11673
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11674
cat >>confdefs.h <<_ACEOF
11675
#define HAVE_DLFCN_H 1
11687
# Check whether --enable-static was given.
11688
if test "${enable_static+set}" = set; then :
11689
enableval=$enable_static; p=${PACKAGE-default}
11691
yes) enable_static=yes ;;
11692
no) enable_static=no ;;
11695
# Look at the argument we got. We use all the common list separators.
11696
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11697
for pkg in $enableval; do
11699
if test "X$pkg" = "X$p"; then
11722
enable_win32_dll=no
11725
# Check whether --enable-shared was given.
11726
if test "${enable_shared+set}" = set; then :
11727
enableval=$enable_shared; p=${PACKAGE-default}
11729
yes) enable_shared=yes ;;
11730
no) enable_shared=no ;;
11733
# Look at the argument we got. We use all the common list separators.
11734
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11735
for pkg in $enableval; do
11737
if test "X$pkg" = "X$p"; then
11758
# Check whether --with-pic was given.
11759
if test "${with_pic+set}" = set; then :
11760
withval=$with_pic; lt_p=${PACKAGE-default}
11762
yes|no) pic_mode=$withval ;;
11765
# Look at the argument we got. We use all the common list separators.
11766
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11767
for lt_pkg in $withval; do
11769
if test "X$lt_pkg" = "X$lt_p"; then
11781
test -z "$pic_mode" && pic_mode=default
11789
# Check whether --enable-fast-install was given.
11790
if test "${enable_fast_install+set}" = set; then :
11791
enableval=$enable_fast_install; p=${PACKAGE-default}
11793
yes) enable_fast_install=yes ;;
11794
no) enable_fast_install=no ;;
11796
enable_fast_install=no
11797
# Look at the argument we got. We use all the common list separators.
11798
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11799
for pkg in $enableval; do
11801
if test "X$pkg" = "X$p"; then
11802
enable_fast_install=yes
11809
enable_fast_install=yes
11822
# This can be used to rebuild libtool when needed
11823
LIBTOOL_DEPS="$ltmain"
11825
# Always use our own libtool.
11826
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11857
test -z "$LN_S" && LN_S="ln -s"
11872
if test -n "${ZSH_VERSION+set}" ; then
11873
setopt NO_GLOB_SUBST
11876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11877
$as_echo_n "checking for objdir... " >&6; }
11878
if ${lt_cv_objdir+:} false; then :
11879
$as_echo_n "(cached) " >&6
11881
rm -f .libs 2>/dev/null
11882
mkdir .libs 2>/dev/null
11883
if test -d .libs; then
11886
# MS-DOS does not allow filenames that begin with a dot.
11889
rmdir .libs 2>/dev/null
11891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11892
$as_echo "$lt_cv_objdir" >&6; }
11893
objdir=$lt_cv_objdir
11899
cat >>confdefs.h <<_ACEOF
11900
#define LT_OBJDIR "$lt_cv_objdir/"
11908
# AIX sometimes has problems with the GCC collect2 program. For some
11909
# reason, if we set the COLLECT_NAMES environment variable, the problems
11910
# vanish in a puff of smoke.
11911
if test "X${COLLECT_NAMES+set}" != Xset; then
11913
export COLLECT_NAMES
11918
# Global variables:
11920
can_build_shared=yes
11922
# All known linkers require a `.a' archive for static linking (except MSVC,
11923
# which needs '.lib').
11926
with_gnu_ld="$lt_cv_prog_gnu_ld"
11929
old_CFLAGS="$CFLAGS"
11931
# Set sane defaults for various variables
11932
test -z "$CC" && CC=cc
11933
test -z "$LTCC" && LTCC=$CC
11934
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11935
test -z "$LD" && LD=ld
11936
test -z "$ac_objext" && ac_objext=o
11938
for cc_temp in $compiler""; do
11940
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11941
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11946
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11949
# Only perform the check for file, if the check method requires it
11950
test -z "$MAGIC_CMD" && MAGIC_CMD=file
11951
case $deplibs_check_method in
11953
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11955
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11956
if ${lt_cv_path_MAGIC_CMD+:} false; then :
11957
$as_echo_n "(cached) " >&6
11961
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11964
lt_save_MAGIC_CMD="$MAGIC_CMD"
11965
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11966
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11967
for ac_dir in $ac_dummy; do
11969
test -z "$ac_dir" && ac_dir=.
11970
if test -f $ac_dir/${ac_tool_prefix}file; then
11971
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11972
if test -n "$file_magic_test_file"; then
11973
case $deplibs_check_method in
11975
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11976
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11977
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11978
$EGREP "$file_magic_regex" > /dev/null; then
11983
*** Warning: the command libtool uses to detect shared libraries,
11984
*** $file_magic_cmd, produces output that libtool cannot recognize.
11985
*** The result is that libtool may fail to recognize shared libraries
11986
*** as such. This will affect the creation of libtool libraries that
11987
*** depend on shared libraries, but programs linked with such libtool
11988
*** libraries will work regardless of this problem. Nevertheless, you
11989
*** may want to report the problem to your system manager and/or to
11990
*** bug-libtool@gnu.org
12000
MAGIC_CMD="$lt_save_MAGIC_CMD"
12005
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12006
if test -n "$MAGIC_CMD"; then
12007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12008
$as_echo "$MAGIC_CMD" >&6; }
12010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011
$as_echo "no" >&6; }
12018
if test -z "$lt_cv_path_MAGIC_CMD"; then
12019
if test -n "$ac_tool_prefix"; then
12020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12021
$as_echo_n "checking for file... " >&6; }
12022
if ${lt_cv_path_MAGIC_CMD+:} false; then :
12023
$as_echo_n "(cached) " >&6
12027
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12030
lt_save_MAGIC_CMD="$MAGIC_CMD"
12031
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12032
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12033
for ac_dir in $ac_dummy; do
12035
test -z "$ac_dir" && ac_dir=.
12036
if test -f $ac_dir/file; then
12037
lt_cv_path_MAGIC_CMD="$ac_dir/file"
12038
if test -n "$file_magic_test_file"; then
12039
case $deplibs_check_method in
12041
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12042
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12043
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12044
$EGREP "$file_magic_regex" > /dev/null; then
12049
*** Warning: the command libtool uses to detect shared libraries,
12050
*** $file_magic_cmd, produces output that libtool cannot recognize.
12051
*** The result is that libtool may fail to recognize shared libraries
12052
*** as such. This will affect the creation of libtool libraries that
12053
*** depend on shared libraries, but programs linked with such libtool
12054
*** libraries will work regardless of this problem. Nevertheless, you
12055
*** may want to report the problem to your system manager and/or to
12056
*** bug-libtool@gnu.org
12066
MAGIC_CMD="$lt_save_MAGIC_CMD"
12071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12072
if test -n "$MAGIC_CMD"; then
12073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12074
$as_echo "$MAGIC_CMD" >&6; }
12076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077
$as_echo "no" >&6; }
12090
# Use C for the default configuration in the libtool script
12094
ac_cpp='$CPP $CPPFLAGS'
12095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
# Source file extension for C test sources.
12103
# Object file extension for compiled C test sources.
12107
# Code to be used in simple compile tests
12108
lt_simple_compile_test_code="int some_variable = 0;"
12110
# Code to be used in simple link tests
12111
lt_simple_link_test_code='int main(){return(0);}'
12119
# If no C compiler was specified, use CC.
12122
# If no C compiler flags were specified, use CFLAGS.
12123
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12125
# Allow CC to be a program name with arguments.
12128
# Save the default compiler, since it gets overwritten when the other
12129
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12130
compiler_DEFAULT=$CC
12132
# save warnings/boilerplate of simple test code
12133
ac_outfile=conftest.$ac_objext
12134
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12135
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12136
_lt_compiler_boilerplate=`cat conftest.err`
12139
ac_outfile=conftest.$ac_objext
12140
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12141
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142
_lt_linker_boilerplate=`cat conftest.err`
12147
## There is no encapsulation within the following macros, do not change
12148
## the running order or otherwise move them around unless you know exactly
12149
## what you are doing...
12150
if test -n "$compiler"; then
12152
lt_prog_compiler_no_builtin_flag=
12154
if test "$GCC" = yes; then
12155
case $cc_basename in
12157
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12159
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12163
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12164
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12165
$as_echo_n "(cached) " >&6
12167
lt_cv_prog_compiler_rtti_exceptions=no
12168
ac_outfile=conftest.$ac_objext
12169
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12170
lt_compiler_flag="-fno-rtti -fno-exceptions"
12171
# Insert the option either (1) after the last *FLAGS variable, or
12172
# (2) before a word containing "conftest.", or (3) at the end.
12173
# Note that $ac_compile itself does not contain backslashes and begins
12174
# with a dollar sign (not a hyphen), so the echo should work correctly.
12175
# The option is referenced via a variable to avoid confusing sed.
12176
lt_compile=`echo "$ac_compile" | $SED \
12177
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12178
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12179
-e 's:$: $lt_compiler_flag:'`
12180
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12181
(eval "$lt_compile" 2>conftest.err)
12183
cat conftest.err >&5
12184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185
if (exit $ac_status) && test -s "$ac_outfile"; then
12186
# The compiler can only warn and ignore the option if not recognized
12187
# So say no if there are warnings other than the usual output.
12188
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12189
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12190
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12191
lt_cv_prog_compiler_rtti_exceptions=yes
12197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12198
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12200
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12201
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12213
lt_prog_compiler_wl=
12214
lt_prog_compiler_pic=
12215
lt_prog_compiler_static=
12218
if test "$GCC" = yes; then
12219
lt_prog_compiler_wl='-Wl,'
12220
lt_prog_compiler_static='-static'
12224
# All AIX code is PIC.
12225
if test "$host_cpu" = ia64; then
12226
# AIX 5 now supports IA64 processor
12227
lt_prog_compiler_static='-Bstatic'
12234
# see comment about AmigaOS4 .so support
12235
lt_prog_compiler_pic='-fPIC'
12238
# FIXME: we need at least 68020 code to build shared libraries, but
12239
# adding the `-m68020' flag to GCC prevents building anything better,
12241
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12246
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12247
# PIC is the default for these OSes.
12250
mingw* | cygwin* | pw32* | os2* | cegcc*)
12251
# This hack is so that the source file can tell whether it is being
12252
# built for inclusion in a dll (and should export symbols for example).
12253
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12254
# (--disable-auto-import) libraries
12255
lt_prog_compiler_pic='-DDLL_EXPORT'
12258
darwin* | rhapsody*)
12259
# PIC is the default on this platform
12260
# Common symbols not allowed in MH_DYLIB files
12261
lt_prog_compiler_pic='-fno-common'
12265
# PIC is the default for Haiku.
12266
# The "-static" flag exists, but is broken.
12267
lt_prog_compiler_static=
12271
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12272
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12273
# sets the default TLS model and affects inlining.
12279
lt_prog_compiler_pic='-fPIC'
12285
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12286
# Instead, we relocate shared libraries at runtime.
12290
# Just because we use GCC doesn't mean we suddenly get shared libraries
12291
# on systems that don't support them.
12292
lt_prog_compiler_can_build_shared=no
12297
# QNX uses GNU C++, but need to define -shared option too, otherwise
12298
# it will coredump.
12299
lt_prog_compiler_pic='-fPIC -shared'
12303
if test -d /usr/nec; then
12304
lt_prog_compiler_pic=-Kconform_pic
12309
lt_prog_compiler_pic='-fPIC'
12313
case $cc_basename in
12314
nvcc*) # Cuda Compiler Driver 2.2
12315
lt_prog_compiler_wl='-Xlinker '
12316
if test -n "$lt_prog_compiler_pic"; then
12317
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12322
# PORTME Check for flag to pass linker flags through the system compiler.
12325
lt_prog_compiler_wl='-Wl,'
12326
if test "$host_cpu" = ia64; then
12327
# AIX 5 now supports IA64 processor
12328
lt_prog_compiler_static='-Bstatic'
12330
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12334
mingw* | cygwin* | pw32* | os2* | cegcc*)
12335
# This hack is so that the source file can tell whether it is being
12336
# built for inclusion in a dll (and should export symbols for example).
12337
lt_prog_compiler_pic='-DDLL_EXPORT'
12340
hpux9* | hpux10* | hpux11*)
12341
lt_prog_compiler_wl='-Wl,'
12342
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12343
# not for PA HP-UX.
12349
lt_prog_compiler_pic='+Z'
12352
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12353
lt_prog_compiler_static='${wl}-a ${wl}archive'
12356
irix5* | irix6* | nonstopux*)
12357
lt_prog_compiler_wl='-Wl,'
12358
# PIC (with -KPIC) is the default.
12359
lt_prog_compiler_static='-non_shared'
12362
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12363
case $cc_basename in
12364
# old Intel for x86_64 which still supported -KPIC.
12366
lt_prog_compiler_wl='-Wl,'
12367
lt_prog_compiler_pic='-KPIC'
12368
lt_prog_compiler_static='-static'
12370
# icc used to be incompatible with GCC.
12371
# ICC 10 doesn't accept -KPIC any more.
12373
lt_prog_compiler_wl='-Wl,'
12374
lt_prog_compiler_pic='-fPIC'
12375
lt_prog_compiler_static='-static'
12377
# Lahey Fortran 8.1.
12379
lt_prog_compiler_wl='-Wl,'
12380
lt_prog_compiler_pic='--shared'
12381
lt_prog_compiler_static='--static'
12384
# NAG Fortran compiler
12385
lt_prog_compiler_wl='-Wl,-Wl,,'
12386
lt_prog_compiler_pic='-PIC'
12387
lt_prog_compiler_static='-Bstatic'
12389
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12390
# Portland Group compilers (*not* the Pentium gcc compiler,
12391
# which looks to be a dead project)
12392
lt_prog_compiler_wl='-Wl,'
12393
lt_prog_compiler_pic='-fpic'
12394
lt_prog_compiler_static='-Bstatic'
12397
lt_prog_compiler_wl='-Wl,'
12398
# All Alpha code is PIC.
12399
lt_prog_compiler_static='-non_shared'
12401
xl* | bgxl* | bgf* | mpixl*)
12402
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12403
lt_prog_compiler_wl='-Wl,'
12404
lt_prog_compiler_pic='-qpic'
12405
lt_prog_compiler_static='-qstaticlink'
12408
case `$CC -V 2>&1 | sed 5q` in
12409
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12410
# Sun Fortran 8.3 passes all unrecognized flags to the linker
12411
lt_prog_compiler_pic='-KPIC'
12412
lt_prog_compiler_static='-Bstatic'
12413
lt_prog_compiler_wl=''
12415
*Sun\ F* | *Sun*Fortran*)
12416
lt_prog_compiler_pic='-KPIC'
12417
lt_prog_compiler_static='-Bstatic'
12418
lt_prog_compiler_wl='-Qoption ld '
12422
lt_prog_compiler_pic='-KPIC'
12423
lt_prog_compiler_static='-Bstatic'
12424
lt_prog_compiler_wl='-Wl,'
12426
*Intel*\ [CF]*Compiler*)
12427
lt_prog_compiler_wl='-Wl,'
12428
lt_prog_compiler_pic='-fPIC'
12429
lt_prog_compiler_static='-static'
12432
lt_prog_compiler_wl='-Wl,'
12433
lt_prog_compiler_pic='-fpic'
12434
lt_prog_compiler_static='-Bstatic'
12442
lt_prog_compiler_pic='-KPIC'
12443
lt_prog_compiler_static='-Bstatic'
12447
# QNX uses GNU C++, but need to define -shared option too, otherwise
12448
# it will coredump.
12449
lt_prog_compiler_pic='-fPIC -shared'
12452
osf3* | osf4* | osf5*)
12453
lt_prog_compiler_wl='-Wl,'
12454
# All OSF/1 code is PIC.
12455
lt_prog_compiler_static='-non_shared'
12459
lt_prog_compiler_static='-non_shared'
12463
lt_prog_compiler_pic='-KPIC'
12464
lt_prog_compiler_static='-Bstatic'
12465
case $cc_basename in
12466
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12467
lt_prog_compiler_wl='-Qoption ld ';;
12469
lt_prog_compiler_wl='-Wl,';;
12474
lt_prog_compiler_wl='-Qoption ld '
12475
lt_prog_compiler_pic='-PIC'
12476
lt_prog_compiler_static='-Bstatic'
12479
sysv4 | sysv4.2uw2* | sysv4.3*)
12480
lt_prog_compiler_wl='-Wl,'
12481
lt_prog_compiler_pic='-KPIC'
12482
lt_prog_compiler_static='-Bstatic'
12486
if test -d /usr/nec ;then
12487
lt_prog_compiler_pic='-Kconform_pic'
12488
lt_prog_compiler_static='-Bstatic'
12492
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12493
lt_prog_compiler_wl='-Wl,'
12494
lt_prog_compiler_pic='-KPIC'
12495
lt_prog_compiler_static='-Bstatic'
12499
lt_prog_compiler_wl='-Wl,'
12500
lt_prog_compiler_can_build_shared=no
12504
lt_prog_compiler_pic='-pic'
12505
lt_prog_compiler_static='-Bstatic'
12509
lt_prog_compiler_can_build_shared=no
12515
# For platforms which do not support PIC, -DPIC is meaningless:
12517
lt_prog_compiler_pic=
12520
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12525
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12526
if ${lt_cv_prog_compiler_pic+:} false; then :
12527
$as_echo_n "(cached) " >&6
12529
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12532
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12533
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12536
# Check to make sure the PIC flag actually works.
12538
if test -n "$lt_prog_compiler_pic"; then
12539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12540
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12541
if ${lt_cv_prog_compiler_pic_works+:} false; then :
12542
$as_echo_n "(cached) " >&6
12544
lt_cv_prog_compiler_pic_works=no
12545
ac_outfile=conftest.$ac_objext
12546
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12547
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12548
# Insert the option either (1) after the last *FLAGS variable, or
12549
# (2) before a word containing "conftest.", or (3) at the end.
12550
# Note that $ac_compile itself does not contain backslashes and begins
12551
# with a dollar sign (not a hyphen), so the echo should work correctly.
12552
# The option is referenced via a variable to avoid confusing sed.
12553
lt_compile=`echo "$ac_compile" | $SED \
12554
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12555
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12556
-e 's:$: $lt_compiler_flag:'`
12557
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12558
(eval "$lt_compile" 2>conftest.err)
12560
cat conftest.err >&5
12561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562
if (exit $ac_status) && test -s "$ac_outfile"; then
12563
# The compiler can only warn and ignore the option if not recognized
12564
# So say no if there are warnings other than the usual output.
12565
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12566
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12567
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12568
lt_cv_prog_compiler_pic_works=yes
12574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12575
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12577
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12578
case $lt_prog_compiler_pic in
12580
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12583
lt_prog_compiler_pic=
12584
lt_prog_compiler_can_build_shared=no
12600
# Check to make sure the static flag actually works.
12602
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12604
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12605
if ${lt_cv_prog_compiler_static_works+:} false; then :
12606
$as_echo_n "(cached) " >&6
12608
lt_cv_prog_compiler_static_works=no
12609
save_LDFLAGS="$LDFLAGS"
12610
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12611
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12612
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12613
# The linker can only warn and ignore the option if not recognized
12614
# So say no if there are warnings
12615
if test -s conftest.err; then
12616
# Append any errors to the config.log.
12617
cat conftest.err 1>&5
12618
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12619
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12620
if diff conftest.exp conftest.er2 >/dev/null; then
12621
lt_cv_prog_compiler_static_works=yes
12624
lt_cv_prog_compiler_static_works=yes
12628
LDFLAGS="$save_LDFLAGS"
12631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12632
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12634
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12637
lt_prog_compiler_static=
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12647
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12648
if ${lt_cv_prog_compiler_c_o+:} false; then :
12649
$as_echo_n "(cached) " >&6
12651
lt_cv_prog_compiler_c_o=no
12652
$RM -r conftest 2>/dev/null
12656
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12658
lt_compiler_flag="-o out/conftest2.$ac_objext"
12659
# Insert the option either (1) after the last *FLAGS variable, or
12660
# (2) before a word containing "conftest.", or (3) at the end.
12661
# Note that $ac_compile itself does not contain backslashes and begins
12662
# with a dollar sign (not a hyphen), so the echo should work correctly.
12663
lt_compile=`echo "$ac_compile" | $SED \
12664
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666
-e 's:$: $lt_compiler_flag:'`
12667
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12668
(eval "$lt_compile" 2>out/conftest.err)
12670
cat out/conftest.err >&5
12671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12674
# The compiler can only warn and ignore the option if not recognized
12675
# So say no if there are warnings
12676
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12677
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12678
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12679
lt_cv_prog_compiler_c_o=yes
12684
# SGI C++ compiler will create directory out/ii_files/ for
12685
# template instantiation
12686
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12687
$RM out/* && rmdir out
12693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12694
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12702
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12703
if ${lt_cv_prog_compiler_c_o+:} false; then :
12704
$as_echo_n "(cached) " >&6
12706
lt_cv_prog_compiler_c_o=no
12707
$RM -r conftest 2>/dev/null
12711
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
lt_compiler_flag="-o out/conftest2.$ac_objext"
12714
# Insert the option either (1) after the last *FLAGS variable, or
12715
# (2) before a word containing "conftest.", or (3) at the end.
12716
# Note that $ac_compile itself does not contain backslashes and begins
12717
# with a dollar sign (not a hyphen), so the echo should work correctly.
12718
lt_compile=`echo "$ac_compile" | $SED \
12719
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12720
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12721
-e 's:$: $lt_compiler_flag:'`
12722
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12723
(eval "$lt_compile" 2>out/conftest.err)
12725
cat out/conftest.err >&5
12726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729
# The compiler can only warn and ignore the option if not recognized
12730
# So say no if there are warnings
12731
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12732
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12733
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12734
lt_cv_prog_compiler_c_o=yes
12739
# SGI C++ compiler will create directory out/ii_files/ for
12740
# template instantiation
12741
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12742
$RM out/* && rmdir out
12748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12749
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12754
hard_links="nottested"
12755
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12756
# do not overwrite the value of need_locks provided by the user
12757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12758
$as_echo_n "checking if we can lock with hard links... " >&6; }
12761
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12763
ln conftest.a conftest.b 2>&5 || hard_links=no
12764
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12766
$as_echo "$hard_links" >&6; }
12767
if test "$hard_links" = no; then
12768
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12769
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12782
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12785
allow_undefined_flag=
12786
always_export_symbols=no
12788
archive_expsym_cmds=
12789
compiler_needs_object=no
12790
enable_shared_with_static_runtimes=no
12791
export_dynamic_flag_spec=
12792
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12793
hardcode_automatic=no
12795
hardcode_direct_absolute=no
12796
hardcode_libdir_flag_spec=
12797
hardcode_libdir_separator=
12798
hardcode_minus_L=no
12799
hardcode_shlibpath_var=unsupported
12801
link_all_deplibs=unknown
12803
module_expsym_cmds=
12804
old_archive_from_new_cmds=
12805
old_archive_from_expsyms_cmds=
12806
thread_safe_flag_spec=
12807
whole_archive_flag_spec=
12808
# include_expsyms should be a list of space-separated symbols to be *always*
12809
# included in the symbol list
12811
# exclude_expsyms can be an extended regexp of symbols to exclude
12812
# it will be wrapped by ` (' and `)$', so one must not match beginning or
12813
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12814
# as well as any symbol that contains `d'.
12815
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12816
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12817
# platforms (ab)use it in PIC code, but their linkers get confused if
12818
# the symbol is explicitly referenced. Since portable code cannot
12819
# rely on this symbol name, it's probably fine to never include it in
12820
# preloaded symbol tables.
12821
# Exclude shared library initialization/finalization symbols.
12822
extract_expsyms_cmds=
12825
cygwin* | mingw* | pw32* | cegcc*)
12826
# FIXME: the MSVC++ port hasn't been tested in a loooong time
12827
# When not using gcc, we currently assume that we are using
12828
# Microsoft Visual C++.
12829
if test "$GCC" != yes; then
12834
# we just hope/assume this is gcc and not c89 (= MSVC++)
12844
# On some targets, GNU ld is compatible enough with the native linker
12845
# that we're better off using the native interface for both.
12846
lt_use_gnu_ld_interface=no
12847
if test "$with_gnu_ld" = yes; then
12850
# The AIX port of GNU ld has always aspired to compatibility
12851
# with the native linker. However, as the warning in the GNU ld
12852
# block says, versions before 2.19.5* couldn't really create working
12853
# shared libraries, regardless of the interface used.
12854
case `$LD -v 2>&1` in
12855
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12856
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12857
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
12859
lt_use_gnu_ld_interface=yes
12864
lt_use_gnu_ld_interface=yes
12869
if test "$lt_use_gnu_ld_interface" = yes; then
12870
# If archive_cmds runs LD, not CC, wlarc should be empty
12873
# Set some defaults for GNU ld with shared library support. These
12874
# are reset later if shared libraries are not supported. Putting them
12875
# here allows them to be overridden if necessary.
12876
runpath_var=LD_RUN_PATH
12877
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12878
export_dynamic_flag_spec='${wl}--export-dynamic'
12879
# ancient GNU ld didn't support --whole-archive et. al.
12880
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12881
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12883
whole_archive_flag_spec=
12885
supports_anon_versioning=no
12886
case `$LD -v 2>&1` in
12887
*GNU\ gold*) supports_anon_versioning=yes ;;
12888
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12889
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12890
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12891
*\ 2.11.*) ;; # other 2.11 versions
12892
*) supports_anon_versioning=yes ;;
12895
# See if GNU ld supports shared libraries.
12898
# On AIX/PPC, the GNU linker is very broken
12899
if test "$host_cpu" != ia64; then
12903
*** Warning: the GNU linker, at least up to release 2.19, is reported
12904
*** to be unable to reliably create shared libraries on AIX.
12905
*** Therefore, libtool is disabling shared libraries support. If you
12906
*** really care for shared libraries, you may want to install binutils
12907
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12908
*** You will then need to restart the configuration process.
12917
# see comment about AmigaOS4 .so support
12918
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919
archive_expsym_cmds=''
12922
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)'
12923
hardcode_libdir_flag_spec='-L$libdir'
12924
hardcode_minus_L=yes
12930
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12931
allow_undefined_flag=unsupported
12932
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12933
# support --undefined. This deserves some investigation. FIXME
12934
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940
cygwin* | mingw* | pw32* | cegcc*)
12941
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12942
# as there is no search path for DLLs.
12943
hardcode_libdir_flag_spec='-L$libdir'
12944
export_dynamic_flag_spec='${wl}--export-all-symbols'
12945
allow_undefined_flag=unsupported
12946
always_export_symbols=no
12947
enable_shared_with_static_runtimes=yes
12948
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'
12949
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12951
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12952
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12953
# If the export-symbols file already is a .def file (1st line
12954
# is EXPORTS), use it as is; otherwise, prepend...
12955
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12956
cp $export_symbols $output_objdir/$soname.def;
12958
echo EXPORTS > $output_objdir/$soname.def;
12959
cat $export_symbols >> $output_objdir/$soname.def;
12961
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12968
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969
link_all_deplibs=yes
12974
hardcode_shlibpath_var=no
12975
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12976
export_dynamic_flag_spec='${wl}-E'
12977
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12978
# Instead, shared libraries are loaded at an image base (0x10000000 by
12979
# default) and relocated if they conflict, which is a slow very memory
12980
# consuming and fragmenting process. To avoid this, we pick a random,
12981
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12982
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12983
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12984
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'
12987
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12989
if test "$host_os" = linux-dietlibc; then
12990
case $cc_basename in
12991
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12994
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12995
&& test "$tmp_diet" = no
12997
tmp_addflag=' $pic_flag'
12998
tmp_sharedflag='-shared'
12999
case $cc_basename,$host_cpu in
13000
pgcc*) # Portland Group C compiler
13001
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'
13002
tmp_addflag=' $pic_flag'
13004
pgf77* | pgf90* | pgf95* | pgfortran*)
13005
# Portland Group f77 and f90 compilers
13006
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'
13007
tmp_addflag=' $pic_flag -Mnomain' ;;
13008
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13009
tmp_addflag=' -i_dynamic' ;;
13010
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13011
tmp_addflag=' -i_dynamic -nofor_main' ;;
13012
ifc* | ifort*) # Intel Fortran compiler
13013
tmp_addflag=' -nofor_main' ;;
13014
lf95*) # Lahey Fortran 8.1
13015
whole_archive_flag_spec=
13016
tmp_sharedflag='--shared' ;;
13017
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13018
tmp_sharedflag='-qmkshrobj'
13020
nvcc*) # Cuda Compiler Driver 2.2
13021
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'
13022
compiler_needs_object=yes
13025
case `$CC -V 2>&1 | sed 5q` in
13026
*Sun\ C*) # Sun C 5.9
13027
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'
13028
compiler_needs_object=yes
13029
tmp_sharedflag='-G' ;;
13030
*Sun\ F*) # Sun Fortran 8.3
13031
tmp_sharedflag='-G' ;;
13033
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035
if test "x$supports_anon_versioning" = xyes; then
13036
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13037
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13038
echo "local: *; };" >> $output_objdir/$libname.ver~
13039
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13042
case $cc_basename in
13043
xlf* | bgf* | bgxlf* | mpixlf*)
13044
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13045
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13046
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13047
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13048
if test "x$supports_anon_versioning" = xyes; then
13049
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13050
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13051
echo "local: *; };" >> $output_objdir/$libname.ver~
13052
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13062
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13063
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13066
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13072
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13076
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13077
*** create shared libraries on Solaris systems. Therefore, libtool
13078
*** is disabling shared libraries support. We urge you to upgrade GNU
13079
*** binutils to release 2.9.1 or newer. Another option is to modify
13080
*** your PATH or compiler configuration so that the native linker is
13081
*** used, and then restart.
13084
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13085
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13092
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13093
case `$LD -v 2>&1` in
13094
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13098
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13099
*** reliably create shared libraries on SCO systems. Therefore, libtool
13100
*** is disabling shared libraries support. We urge you to upgrade GNU
13101
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13102
*** your PATH or compiler configuration so that the native linker is
13103
*** used, and then restart.
13108
# For security reasons, it is highly recommended that you always
13109
# use absolute paths for naming shared libraries, and exclude the
13110
# DT_RUNPATH tag from executables and libraries. But doing so
13111
# requires that you compile everything twice, which is a pain.
13112
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13113
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13114
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13124
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13126
hardcode_direct=yes
13127
hardcode_shlibpath_var=no
13131
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13132
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13133
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13140
if test "$ld_shlibs" = no; then
13142
hardcode_libdir_flag_spec=
13143
export_dynamic_flag_spec=
13144
whole_archive_flag_spec=
13147
# PORTME fill in a description of your system's linker (not GNU ld)
13150
allow_undefined_flag=unsupported
13151
always_export_symbols=yes
13152
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'
13153
# Note: this linker hardcodes the directories in LIBPATH if there
13154
# are no directories specified by -L.
13155
hardcode_minus_L=yes
13156
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13157
# Neither direct hardcoding nor static linking is supported with a
13159
hardcode_direct=unsupported
13164
if test "$host_cpu" = ia64; then
13165
# On IA64, the linker does run time linking by default, so we don't
13166
# have to do anything special.
13167
aix_use_runtimelinking=no
13168
exp_sym_flag='-Bexport'
13171
# If we're using GNU nm, then we don't want the "-C" option.
13172
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13173
# Also, AIX nm treats weak defined symbols like other global
13174
# defined symbols, whereas GNU nm marks them as "W".
13175
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13176
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'
13178
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'
13180
aix_use_runtimelinking=no
13182
# Test if we are trying to use run time linking or normal
13183
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13184
# need to do runtime linking.
13185
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13186
for ld_flag in $LDFLAGS; do
13187
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13188
aix_use_runtimelinking=yes
13195
exp_sym_flag='-bexport'
13196
no_entry_flag='-bnoentry'
13199
# When large executables or shared objects are built, AIX ld can
13200
# have problems creating the table of contents. If linking a library
13201
# or program results in "error TOC overflow" add -mminimal-toc to
13202
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13203
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13206
hardcode_direct=yes
13207
hardcode_direct_absolute=yes
13208
hardcode_libdir_separator=':'
13209
link_all_deplibs=yes
13210
file_list_spec='${wl}-f,'
13212
if test "$GCC" = yes; then
13213
case $host_os in aix4.[012]|aix4.[012].*)
13214
# We only want to do this on AIX 4.2 and lower, the check
13215
# below for broken collect2 doesn't work under 4.3+
13216
collect2name=`${CC} -print-prog-name=collect2`
13217
if test -f "$collect2name" &&
13218
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13220
# We have reworked collect2
13223
# We have old collect2
13224
hardcode_direct=unsupported
13225
# It fails to find uninstalled libraries when the uninstalled
13226
# path is not listed in the libpath. Setting hardcode_minus_L
13227
# to unsupported forces relinking
13228
hardcode_minus_L=yes
13229
hardcode_libdir_flag_spec='-L$libdir'
13230
hardcode_libdir_separator=
13234
shared_flag='-shared'
13235
if test "$aix_use_runtimelinking" = yes; then
13236
shared_flag="$shared_flag "'${wl}-G'
13240
if test "$host_cpu" = ia64; then
13241
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13242
# chokes on -Wl,-G. The following line is correct:
13245
if test "$aix_use_runtimelinking" = yes; then
13246
shared_flag='${wl}-G'
13248
shared_flag='${wl}-bM:SRE'
13253
export_dynamic_flag_spec='${wl}-bexpall'
13254
# It seems that -bexpall does not export symbols beginning with
13255
# underscore (_), so it is better to generate a list of symbols to export.
13256
always_export_symbols=yes
13257
if test "$aix_use_runtimelinking" = yes; then
13258
# Warning - without using the other runtime loading flags (-brtl),
13259
# -berok will link without error, but may produce a broken library.
13260
allow_undefined_flag='-berok'
13261
# Determine the default libpath from the value encoded in an
13262
# empty executable.
13263
if test "${lt_cv_aix_libpath+set}" = set; then
13264
aix_libpath=$lt_cv_aix_libpath
13266
if ${lt_cv_aix_libpath_+:} false; then :
13267
$as_echo_n "(cached) " >&6
13269
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270
/* end confdefs.h. */
13280
if ac_fn_c_try_link "$LINENO"; then :
13282
lt_aix_libpath_sed='
13283
/Import File Strings/,/^$/ {
13285
s/^0 *\([^ ]*\) *$/\1/
13289
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13290
# Check for a 64-bit object if we didn't find anything.
13291
if test -z "$lt_cv_aix_libpath_"; then
13292
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13295
rm -f core conftest.err conftest.$ac_objext \
13296
conftest$ac_exeext conftest.$ac_ext
13297
if test -z "$lt_cv_aix_libpath_"; then
13298
lt_cv_aix_libpath_="/usr/lib:/lib"
13303
aix_libpath=$lt_cv_aix_libpath_
13306
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13307
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"
13309
if test "$host_cpu" = ia64; then
13310
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13311
allow_undefined_flag="-z nodefs"
13312
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"
13314
# Determine the default libpath from the value encoded in an
13315
# empty executable.
13316
if test "${lt_cv_aix_libpath+set}" = set; then
13317
aix_libpath=$lt_cv_aix_libpath
13319
if ${lt_cv_aix_libpath_+:} false; then :
13320
$as_echo_n "(cached) " >&6
13322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323
/* end confdefs.h. */
13333
if ac_fn_c_try_link "$LINENO"; then :
13335
lt_aix_libpath_sed='
13336
/Import File Strings/,/^$/ {
13338
s/^0 *\([^ ]*\) *$/\1/
13342
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13343
# Check for a 64-bit object if we didn't find anything.
13344
if test -z "$lt_cv_aix_libpath_"; then
13345
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13348
rm -f core conftest.err conftest.$ac_objext \
13349
conftest$ac_exeext conftest.$ac_ext
13350
if test -z "$lt_cv_aix_libpath_"; then
13351
lt_cv_aix_libpath_="/usr/lib:/lib"
13356
aix_libpath=$lt_cv_aix_libpath_
13359
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13360
# Warning - without using the other run time loading flags,
13361
# -berok will link without error, but may produce a broken library.
13362
no_undefined_flag=' ${wl}-bernotok'
13363
allow_undefined_flag=' ${wl}-berok'
13364
if test "$with_gnu_ld" = yes; then
13365
# We only use this code for GNU lds that support --whole-archive.
13366
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13368
# Exported symbols can be pulled into shared objects from archives
13369
whole_archive_flag_spec='$convenience'
13371
archive_cmds_need_lc=yes
13372
# This is similar to how AIX traditionally builds its shared libraries.
13373
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'
13381
# see comment about AmigaOS4 .so support
13382
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383
archive_expsym_cmds=''
13386
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)'
13387
hardcode_libdir_flag_spec='-L$libdir'
13388
hardcode_minus_L=yes
13394
export_dynamic_flag_spec=-rdynamic
13397
cygwin* | mingw* | pw32* | cegcc*)
13398
# When not using gcc, we currently assume that we are using
13399
# Microsoft Visual C++.
13400
# hardcode_libdir_flag_spec is actually meaningless, as there is
13401
# no search path for DLLs.
13402
case $cc_basename in
13405
hardcode_libdir_flag_spec=' '
13406
allow_undefined_flag=unsupported
13407
always_export_symbols=yes
13409
# Tell ltmain to make .lib files, not .a files.
13411
# Tell ltmain to make .dll files, not .so files.
13413
# FIXME: Setting linknames here is a bad hack.
13414
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13415
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13416
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13418
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13420
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13422
# The linker will not automatically build a static lib if we build a DLL.
13423
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13424
enable_shared_with_static_runtimes=yes
13425
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13426
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13428
old_postinstall_cmds='chmod 644 $oldlib'
13429
postlink_cmds='lt_outputfile="@OUTPUT@"~
13430
lt_tool_outputfile="@TOOL_OUTPUT@"~
13431
case $lt_outputfile in
13434
lt_outputfile="$lt_outputfile.exe"
13435
lt_tool_outputfile="$lt_tool_outputfile.exe"
13438
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13439
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13440
$RM "$lt_outputfile.manifest";
13444
# Assume MSVC wrapper
13445
hardcode_libdir_flag_spec=' '
13446
allow_undefined_flag=unsupported
13447
# Tell ltmain to make .lib files, not .a files.
13449
# Tell ltmain to make .dll files, not .so files.
13451
# FIXME: Setting linknames here is a bad hack.
13452
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13453
# The linker will automatically build a .lib file if we build a DLL.
13454
old_archive_from_new_cmds='true'
13455
# FIXME: Should let the user specify the lib program.
13456
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13457
enable_shared_with_static_runtimes=yes
13462
darwin* | rhapsody*)
13465
archive_cmds_need_lc=no
13467
hardcode_automatic=yes
13468
hardcode_shlibpath_var=unsupported
13469
if test "$lt_cv_ld_force_load" = "yes"; then
13470
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\"`'
13473
whole_archive_flag_spec=''
13475
link_all_deplibs=yes
13476
allow_undefined_flag="$_lt_dar_allow_undefined"
13477
case $cc_basename in
13478
ifort*) _lt_dar_can_shared=yes ;;
13479
*) _lt_dar_can_shared=$GCC ;;
13481
if test "$_lt_dar_can_shared" = "yes"; then
13482
output_verbose_link_cmd=func_echo_all
13483
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13484
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13485
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}"
13486
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}"
13495
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496
hardcode_libdir_flag_spec='-L$libdir'
13497
hardcode_shlibpath_var=no
13500
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13501
# support. Future versions do this automatically, but an explicit c++rt0.o
13502
# does not break anything, and helps significantly (at the cost of a little
13505
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13506
hardcode_libdir_flag_spec='-R$libdir'
13507
hardcode_direct=yes
13508
hardcode_shlibpath_var=no
13511
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13513
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13514
hardcode_direct=yes
13515
hardcode_minus_L=yes
13516
hardcode_shlibpath_var=no
13519
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13520
freebsd* | dragonfly*)
13521
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13522
hardcode_libdir_flag_spec='-R$libdir'
13523
hardcode_direct=yes
13524
hardcode_shlibpath_var=no
13528
if test "$GCC" = yes; then
13529
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'
13531
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'
13533
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13534
hardcode_libdir_separator=:
13535
hardcode_direct=yes
13537
# hardcode_minus_L: Not really in the search PATH,
13538
# but as the default location of the library.
13539
hardcode_minus_L=yes
13540
export_dynamic_flag_spec='${wl}-E'
13544
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13545
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13547
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13549
if test "$with_gnu_ld" = no; then
13550
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13551
hardcode_libdir_separator=:
13552
hardcode_direct=yes
13553
hardcode_direct_absolute=yes
13554
export_dynamic_flag_spec='${wl}-E'
13555
# hardcode_minus_L: Not really in the search PATH,
13556
# but as the default location of the library.
13557
hardcode_minus_L=yes
13562
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13565
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13568
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13571
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13577
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13580
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13584
# Older versions of the 11.00 compiler do not understand -b yet
13585
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13587
$as_echo_n "checking if $CC understands -b... " >&6; }
13588
if ${lt_cv_prog_compiler__b+:} false; then :
13589
$as_echo_n "(cached) " >&6
13591
lt_cv_prog_compiler__b=no
13592
save_LDFLAGS="$LDFLAGS"
13593
LDFLAGS="$LDFLAGS -b"
13594
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13595
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13596
# The linker can only warn and ignore the option if not recognized
13597
# So say no if there are warnings
13598
if test -s conftest.err; then
13599
# Append any errors to the config.log.
13600
cat conftest.err 1>&5
13601
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13602
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13603
if diff conftest.exp conftest.er2 >/dev/null; then
13604
lt_cv_prog_compiler__b=yes
13607
lt_cv_prog_compiler__b=yes
13611
LDFLAGS="$save_LDFLAGS"
13614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13615
$as_echo "$lt_cv_prog_compiler__b" >&6; }
13617
if test x"$lt_cv_prog_compiler__b" = xyes; then
13618
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13620
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13626
if test "$with_gnu_ld" = no; then
13627
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13628
hardcode_libdir_separator=:
13633
hardcode_shlibpath_var=no
13636
hardcode_direct=yes
13637
hardcode_direct_absolute=yes
13638
export_dynamic_flag_spec='${wl}-E'
13640
# hardcode_minus_L: Not really in the search PATH,
13641
# but as the default location of the library.
13642
hardcode_minus_L=yes
13648
irix5* | irix6* | nonstopux*)
13649
if test "$GCC" = yes; then
13650
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'
13651
# Try to use the -exported_symbol ld option, if it does not
13652
# work, assume that -exports_file does not work either and
13653
# implicitly export all symbols.
13654
# This should be the same for all languages, so no per-tag cache variable.
13655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13656
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13657
if ${lt_cv_irix_exported_symbol+:} false; then :
13658
$as_echo_n "(cached) " >&6
13660
save_LDFLAGS="$LDFLAGS"
13661
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663
/* end confdefs.h. */
13664
int foo (void) { return 0; }
13666
if ac_fn_c_try_link "$LINENO"; then :
13667
lt_cv_irix_exported_symbol=yes
13669
lt_cv_irix_exported_symbol=no
13671
rm -f core conftest.err conftest.$ac_objext \
13672
conftest$ac_exeext conftest.$ac_ext
13673
LDFLAGS="$save_LDFLAGS"
13675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13676
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13677
if test "$lt_cv_irix_exported_symbol" = yes; then
13678
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'
13681
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'
13682
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'
13684
archive_cmds_need_lc='no'
13685
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13686
hardcode_libdir_separator=:
13688
link_all_deplibs=yes
13692
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13693
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13695
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13697
hardcode_libdir_flag_spec='-R$libdir'
13698
hardcode_direct=yes
13699
hardcode_shlibpath_var=no
13703
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13704
hardcode_direct=yes
13705
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13706
hardcode_libdir_separator=:
13707
hardcode_shlibpath_var=no
13714
if test -f /usr/libexec/ld.so; then
13715
hardcode_direct=yes
13716
hardcode_shlibpath_var=no
13717
hardcode_direct_absolute=yes
13718
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13719
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13720
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13721
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13722
export_dynamic_flag_spec='${wl}-E'
13725
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13726
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13727
hardcode_libdir_flag_spec='-R$libdir'
13730
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13731
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13741
hardcode_libdir_flag_spec='-L$libdir'
13742
hardcode_minus_L=yes
13743
allow_undefined_flag=unsupported
13744
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'
13745
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13749
if test "$GCC" = yes; then
13750
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13751
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'
13753
allow_undefined_flag=' -expect_unresolved \*'
13754
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'
13756
archive_cmds_need_lc='no'
13757
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13758
hardcode_libdir_separator=:
13761
osf4* | osf5*) # as osf3* with the addition of -msym flag
13762
if test "$GCC" = yes; then
13763
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13764
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'
13765
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13767
allow_undefined_flag=' -expect_unresolved \*'
13768
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'
13769
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~
13770
$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'
13772
# Both c and cxx compiler support -rpath directly
13773
hardcode_libdir_flag_spec='-rpath $libdir'
13775
archive_cmds_need_lc='no'
13776
hardcode_libdir_separator=:
13780
no_undefined_flag=' -z defs'
13781
if test "$GCC" = yes; then
13783
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13784
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13785
$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'
13787
case `$CC -V 2>&1` in
13790
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13792
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13796
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13797
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13798
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13802
hardcode_libdir_flag_spec='-R$libdir'
13803
hardcode_shlibpath_var=no
13805
solaris2.[0-5] | solaris2.[0-5].*) ;;
13807
# The compiler driver will combine and reorder linker options,
13808
# but understands `-z linker_flag'. GCC discards it without `$wl',
13809
# but is careful enough not to reorder.
13810
# Supported since Solaris 2.6 (maybe 2.5.1?)
13811
if test "$GCC" = yes; then
13812
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13814
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13818
link_all_deplibs=yes
13822
if test "x$host_vendor" = xsequent; then
13823
# Use $CC to link under sequent, because it throws in some extra .o
13824
# files that make .init and .fini sections work.
13825
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13827
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13829
hardcode_libdir_flag_spec='-L$libdir'
13830
hardcode_direct=yes
13831
hardcode_minus_L=yes
13832
hardcode_shlibpath_var=no
13836
case $host_vendor in
13838
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839
hardcode_direct=yes # is this really true???
13842
## LD is ld it makes a PLAMLIB
13843
## CC just makes a GrossModule.
13844
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13845
reload_cmds='$CC -r -o $output$reload_objs'
13849
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13850
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13853
runpath_var='LD_RUN_PATH'
13854
hardcode_shlibpath_var=no
13858
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13859
hardcode_shlibpath_var=no
13860
export_dynamic_flag_spec='-Bexport'
13864
if test -d /usr/nec; then
13865
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866
hardcode_shlibpath_var=no
13867
runpath_var=LD_RUN_PATH
13868
hardcode_runpath_var=yes
13873
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13874
no_undefined_flag='${wl}-z,text'
13875
archive_cmds_need_lc=no
13876
hardcode_shlibpath_var=no
13877
runpath_var='LD_RUN_PATH'
13879
if test "$GCC" = yes; then
13880
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13884
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13888
sysv5* | sco3.2v5* | sco5v6*)
13889
# Note: We can NOT use -z defs as we might desire, because we do not
13890
# link with -lc, and that would cause any symbols used from libc to
13891
# always be unresolved, which means just about no library would
13892
# ever link correctly. If we're not using GNU ld we use -z text
13893
# though, which does catch some bad symbols but isn't as heavy-handed
13895
no_undefined_flag='${wl}-z,text'
13896
allow_undefined_flag='${wl}-z,nodefs'
13897
archive_cmds_need_lc=no
13898
hardcode_shlibpath_var=no
13899
hardcode_libdir_flag_spec='${wl}-R,$libdir'
13900
hardcode_libdir_separator=':'
13901
link_all_deplibs=yes
13902
export_dynamic_flag_spec='${wl}-Bexport'
13903
runpath_var='LD_RUN_PATH'
13905
if test "$GCC" = yes; then
13906
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13907
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13909
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13916
hardcode_libdir_flag_spec='-L$libdir'
13917
hardcode_shlibpath_var=no
13925
if test x$host_vendor = xsni; then
13927
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13928
export_dynamic_flag_spec='${wl}-Blargedynsym'
13934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13935
$as_echo "$ld_shlibs" >&6; }
13936
test "$ld_shlibs" = no && can_build_shared=no
13938
with_gnu_ld=$with_gnu_ld
13955
# Do we need to explicitly link libc?
13957
case "x$archive_cmds_need_lc" in
13959
# Assume -lc should be added
13960
archive_cmds_need_lc=yes
13962
if test "$enable_shared" = yes && test "$GCC" = yes; then
13963
case $archive_cmds in
13965
# FIXME: we may have to deal with multi-command sequences.
13968
# Test whether the compiler implicitly links with -lc since on some
13969
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13970
# to ld, don't add -lc before -lgcc.
13971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13972
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13973
if ${lt_cv_archive_cmds_need_lc+:} false; then :
13974
$as_echo_n "(cached) " >&6
13977
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13979
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13980
(eval $ac_compile) 2>&5
13982
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13983
test $ac_status = 0; } 2>conftest.err; then
13986
libobjs=conftest.$ac_objext
13988
wl=$lt_prog_compiler_wl
13989
pic_flag=$lt_prog_compiler_pic
13995
lt_save_allow_undefined_flag=$allow_undefined_flag
13996
allow_undefined_flag=
13997
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13998
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14000
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001
test $ac_status = 0; }
14003
lt_cv_archive_cmds_need_lc=no
14005
lt_cv_archive_cmds_need_lc=yes
14007
allow_undefined_flag=$lt_save_allow_undefined_flag
14009
cat conftest.err 1>&5
14014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14015
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14016
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14175
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14177
if test "$GCC" = yes; then
14179
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14180
*) lt_awk_arg="/^libraries:/" ;;
14183
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14184
*) lt_sed_strip_eq="s,=/,/,g" ;;
14186
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14187
case $lt_search_path_spec in
14189
# if the path contains ";" then we assume it to be the separator
14190
# otherwise default to the standard path separator (i.e. ":") - it is
14191
# assumed that no part of a normal pathname contains ";" but that should
14192
# okay in the real world where ";" in dirpaths is itself problematic.
14193
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14196
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14199
# Ok, now we have the path, separated by spaces, we can step through it
14200
# and add multilib dir if necessary.
14201
lt_tmp_lt_search_path_spec=
14202
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14203
for lt_sys_path in $lt_search_path_spec; do
14204
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14205
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14207
test -d "$lt_sys_path" && \
14208
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14211
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14212
BEGIN {RS=" "; FS="/|\n";} {
14215
for (lt_i = NF; lt_i > 0; lt_i--) {
14216
if ($lt_i != "" && $lt_i != ".") {
14217
if ($lt_i == "..") {
14220
if (lt_count == 0) {
14221
lt_foo="/" $lt_i lt_foo;
14228
if (lt_foo != "") { lt_freq[lt_foo]++; }
14229
if (lt_freq[lt_foo] == 1) { print lt_foo; }
14231
# AWK program above erroneously prepends '/' to C:/dos/paths
14234
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14235
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
14237
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14239
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14241
library_names_spec=
14242
libname_spec='lib$name'
14246
postuninstall_cmds=
14250
shlibpath_overrides_runpath=unknown
14252
dynamic_linker="$host_os ld.so"
14253
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14254
need_lib_prefix=unknown
14255
hardcode_into_libs=no
14257
# when you set need_version to no, make sure it does not cause -set_version
14258
# flags to be left without arguments
14259
need_version=unknown
14263
version_type=linux # correct to gnu/linux during the next big refactor
14264
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14265
shlibpath_var=LIBPATH
14267
# AIX 3 has no versioning support, so we append a major version to the name.
14268
soname_spec='${libname}${release}${shared_ext}$major'
14272
version_type=linux # correct to gnu/linux during the next big refactor
14275
hardcode_into_libs=yes
14276
if test "$host_cpu" = ia64; then
14277
# AIX 5 supports IA64
14278
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14279
shlibpath_var=LD_LIBRARY_PATH
14281
# With GCC up to 2.95.x, collect2 would create an import file
14282
# for dependence libraries. The import file would start with
14283
# the line `#! .'. This would cause the generated library to
14284
# depend on `.', always an invalid library. This was fixed in
14285
# development snapshots of GCC prior to 3.0.
14287
aix4 | aix4.[01] | aix4.[01].*)
14288
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14290
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14293
can_build_shared=no
14297
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14298
# soname into executable. Probably we can add versioning support to
14299
# collect2, so additional links can be useful in future.
14300
if test "$aix_use_runtimelinking" = yes; then
14301
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14302
# instead of lib<name>.a to let people know that these are not
14303
# typical AIX shared libraries.
14304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306
# We preserve .a as extension for shared libraries through AIX4.2
14307
# and later when we are not doing run time linking.
14308
library_names_spec='${libname}${release}.a $libname.a'
14309
soname_spec='${libname}${release}${shared_ext}$major'
14311
shlibpath_var=LIBPATH
14318
# Since July 2007 AmigaOS4 officially supports .so libraries.
14319
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323
library_names_spec='$libname.ixlibrary $libname.a'
14324
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14325
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'
14331
library_names_spec='${libname}${shared_ext}'
14332
dynamic_linker="$host_os ld.so"
14333
shlibpath_var=LIBRARY_PATH
14337
version_type=linux # correct to gnu/linux during the next big refactor
14339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340
soname_spec='${libname}${release}${shared_ext}$major'
14341
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14342
shlibpath_var=LD_LIBRARY_PATH
14343
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14344
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14345
# the default ld.so.conf also contains /usr/contrib/lib and
14346
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14347
# libtool to hard-code these into programs
14350
cygwin* | mingw* | pw32* | cegcc*)
14351
version_type=windows
14356
case $GCC,$cc_basename in
14359
library_names_spec='$libname.dll.a'
14360
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14361
postinstall_cmds='base_file=`basename \${file}`~
14362
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14363
dldir=$destdir/`dirname \$dlpath`~
14364
test -d \$dldir || mkdir -p \$dldir~
14365
$install_prog $dir/$dlname \$dldir/$dlname~
14366
chmod a+x \$dldir/$dlname~
14367
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14368
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14370
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14371
dlpath=$dir/\$dldll~
14373
shlibpath_overrides_runpath=yes
14377
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14378
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14383
# MinGW DLLs use traditional 'lib' prefix
14384
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14387
# pw32 DLLs use 'pw' prefix rather than 'lib'
14388
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14391
dynamic_linker='Win32 ld.exe'
14396
libname_spec='$name'
14397
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14398
library_names_spec='${libname}.dll.lib'
14402
sys_lib_search_path_spec=
14405
for lt_path in $LIB
14408
# Let DOS variable expansion print the short 8.3 style file name.
14409
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14410
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14413
# Convert to MSYS style.
14414
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14417
# Convert to unix form, then to dos form, then back to unix form
14418
# but this time dos style (no spaces!) so that the unix form looks
14419
# like /cygdrive/c/PROGRA~1:/cygdr...
14420
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14421
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14422
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14425
sys_lib_search_path_spec="$LIB"
14426
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14427
# It is most probably a Windows format PATH.
14428
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14430
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14432
# FIXME: find the short name or the path components, as spaces are
14433
# common. (e.g. "Program Files" -> "PROGRA~1")
14437
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14438
postinstall_cmds='base_file=`basename \${file}`~
14439
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14440
dldir=$destdir/`dirname \$dlpath`~
14441
test -d \$dldir || mkdir -p \$dldir~
14442
$install_prog $dir/$dlname \$dldir/$dlname'
14443
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14444
dlpath=$dir/\$dldll~
14446
shlibpath_overrides_runpath=yes
14447
dynamic_linker='Win32 link.exe'
14451
# Assume MSVC wrapper
14452
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14453
dynamic_linker='Win32 ld.exe'
14456
# FIXME: first we should search . and the directory the executable is in
14460
darwin* | rhapsody*)
14461
dynamic_linker="$host_os dyld"
14462
version_type=darwin
14465
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14466
soname_spec='${libname}${release}${major}$shared_ext'
14467
shlibpath_overrides_runpath=yes
14468
shlibpath_var=DYLD_LIBRARY_PATH
14469
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14471
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14472
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14476
version_type=linux # correct to gnu/linux during the next big refactor
14479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14480
soname_spec='${libname}${release}${shared_ext}$major'
14481
shlibpath_var=LD_LIBRARY_PATH
14484
freebsd* | dragonfly*)
14485
# DragonFly does not have aout. When/if they implement a new
14486
# versioning mechanism, adjust this.
14487
if test -x /usr/bin/objformat; then
14488
objformat=`/usr/bin/objformat`
14491
freebsd[23].*) objformat=aout ;;
14492
*) objformat=elf ;;
14495
version_type=freebsd-$objformat
14496
case $version_type in
14498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14503
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14507
shlibpath_var=LD_LIBRARY_PATH
14510
shlibpath_overrides_runpath=yes
14512
freebsd3.[01]* | freebsdelf3.[01]*)
14513
shlibpath_overrides_runpath=yes
14514
hardcode_into_libs=yes
14516
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14517
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14518
shlibpath_overrides_runpath=no
14519
hardcode_into_libs=yes
14521
*) # from 4.6 on, and DragonFly
14522
shlibpath_overrides_runpath=yes
14523
hardcode_into_libs=yes
14529
version_type=linux # correct to gnu/linux during the next big refactor
14532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14533
soname_spec='${libname}${release}${shared_ext}$major'
14534
shlibpath_var=LD_LIBRARY_PATH
14535
shlibpath_overrides_runpath=no
14536
hardcode_into_libs=yes
14540
version_type=linux # correct to gnu/linux during the next big refactor
14543
dynamic_linker="$host_os runtime_loader"
14544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14545
soname_spec='${libname}${release}${shared_ext}$major'
14546
shlibpath_var=LIBRARY_PATH
14547
shlibpath_overrides_runpath=yes
14548
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14549
hardcode_into_libs=yes
14552
hpux9* | hpux10* | hpux11*)
14553
# Give a soname corresponding to the major version so that dld.sl refuses to
14554
# link against other versions.
14561
hardcode_into_libs=yes
14562
dynamic_linker="$host_os dld.so"
14563
shlibpath_var=LD_LIBRARY_PATH
14564
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566
soname_spec='${libname}${release}${shared_ext}$major'
14567
if test "X$HPUX_IA64_MODE" = X32; then
14568
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14570
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14572
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14576
hardcode_into_libs=yes
14577
dynamic_linker="$host_os dld.sl"
14578
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14579
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581
soname_spec='${libname}${release}${shared_ext}$major'
14582
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14583
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14587
dynamic_linker="$host_os dld.sl"
14588
shlibpath_var=SHLIB_PATH
14589
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591
soname_spec='${libname}${release}${shared_ext}$major'
14594
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14595
postinstall_cmds='chmod 555 $lib'
14596
# or fails outright, so override atomically:
14597
install_override_mode=555
14601
version_type=linux # correct to gnu/linux during the next big refactor
14604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14605
soname_spec='${libname}${release}${shared_ext}$major'
14606
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14607
shlibpath_var=LD_LIBRARY_PATH
14608
shlibpath_overrides_runpath=no
14609
hardcode_into_libs=yes
14612
irix5* | irix6* | nonstopux*)
14614
nonstopux*) version_type=nonstopux ;;
14616
if test "$lt_cv_prog_gnu_ld" = yes; then
14617
version_type=linux # correct to gnu/linux during the next big refactor
14624
soname_spec='${libname}${release}${shared_ext}$major'
14625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14627
irix5* | nonstopux*)
14628
libsuff= shlibsuff=
14631
case $LD in # libtool.m4 will add one of these switches to LD
14632
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14633
libsuff= shlibsuff= libmagic=32-bit;;
14634
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14635
libsuff=32 shlibsuff=N32 libmagic=N32;;
14636
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14637
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14638
*) libsuff= shlibsuff= libmagic=never-match;;
14642
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14643
shlibpath_overrides_runpath=no
14644
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14645
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14646
hardcode_into_libs=yes
14649
# No shared lib support for Linux oldld, aout, or coff.
14650
linux*oldld* | linux*aout* | linux*coff*)
14654
# This must be glibc/ELF.
14655
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14656
version_type=linux # correct to gnu/linux during the next big refactor
14659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660
soname_spec='${libname}${release}${shared_ext}$major'
14661
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14662
shlibpath_var=LD_LIBRARY_PATH
14663
shlibpath_overrides_runpath=no
14665
# Some binutils ld are patched to set DT_RUNPATH
14666
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14667
$as_echo_n "(cached) " >&6
14669
lt_cv_shlibpath_overrides_runpath=no
14670
save_LDFLAGS=$LDFLAGS
14671
save_libdir=$libdir
14672
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14673
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14674
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675
/* end confdefs.h. */
14685
if ac_fn_c_try_link "$LINENO"; then :
14686
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14687
lt_cv_shlibpath_overrides_runpath=yes
14690
rm -f core conftest.err conftest.$ac_objext \
14691
conftest$ac_exeext conftest.$ac_ext
14692
LDFLAGS=$save_LDFLAGS
14693
libdir=$save_libdir
14697
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14699
# This implies no fast_install, which is unacceptable.
14700
# Some rework will be needed to allow for fast_install
14701
# before this can be enabled.
14702
hardcode_into_libs=yes
14704
# Add ABI-specific directories to the system library path.
14705
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14707
# Append ld.so.conf contents to the search path
14708
if test -f /etc/ld.so.conf; then
14709
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' ' '`
14710
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14714
# We used to test for /lib/ld.so.1 and disable shared libraries on
14715
# powerpc, because MkLinux only supported shared libraries with the
14716
# GNU dynamic linker. Since this was broken with cross compilers,
14717
# most powerpc-linux boxes support dynamic linking these days and
14718
# people can always --disable-shared, the test was removed, and we
14719
# assume the GNU/Linux dynamic linker is in use.
14720
dynamic_linker='GNU/Linux ld.so'
14727
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14729
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14730
dynamic_linker='NetBSD (a.out) ld.so'
14732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14733
soname_spec='${libname}${release}${shared_ext}$major'
14734
dynamic_linker='NetBSD ld.elf_so'
14736
shlibpath_var=LD_LIBRARY_PATH
14737
shlibpath_overrides_runpath=yes
14738
hardcode_into_libs=yes
14742
version_type=linux # correct to gnu/linux during the next big refactor
14743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744
shlibpath_var=LD_LIBRARY_PATH
14745
shlibpath_overrides_runpath=yes
14752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753
soname_spec='${libname}${release}${shared_ext}$major'
14754
shlibpath_var=LD_LIBRARY_PATH
14755
shlibpath_overrides_runpath=no
14756
hardcode_into_libs=yes
14757
dynamic_linker='ldqnx.so'
14762
sys_lib_dlsearch_path_spec="/usr/lib"
14764
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14766
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14767
*) need_version=no ;;
14769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14770
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14771
shlibpath_var=LD_LIBRARY_PATH
14772
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14774
openbsd2.[89] | openbsd2.[89].*)
14775
shlibpath_overrides_runpath=no
14778
shlibpath_overrides_runpath=yes
14782
shlibpath_overrides_runpath=yes
14787
libname_spec='$name'
14790
library_names_spec='$libname${shared_ext} $libname.a'
14791
dynamic_linker='OS/2 ld.exe'
14792
shlibpath_var=LIBPATH
14795
osf3* | osf4* | osf5*)
14799
soname_spec='${libname}${release}${shared_ext}$major'
14800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801
shlibpath_var=LD_LIBRARY_PATH
14802
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14803
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14811
version_type=linux # correct to gnu/linux during the next big refactor
14814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815
soname_spec='${libname}${release}${shared_ext}$major'
14816
shlibpath_var=LD_LIBRARY_PATH
14817
shlibpath_overrides_runpath=yes
14818
hardcode_into_libs=yes
14819
# ldd complains unless libraries are executable
14820
postinstall_cmds='chmod +x $lib'
14825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14827
shlibpath_var=LD_LIBRARY_PATH
14828
shlibpath_overrides_runpath=yes
14829
if test "$with_gnu_ld" = yes; then
14836
version_type=linux # correct to gnu/linux during the next big refactor
14837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838
soname_spec='${libname}${release}${shared_ext}$major'
14839
shlibpath_var=LD_LIBRARY_PATH
14840
case $host_vendor in
14842
shlibpath_overrides_runpath=no
14844
runpath_var=LD_RUN_PATH
14852
shlibpath_overrides_runpath=no
14853
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14859
if test -d /usr/nec ;then
14860
version_type=linux # correct to gnu/linux during the next big refactor
14861
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14862
soname_spec='$libname${shared_ext}.$major'
14863
shlibpath_var=LD_LIBRARY_PATH
14867
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14868
version_type=freebsd-elf
14871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14872
soname_spec='${libname}${release}${shared_ext}$major'
14873
shlibpath_var=LD_LIBRARY_PATH
14874
shlibpath_overrides_runpath=yes
14875
hardcode_into_libs=yes
14876
if test "$with_gnu_ld" = yes; then
14877
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14879
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14882
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14886
sys_lib_dlsearch_path_spec='/usr/lib'
14890
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14891
version_type=linux # correct to gnu/linux during the next big refactor
14894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895
shlibpath_var=LD_LIBRARY_PATH
14896
shlibpath_overrides_runpath=no
14897
hardcode_into_libs=yes
14901
version_type=linux # correct to gnu/linux during the next big refactor
14902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903
soname_spec='${libname}${release}${shared_ext}$major'
14904
shlibpath_var=LD_LIBRARY_PATH
14911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14912
$as_echo "$dynamic_linker" >&6; }
14913
test "$dynamic_linker" = no && can_build_shared=no
14915
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14916
if test "$GCC" = yes; then
14917
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14920
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14921
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14923
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14924
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15019
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15021
if test -n "$hardcode_libdir_flag_spec" ||
15022
test -n "$runpath_var" ||
15023
test "X$hardcode_automatic" = "Xyes" ; then
15025
# We can hardcode non-existent directories.
15026
if test "$hardcode_direct" != no &&
15027
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15028
# have to relink, otherwise we might link with an installed library
15029
# when we should be linking with a yet-to-be-installed one
15030
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15031
test "$hardcode_minus_L" != no; then
15032
# Linking always hardcodes the temporary library directory.
15033
hardcode_action=relink
15035
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15036
hardcode_action=immediate
15039
# We cannot hardcode anything, or else we can only hardcode existing
15041
hardcode_action=unsupported
15043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15044
$as_echo "$hardcode_action" >&6; }
15046
if test "$hardcode_action" = relink ||
15047
test "$inherit_rpath" = yes; then
15048
# Fast installation is not supported
15049
enable_fast_install=no
15050
elif test "$shlibpath_overrides_runpath" = yes ||
15051
test "$enable_shared" = no; then
15052
# Fast installation is not necessary
15053
enable_fast_install=needless
15061
if test "x$enable_dlopen" != xyes; then
15062
enable_dlopen=unknown
15063
enable_dlopen_self=unknown
15064
enable_dlopen_self_static=unknown
15071
lt_cv_dlopen="load_add_on"
15073
lt_cv_dlopen_self=yes
15076
mingw* | pw32* | cegcc*)
15077
lt_cv_dlopen="LoadLibrary"
15082
lt_cv_dlopen="dlopen"
15087
# if libdl is installed we need to link against it
15088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15089
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15090
if ${ac_cv_lib_dl_dlopen+:} false; then :
15091
$as_echo_n "(cached) " >&6
15093
ac_check_lib_save_LIBS=$LIBS
15095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096
/* end confdefs.h. */
15098
/* Override any GCC internal prototype to avoid an error.
15099
Use char because int might match the return type of a GCC
15100
builtin and then its argument prototype would still apply. */
15113
if ac_fn_c_try_link "$LINENO"; then :
15114
ac_cv_lib_dl_dlopen=yes
15116
ac_cv_lib_dl_dlopen=no
15118
rm -f core conftest.err conftest.$ac_objext \
15119
conftest$ac_exeext conftest.$ac_ext
15120
LIBS=$ac_check_lib_save_LIBS
15122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15123
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15124
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15125
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15128
lt_cv_dlopen="dyld"
15130
lt_cv_dlopen_self=yes
15137
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15138
if test "x$ac_cv_func_shl_load" = xyes; then :
15139
lt_cv_dlopen="shl_load"
15141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15142
$as_echo_n "checking for shl_load in -ldld... " >&6; }
15143
if ${ac_cv_lib_dld_shl_load+:} false; then :
15144
$as_echo_n "(cached) " >&6
15146
ac_check_lib_save_LIBS=$LIBS
15148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149
/* end confdefs.h. */
15151
/* Override any GCC internal prototype to avoid an error.
15152
Use char because int might match the return type of a GCC
15153
builtin and then its argument prototype would still apply. */
15161
return shl_load ();
15166
if ac_fn_c_try_link "$LINENO"; then :
15167
ac_cv_lib_dld_shl_load=yes
15169
ac_cv_lib_dld_shl_load=no
15171
rm -f core conftest.err conftest.$ac_objext \
15172
conftest$ac_exeext conftest.$ac_ext
15173
LIBS=$ac_check_lib_save_LIBS
15175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15176
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15177
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15178
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15180
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15181
if test "x$ac_cv_func_dlopen" = xyes; then :
15182
lt_cv_dlopen="dlopen"
15184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15185
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15186
if ${ac_cv_lib_dl_dlopen+:} false; then :
15187
$as_echo_n "(cached) " >&6
15189
ac_check_lib_save_LIBS=$LIBS
15191
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192
/* end confdefs.h. */
15194
/* Override any GCC internal prototype to avoid an error.
15195
Use char because int might match the return type of a GCC
15196
builtin and then its argument prototype would still apply. */
15209
if ac_fn_c_try_link "$LINENO"; then :
15210
ac_cv_lib_dl_dlopen=yes
15212
ac_cv_lib_dl_dlopen=no
15214
rm -f core conftest.err conftest.$ac_objext \
15215
conftest$ac_exeext conftest.$ac_ext
15216
LIBS=$ac_check_lib_save_LIBS
15218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15219
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15220
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15221
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15224
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15225
if ${ac_cv_lib_svld_dlopen+:} false; then :
15226
$as_echo_n "(cached) " >&6
15228
ac_check_lib_save_LIBS=$LIBS
15229
LIBS="-lsvld $LIBS"
15230
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231
/* end confdefs.h. */
15233
/* Override any GCC internal prototype to avoid an error.
15234
Use char because int might match the return type of a GCC
15235
builtin and then its argument prototype would still apply. */
15248
if ac_fn_c_try_link "$LINENO"; then :
15249
ac_cv_lib_svld_dlopen=yes
15251
ac_cv_lib_svld_dlopen=no
15253
rm -f core conftest.err conftest.$ac_objext \
15254
conftest$ac_exeext conftest.$ac_ext
15255
LIBS=$ac_check_lib_save_LIBS
15257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15258
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15259
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15260
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15263
$as_echo_n "checking for dld_link in -ldld... " >&6; }
15264
if ${ac_cv_lib_dld_dld_link+:} false; then :
15265
$as_echo_n "(cached) " >&6
15267
ac_check_lib_save_LIBS=$LIBS
15269
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270
/* end confdefs.h. */
15272
/* Override any GCC internal prototype to avoid an error.
15273
Use char because int might match the return type of a GCC
15274
builtin and then its argument prototype would still apply. */
15282
return dld_link ();
15287
if ac_fn_c_try_link "$LINENO"; then :
15288
ac_cv_lib_dld_dld_link=yes
15290
ac_cv_lib_dld_dld_link=no
15292
rm -f core conftest.err conftest.$ac_objext \
15293
conftest$ac_exeext conftest.$ac_ext
15294
LIBS=$ac_check_lib_save_LIBS
15296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15297
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15298
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15299
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15320
if test "x$lt_cv_dlopen" != xno; then
15326
case $lt_cv_dlopen in
15328
save_CPPFLAGS="$CPPFLAGS"
15329
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15331
save_LDFLAGS="$LDFLAGS"
15332
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15335
LIBS="$lt_cv_dlopen_libs $LIBS"
15337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15338
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15339
if ${lt_cv_dlopen_self+:} false; then :
15340
$as_echo_n "(cached) " >&6
15342
if test "$cross_compiling" = yes; then :
15343
lt_cv_dlopen_self=cross
15345
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15346
lt_status=$lt_dlunknown
15347
cat > conftest.$ac_ext <<_LT_EOF
15348
#line $LINENO "configure"
15349
#include "confdefs.h"
15358
# define LT_DLGLOBAL RTLD_GLOBAL
15361
# define LT_DLGLOBAL DL_GLOBAL
15363
# define LT_DLGLOBAL 0
15367
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15368
find out it does not work in some platform. */
15369
#ifndef LT_DLLAZY_OR_NOW
15371
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15374
# define LT_DLLAZY_OR_NOW DL_LAZY
15377
# define LT_DLLAZY_OR_NOW RTLD_NOW
15380
# define LT_DLLAZY_OR_NOW DL_NOW
15382
# define LT_DLLAZY_OR_NOW 0
15389
/* When -fvisbility=hidden is used, assume the code has been annotated
15390
correspondingly for the symbols needed. */
15391
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15392
int fnord () __attribute__((visibility("default")));
15395
int fnord () { return 42; }
15398
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15399
int status = $lt_dlunknown;
15403
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15406
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15407
else puts (dlerror ());
15409
/* dlclose (self); */
15417
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15418
(eval $ac_link) 2>&5
15420
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15421
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15422
(./conftest; exit; ) >&5 2>/dev/null
15424
case x$lt_status in
15425
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15426
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15427
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15430
# compilation failed
15431
lt_cv_dlopen_self=no
15438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15439
$as_echo "$lt_cv_dlopen_self" >&6; }
15441
if test "x$lt_cv_dlopen_self" = xyes; then
15442
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15444
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15445
if ${lt_cv_dlopen_self_static+:} false; then :
15446
$as_echo_n "(cached) " >&6
15448
if test "$cross_compiling" = yes; then :
15449
lt_cv_dlopen_self_static=cross
15451
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15452
lt_status=$lt_dlunknown
15453
cat > conftest.$ac_ext <<_LT_EOF
15454
#line $LINENO "configure"
15455
#include "confdefs.h"
15464
# define LT_DLGLOBAL RTLD_GLOBAL
15467
# define LT_DLGLOBAL DL_GLOBAL
15469
# define LT_DLGLOBAL 0
15473
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15474
find out it does not work in some platform. */
15475
#ifndef LT_DLLAZY_OR_NOW
15477
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15480
# define LT_DLLAZY_OR_NOW DL_LAZY
15483
# define LT_DLLAZY_OR_NOW RTLD_NOW
15486
# define LT_DLLAZY_OR_NOW DL_NOW
15488
# define LT_DLLAZY_OR_NOW 0
15495
/* When -fvisbility=hidden is used, assume the code has been annotated
15496
correspondingly for the symbols needed. */
15497
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15498
int fnord () __attribute__((visibility("default")));
15501
int fnord () { return 42; }
15504
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15505
int status = $lt_dlunknown;
15509
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15512
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15513
else puts (dlerror ());
15515
/* dlclose (self); */
15523
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15524
(eval $ac_link) 2>&5
15526
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15528
(./conftest; exit; ) >&5 2>/dev/null
15530
case x$lt_status in
15531
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15532
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15533
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15536
# compilation failed
15537
lt_cv_dlopen_self_static=no
15544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15545
$as_echo "$lt_cv_dlopen_self_static" >&6; }
15548
CPPFLAGS="$save_CPPFLAGS"
15549
LDFLAGS="$save_LDFLAGS"
15554
case $lt_cv_dlopen_self in
15555
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15556
*) enable_dlopen_self=unknown ;;
15559
case $lt_cv_dlopen_self_static in
15560
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15561
*) enable_dlopen_self_static=unknown ;;
15583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15584
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15585
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15586
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15587
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15589
$as_echo "yes" >&6; }
15591
# FIXME - insert some real tests, host_os isn't really good enough
15594
if test -n "$STRIP" ; then
15595
striplib="$STRIP -x"
15596
old_striplib="$STRIP -S"
15597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15598
$as_echo "yes" >&6; }
15600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601
$as_echo "no" >&6; }
15605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606
$as_echo "no" >&6; }
15622
# Report which library types will actually be built
15623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15624
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15626
$as_echo "$can_build_shared" >&6; }
15628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15629
$as_echo_n "checking whether to build shared libraries... " >&6; }
15630
test "$can_build_shared" = "no" && enable_shared=no
15632
# On AIX, shared libraries and static libraries use the same namespace, and
15633
# are all built from PIC.
15636
test "$enable_shared" = yes && enable_static=no
15637
if test -n "$RANLIB"; then
15638
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15639
postinstall_cmds='$RANLIB $lib'
15644
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15645
test "$enable_shared" = yes && enable_static=no
15649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15650
$as_echo "$enable_shared" >&6; }
15652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15653
$as_echo_n "checking whether to build static libraries... " >&6; }
15654
# Make sure either enable_shared or enable_static is yes.
15655
test "$enable_shared" = yes || enable_static=yes
15656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15657
$as_echo "$enable_static" >&6; }
15664
ac_cpp='$CPP $CPPFLAGS'
15665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15685
ac_config_commands="$ac_config_commands libtool"
15690
# Only expand once:
15696
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15697
# These system don't have libm, or don't need it
15700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15701
$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15702
if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15703
$as_echo_n "(cached) " >&6
15705
ac_check_lib_save_LIBS=$LIBS
15707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708
/* end confdefs.h. */
15710
/* Override any GCC internal prototype to avoid an error.
15711
Use char because int might match the return type of a GCC
15712
builtin and then its argument prototype would still apply. */
15716
char _mwvalidcheckl ();
15720
return _mwvalidcheckl ();
15725
if ac_fn_c_try_link "$LINENO"; then :
15726
ac_cv_lib_mw__mwvalidcheckl=yes
15728
ac_cv_lib_mw__mwvalidcheckl=no
15730
rm -f core conftest.err conftest.$ac_objext \
15731
conftest$ac_exeext conftest.$ac_ext
15732
LIBS=$ac_check_lib_save_LIBS
15734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15735
$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15736
if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15741
$as_echo_n "checking for cos in -lm... " >&6; }
15742
if ${ac_cv_lib_m_cos+:} false; then :
15743
$as_echo_n "(cached) " >&6
15745
ac_check_lib_save_LIBS=$LIBS
15747
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748
/* end confdefs.h. */
15750
/* Override any GCC internal prototype to avoid an error.
15751
Use char because int might match the return type of a GCC
15752
builtin and then its argument prototype would still apply. */
15765
if ac_fn_c_try_link "$LINENO"; then :
15766
ac_cv_lib_m_cos=yes
15770
rm -f core conftest.err conftest.$ac_objext \
15771
conftest$ac_exeext conftest.$ac_ext
15772
LIBS=$ac_check_lib_save_LIBS
15774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15775
$as_echo "$ac_cv_lib_m_cos" >&6; }
15776
if test "x$ac_cv_lib_m_cos" = xyes; then :
15782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15783
$as_echo_n "checking for cos in -lm... " >&6; }
15784
if ${ac_cv_lib_m_cos+:} false; then :
15785
$as_echo_n "(cached) " >&6
15787
ac_check_lib_save_LIBS=$LIBS
15789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790
/* end confdefs.h. */
15792
/* Override any GCC internal prototype to avoid an error.
15793
Use char because int might match the return type of a GCC
15794
builtin and then its argument prototype would still apply. */
15807
if ac_fn_c_try_link "$LINENO"; then :
15808
ac_cv_lib_m_cos=yes
15812
rm -f core conftest.err conftest.$ac_objext \
15813
conftest$ac_exeext conftest.$ac_ext
15814
LIBS=$ac_check_lib_save_LIBS
15816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15817
$as_echo "$ac_cv_lib_m_cos" >&6; }
15818
if test "x$ac_cv_lib_m_cos" = xyes; then :
15828
LIBGD_MODULE_DIR=libgd
15834
LIBGD_MODULES="gtk+-3.0 >= 3.4"
15835
LIBGD_GIR_INCLUDES="Gtk-3.0"
15840
LIBGD_STATIC_FALSE='#'
15842
LIBGD_STATIC_TRUE='#'
15843
LIBGD_STATIC_FALSE=
15847
# gtk-hacks: collection of Gtk+ hacks and workarounds
15849
LIBGD_GTK_HACKS_TRUE=
15850
LIBGD_GTK_HACKS_FALSE='#'
15852
LIBGD_GTK_HACKS_TRUE='#'
15853
LIBGD_GTK_HACKS_FALSE=
15860
LIBGD_MAIN_VIEW_TRUE=
15861
LIBGD_MAIN_VIEW_FALSE='#'
15863
LIBGD_MAIN_VIEW_TRUE='#'
15864
LIBGD_MAIN_VIEW_FALSE=
15871
LIBGD_MAIN_ICON_VIEW_TRUE=
15872
LIBGD_MAIN_ICON_VIEW_FALSE='#'
15874
LIBGD_MAIN_ICON_VIEW_TRUE='#'
15875
LIBGD_MAIN_ICON_VIEW_FALSE=
15882
LIBGD_MAIN_LIST_VIEW_TRUE=
15883
LIBGD_MAIN_LIST_VIEW_FALSE='#'
15885
LIBGD_MAIN_LIST_VIEW_TRUE='#'
15886
LIBGD_MAIN_LIST_VIEW_FALSE=
15893
LIBGD__VIEW_COMMON_TRUE=
15894
LIBGD__VIEW_COMMON_FALSE='#'
15896
LIBGD__VIEW_COMMON_TRUE='#'
15897
LIBGD__VIEW_COMMON_FALSE=
15904
LIBGD_MAIN_TOOLBAR_TRUE=
15905
LIBGD_MAIN_TOOLBAR_FALSE='#'
15907
LIBGD_MAIN_TOOLBAR_TRUE='#'
15908
LIBGD_MAIN_TOOLBAR_FALSE=
15913
$as_echo "#define LIBGD_MAIN_TOOLBAR 1" >>confdefs.h
15917
# margin-container:
15919
LIBGD_MARGIN_CONTAINER_TRUE=
15920
LIBGD_MARGIN_CONTAINER_FALSE='#'
15922
LIBGD_MARGIN_CONTAINER_TRUE='#'
15923
LIBGD_MARGIN_CONTAINER_FALSE=
15930
LIBGD_NOTIFICATION_TRUE=
15931
LIBGD_NOTIFICATION_FALSE='#'
15933
LIBGD_NOTIFICATION_TRUE='#'
15934
LIBGD_NOTIFICATION_FALSE=
15939
# tagged-entry: Gtk+ widget
15941
LIBGD_TAGGED_ENTRY_TRUE=
15942
LIBGD_TAGGED_ENTRY_FALSE='#'
15944
LIBGD_TAGGED_ENTRY_TRUE='#'
15945
LIBGD_TAGGED_ENTRY_FALSE=
15950
# vapi: vala bindings support
15953
LIBGD_VAPI_FALSE='#'
15955
LIBGD_VAPI_TRUE='#'
15961
# Extract the first word of "vapigen", so it can be a program name with args.
15962
set dummy vapigen; ac_word=$2
15963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964
$as_echo_n "checking for $ac_word... " >&6; }
15965
if ${ac_cv_path_VAPIGEN+:} false; then :
15966
$as_echo_n "(cached) " >&6
15970
ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
15973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15974
for as_dir in $PATH
15977
test -z "$as_dir" && as_dir=.
15978
for ac_exec_ext in '' $ac_executable_extensions; do
15979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15980
ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
15981
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15988
test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no"
15992
VAPIGEN=$ac_cv_path_VAPIGEN
15993
if test -n "$VAPIGEN"; then
15994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
15995
$as_echo "$VAPIGEN" >&6; }
15997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998
$as_echo "no" >&6; }
16002
if test x$VAPIGEN = "xno"; then :
16003
as_fn_error $? "Cannot find the \"vapigen compiler in your PATH" "$LINENO" 5
16007
# gir: gobject introspection support
16010
LIBGD_GIR_FALSE='#'
16020
enable_introspection=yes
16022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
16023
$as_echo_n "checking for gobject-introspection... " >&6; }
16025
case $enable_introspection in #(
16027
found_introspection="no (disabled, use --enable-introspection to enable)"
16030
if test -n "$PKG_CONFIG" && \
16031
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
16032
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
16034
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035
test $ac_status = 0; }; then
16038
as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
16040
if test -n "$PKG_CONFIG" && \
16041
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.6\""; } >&5
16042
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.6") 2>&5
16044
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16045
test $ac_status = 0; }; then
16046
found_introspection=yes
16048
as_fn_error $? "You need to have gobject-introspection >= 0.9.6 installed to build baobab" "$LINENO" 5
16052
if test -n "$PKG_CONFIG" && \
16053
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.6\""; } >&5
16054
($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.6") 2>&5
16056
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057
test $ac_status = 0; }; then
16058
found_introspection=yes
16060
found_introspection=no
16062
enable_introspection=$found_introspection
16065
as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
16068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
16069
$as_echo "$found_introspection" >&6; }
16071
INTROSPECTION_SCANNER=
16072
INTROSPECTION_COMPILER=
16073
INTROSPECTION_GENERATE=
16074
INTROSPECTION_GIRDIR=
16075
INTROSPECTION_TYPELIBDIR=
16076
if test "x$found_introspection" = "xyes"; then
16077
INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
16078
INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
16079
INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
16080
INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
16081
INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
16082
INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
16083
INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
16084
INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
16095
if test "x$found_introspection" = "xyes"; then
16096
HAVE_INTROSPECTION_TRUE=
16097
HAVE_INTROSPECTION_FALSE='#'
16099
HAVE_INTROSPECTION_TRUE='#'
16100
HAVE_INTROSPECTION_FALSE=
7970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio" >&5
7971
$as_echo_n "checking for gio... " >&6; }
16109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGD" >&5
16110
$as_echo_n "checking for LIBGD... " >&6; }
7973
if test -n "$gio_CFLAGS"; then
7974
pkg_cv_gio_CFLAGS="$gio_CFLAGS"
16112
if test -n "$LIBGD_CFLAGS"; then
16113
pkg_cv_LIBGD_CFLAGS="$LIBGD_CFLAGS"
7975
16114
elif test -n "$PKG_CONFIG"; then
7976
16115
if test -n "$PKG_CONFIG" && \
7977
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30.0\""; } >&5
7978
($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30.0") 2>&5
16116
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$LIBGD_MODULES \""; } >&5
16117
($PKG_CONFIG --exists --print-errors " $LIBGD_MODULES ") 2>&5
7980
16119
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7981
16120
test $ac_status = 0; }; then
7982
pkg_cv_gio_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.30.0" 2>/dev/null`
16121
pkg_cv_LIBGD_CFLAGS=`$PKG_CONFIG --cflags " $LIBGD_MODULES " 2>/dev/null`
7984
16123
pkg_failed=yes
7987
16126
pkg_failed=untried
7989
if test -n "$gio_LIBS"; then
7990
pkg_cv_gio_LIBS="$gio_LIBS"
16128
if test -n "$LIBGD_LIBS"; then
16129
pkg_cv_LIBGD_LIBS="$LIBGD_LIBS"
7991
16130
elif test -n "$PKG_CONFIG"; then
7992
16131
if test -n "$PKG_CONFIG" && \
7993
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.30.0\""; } >&5
7994
($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.30.0") 2>&5
16132
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$LIBGD_MODULES \""; } >&5
16133
($PKG_CONFIG --exists --print-errors " $LIBGD_MODULES ") 2>&5
7996
16135
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7997
16136
test $ac_status = 0; }; then
7998
pkg_cv_gio_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.30.0" 2>/dev/null`
16137
pkg_cv_LIBGD_LIBS=`$PKG_CONFIG --libs " $LIBGD_MODULES " 2>/dev/null`
8000
16139
pkg_failed=yes